total-recall-brain 3.41.3 → 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 +12 -2
- package/docs/reference/cli-reference.md +18 -0
- package/frontend/dist/assets/{index-DFenQQEQ.js → index-WT3gs-x6.js} +75 -70
- package/frontend/dist/index.html +1 -1
- package/package.json +7 -5
- package/scaffold/.agent/skills/total-recall/plugins/auth/package-lock.json +2 -2
- package/scaffold/.agent/skills/total-recall/plugins/auth/package.json +1 -1
- package/scaffold/.agent/skills/total-recall/plugins/auth/plugin.json +1 -1
- package/scaffold/.agent/skills/total-recall/plugins/auth/src/cli-secret.mjs +48 -0
- package/scaffold/.agent/skills/total-recall/plugins/auth/src/login-projections.mjs +42 -0
- package/scaffold/.agent/skills/total-recall/plugins/auth/src/mesh-secrets.mjs +18 -0
- package/scaffold/.agent/skills/total-recall/plugins/auth/src/routes/secrets.mjs +5 -2
- package/scaffold/.agent/skills/total-recall/plugins/auth/src/secrets-carriers.mjs +76 -0
- package/scaffold/.agent/skills/total-recall/plugins/auth/src/secrets-prune.mjs +37 -0
- package/scaffold/.agent/skills/total-recall/plugins/auth/src/secrets-sync.mjs +53 -17
- 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 +3131 -28
- package/scaffold/.agent/skills/total-recall/plugins/embeddings/package.json +6 -2
- package/scaffold/.agent/skills/total-recall/plugins/git-sentinel/package-lock.json +3132 -29
- package/scaffold/.agent/skills/total-recall/plugins/git-sentinel/package.json +5 -1
- package/scaffold/.agent/skills/total-recall/plugins/mesh/package-lock.json +3164 -73
- package/scaffold/.agent/skills/total-recall/plugins/mesh/package.json +5 -3
- package/scaffold/.agent/skills/total-recall/plugins/mesh/plugin.json +1 -1
- package/scaffold/.agent/skills/total-recall/plugins/mesh/src/cli/grants.mjs +7 -3
- package/scaffold/.agent/skills/total-recall/plugins/mesh/src/cli/mesh.mjs +61 -38
- package/scaffold/.agent/skills/total-recall/plugins/mesh/src/core/leader-election.mjs +57 -2
- package/scaffold/.agent/skills/total-recall/plugins/mesh/src/core/mesh.mjs +220 -36
- package/scaffold/.agent/skills/total-recall/plugins/mesh/src/server/routes/mesh.mjs +7 -2
- package/scaffold/.agent/skills/total-recall/plugins/meta-harness/README.md +65 -0
- package/scaffold/.agent/skills/total-recall/plugins/meta-harness/capability/BRICK.md +59 -0
- package/scaffold/.agent/skills/total-recall/plugins/meta-harness/capability/index.mjs +534 -0
- package/scaffold/.agent/skills/total-recall/plugins/meta-harness/cli.mjs +139 -0
- package/scaffold/.agent/skills/total-recall/plugins/meta-harness/package-lock.json +5937 -0
- package/scaffold/.agent/skills/total-recall/plugins/meta-harness/package.json +26 -0
- package/scaffold/.agent/skills/total-recall/plugins/meta-harness/plugin.json +376 -0
- package/scaffold/.agent/skills/total-recall/plugins/meta-harness/skills/meta-harness/SKILL.md +37 -0
- package/scaffold/.agent/skills/total-recall/plugins/meta-harness/src/adapters/dsh.mjs +446 -0
- package/scaffold/.agent/skills/total-recall/plugins/meta-harness/src/alerts.mjs +23 -0
- package/scaffold/.agent/skills/total-recall/plugins/meta-harness/src/coordinator.mjs +398 -0
- package/scaffold/.agent/skills/total-recall/plugins/meta-harness/src/documentation.mjs +172 -0
- package/scaffold/.agent/skills/total-recall/plugins/meta-harness/src/executor.mjs +82 -0
- package/scaffold/.agent/skills/total-recall/plugins/meta-harness/src/learner.mjs +90 -0
- package/scaffold/.agent/skills/total-recall/plugins/meta-harness/src/router.mjs +415 -0
- package/scaffold/.agent/skills/total-recall/plugins/meta-harness/src/runtime.mjs +36 -0
- package/scaffold/.agent/skills/total-recall/plugins/meta-harness/src/setup.mjs +35 -0
- package/scaffold/.agent/skills/total-recall/plugins/meta-harness/src/tracker.mjs +133 -0
- package/scaffold/.agent/skills/total-recall/plugins/meta-harness/src/worker.mjs +233 -0
- package/scaffold/.agent/skills/total-recall/plugins/meta-harness/ui/DESIGN.md +32 -0
- package/scaffold/.agent/skills/total-recall/plugins/meta-harness/ui/card.js +845 -0
- package/scaffold/.agent/skills/total-recall/plugins/openwiki/capability/BRICK.md +64 -0
- package/scaffold/.agent/skills/total-recall/plugins/openwiki/capability/index.mjs +250 -0
- package/scaffold/.agent/skills/total-recall/plugins/openwiki/cli.mjs +619 -41
- package/scaffold/.agent/skills/total-recall/plugins/openwiki/package-lock.json +3134 -31
- package/scaffold/.agent/skills/total-recall/plugins/openwiki/package.json +9 -3
- package/scaffold/.agent/skills/total-recall/plugins/openwiki/plugin.json +413 -14
- package/scaffold/.agent/skills/total-recall/plugins/openwiki/src/config.mjs +129 -0
- 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 +502 -0
- 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/src/upstream-watcher.mjs +375 -0
- package/scaffold/.agent/skills/total-recall/plugins/openwiki/ui/DESIGN.md +35 -22
- package/scaffold/.agent/skills/total-recall/plugins/openwiki/ui/card.js +1225 -364
- package/scaffold/.agent/skills/total-recall/plugins/openwiki/vendor/openwiki.mjs +8987 -0
- package/scaffold/.agent/skills/total-recall/plugins/security/package-lock.json +3114 -83
- package/scaffold/.agent/skills/total-recall/plugins/security/package.json +5 -1
- package/src/cli/compact.mjs +108 -0
- package/src/cli/config.mjs +3 -0
- package/src/cli/connect.mjs +12 -116
- package/src/cli/context.mjs +52 -23
- package/src/cli/forget.mjs +2 -0
- package/src/cli/harness.mjs +0 -1
- package/src/cli/plugin/create.mjs +56 -3
- package/src/cli/plugin/index.mjs +15 -3
- package/src/cli/plugin/monetization.mjs +232 -12
- package/src/cli/preflight.mjs +161 -0
- package/src/cli/release.mjs +386 -0
- package/src/core/cli-commands.mjs +4 -0
- package/src/core/context-compactor.mjs +143 -0
- package/src/core/context-compiler.mjs +8 -1
- package/src/core/default-plugins.mjs +1 -1
- package/src/core/meta-harness.mjs +16 -38
- package/src/core/plugin-dependencies.mjs +6 -1
- package/src/core/preflight-gate.mjs +77 -0
- package/src/core/preflight-receipt.mjs +123 -0
- package/src/core/runtime.mjs +0 -3
- package/src/core/surface.mjs +39 -2
- 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
|
@@ -67,6 +67,7 @@ async function printHelp() {
|
|
|
67
67
|
remember / forget / edit Write-path memory (SSSS vault)
|
|
68
68
|
recall Read-path hybrid search
|
|
69
69
|
context "<task>" Required-rule capsule to read before acting (require ready:true)
|
|
70
|
+
preflight <cmd> ack | check | gate: the receipt every harness hook enforces (alias: tr-preflight)
|
|
70
71
|
auth secret <cmd> Credentials (the only secrets path): list|get|set|rotate|remote deploy|diff-env|export-env
|
|
71
72
|
compile Rebuild instruction surfaces
|
|
72
73
|
dream Memory consolidation cycle
|
|
@@ -84,6 +85,7 @@ async function printHelp() {
|
|
|
84
85
|
${pluginsSection}
|
|
85
86
|
Optional:
|
|
86
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)
|
|
87
89
|
research, share, ingest, import, export, relay, setup, deploy,
|
|
88
90
|
start, backup, restore, config, map, generate-pat, lint, sync, …
|
|
89
91
|
|
|
@@ -133,13 +135,21 @@ async function main() {
|
|
|
133
135
|
|
|
134
136
|
// Core built-in memory and rules commands that always run from core
|
|
135
137
|
const CORE_BUILTINS = new Set([
|
|
136
|
-
'remember', 'forget', 'edit', 'recall', 'context', 'rules',
|
|
138
|
+
'remember', 'forget', 'edit', 'recall', 'context', 'compact', 'rules',
|
|
137
139
|
'compile', 'rebuild', 'dream', 'proposals', 'proposal', 'task',
|
|
138
140
|
'daemon', 'skill', 'plugin', 'plugins',
|
|
139
141
|
'harness', 'agent', 'agents', 'brain', 'status',
|
|
140
|
-
'doctor', 'brief', 'startup', 'init', 'connect', 'new'
|
|
142
|
+
'doctor', 'brief', 'startup', 'init', 'connect', 'new', 'preflight', 'tr-preflight'
|
|
141
143
|
]);
|
|
142
144
|
|
|
145
|
+
// Consulting Total Recall is what the repository-sweep policy looks for. Never fatal.
|
|
146
|
+
if (['recall', 'context', 'compact', 'help'].includes(command)) {
|
|
147
|
+
try {
|
|
148
|
+
const { touchConsult, findRoot } = await import('../src/core/preflight-receipt.mjs');
|
|
149
|
+
touchConsult(findRoot());
|
|
150
|
+
} catch { /* the stamp is advisory */ }
|
|
151
|
+
}
|
|
152
|
+
|
|
143
153
|
// Check installed plugins first for any non-core commands (e.g. deploy, phone, text)
|
|
144
154
|
if (!CORE_BUILTINS.has(command)) {
|
|
145
155
|
try {
|
|
@@ -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
|
```
|