@vibe-agent-toolkit/cli 0.2.0-rc.4 → 0.2.0-rc.6

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 (92) hide show
  1. package/dist/bin.js +35 -2
  2. package/dist/bin.js.map +1 -1
  3. package/dist/commands/audit.d.ts.map +1 -1
  4. package/dist/commands/audit.js +169 -17
  5. package/dist/commands/audit.js.map +1 -1
  6. package/dist/commands/claude/claude-config.d.ts.map +1 -1
  7. package/dist/commands/claude/claude-config.js +6 -0
  8. package/dist/commands/claude/claude-config.js.map +1 -1
  9. package/dist/commands/claude/org/helpers.d.ts +59 -1
  10. package/dist/commands/claude/org/helpers.d.ts.map +1 -1
  11. package/dist/commands/claude/org/helpers.js +58 -7
  12. package/dist/commands/claude/org/helpers.js.map +1 -1
  13. package/dist/commands/claude/org/index.d.ts.map +1 -1
  14. package/dist/commands/claude/org/index.js +24 -16
  15. package/dist/commands/claude/org/index.js.map +1 -1
  16. package/dist/commands/claude/org/skills.d.ts +428 -0
  17. package/dist/commands/claude/org/skills.d.ts.map +1 -1
  18. package/dist/commands/claude/org/skills.js +1189 -91
  19. package/dist/commands/claude/org/skills.js.map +1 -1
  20. package/dist/commands/claude/org/users.d.ts.map +1 -1
  21. package/dist/commands/claude/org/users.js +3 -1
  22. package/dist/commands/claude/org/users.js.map +1 -1
  23. package/dist/commands/claude/org/workspaces.d.ts.map +1 -1
  24. package/dist/commands/claude/org/workspaces.js +5 -2
  25. package/dist/commands/claude/org/workspaces.js.map +1 -1
  26. package/dist/commands/claude/plugin/install.js +0 -1
  27. package/dist/commands/claude/plugin/install.js.map +1 -1
  28. package/dist/commands/corpus/runner.d.ts.map +1 -1
  29. package/dist/commands/corpus/runner.js +1 -19
  30. package/dist/commands/corpus/runner.js.map +1 -1
  31. package/dist/commands/inventory.js +1 -1
  32. package/dist/commands/inventory.js.map +1 -1
  33. package/dist/commands/resources/check-progress.d.ts +145 -0
  34. package/dist/commands/resources/check-progress.d.ts.map +1 -0
  35. package/dist/commands/resources/check-progress.js +205 -0
  36. package/dist/commands/resources/check-progress.js.map +1 -0
  37. package/dist/commands/resources/check-supervisor.d.ts +465 -0
  38. package/dist/commands/resources/check-supervisor.d.ts.map +1 -0
  39. package/dist/commands/resources/check-supervisor.js +566 -0
  40. package/dist/commands/resources/check-supervisor.js.map +1 -0
  41. package/dist/commands/resources/check.d.ts +454 -0
  42. package/dist/commands/resources/check.d.ts.map +1 -0
  43. package/dist/commands/resources/check.js +1237 -0
  44. package/dist/commands/resources/check.js.map +1 -0
  45. package/dist/commands/resources/index.d.ts.map +1 -1
  46. package/dist/commands/resources/index.js +277 -6
  47. package/dist/commands/resources/index.js.map +1 -1
  48. package/dist/commands/resources/query.d.ts +89 -0
  49. package/dist/commands/resources/query.d.ts.map +1 -0
  50. package/dist/commands/resources/query.js +146 -0
  51. package/dist/commands/resources/query.js.map +1 -0
  52. package/dist/commands/resources/scan.js +1 -1
  53. package/dist/commands/resources/scan.js.map +1 -1
  54. package/dist/commands/skill/review-checklist.d.ts.map +1 -1
  55. package/dist/commands/skill/review-checklist.js +35 -0
  56. package/dist/commands/skill/review-checklist.js.map +1 -1
  57. package/dist/commands/skill/test/configure.d.ts +37 -0
  58. package/dist/commands/skill/test/configure.d.ts.map +1 -1
  59. package/dist/commands/skill/test/configure.js +57 -12
  60. package/dist/commands/skill/test/configure.js.map +1 -1
  61. package/dist/commands/skills/install.js +0 -1
  62. package/dist/commands/skills/install.js.map +1 -1
  63. package/dist/commands/skills/skill-discovery.d.ts.map +1 -1
  64. package/dist/commands/skills/skill-discovery.js +4 -2
  65. package/dist/commands/skills/skill-discovery.js.map +1 -1
  66. package/dist/utils/agent-runner.d.ts.map +1 -1
  67. package/dist/utils/agent-runner.js +7 -3
  68. package/dist/utils/agent-runner.js.map +1 -1
  69. package/dist/utils/command-error.d.ts +56 -1
  70. package/dist/utils/command-error.d.ts.map +1 -1
  71. package/dist/utils/command-error.js +66 -3
  72. package/dist/utils/command-error.js.map +1 -1
  73. package/dist/utils/config-loader.d.ts.map +1 -1
  74. package/dist/utils/config-loader.js +30 -7
  75. package/dist/utils/config-loader.js.map +1 -1
  76. package/dist/utils/issue-severity.d.ts +12 -5
  77. package/dist/utils/issue-severity.d.ts.map +1 -1
  78. package/dist/utils/issue-severity.js +1 -1
  79. package/dist/utils/issue-severity.js.map +1 -1
  80. package/dist/utils/projection-query.d.ts +263 -0
  81. package/dist/utils/projection-query.d.ts.map +1 -0
  82. package/dist/utils/projection-query.js +262 -0
  83. package/dist/utils/projection-query.js.map +1 -0
  84. package/dist/utils/projection-store.d.ts +104 -2
  85. package/dist/utils/projection-store.d.ts.map +1 -1
  86. package/dist/utils/projection-store.js +126 -4
  87. package/dist/utils/projection-store.js.map +1 -1
  88. package/dist/utils/vat-bin-path.d.ts +36 -0
  89. package/dist/utils/vat-bin-path.d.ts.map +1 -0
  90. package/dist/utils/vat-bin-path.js +49 -0
  91. package/dist/utils/vat-bin-path.js.map +1 -0
  92. package/package.json +25 -14
@@ -0,0 +1,49 @@
1
+ /**
2
+ * Where the built vat CLI entry is, for the commands that re-invoke it as a
3
+ * child process.
4
+ *
5
+ * ## ðŸŠĪ `dist/bin.js`, deliberately NOT `dist/bin/vat.js`
6
+ *
7
+ * `packages/lab/src/harness/instrument.ts` documents `dist/bin/vat.js` as a
8
+ * re-resolving WRAPPER: it looks the CLI up again at run time, so spawning it
9
+ * can execute a different build than the one the caller is running from. A
10
+ * supervisor that thinks it is bounding its own code, and a corpus runner that
11
+ * thinks it is auditing with its own validators, both need the entry point that
12
+ * cannot be redirected.
13
+ *
14
+ * ## Why the two branches
15
+ *
16
+ * `node` cannot execute `.ts`, so a caller running from SOURCE under vitest
17
+ * still has to reach the COMPILED entry — which is why the source-tree branch
18
+ * walks across to `packages/cli/dist/bin.js` rather than to a sibling. A build
19
+ * is therefore a precondition for every test that spawns the CLI, and a system
20
+ * test that skipped it would prove things about a stale `dist`.
21
+ *
22
+ * ðŸŠĪ Shared rather than copied. This resolution lived inline in
23
+ * `commands/corpus/runner.ts` and a second caller wanted it; a second copy is a
24
+ * duplication-gate failure under this repo's zero-tolerance policy, and — worse
25
+ * — two copies drift, so one caller would keep spawning the wrapper long after
26
+ * the other stopped. The `__dirname`-relative hops below are correct for THIS
27
+ * module's location and nothing else, which is precisely why it is not a snippet
28
+ * to paste.
29
+ */
30
+ import { existsSync } from 'node:fs';
31
+ import { dirname } from 'node:path';
32
+ import { fileURLToPath } from 'node:url';
33
+ import { safePath } from '@vibe-agent-toolkit/utils';
34
+ const HERE = dirname(fileURLToPath(import.meta.url));
35
+ /**
36
+ * Resolve the path to the built vat CLI entry.
37
+ *
38
+ * @returns An absolute path to `dist/bin.js`
39
+ */
40
+ export function resolveVatBinPath() {
41
+ // Compiled tree: packages/cli/dist/utils/vat-bin-path.js → packages/cli/dist/bin.js
42
+ const compiled = safePath.resolve(HERE, '../bin.js');
43
+ // eslint-disable-next-line security/detect-non-literal-fs-filename -- internal path
44
+ if (existsSync(compiled))
45
+ return compiled;
46
+ // Source tree (vitest): packages/cli/src/utils/vat-bin-path.ts → packages/cli/dist/bin.js
47
+ return safePath.resolve(HERE, '../../dist/bin.js');
48
+ }
49
+ //# sourceMappingURL=vat-bin-path.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"vat-bin-path.js","sourceRoot":"","sources":["../../src/utils/vat-bin-path.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4BG;AAEH,OAAO,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AACrC,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACpC,OAAO,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AAEzC,OAAO,EAAE,QAAQ,EAAE,MAAM,2BAA2B,CAAC;AAErD,MAAM,IAAI,GAAG,OAAO,CAAC,aAAa,CAAC,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,CAAC;AAErD;;;;GAIG;AACH,MAAM,UAAU,iBAAiB;IAC/B,oFAAoF;IACpF,MAAM,QAAQ,GAAG,QAAQ,CAAC,OAAO,CAAC,IAAI,EAAE,WAAW,CAAC,CAAC;IACrD,oFAAoF;IACpF,IAAI,UAAU,CAAC,QAAQ,CAAC;QAAE,OAAO,QAAQ,CAAC;IAC1C,0FAA0F;IAC1F,OAAO,QAAQ,CAAC,OAAO,CAAC,IAAI,EAAE,mBAAmB,CAAC,CAAC;AACrD,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vibe-agent-toolkit/cli",
3
- "version": "0.2.0-rc.4",
3
+ "version": "0.2.0-rc.6",
4
4
  "description": "Command-line interface for vibe-agent-toolkit",
5
5
  "type": "module",
6
6
  "bin": {
@@ -46,14 +46,15 @@
46
46
  "//dependencies-note": "DO NOT add example agent packages or adopter packages here. Adopter packages (like vat-development-agents) depend on the CLI binary at build time — declaring them as deps creates a circular build dependency. They are built in a second turbo pass via package#task overrides in turbo.json.",
47
47
  "dependencies": {
48
48
  "@anthropic-ai/sdk": "^0.71.2",
49
- "@vibe-agent-toolkit/agent-config": "0.2.0-rc.4",
50
- "@vibe-agent-toolkit/schema": "0.2.0-rc.4",
51
- "@vibe-agent-toolkit/agent-skills": "0.2.0-rc.4",
52
- "@vibe-agent-toolkit/claude-marketplace": "0.2.0-rc.4",
53
- "@vibe-agent-toolkit/discovery": "0.2.0-rc.4",
54
- "@vibe-agent-toolkit/gateway-mcp": "0.2.0-rc.4",
55
- "@vibe-agent-toolkit/resources": "0.2.0-rc.4",
56
- "@vibe-agent-toolkit/utils": "0.2.0-rc.4",
49
+ "@vibe-agent-toolkit/agent-config": "0.2.0-rc.6",
50
+ "@vibe-agent-toolkit/agent-skills": "0.2.0-rc.6",
51
+ "@vibe-agent-toolkit/claude-marketplace": "0.2.0-rc.6",
52
+ "@vibe-agent-toolkit/discovery": "0.2.0-rc.6",
53
+ "@vibe-agent-toolkit/gateway-mcp": "0.2.0-rc.6",
54
+ "@vibe-agent-toolkit/projection-sqlite": "0.2.0-rc.6",
55
+ "@vibe-agent-toolkit/resources": "0.2.0-rc.6",
56
+ "@vibe-agent-toolkit/schema": "0.2.0-rc.6",
57
+ "@vibe-agent-toolkit/utils": "0.2.0-rc.6",
57
58
  "adm-zip": "^0.6.0",
58
59
  "commander": "^12.1.0",
59
60
  "picomatch": "^4.0.3",
@@ -68,7 +69,9 @@
68
69
  "@types/picomatch": "^4.0.2",
69
70
  "@types/semver": "^7.7.1",
70
71
  "@types/tar": "^6.1.13",
71
- "@vibe-agent-toolkit/dev-tools": "0.2.0-rc.4",
72
+ "@vibe-agent-toolkit/dev-tools": "0.2.0-rc.6",
73
+ "@vibe-agent-toolkit/rag": "0.2.0-rc.6",
74
+ "@vibe-agent-toolkit/rag-lancedb": "0.2.0-rc.6",
72
75
  "rimraf": "^6.0.1",
73
76
  "typescript": "^5.7.3",
74
77
  "vitest": "^3.2.4"
@@ -80,9 +83,17 @@
80
83
  "type": "git",
81
84
  "url": "https://github.com/jdutton/vibe-agent-toolkit.git"
82
85
  },
83
- "optionalDependencies": {
84
- "@vibe-agent-toolkit/projection-sqlite": "0.2.0-rc.4",
85
- "@vibe-agent-toolkit/rag": "0.2.0-rc.4",
86
- "@vibe-agent-toolkit/rag-lancedb": "0.2.0-rc.4"
86
+ "//peerDependencies-note": "The RAG backends are OPTIONAL PEERS, never optionalDependencies. `optionalDependencies` are INSTALLED BY DEFAULT by npm and pnpm alike - 'optional' there means the install may fail without failing the build, not that it is skipped - so declaring them that way shipped ~240 MB (onnxruntime-web 136 MB, a LanceDB platform binary 93 MB, a third apache-arrow, protobufjs) to every adopter, contradicting the seam in src/utils/optional-backend.ts that exists precisely to keep them out. Optional peers are NOT auto-installed, so the manifest now says what that module already says: these ship separately, and an absent one is a legible error naming the package to install. projection-sqlite is deliberately NOT in this group: it has zero third-party dependencies (only node:sqlite, which is built into Node) and a 152 KB dist, so the platform-binary argument that justifies the seam is simply false for it. It is also what `vat resources query` builds its ephemeral in-memory store from, and a query surface that works only where a backend was separately installed is the capability gate the projection design forbids.",
87
+ "peerDependencies": {
88
+ "@vibe-agent-toolkit/rag": "0.2.0-rc.6",
89
+ "@vibe-agent-toolkit/rag-lancedb": "0.2.0-rc.6"
90
+ },
91
+ "peerDependenciesMeta": {
92
+ "@vibe-agent-toolkit/rag": {
93
+ "optional": true
94
+ },
95
+ "@vibe-agent-toolkit/rag-lancedb": {
96
+ "optional": true
97
+ }
87
98
  }
88
99
  }