@a1st/aix 0.5.1 → 0.6.0

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 (48) hide show
  1. package/README.md +13 -0
  2. package/bin/aixd.mjs +15 -0
  3. package/dist/cli.d.ts +3 -0
  4. package/dist/cli.d.ts.map +1 -0
  5. package/dist/cli.js +5 -0
  6. package/dist/cli.js.map +1 -0
  7. package/dist/commands/add/mcp.d.ts.map +1 -1
  8. package/dist/commands/add/mcp.js +13 -4
  9. package/dist/commands/add/mcp.js.map +1 -1
  10. package/dist/commands/add/prompt.d.ts +1 -0
  11. package/dist/commands/add/prompt.d.ts.map +1 -1
  12. package/dist/commands/add/prompt.js +107 -70
  13. package/dist/commands/add/prompt.js.map +1 -1
  14. package/dist/commands/add/rule.d.ts +1 -0
  15. package/dist/commands/add/rule.d.ts.map +1 -1
  16. package/dist/commands/add/rule.js +104 -67
  17. package/dist/commands/add/rule.js.map +1 -1
  18. package/dist/commands/add/skill.d.ts +1 -0
  19. package/dist/commands/add/skill.d.ts.map +1 -1
  20. package/dist/commands/add/skill.js +97 -55
  21. package/dist/commands/add/skill.js.map +1 -1
  22. package/dist/commands/init.d.ts.map +1 -1
  23. package/dist/commands/init.js +4 -4
  24. package/dist/commands/init.js.map +1 -1
  25. package/dist/commands/install.js +1 -1
  26. package/dist/commands/install.js.map +1 -1
  27. package/dist/commands/list/index.d.ts +11 -0
  28. package/dist/commands/list/index.d.ts.map +1 -1
  29. package/dist/commands/list/index.js +128 -91
  30. package/dist/commands/list/index.js.map +1 -1
  31. package/dist/commands/sync.d.ts.map +1 -1
  32. package/dist/commands/sync.js +3 -3
  33. package/dist/commands/sync.js.map +1 -1
  34. package/dist/flags/target.d.ts +1 -1
  35. package/dist/flags/target.d.ts.map +1 -1
  36. package/dist/flags/target.js +4 -4
  37. package/dist/flags/target.js.map +1 -1
  38. package/dist/lib/add-command-helper.d.ts +25 -0
  39. package/dist/lib/add-command-helper.d.ts.map +1 -1
  40. package/dist/lib/add-command-helper.js +51 -3
  41. package/dist/lib/add-command-helper.js.map +1 -1
  42. package/dist/lib/install-helper.d.ts.map +1 -1
  43. package/dist/lib/install-helper.js +38 -7
  44. package/dist/lib/install-helper.js.map +1 -1
  45. package/oclif.manifest.json +235 -225
  46. package/package.json +7 -6
  47. package/bin/dev.js +0 -13
  48. package/bin/run.js +0 -5
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@a1st/aix",
3
- "version": "0.5.1",
3
+ "version": "0.6.0",
4
4
  "description": "CLI for aix - unified AI agent configuration",
5
5
  "keywords": [
6
6
  "agents",
@@ -23,7 +23,8 @@
23
23
  "directory": "packages/cli"
24
24
  },
25
25
  "bin": {
26
- "aix": "./bin/run.js"
26
+ "aix": "./dist/cli.js",
27
+ "aixd": "./bin/aixd.mjs"
27
28
  },
28
29
  "files": [
29
30
  "bin",
@@ -41,9 +42,9 @@
41
42
  "scripts": {
42
43
  "prepack": "npm run build",
43
44
  "postpack": "rm -f oclif.manifest.json",
44
- "build": "rm -rf dist tsconfig.build.tsbuildinfo && tsc -p tsconfig.build.json && npm run manifest",
45
+ "build": "rm -rf dist tsconfig.build.tsbuildinfo && tsc -p tsconfig.build.json && chmod +x dist/cli.js && npm run manifest",
45
46
  "manifest": "oclif manifest",
46
- "dev": "node --loader ts-node/esm bin/dev.js",
47
+ "dev": "node bin/aixd.mjs",
47
48
  "test": "vitest run",
48
49
  "test:watch": "vitest"
49
50
  },
@@ -58,7 +59,7 @@
58
59
  "@oclif/plugin-autocomplete": "^3.2.25",
59
60
  "@oclif/plugin-help": "^6.2.27",
60
61
  "@oclif/plugin-not-found": "^3.2.39",
61
- "@oclif/plugin-update": "^4.7.4",
62
+ "@oclif/plugin-update": "4.7.57",
62
63
  "@oclif/plugin-version": "^2.2.24",
63
64
  "@oclif/table": "0.3.6",
64
65
  "@yeskunall/astro-umami": "0.0.8",
@@ -78,7 +79,7 @@
78
79
  "@types/node": "^22.10.2",
79
80
  "@types/react": "18.2.45",
80
81
  "oclif": "^4.17.8",
81
- "ts-node": "^10.9.2",
82
+ "tsx": "4.23.1",
82
83
  "typescript": "^5.7.2",
83
84
  "vitest": "^4.1.5"
84
85
  },
package/bin/dev.js DELETED
@@ -1,13 +0,0 @@
1
- #!/usr/bin/env node
2
-
3
- import { register } from 'node:module';
4
- import { dirname } from 'node:path';
5
- import { fileURLToPath } from 'node:url';
6
-
7
- // Resolve ts-exec from this file's directory, not cwd
8
- const __dirname = dirname(fileURLToPath(import.meta.url));
9
- register('@poppinss/ts-exec', new URL(`file://${__dirname}/`));
10
-
11
- const { execute } = await import('@oclif/core');
12
-
13
- await execute({ development: true, dir: import.meta.url });
package/bin/run.js DELETED
@@ -1,5 +0,0 @@
1
- #!/usr/bin/env node
2
-
3
- import { execute } from '@oclif/core';
4
-
5
- await execute({ dir: import.meta.url });