@aragon-agent/cli 0.6.77 → 0.6.79

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 (93) hide show
  1. package/README.md +89 -21
  2. package/dist/agent/controller.d.ts +36 -0
  3. package/dist/agent/controller.js +108 -0
  4. package/dist/agent/system-prompt.d.ts +10 -0
  5. package/dist/agent/system-prompt.js +6 -0
  6. package/dist/app/App.js +108 -27
  7. package/dist/app/index-console.d.ts +59 -0
  8. package/dist/app/index-console.js +99 -0
  9. package/dist/cli.js +80 -4
  10. package/dist/commands/builtins.js +4 -2
  11. package/dist/commands/catalog.js +7 -1
  12. package/dist/commands/index-build.js +10 -1
  13. package/dist/commands/index-command.d.ts +43 -0
  14. package/dist/commands/index-command.js +244 -0
  15. package/dist/commands/index-copy.d.ts +50 -0
  16. package/dist/commands/index-copy.js +82 -0
  17. package/dist/commands/kit-command.d.ts +10 -0
  18. package/dist/commands/kit-command.js +8 -2
  19. package/dist/commands/kits-command.d.ts +35 -0
  20. package/dist/commands/kits-command.js +137 -0
  21. package/dist/commands/registry.d.ts +10 -0
  22. package/dist/compaction/memory-agent.js +61 -0
  23. package/dist/config/env.d.ts +30 -0
  24. package/dist/config/env.js +47 -0
  25. package/dist/config/launch-notice.d.ts +61 -0
  26. package/dist/config/launch-notice.js +138 -0
  27. package/dist/config/load.d.ts +20 -0
  28. package/dist/config/load.js +72 -2
  29. package/dist/diagnostics/info.d.ts +28 -0
  30. package/dist/diagnostics/info.js +41 -0
  31. package/dist/exec/cli-commands.d.ts +24 -0
  32. package/dist/exec/cli-commands.js +48 -1
  33. package/dist/exec/index.js +9 -0
  34. package/dist/exec/options.d.ts +12 -0
  35. package/dist/host/index-build.d.ts +38 -7
  36. package/dist/host/index-build.js +74 -20
  37. package/dist/indexer/commit.d.ts +77 -0
  38. package/dist/indexer/commit.js +145 -0
  39. package/dist/indexer/discover.d.ts +50 -0
  40. package/dist/indexer/discover.js +147 -0
  41. package/dist/indexer/engine.d.ts +51 -0
  42. package/dist/indexer/engine.js +477 -0
  43. package/dist/indexer/errors.d.ts +62 -0
  44. package/dist/indexer/errors.js +86 -0
  45. package/dist/indexer/finalize.d.ts +30 -0
  46. package/dist/indexer/finalize.js +19 -0
  47. package/dist/indexer/fingerprint.d.ts +41 -0
  48. package/dist/indexer/fingerprint.js +49 -0
  49. package/dist/indexer/ignore.d.ts +59 -0
  50. package/dist/indexer/ignore.js +140 -0
  51. package/dist/indexer/index.d.ts +21 -0
  52. package/dist/indexer/index.js +21 -0
  53. package/dist/indexer/l0.d.ts +55 -0
  54. package/dist/indexer/l0.js +168 -0
  55. package/dist/indexer/limits.d.ts +75 -0
  56. package/dist/indexer/limits.js +106 -0
  57. package/dist/indexer/link.d.ts +68 -0
  58. package/dist/indexer/link.js +220 -0
  59. package/dist/indexer/lock.d.ts +115 -0
  60. package/dist/indexer/lock.js +270 -0
  61. package/dist/indexer/parse.d.ts +68 -0
  62. package/dist/indexer/parse.js +163 -0
  63. package/dist/indexer/paths.d.ts +99 -0
  64. package/dist/indexer/paths.js +198 -0
  65. package/dist/indexer/plan.d.ts +48 -0
  66. package/dist/indexer/plan.js +80 -0
  67. package/dist/indexer/rank.d.ts +42 -0
  68. package/dist/indexer/rank.js +125 -0
  69. package/dist/indexer/read/cache.d.ts +28 -0
  70. package/dist/indexer/read/cache.js +54 -0
  71. package/dist/indexer/read/query.d.ts +48 -0
  72. package/dist/indexer/read/query.js +361 -0
  73. package/dist/indexer/scanner/extract.d.ts +36 -0
  74. package/dist/indexer/scanner/extract.js +134 -0
  75. package/dist/indexer/scanner/mask.d.ts +44 -0
  76. package/dist/indexer/scanner/mask.js +198 -0
  77. package/dist/indexer/scanner/py-extract.d.ts +29 -0
  78. package/dist/indexer/scanner/py-extract.js +164 -0
  79. package/dist/indexer/scanner/refs.d.ts +31 -0
  80. package/dist/indexer/scanner/refs.js +116 -0
  81. package/dist/indexer/scanner/ts-extract.d.ts +39 -0
  82. package/dist/indexer/scanner/ts-extract.js +277 -0
  83. package/dist/indexer/store.d.ts +88 -0
  84. package/dist/indexer/store.js +309 -0
  85. package/dist/indexer/tools.d.ts +120 -0
  86. package/dist/indexer/tools.js +132 -0
  87. package/dist/indexer/types.d.ts +225 -0
  88. package/dist/indexer/types.js +44 -0
  89. package/dist/indexer/wiring.d.ts +45 -0
  90. package/dist/indexer/wiring.js +42 -0
  91. package/dist/tools/index.d.ts +16 -2
  92. package/dist/tools/index.js +23 -0
  93. package/package.json +3 -3
@@ -130,6 +130,12 @@ export const SKILL_TOOL_FLOOR = [
130
130
  // mode the user is actually in.
131
131
  'job_wait',
132
132
  'job_list',
133
+ // `code_query` joins the FLOOR (tui-ctrl-i-ast-index 7.3). It READS the generated
134
+ // artifact and can write nothing: not the workspace, not the home directory, not a
135
+ // process. That is the floor's stated membership test, and it is also what the design
136
+ // means by "read-only by construction" - absent from PLAN_MODE_BLOCKED_TOOLS and from
137
+ // CALLER_GATED_TOOLS, so no new exemption is needed for plan mode or a read-only seat.
138
+ 'code_query',
133
139
  // `memory_search` / `memory_read` join the FLOOR for the reason `job_wait` did: reading
134
140
  // the user's saved notes cannot write to disk, and a skill whose `allowed-tools` omits
135
141
  // them would otherwise be unable to consult memory at all. `memory_write` is the
@@ -247,6 +253,10 @@ export const HOST_TOOL_NAMES = [
247
253
  // (long-task-jobs §4.3).
248
254
  'job_wait',
249
255
  'job_list',
256
+ // `code_query` (tui-ctrl-i-ast-index 7.3): in the superset for the reason the two job names
257
+ // above are - `skills doctor` must answer `allowed-tools: [code_query]` even in a session where
258
+ // the index is off and the tool was never registered.
259
+ 'code_query',
250
260
  // The memory names (agent-memory 7.1): in the superset so `allowed-tools: [memory_read]`
251
261
  // is answerable by `skills doctor`. REGISTRATION is separate - headless runs and
252
262
  // subagents never register them - which is why the `exec` bridge's reserved-name set
@@ -470,6 +480,19 @@ export function createBuiltinTools(options) {
470
480
  ? withConfirmation(t, confirm, bypass, onBypass)
471
481
  : t));
472
482
  }
483
+ // AFTER THE BASE SEVEN, BEFORE `skillTools` (tui-ctrl-i-ast-index 7.3). THE POSITION IS
484
+ // LOAD-BEARING, not tidiness: two existing baselines read the TAIL of this array -
485
+ // `skills-controller.test.ts` asserts the four skill names are `slice(-4)` and that
486
+ // `ask_user` / `submit_plan` are `slice(-2)`. Appending `code_query` after them (where the
487
+ // other host groups sit) silently moved both tails and taught nothing. Here the groups that
488
+ // own a tail keep it, and `HOST_TOOL_NAMES` still changes by one insertion.
489
+ //
490
+ // RAW, never `hinted(...)`: a hint on a structure lookup would be the index advertising
491
+ // itself. INSIDE the factory, so `tools.test.ts::C7` keeps comparing `HOST_TOOL_NAMES`
492
+ // against what this function PRODUCES.
493
+ if (options.indexTools && options.indexTools.length > 0) {
494
+ tools = [...tools, ...options.indexTools];
495
+ }
473
496
  if (options.skillTools && options.skillTools.length > 0) {
474
497
  tools = [...tools, ...hinted(options.skillTools)];
475
498
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aragon-agent/cli",
3
- "version": "0.6.77",
3
+ "version": "0.6.79",
4
4
  "description": "AragonAgent CLI — a Claude-Code / Codex-style interactive terminal UI (TUI) on top of the @aragon-agent/core engine. Installable and runnable via npm / npx.",
5
5
  "license": "MIT",
6
6
  "author": "AragonAgent contributors",
@@ -58,8 +58,8 @@
58
58
  "prepublishOnly": "npm run build"
59
59
  },
60
60
  "dependencies": {
61
- "@aragon-agent/core": "^0.2.89",
62
- "@aragon-agent/tui": "0.0.30",
61
+ "@aragon-agent/core": "^0.2.91",
62
+ "@aragon-agent/tui": "0.0.32",
63
63
  "commander": "^12.1.0",
64
64
  "dotenv": "^16.6.1",
65
65
  "env-paths": "^3.0.0",