@cortexkit/opencode-magic-context 0.33.0 → 0.34.0
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/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/project-security.d.ts +7 -0
- package/dist/config/project-security.d.ts.map +1 -1
- package/dist/config/schema/magic-context.d.ts +144 -24
- 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-bwa99a04.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 +106 -0
- package/dist/features/magic-context/compaction-marker.d.ts.map +1 -1
- package/dist/features/magic-context/compartment-chunk-embedding.d.ts +0 -2
- package/dist/features/magic-context/compartment-chunk-embedding.d.ts.map +1 -1
- 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.map +1 -1
- package/dist/features/magic-context/dreamer/refresh-primers.d.ts.map +1 -1
- package/dist/features/magic-context/dreamer/task-executor.d.ts.map +1 -1
- package/dist/features/magic-context/dreamer/task-registry.d.ts +0 -1
- package/dist/features/magic-context/dreamer/task-registry.d.ts.map +1 -1
- 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/index.d.ts +2 -2
- package/dist/features/magic-context/git-commits/index.d.ts.map +1 -1
- package/dist/features/magic-context/git-commits/storage-git-commit-embeddings.d.ts +0 -2
- 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 +0 -13
- 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 +1 -2
- package/dist/features/magic-context/memory/embedding.d.ts.map +1 -1
- package/dist/features/magic-context/memory/memory-migration.d.ts +0 -6
- 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 +0 -1
- package/dist/features/magic-context/memory/storage-memory-embeddings.d.ts.map +1 -1
- package/dist/features/magic-context/memory/storage-memory.d.ts +1 -6
- package/dist/features/magic-context/memory/storage-memory.d.ts.map +1 -1
- package/dist/features/magic-context/memory/verification-paths.d.ts +0 -1
- package/dist/features/magic-context/memory/verification-paths.d.ts.map +1 -1
- package/dist/features/magic-context/migrations.d.ts.map +1 -1
- 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/mural/storage-mural.d.ts +0 -1
- package/dist/features/magic-context/mural/storage-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 +16 -2
- 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/capabilities.d.ts +0 -2
- package/dist/features/magic-context/smart-notes/capabilities.d.ts.map +1 -1
- package/dist/features/magic-context/smart-notes/compiler.d.ts +0 -1
- package/dist/features/magic-context/smart-notes/compiler.d.ts.map +1 -1
- package/dist/features/magic-context/smart-notes/types.d.ts +0 -16
- package/dist/features/magic-context/smart-notes/types.d.ts.map +1 -1
- package/dist/features/magic-context/storage-db.d.ts +35 -1
- package/dist/features/magic-context/storage-db.d.ts.map +1 -1
- package/dist/features/magic-context/storage-meta-persisted.d.ts +38 -5
- 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 +1 -1
- 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/features/magic-context/user-memory/storage-user-memory.d.ts +0 -2
- package/dist/features/magic-context/user-memory/storage-user-memory.d.ts.map +1 -1
- package/dist/hooks/auto-update-checker/types.d.ts +0 -3
- package/dist/hooks/auto-update-checker/types.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 -1
- package/dist/hooks/magic-context/cache-busting-signals.d.ts.map +1 -1
- package/dist/hooks/magic-context/channel2-delivery.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 +2 -0
- package/dist/hooks/magic-context/command-handler.d.ts.map +1 -1
- package/dist/hooks/magic-context/compaction-marker-manager.d.ts +49 -0
- package/dist/hooks/magic-context/compaction-marker-manager.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-parser.d.ts +12 -0
- package/dist/hooks/magic-context/compartment-parser.d.ts.map +1 -1
- 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 +0 -12
- 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/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/historian-prompt.generated.d.ts +1 -1
- package/dist/hooks/magic-context/historian-prompt.generated.d.ts.map +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 +11 -1
- package/dist/hooks/magic-context/hook.d.ts.map +1 -1
- package/dist/hooks/magic-context/inject-compartments.d.ts +18 -0
- package/dist/hooks/magic-context/inject-compartments.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/sentinel.d.ts +39 -0
- package/dist/hooks/magic-context/sentinel.d.ts.map +1 -1
- package/dist/hooks/magic-context/tag-messages.d.ts.map +1 -1
- package/dist/hooks/magic-context/tool-drop-target.d.ts +19 -0
- package/dist/hooks/magic-context/tool-drop-target.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 +30 -0
- package/dist/hooks/magic-context/transform-postprocess-phase.d.ts.map +1 -1
- package/dist/hooks/magic-context/transform.d.ts +27 -0
- package/dist/hooks/magic-context/transform.d.ts.map +1 -1
- package/dist/{index-kxz4tn6m.js → index-56yjaeb2.js} +56 -4
- package/dist/{index-bmkea2dq.js → index-b563sga5.js} +40 -287
- package/dist/{index-y1c9tcm3.js → index-cn960ffd.js} +101 -20
- package/dist/{index-k5y60ymm.js → index-dtas91s5.js} +27 -6
- package/dist/index-fcyvznch.js +279 -0
- package/dist/{index-63dq2g4d.js → index-ry8rh8cv.js} +138 -24
- package/dist/{index-h86twgsp.js → index-s0mdn690.js} +2113 -1067
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1356 -627
- package/dist/plugin/embedding-bootstrap.d.ts.map +1 -1
- package/dist/plugin/hooks/create-session-hooks.d.ts +19 -8
- 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-yh7pepvx.js → recomp-orchestrator-8e82vmvb.js} +6 -5
- 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 +46 -1
- package/dist/shared/rpc-types.d.ts.map +1 -1
- package/dist/shared/sqlite.d.ts +9 -4
- package/dist/shared/sqlite.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/{storage-meta-session-1phy0b1z.js → storage-meta-session-xt41zbw4.js} +2 -1
- package/dist/{task-config-dn9k9szr.js → task-config-5nx3qfz8.js} +1 -2
- 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 +8 -3
- 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 +904 -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.ts +159 -0
- package/src/config/project-security.test.ts +366 -0
- package/src/config/project-security.ts +588 -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 +358 -0
- package/src/config/schema/magic-context.ts +1002 -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 +104 -0
- package/src/shared/conflict-detector.test.ts +251 -1
- package/src/shared/conflict-detector.ts +84 -5
- 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 +46 -1
- package/src/shared/sqlite.ts +13 -33
- package/src/shared/storage-permissions.ts +20 -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 +139 -83
- 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 +237 -161
- package/dist/config/schema.d.ts +0 -3
- package/dist/config/schema.d.ts.map +0 -1
- package/dist/features/magic-context/plugin-messages.d.ts +0 -75
- package/dist/features/magic-context/plugin-messages.d.ts.map +0 -1
- package/dist/hooks/magic-context/compartment-runner-state-xml.d.ts +0 -21
- package/dist/hooks/magic-context/compartment-runner-state-xml.d.ts.map +0 -1
- package/dist/index-anhrfygk.js +0 -57
- package/dist/send-session-notification-tghq9gnh.js +0 -11
- package/dist/shared/opencode-compaction-detector.d.ts +0 -2
- package/dist/shared/opencode-compaction-detector.d.ts.map +0 -1
- package/dist/shared/transcript-opencode.d.ts +0 -71
- package/dist/shared/transcript-opencode.d.ts.map +0 -1
- package/dist/tools/index.d.ts +0 -6
- package/dist/tools/index.d.ts.map +0 -1
- package/src/shared/opencode-compaction-detector.test.ts +0 -239
- package/src/shared/opencode-compaction-detector.ts +0 -81
- package/src/shared/transcript-opencode.ts +0 -302
- /package/dist/{index-v7fmc1s2.js → index-ygcng9t8.js} +0 -0
|
@@ -1,18 +1,14 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
|
-
import { AGENTIC_DREAM_TASKS } from "../../features/magic-context/dreamer/task-registry";
|
|
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";
|
|
8
|
-
export declare const DREAMER_TASKS: readonly ["curate", "maintain-docs"];
|
|
9
|
-
export declare const DreamingTaskSchema: z.ZodEnum<{
|
|
10
|
-
curate: "curate";
|
|
11
|
-
"maintain-docs": "maintain-docs";
|
|
12
|
-
}>;
|
|
13
8
|
export type DreamingTask = (typeof AGENTIC_DREAM_TASKS)[number];
|
|
14
9
|
/** Valid thinking levels for Pi subagents. Maps to Pi's --thinking CLI flag.
|
|
15
|
-
* Off: disable reasoning. Minimal/low/medium/high/xhigh: increasing reasoning depth.
|
|
10
|
+
* Off: disable reasoning. Minimal/low/medium/high/xhigh/max: increasing reasoning depth.
|
|
11
|
+
* `max` was added in Pi 0.83.0.
|
|
16
12
|
* Pi-only — OpenCode uses `variant` in agent config instead. */
|
|
17
13
|
export declare const PiThinkingLevelSchema: z.ZodOptional<z.ZodEnum<{
|
|
18
14
|
off: "off";
|
|
@@ -21,6 +17,7 @@ export declare const PiThinkingLevelSchema: z.ZodOptional<z.ZodEnum<{
|
|
|
21
17
|
medium: "medium";
|
|
22
18
|
high: "high";
|
|
23
19
|
xhigh: "xhigh";
|
|
20
|
+
max: "max";
|
|
24
21
|
}>>;
|
|
25
22
|
export type PiThinkingLevel = z.infer<typeof PiThinkingLevelSchema>;
|
|
26
23
|
/** Pi-only child-process controls. This block is intentionally optional so an
|
|
@@ -40,6 +37,7 @@ export declare const DreamTaskConfigSchema: z.ZodObject<{
|
|
|
40
37
|
medium: "medium";
|
|
41
38
|
high: "high";
|
|
42
39
|
xhigh: "xhigh";
|
|
40
|
+
max: "max";
|
|
43
41
|
}>>;
|
|
44
42
|
timeout_minutes: z.ZodDefault<z.ZodNumber>;
|
|
45
43
|
promotion_threshold: z.ZodOptional<z.ZodNumber>;
|
|
@@ -60,6 +58,7 @@ export declare const DreamTasksSchema: z.ZodObject<{
|
|
|
60
58
|
medium: "medium";
|
|
61
59
|
high: "high";
|
|
62
60
|
xhigh: "xhigh";
|
|
61
|
+
max: "max";
|
|
63
62
|
}>>;
|
|
64
63
|
timeout_minutes: z.ZodDefault<z.ZodNumber>;
|
|
65
64
|
}, z.core.$strip>>;
|
|
@@ -74,6 +73,7 @@ export declare const DreamTasksSchema: z.ZodObject<{
|
|
|
74
73
|
medium: "medium";
|
|
75
74
|
high: "high";
|
|
76
75
|
xhigh: "xhigh";
|
|
76
|
+
max: "max";
|
|
77
77
|
}>>;
|
|
78
78
|
timeout_minutes: z.ZodDefault<z.ZodNumber>;
|
|
79
79
|
}, z.core.$strip>>;
|
|
@@ -88,6 +88,7 @@ export declare const DreamTasksSchema: z.ZodObject<{
|
|
|
88
88
|
medium: "medium";
|
|
89
89
|
high: "high";
|
|
90
90
|
xhigh: "xhigh";
|
|
91
|
+
max: "max";
|
|
91
92
|
}>>;
|
|
92
93
|
timeout_minutes: z.ZodDefault<z.ZodNumber>;
|
|
93
94
|
}, z.core.$strip>>;
|
|
@@ -102,6 +103,7 @@ export declare const DreamTasksSchema: z.ZodObject<{
|
|
|
102
103
|
medium: "medium";
|
|
103
104
|
high: "high";
|
|
104
105
|
xhigh: "xhigh";
|
|
106
|
+
max: "max";
|
|
105
107
|
}>>;
|
|
106
108
|
timeout_minutes: z.ZodDefault<z.ZodNumber>;
|
|
107
109
|
}, z.core.$strip>>;
|
|
@@ -116,6 +118,7 @@ export declare const DreamTasksSchema: z.ZodObject<{
|
|
|
116
118
|
medium: "medium";
|
|
117
119
|
high: "high";
|
|
118
120
|
xhigh: "xhigh";
|
|
121
|
+
max: "max";
|
|
119
122
|
}>>;
|
|
120
123
|
timeout_minutes: z.ZodDefault<z.ZodNumber>;
|
|
121
124
|
}, z.core.$strip>>;
|
|
@@ -130,6 +133,7 @@ export declare const DreamTasksSchema: z.ZodObject<{
|
|
|
130
133
|
medium: "medium";
|
|
131
134
|
high: "high";
|
|
132
135
|
xhigh: "xhigh";
|
|
136
|
+
max: "max";
|
|
133
137
|
}>>;
|
|
134
138
|
timeout_minutes: z.ZodDefault<z.ZodNumber>;
|
|
135
139
|
}, z.core.$strip>>;
|
|
@@ -144,6 +148,7 @@ export declare const DreamTasksSchema: z.ZodObject<{
|
|
|
144
148
|
medium: "medium";
|
|
145
149
|
high: "high";
|
|
146
150
|
xhigh: "xhigh";
|
|
151
|
+
max: "max";
|
|
147
152
|
}>>;
|
|
148
153
|
timeout_minutes: z.ZodDefault<z.ZodNumber>;
|
|
149
154
|
}, z.core.$strip>>;
|
|
@@ -158,6 +163,7 @@ export declare const DreamTasksSchema: z.ZodObject<{
|
|
|
158
163
|
medium: "medium";
|
|
159
164
|
high: "high";
|
|
160
165
|
xhigh: "xhigh";
|
|
166
|
+
max: "max";
|
|
161
167
|
}>>;
|
|
162
168
|
timeout_minutes: z.ZodDefault<z.ZodNumber>;
|
|
163
169
|
}, z.core.$strip>>;
|
|
@@ -172,6 +178,7 @@ export declare const DreamTasksSchema: z.ZodObject<{
|
|
|
172
178
|
medium: "medium";
|
|
173
179
|
high: "high";
|
|
174
180
|
xhigh: "xhigh";
|
|
181
|
+
max: "max";
|
|
175
182
|
}>>;
|
|
176
183
|
timeout_minutes: z.ZodDefault<z.ZodNumber>;
|
|
177
184
|
}, z.core.$strip>>;
|
|
@@ -186,6 +193,7 @@ export declare const DreamTasksSchema: z.ZodObject<{
|
|
|
186
193
|
medium: "medium";
|
|
187
194
|
high: "high";
|
|
188
195
|
xhigh: "xhigh";
|
|
196
|
+
max: "max";
|
|
189
197
|
}>>;
|
|
190
198
|
timeout_minutes: z.ZodDefault<z.ZodNumber>;
|
|
191
199
|
promotion_threshold: z.ZodOptional<z.ZodNumber>;
|
|
@@ -201,6 +209,7 @@ export declare const DreamTasksSchema: z.ZodObject<{
|
|
|
201
209
|
medium: "medium";
|
|
202
210
|
high: "high";
|
|
203
211
|
xhigh: "xhigh";
|
|
212
|
+
max: "max";
|
|
204
213
|
}>>;
|
|
205
214
|
timeout_minutes: z.ZodDefault<z.ZodNumber>;
|
|
206
215
|
promotion_threshold: z.ZodOptional<z.ZodNumber>;
|
|
@@ -216,6 +225,7 @@ export declare const DreamTasksSchema: z.ZodObject<{
|
|
|
216
225
|
medium: "medium";
|
|
217
226
|
high: "high";
|
|
218
227
|
xhigh: "xhigh";
|
|
228
|
+
max: "max";
|
|
219
229
|
}>>;
|
|
220
230
|
timeout_minutes: z.ZodDefault<z.ZodNumber>;
|
|
221
231
|
}, z.core.$strip>>;
|
|
@@ -282,6 +292,7 @@ export declare const DreamerConfigSchema: z.ZodObject<{
|
|
|
282
292
|
medium: "medium";
|
|
283
293
|
high: "high";
|
|
284
294
|
xhigh: "xhigh";
|
|
295
|
+
max: "max";
|
|
285
296
|
}>>;
|
|
286
297
|
timeout_minutes: z.ZodDefault<z.ZodNumber>;
|
|
287
298
|
}, z.core.$strip>>;
|
|
@@ -296,6 +307,7 @@ export declare const DreamerConfigSchema: z.ZodObject<{
|
|
|
296
307
|
medium: "medium";
|
|
297
308
|
high: "high";
|
|
298
309
|
xhigh: "xhigh";
|
|
310
|
+
max: "max";
|
|
299
311
|
}>>;
|
|
300
312
|
timeout_minutes: z.ZodDefault<z.ZodNumber>;
|
|
301
313
|
}, z.core.$strip>>;
|
|
@@ -310,6 +322,7 @@ export declare const DreamerConfigSchema: z.ZodObject<{
|
|
|
310
322
|
medium: "medium";
|
|
311
323
|
high: "high";
|
|
312
324
|
xhigh: "xhigh";
|
|
325
|
+
max: "max";
|
|
313
326
|
}>>;
|
|
314
327
|
timeout_minutes: z.ZodDefault<z.ZodNumber>;
|
|
315
328
|
}, z.core.$strip>>;
|
|
@@ -324,6 +337,7 @@ export declare const DreamerConfigSchema: z.ZodObject<{
|
|
|
324
337
|
medium: "medium";
|
|
325
338
|
high: "high";
|
|
326
339
|
xhigh: "xhigh";
|
|
340
|
+
max: "max";
|
|
327
341
|
}>>;
|
|
328
342
|
timeout_minutes: z.ZodDefault<z.ZodNumber>;
|
|
329
343
|
}, z.core.$strip>>;
|
|
@@ -338,6 +352,7 @@ export declare const DreamerConfigSchema: z.ZodObject<{
|
|
|
338
352
|
medium: "medium";
|
|
339
353
|
high: "high";
|
|
340
354
|
xhigh: "xhigh";
|
|
355
|
+
max: "max";
|
|
341
356
|
}>>;
|
|
342
357
|
timeout_minutes: z.ZodDefault<z.ZodNumber>;
|
|
343
358
|
}, z.core.$strip>>;
|
|
@@ -352,6 +367,7 @@ export declare const DreamerConfigSchema: z.ZodObject<{
|
|
|
352
367
|
medium: "medium";
|
|
353
368
|
high: "high";
|
|
354
369
|
xhigh: "xhigh";
|
|
370
|
+
max: "max";
|
|
355
371
|
}>>;
|
|
356
372
|
timeout_minutes: z.ZodDefault<z.ZodNumber>;
|
|
357
373
|
}, z.core.$strip>>;
|
|
@@ -366,6 +382,7 @@ export declare const DreamerConfigSchema: z.ZodObject<{
|
|
|
366
382
|
medium: "medium";
|
|
367
383
|
high: "high";
|
|
368
384
|
xhigh: "xhigh";
|
|
385
|
+
max: "max";
|
|
369
386
|
}>>;
|
|
370
387
|
timeout_minutes: z.ZodDefault<z.ZodNumber>;
|
|
371
388
|
}, z.core.$strip>>;
|
|
@@ -380,6 +397,7 @@ export declare const DreamerConfigSchema: z.ZodObject<{
|
|
|
380
397
|
medium: "medium";
|
|
381
398
|
high: "high";
|
|
382
399
|
xhigh: "xhigh";
|
|
400
|
+
max: "max";
|
|
383
401
|
}>>;
|
|
384
402
|
timeout_minutes: z.ZodDefault<z.ZodNumber>;
|
|
385
403
|
}, z.core.$strip>>;
|
|
@@ -394,6 +412,7 @@ export declare const DreamerConfigSchema: z.ZodObject<{
|
|
|
394
412
|
medium: "medium";
|
|
395
413
|
high: "high";
|
|
396
414
|
xhigh: "xhigh";
|
|
415
|
+
max: "max";
|
|
397
416
|
}>>;
|
|
398
417
|
timeout_minutes: z.ZodDefault<z.ZodNumber>;
|
|
399
418
|
}, z.core.$strip>>;
|
|
@@ -408,6 +427,7 @@ export declare const DreamerConfigSchema: z.ZodObject<{
|
|
|
408
427
|
medium: "medium";
|
|
409
428
|
high: "high";
|
|
410
429
|
xhigh: "xhigh";
|
|
430
|
+
max: "max";
|
|
411
431
|
}>>;
|
|
412
432
|
timeout_minutes: z.ZodDefault<z.ZodNumber>;
|
|
413
433
|
promotion_threshold: z.ZodOptional<z.ZodNumber>;
|
|
@@ -423,6 +443,7 @@ export declare const DreamerConfigSchema: z.ZodObject<{
|
|
|
423
443
|
medium: "medium";
|
|
424
444
|
high: "high";
|
|
425
445
|
xhigh: "xhigh";
|
|
446
|
+
max: "max";
|
|
426
447
|
}>>;
|
|
427
448
|
timeout_minutes: z.ZodDefault<z.ZodNumber>;
|
|
428
449
|
promotion_threshold: z.ZodOptional<z.ZodNumber>;
|
|
@@ -438,6 +459,7 @@ export declare const DreamerConfigSchema: z.ZodObject<{
|
|
|
438
459
|
medium: "medium";
|
|
439
460
|
high: "high";
|
|
440
461
|
xhigh: "xhigh";
|
|
462
|
+
max: "max";
|
|
441
463
|
}>>;
|
|
442
464
|
timeout_minutes: z.ZodDefault<z.ZodNumber>;
|
|
443
465
|
}, z.core.$strip>>;
|
|
@@ -450,6 +472,7 @@ export declare const DreamerConfigSchema: z.ZodObject<{
|
|
|
450
472
|
medium: "medium";
|
|
451
473
|
high: "high";
|
|
452
474
|
xhigh: "xhigh";
|
|
475
|
+
max: "max";
|
|
453
476
|
}>>;
|
|
454
477
|
}, z.core.$strip>;
|
|
455
478
|
export type DreamerConfig = z.infer<typeof DreamerConfigSchema>;
|
|
@@ -511,6 +534,7 @@ export declare const SidekickConfigSchema: z.ZodOptional<z.ZodObject<{
|
|
|
511
534
|
medium: "medium";
|
|
512
535
|
high: "high";
|
|
513
536
|
xhigh: "xhigh";
|
|
537
|
+
max: "max";
|
|
514
538
|
}>>;
|
|
515
539
|
}, z.core.$strip>>;
|
|
516
540
|
export type SidekickConfig = NonNullable<z.infer<typeof SidekickConfigSchema>>;
|
|
@@ -576,6 +600,7 @@ export declare const HistorianConfigSchema: z.ZodOptional<z.ZodObject<{
|
|
|
576
600
|
medium: "medium";
|
|
577
601
|
high: "high";
|
|
578
602
|
xhigh: "xhigh";
|
|
603
|
+
max: "max";
|
|
579
604
|
}>>;
|
|
580
605
|
disallowed_tools: z.ZodDefault<z.ZodArray<z.ZodEnum<{
|
|
581
606
|
"*": "*";
|
|
@@ -610,6 +635,21 @@ export declare const EmbeddingConfigSchema: z.ZodPipe<z.ZodObject<{
|
|
|
610
635
|
query_input_type: z.ZodOptional<z.ZodString>;
|
|
611
636
|
truncate: z.ZodOptional<z.ZodString>;
|
|
612
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
|
+
}>>;
|
|
613
653
|
}, z.core.$strip>, z.ZodTransform<{
|
|
614
654
|
max_input_tokens?: number | undefined;
|
|
615
655
|
truncate?: string | undefined;
|
|
@@ -621,6 +661,7 @@ export declare const EmbeddingConfigSchema: z.ZodPipe<z.ZodObject<{
|
|
|
621
661
|
fallback_provider?: "off" | "local" | "openai-compatible" | undefined;
|
|
622
662
|
provider: "synapse";
|
|
623
663
|
} | {
|
|
664
|
+
local_dtype?: "auto" | "fp32" | "fp16" | "q8" | "int8" | "uint8" | "q4" | "bnb4" | "q4f16" | "q2" | "q2f16" | "q1" | "q1f16" | undefined;
|
|
624
665
|
max_input_tokens?: number | undefined;
|
|
625
666
|
provider: "local";
|
|
626
667
|
model: string;
|
|
@@ -645,6 +686,7 @@ export declare const EmbeddingConfigSchema: z.ZodPipe<z.ZodObject<{
|
|
|
645
686
|
query_input_type?: string | undefined;
|
|
646
687
|
truncate?: string | undefined;
|
|
647
688
|
max_input_tokens?: number | undefined;
|
|
689
|
+
local_dtype?: "auto" | "fp32" | "fp16" | "q8" | "int8" | "uint8" | "q4" | "bnb4" | "q4f16" | "q2" | "q2f16" | "q1" | "q1f16" | undefined;
|
|
648
690
|
}>>;
|
|
649
691
|
export type EmbeddingConfig = z.infer<typeof EmbeddingConfigSchema>;
|
|
650
692
|
export type EmbeddingFallbackProvider = z.infer<typeof EmbeddingFallbackProviderSchema>;
|
|
@@ -665,6 +707,8 @@ export interface ExperimentalConfig {
|
|
|
665
707
|
}
|
|
666
708
|
export interface MagicContextConfig {
|
|
667
709
|
enabled: boolean;
|
|
710
|
+
/** User-level setting that lets a session started exactly in the canonical home directory use a deterministic directory identity. */
|
|
711
|
+
allow_home_project: boolean;
|
|
668
712
|
experimental: ExperimentalConfig;
|
|
669
713
|
/** Selects the runtime implementation for this project. Rust mode is experimental and requires user-level subc configuration. */
|
|
670
714
|
transform_mode: "ts" | "rust";
|
|
@@ -679,6 +723,11 @@ export interface MagicContextConfig {
|
|
|
679
723
|
default: string;
|
|
680
724
|
[modelKey: string]: string;
|
|
681
725
|
};
|
|
726
|
+
/** User-only output-token reservation override. Zero disables reservation. */
|
|
727
|
+
output_reserve?: number | {
|
|
728
|
+
default: number;
|
|
729
|
+
[modelKey: string]: number;
|
|
730
|
+
};
|
|
682
731
|
/** TUI toast lifetime in milliseconds for Magic Context notifications. Default: 5000. */
|
|
683
732
|
toast_duration_ms?: number;
|
|
684
733
|
execute_threshold_percentage: number | {
|
|
@@ -687,7 +736,7 @@ export interface MagicContextConfig {
|
|
|
687
736
|
};
|
|
688
737
|
/** Absolute token thresholds per model. When set for a given model (or via `default`),
|
|
689
738
|
* this overrides `execute_threshold_percentage` for that model. Useful for hard caps
|
|
690
|
-
* matching provider input limits. Values above
|
|
739
|
+
* matching provider input limits. Values above 90% × context_limit are clamped with a warning. */
|
|
691
740
|
execute_threshold_tokens?: {
|
|
692
741
|
default?: number;
|
|
693
742
|
[modelKey: string]: number | undefined;
|
|
@@ -705,6 +754,13 @@ export interface MagicContextConfig {
|
|
|
705
754
|
cache_size_mb: number;
|
|
706
755
|
mmap_size_mb: number;
|
|
707
756
|
};
|
|
757
|
+
/**
|
|
758
|
+
* Keep shared-storage permissions under an external operator's control.
|
|
759
|
+
* USER config only; project configs cannot weaken local data privacy.
|
|
760
|
+
*/
|
|
761
|
+
storage: {
|
|
762
|
+
enforce_private_permissions: boolean;
|
|
763
|
+
};
|
|
708
764
|
/**
|
|
709
765
|
* Controls whether and where Magic Context augments the system prompt
|
|
710
766
|
* (`## Magic Context` guidance, `<project-docs>`, `<user-profile>`,
|
|
@@ -742,6 +798,16 @@ export interface MagicContextConfig {
|
|
|
742
798
|
* USER config only — project tier cannot set this. Not recommended to disable.
|
|
743
799
|
*/
|
|
744
800
|
fail_closed_blocking: boolean;
|
|
801
|
+
/**
|
|
802
|
+
* Compaction-off mode gate. When `enabled` is false Magic Context stops
|
|
803
|
+
* managing the context window and keeps only its knowledge layer, letting
|
|
804
|
+
* the harness's native compaction (or nothing) own the window. USER config
|
|
805
|
+
* only — project tier `compaction.enabled` is stripped for security.
|
|
806
|
+
* Boot-resolved: changing it requires a process restart.
|
|
807
|
+
*/
|
|
808
|
+
compaction: {
|
|
809
|
+
enabled: boolean;
|
|
810
|
+
};
|
|
745
811
|
/** Pi-only controls for Magic Context's OpenCode-parity todowrite surface. */
|
|
746
812
|
todowrite: {
|
|
747
813
|
enabled: boolean;
|
|
@@ -819,6 +885,7 @@ export interface MagicContextConfig {
|
|
|
819
885
|
}
|
|
820
886
|
export declare const MagicContextConfigSchema: z.ZodPipe<z.ZodObject<{
|
|
821
887
|
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
888
|
+
allow_home_project: z.ZodDefault<z.ZodBoolean>;
|
|
822
889
|
experimental: z.ZodDefault<z.ZodObject<{
|
|
823
890
|
mural: z.ZodDefault<z.ZodObject<{
|
|
824
891
|
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
@@ -888,6 +955,7 @@ export declare const MagicContextConfigSchema: z.ZodPipe<z.ZodObject<{
|
|
|
888
955
|
medium: "medium";
|
|
889
956
|
high: "high";
|
|
890
957
|
xhigh: "xhigh";
|
|
958
|
+
max: "max";
|
|
891
959
|
}>>;
|
|
892
960
|
disallowed_tools: z.ZodDefault<z.ZodArray<z.ZodEnum<{
|
|
893
961
|
"*": "*";
|
|
@@ -958,6 +1026,7 @@ export declare const MagicContextConfigSchema: z.ZodPipe<z.ZodObject<{
|
|
|
958
1026
|
medium: "medium";
|
|
959
1027
|
high: "high";
|
|
960
1028
|
xhigh: "xhigh";
|
|
1029
|
+
max: "max";
|
|
961
1030
|
}>>;
|
|
962
1031
|
timeout_minutes: z.ZodDefault<z.ZodNumber>;
|
|
963
1032
|
}, z.core.$strip>>;
|
|
@@ -972,6 +1041,7 @@ export declare const MagicContextConfigSchema: z.ZodPipe<z.ZodObject<{
|
|
|
972
1041
|
medium: "medium";
|
|
973
1042
|
high: "high";
|
|
974
1043
|
xhigh: "xhigh";
|
|
1044
|
+
max: "max";
|
|
975
1045
|
}>>;
|
|
976
1046
|
timeout_minutes: z.ZodDefault<z.ZodNumber>;
|
|
977
1047
|
}, z.core.$strip>>;
|
|
@@ -986,6 +1056,7 @@ export declare const MagicContextConfigSchema: z.ZodPipe<z.ZodObject<{
|
|
|
986
1056
|
medium: "medium";
|
|
987
1057
|
high: "high";
|
|
988
1058
|
xhigh: "xhigh";
|
|
1059
|
+
max: "max";
|
|
989
1060
|
}>>;
|
|
990
1061
|
timeout_minutes: z.ZodDefault<z.ZodNumber>;
|
|
991
1062
|
}, z.core.$strip>>;
|
|
@@ -1000,6 +1071,7 @@ export declare const MagicContextConfigSchema: z.ZodPipe<z.ZodObject<{
|
|
|
1000
1071
|
medium: "medium";
|
|
1001
1072
|
high: "high";
|
|
1002
1073
|
xhigh: "xhigh";
|
|
1074
|
+
max: "max";
|
|
1003
1075
|
}>>;
|
|
1004
1076
|
timeout_minutes: z.ZodDefault<z.ZodNumber>;
|
|
1005
1077
|
}, z.core.$strip>>;
|
|
@@ -1014,6 +1086,7 @@ export declare const MagicContextConfigSchema: z.ZodPipe<z.ZodObject<{
|
|
|
1014
1086
|
medium: "medium";
|
|
1015
1087
|
high: "high";
|
|
1016
1088
|
xhigh: "xhigh";
|
|
1089
|
+
max: "max";
|
|
1017
1090
|
}>>;
|
|
1018
1091
|
timeout_minutes: z.ZodDefault<z.ZodNumber>;
|
|
1019
1092
|
}, z.core.$strip>>;
|
|
@@ -1028,6 +1101,7 @@ export declare const MagicContextConfigSchema: z.ZodPipe<z.ZodObject<{
|
|
|
1028
1101
|
medium: "medium";
|
|
1029
1102
|
high: "high";
|
|
1030
1103
|
xhigh: "xhigh";
|
|
1104
|
+
max: "max";
|
|
1031
1105
|
}>>;
|
|
1032
1106
|
timeout_minutes: z.ZodDefault<z.ZodNumber>;
|
|
1033
1107
|
}, z.core.$strip>>;
|
|
@@ -1042,6 +1116,7 @@ export declare const MagicContextConfigSchema: z.ZodPipe<z.ZodObject<{
|
|
|
1042
1116
|
medium: "medium";
|
|
1043
1117
|
high: "high";
|
|
1044
1118
|
xhigh: "xhigh";
|
|
1119
|
+
max: "max";
|
|
1045
1120
|
}>>;
|
|
1046
1121
|
timeout_minutes: z.ZodDefault<z.ZodNumber>;
|
|
1047
1122
|
}, z.core.$strip>>;
|
|
@@ -1056,6 +1131,7 @@ export declare const MagicContextConfigSchema: z.ZodPipe<z.ZodObject<{
|
|
|
1056
1131
|
medium: "medium";
|
|
1057
1132
|
high: "high";
|
|
1058
1133
|
xhigh: "xhigh";
|
|
1134
|
+
max: "max";
|
|
1059
1135
|
}>>;
|
|
1060
1136
|
timeout_minutes: z.ZodDefault<z.ZodNumber>;
|
|
1061
1137
|
}, z.core.$strip>>;
|
|
@@ -1070,6 +1146,7 @@ export declare const MagicContextConfigSchema: z.ZodPipe<z.ZodObject<{
|
|
|
1070
1146
|
medium: "medium";
|
|
1071
1147
|
high: "high";
|
|
1072
1148
|
xhigh: "xhigh";
|
|
1149
|
+
max: "max";
|
|
1073
1150
|
}>>;
|
|
1074
1151
|
timeout_minutes: z.ZodDefault<z.ZodNumber>;
|
|
1075
1152
|
}, z.core.$strip>>;
|
|
@@ -1084,6 +1161,7 @@ export declare const MagicContextConfigSchema: z.ZodPipe<z.ZodObject<{
|
|
|
1084
1161
|
medium: "medium";
|
|
1085
1162
|
high: "high";
|
|
1086
1163
|
xhigh: "xhigh";
|
|
1164
|
+
max: "max";
|
|
1087
1165
|
}>>;
|
|
1088
1166
|
timeout_minutes: z.ZodDefault<z.ZodNumber>;
|
|
1089
1167
|
promotion_threshold: z.ZodOptional<z.ZodNumber>;
|
|
@@ -1099,6 +1177,7 @@ export declare const MagicContextConfigSchema: z.ZodPipe<z.ZodObject<{
|
|
|
1099
1177
|
medium: "medium";
|
|
1100
1178
|
high: "high";
|
|
1101
1179
|
xhigh: "xhigh";
|
|
1180
|
+
max: "max";
|
|
1102
1181
|
}>>;
|
|
1103
1182
|
timeout_minutes: z.ZodDefault<z.ZodNumber>;
|
|
1104
1183
|
promotion_threshold: z.ZodOptional<z.ZodNumber>;
|
|
@@ -1114,6 +1193,7 @@ export declare const MagicContextConfigSchema: z.ZodPipe<z.ZodObject<{
|
|
|
1114
1193
|
medium: "medium";
|
|
1115
1194
|
high: "high";
|
|
1116
1195
|
xhigh: "xhigh";
|
|
1196
|
+
max: "max";
|
|
1117
1197
|
}>>;
|
|
1118
1198
|
timeout_minutes: z.ZodDefault<z.ZodNumber>;
|
|
1119
1199
|
}, z.core.$strip>>;
|
|
@@ -1126,11 +1206,15 @@ export declare const MagicContextConfigSchema: z.ZodPipe<z.ZodObject<{
|
|
|
1126
1206
|
medium: "medium";
|
|
1127
1207
|
high: "high";
|
|
1128
1208
|
xhigh: "xhigh";
|
|
1209
|
+
max: "max";
|
|
1129
1210
|
}>>;
|
|
1130
1211
|
}, z.core.$strip>>;
|
|
1131
1212
|
cache_ttl: z.ZodDefault<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
1132
1213
|
default: z.ZodString;
|
|
1133
1214
|
}, z.core.$catchall<z.ZodString>>]>>;
|
|
1215
|
+
output_reserve: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodObject<{
|
|
1216
|
+
default: z.ZodNumber;
|
|
1217
|
+
}, z.core.$catchall<z.ZodNumber>>]>>;
|
|
1134
1218
|
toast_duration_ms: z.ZodDefault<z.ZodNumber>;
|
|
1135
1219
|
execute_threshold_percentage: z.ZodDefault<z.ZodUnion<readonly [z.ZodNumber, z.ZodObject<{
|
|
1136
1220
|
default: z.ZodNumber;
|
|
@@ -1154,6 +1238,9 @@ export declare const MagicContextConfigSchema: z.ZodPipe<z.ZodObject<{
|
|
|
1154
1238
|
cache_size_mb: z.ZodDefault<z.ZodNumber>;
|
|
1155
1239
|
mmap_size_mb: z.ZodDefault<z.ZodNumber>;
|
|
1156
1240
|
}, z.core.$strip>>;
|
|
1241
|
+
storage: z.ZodDefault<z.ZodObject<{
|
|
1242
|
+
enforce_private_permissions: z.ZodDefault<z.ZodBoolean>;
|
|
1243
|
+
}, z.core.$strip>>;
|
|
1157
1244
|
embedding: z.ZodDefault<z.ZodPipe<z.ZodObject<{
|
|
1158
1245
|
provider: z.ZodDefault<z.ZodEnum<{
|
|
1159
1246
|
off: "off";
|
|
@@ -1173,6 +1260,21 @@ export declare const MagicContextConfigSchema: z.ZodPipe<z.ZodObject<{
|
|
|
1173
1260
|
query_input_type: z.ZodOptional<z.ZodString>;
|
|
1174
1261
|
truncate: z.ZodOptional<z.ZodString>;
|
|
1175
1262
|
max_input_tokens: z.ZodOptional<z.ZodNumber>;
|
|
1263
|
+
local_dtype: z.ZodOptional<z.ZodEnum<{
|
|
1264
|
+
auto: "auto";
|
|
1265
|
+
fp32: "fp32";
|
|
1266
|
+
fp16: "fp16";
|
|
1267
|
+
q8: "q8";
|
|
1268
|
+
int8: "int8";
|
|
1269
|
+
uint8: "uint8";
|
|
1270
|
+
q4: "q4";
|
|
1271
|
+
bnb4: "bnb4";
|
|
1272
|
+
q4f16: "q4f16";
|
|
1273
|
+
q2: "q2";
|
|
1274
|
+
q2f16: "q2f16";
|
|
1275
|
+
q1: "q1";
|
|
1276
|
+
q1f16: "q1f16";
|
|
1277
|
+
}>>;
|
|
1176
1278
|
}, z.core.$strip>, z.ZodTransform<{
|
|
1177
1279
|
max_input_tokens?: number | undefined;
|
|
1178
1280
|
truncate?: string | undefined;
|
|
@@ -1184,6 +1286,7 @@ export declare const MagicContextConfigSchema: z.ZodPipe<z.ZodObject<{
|
|
|
1184
1286
|
fallback_provider?: "off" | "local" | "openai-compatible" | undefined;
|
|
1185
1287
|
provider: "synapse";
|
|
1186
1288
|
} | {
|
|
1289
|
+
local_dtype?: "auto" | "fp32" | "fp16" | "q8" | "int8" | "uint8" | "q4" | "bnb4" | "q4f16" | "q2" | "q2f16" | "q1" | "q1f16" | undefined;
|
|
1187
1290
|
max_input_tokens?: number | undefined;
|
|
1188
1291
|
provider: "local";
|
|
1189
1292
|
model: string;
|
|
@@ -1208,6 +1311,7 @@ export declare const MagicContextConfigSchema: z.ZodPipe<z.ZodObject<{
|
|
|
1208
1311
|
query_input_type?: string | undefined;
|
|
1209
1312
|
truncate?: string | undefined;
|
|
1210
1313
|
max_input_tokens?: number | undefined;
|
|
1314
|
+
local_dtype?: "auto" | "fp32" | "fp16" | "q8" | "int8" | "uint8" | "q4" | "bnb4" | "q4f16" | "q2" | "q2f16" | "q1" | "q1f16" | undefined;
|
|
1211
1315
|
}>>>;
|
|
1212
1316
|
subc: z.ZodOptional<z.ZodObject<{
|
|
1213
1317
|
connection_file: z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>;
|
|
@@ -1218,6 +1322,9 @@ export declare const MagicContextConfigSchema: z.ZodPipe<z.ZodObject<{
|
|
|
1218
1322
|
temporal_awareness: z.ZodDefault<z.ZodBoolean>;
|
|
1219
1323
|
keep_subagents: z.ZodDefault<z.ZodBoolean>;
|
|
1220
1324
|
fail_closed_blocking: z.ZodDefault<z.ZodBoolean>;
|
|
1325
|
+
compaction: z.ZodDefault<z.ZodObject<{
|
|
1326
|
+
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
1327
|
+
}, z.core.$strip>>;
|
|
1221
1328
|
todowrite: z.ZodDefault<z.ZodObject<{
|
|
1222
1329
|
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
1223
1330
|
overlay: z.ZodDefault<z.ZodBoolean>;
|
|
@@ -1304,10 +1411,12 @@ export declare const MagicContextConfigSchema: z.ZodPipe<z.ZodObject<{
|
|
|
1304
1411
|
medium: "medium";
|
|
1305
1412
|
high: "high";
|
|
1306
1413
|
xhigh: "xhigh";
|
|
1414
|
+
max: "max";
|
|
1307
1415
|
}>>;
|
|
1308
1416
|
}, z.core.$strip>>;
|
|
1309
1417
|
}, z.core.$strip>, z.ZodTransform<MagicContextConfig, {
|
|
1310
1418
|
enabled: boolean;
|
|
1419
|
+
allow_home_project: boolean;
|
|
1311
1420
|
experimental: {
|
|
1312
1421
|
mural: {
|
|
1313
1422
|
enabled: boolean;
|
|
@@ -1339,6 +1448,9 @@ export declare const MagicContextConfigSchema: z.ZodPipe<z.ZodObject<{
|
|
|
1339
1448
|
cache_size_mb: number;
|
|
1340
1449
|
mmap_size_mb: number;
|
|
1341
1450
|
};
|
|
1451
|
+
storage: {
|
|
1452
|
+
enforce_private_permissions: boolean;
|
|
1453
|
+
};
|
|
1342
1454
|
embedding: {
|
|
1343
1455
|
max_input_tokens?: number | undefined;
|
|
1344
1456
|
truncate?: string | undefined;
|
|
@@ -1350,6 +1462,7 @@ export declare const MagicContextConfigSchema: z.ZodPipe<z.ZodObject<{
|
|
|
1350
1462
|
fallback_provider?: "off" | "local" | "openai-compatible" | undefined;
|
|
1351
1463
|
provider: "synapse";
|
|
1352
1464
|
} | {
|
|
1465
|
+
local_dtype?: "auto" | "fp32" | "fp16" | "q8" | "int8" | "uint8" | "q4" | "bnb4" | "q4f16" | "q2" | "q2f16" | "q1" | "q1f16" | undefined;
|
|
1353
1466
|
max_input_tokens?: number | undefined;
|
|
1354
1467
|
provider: "local";
|
|
1355
1468
|
model: string;
|
|
@@ -1371,6 +1484,9 @@ export declare const MagicContextConfigSchema: z.ZodPipe<z.ZodObject<{
|
|
|
1371
1484
|
temporal_awareness: boolean;
|
|
1372
1485
|
keep_subagents: boolean;
|
|
1373
1486
|
fail_closed_blocking: boolean;
|
|
1487
|
+
compaction: {
|
|
1488
|
+
enabled: boolean;
|
|
1489
|
+
};
|
|
1374
1490
|
todowrite: {
|
|
1375
1491
|
enabled: boolean;
|
|
1376
1492
|
overlay: boolean;
|
|
@@ -1421,7 +1537,7 @@ export declare const MagicContextConfigSchema: z.ZodPipe<z.ZodObject<{
|
|
|
1421
1537
|
maxTokens?: number | undefined;
|
|
1422
1538
|
variant?: string | undefined;
|
|
1423
1539
|
fallback_models?: string | string[] | undefined;
|
|
1424
|
-
thinking_level?: "off" | "minimal" | "low" | "medium" | "high" | "xhigh" | undefined;
|
|
1540
|
+
thinking_level?: "off" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max" | undefined;
|
|
1425
1541
|
} | undefined;
|
|
1426
1542
|
dreamer?: {
|
|
1427
1543
|
tasks: {
|
|
@@ -1430,70 +1546,70 @@ export declare const MagicContextConfigSchema: z.ZodPipe<z.ZodObject<{
|
|
|
1430
1546
|
timeout_minutes: number;
|
|
1431
1547
|
model?: string | undefined;
|
|
1432
1548
|
fallback_models?: string | string[] | undefined;
|
|
1433
|
-
thinking_level?: "off" | "minimal" | "low" | "medium" | "high" | "xhigh" | undefined;
|
|
1549
|
+
thinking_level?: "off" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max" | undefined;
|
|
1434
1550
|
};
|
|
1435
1551
|
verify: {
|
|
1436
1552
|
schedule: string;
|
|
1437
1553
|
timeout_minutes: number;
|
|
1438
1554
|
model?: string | undefined;
|
|
1439
1555
|
fallback_models?: string | string[] | undefined;
|
|
1440
|
-
thinking_level?: "off" | "minimal" | "low" | "medium" | "high" | "xhigh" | undefined;
|
|
1556
|
+
thinking_level?: "off" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max" | undefined;
|
|
1441
1557
|
};
|
|
1442
1558
|
"verify-broad": {
|
|
1443
1559
|
schedule: string;
|
|
1444
1560
|
timeout_minutes: number;
|
|
1445
1561
|
model?: string | undefined;
|
|
1446
1562
|
fallback_models?: string | string[] | undefined;
|
|
1447
|
-
thinking_level?: "off" | "minimal" | "low" | "medium" | "high" | "xhigh" | undefined;
|
|
1563
|
+
thinking_level?: "off" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max" | undefined;
|
|
1448
1564
|
};
|
|
1449
1565
|
curate: {
|
|
1450
1566
|
schedule: string;
|
|
1451
1567
|
timeout_minutes: number;
|
|
1452
1568
|
model?: string | undefined;
|
|
1453
1569
|
fallback_models?: string | string[] | undefined;
|
|
1454
|
-
thinking_level?: "off" | "minimal" | "low" | "medium" | "high" | "xhigh" | undefined;
|
|
1570
|
+
thinking_level?: "off" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max" | undefined;
|
|
1455
1571
|
};
|
|
1456
1572
|
"compress-cues": {
|
|
1457
1573
|
schedule: string;
|
|
1458
1574
|
timeout_minutes: number;
|
|
1459
1575
|
model?: string | undefined;
|
|
1460
1576
|
fallback_models?: string | string[] | undefined;
|
|
1461
|
-
thinking_level?: "off" | "minimal" | "low" | "medium" | "high" | "xhigh" | undefined;
|
|
1577
|
+
thinking_level?: "off" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max" | undefined;
|
|
1462
1578
|
};
|
|
1463
1579
|
"classify-memories": {
|
|
1464
1580
|
schedule: string;
|
|
1465
1581
|
timeout_minutes: number;
|
|
1466
1582
|
model?: string | undefined;
|
|
1467
1583
|
fallback_models?: string | string[] | undefined;
|
|
1468
|
-
thinking_level?: "off" | "minimal" | "low" | "medium" | "high" | "xhigh" | undefined;
|
|
1584
|
+
thinking_level?: "off" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max" | undefined;
|
|
1469
1585
|
};
|
|
1470
1586
|
retrospective: {
|
|
1471
1587
|
schedule: string;
|
|
1472
1588
|
timeout_minutes: number;
|
|
1473
1589
|
model?: string | undefined;
|
|
1474
1590
|
fallback_models?: string | string[] | undefined;
|
|
1475
|
-
thinking_level?: "off" | "minimal" | "low" | "medium" | "high" | "xhigh" | undefined;
|
|
1591
|
+
thinking_level?: "off" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max" | undefined;
|
|
1476
1592
|
};
|
|
1477
1593
|
"maintain-docs": {
|
|
1478
1594
|
schedule: string;
|
|
1479
1595
|
timeout_minutes: number;
|
|
1480
1596
|
model?: string | undefined;
|
|
1481
1597
|
fallback_models?: string | string[] | undefined;
|
|
1482
|
-
thinking_level?: "off" | "minimal" | "low" | "medium" | "high" | "xhigh" | undefined;
|
|
1598
|
+
thinking_level?: "off" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max" | undefined;
|
|
1483
1599
|
};
|
|
1484
1600
|
"evaluate-smart-notes": {
|
|
1485
1601
|
schedule: string;
|
|
1486
1602
|
timeout_minutes: number;
|
|
1487
1603
|
model?: string | undefined;
|
|
1488
1604
|
fallback_models?: string | string[] | undefined;
|
|
1489
|
-
thinking_level?: "off" | "minimal" | "low" | "medium" | "high" | "xhigh" | undefined;
|
|
1605
|
+
thinking_level?: "off" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max" | undefined;
|
|
1490
1606
|
};
|
|
1491
1607
|
"review-user-memories": {
|
|
1492
1608
|
schedule: string;
|
|
1493
1609
|
timeout_minutes: number;
|
|
1494
1610
|
model?: string | undefined;
|
|
1495
1611
|
fallback_models?: string | string[] | undefined;
|
|
1496
|
-
thinking_level?: "off" | "minimal" | "low" | "medium" | "high" | "xhigh" | undefined;
|
|
1612
|
+
thinking_level?: "off" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max" | undefined;
|
|
1497
1613
|
promotion_threshold?: number | undefined;
|
|
1498
1614
|
};
|
|
1499
1615
|
"promote-primers": {
|
|
@@ -1501,7 +1617,7 @@ export declare const MagicContextConfigSchema: z.ZodPipe<z.ZodObject<{
|
|
|
1501
1617
|
timeout_minutes: number;
|
|
1502
1618
|
model?: string | undefined;
|
|
1503
1619
|
fallback_models?: string | string[] | undefined;
|
|
1504
|
-
thinking_level?: "off" | "minimal" | "low" | "medium" | "high" | "xhigh" | undefined;
|
|
1620
|
+
thinking_level?: "off" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max" | undefined;
|
|
1505
1621
|
promotion_threshold?: number | undefined;
|
|
1506
1622
|
};
|
|
1507
1623
|
"refresh-primers": {
|
|
@@ -1509,7 +1625,7 @@ export declare const MagicContextConfigSchema: z.ZodPipe<z.ZodObject<{
|
|
|
1509
1625
|
timeout_minutes: number;
|
|
1510
1626
|
model?: string | undefined;
|
|
1511
1627
|
fallback_models?: string | string[] | undefined;
|
|
1512
|
-
thinking_level?: "off" | "minimal" | "low" | "medium" | "high" | "xhigh" | undefined;
|
|
1628
|
+
thinking_level?: "off" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max" | undefined;
|
|
1513
1629
|
};
|
|
1514
1630
|
};
|
|
1515
1631
|
inject_docs: boolean;
|
|
@@ -1533,7 +1649,11 @@ export declare const MagicContextConfigSchema: z.ZodPipe<z.ZodObject<{
|
|
|
1533
1649
|
maxTokens?: number | undefined;
|
|
1534
1650
|
variant?: string | undefined;
|
|
1535
1651
|
fallback_models?: string | string[] | undefined;
|
|
1536
|
-
thinking_level?: "off" | "minimal" | "low" | "medium" | "high" | "xhigh" | undefined;
|
|
1652
|
+
thinking_level?: "off" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max" | undefined;
|
|
1653
|
+
} | undefined;
|
|
1654
|
+
output_reserve?: number | {
|
|
1655
|
+
[x: string]: number;
|
|
1656
|
+
default: number;
|
|
1537
1657
|
} | undefined;
|
|
1538
1658
|
execute_threshold_tokens?: {
|
|
1539
1659
|
[x: string]: number;
|
|
@@ -1569,7 +1689,7 @@ export declare const MagicContextConfigSchema: z.ZodPipe<z.ZodObject<{
|
|
|
1569
1689
|
variant?: string | undefined;
|
|
1570
1690
|
fallback_models?: string | string[] | undefined;
|
|
1571
1691
|
system_prompt?: string | undefined;
|
|
1572
|
-
thinking_level?: "off" | "minimal" | "low" | "medium" | "high" | "xhigh" | undefined;
|
|
1692
|
+
thinking_level?: "off" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max" | undefined;
|
|
1573
1693
|
} | undefined;
|
|
1574
1694
|
}>>;
|
|
1575
1695
|
export {};
|