@aragon-agent/cli 0.6.52 → 0.6.54

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 (80) hide show
  1. package/CHANGELOG.md +38 -0
  2. package/README.md +4042 -3982
  3. package/dist/agent/controller.d.ts +26 -0
  4. package/dist/agent/controller.js +129 -1
  5. package/dist/agent/system-prompt.d.ts +14 -0
  6. package/dist/agent/system-prompt.js +3 -0
  7. package/dist/app/App.d.ts +7 -0
  8. package/dist/app/App.js +135 -6
  9. package/dist/cli.js +25 -1
  10. package/dist/commands/builtins.js +10 -0
  11. package/dist/commands/catalog.js +1 -0
  12. package/dist/commands/registry.d.ts +7 -0
  13. package/dist/compaction/compactor.d.ts +26 -0
  14. package/dist/compaction/compactor.js +81 -8
  15. package/dist/compaction/summarize-call.d.ts +22 -0
  16. package/dist/compaction/summarize-call.js +29 -0
  17. package/dist/compaction/wiring.js +22 -3
  18. package/dist/config/app-paths.d.ts +13 -0
  19. package/dist/config/app-paths.js +15 -0
  20. package/dist/config/cli-commands.d.ts +15 -0
  21. package/dist/config/cli-commands.js +32 -1
  22. package/dist/config/env.d.ts +1 -0
  23. package/dist/config/env.js +11 -0
  24. package/dist/config/load.d.ts +6 -0
  25. package/dist/config/load.js +10 -1
  26. package/dist/config/store.js +10 -1
  27. package/dist/exec/bridge/server.js +9 -2
  28. package/dist/exec/options.js +16 -2
  29. package/dist/governance/prompts/orchestrator-block.js +2 -2
  30. package/dist/host/controller-factory.d.ts +25 -0
  31. package/dist/host/controller-factory.js +7 -0
  32. package/dist/host/follow-up-seed.d.ts +109 -0
  33. package/dist/host/follow-up-seed.js +196 -0
  34. package/dist/host/follow-up.d.ts +73 -0
  35. package/dist/host/follow-up.js +123 -0
  36. package/dist/host/index.d.ts +3 -0
  37. package/dist/host/index.js +3 -0
  38. package/dist/host/memory.d.ts +21 -0
  39. package/dist/host/memory.js +17 -0
  40. package/dist/host/sessions.d.ts +32 -2
  41. package/dist/host/sessions.js +40 -2
  42. package/dist/logging/install.d.ts +1 -0
  43. package/dist/logging/install.js +4 -0
  44. package/dist/logging/logger.d.ts +1 -1
  45. package/dist/memory/block.d.ts +24 -0
  46. package/dist/memory/block.js +54 -0
  47. package/dist/memory/command.d.ts +31 -0
  48. package/dist/memory/command.js +350 -0
  49. package/dist/memory/format.d.ts +51 -0
  50. package/dist/memory/format.js +308 -0
  51. package/dist/memory/paths.d.ts +68 -0
  52. package/dist/memory/paths.js +172 -0
  53. package/dist/memory/plan.d.ts +37 -0
  54. package/dist/memory/plan.js +184 -0
  55. package/dist/memory/resolve.d.ts +45 -0
  56. package/dist/memory/resolve.js +54 -0
  57. package/dist/memory/secrets.d.ts +30 -0
  58. package/dist/memory/secrets.js +73 -0
  59. package/dist/memory/service.d.ts +175 -0
  60. package/dist/memory/service.js +576 -0
  61. package/dist/memory/store.d.ts +133 -0
  62. package/dist/memory/store.js +694 -0
  63. package/dist/memory/tools.d.ts +36 -0
  64. package/dist/memory/tools.js +527 -0
  65. package/dist/memory/transfer.d.ts +53 -0
  66. package/dist/memory/transfer.js +93 -0
  67. package/dist/session/checkpoint.d.ts +18 -0
  68. package/dist/session/checkpoint.js +34 -0
  69. package/dist/session/limits.d.ts +16 -0
  70. package/dist/session/limits.js +16 -0
  71. package/dist/session/persist.d.ts +47 -0
  72. package/dist/session/persist.js +1 -0
  73. package/dist/session/startup-session.d.ts +6 -0
  74. package/dist/session/startup-session.js +3 -0
  75. package/dist/session/store.d.ts +14 -0
  76. package/dist/session/store.js +18 -0
  77. package/dist/session/validate-session.js +98 -0
  78. package/dist/tools/index.d.ts +21 -2
  79. package/dist/tools/index.js +33 -0
  80. package/package.json +3 -3
package/CHANGELOG.md CHANGED
@@ -8,6 +8,44 @@ were written.
8
8
  ## Unreleased
9
9
 
10
10
  ### Added
11
+ - **Memory: notes you keep, search, edit and mount - `Ctrl+M` / `Alt+M` / `/memory`.** A new kind of
12
+ persistent context: notes **you** save (one Markdown file each under `~/.aragon-agent/memory/`, global or
13
+ per project), that you can search and edit by hand, and that the agent can use. Nothing is saved
14
+ automatically. `Space` in the manager mounts a note's full text into the session; auto-load (on by default)
15
+ puts a bounded catalog and your pinned notes in the system prompt, scaled to the model's window, with
16
+ everything else fetched on demand by three new tools - `memory_search` and `memory_read` (never more than ten
17
+ short rows / 6,000 characters per call) and `memory_write`, which by default shows you the complete text and
18
+ waits for your approval (`memory.agentWrites: ask|auto|off`). The status bar shows `mem N`, and the system
19
+ prompt block, tool descriptions and tool results are budgeted so memory cannot crowd out the conversation.
20
+ See [Memory](README.md#memory). New: `memory.*` config keys (six), `ARAGON_MEMORY=0` and `--no-memory` (kill
21
+ switches), `/memory` (alias `/mem`), Settings > Memory, the `memory` log scope, and a `memory` field
22
+ (ids only) in session files so `--resume` restores your mounts. Desktop: see the desktop changelog.
23
+ - **`Ctrl+M` is `Enter` on a terminal without keyboard enhancement**, which is every traditional encoding. On
24
+ Windows Terminal (win32-input-mode) and kitty / CSI-u terminals it opens the manager; elsewhere it still
25
+ submits the draft exactly as before and **`Alt+M` / `/memory` are the route**. xterm `modifyOtherKeys`
26
+ format 0 (`ESC [ 27 ; 5 ; 109 ~`) is not translated. The encodings were checked against the translators'
27
+ own fixtures, not against live terminals.
28
+ - Project notes are keyed by the **real path of the git root** and never stored in the repository, so a cloned
29
+ repository cannot preload memory into your agent. Different git worktrees are different projects.
30
+ - `memory_write` joins the plan-mode blocked set and the governed orchestrator's refused set (it writes to
31
+ disk; the governance block names it and its version is now `v1-2026-11-04`); `memory_search` /
32
+ `memory_read` join the skill tool floor. The `exec` bridge no longer treats the
33
+ three names as reserved, because a headless run never registers them (a caller tool named `memory_search`
34
+ is accepted); `--allow-tool` / `--deny-tool` naming them now warns.
35
+ - Fresh installs that never save a note are unchanged except for three more tools in the tool list
36
+ (about 300 tokens of definitions per request). `memory.enabled: false`, `ARAGON_MEMORY=0` and `--no-memory`
37
+ restore the previous prompt and tool list byte for byte.
38
+ - **A session file can never turn write approval off.** The memory part of a session file carries ids and
39
+ switches only, and the one switch that carries *authority*, `agentWrites: auto`, is no longer written (it is
40
+ saved as "follow the setting") nor restored: a hand-edited or foreign file passed to `--resume <path>` cannot
41
+ pre-approve the agent's memory writes. `ask` is still restored (it can only tighten the setting), so a resumed
42
+ session that was on `auto` asks again until you switch it - a deliberate, one-keystroke cost.
43
+ - `memory_write` refuses a `scope` that is not exactly `project` or `global` (it used to file any other spelling
44
+ under the project, which under `memory.agentWrites: auto` nobody would notice); an omitted scope is still
45
+ `project`.
46
+ - When keyboard enhancement is **off** (the case where `Ctrl+M` is `Enter`), the manager's list page and
47
+ Settings > Memory keep one line saying so and pointing at `Alt+M`; it is absent when `Ctrl+M` works.
48
+
11
49
  - **Team mode is a switch you can see and flip: `Ctrl+T`, `Ctrl+Up` / `Ctrl+Down`, and a status-bar toggle.**
12
50
  `Ctrl+T` turns team mode (the forced fan-out `/team` arms) on and off for the session; while it is on,
13
51
  `Ctrl+Up` / `Ctrl+Down` change how many subagents each message fans out to, one at a time, between 1 and