@aragon-agent/cli 0.6.51 → 0.6.52

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/CHANGELOG.md +2800 -2723
  2. package/README.md +81 -6
  3. package/dist/agent/controller.d.ts +91 -5
  4. package/dist/agent/controller.js +252 -31
  5. package/dist/agent/image-history.d.ts +93 -0
  6. package/dist/agent/image-history.js +239 -0
  7. package/dist/agent/image-input-prompt.d.ts +17 -0
  8. package/dist/agent/image-input-prompt.js +56 -0
  9. package/dist/agent/image-support.d.ts +51 -0
  10. package/dist/agent/image-support.js +40 -0
  11. package/dist/agent/prompt-options.d.ts +18 -0
  12. package/dist/agent/system-prompt.d.ts +13 -0
  13. package/dist/agent/system-prompt.js +2 -0
  14. package/dist/agent/team-mode-wiring.d.ts +108 -0
  15. package/dist/agent/team-mode-wiring.js +221 -0
  16. package/dist/app/App.js +55 -14
  17. package/dist/app/use-team-mode.d.ts +53 -0
  18. package/dist/app/use-team-mode.js +107 -0
  19. package/dist/commands/catalog.js +1 -1
  20. package/dist/commands/team-command.d.ts +6 -4
  21. package/dist/commands/team-command.js +67 -27
  22. package/dist/compaction/archive.js +6 -1
  23. package/dist/compaction/compactor.js +5 -0
  24. package/dist/compaction/memory-input.d.ts +21 -0
  25. package/dist/compaction/memory-input.js +66 -3
  26. package/dist/governance/engine/engine.d.ts +8 -0
  27. package/dist/governance/engine/engine.js +11 -1
  28. package/dist/governance/store/atomic.d.ts +10 -0
  29. package/dist/governance/store/atomic.js +16 -8
  30. package/dist/governance/store/run-lock.d.ts +4 -0
  31. package/dist/governance/store/run-lock.js +4 -2
  32. package/dist/host/interaction.d.ts +6 -1
  33. package/dist/host/interaction.js +47 -8
  34. package/dist/session/persist.js +24 -2
  35. package/dist/session/validate-session.js +2 -2
  36. package/dist/team/forced-mode.d.ts +6 -2
  37. package/dist/team/forced-mode.js +11 -1
  38. package/dist/team/runtime.d.ts +6 -0
  39. package/dist/team/runtime.js +4 -0
  40. package/dist/team/subagent.d.ts +23 -2
  41. package/dist/team/subagent.js +44 -2
  42. package/dist/tools/fs-tools.d.ts +22 -0
  43. package/dist/tools/fs-tools.js +26 -3
  44. package/dist/tools/image-read.d.ts +69 -0
  45. package/dist/tools/image-read.js +183 -0
  46. package/dist/tools/index.d.ts +12 -0
  47. package/dist/tools/index.js +2 -0
  48. package/package.json +3 -3
@@ -11,6 +11,7 @@
11
11
  import { type AgentTool, type ToolPolicyDecision, type ToolPolicyVerdict } from '@aragon-agent/core';
12
12
  import type { AgentMode } from '@aragon-agent/tui/model/agent/agent-mode';
13
13
  import type { ToolPermission } from '../exec/permission.js';
14
+ import type { ImageReadPort } from './image-read.js';
14
15
  import type { FilePatch } from '@aragon-agent/tui/model/tools/patch';
15
16
  import type { ProcSupervisorPort } from '@aragon-agent/tui/model/proc/types';
16
17
  import type { JobNotice } from '../proc/notices.js';
@@ -35,6 +36,17 @@ export interface ConfirmRequest {
35
36
  }
36
37
  export interface BuiltinToolsOptions {
37
38
  getCwd: () => string;
39
+ /**
40
+ * Let `read_file` show pictures (agent-image-reading D-2), judged against the CURRENT model on
41
+ * every call.
42
+ *
43
+ * THE TWO-INTERFACE RULE APPLIES VERBATIM (see `recordChange` below): the field is needed
44
+ * here AND on `ToolDeps`, and forwarded in `createBuiltinTools`. Adding it to one interface
45
+ * type-checks, forwards nothing, and leaves `read_file` answering "binary" with no error
46
+ * anywhere. Omitting it - every existing test, every subagent without a vision port - leaves
47
+ * the tool byte-identical to the pre-feature build.
48
+ */
49
+ images?: ImageReadPort;
38
50
  /**
39
51
  * Hand `write_file` / `edit_file` a place to leave a structured `FilePatch`
40
52
  * (agent-activity-presentation §3.3.5), already bound to its owner.
@@ -316,6 +316,8 @@ export function createBuiltinTools(options) {
316
316
  // of the two-interface note on `procs` above: without this line the field is
317
317
  // on both interfaces, nothing errors, and `bash` still hangs.
318
318
  ...(options.procs ? { procs: options.procs } : {}),
319
+ // The fourth, with the same two-interface note on `images` above.
320
+ ...(options.images ? { images: options.images } : {}),
319
321
  };
320
322
  let tools = [
321
323
  makeReadFile(deps),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aragon-agent/cli",
3
- "version": "0.6.51",
3
+ "version": "0.6.52",
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.63",
62
- "@aragon-agent/tui": "0.0.4",
61
+ "@aragon-agent/core": "^0.2.64",
62
+ "@aragon-agent/tui": "0.0.5",
63
63
  "commander": "^12.1.0",
64
64
  "dotenv": "^16.6.1",
65
65
  "env-paths": "^3.0.0",