Files
oh-my-pi/packages/coding-agent/package.json
T
can1357 22df49b81c feat(coding-agent): migrated CLI from custom parser to oclif framework for improved structure
- Migrated CLI from custom argument parser to oclif framework for improved command structure and maintainability.
- Reorganized CLI subcommands into individual command files under src/commands/ directory with oclif Command classes.
- Added oclif configuration to package.json with bin name 'omp', commands directory, and autocomplete plugin support.
- Refactored CLI entry point in src/cli.ts to use oclif's run() function with improved error handling.
- Simplified extension flag parsing by directly iterating raw arguments instead of using dynamic flag definitions.
- Updated CHANGELOG.md with comprehensive documentation of new oclif-based CLI commands and migration details.
2026-02-05 13:41:20 +01:00

139 lines
3.3 KiB
JSON

{
"name": "@oh-my-pi/pi-coding-agent",
"version": "11.1.0",
"description": "Coding agent CLI with read, bash, edit, write tools and session management",
"type": "module",
"ompConfig": {
"name": "omp",
"configDir": ".omp"
},
"bin": {
"omp": "src/cli.ts"
},
"oclif": {
"bin": "omp",
"commands": "./src/commands",
"plugins": [
"@oclif/plugin-autocomplete"
]
},
"main": "./src/index.ts",
"types": "./src/index.ts",
"exports": {
".": {
"types": "./src/index.ts",
"import": "./src/index.ts"
},
"./hooks": {
"types": "./src/extensibility/hooks/index.ts",
"import": "./src/extensibility/hooks/index.ts"
},
"./sdk": {
"types": "./src/sdk.ts",
"import": "./src/sdk.ts"
},
"./prompts/*": "./src/prompts/*.md",
"./capability/*": {
"types": "./src/capability/*.ts",
"import": "./src/capability/*.ts"
},
"./config/*": {
"types": "./src/config/*.ts",
"import": "./src/config/*.ts"
},
"./extensibility/*": {
"types": "./src/extensibility/*.ts",
"import": "./src/extensibility/*.ts"
},
"./extensibility/hooks/*": {
"types": "./src/extensibility/hooks/*.ts",
"import": "./src/extensibility/hooks/*.ts"
},
"./extensibility/extensions/*": {
"types": "./src/extensibility/extensions/*.ts",
"import": "./src/extensibility/extensions/*.ts"
},
"./session/*": {
"types": "./src/session/*.ts",
"import": "./src/session/*.ts"
},
"./internal-urls": {
"types": "./src/internal-urls/index.ts",
"import": "./src/internal-urls/index.ts"
},
"./internal-urls/*": {
"types": "./src/internal-urls/*.ts",
"import": "./src/internal-urls/*.ts"
},
"./*": {
"types": "./src/*.ts",
"import": "./src/*.ts"
}
},
"files": [
"src",
"scripts",
"docs",
"examples",
"README.md",
"CHANGELOG.md"
],
"scripts": {
"check": "tsgo -p tsconfig.json",
"format-prompts": "bun scripts/format-prompts.ts",
"build:binary": "cd ../.. && bun --cwd=packages/natives run embed:native && bun build --compile --define PI_COMPILED=true --root . ./packages/coding-agent/src/cli.ts --outfile packages/coding-agent/dist/omp && bun --cwd=packages/natives run embed:native --reset",
"generate-template": "bun scripts/generate-template.ts",
"test": "bun test"
},
"dependencies": {
"@oclif/core": "^4.5.6",
"@oclif/plugin-autocomplete": "^3.2.23",
"@mozilla/readability": "0.6.0",
"@oh-my-pi/omp-stats": "workspace:*",
"@oh-my-pi/pi-agent-core": "workspace:*",
"@oh-my-pi/pi-ai": "workspace:*",
"@oh-my-pi/pi-natives": "workspace:*",
"@oh-my-pi/pi-tui": "workspace:*",
"@oh-my-pi/pi-utils": "workspace:*",
"@sinclair/typebox": "^0.34.48",
"ajv": "^8.17.1",
"chalk": "^5.6.2",
"diff": "^8.0.3",
"file-type": "^21.3.0",
"glob": "^13.0.1",
"handlebars": "^4.7.8",
"ignore": "^7.0.5",
"jsdom": "28.0.0",
"marked": "^17.0.1",
"node-html-parser": "^7.0.2",
"puppeteer": "^24.36.1",
"smol-toml": "^1.6.0",
"zod": "^4.3.6"
},
"devDependencies": {
"@types/diff": "^7.0.2",
"@types/ms": "^2.1.0",
"@types/bun": "^1.3.8",
"ms": "^2.1.3",
"@types/jsdom": "27.0.0"
},
"keywords": [
"coding-agent",
"ai",
"llm",
"cli",
"tui",
"agent"
],
"author": "Mario Zechner",
"license": "MIT",
"repository": {
"type": "git",
"url": "git+https://github.com/can1357/oh-my-pi.git",
"directory": "packages/coding-agent"
},
"engines": {
"bun": ">=1.3.7"
}
}