icopilot 2.2.0 → 2.2.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/bin/icopilot.js CHANGED
File without changes
package/dist/index.js CHANGED
@@ -183,8 +183,10 @@ export async function run(opts) {
183
183
  });
184
184
  }
185
185
  export function createProgram() {
186
+ const invokedAs = path.basename(process.argv[1] ?? 'icopilot').replace(/\.js$/, '');
187
+ const cliName = ['icopilot', 'icli'].includes(invokedAs) ? invokedAs : 'icopilot';
186
188
  const program = new Command()
187
- .name('icopilot')
189
+ .name(cliName)
188
190
  .description('iCopilot — terminal-native agentic CLI powered by GitHub Models')
189
191
  .version('2.0.0')
190
192
  .option('-p, --prompt <text>', 'one-shot mode: run a single prompt and exit')
package/package.json CHANGED
@@ -1,79 +1,79 @@
1
1
  {
2
- "name": "icopilot",
3
- "version": "2.2.0",
4
- "description": "iCopilot — terminal-native agentic CLI powered by GitHub Models",
5
- "type": "module",
6
- "bin": {
7
- "icopilot": "bin/icopilot.js",
8
- "icli": "bin/icopilot.js"
9
- },
10
- "main": "dist/index.js",
11
- "scripts": {
12
- "build": "tsc -p .",
13
- "dev": "tsc -p . --watch",
14
- "start": "node bin/icopilot.js",
15
- "lint": "eslint \"src/**/*.ts\" \"tests/**/*.ts\"",
16
- "lint:fix": "eslint --fix \"src/**/*.ts\" \"tests/**/*.ts\"",
17
- "format": "prettier --write \"src/**/*.ts\" \"tests/**/*.ts\" \"*.md\"",
18
- "format:check": "prettier --check \"src/**/*.ts\" \"tests/**/*.ts\"",
19
- "test": "vitest run",
20
- "test:watch": "vitest",
21
- "coverage": "vitest run --coverage",
22
- "typecheck": "tsc -p . --noEmit",
23
- "prepare": "tsc -p .",
24
- "release": "node scripts/release.mjs",
25
- "release:patch": "node scripts/release.mjs patch",
26
- "release:minor": "node scripts/release.mjs minor",
27
- "release:major": "node scripts/release.mjs major",
28
- "changelog": "node scripts/changelog.mjs",
29
- "smoke": "node scripts/smoke.mjs",
30
- "test:smoke": "vitest run tests/smoke --config vitest.smoke.config.ts",
31
- "screenshots": "node scripts/screenshots.mjs",
32
- "perf:cold-start": "node scripts/cold-start.mjs"
33
- },
34
- "engines": {
35
- "node": ">=18.17.0"
36
- },
37
- "dependencies": {
38
- "@inquirer/prompts": "^5.3.8",
39
- "chalk": "^5.3.0",
40
- "commander": "^12.1.0",
41
- "diff": "^5.2.0",
42
- "dotenv": "^16.4.5",
43
- "fast-glob": "^3.3.2",
44
- "gpt-tokenizer": "^2.1.2",
45
- "marked": "^13.0.3",
46
- "marked-terminal": "^7.1.0",
47
- "openai": "^4.56.0",
48
- "ora": "^8.0.1",
49
- "proxy-agent": "^6.5.0",
50
- "simple-git": "^3.25.0",
51
- "yaml": "^2.9.0"
52
- },
53
- "devDependencies": {
54
- "@types/diff": "^5.2.1",
55
- "@types/marked-terminal": "^6.1.1",
56
- "@types/node": "^20.14.10",
57
- "@typescript-eslint/eslint-plugin": "^7.18.0",
58
- "@typescript-eslint/parser": "^7.18.0",
59
- "@vitest/coverage-v8": "^1.6.0",
60
- "eslint": "^8.57.0",
61
- "eslint-config-prettier": "^9.1.0",
62
- "eslint-plugin-prettier": "^5.2.1",
63
- "prettier": "^3.3.3",
64
- "typescript": "^5.5.4",
65
- "vitest": "^1.6.0"
66
- },
67
- "license": "MIT",
68
- "files": [
69
- "bin",
70
- "dist",
71
- "README.md",
72
- "CHANGELOG.md",
73
- "LICENSE"
74
- ],
75
- "repository": {
76
- "type": "git",
77
- "url": ""
78
- }
2
+ "name": "icopilot",
3
+ "version": "2.2.1",
4
+ "description": "iCopilot — terminal-native agentic CLI powered by GitHub Models",
5
+ "type": "module",
6
+ "bin": {
7
+ "icopilot": "bin/icopilot.js",
8
+ "icli": "bin/icopilot.js"
9
+ },
10
+ "main": "dist/index.js",
11
+ "scripts": {
12
+ "build": "tsc -p .",
13
+ "dev": "tsc -p . --watch",
14
+ "start": "node bin/icopilot.js",
15
+ "lint": "eslint \"src/**/*.ts\" \"tests/**/*.ts\"",
16
+ "lint:fix": "eslint --fix \"src/**/*.ts\" \"tests/**/*.ts\"",
17
+ "format": "prettier --write \"src/**/*.ts\" \"tests/**/*.ts\" \"*.md\"",
18
+ "format:check": "prettier --check \"src/**/*.ts\" \"tests/**/*.ts\"",
19
+ "test": "vitest run",
20
+ "test:watch": "vitest",
21
+ "coverage": "vitest run --coverage",
22
+ "typecheck": "tsc -p . --noEmit",
23
+ "prepare": "tsc -p .",
24
+ "release": "node scripts/release.mjs",
25
+ "release:patch": "node scripts/release.mjs patch",
26
+ "release:minor": "node scripts/release.mjs minor",
27
+ "release:major": "node scripts/release.mjs major",
28
+ "changelog": "node scripts/changelog.mjs",
29
+ "smoke": "node scripts/smoke.mjs",
30
+ "test:smoke": "vitest run tests/smoke --config vitest.smoke.config.ts",
31
+ "screenshots": "node scripts/screenshots.mjs",
32
+ "perf:cold-start": "node scripts/cold-start.mjs"
33
+ },
34
+ "engines": {
35
+ "node": ">=18.17.0"
36
+ },
37
+ "dependencies": {
38
+ "@inquirer/prompts": "^5.3.8",
39
+ "chalk": "^5.3.0",
40
+ "commander": "^12.1.0",
41
+ "diff": "^5.2.0",
42
+ "dotenv": "^16.4.5",
43
+ "fast-glob": "^3.3.2",
44
+ "gpt-tokenizer": "^2.1.2",
45
+ "marked": "^13.0.3",
46
+ "marked-terminal": "^7.1.0",
47
+ "openai": "^4.56.0",
48
+ "ora": "^8.0.1",
49
+ "proxy-agent": "^6.5.0",
50
+ "simple-git": "^3.25.0",
51
+ "yaml": "^2.9.0"
52
+ },
53
+ "devDependencies": {
54
+ "@types/diff": "^5.2.1",
55
+ "@types/marked-terminal": "^6.1.1",
56
+ "@types/node": "^20.14.10",
57
+ "@typescript-eslint/eslint-plugin": "^7.18.0",
58
+ "@typescript-eslint/parser": "^7.18.0",
59
+ "@vitest/coverage-v8": "^1.6.0",
60
+ "eslint": "^8.57.0",
61
+ "eslint-config-prettier": "^9.1.0",
62
+ "eslint-plugin-prettier": "^5.2.1",
63
+ "prettier": "^3.3.3",
64
+ "typescript": "^5.5.4",
65
+ "vitest": "^1.6.0"
66
+ },
67
+ "license": "MIT",
68
+ "files": [
69
+ "bin",
70
+ "dist",
71
+ "README.md",
72
+ "CHANGELOG.md",
73
+ "LICENSE"
74
+ ],
75
+ "repository": {
76
+ "type": "git",
77
+ "url": ""
78
+ }
79
79
  }