ai-cmd 1.0.2 → 1.0.3

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.
Files changed (49) hide show
  1. package/README.md +89 -10
  2. package/dist/analytics/client.d.ts +2 -0
  3. package/dist/analytics/client.js +95 -0
  4. package/dist/analytics/client.js.map +1 -0
  5. package/dist/analytics/session.d.ts +15 -0
  6. package/dist/analytics/session.js +70 -0
  7. package/dist/analytics/session.js.map +1 -0
  8. package/dist/cli/commands.d.ts +2 -1
  9. package/dist/cli/commands.js +134 -90
  10. package/dist/cli/commands.js.map +1 -1
  11. package/dist/cli/repl.d.ts +4 -1
  12. package/dist/cli/repl.js +19 -1
  13. package/dist/cli/repl.js.map +1 -1
  14. package/dist/config/configurator.d.ts +18 -0
  15. package/dist/config/configurator.js +106 -0
  16. package/dist/config/configurator.js.map +1 -0
  17. package/dist/config/providerCatalog.d.ts +8 -0
  18. package/dist/config/providerCatalog.js +33 -0
  19. package/dist/config/providerCatalog.js.map +1 -0
  20. package/dist/config/userConfig.d.ts +2 -0
  21. package/dist/config/userConfig.js +68 -18
  22. package/dist/config/userConfig.js.map +1 -1
  23. package/dist/core/generateCommand.js +7 -2
  24. package/dist/core/generateCommand.js.map +1 -1
  25. package/dist/core/prompts.d.ts +1 -0
  26. package/dist/core/prompts.js +4 -0
  27. package/dist/core/prompts.js.map +1 -1
  28. package/dist/providers/anthropic.d.ts +8 -0
  29. package/dist/providers/anthropic.js +67 -0
  30. package/dist/providers/anthropic.js.map +1 -0
  31. package/dist/providers/factory.js +16 -1
  32. package/dist/providers/factory.js.map +1 -1
  33. package/dist/providers/google.d.ts +8 -0
  34. package/dist/providers/google.js +76 -0
  35. package/dist/providers/google.js.map +1 -0
  36. package/dist/providers/ollama.d.ts +8 -0
  37. package/dist/providers/ollama.js +67 -0
  38. package/dist/providers/ollama.js.map +1 -0
  39. package/dist/providers/openai.d.ts +2 -2
  40. package/dist/providers/openai.js +10 -6
  41. package/dist/providers/openai.js.map +1 -1
  42. package/dist/types/index.d.ts +28 -2
  43. package/dist/utils/branding.d.ts +1 -1
  44. package/dist/utils/branding.js +7 -2
  45. package/dist/utils/branding.js.map +1 -1
  46. package/dist/workspace/inspectWorkspace.d.ts +1 -0
  47. package/dist/workspace/inspectWorkspace.js +174 -0
  48. package/dist/workspace/inspectWorkspace.js.map +1 -0
  49. package/package.json +68 -68
package/package.json CHANGED
@@ -1,69 +1,69 @@
1
- {
2
- "name": "ai-cmd",
3
- "version": "1.0.2",
4
- "description": "Natural-language shell command generation with safe execution for Unix-like terminals.",
5
- "type": "module",
6
- "license": "MIT",
7
- "author": "Ottili ONE",
8
- "homepage": "https://github.com/Ottili-ONE/ai-cmd",
9
- "repository": {
10
- "type": "git",
11
- "url": "https://github.com/Ottili-ONE/ai-cmd.git"
12
- },
13
- "bugs": {
14
- "url": "https://github.com/Ottili-ONE/ai-cmd/issues"
15
- },
16
- "keywords": [
17
- "cli",
18
- "shell",
19
- "terminal",
20
- "ai",
21
- "commands",
22
- "developer-tools"
23
- ],
24
- "engines": {
25
- "node": ">=20"
26
- },
27
- "bin": {
28
- "ai": "./dist/cli/index.js"
29
- },
30
- "files": [
31
- "dist",
32
- "README.md",
33
- "LICENSE"
34
- ],
35
- "scripts": {
36
- "build": "tsc -p tsconfig.json",
37
- "typecheck": "tsc -p tsconfig.json --noEmit",
38
- "dev": "tsx src/cli/index.ts",
39
- "lint": "eslint .",
40
- "format": "prettier --check .",
41
- "format:write": "prettier --write .",
42
- "test": "node ./scripts/run-vitest.mjs",
43
- "test:watch": "vitest",
44
- "publish:variants": "node ./scripts/publish-variants.mjs"
45
- },
46
- "dependencies": {
47
- "chalk": "^5.4.1",
48
- "clipboardy": "^4.0.0",
49
- "commander": "^13.1.0",
50
- "execa": "^9.5.2",
51
- "jsonrepair": "^3.13.0",
52
- "prompts": "^2.4.2",
53
- "shell-quote": "^1.8.3",
54
- "zod": "^3.24.2"
55
- },
56
- "devDependencies": {
57
- "@eslint/js": "^9.23.0",
58
- "@types/node": "^22.13.13",
59
- "@types/prompts": "^2.4.9",
60
- "@types/shell-quote": "^1.7.5",
61
- "eslint": "^9.23.0",
62
- "globals": "^16.0.0",
63
- "prettier": "^3.5.3",
64
- "tsx": "^4.19.3",
65
- "typescript": "^5.8.2",
66
- "typescript-eslint": "^8.28.0",
67
- "vitest": "^3.0.9"
68
- }
1
+ {
2
+ "name": "ai-cmd",
3
+ "version": "1.0.3",
4
+ "description": "Natural-language shell command generation with safe execution for Unix-like terminals.",
5
+ "type": "module",
6
+ "license": "MIT",
7
+ "author": "Ottili ONE",
8
+ "homepage": "https://github.com/Ottili-ONE/ai-cmd",
9
+ "repository": {
10
+ "type": "git",
11
+ "url": "https://github.com/Ottili-ONE/ai-cmd.git"
12
+ },
13
+ "bugs": {
14
+ "url": "https://github.com/Ottili-ONE/ai-cmd/issues"
15
+ },
16
+ "keywords": [
17
+ "cli",
18
+ "shell",
19
+ "terminal",
20
+ "ai",
21
+ "commands",
22
+ "developer-tools"
23
+ ],
24
+ "engines": {
25
+ "node": ">=20"
26
+ },
27
+ "bin": {
28
+ "ai": "./dist/cli/index.js"
29
+ },
30
+ "files": [
31
+ "dist",
32
+ "README.md",
33
+ "LICENSE"
34
+ ],
35
+ "scripts": {
36
+ "build": "tsc -p tsconfig.json",
37
+ "typecheck": "tsc -p tsconfig.json --noEmit",
38
+ "dev": "tsx src/cli/index.ts",
39
+ "lint": "eslint .",
40
+ "format": "prettier --check .",
41
+ "format:write": "prettier --write .",
42
+ "test": "node ./scripts/run-vitest.mjs",
43
+ "test:watch": "vitest",
44
+ "publish:variants": "node ./scripts/publish-variants.mjs"
45
+ },
46
+ "dependencies": {
47
+ "chalk": "^5.4.1",
48
+ "clipboardy": "^4.0.0",
49
+ "commander": "^13.1.0",
50
+ "execa": "^9.5.2",
51
+ "jsonrepair": "^3.13.0",
52
+ "prompts": "^2.4.2",
53
+ "shell-quote": "^1.8.3",
54
+ "zod": "^3.24.2"
55
+ },
56
+ "devDependencies": {
57
+ "@eslint/js": "^9.23.0",
58
+ "@types/node": "^22.13.13",
59
+ "@types/prompts": "^2.4.9",
60
+ "@types/shell-quote": "^1.7.5",
61
+ "eslint": "^9.23.0",
62
+ "globals": "^16.0.0",
63
+ "prettier": "^3.5.3",
64
+ "tsx": "^4.19.3",
65
+ "typescript": "^5.8.2",
66
+ "typescript-eslint": "^8.28.0",
67
+ "vitest": "^3.0.9"
68
+ }
69
69
  }