feat(cli): add initial CLI implementation with argument parsing and prompt handling
- Created package.json and package-lock.json for CLI package. - Implemented argument parsing in args.ts to handle various flags and commands. - Developed main CLI logic in cli.ts to execute commands and handle errors. - Added configuration loading from a JSON file in config.ts, with environment variable support. - Implemented prompt resolution and provider interaction in prompt.ts. - Added usage documentation for the CLI. - Configured TypeScript settings in tsconfig.json for the CLI package. - Updated README in vscode package to reflect the new CLI functionality. - Refactored root tsconfig.json to streamline project structure.
This commit is contained in:
47
package.json
47
package.json
@@ -1,38 +1,35 @@
|
||||
{
|
||||
"name": "lexai",
|
||||
"version": "1.1.0",
|
||||
"description": "A Grammarly-like Chrome Extension powered by your own LLM provider and API key",
|
||||
"private": true,
|
||||
"description": "LexAI monorepo — BYO-LLM writing assistant for Chrome, VS Code, and CLI Prompt Builder",
|
||||
"license": "MIT",
|
||||
"engines": {
|
||||
"node": ">=22"
|
||||
},
|
||||
"packageManager": "npm@11.13.0",
|
||||
"scripts": {
|
||||
"dev": "wxt",
|
||||
"build": "wxt build",
|
||||
"zip": "wxt zip",
|
||||
"test": "vitest",
|
||||
"test:e2e": "playwright test",
|
||||
"typecheck": "tsc --noEmit && tsc --noEmit -p tsconfig.test.json",
|
||||
"postinstall": "wxt prepare",
|
||||
"chrome:install": "npm install --prefix packages/chrome",
|
||||
"chrome:dev": "npm run dev --prefix packages/chrome",
|
||||
"chrome:build": "npm run build --prefix packages/chrome",
|
||||
"chrome:zip": "npm run zip --prefix packages/chrome",
|
||||
"chrome:typecheck": "npm run typecheck --prefix packages/chrome",
|
||||
"chrome:test": "npm test --prefix packages/chrome -- --run",
|
||||
"dev": "npm run chrome:dev",
|
||||
"build": "npm run chrome:build",
|
||||
"zip": "npm run chrome:zip",
|
||||
"typecheck": "npm run chrome:typecheck",
|
||||
"test": "npm run chrome:test",
|
||||
"test:e2e": "npm run test:e2e --prefix packages/chrome",
|
||||
"vscode:install": "npm install --prefix packages/vscode",
|
||||
"vscode:build": "npm run compile --prefix packages/vscode",
|
||||
"vscode:typecheck": "npm run typecheck --prefix packages/vscode",
|
||||
"vscode:package": "npm run package --prefix packages/vscode"
|
||||
},
|
||||
"dependencies": {
|
||||
"@wxt-dev/module-react": "^1.1.5",
|
||||
"react": "^18.3.1",
|
||||
"react-dom": "^18.3.1",
|
||||
"tweetnacl": "^1.0.3",
|
||||
"wxt": "^0.20.18"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@playwright/test": "^1.50.1",
|
||||
"@types/chrome": "^0.1.37",
|
||||
"@types/react": "^18.3.1",
|
||||
"@types/react-dom": "^18.3.1",
|
||||
"jsdom": "^28.1.0",
|
||||
"typescript": "^5.7.3",
|
||||
"vitest": "^3.0.7"
|
||||
"vscode:package": "npm run package --prefix packages/vscode",
|
||||
"cli:install": "npm install --prefix packages/cli",
|
||||
"cli:build": "npm run compile --prefix packages/cli",
|
||||
"cli:typecheck": "npm run typecheck --prefix packages/cli",
|
||||
"install:all": "npm run chrome:install && npm run vscode:install && npm run cli:install",
|
||||
"typecheck:all": "npm run chrome:typecheck && npm run vscode:typecheck && npm run cli:typecheck",
|
||||
"build:all": "npm run chrome:build && npm run vscode:build && npm run cli:build"
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user