@cortexkit/opencode-magic-context 0.33.1 → 0.34.1
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 +20 -3
- package/dist/config/agent-disable.d.ts +22 -0
- package/dist/config/agent-disable.d.ts.map +1 -1
- package/dist/config/index.d.ts.map +1 -1
- package/dist/config/migrate-experimental.d.ts +2 -1
- package/dist/config/migrate-experimental.d.ts.map +1 -1
- package/dist/config/project-security.d.ts +9 -0
- package/dist/config/project-security.d.ts.map +1 -1
- package/dist/config/schema/magic-context.d.ts +90 -17
- package/dist/config/schema/magic-context.d.ts.map +1 -1
- package/dist/config/transform-mode.d.ts +2 -0
- package/dist/config/transform-mode.d.ts.map +1 -1
- package/dist/{conflict-warning-hook-n48c783v.js → conflict-warning-hook-fvpfvt0w.js} +1 -1
- package/dist/{derive-budgets-e9j09sjr.js → derive-budgets-9crp0cvd.js} +1 -1
- package/dist/features/builtin-commands/commands.d.ts +1 -1
- package/dist/features/builtin-commands/commands.d.ts.map +1 -1
- package/dist/features/magic-context/compaction-marker.d.ts +57 -0
- package/dist/features/magic-context/compaction-marker.d.ts.map +1 -1
- package/dist/features/magic-context/compartment-chunk-embedding.d.ts.map +1 -1
- package/dist/features/magic-context/dreamer/classify.d.ts +1 -0
- package/dist/features/magic-context/dreamer/classify.d.ts.map +1 -1
- package/dist/features/magic-context/dreamer/evaluate-smart-notes.d.ts.map +1 -1
- package/dist/features/magic-context/dreamer/map-memories.d.ts +1 -0
- package/dist/features/magic-context/dreamer/map-memories.d.ts.map +1 -1
- package/dist/features/magic-context/dreamer/refresh-primers.d.ts +1 -0
- package/dist/features/magic-context/dreamer/refresh-primers.d.ts.map +1 -1
- package/dist/features/magic-context/dreamer/storage-dream-runs.d.ts +2 -0
- package/dist/features/magic-context/dreamer/storage-dream-runs.d.ts.map +1 -1
- package/dist/features/magic-context/dreamer/task-executor.d.ts +4 -1
- package/dist/features/magic-context/dreamer/task-executor.d.ts.map +1 -1
- package/dist/features/magic-context/dreamer/task-gates.d.ts +19 -1
- package/dist/features/magic-context/dreamer/task-gates.d.ts.map +1 -1
- package/dist/features/magic-context/dreamer/task-registry.d.ts +28 -0
- package/dist/features/magic-context/dreamer/task-registry.d.ts.map +1 -1
- package/dist/features/magic-context/dreamer/task-scheduler.d.ts +7 -1
- package/dist/features/magic-context/dreamer/task-scheduler.d.ts.map +1 -1
- package/dist/features/magic-context/dreamer/verify.d.ts +1 -0
- package/dist/features/magic-context/dreamer/verify.d.ts.map +1 -1
- package/dist/features/magic-context/fail-closed-block.d.ts +10 -0
- package/dist/features/magic-context/fail-closed-block.d.ts.map +1 -1
- package/dist/features/magic-context/git-commits/storage-git-commit-embeddings.d.ts.map +1 -1
- package/dist/features/magic-context/git-commits/storage-git-commits.d.ts.map +1 -1
- package/dist/features/magic-context/memory/embedding-identity.d.ts.map +1 -1
- package/dist/features/magic-context/memory/embedding-local.d.ts +7 -1
- package/dist/features/magic-context/memory/embedding-local.d.ts.map +1 -1
- package/dist/features/magic-context/memory/embedding.d.ts.map +1 -1
- package/dist/features/magic-context/memory/memory-migration.d.ts.map +1 -1
- package/dist/features/magic-context/memory/project-identity.d.ts +2 -6
- package/dist/features/magic-context/memory/project-identity.d.ts.map +1 -1
- package/dist/features/magic-context/memory/storage-memory-embeddings.d.ts.map +1 -1
- package/dist/features/magic-context/migrations.d.ts +23 -1
- package/dist/features/magic-context/migrations.d.ts.map +1 -1
- package/dist/features/magic-context/mural/compress-cues.d.ts +1 -0
- package/dist/features/magic-context/mural/compress-cues.d.ts.map +1 -1
- package/dist/features/magic-context/mural/render-mural.d.ts.map +1 -1
- package/dist/features/magic-context/overflow-detection.d.ts +8 -1
- package/dist/features/magic-context/overflow-detection.d.ts.map +1 -1
- package/dist/features/magic-context/project-embedding-registry.d.ts.map +1 -1
- package/dist/features/magic-context/scheduler.d.ts.map +1 -1
- package/dist/features/magic-context/schema-fence-probe.d.ts +28 -0
- package/dist/features/magic-context/schema-fence-probe.d.ts.map +1 -0
- package/dist/features/magic-context/sidekick/agent.d.ts.map +1 -1
- package/dist/features/magic-context/smart-notes/compiler.d.ts.map +1 -1
- package/dist/features/magic-context/storage-db.d.ts +37 -2
- package/dist/features/magic-context/storage-db.d.ts.map +1 -1
- package/dist/features/magic-context/storage-meta-persisted.d.ts +38 -4
- package/dist/features/magic-context/storage-meta-persisted.d.ts.map +1 -1
- package/dist/features/magic-context/storage-meta.d.ts +1 -1
- package/dist/features/magic-context/storage-meta.d.ts.map +1 -1
- package/dist/features/magic-context/storage.d.ts +2 -2
- package/dist/features/magic-context/storage.d.ts.map +1 -1
- package/dist/features/magic-context/user-memory/review-user-memories.d.ts.map +1 -1
- package/dist/hooks/magic-context/boundary-execution.d.ts +1 -1
- package/dist/hooks/magic-context/boundary-execution.d.ts.map +1 -1
- package/dist/hooks/magic-context/cache-busting-signals.d.ts +1 -0
- package/dist/hooks/magic-context/cache-busting-signals.d.ts.map +1 -1
- package/dist/hooks/magic-context/child-session-spawn.d.ts +26 -0
- package/dist/hooks/magic-context/child-session-spawn.d.ts.map +1 -0
- package/dist/hooks/magic-context/command-handler.d.ts +3 -0
- package/dist/hooks/magic-context/command-handler.d.ts.map +1 -1
- package/dist/hooks/magic-context/compaction-off-transition.d.ts +96 -0
- package/dist/hooks/magic-context/compaction-off-transition.d.ts.map +1 -0
- package/dist/hooks/magic-context/compartment-runner-historian.d.ts +2 -0
- package/dist/hooks/magic-context/compartment-runner-historian.d.ts.map +1 -1
- package/dist/hooks/magic-context/compartment-runner-incremental.d.ts.map +1 -1
- package/dist/hooks/magic-context/compartment-runner-mapping.d.ts.map +1 -1
- package/dist/hooks/magic-context/compartment-runner-partial-recomp.d.ts.map +1 -1
- package/dist/hooks/magic-context/compartment-runner-recomp.d.ts.map +1 -1
- package/dist/hooks/magic-context/compartment-trigger.d.ts +12 -5
- package/dist/hooks/magic-context/compartment-trigger.d.ts.map +1 -1
- package/dist/hooks/magic-context/ctx-reduce-availability.d.ts +47 -1
- package/dist/hooks/magic-context/ctx-reduce-availability.d.ts.map +1 -1
- package/dist/hooks/magic-context/emergency-drop.d.ts +2 -2
- package/dist/hooks/magic-context/event-handler.d.ts +7 -0
- package/dist/hooks/magic-context/event-handler.d.ts.map +1 -1
- package/dist/hooks/magic-context/event-resolvers.d.ts +13 -21
- package/dist/hooks/magic-context/event-resolvers.d.ts.map +1 -1
- package/dist/hooks/magic-context/execute-status.d.ts +5 -1
- package/dist/hooks/magic-context/execute-status.d.ts.map +1 -1
- package/dist/hooks/magic-context/final-wire-token-estimate.d.ts +2 -0
- package/dist/hooks/magic-context/final-wire-token-estimate.d.ts.map +1 -1
- package/dist/hooks/magic-context/heuristic-cleanup.d.ts +1 -1
- package/dist/hooks/magic-context/hook-handlers.d.ts +1 -0
- package/dist/hooks/magic-context/hook-handlers.d.ts.map +1 -1
- package/dist/hooks/magic-context/hook.d.ts +14 -6
- package/dist/hooks/magic-context/hook.d.ts.map +1 -1
- package/dist/hooks/magic-context/inject-compartments.d.ts +10 -1
- package/dist/hooks/magic-context/inject-compartments.d.ts.map +1 -1
- package/dist/hooks/magic-context/live-session-state.d.ts +3 -0
- package/dist/hooks/magic-context/live-session-state.d.ts.map +1 -1
- package/dist/hooks/magic-context/protected-tail-boundary.d.ts.map +1 -1
- package/dist/hooks/magic-context/read-session-db.d.ts.map +1 -1
- package/dist/hooks/magic-context/read-session-true-raw-tokens.d.ts.map +1 -1
- package/dist/hooks/magic-context/rust-mode-transform.d.ts +3 -0
- package/dist/hooks/magic-context/rust-mode-transform.d.ts.map +1 -1
- package/dist/hooks/magic-context/send-session-notification.d.ts +20 -1
- package/dist/hooks/magic-context/send-session-notification.d.ts.map +1 -1
- package/dist/hooks/magic-context/transform-compartment-phase.d.ts +3 -0
- package/dist/hooks/magic-context/transform-compartment-phase.d.ts.map +1 -1
- package/dist/hooks/magic-context/transform-postprocess-phase.d.ts +31 -1
- package/dist/hooks/magic-context/transform-postprocess-phase.d.ts.map +1 -1
- package/dist/hooks/magic-context/transform.d.ts +29 -2
- package/dist/hooks/magic-context/transform.d.ts.map +1 -1
- package/dist/{index-56yjaeb2.js → index-2y0ybv5x.js} +11 -1
- package/dist/{index-ey1bc14z.js → index-b563sga5.js} +7 -264
- package/dist/{index-y1c9tcm3.js → index-cn960ffd.js} +101 -20
- package/dist/{index-xyaekybw.js → index-dtas91s5.js} +6 -4
- package/dist/index-fcyvznch.js +279 -0
- package/dist/{index-63dq2g4d.js → index-ry8rh8cv.js} +138 -24
- package/dist/{index-c2gahrks.js → index-x8spt5wy.js} +1682 -893
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1677 -723
- package/dist/plugin/dream-timer.d.ts +4 -2
- package/dist/plugin/dream-timer.d.ts.map +1 -1
- package/dist/plugin/embedding-bootstrap.d.ts.map +1 -1
- package/dist/plugin/hooks/create-session-hooks.d.ts +12 -1
- package/dist/plugin/hooks/create-session-hooks.d.ts.map +1 -1
- package/dist/plugin/messages-transform.d.ts +10 -0
- package/dist/plugin/messages-transform.d.ts.map +1 -1
- package/dist/plugin/rpc-handlers.d.ts +3 -7
- package/dist/plugin/rpc-handlers.d.ts.map +1 -1
- package/dist/plugin/tool-registry.d.ts +8 -0
- package/dist/plugin/tool-registry.d.ts.map +1 -1
- package/dist/{recomp-orchestrator-2yb2hfh2.js → recomp-orchestrator-k72ejkkh.js} +6 -4
- package/dist/send-session-notification-6njqewzk.js +20 -0
- package/dist/shared/conflict-detector.d.ts +38 -1
- package/dist/shared/conflict-detector.d.ts.map +1 -1
- package/dist/shared/conflict-fixer.d.ts +18 -1
- package/dist/shared/conflict-fixer.d.ts.map +1 -1
- package/dist/shared/context-limit-provenance.d.ts +3 -0
- package/dist/shared/context-limit-provenance.d.ts.map +1 -0
- package/dist/shared/escalation-bands.d.ts +9 -0
- package/dist/shared/escalation-bands.d.ts.map +1 -0
- package/dist/shared/format-threshold.d.ts +1 -1
- package/dist/shared/models-dev-cache.d.ts +29 -3
- package/dist/shared/models-dev-cache.d.ts.map +1 -1
- package/dist/shared/rpc-server.d.ts.map +1 -1
- package/dist/shared/rpc-types.d.ts +51 -1
- package/dist/shared/rpc-types.d.ts.map +1 -1
- package/dist/shared/rpc-utils.d.ts +19 -0
- package/dist/shared/rpc-utils.d.ts.map +1 -1
- package/dist/shared/storage-permissions.d.ts +5 -0
- package/dist/shared/storage-permissions.d.ts.map +1 -0
- package/dist/shared/tui-runtime-specifiers.d.ts +20 -0
- package/dist/shared/tui-runtime-specifiers.d.ts.map +1 -0
- package/dist/{storage-meta-session-td6bwtky.js → storage-meta-session-xt41zbw4.js} +2 -1
- package/dist/{task-config-5nx3qfz8.js → task-config-gbp7r23g.js} +1 -1
- package/dist/tui/compaction-off.d.ts +13 -0
- package/dist/tui/compaction-off.d.ts.map +1 -0
- package/dist/tui/data/context-db.d.ts.map +1 -1
- package/dist/tui-compiled/compaction-off.d.ts +13 -0
- package/dist/tui-compiled/compaction-off.d.ts.map +1 -0
- package/dist/tui-compiled/data/context-db.d.ts.map +1 -1
- package/package.json +6 -1
- package/src/agents/dreamer.ts +68 -0
- package/src/agents/hidden-agent-registrations.ts +331 -0
- package/src/agents/historian.ts +3 -0
- package/src/agents/language-directive.test.ts +138 -0
- package/src/agents/language-directive.ts +121 -0
- package/src/agents/magic-context-prompt.language.test.ts +35 -0
- package/src/agents/magic-context-prompt.test.ts +292 -0
- package/src/agents/magic-context-prompt.ts +182 -0
- package/src/agents/permissions.test.ts +252 -0
- package/src/agents/permissions.ts +186 -0
- package/src/agents/sidekick.ts +1 -0
- package/src/agents/smart-note-compiler.ts +1 -0
- package/src/config/agent-disable.ts +106 -0
- package/src/config/compaction-accessor-guard.test.ts +82 -0
- package/src/config/compaction-backcompat.test.ts +52 -0
- package/src/config/index.test.ts +936 -0
- package/src/config/index.ts +601 -0
- package/src/config/migrate-config-location.test.ts +332 -0
- package/src/config/migrate-config-location.ts +635 -0
- package/src/config/migrate-dreamer-v2.test.ts +287 -0
- package/src/config/migrate-dreamer-v2.ts +336 -0
- package/src/config/migrate-experimental.test.ts +41 -0
- package/src/config/migrate-experimental.ts +185 -0
- package/src/config/project-security.test.ts +388 -0
- package/src/config/project-security.ts +611 -0
- package/src/config/prune-config-leaf.test.ts +78 -0
- package/src/config/prune-config-leaf.ts +68 -0
- package/src/config/removed-config-keys.test.ts +116 -0
- package/src/config/schema/agent-overrides.ts +45 -0
- package/src/config/schema/magic-context.test.ts +359 -0
- package/src/config/schema/magic-context.ts +991 -0
- package/src/config/transform-mode.test.ts +62 -0
- package/src/config/transform-mode.ts +34 -0
- package/src/config/variable.test.ts +323 -0
- package/src/config/variable.ts +192 -0
- package/src/features/magic-context/defaults.ts +1 -0
- package/src/features/magic-context/dreamer/cron.ts +243 -0
- package/src/features/magic-context/dreamer/task-registry.ts +151 -0
- package/src/shared/conflict-detector.test.ts +121 -0
- package/src/shared/conflict-detector.ts +50 -3
- package/src/shared/conflict-fixer.test.ts +309 -0
- package/src/shared/conflict-fixer.ts +82 -5
- package/src/shared/context-limit-provenance.ts +6 -0
- package/src/shared/escalation-bands.test.ts +23 -0
- package/src/shared/escalation-bands.ts +18 -0
- package/src/shared/format-threshold.ts +1 -1
- package/src/shared/models-dev-cache.test.ts +171 -0
- package/src/shared/models-dev-cache.ts +195 -38
- package/src/shared/rpc-server.ts +27 -18
- package/src/shared/rpc-types.ts +55 -1
- package/src/shared/rpc-utils.test.ts +157 -0
- package/src/shared/rpc-utils.ts +137 -0
- package/src/shared/storage-permissions.ts +20 -0
- package/src/shared/tui-runtime-specifiers.ts +32 -0
- package/src/tui/compaction-off.test.ts +56 -0
- package/src/tui/compaction-off.ts +29 -0
- package/src/tui/data/context-db.ts +6 -0
- package/src/tui/index.tsx +113 -65
- package/src/tui/slots/sidebar-content.tsx +189 -91
- package/src/tui/tui-compiled-runtime-imports.test.ts +151 -0
- package/src/tui-compiled/compaction-off.ts +29 -0
- package/src/tui-compiled/data/context-db.ts +6 -0
- package/src/tui-compiled/index.tsx +558 -455
- package/src/tui-compiled/slots/sidebar-content.tsx +334 -169
- package/dist/send-session-notification-tghq9gnh.js +0 -11
- /package/dist/{index-v7fmc1s2.js → index-ygcng9t8.js} +0 -0
package/README.md
CHANGED
|
@@ -100,15 +100,32 @@ The wizard auto-detects which harnesses you have (OpenCode, Pi, or both), adds t
|
|
|
100
100
|
|
|
101
101
|
> **Why disable built-in compaction?** Magic Context manages context itself. The host's compaction would interfere with its cache-aware deferred operations and double-compress.
|
|
102
102
|
|
|
103
|
-
|
|
103
|
+
### Manual setup (OpenCode)
|
|
104
|
+
|
|
105
|
+
If you cannot run the wizard, add this to `opencode.jsonc`:
|
|
104
106
|
|
|
105
107
|
```jsonc
|
|
106
108
|
{
|
|
107
|
-
"plugin": ["@cortexkit/opencode-magic-context"],
|
|
109
|
+
"plugin": ["@cortexkit/opencode-magic-context@latest"],
|
|
108
110
|
"compaction": { "auto": false, "prune": false }
|
|
109
111
|
}
|
|
110
112
|
```
|
|
111
113
|
|
|
114
|
+
Then create `magic-context.jsonc` with the one setting the historian needs:
|
|
115
|
+
|
|
116
|
+
```jsonc
|
|
117
|
+
{
|
|
118
|
+
"$schema": "https://raw.githubusercontent.com/cortexkit/magic-context/master/assets/magic-context.schema.json",
|
|
119
|
+
"historian": { "model": "provider/model-id" }
|
|
120
|
+
}
|
|
121
|
+
```
|
|
122
|
+
|
|
123
|
+
- **Required:** `historian.model` must be a real `provider/model-id`. Without it, the plugin loads but historian runs fail, older history is not summarized, and repeated failures show a `Magic Context — history comparting needs attention` notice.
|
|
124
|
+
- **Optional:** `dreamer` and `sidekick` model/disable blocks. Omit them to leave periodic memory consolidation and `/ctx-aug` off.
|
|
125
|
+
- **Optional:** `embedding`. Omit it to use the local `Xenova/all-MiniLM-L6-v2`; turning embeddings off removes semantic/embedding-backed search, but keyword search and context management continue.
|
|
126
|
+
|
|
127
|
+
User-level config is `~/.config/cortexkit/magic-context.jsonc` on macOS/Linux and `%USERPROFILE%\.config\cortexkit\magic-context.jsonc` on Windows (or `$XDG_CONFIG_HOME/cortexkit/magic-context.jsonc` when set). OpenCode Desktop users can use the dashboard's config editor or hand-edit that file; Desktop does not include the CLI setup wizard.
|
|
128
|
+
|
|
112
129
|
**Pi:** `npx @cortexkit/magic-context@latest setup --harness pi` (requires Pi `>= 0.74.0`). The Pi extension shares the same database as OpenCode; project memories and embeddings pool across both.
|
|
113
130
|
|
|
114
131
|
**Troubleshooting:** `npx @cortexkit/magic-context@latest doctor` auto-detects your harnesses, checks for conflicts (compaction, OMO hooks, DCP), verifies the plugin and TUI sidebar, runs an integrity check on the database, and fixes what it can. Add `--issue` to file a ready-to-submit bug report.
|
|
@@ -267,7 +284,7 @@ It reads directly from Magic Context's SQLite database. No extra server, no API.
|
|
|
267
284
|
|
|
268
285
|
## Configuration
|
|
269
286
|
|
|
270
|
-
Settings live in `magic-context.jsonc`.
|
|
287
|
+
Settings live in `magic-context.jsonc`. Most settings have sensible defaults, but `historian.model` is required for history compacting; project config merges on top of user-wide settings. For the full reference — cache TTL tuning, per-model execute thresholds, historian and dreamer model selection, embedding providers, and memory settings — see **[CONFIGURATION.md](./CONFIGURATION.md)** or the **[configuration reference on docs.cortexkit.io](https://docs.cortexkit.io/magic-context/reference/configuration/)**.
|
|
271
288
|
|
|
272
289
|
**Config locations** (one shared CortexKit location, project overrides user):
|
|
273
290
|
1. `<project-root>/.cortexkit/magic-context.jsonc`
|
|
@@ -1,3 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* User-facing spelling of the compaction-off config path, for log lines and
|
|
3
|
+
* command output. Built from fragments so the accessor-exclusivity guard
|
|
4
|
+
* (compaction-accessor-guard.test.ts) can keep rejecting literal
|
|
5
|
+
* `compaction.enabled` reads elsewhere — messages import this constant instead
|
|
6
|
+
* of inlining the path (the S5/S8 slices both re-derived it and tripped the
|
|
7
|
+
* guard; one constant ends that class).
|
|
8
|
+
*/
|
|
9
|
+
export declare const COMPACTION_ENABLED_PATH = "compaction.enabled";
|
|
1
10
|
export declare function isDreamerRunnable(config: {
|
|
2
11
|
dreamer?: {
|
|
3
12
|
disable?: boolean;
|
|
@@ -13,5 +22,18 @@ export declare function isHistorianRunnable(config: {
|
|
|
13
22
|
disable?: boolean;
|
|
14
23
|
} | null;
|
|
15
24
|
}): boolean;
|
|
25
|
+
/**
|
|
26
|
+
* The ONLY non-schema reader of the `compaction.enabled` config path.
|
|
27
|
+
* Resolves the compaction-off mode gate from a parsed Magic Context config.
|
|
28
|
+
* Lives beside the other subsystem toggles (isDreamerRunnable /
|
|
29
|
+
* isHistorianRunnable) and is IMPORTED — never re-derived — by every gate
|
|
30
|
+
* site (pi-plugin, cli, plugin boot, session hooks). Returns true (compaction
|
|
31
|
+
* ON / default behavior) when the block or field is absent.
|
|
32
|
+
*/
|
|
33
|
+
export declare function isCompactionEnabled(config: {
|
|
34
|
+
compaction?: {
|
|
35
|
+
enabled?: boolean;
|
|
36
|
+
} | null;
|
|
37
|
+
}): boolean;
|
|
16
38
|
export declare function migrateLegacyAgentEnabledInMemory(rawConfig: Record<string, unknown>, warnings: string[]): Record<string, unknown>;
|
|
17
39
|
//# sourceMappingURL=agent-disable.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"agent-disable.d.ts","sourceRoot":"","sources":["../../src/config/agent-disable.ts"],"names":[],"mappings":"AAAA,wBAAgB,iBAAiB,CAAC,MAAM,EAAE;IAAE,OAAO,CAAC,EAAE;QAAE,OAAO,CAAC,EAAE,OAAO,CAAA;KAAE,GAAG,IAAI,CAAA;CAAE,GAAG,OAAO,CAE7F;AAED,wBAAgB,kBAAkB,CAAC,MAAM,EAAE;IAAE,QAAQ,CAAC,EAAE;QAAE,OAAO,CAAC,EAAE,OAAO,CAAA;KAAE,GAAG,IAAI,CAAA;CAAE,GAAG,OAAO,CAE/F;AAED,wBAAgB,mBAAmB,CAAC,MAAM,EAAE;IAAE,SAAS,CAAC,EAAE;QAAE,OAAO,CAAC,EAAE,OAAO,CAAA;KAAE,GAAG,IAAI,CAAA;CAAE,GAAG,OAAO,CAEjG;AAmDD,wBAAgB,iCAAiC,CAC7C,SAAS,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAClC,QAAQ,EAAE,MAAM,EAAE,GACnB,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAiBzB"}
|
|
1
|
+
{"version":3,"file":"agent-disable.d.ts","sourceRoot":"","sources":["../../src/config/agent-disable.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AACH,eAAO,MAAM,uBAAuB,uBAA4B,CAAC;AAEjE,wBAAgB,iBAAiB,CAAC,MAAM,EAAE;IAAE,OAAO,CAAC,EAAE;QAAE,OAAO,CAAC,EAAE,OAAO,CAAA;KAAE,GAAG,IAAI,CAAA;CAAE,GAAG,OAAO,CAE7F;AAED,wBAAgB,kBAAkB,CAAC,MAAM,EAAE;IAAE,QAAQ,CAAC,EAAE;QAAE,OAAO,CAAC,EAAE,OAAO,CAAA;KAAE,GAAG,IAAI,CAAA;CAAE,GAAG,OAAO,CAE/F;AAED,wBAAgB,mBAAmB,CAAC,MAAM,EAAE;IAAE,SAAS,CAAC,EAAE;QAAE,OAAO,CAAC,EAAE,OAAO,CAAA;KAAE,GAAG,IAAI,CAAA;CAAE,GAAG,OAAO,CAEjG;AAED;;;;;;;GAOG;AACH,wBAAgB,mBAAmB,CAAC,MAAM,EAAE;IACxC,UAAU,CAAC,EAAE;QAAE,OAAO,CAAC,EAAE,OAAO,CAAA;KAAE,GAAG,IAAI,CAAC;CAC7C,GAAG,OAAO,CAEV;AAmDD,wBAAgB,iCAAiC,CAC7C,SAAS,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAClC,QAAQ,EAAE,MAAM,EAAE,GACnB,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAiBzB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/config/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"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|
* `dreamer.user_memories` / `dreamer.pin_key_files`.
|
|
7
7
|
* - this release: `experimental.temporal_awareness` / `caveman_text_compression`
|
|
8
8
|
* → top-level keys; `experimental.auto_search` / `git_commit_indexing` →
|
|
9
|
-
* `memory.auto_search` / `memory.git_commit_indexing
|
|
9
|
+
* `memory.auto_search` / `memory.git_commit_indexing`; and
|
|
10
|
+
* `experimental.mural` → top-level `mural`.
|
|
10
11
|
*
|
|
11
12
|
* Doctor runs an on-disk migration, but users who never run doctor would
|
|
12
13
|
* otherwise lose their opt-in/opt-out because the graduated keys are no longer
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"migrate-experimental.d.ts","sourceRoot":"","sources":["../../src/config/migrate-experimental.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"migrate-experimental.d.ts","sourceRoot":"","sources":["../../src/config/migrate-experimental.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2BG;AACH,wBAAgB,yBAAyB,CACrC,SAAS,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAClC,QAAQ,EAAE,MAAM,EAAE,GACnB,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAyJzB"}
|
|
@@ -7,12 +7,19 @@
|
|
|
7
7
|
* carry security fixes).
|
|
8
8
|
* - `fail_closed_blocking` — a repo must not un-block (or force-block) the
|
|
9
9
|
* loud inoperability gate; only the user may restore silent degrade.
|
|
10
|
+
* - `allow_home_project` — only the user may opt a home-directory session
|
|
11
|
+
* into a durable project identity.
|
|
12
|
+
* - `output_reserve` — only the user may change the process-wide safe input budget.
|
|
10
13
|
* - `language`: a repo must not inject prompt text through a user preference.
|
|
11
14
|
* - `sqlite` — `sqlite.cache_size_mb` / `mmap_size_mb` become PRAGMAs on the
|
|
12
15
|
* process-global shared DB handle (one connection across every project in the
|
|
13
16
|
* process). A cloned repo could set a huge value to exhaust host memory /
|
|
14
17
|
* address space — a resource-exhaustion vector with no legitimate per-repo
|
|
15
18
|
* use. Honor user-level config only.
|
|
19
|
+
* - `storage.enforce_private_permissions` — changing a shared store from
|
|
20
|
+
* owner-private to group-readable changes every session and memory's local
|
|
21
|
+
* confidentiality. Only the machine operator's user config may opt into an
|
|
22
|
+
* externally managed trusted-group deployment.
|
|
16
23
|
* - `embedding.endpoint` / `embedding.provider` — a repo must not choose
|
|
17
24
|
* where private memory/search/commit text is embedded. User-level config is
|
|
18
25
|
* the trust boundary for embedding destinations.
|
|
@@ -21,6 +28,8 @@
|
|
|
21
28
|
* requires trusted user-level `subc` configuration before Rust can activate.
|
|
22
29
|
* - `historian.model` / `historian.fallback_models` — historian model spend is
|
|
23
30
|
* user-level only; a cloned repo cannot force extra compaction cost.
|
|
31
|
+
* - `mural.model` — mural cue-compressor model selection is user-level only;
|
|
32
|
+
* a cloned repo cannot choose a model that sends project memory to a provider.
|
|
24
33
|
* - `pi.subagent_extensions` — a cloned repo must not choose which extensions
|
|
25
34
|
* the user's Pi child processes load.
|
|
26
35
|
* - hidden-agent `prompt`/`permission`/`tools` — a repo must not reprogram or
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"project-security.d.ts","sourceRoot":"","sources":["../../src/config/project-security.ts"],"names":[],"mappings":"AAyLA
|
|
1
|
+
{"version":3,"file":"project-security.d.ts","sourceRoot":"","sources":["../../src/config/project-security.ts"],"names":[],"mappings":"AAyLA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAoCG;AACH,wBAAgB,8BAA8B,CAAC,UAAU,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,MAAM,EAAE,CAiK5F;AAED;;;;;GAKG;AACH,wBAAgB,kCAAkC,CAAC,IAAI,EAAE;IACrD,SAAS,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IACnC,UAAU,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IACpC,iBAAiB,EAAE;QACf,4BAA4B,CAAC,EAAE,OAAO,CAAC;QACvC,wBAAwB,CAAC,EAAE,OAAO,CAAC;KACtC,CAAC;CACL,GAAG,MAAM,EAAE,CA+IX;AA2BD,wBAAgB,mCAAmC,CAC/C,UAAU,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EACnC,SAAS,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAClC,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAClC,MAAM,EAAE,CAsCV"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
import type { AGENTIC_DREAM_TASKS } from "../../features/magic-context/dreamer/task-registry";
|
|
3
3
|
export declare const DEFAULT_EXECUTE_THRESHOLD_PERCENTAGE = 65;
|
|
4
|
-
export declare const EXECUTE_THRESHOLD_CAP_MESSAGE = "execute_threshold is capped at
|
|
4
|
+
export declare const EXECUTE_THRESHOLD_CAP_MESSAGE = "execute_threshold is capped at 90% for cache safety: output capacity is reserved from the usable context window, and the remaining 10% absorbs mid-turn growth before the absolute 95% emergency wall. Use a value between 20 and 90.";
|
|
5
5
|
export declare const DEFAULT_HISTORIAN_TIMEOUT_MS = 300000;
|
|
6
6
|
export declare const DEFAULT_HISTORY_BUDGET_PERCENTAGE = 0.15;
|
|
7
7
|
export declare const DEFAULT_LOCAL_EMBEDDING_MODEL = "Xenova/all-MiniLM-L6-v2";
|
|
@@ -635,6 +635,21 @@ export declare const EmbeddingConfigSchema: z.ZodPipe<z.ZodObject<{
|
|
|
635
635
|
query_input_type: z.ZodOptional<z.ZodString>;
|
|
636
636
|
truncate: z.ZodOptional<z.ZodString>;
|
|
637
637
|
max_input_tokens: z.ZodOptional<z.ZodNumber>;
|
|
638
|
+
local_dtype: z.ZodOptional<z.ZodEnum<{
|
|
639
|
+
auto: "auto";
|
|
640
|
+
fp32: "fp32";
|
|
641
|
+
fp16: "fp16";
|
|
642
|
+
q8: "q8";
|
|
643
|
+
int8: "int8";
|
|
644
|
+
uint8: "uint8";
|
|
645
|
+
q4: "q4";
|
|
646
|
+
bnb4: "bnb4";
|
|
647
|
+
q4f16: "q4f16";
|
|
648
|
+
q2: "q2";
|
|
649
|
+
q2f16: "q2f16";
|
|
650
|
+
q1: "q1";
|
|
651
|
+
q1f16: "q1f16";
|
|
652
|
+
}>>;
|
|
638
653
|
}, z.core.$strip>, z.ZodTransform<{
|
|
639
654
|
max_input_tokens?: number | undefined;
|
|
640
655
|
truncate?: string | undefined;
|
|
@@ -646,6 +661,7 @@ export declare const EmbeddingConfigSchema: z.ZodPipe<z.ZodObject<{
|
|
|
646
661
|
fallback_provider?: "off" | "local" | "openai-compatible" | undefined;
|
|
647
662
|
provider: "synapse";
|
|
648
663
|
} | {
|
|
664
|
+
local_dtype?: "auto" | "fp32" | "fp16" | "q8" | "int8" | "uint8" | "q4" | "bnb4" | "q4f16" | "q2" | "q2f16" | "q1" | "q1f16" | undefined;
|
|
649
665
|
max_input_tokens?: number | undefined;
|
|
650
666
|
provider: "local";
|
|
651
667
|
model: string;
|
|
@@ -670,6 +686,7 @@ export declare const EmbeddingConfigSchema: z.ZodPipe<z.ZodObject<{
|
|
|
670
686
|
query_input_type?: string | undefined;
|
|
671
687
|
truncate?: string | undefined;
|
|
672
688
|
max_input_tokens?: number | undefined;
|
|
689
|
+
local_dtype?: "auto" | "fp32" | "fp16" | "q8" | "int8" | "uint8" | "q4" | "bnb4" | "q4f16" | "q2" | "q2f16" | "q1" | "q1f16" | undefined;
|
|
673
690
|
}>>;
|
|
674
691
|
export type EmbeddingConfig = z.infer<typeof EmbeddingConfigSchema>;
|
|
675
692
|
export type EmbeddingFallbackProvider = z.infer<typeof EmbeddingFallbackProviderSchema>;
|
|
@@ -679,18 +696,17 @@ export interface SubcConfig {
|
|
|
679
696
|
export interface ShadowEmbeddingConfig {
|
|
680
697
|
enabled: boolean;
|
|
681
698
|
}
|
|
682
|
-
export interface
|
|
699
|
+
export interface MuralConfig {
|
|
683
700
|
enabled: boolean;
|
|
684
701
|
/** The CUE COMPRESSOR model for the compress-cues dreamer task (the mural is
|
|
685
702
|
* now rendered deterministically, so this no longer names an author model). */
|
|
686
703
|
model?: string;
|
|
687
704
|
}
|
|
688
|
-
export interface ExperimentalConfig {
|
|
689
|
-
mural: ExperimentalMuralConfig;
|
|
690
|
-
}
|
|
691
705
|
export interface MagicContextConfig {
|
|
692
706
|
enabled: boolean;
|
|
693
|
-
|
|
707
|
+
/** User-level setting that lets a session started exactly in the canonical home directory use a deterministic directory identity. */
|
|
708
|
+
allow_home_project: boolean;
|
|
709
|
+
mural: MuralConfig;
|
|
694
710
|
/** Selects the runtime implementation for this project. Rust mode is experimental and requires user-level subc configuration. */
|
|
695
711
|
transform_mode: "ts" | "rust";
|
|
696
712
|
/** Auto-update the cached OpenCode plugin wrapper when a newer npm version is available.
|
|
@@ -704,6 +720,11 @@ export interface MagicContextConfig {
|
|
|
704
720
|
default: string;
|
|
705
721
|
[modelKey: string]: string;
|
|
706
722
|
};
|
|
723
|
+
/** User-only output-token reservation override. Zero disables reservation. */
|
|
724
|
+
output_reserve?: number | {
|
|
725
|
+
default: number;
|
|
726
|
+
[modelKey: string]: number;
|
|
727
|
+
};
|
|
707
728
|
/** TUI toast lifetime in milliseconds for Magic Context notifications. Default: 5000. */
|
|
708
729
|
toast_duration_ms?: number;
|
|
709
730
|
execute_threshold_percentage: number | {
|
|
@@ -712,7 +733,7 @@ export interface MagicContextConfig {
|
|
|
712
733
|
};
|
|
713
734
|
/** Absolute token thresholds per model. When set for a given model (or via `default`),
|
|
714
735
|
* this overrides `execute_threshold_percentage` for that model. Useful for hard caps
|
|
715
|
-
* matching provider input limits. Values above
|
|
736
|
+
* matching provider input limits. Values above 90% × context_limit are clamped with a warning. */
|
|
716
737
|
execute_threshold_tokens?: {
|
|
717
738
|
default?: number;
|
|
718
739
|
[modelKey: string]: number | undefined;
|
|
@@ -730,6 +751,13 @@ export interface MagicContextConfig {
|
|
|
730
751
|
cache_size_mb: number;
|
|
731
752
|
mmap_size_mb: number;
|
|
732
753
|
};
|
|
754
|
+
/**
|
|
755
|
+
* Keep shared-storage permissions under an external operator's control.
|
|
756
|
+
* USER config only; project configs cannot weaken local data privacy.
|
|
757
|
+
*/
|
|
758
|
+
storage: {
|
|
759
|
+
enforce_private_permissions: boolean;
|
|
760
|
+
};
|
|
733
761
|
/**
|
|
734
762
|
* Controls whether and where Magic Context augments the system prompt
|
|
735
763
|
* (`## Magic Context` guidance, `<project-docs>`, `<user-profile>`,
|
|
@@ -767,6 +795,16 @@ export interface MagicContextConfig {
|
|
|
767
795
|
* USER config only — project tier cannot set this. Not recommended to disable.
|
|
768
796
|
*/
|
|
769
797
|
fail_closed_blocking: boolean;
|
|
798
|
+
/**
|
|
799
|
+
* Compaction-off mode gate. When `enabled` is false Magic Context stops
|
|
800
|
+
* managing the context window and keeps only its knowledge layer, letting
|
|
801
|
+
* the harness's native compaction (or nothing) own the window. USER config
|
|
802
|
+
* only — project tier `compaction.enabled` is stripped for security.
|
|
803
|
+
* Boot-resolved: changing it requires a process restart.
|
|
804
|
+
*/
|
|
805
|
+
compaction: {
|
|
806
|
+
enabled: boolean;
|
|
807
|
+
};
|
|
770
808
|
/** Pi-only controls for Magic Context's OpenCode-parity todowrite surface. */
|
|
771
809
|
todowrite: {
|
|
772
810
|
enabled: boolean;
|
|
@@ -844,11 +882,10 @@ export interface MagicContextConfig {
|
|
|
844
882
|
}
|
|
845
883
|
export declare const MagicContextConfigSchema: z.ZodPipe<z.ZodObject<{
|
|
846
884
|
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
847
|
-
|
|
848
|
-
|
|
849
|
-
|
|
850
|
-
|
|
851
|
-
}, z.core.$strip>>;
|
|
885
|
+
allow_home_project: z.ZodDefault<z.ZodBoolean>;
|
|
886
|
+
mural: z.ZodDefault<z.ZodObject<{
|
|
887
|
+
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
888
|
+
model: z.ZodOptional<z.ZodString>;
|
|
852
889
|
}, z.core.$strip>>;
|
|
853
890
|
transform_mode: z.ZodDefault<z.ZodEnum<{
|
|
854
891
|
ts: "ts";
|
|
@@ -1170,6 +1207,9 @@ export declare const MagicContextConfigSchema: z.ZodPipe<z.ZodObject<{
|
|
|
1170
1207
|
cache_ttl: z.ZodDefault<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
1171
1208
|
default: z.ZodString;
|
|
1172
1209
|
}, z.core.$catchall<z.ZodString>>]>>;
|
|
1210
|
+
output_reserve: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodObject<{
|
|
1211
|
+
default: z.ZodNumber;
|
|
1212
|
+
}, z.core.$catchall<z.ZodNumber>>]>>;
|
|
1173
1213
|
toast_duration_ms: z.ZodDefault<z.ZodNumber>;
|
|
1174
1214
|
execute_threshold_percentage: z.ZodDefault<z.ZodUnion<readonly [z.ZodNumber, z.ZodObject<{
|
|
1175
1215
|
default: z.ZodNumber;
|
|
@@ -1193,6 +1233,9 @@ export declare const MagicContextConfigSchema: z.ZodPipe<z.ZodObject<{
|
|
|
1193
1233
|
cache_size_mb: z.ZodDefault<z.ZodNumber>;
|
|
1194
1234
|
mmap_size_mb: z.ZodDefault<z.ZodNumber>;
|
|
1195
1235
|
}, z.core.$strip>>;
|
|
1236
|
+
storage: z.ZodDefault<z.ZodObject<{
|
|
1237
|
+
enforce_private_permissions: z.ZodDefault<z.ZodBoolean>;
|
|
1238
|
+
}, z.core.$strip>>;
|
|
1196
1239
|
embedding: z.ZodDefault<z.ZodPipe<z.ZodObject<{
|
|
1197
1240
|
provider: z.ZodDefault<z.ZodEnum<{
|
|
1198
1241
|
off: "off";
|
|
@@ -1212,6 +1255,21 @@ export declare const MagicContextConfigSchema: z.ZodPipe<z.ZodObject<{
|
|
|
1212
1255
|
query_input_type: z.ZodOptional<z.ZodString>;
|
|
1213
1256
|
truncate: z.ZodOptional<z.ZodString>;
|
|
1214
1257
|
max_input_tokens: z.ZodOptional<z.ZodNumber>;
|
|
1258
|
+
local_dtype: z.ZodOptional<z.ZodEnum<{
|
|
1259
|
+
auto: "auto";
|
|
1260
|
+
fp32: "fp32";
|
|
1261
|
+
fp16: "fp16";
|
|
1262
|
+
q8: "q8";
|
|
1263
|
+
int8: "int8";
|
|
1264
|
+
uint8: "uint8";
|
|
1265
|
+
q4: "q4";
|
|
1266
|
+
bnb4: "bnb4";
|
|
1267
|
+
q4f16: "q4f16";
|
|
1268
|
+
q2: "q2";
|
|
1269
|
+
q2f16: "q2f16";
|
|
1270
|
+
q1: "q1";
|
|
1271
|
+
q1f16: "q1f16";
|
|
1272
|
+
}>>;
|
|
1215
1273
|
}, z.core.$strip>, z.ZodTransform<{
|
|
1216
1274
|
max_input_tokens?: number | undefined;
|
|
1217
1275
|
truncate?: string | undefined;
|
|
@@ -1223,6 +1281,7 @@ export declare const MagicContextConfigSchema: z.ZodPipe<z.ZodObject<{
|
|
|
1223
1281
|
fallback_provider?: "off" | "local" | "openai-compatible" | undefined;
|
|
1224
1282
|
provider: "synapse";
|
|
1225
1283
|
} | {
|
|
1284
|
+
local_dtype?: "auto" | "fp32" | "fp16" | "q8" | "int8" | "uint8" | "q4" | "bnb4" | "q4f16" | "q2" | "q2f16" | "q1" | "q1f16" | undefined;
|
|
1226
1285
|
max_input_tokens?: number | undefined;
|
|
1227
1286
|
provider: "local";
|
|
1228
1287
|
model: string;
|
|
@@ -1247,6 +1306,7 @@ export declare const MagicContextConfigSchema: z.ZodPipe<z.ZodObject<{
|
|
|
1247
1306
|
query_input_type?: string | undefined;
|
|
1248
1307
|
truncate?: string | undefined;
|
|
1249
1308
|
max_input_tokens?: number | undefined;
|
|
1309
|
+
local_dtype?: "auto" | "fp32" | "fp16" | "q8" | "int8" | "uint8" | "q4" | "bnb4" | "q4f16" | "q2" | "q2f16" | "q1" | "q1f16" | undefined;
|
|
1250
1310
|
}>>>;
|
|
1251
1311
|
subc: z.ZodOptional<z.ZodObject<{
|
|
1252
1312
|
connection_file: z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>;
|
|
@@ -1257,6 +1317,9 @@ export declare const MagicContextConfigSchema: z.ZodPipe<z.ZodObject<{
|
|
|
1257
1317
|
temporal_awareness: z.ZodDefault<z.ZodBoolean>;
|
|
1258
1318
|
keep_subagents: z.ZodDefault<z.ZodBoolean>;
|
|
1259
1319
|
fail_closed_blocking: z.ZodDefault<z.ZodBoolean>;
|
|
1320
|
+
compaction: z.ZodDefault<z.ZodObject<{
|
|
1321
|
+
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
1322
|
+
}, z.core.$strip>>;
|
|
1260
1323
|
todowrite: z.ZodDefault<z.ZodObject<{
|
|
1261
1324
|
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
1262
1325
|
overlay: z.ZodDefault<z.ZodBoolean>;
|
|
@@ -1348,11 +1411,10 @@ export declare const MagicContextConfigSchema: z.ZodPipe<z.ZodObject<{
|
|
|
1348
1411
|
}, z.core.$strip>>;
|
|
1349
1412
|
}, z.core.$strip>, z.ZodTransform<MagicContextConfig, {
|
|
1350
1413
|
enabled: boolean;
|
|
1351
|
-
|
|
1352
|
-
|
|
1353
|
-
|
|
1354
|
-
|
|
1355
|
-
};
|
|
1414
|
+
allow_home_project: boolean;
|
|
1415
|
+
mural: {
|
|
1416
|
+
enabled: boolean;
|
|
1417
|
+
model?: string | undefined;
|
|
1356
1418
|
};
|
|
1357
1419
|
transform_mode: "ts" | "rust";
|
|
1358
1420
|
cache_ttl: string | {
|
|
@@ -1379,6 +1441,9 @@ export declare const MagicContextConfigSchema: z.ZodPipe<z.ZodObject<{
|
|
|
1379
1441
|
cache_size_mb: number;
|
|
1380
1442
|
mmap_size_mb: number;
|
|
1381
1443
|
};
|
|
1444
|
+
storage: {
|
|
1445
|
+
enforce_private_permissions: boolean;
|
|
1446
|
+
};
|
|
1382
1447
|
embedding: {
|
|
1383
1448
|
max_input_tokens?: number | undefined;
|
|
1384
1449
|
truncate?: string | undefined;
|
|
@@ -1390,6 +1455,7 @@ export declare const MagicContextConfigSchema: z.ZodPipe<z.ZodObject<{
|
|
|
1390
1455
|
fallback_provider?: "off" | "local" | "openai-compatible" | undefined;
|
|
1391
1456
|
provider: "synapse";
|
|
1392
1457
|
} | {
|
|
1458
|
+
local_dtype?: "auto" | "fp32" | "fp16" | "q8" | "int8" | "uint8" | "q4" | "bnb4" | "q4f16" | "q2" | "q2f16" | "q1" | "q1f16" | undefined;
|
|
1393
1459
|
max_input_tokens?: number | undefined;
|
|
1394
1460
|
provider: "local";
|
|
1395
1461
|
model: string;
|
|
@@ -1411,6 +1477,9 @@ export declare const MagicContextConfigSchema: z.ZodPipe<z.ZodObject<{
|
|
|
1411
1477
|
temporal_awareness: boolean;
|
|
1412
1478
|
keep_subagents: boolean;
|
|
1413
1479
|
fail_closed_blocking: boolean;
|
|
1480
|
+
compaction: {
|
|
1481
|
+
enabled: boolean;
|
|
1482
|
+
};
|
|
1414
1483
|
todowrite: {
|
|
1415
1484
|
enabled: boolean;
|
|
1416
1485
|
overlay: boolean;
|
|
@@ -1575,6 +1644,10 @@ export declare const MagicContextConfigSchema: z.ZodPipe<z.ZodObject<{
|
|
|
1575
1644
|
fallback_models?: string | string[] | undefined;
|
|
1576
1645
|
thinking_level?: "off" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max" | undefined;
|
|
1577
1646
|
} | undefined;
|
|
1647
|
+
output_reserve?: number | {
|
|
1648
|
+
[x: string]: number;
|
|
1649
|
+
default: number;
|
|
1650
|
+
} | undefined;
|
|
1578
1651
|
execute_threshold_tokens?: {
|
|
1579
1652
|
[x: string]: number;
|
|
1580
1653
|
default?: number | undefined;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"magic-context.d.ts","sourceRoot":"","sources":["../../../src/config/schema/magic-context.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAIxB,OAAO,KAAK,EACR,mBAAmB,EAEtB,MAAM,oDAAoD,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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAoa/B,CAAC"}
|
|
@@ -2,7 +2,9 @@ export type ResolvedTransformMode = "ts" | "rust";
|
|
|
2
2
|
export interface ResolveTransformModeArgs {
|
|
3
3
|
configured: ResolvedTransformMode;
|
|
4
4
|
userTierHasSubc: boolean;
|
|
5
|
+
compactionEnabled: boolean;
|
|
5
6
|
}
|
|
7
|
+
export declare const RUST_COMPACTION_OFF_WARNING = "compaction-off mode does not support rust transform mode; using the TypeScript transform.";
|
|
6
8
|
export declare function resolveTransformMode(args: ResolveTransformModeArgs): {
|
|
7
9
|
mode: ResolvedTransformMode;
|
|
8
10
|
warnings: string[];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"transform-mode.d.ts","sourceRoot":"","sources":["../../src/config/transform-mode.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,qBAAqB,GAAG,IAAI,GAAG,MAAM,CAAC;AAElD,MAAM,WAAW,wBAAwB;IACrC,UAAU,EAAE,qBAAqB,CAAC;IAClC,eAAe,EAAE,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"transform-mode.d.ts","sourceRoot":"","sources":["../../src/config/transform-mode.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,qBAAqB,GAAG,IAAI,GAAG,MAAM,CAAC;AAElD,MAAM,WAAW,wBAAwB;IACrC,UAAU,EAAE,qBAAqB,CAAC;IAClC,eAAe,EAAE,OAAO,CAAC;IACzB,iBAAiB,EAAE,OAAO,CAAC;CAC9B;AAED,eAAO,MAAM,2BAA2B,8FACuD,CAAC;AAKhG,wBAAgB,oBAAoB,CAAC,IAAI,EAAE,wBAAwB,GAAG;IAClE,IAAI,EAAE,qBAAqB,CAAC;IAC5B,QAAQ,EAAE,MAAM,EAAE,CAAC;CACtB,CAgBA"}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import type { BuiltinCommandConfig } from "./types";
|
|
2
|
-
export declare function getMagicContextBuiltinCommands(): BuiltinCommandConfig;
|
|
2
|
+
export declare function getMagicContextBuiltinCommands(compactionEnabled?: boolean): BuiltinCommandConfig;
|
|
3
3
|
//# sourceMappingURL=commands.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"commands.d.ts","sourceRoot":"","sources":["../../../src/features/builtin-commands/commands.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,SAAS,CAAC;
|
|
1
|
+
{"version":3,"file":"commands.d.ts","sourceRoot":"","sources":["../../../src/features/builtin-commands/commands.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,SAAS,CAAC;AAIpD,wBAAgB,8BAA8B,CAAC,iBAAiB,UAAO,GAAG,oBAAoB,CA8C7F"}
|
|
@@ -137,6 +137,63 @@ export declare function listSessionCompactionMarkers(sessionId: string): Session
|
|
|
137
137
|
* SQLITE_BUSY; the caller retries on a later pass.
|
|
138
138
|
*/
|
|
139
139
|
export declare function removeForeignCompactionMarker(sessionId: string, marker: SessionCompactionMarkerRows, protectedSummaryMessageId: string | null): boolean;
|
|
140
|
+
/**
|
|
141
|
+
* Result of the compaction-off flip cleanup over one session's opencode.db
|
|
142
|
+
* rows (issue #266). Counts are row-level so the transition can both gate
|
|
143
|
+
* the flip notice ("cleared something") and prove idempotence (a second run
|
|
144
|
+
* reports zero removed rows).
|
|
145
|
+
*/
|
|
146
|
+
export interface McOwnedMarkerCleanupResult {
|
|
147
|
+
/**
|
|
148
|
+
* True only when cleanup completed without skipping an MC-owned lineage.
|
|
149
|
+
* False keeps the mode transition retryable instead of recording a
|
|
150
|
+
* successful flip while a marker can still hide history.
|
|
151
|
+
*/
|
|
152
|
+
verified: boolean;
|
|
153
|
+
/** MC-owned marker lineages fully removed (compaction part + summary rows together). */
|
|
154
|
+
removedLineages: number;
|
|
155
|
+
/** Message + part rows deleted in total. */
|
|
156
|
+
removedRows: number;
|
|
157
|
+
/**
|
|
158
|
+
* Lineages deliberately LEFT in place because a surviving compaction part
|
|
159
|
+
* (or message-level compaction field) carries a `tail_start_id` that
|
|
160
|
+
* references a row the deletion would remove. A missing tail target makes
|
|
161
|
+
* OpenCode's tailIndex resolve to -1 and silently bypass its reorder, so
|
|
162
|
+
* the contract is retarget-or-retain, never blind-delete; this cleanup
|
|
163
|
+
* retains.
|
|
164
|
+
*/
|
|
165
|
+
retainedLineages: number;
|
|
166
|
+
}
|
|
167
|
+
/**
|
|
168
|
+
* Delete every Magic Context-owned compaction-marker lineage for a session
|
|
169
|
+
* from opencode.db. This is the flip-off transition's primary mechanism
|
|
170
|
+
* (issue #266 decision #7): with MC no longer injecting `<session-history>`,
|
|
171
|
+
* a surviving MC marker would keep `filterCompacted` hiding pre-boundary
|
|
172
|
+
* history with nothing to replace it — orphaned context. Deleting the MC
|
|
173
|
+
* pairs lets OpenCode recompute filtering live from the surviving rows, as if
|
|
174
|
+
* the MC markers never existed (peer-verified newest-completed-summary
|
|
175
|
+
* semantics; older markers inside the retained tail do not define the
|
|
176
|
+
* boundary). Native compaction rows are never matched: ownership keys on
|
|
177
|
+
* MC-specific signatures (the `magic-context` provider identity on summary
|
|
178
|
+
* messages, the exact MC marker summary text for legacy lineages, and the
|
|
179
|
+
* MC canonical compaction-part shape) plus session identity.
|
|
180
|
+
*
|
|
181
|
+
* Deletion caveats honored (both binding from the OpenCode peer verification):
|
|
182
|
+
* 1. The compaction part and its summary assistant rows are deleted TOGETHER
|
|
183
|
+
* in one transaction (summary parts cascade first). Deleting only the
|
|
184
|
+
* compaction part would strand the summary message in model history.
|
|
185
|
+
* The boundary USER message row itself is real user history and is never
|
|
186
|
+
* deleted — only the MC-injected compaction part attached to it.
|
|
187
|
+
* 2. tail_start_id PREFLIGHT: before deleting, every SURVIVING compaction
|
|
188
|
+
* part (and message-level compaction field) is checked for a
|
|
189
|
+
* `tail_start_id` equal to any row about to be deleted. On a hit the
|
|
190
|
+
* lineage is RETAINED, never blind-deleted.
|
|
191
|
+
*
|
|
192
|
+
* Idempotent: absent rows delete as a no-op (second run reports zeros).
|
|
193
|
+
* Errors propagate — the transition treats them as retryable and reruns the
|
|
194
|
+
* same logical cleanup on the next pass (delete-then-record protocol).
|
|
195
|
+
*/
|
|
196
|
+
export declare function removeMcOwnedCompactionMarkers(sessionId: string, summaryText: string): McOwnedMarkerCleanupResult;
|
|
140
197
|
/**
|
|
141
198
|
* Remove an existing compaction marker (all 3 rows).
|
|
142
199
|
* Used when moving the boundary forward or on session cleanup.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"compaction-marker.d.ts","sourceRoot":"","sources":["../../../src/features/magic-context/compaction-marker.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2BG;AA6CH,wBAAgB,iBAAiB,CAAC,WAAW,EAAE,MAAM,EAAE,OAAO,SAAK,EAAE,QAAQ,SAAK,GAAG,MAAM,CAE1F;AAED,wBAAgB,cAAc,CAAC,WAAW,EAAE,MAAM,EAAE,OAAO,SAAK,EAAE,QAAQ,SAAK,GAAG,MAAM,CAEvF;AAID,wBAAgB,iBAAiB,IAAI,MAAM,CAE1C;AA4GD,wBAAgB,uBAAuB,IAAI,IAAI,CAY9C;AAID,MAAM,WAAW,mBAAmB;IAChC,EAAE,EAAE,MAAM,CAAC;IACX,WAAW,EAAE,MAAM,CAAC;CACvB;AA6BD;;;;;;GAMG;AACH,wBAAgB,uBAAuB,CACnC,SAAS,EAAE,MAAM,EACjB,YAAY,EAAE,MAAM,GACrB,mBAAmB,GAAG,IAAI,CAoC5B;AAED,wBAAgB,uCAAuC,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EAAE,MAAM,EACjB,MAAM,EAAE,2BAA2B,EACnC,yBAAyB,EAAE,MAAM,GAAG,IAAI,GACzC,OAAO,CAyBT;AAID;;;GAGG;AACH,wBAAgB,sBAAsB,CAAC,KAAK,EAAE,qBAAqB,GAAG,OAAO,CAgB5E"}
|
|
1
|
+
{"version":3,"file":"compaction-marker.d.ts","sourceRoot":"","sources":["../../../src/features/magic-context/compaction-marker.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2BG;AA6CH,wBAAgB,iBAAiB,CAAC,WAAW,EAAE,MAAM,EAAE,OAAO,SAAK,EAAE,QAAQ,SAAK,GAAG,MAAM,CAE1F;AAED,wBAAgB,cAAc,CAAC,WAAW,EAAE,MAAM,EAAE,OAAO,SAAK,EAAE,QAAQ,SAAK,GAAG,MAAM,CAEvF;AAID,wBAAgB,iBAAiB,IAAI,MAAM,CAE1C;AA4GD,wBAAgB,uBAAuB,IAAI,IAAI,CAY9C;AAID,MAAM,WAAW,mBAAmB;IAChC,EAAE,EAAE,MAAM,CAAC;IACX,WAAW,EAAE,MAAM,CAAC;CACvB;AA6BD;;;;;;GAMG;AACH,wBAAgB,uBAAuB,CACnC,SAAS,EAAE,MAAM,EACjB,YAAY,EAAE,MAAM,GACrB,mBAAmB,GAAG,IAAI,CAoC5B;AAED,wBAAgB,uCAAuC,CACnD,SAAS,EAAE,MAAM,EACjB,aAAa,EAAE,MAAM,EACrB,cAAc,EAAE,MAAM,GACvB,MAAM,GAAG,IAAI,CASf;AAED;;;;;;;;;;;;;GAaG;AACH,wBAAgB,sBAAsB,CAClC,SAAS,EAAE,MAAM,EACjB,SAAS,EAAE,MAAM,GAClB;IAAE,EAAE,EAAE,MAAM,CAAA;CAAE,GAAG,IAAI,CAMvB;AAID,UAAU,qBAAqB;IAC3B,uDAAuD;IACvD,iBAAiB,EAAE,MAAM,CAAC;IAC1B,mDAAmD;IACnD,gBAAgB,EAAE,MAAM,CAAC;IACzB,iDAAiD;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gB,8BAA8B,CAC1C,SAAS,EAAE,MAAM,EACjB,WAAW,EAAE,MAAM,GACpB,0BAA0B,CAwN5B;AAED;;;GAGG;AACH,wBAAgB,sBAAsB,CAAC,KAAK,EAAE,qBAAqB,GAAG,OAAO,CAgB5E"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"compartment-chunk-embedding.d.ts","sourceRoot":"","sources":["../../../src/features/magic-context/compartment-chunk-embedding.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,QAAQ,EAAkC,MAAM,qBAAqB,CAAC;AAGpF,eAAO,MAAM,0CAA0C,MAAM,CAAC;AAE9D;;;;;;;;GAQG;AACH,eAAO,MAAM,yBAAyB,MAAM,CAAC;
|
|
1
|
+
{"version":3,"file":"compartment-chunk-embedding.d.ts","sourceRoot":"","sources":["../../../src/features/magic-context/compartment-chunk-embedding.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,QAAQ,EAAkC,MAAM,qBAAqB,CAAC;AAGpF,eAAO,MAAM,0CAA0C,MAAM,CAAC;AAE9D;;;;;;;;GAQG;AACH,eAAO,MAAM,yBAAyB,MAAM,CAAC;AAkD7C,MAAM,WAAW,iCAAiC;IAC9C,EAAE,EAAE,MAAM,CAAC;IACX,SAAS,EAAE,MAAM,CAAC;IAClB,YAAY,EAAE,MAAM,CAAC;IACrB,UAAU,EAAE,MAAM,CAAC;IACnB,KAAK,EAAE,MAAM,CAAC;CACjB;AAED,MAAM,WAAW,sBAAsB;IACnC,WAAW,EAAE,MAAM,CAAC;IACpB,YAAY,EAAE,MAAM,CAAC;IACrB,UAAU,EAAE,MAAM,CAAC;IACnB,IAAI,EAAE,MAAM,CAAC;IACb,SAAS,EAAE,MAAM,CAAC;CACrB;AAED,MAAM,WAAW,+BAA+B;IAC5C,aAAa,EAAE,MAAM,CAAC;IACtB,SAAS,EAAE,MAAM,CAAC;IAClB,KAAK,EAAE,MAAM,CAAC;IACd,YAAY,EAAE,MAAM,CAAC;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AChB;IAAE,QAAQ,EAAE,MAAM,CAAC;IAAC,KAAK,EAAE,MAAM,CAAA;CAAE,CA2BrC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"classify.d.ts","sourceRoot":"","sources":["../../../../src/features/magic-context/dreamer/classify.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"classify.d.ts","sourceRoot":"","sources":["../../../../src/features/magic-context/dreamer/classify.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,uBAAuB,CAAC;AAW3D,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,wBAAwB,CAAC;AACvD,OAAO,EAGH,KAAK,MAAM,EAEd,MAAM,WAAW,CAAC;AA0CnB,MAAM,WAAW,sBAAsB;IACnC,SAAS,EAAE,MAAM,CAAC;IAClB,WAAW,EAAE,MAAM,CAAC;IACpB,MAAM,EAAE,MAAM,CAAC;IACf,IAAI,EAAE,OAAO,CAAC;IACd,MAAM,CAAC,EAAE,WAAW,CAAC;IACrB,SAAS,CAAC,EAAE,MAAM,CAAC;CACtB;AAED,MAAM,WAAW,oBAAoB;IACjC,IAAI,CAAC,IAAI,EAAE,sBAAsB,GAAG,OAAO,CAAC,OAAO,CAAC,CAAC;CACxD;AAED;;;;;GAKG;AACH,qBAAa,0BAA2B,SAAQ,KAAK;IACjD,QAAQ,CAAC,SAAS,QAAQ;gBAEd,SAAS,EAAE,MAAM,EAAE,KAAK,EAAE,OAAO;CAKhD;AAED,MAAM,WAAW,YAAY;IACzB,EAAE,EAAE,QAAQ,CAAC;IACb,MAAM,EAAE,aAAa,CAAC,QAAQ,CAAC,CAAC;IAChC,eAAe,EAAE,MAAM,CAAC;IACxB,eAAe,EAAE,MAAM,GAAG,SAAS,CAAC;IACpC,gBAAgB,EAAE,MAAM,CAAC;IACzB,QAAQ,EAAE,MAAM,CAAC;IACjB,QAAQ,EAAE,MAAM,CAAC;IACjB,QAAQ,EAAE,MAAM,CAAC;IACjB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,cAAc,CAAC,EAAE,SAAS,MAAM,EAAE,CAAC;IACnC,8EAA8E;IAC9E,YAAY,CAAC,EAAE,oBAAoB,CAAC;IACpC,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,sBAAsB,CAAC,EAAE,MAAM,CAAC;IAChC,yBAAyB,CAAC,EAAE,MAAM,CAAC;IACnC,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,UAAU,CAAC,EAAE,CAAC,SAAS,EAAE,MAAM,KAAK,IAAI,CAAC;CAC5C;AAED,MAAM,WAAW,cAAc;IAC3B,UAAU,EAAE,MAAM,CAAC;IACnB,OAAO,EAAE,MAAM,CAAC;IAChB,MAAM,EAAE,MAAM,CAAC;IACf,KAAK,EAAE,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC;IACjB,SAAS,EAAE,MAAM,CAAC;IAClB,QAAQ,EAAE,OAAO,CAAC;CACrB;AAmGD,wBAAsB,WAAW,CAAC,IAAI,EAAE,YAAY,GAAG,OAAO,CAAC,cAAc,CAAC,CA0F7E;AAqQD,wBAAgB,oBAAoB,CAChC,IAAI,EAAE,YAAY,EAClB,KAAK,EAAE,MAAM,EAAE,EACf,YAAY,EAAE,MAAM,GACrB;IAAE,UAAU,EAAE,MAAM,CAAC;IAAC,OAAO,EAAE,MAAM,CAAA;CAAE,CAgCzC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"evaluate-smart-notes.d.ts","sourceRoot":"","sources":["../../../../src/features/magic-context/dreamer/evaluate-smart-notes.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"evaluate-smart-notes.d.ts","sourceRoot":"","sources":["../../../../src/features/magic-context/dreamer/evaluate-smart-notes.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,uBAAuB,CAAC;AAK3D,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,wBAAwB,CAAC;AAsBvD,MAAM,WAAW,sBAAsB;IACnC,EAAE,EAAE,QAAQ,CAAC;IACb,MAAM,EAAE,aAAa,CAAC,QAAQ,CAAC,CAAC;IAChC,eAAe,EAAE,MAAM,CAAC;IACxB,eAAe,EAAE,MAAM,GAAG,SAAS,CAAC;IACpC,gBAAgB,EAAE,MAAM,GAAG,SAAS,CAAC;IACrC,QAAQ,EAAE,MAAM,CAAC;IACjB,yFAAyF;IACzF,QAAQ,EAAE,MAAM,CAAC;IACjB,QAAQ,EAAE,MAAM,CAAC;IACjB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,cAAc,CAAC,EAAE,SAAS,MAAM,EAAE,CAAC;IACnC,WAAW,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,EAAE,KAAK,CAAC,EAAE,OAAO,KAAK,IAAI,CAAC;CAC1D;AAED,MAAM,WAAW,wBAAwB;IACrC,QAAQ,EAAE,MAAM,CAAC;IACjB,OAAO,EAAE,MAAM,CAAC;IAChB,8EAA8E;IAC9E,GAAG,EAAE,OAAO,CAAC;CAChB;AA8BD;;;;;GAKG;AACH,wBAAsB,kBAAkB,CACpC,IAAI,EAAE,sBAAsB,GAC7B,OAAO,CAAC,wBAAwB,CAAC,CAoKnC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"map-memories.d.ts","sourceRoot":"","sources":["../../../../src/features/magic-context/dreamer/map-memories.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"map-memories.d.ts","sourceRoot":"","sources":["../../../../src/features/magic-context/dreamer/map-memories.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,uBAAuB,CAAC;AAU3D,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,wBAAwB,CAAC;AAUvD,OAAO,EAIH,KAAK,cAAc,EAEtB,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EAEH,KAAK,kBAAkB,EAE1B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