feat(cli): replaced oclif with lightweight custom CLI framework in pi-utils

- Created lightweight CLI framework in @oh-my-pi/pi-utils/cli as drop-in replacement for oclif with zero dependencies.
- Migrated coding-agent CLI from oclif framework to @oh-my-pi/pi-utils/cli with lazy command loading and simplified architecture.
- Changed default root command from 'index' to 'launch' for improved UX.
- Removed @oclif/core and @oclif/plugin-autocomplete dependencies from coding-agent package.
- Deleted custom oclif help renderer (oclif-help.ts) as help rendering is now integrated into the new CLI framework.
- Moved launch command from nested index/index.ts to top-level launch.ts for clearer command structure.
This commit is contained in:
can1357
2026-02-10 19:18:12 +01:00
parent 102d985561
commit 3cdc10a73b
18 changed files with 465 additions and 67 deletions
-10
View File
@@ -10,14 +10,6 @@
"bin": {
"omp": "src/cli.ts"
},
"oclif": {
"bin": "omp",
"commands": "./src/commands",
"helpClass": "./src/cli/oclif-help.ts",
"plugins": [
"@oclif/plugin-autocomplete"
]
},
"main": "./src/index.ts",
"types": "./src/index.ts",
"exports": {
@@ -88,8 +80,6 @@
},
"dependencies": {
"@mozilla/readability": "0.6.0",
"@oclif/core": "^4.8.0",
"@oclif/plugin-autocomplete": "^3.2.40",
"@oh-my-pi/omp-stats": "workspace:*",
"@oh-my-pi/pi-agent-core": "workspace:*",
"@oh-my-pi/pi-ai": "workspace:*",