total-recall-brain 3.41.4 → 3.41.5
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/bin/total-recall.mjs +3 -2
- package/docs/reference/cli-reference.md +18 -0
- package/frontend/dist/assets/{index-CRzjQLu7.js → index-WT3gs-x6.js} +24 -24
- package/frontend/dist/index.html +1 -1
- package/package.json +2 -2
- package/scaffold/.agent/skills/total-recall/plugins/code-quality/package-lock.json +3114 -36
- package/scaffold/.agent/skills/total-recall/plugins/code-quality/package.json +1 -1
- package/scaffold/.agent/skills/total-recall/plugins/composable-cli/package-lock.json +3114 -36
- package/scaffold/.agent/skills/total-recall/plugins/composable-cli/package.json +1 -1
- package/scaffold/.agent/skills/total-recall/plugins/embeddings/package-lock.json +3121 -33
- package/scaffold/.agent/skills/total-recall/plugins/embeddings/package.json +1 -1
- package/scaffold/.agent/skills/total-recall/plugins/git-sentinel/package-lock.json +3122 -34
- package/scaffold/.agent/skills/total-recall/plugins/git-sentinel/package.json +1 -1
- package/scaffold/.agent/skills/total-recall/plugins/mesh/package-lock.json +3165 -87
- package/scaffold/.agent/skills/total-recall/plugins/mesh/package.json +1 -1
- package/scaffold/.agent/skills/total-recall/plugins/meta-harness/package-lock.json +3121 -33
- package/scaffold/.agent/skills/total-recall/plugins/meta-harness/package.json +1 -1
- package/scaffold/.agent/skills/total-recall/plugins/meta-harness/src/documentation.mjs +32 -12
- package/scaffold/.agent/skills/total-recall/plugins/openwiki/cli.mjs +294 -46
- package/scaffold/.agent/skills/total-recall/plugins/openwiki/package-lock.json +367 -41
- package/scaffold/.agent/skills/total-recall/plugins/openwiki/package.json +2 -2
- package/scaffold/.agent/skills/total-recall/plugins/openwiki/plugin.json +190 -9
- package/scaffold/.agent/skills/total-recall/plugins/openwiki/src/config.mjs +2 -2
- package/scaffold/.agent/skills/total-recall/plugins/openwiki/src/generate.mjs +159 -0
- package/scaffold/.agent/skills/total-recall/plugins/openwiki/src/graph.mjs +197 -0
- package/scaffold/.agent/skills/total-recall/plugins/openwiki/src/lint.mjs +153 -0
- package/scaffold/.agent/skills/total-recall/plugins/openwiki/src/mesh-vaults.mjs +261 -0
- package/scaffold/.agent/skills/total-recall/plugins/openwiki/src/refresh.mjs +151 -4
- package/scaffold/.agent/skills/total-recall/plugins/openwiki/src/search.mjs +114 -0
- package/scaffold/.agent/skills/total-recall/plugins/openwiki/src/token.mjs +96 -0
- package/scaffold/.agent/skills/total-recall/plugins/openwiki/ui/card.js +899 -662
- package/scaffold/.agent/skills/total-recall/plugins/openwiki/vendor/openwiki.mjs +8987 -0
- package/scaffold/.agent/skills/total-recall/plugins/security/package-lock.json +3087 -71
- package/scaffold/.agent/skills/total-recall/plugins/security/package.json +1 -1
- package/src/cli/compact.mjs +108 -0
- package/src/cli/context.mjs +52 -23
- package/src/cli/forget.mjs +2 -0
- package/src/cli/release.mjs +386 -0
- package/src/core/cli-commands.mjs +2 -0
- package/src/core/context-compactor.mjs +143 -0
- package/src/core/preflight-gate.mjs +2 -2
- package/src/core/preflight-receipt.mjs +1 -1
- package/src/core/surface.mjs +1 -1
- package/src/server/invoke-durability.mjs +39 -0
- package/src/server/invoke-write-child.mjs +25 -0
- package/src/server/routes/invoke.mjs +7 -0
package/bin/total-recall.mjs
CHANGED
|
@@ -85,6 +85,7 @@ async function printHelp() {
|
|
|
85
85
|
${pluginsSection}
|
|
86
86
|
Optional:
|
|
87
87
|
update [--apply] Auto-download total-recall-brain for registered repos
|
|
88
|
+
release <action> Publish, propagate and verify a package release (plan|publish|propagate|verify|all)
|
|
88
89
|
research, share, ingest, import, export, relay, setup, deploy,
|
|
89
90
|
start, backup, restore, config, map, generate-pat, lint, sync, …
|
|
90
91
|
|
|
@@ -134,7 +135,7 @@ async function main() {
|
|
|
134
135
|
|
|
135
136
|
// Core built-in memory and rules commands that always run from core
|
|
136
137
|
const CORE_BUILTINS = new Set([
|
|
137
|
-
'remember', 'forget', 'edit', 'recall', 'context', 'rules',
|
|
138
|
+
'remember', 'forget', 'edit', 'recall', 'context', 'compact', 'rules',
|
|
138
139
|
'compile', 'rebuild', 'dream', 'proposals', 'proposal', 'task',
|
|
139
140
|
'daemon', 'skill', 'plugin', 'plugins',
|
|
140
141
|
'harness', 'agent', 'agents', 'brain', 'status',
|
|
@@ -142,7 +143,7 @@ async function main() {
|
|
|
142
143
|
]);
|
|
143
144
|
|
|
144
145
|
// Consulting Total Recall is what the repository-sweep policy looks for. Never fatal.
|
|
145
|
-
if (['recall', 'context', 'help'].includes(command)) {
|
|
146
|
+
if (['recall', 'context', 'compact', 'help'].includes(command)) {
|
|
146
147
|
try {
|
|
147
148
|
const { touchConsult, findRoot } = await import('../src/core/preflight-receipt.mjs');
|
|
148
149
|
touchConsult(findRoot());
|
|
@@ -89,9 +89,27 @@ Autonomously learn and save a new memory node to the vault.
|
|
|
89
89
|
|
|
90
90
|
---
|
|
91
91
|
|
|
92
|
+
### `compact`
|
|
93
|
+
Fit the applicable rules into a token budget you choose, ranked against the task.
|
|
94
|
+
|
|
95
|
+
```sh
|
|
96
|
+
total-recall compact "task description" --budget 2000 --action edit,test
|
|
97
|
+
total-recall compact "task description" --expand some-rule-slug
|
|
98
|
+
```
|
|
99
|
+
|
|
100
|
+
The default budget is 4,000 estimated tokens and counts everything printed.
|
|
101
|
+
Ranking uses vault embeddings through the local or mesh provider and falls back to
|
|
102
|
+
lexical matching, reported as `ranking:`. Rules keep their own words: full text, a
|
|
103
|
+
leading excerpt, or a slug under `Referenced`. Near-duplicates become references
|
|
104
|
+
and absolute-priority rules are named first. The header counts every tier, so nothing
|
|
105
|
+
disappears silently. Output is partial by design; `context` prints the complete
|
|
106
|
+
capsule. Exit 2 means the budget cannot hold the header or the expanded rules.
|
|
107
|
+
|
|
92
108
|
### `context`
|
|
93
109
|
Assemble applicable required rules for the current task before action.
|
|
94
110
|
|
|
111
|
+
Over its budget, `context` compacts automatically and reports `ready:true compacted:true`: every absolute rule keeps at least a verbatim summary and every other rule keeps at least its slug. Configured budgets are capped at 7000 tokens so the capsule prints inline; pass a larger `--budget` to print the full capsule. Exit 2 means the budget cannot hold every rule, and the output names the budget that can.
|
|
112
|
+
|
|
95
113
|
```sh
|
|
96
114
|
total-recall context "task description" --action edit,test
|
|
97
115
|
```
|