@aragon-agent/cli 0.6.78 → 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.
- package/README.md +89 -21
- package/dist/agent/controller.d.ts +36 -0
- package/dist/agent/controller.js +108 -0
- package/dist/agent/system-prompt.d.ts +10 -0
- package/dist/agent/system-prompt.js +6 -0
- package/dist/app/App.js +108 -27
- package/dist/app/index-console.d.ts +59 -0
- package/dist/app/index-console.js +99 -0
- package/dist/cli.js +80 -4
- package/dist/commands/builtins.js +4 -2
- package/dist/commands/catalog.js +7 -1
- package/dist/commands/index-build.js +10 -1
- package/dist/commands/index-command.d.ts +43 -0
- package/dist/commands/index-command.js +244 -0
- package/dist/commands/index-copy.d.ts +50 -0
- package/dist/commands/index-copy.js +82 -0
- package/dist/commands/kit-command.d.ts +10 -0
- package/dist/commands/kit-command.js +8 -2
- package/dist/commands/kits-command.d.ts +35 -0
- package/dist/commands/kits-command.js +137 -0
- package/dist/commands/registry.d.ts +10 -0
- package/dist/compaction/memory-agent.js +61 -0
- package/dist/config/env.d.ts +30 -0
- package/dist/config/env.js +47 -0
- package/dist/config/launch-notice.d.ts +61 -0
- package/dist/config/launch-notice.js +138 -0
- package/dist/config/load.d.ts +20 -0
- package/dist/config/load.js +72 -2
- package/dist/diagnostics/info.d.ts +28 -0
- package/dist/diagnostics/info.js +41 -0
- package/dist/exec/cli-commands.d.ts +24 -0
- package/dist/exec/cli-commands.js +48 -1
- package/dist/exec/index.js +9 -0
- package/dist/exec/options.d.ts +12 -0
- package/dist/host/index-build.d.ts +38 -7
- package/dist/host/index-build.js +74 -20
- package/dist/indexer/commit.d.ts +77 -0
- package/dist/indexer/commit.js +145 -0
- package/dist/indexer/discover.d.ts +50 -0
- package/dist/indexer/discover.js +147 -0
- package/dist/indexer/engine.d.ts +51 -0
- package/dist/indexer/engine.js +477 -0
- package/dist/indexer/errors.d.ts +62 -0
- package/dist/indexer/errors.js +86 -0
- package/dist/indexer/finalize.d.ts +30 -0
- package/dist/indexer/finalize.js +19 -0
- package/dist/indexer/fingerprint.d.ts +41 -0
- package/dist/indexer/fingerprint.js +49 -0
- package/dist/indexer/ignore.d.ts +59 -0
- package/dist/indexer/ignore.js +140 -0
- package/dist/indexer/index.d.ts +21 -0
- package/dist/indexer/index.js +21 -0
- package/dist/indexer/l0.d.ts +55 -0
- package/dist/indexer/l0.js +168 -0
- package/dist/indexer/limits.d.ts +75 -0
- package/dist/indexer/limits.js +106 -0
- package/dist/indexer/link.d.ts +68 -0
- package/dist/indexer/link.js +220 -0
- package/dist/indexer/lock.d.ts +115 -0
- package/dist/indexer/lock.js +270 -0
- package/dist/indexer/parse.d.ts +68 -0
- package/dist/indexer/parse.js +163 -0
- package/dist/indexer/paths.d.ts +99 -0
- package/dist/indexer/paths.js +198 -0
- package/dist/indexer/plan.d.ts +48 -0
- package/dist/indexer/plan.js +80 -0
- package/dist/indexer/rank.d.ts +42 -0
- package/dist/indexer/rank.js +125 -0
- package/dist/indexer/read/cache.d.ts +28 -0
- package/dist/indexer/read/cache.js +54 -0
- package/dist/indexer/read/query.d.ts +48 -0
- package/dist/indexer/read/query.js +361 -0
- package/dist/indexer/scanner/extract.d.ts +36 -0
- package/dist/indexer/scanner/extract.js +134 -0
- package/dist/indexer/scanner/mask.d.ts +44 -0
- package/dist/indexer/scanner/mask.js +198 -0
- package/dist/indexer/scanner/py-extract.d.ts +29 -0
- package/dist/indexer/scanner/py-extract.js +164 -0
- package/dist/indexer/scanner/refs.d.ts +31 -0
- package/dist/indexer/scanner/refs.js +116 -0
- package/dist/indexer/scanner/ts-extract.d.ts +39 -0
- package/dist/indexer/scanner/ts-extract.js +277 -0
- package/dist/indexer/store.d.ts +88 -0
- package/dist/indexer/store.js +309 -0
- package/dist/indexer/tools.d.ts +120 -0
- package/dist/indexer/tools.js +132 -0
- package/dist/indexer/types.d.ts +225 -0
- package/dist/indexer/types.js +44 -0
- package/dist/indexer/wiring.d.ts +45 -0
- package/dist/indexer/wiring.js +42 -0
- package/dist/tools/index.d.ts +16 -2
- package/dist/tools/index.js +23 -0
- package/package.json +3 -3
package/dist/tools/index.js
CHANGED
|
@@ -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.
|
|
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.
|
|
62
|
-
"@aragon-agent/tui": "0.0.
|
|
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",
|