@retaw106/mmc-oc 1.2.2 → 2.0.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/cli.js +7095 -0
- package/dist/config/index.d.ts +0 -12
- package/dist/config/index.d.ts.map +1 -1
- package/dist/config/legacy-harness-blocks.d.ts +27 -0
- package/dist/config/legacy-harness-blocks.d.ts.map +1 -0
- package/dist/config/live-run-config.d.ts.map +1 -1
- package/dist/config/live-snapshot.d.ts +2 -1
- package/dist/config/live-snapshot.d.ts.map +1 -1
- package/dist/config/project-security.d.ts +4 -5
- package/dist/config/project-security.d.ts.map +1 -1
- package/dist/config/raw-loader.d.ts +7 -26
- package/dist/config/raw-loader.d.ts.map +1 -1
- package/dist/config/schema/magic-context.d.ts +164 -259
- package/dist/config/schema/magic-context.d.ts.map +1 -1
- package/dist/config/variable.d.ts +8 -0
- package/dist/config/variable.d.ts.map +1 -1
- package/dist/config-init.js +5595 -0
- package/dist/{context-a6px04s0.js → context-95zkksn3.js} +2471 -2438
- package/dist/{derive-budgets-fhk00zv8.js → derive-budgets-rjjz5f7y.js} +2 -2
- package/dist/features/magic-context/compaction-marker.d.ts.map +1 -1
- package/dist/features/magic-context/message-index.d.ts +2 -0
- package/dist/features/magic-context/message-index.d.ts.map +1 -1
- package/dist/features/magic-context/migration-v3-perf-schema.d.ts +8 -0
- package/dist/features/magic-context/migration-v3-perf-schema.d.ts.map +1 -0
- package/dist/features/magic-context/migration-v4-temporal-decisions.d.ts +12 -0
- package/dist/features/magic-context/migration-v4-temporal-decisions.d.ts.map +1 -0
- package/dist/features/magic-context/migrations.d.ts.map +1 -1
- package/dist/features/magic-context/overflow-detection.d.ts +6 -0
- package/dist/features/magic-context/overflow-detection.d.ts.map +1 -1
- package/dist/features/magic-context/reclaim-protection.d.ts +15 -10
- package/dist/features/magic-context/reclaim-protection.d.ts.map +1 -1
- package/dist/features/magic-context/session-cache-ttl.d.ts +4 -2
- package/dist/features/magic-context/session-cache-ttl.d.ts.map +1 -1
- package/dist/features/magic-context/storage-db.d.ts +1 -1
- package/dist/features/magic-context/storage-db.d.ts.map +1 -1
- package/dist/features/magic-context/storage-historian-runs.d.ts +2 -0
- package/dist/features/magic-context/storage-historian-runs.d.ts.map +1 -1
- package/dist/features/magic-context/storage-ops.d.ts +2 -0
- package/dist/features/magic-context/storage-ops.d.ts.map +1 -1
- package/dist/features/magic-context/storage-session-tables.d.ts.map +1 -1
- package/dist/features/magic-context/storage-tags.d.ts +15 -2
- package/dist/features/magic-context/storage-tags.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/temporal-decisions.d.ts +10 -0
- package/dist/features/magic-context/temporal-decisions.d.ts.map +1 -0
- package/dist/features/magic-context/tool-definition-tokens.d.ts +3 -0
- package/dist/features/magic-context/tool-definition-tokens.d.ts.map +1 -1
- package/dist/hooks/magic-context/active-anthropic-turn.d.ts +8 -0
- package/dist/hooks/magic-context/active-anthropic-turn.d.ts.map +1 -0
- package/dist/hooks/magic-context/apply-operations.d.ts +15 -0
- package/dist/hooks/magic-context/apply-operations.d.ts.map +1 -1
- package/dist/hooks/magic-context/auto-search-deadline.d.ts +10 -3
- package/dist/hooks/magic-context/auto-search-deadline.d.ts.map +1 -1
- package/dist/hooks/magic-context/auto-search-runner.d.ts +1 -1
- package/dist/hooks/magic-context/auto-search-runner.d.ts.map +1 -1
- package/dist/hooks/magic-context/caveman-cleanup.d.ts.map +1 -1
- package/dist/hooks/magic-context/channel2-cycle.d.ts +2 -0
- package/dist/hooks/magic-context/channel2-cycle.d.ts.map +1 -1
- package/dist/hooks/magic-context/compaction-marker-manager.d.ts.map +1 -1
- package/dist/hooks/magic-context/compartment-render-epoch.d.ts +8 -0
- package/dist/hooks/magic-context/compartment-render-epoch.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 +3 -1
- package/dist/hooks/magic-context/compartment-trigger.d.ts.map +1 -1
- package/dist/hooks/magic-context/ctx-reduce-availability.d.ts +12 -0
- package/dist/hooks/magic-context/ctx-reduce-availability.d.ts.map +1 -1
- package/dist/hooks/magic-context/decision-calibration.d.ts +3 -0
- package/dist/hooks/magic-context/decision-calibration.d.ts.map +1 -1
- package/dist/hooks/magic-context/emergency-drop.d.ts +2 -0
- package/dist/hooks/magic-context/emergency-drop.d.ts.map +1 -1
- package/dist/hooks/magic-context/emergency-fail-closed.d.ts +21 -1
- package/dist/hooks/magic-context/emergency-fail-closed.d.ts.map +1 -1
- package/dist/hooks/magic-context/final-wire-token-estimate.d.ts +30 -1
- package/dist/hooks/magic-context/final-wire-token-estimate.d.ts.map +1 -1
- package/dist/hooks/magic-context/heuristic-cleanup.d.ts +2 -0
- package/dist/hooks/magic-context/heuristic-cleanup.d.ts.map +1 -1
- package/dist/hooks/magic-context/inject-compartments.d.ts +10 -8
- package/dist/hooks/magic-context/inject-compartments.d.ts.map +1 -1
- package/dist/hooks/magic-context/latest-assistant-turn.d.ts +25 -0
- package/dist/hooks/magic-context/latest-assistant-turn.d.ts.map +1 -0
- package/dist/hooks/magic-context/lkg-measured-request.d.ts +69 -0
- package/dist/hooks/magic-context/lkg-measured-request.d.ts.map +1 -0
- package/dist/hooks/magic-context/read-session-formatting.d.ts +3 -0
- package/dist/hooks/magic-context/read-session-formatting.d.ts.map +1 -1
- package/dist/hooks/magic-context/reasoning-budget-status.d.ts +15 -0
- package/dist/hooks/magic-context/reasoning-budget-status.d.ts.map +1 -0
- package/dist/hooks/magic-context/reasoning-budget.d.ts +40 -0
- package/dist/hooks/magic-context/reasoning-budget.d.ts.map +1 -0
- package/dist/hooks/magic-context/reasoning-removal.d.ts +6 -6
- package/dist/hooks/magic-context/reasoning-removal.d.ts.map +1 -1
- package/dist/hooks/magic-context/recomp-orchestrator.d.ts +2 -0
- package/dist/hooks/magic-context/recomp-orchestrator.d.ts.map +1 -1
- package/dist/hooks/magic-context/sentinel.d.ts +2 -0
- package/dist/hooks/magic-context/sentinel.d.ts.map +1 -1
- package/dist/hooks/magic-context/strip-content.d.ts +7 -3
- package/dist/hooks/magic-context/strip-content.d.ts.map +1 -1
- package/dist/hooks/magic-context/supersession-reclaim.d.ts +4 -0
- package/dist/hooks/magic-context/supersession-reclaim.d.ts.map +1 -1
- package/dist/hooks/magic-context/tag-messages.d.ts +13 -0
- package/dist/hooks/magic-context/tag-messages.d.ts.map +1 -1
- package/dist/hooks/magic-context/tail-hygiene-walk.d.ts +5 -0
- package/dist/hooks/magic-context/tail-hygiene-walk.d.ts.map +1 -1
- package/dist/hooks/magic-context/temporal-awareness.d.ts +6 -3
- package/dist/hooks/magic-context/temporal-awareness.d.ts.map +1 -1
- package/dist/hooks/magic-context/temporal-served-projection.d.ts +4 -0
- package/dist/hooks/magic-context/temporal-served-projection.d.ts.map +1 -0
- package/dist/hooks/magic-context/tool-reclaim.d.ts +2 -0
- package/dist/hooks/magic-context/tool-reclaim.d.ts.map +1 -1
- package/dist/hooks/magic-context/transform-postprocess-phase.d.ts +34 -12
- package/dist/hooks/magic-context/transform-postprocess-phase.d.ts.map +1 -1
- package/dist/hooks/magic-context/transform.d.ts +11 -5
- package/dist/hooks/magic-context/transform.d.ts.map +1 -1
- package/dist/hooks/magic-context/wrapup-orchestrator.d.ts.map +1 -1
- package/dist/{index-wgt4gamw.js → index-1mjhzqq7.js} +422 -31
- package/dist/index-33gprt9g.js +30 -0
- package/dist/{index-zx63j2e2.js → index-5cep2r9n.js} +3 -2
- package/dist/{index-by6h2pav.js → index-bdt9my9y.js} +374 -239
- package/dist/{index-3wagyrnj.js → index-x37vg474.js} +5 -1
- package/dist/{index-1vs6anwz.js → index-xt7y10x6.js} +2 -1
- package/dist/{index-me3zcj5t.js → index-z2g20msd.js} +4 -8
- package/dist/index.js +2 -2
- package/dist/{message-time-backfill-5ewk0axe.js → message-time-backfill-zfernxbw.js} +1 -1
- package/dist/{model-resolution-5haaxnpt.js → model-resolution-wazv26n0.js} +1 -1
- package/dist/plugin/rpc-handlers.d.ts +4 -0
- package/dist/plugin/rpc-handlers.d.ts.map +1 -1
- package/dist/{read-session-chunk-apjwrttc.js → read-session-chunk-hp464g13.js} +2 -2
- package/dist/{recomp-orchestrator-gyeevxaw.js → recomp-orchestrator-3qxeqwb9.js} +6 -6
- package/dist/shared/auto-search-lifecycle.d.ts +7 -0
- package/dist/shared/auto-search-lifecycle.d.ts.map +1 -0
- package/dist/shared/cache-ttl-display.d.ts +6 -4
- package/dist/shared/cache-ttl-display.d.ts.map +1 -1
- package/dist/shared/model-cache-ttl.d.ts +1 -1
- package/dist/shared/model-cache-ttl.d.ts.map +1 -1
- package/dist/shared/model-resolution.d.ts +5 -2
- package/dist/shared/model-resolution.d.ts.map +1 -1
- package/dist/shared/model-suggestion-retry.d.ts +2 -0
- package/dist/shared/model-suggestion-retry.d.ts.map +1 -1
- package/dist/shared/protected-tools-policy.d.ts +6 -0
- package/dist/shared/protected-tools-policy.d.ts.map +1 -0
- package/dist/shared/provider-output-failure.d.ts +19 -0
- package/dist/shared/provider-output-failure.d.ts.map +1 -0
- package/dist/shared/temporal-upgrade-fixture.d.ts +19 -0
- package/dist/shared/temporal-upgrade-fixture.d.ts.map +1 -0
- package/dist/shared/window-geometry.d.ts +4 -0
- package/dist/shared/window-geometry.d.ts.map +1 -1
- package/dist/shared/write-transaction-timing.d.ts +8 -1
- package/dist/shared/write-transaction-timing.d.ts.map +1 -1
- package/dist/tools/ctx-reduce/tools.d.ts +2 -0
- package/dist/tools/ctx-reduce/tools.d.ts.map +1 -1
- package/dist/v2/hidden-child-native.d.ts +7 -0
- package/dist/v2/hidden-child-native.d.ts.map +1 -1
- package/dist/v2/hidden-child-record.d.ts +13 -0
- package/dist/v2/hidden-child-record.d.ts.map +1 -1
- package/dist/v2/hidden-completion.d.ts.map +1 -1
- package/dist/v2/hooks/context.d.ts.map +1 -1
- package/dist/v2/hooks/hidden-child.d.ts +46 -2
- package/dist/v2/hooks/hidden-child.d.ts.map +1 -1
- package/dist/v2/hooks/payload.d.ts.map +1 -1
- package/dist/v2/hooks/store.d.ts.map +1 -1
- package/dist/v2/hooks/tools.d.ts.map +1 -1
- package/dist/v2/hooks/types.d.ts +8 -0
- package/dist/v2/hooks/types.d.ts.map +1 -1
- package/dist/v2/server.js +4540 -3889
- package/dist/v2/tool-result.d.ts +8 -0
- package/dist/v2/tool-result.d.ts.map +1 -0
- package/dist/web/api.d.ts +6 -0
- package/dist/web/api.d.ts.map +1 -1
- package/dist/web/context-store.d.ts +13 -0
- package/dist/web/context-store.d.ts.map +1 -1
- package/dist/web/display-path.d.ts +28 -0
- package/dist/web/display-path.d.ts.map +1 -0
- package/dist/web/entry-args.d.ts +33 -0
- package/dist/web/entry-args.d.ts.map +1 -0
- package/dist/web/host-pi.d.ts +2 -0
- package/dist/web/host-pi.d.ts.map +1 -1
- package/dist/web/main.d.ts +4 -6
- package/dist/web/main.d.ts.map +1 -1
- package/dist/web/main.js +772 -77
- package/dist/web/message-stats.d.ts +45 -0
- package/dist/web/message-stats.d.ts.map +1 -0
- package/dist/web/ui/index.html +1 -0
- package/dist/web/ui/panel.css +5 -0
- package/dist/web/ui/panel.js +220 -70
- package/dist/web/views.d.ts +23 -0
- package/dist/web/views.d.ts.map +1 -1
- package/dist/{wrapup-orchestrator-z9sqpqjf.js → wrapup-orchestrator-wgb2nd19.js} +7 -6
- package/package.json +7 -2
- package/src/config/index.test.ts +257 -126
- package/src/config/index.ts +45 -39
- package/src/config/legacy-harness-blocks.test.ts +78 -0
- package/src/config/legacy-harness-blocks.ts +71 -0
- package/src/config/live-run-config.test.ts +49 -5
- package/src/config/live-run-config.ts +1 -0
- package/src/config/live-snapshot.ts +5 -1
- package/src/config/profiles.ts +1 -1
- package/src/config/project-config-trust-boundary.test.ts +2 -2
- package/src/config/project-security.hostile-matrix.test.ts +51 -65
- package/src/config/project-security.test.ts +6 -1
- package/src/config/project-security.ts +13 -12
- package/src/config/protected-tokens.test.ts +1 -1
- package/src/config/raw-loader.test.ts +29 -352
- package/src/config/raw-loader.ts +17 -406
- package/src/config/removed-config-keys.test.ts +1 -1
- package/src/config/schema/magic-context.test.ts +60 -64
- package/src/config/schema/magic-context.ts +105 -137
- package/src/config/variable.ts +21 -12
- package/src/shared/auto-search-lifecycle.ts +27 -0
- package/src/shared/cache-ttl-display.test.ts +1 -1
- package/src/shared/cache-ttl-display.ts +17 -16
- package/src/shared/model-cache-ttl.test.ts +2 -2
- package/src/shared/model-cache-ttl.ts +8 -4
- package/src/shared/model-resolution.test.ts +22 -32
- package/src/shared/model-resolution.ts +13 -18
- package/src/shared/model-suggestion-retry.ts +63 -7
- package/src/shared/protected-tools-policy.ts +25 -0
- package/src/shared/provider-output-failure.ts +176 -0
- package/src/shared/status-detail-text.test.ts +1 -1
- package/src/shared/status-view.test.ts +1 -1
- package/src/shared/temporal-upgrade-fixture.ts +50 -0
- package/src/shared/window-geometry.ts +10 -0
- package/src/shared/write-transaction-timing.ts +25 -1
- package/dist/features/magic-context/window-report-ledger.d.ts +0 -70
- package/dist/features/magic-context/window-report-ledger.d.ts.map +0 -1
- package/dist/index-e1q8002h.js +0 -16
- package/src/config/misplaced-agent-model.test.ts +0 -55
|
@@ -47,25 +47,24 @@ export declare const PromptSurfaceConfigSchema: z.ZodObject<{
|
|
|
47
47
|
}, z.core.$strip>;
|
|
48
48
|
export type PromptSurfaceConfig = z.infer<typeof PromptSurfaceConfigSchema>;
|
|
49
49
|
/**
|
|
50
|
-
* The flat model-resolution fields
|
|
51
|
-
*
|
|
52
|
-
*
|
|
50
|
+
* The flat historian model-resolution fields. This is the exhaustive contract
|
|
51
|
+
* for what a project-tier (repo-supplied) config must never set: the model, its
|
|
52
|
+
* fallbacks, and the per-harness qualifiers (OpenCode `variant`, Pi
|
|
53
|
+
* `thinking_level`) all merge onto the user's historian model at resolve time,
|
|
54
|
+
* so a cloned repo could otherwise force extra variant/thinking spend.
|
|
53
55
|
*/
|
|
54
|
-
export declare const
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
export declare const
|
|
56
|
+
export declare const HISTORIAN_MODEL_RESOLUTION_FIELDS: readonly ["model", "fallback_models", "variant", "thinking_level"];
|
|
57
|
+
/**
|
|
58
|
+
* The removed per-harness historian model blocks. They are no longer part of
|
|
59
|
+
* the schema; this list exists only so the loaders can detect them and REJECT
|
|
60
|
+
* the config file loudly (a parse failure → defaults / last-known-good) instead
|
|
61
|
+
* of letting Zod silently strip them (which would leave the historian with no
|
|
62
|
+
* model and look "configured but never running").
|
|
63
|
+
*/
|
|
64
|
+
export declare const LEGACY_HARNESS_BLOCK_KEYS: readonly ["opencode", "pi"];
|
|
65
|
+
export declare const HistorianModelEntrySchema: z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
63
66
|
model: z.ZodString;
|
|
64
67
|
variant: z.ZodOptional<z.ZodString>;
|
|
65
|
-
}, z.core.$strict>]>;
|
|
66
|
-
export type OcEntry = z.infer<typeof OcEntrySchema>;
|
|
67
|
-
export declare const PiEntrySchema: z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
68
|
-
model: z.ZodString;
|
|
69
68
|
thinking_level: z.ZodOptional<z.ZodEnum<{
|
|
70
69
|
off: "off";
|
|
71
70
|
minimal: "minimal";
|
|
@@ -76,36 +75,36 @@ export declare const PiEntrySchema: z.ZodUnion<readonly [z.ZodString, z.ZodObjec
|
|
|
76
75
|
max: "max";
|
|
77
76
|
}>>;
|
|
78
77
|
}, z.core.$strict>]>;
|
|
79
|
-
export type
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
78
|
+
export type HistorianModelEntry = z.infer<typeof HistorianModelEntrySchema>;
|
|
79
|
+
export declare const ConfigProfileSchema: z.ZodObject<{
|
|
80
|
+
historian: z.ZodOptional<z.ZodObject<{
|
|
81
|
+
model: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
82
|
+
model: z.ZodString;
|
|
83
|
+
variant: z.ZodOptional<z.ZodString>;
|
|
84
|
+
thinking_level: z.ZodOptional<z.ZodEnum<{
|
|
85
|
+
off: "off";
|
|
86
|
+
minimal: "minimal";
|
|
87
|
+
low: "low";
|
|
88
|
+
medium: "medium";
|
|
89
|
+
high: "high";
|
|
90
|
+
xhigh: "xhigh";
|
|
91
|
+
max: "max";
|
|
92
|
+
}>>;
|
|
93
|
+
}, z.core.$strict>]>>;
|
|
94
|
+
fallback_models: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
95
|
+
model: z.ZodString;
|
|
96
|
+
variant: z.ZodOptional<z.ZodString>;
|
|
97
|
+
thinking_level: z.ZodOptional<z.ZodEnum<{
|
|
98
|
+
off: "off";
|
|
99
|
+
minimal: "minimal";
|
|
100
|
+
low: "low";
|
|
101
|
+
medium: "medium";
|
|
102
|
+
high: "high";
|
|
103
|
+
xhigh: "xhigh";
|
|
104
|
+
max: "max";
|
|
105
|
+
}>>;
|
|
106
|
+
}, z.core.$strict>]>>>;
|
|
88
107
|
variant: z.ZodOptional<z.ZodString>;
|
|
89
|
-
}, z.core.$strict>]>>>;
|
|
90
|
-
variant: z.ZodOptional<z.ZodString>;
|
|
91
|
-
}, z.core.$strict>;
|
|
92
|
-
export type OpenCodeHarnessBlock = z.infer<typeof OpenCodeHarnessBlockSchema>;
|
|
93
|
-
/** Strict model-resolution block used by historian.pi. */
|
|
94
|
-
export declare const PiHarnessBlockSchema: z.ZodObject<{
|
|
95
|
-
model: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
96
|
-
model: z.ZodString;
|
|
97
|
-
thinking_level: z.ZodOptional<z.ZodEnum<{
|
|
98
|
-
off: "off";
|
|
99
|
-
minimal: "minimal";
|
|
100
|
-
low: "low";
|
|
101
|
-
medium: "medium";
|
|
102
|
-
high: "high";
|
|
103
|
-
xhigh: "xhigh";
|
|
104
|
-
max: "max";
|
|
105
|
-
}>>;
|
|
106
|
-
}, z.core.$strict>]>>;
|
|
107
|
-
fallback_models: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
108
|
-
model: z.ZodString;
|
|
109
108
|
thinking_level: z.ZodOptional<z.ZodEnum<{
|
|
110
109
|
off: "off";
|
|
111
110
|
minimal: "minimal";
|
|
@@ -115,56 +114,14 @@ export declare const PiHarnessBlockSchema: z.ZodObject<{
|
|
|
115
114
|
xhigh: "xhigh";
|
|
116
115
|
max: "max";
|
|
117
116
|
}>>;
|
|
118
|
-
}, z.core.$strict
|
|
119
|
-
thinking_level: z.ZodOptional<z.ZodEnum<{
|
|
120
|
-
off: "off";
|
|
121
|
-
minimal: "minimal";
|
|
122
|
-
low: "low";
|
|
123
|
-
medium: "medium";
|
|
124
|
-
high: "high";
|
|
125
|
-
xhigh: "xhigh";
|
|
126
|
-
max: "max";
|
|
127
|
-
}>>;
|
|
117
|
+
}, z.core.$strict>>;
|
|
128
118
|
}, z.core.$strict>;
|
|
129
|
-
export type
|
|
130
|
-
export declare const
|
|
119
|
+
export type ConfigProfile = z.infer<typeof ConfigProfileSchema>;
|
|
120
|
+
export declare const ConfigProfilesSchema: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
131
121
|
historian: z.ZodOptional<z.ZodObject<{
|
|
132
|
-
|
|
133
|
-
model: z.
|
|
134
|
-
model: z.ZodString;
|
|
135
|
-
variant: z.ZodOptional<z.ZodString>;
|
|
136
|
-
}, z.core.$strict>]>>;
|
|
137
|
-
fallback_models: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
138
|
-
model: z.ZodString;
|
|
139
|
-
variant: z.ZodOptional<z.ZodString>;
|
|
140
|
-
}, z.core.$strict>]>>>;
|
|
122
|
+
model: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
123
|
+
model: z.ZodString;
|
|
141
124
|
variant: z.ZodOptional<z.ZodString>;
|
|
142
|
-
}, z.core.$strict>>;
|
|
143
|
-
pi: z.ZodOptional<z.ZodObject<{
|
|
144
|
-
model: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
145
|
-
model: z.ZodString;
|
|
146
|
-
thinking_level: z.ZodOptional<z.ZodEnum<{
|
|
147
|
-
off: "off";
|
|
148
|
-
minimal: "minimal";
|
|
149
|
-
low: "low";
|
|
150
|
-
medium: "medium";
|
|
151
|
-
high: "high";
|
|
152
|
-
xhigh: "xhigh";
|
|
153
|
-
max: "max";
|
|
154
|
-
}>>;
|
|
155
|
-
}, z.core.$strict>]>>;
|
|
156
|
-
fallback_models: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
157
|
-
model: z.ZodString;
|
|
158
|
-
thinking_level: z.ZodOptional<z.ZodEnum<{
|
|
159
|
-
off: "off";
|
|
160
|
-
minimal: "minimal";
|
|
161
|
-
low: "low";
|
|
162
|
-
medium: "medium";
|
|
163
|
-
high: "high";
|
|
164
|
-
xhigh: "xhigh";
|
|
165
|
-
max: "max";
|
|
166
|
-
}>>;
|
|
167
|
-
}, z.core.$strict>]>>>;
|
|
168
125
|
thinking_level: z.ZodOptional<z.ZodEnum<{
|
|
169
126
|
off: "off";
|
|
170
127
|
minimal: "minimal";
|
|
@@ -174,48 +131,10 @@ export declare const ConfigProfileSchema: z.ZodObject<{
|
|
|
174
131
|
xhigh: "xhigh";
|
|
175
132
|
max: "max";
|
|
176
133
|
}>>;
|
|
177
|
-
}, z.core.$strict>>;
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
export type ConfigProfile = z.infer<typeof ConfigProfileSchema>;
|
|
181
|
-
export declare const ConfigProfilesSchema: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
182
|
-
historian: z.ZodOptional<z.ZodObject<{
|
|
183
|
-
opencode: z.ZodOptional<z.ZodObject<{
|
|
184
|
-
model: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
185
|
-
model: z.ZodString;
|
|
186
|
-
variant: z.ZodOptional<z.ZodString>;
|
|
187
|
-
}, z.core.$strict>]>>;
|
|
188
|
-
fallback_models: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
189
|
-
model: z.ZodString;
|
|
190
|
-
variant: z.ZodOptional<z.ZodString>;
|
|
191
|
-
}, z.core.$strict>]>>>;
|
|
134
|
+
}, z.core.$strict>]>>;
|
|
135
|
+
fallback_models: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
136
|
+
model: z.ZodString;
|
|
192
137
|
variant: z.ZodOptional<z.ZodString>;
|
|
193
|
-
}, z.core.$strict>>;
|
|
194
|
-
pi: z.ZodOptional<z.ZodObject<{
|
|
195
|
-
model: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
196
|
-
model: z.ZodString;
|
|
197
|
-
thinking_level: z.ZodOptional<z.ZodEnum<{
|
|
198
|
-
off: "off";
|
|
199
|
-
minimal: "minimal";
|
|
200
|
-
low: "low";
|
|
201
|
-
medium: "medium";
|
|
202
|
-
high: "high";
|
|
203
|
-
xhigh: "xhigh";
|
|
204
|
-
max: "max";
|
|
205
|
-
}>>;
|
|
206
|
-
}, z.core.$strict>]>>;
|
|
207
|
-
fallback_models: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
208
|
-
model: z.ZodString;
|
|
209
|
-
thinking_level: z.ZodOptional<z.ZodEnum<{
|
|
210
|
-
off: "off";
|
|
211
|
-
minimal: "minimal";
|
|
212
|
-
low: "low";
|
|
213
|
-
medium: "medium";
|
|
214
|
-
high: "high";
|
|
215
|
-
xhigh: "xhigh";
|
|
216
|
-
max: "max";
|
|
217
|
-
}>>;
|
|
218
|
-
}, z.core.$strict>]>>>;
|
|
219
138
|
thinking_level: z.ZodOptional<z.ZodEnum<{
|
|
220
139
|
off: "off";
|
|
221
140
|
minimal: "minimal";
|
|
@@ -225,13 +144,25 @@ export declare const ConfigProfilesSchema: z.ZodRecord<z.ZodString, z.ZodObject<
|
|
|
225
144
|
xhigh: "xhigh";
|
|
226
145
|
max: "max";
|
|
227
146
|
}>>;
|
|
228
|
-
}, z.core.$strict
|
|
147
|
+
}, z.core.$strict>]>>>;
|
|
148
|
+
variant: z.ZodOptional<z.ZodString>;
|
|
149
|
+
thinking_level: z.ZodOptional<z.ZodEnum<{
|
|
150
|
+
off: "off";
|
|
151
|
+
minimal: "minimal";
|
|
152
|
+
low: "low";
|
|
153
|
+
medium: "medium";
|
|
154
|
+
high: "high";
|
|
155
|
+
xhigh: "xhigh";
|
|
156
|
+
max: "max";
|
|
157
|
+
}>>;
|
|
229
158
|
}, z.core.$strict>>;
|
|
230
159
|
}, z.core.$strict>>;
|
|
231
160
|
export type ConfigProfiles = z.infer<typeof ConfigProfilesSchema>;
|
|
232
161
|
/**
|
|
233
|
-
* Historian metadata
|
|
234
|
-
*
|
|
162
|
+
* Historian metadata stays harness-independent. Model resolution uses the flat
|
|
163
|
+
* `model` / `fallback_models` fields plus the harness's own qualifier
|
|
164
|
+
* (`variant` for OpenCode, `thinking_level` for Pi); two_pass and
|
|
165
|
+
* disallowed_tools stay here.
|
|
235
166
|
*/
|
|
236
167
|
export declare const HistorianConfigSchema: z.ZodOptional<z.ZodObject<{
|
|
237
168
|
mode: z.ZodOptional<z.ZodEnum<{
|
|
@@ -280,42 +211,9 @@ export declare const HistorianConfigSchema: z.ZodOptional<z.ZodObject<{
|
|
|
280
211
|
}, z.core.$strip>>;
|
|
281
212
|
maxTokens: z.ZodOptional<z.ZodNumber>;
|
|
282
213
|
expand_tools: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodLiteral<false>]>>>;
|
|
283
|
-
|
|
284
|
-
model: z.
|
|
285
|
-
model: z.ZodString;
|
|
286
|
-
variant: z.ZodOptional<z.ZodString>;
|
|
287
|
-
}, z.core.$strict>]>>;
|
|
288
|
-
fallback_models: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
289
|
-
model: z.ZodString;
|
|
290
|
-
variant: z.ZodOptional<z.ZodString>;
|
|
291
|
-
}, z.core.$strict>]>>>;
|
|
214
|
+
model: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
215
|
+
model: z.ZodString;
|
|
292
216
|
variant: z.ZodOptional<z.ZodString>;
|
|
293
|
-
}, z.core.$strict>>;
|
|
294
|
-
pi: z.ZodOptional<z.ZodObject<{
|
|
295
|
-
model: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
296
|
-
model: z.ZodString;
|
|
297
|
-
thinking_level: z.ZodOptional<z.ZodEnum<{
|
|
298
|
-
off: "off";
|
|
299
|
-
minimal: "minimal";
|
|
300
|
-
low: "low";
|
|
301
|
-
medium: "medium";
|
|
302
|
-
high: "high";
|
|
303
|
-
xhigh: "xhigh";
|
|
304
|
-
max: "max";
|
|
305
|
-
}>>;
|
|
306
|
-
}, z.core.$strict>]>>;
|
|
307
|
-
fallback_models: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
308
|
-
model: z.ZodString;
|
|
309
|
-
thinking_level: z.ZodOptional<z.ZodEnum<{
|
|
310
|
-
off: "off";
|
|
311
|
-
minimal: "minimal";
|
|
312
|
-
low: "low";
|
|
313
|
-
medium: "medium";
|
|
314
|
-
high: "high";
|
|
315
|
-
xhigh: "xhigh";
|
|
316
|
-
max: "max";
|
|
317
|
-
}>>;
|
|
318
|
-
}, z.core.$strict>]>>>;
|
|
319
217
|
thinking_level: z.ZodOptional<z.ZodEnum<{
|
|
320
218
|
off: "off";
|
|
321
219
|
minimal: "minimal";
|
|
@@ -325,7 +223,30 @@ export declare const HistorianConfigSchema: z.ZodOptional<z.ZodObject<{
|
|
|
325
223
|
xhigh: "xhigh";
|
|
326
224
|
max: "max";
|
|
327
225
|
}>>;
|
|
328
|
-
}, z.core.$strict>>;
|
|
226
|
+
}, z.core.$strict>]>>;
|
|
227
|
+
fallback_models: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
228
|
+
model: z.ZodString;
|
|
229
|
+
variant: z.ZodOptional<z.ZodString>;
|
|
230
|
+
thinking_level: z.ZodOptional<z.ZodEnum<{
|
|
231
|
+
off: "off";
|
|
232
|
+
minimal: "minimal";
|
|
233
|
+
low: "low";
|
|
234
|
+
medium: "medium";
|
|
235
|
+
high: "high";
|
|
236
|
+
xhigh: "xhigh";
|
|
237
|
+
max: "max";
|
|
238
|
+
}>>;
|
|
239
|
+
}, z.core.$strict>]>>>;
|
|
240
|
+
variant: z.ZodOptional<z.ZodString>;
|
|
241
|
+
thinking_level: z.ZodOptional<z.ZodEnum<{
|
|
242
|
+
off: "off";
|
|
243
|
+
minimal: "minimal";
|
|
244
|
+
low: "low";
|
|
245
|
+
medium: "medium";
|
|
246
|
+
high: "high";
|
|
247
|
+
xhigh: "xhigh";
|
|
248
|
+
max: "max";
|
|
249
|
+
}>>;
|
|
329
250
|
two_pass: z.ZodDefault<z.ZodBoolean>;
|
|
330
251
|
disallowed_tools: z.ZodDefault<z.ZodArray<z.ZodEnum<{
|
|
331
252
|
read: "read";
|
|
@@ -334,9 +255,11 @@ export declare const HistorianConfigSchema: z.ZodOptional<z.ZodObject<{
|
|
|
334
255
|
aft_zoom: "aft_zoom";
|
|
335
256
|
aft_search: "aft_search";
|
|
336
257
|
}>>>;
|
|
337
|
-
}, z.core.$
|
|
258
|
+
}, z.core.$strict>>;
|
|
338
259
|
export type HistorianConfig = NonNullable<z.infer<typeof HistorianConfigSchema>>;
|
|
339
260
|
export interface MagicContextConfig {
|
|
261
|
+
/** The loader sets this to distinguish an explicit `5m` from the built-in default; users do not configure it. */
|
|
262
|
+
cacheTtlConfigured?: boolean;
|
|
340
263
|
enabled: boolean;
|
|
341
264
|
/** User-level setting that lets a session in the canonical home directory use project memory. */
|
|
342
265
|
allow_home_project: boolean;
|
|
@@ -380,7 +303,10 @@ export interface MagicContextConfig {
|
|
|
380
303
|
[modelKey: string]: number | undefined;
|
|
381
304
|
};
|
|
382
305
|
protected_tokens?: number;
|
|
383
|
-
|
|
306
|
+
/** Deprecated and ignored. Use keep_reasoning_tokens instead. */
|
|
307
|
+
clear_reasoning_age?: unknown;
|
|
308
|
+
/** Reasoning tokens to keep on rebuilding passes; per-model map allowed. */
|
|
309
|
+
keep_reasoning_tokens?: number | Record<string, number>;
|
|
384
310
|
history_budget_percentage: number;
|
|
385
311
|
historian_timeout_ms: number;
|
|
386
312
|
commit_cluster_trigger: {
|
|
@@ -455,15 +381,10 @@ export interface MagicContextConfig {
|
|
|
455
381
|
};
|
|
456
382
|
/** Pi-only child-process extension controls. */
|
|
457
383
|
pi?: PiConfig;
|
|
458
|
-
/**
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
* already rewriting the messages, so it never triggers a prompt-cache miss
|
|
463
|
-
* on its own; when off, the messages sent to the model are byte-identical to
|
|
464
|
-
* the age-based-only behavior. Experimental, opt-in, default off until cache
|
|
465
|
-
* stability is proven. */
|
|
466
|
-
smart_drops: boolean;
|
|
384
|
+
/** Deprecated and ignored: supersession reclaim is always on. */
|
|
385
|
+
smart_drops?: unknown;
|
|
386
|
+
/** Keep each tool's newest N still-active results in every drop lane. */
|
|
387
|
+
protected_tools: Record<string, number>;
|
|
467
388
|
/**
|
|
468
389
|
* Age-tier caveman compression for long user/assistant text parts.
|
|
469
390
|
* Graduated from `experimental.caveman_text_compression`; opt-in, default off.
|
|
@@ -542,42 +463,22 @@ export declare const MagicContextConfigSchema: z.ZodObject<{
|
|
|
542
463
|
profile: z.ZodOptional<z.ZodString>;
|
|
543
464
|
profiles: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
544
465
|
historian: z.ZodOptional<z.ZodObject<{
|
|
545
|
-
|
|
546
|
-
model: z.
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
|
|
466
|
+
model: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
467
|
+
model: z.ZodString;
|
|
468
|
+
variant: z.ZodOptional<z.ZodString>;
|
|
469
|
+
thinking_level: z.ZodOptional<z.ZodEnum<{
|
|
470
|
+
off: "off";
|
|
471
|
+
minimal: "minimal";
|
|
472
|
+
low: "low";
|
|
473
|
+
medium: "medium";
|
|
474
|
+
high: "high";
|
|
475
|
+
xhigh: "xhigh";
|
|
476
|
+
max: "max";
|
|
477
|
+
}>>;
|
|
478
|
+
}, z.core.$strict>]>>;
|
|
479
|
+
fallback_models: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
480
|
+
model: z.ZodString;
|
|
554
481
|
variant: z.ZodOptional<z.ZodString>;
|
|
555
|
-
}, z.core.$strict>>;
|
|
556
|
-
pi: z.ZodOptional<z.ZodObject<{
|
|
557
|
-
model: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
558
|
-
model: z.ZodString;
|
|
559
|
-
thinking_level: z.ZodOptional<z.ZodEnum<{
|
|
560
|
-
off: "off";
|
|
561
|
-
minimal: "minimal";
|
|
562
|
-
low: "low";
|
|
563
|
-
medium: "medium";
|
|
564
|
-
high: "high";
|
|
565
|
-
xhigh: "xhigh";
|
|
566
|
-
max: "max";
|
|
567
|
-
}>>;
|
|
568
|
-
}, z.core.$strict>]>>;
|
|
569
|
-
fallback_models: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
570
|
-
model: z.ZodString;
|
|
571
|
-
thinking_level: z.ZodOptional<z.ZodEnum<{
|
|
572
|
-
off: "off";
|
|
573
|
-
minimal: "minimal";
|
|
574
|
-
low: "low";
|
|
575
|
-
medium: "medium";
|
|
576
|
-
high: "high";
|
|
577
|
-
xhigh: "xhigh";
|
|
578
|
-
max: "max";
|
|
579
|
-
}>>;
|
|
580
|
-
}, z.core.$strict>]>>>;
|
|
581
482
|
thinking_level: z.ZodOptional<z.ZodEnum<{
|
|
582
483
|
off: "off";
|
|
583
484
|
minimal: "minimal";
|
|
@@ -587,7 +488,17 @@ export declare const MagicContextConfigSchema: z.ZodObject<{
|
|
|
587
488
|
xhigh: "xhigh";
|
|
588
489
|
max: "max";
|
|
589
490
|
}>>;
|
|
590
|
-
}, z.core.$strict
|
|
491
|
+
}, z.core.$strict>]>>>;
|
|
492
|
+
variant: z.ZodOptional<z.ZodString>;
|
|
493
|
+
thinking_level: z.ZodOptional<z.ZodEnum<{
|
|
494
|
+
off: "off";
|
|
495
|
+
minimal: "minimal";
|
|
496
|
+
low: "low";
|
|
497
|
+
medium: "medium";
|
|
498
|
+
high: "high";
|
|
499
|
+
xhigh: "xhigh";
|
|
500
|
+
max: "max";
|
|
501
|
+
}>>;
|
|
591
502
|
}, z.core.$strict>>;
|
|
592
503
|
}, z.core.$strict>>>;
|
|
593
504
|
historian: z.ZodOptional<z.ZodObject<{
|
|
@@ -637,42 +548,9 @@ export declare const MagicContextConfigSchema: z.ZodObject<{
|
|
|
637
548
|
}, z.core.$strip>>;
|
|
638
549
|
maxTokens: z.ZodOptional<z.ZodNumber>;
|
|
639
550
|
expand_tools: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodLiteral<false>]>>>;
|
|
640
|
-
|
|
641
|
-
model: z.
|
|
642
|
-
model: z.ZodString;
|
|
643
|
-
variant: z.ZodOptional<z.ZodString>;
|
|
644
|
-
}, z.core.$strict>]>>;
|
|
645
|
-
fallback_models: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
646
|
-
model: z.ZodString;
|
|
647
|
-
variant: z.ZodOptional<z.ZodString>;
|
|
648
|
-
}, z.core.$strict>]>>>;
|
|
551
|
+
model: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
552
|
+
model: z.ZodString;
|
|
649
553
|
variant: z.ZodOptional<z.ZodString>;
|
|
650
|
-
}, z.core.$strict>>;
|
|
651
|
-
pi: z.ZodOptional<z.ZodObject<{
|
|
652
|
-
model: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
653
|
-
model: z.ZodString;
|
|
654
|
-
thinking_level: z.ZodOptional<z.ZodEnum<{
|
|
655
|
-
off: "off";
|
|
656
|
-
minimal: "minimal";
|
|
657
|
-
low: "low";
|
|
658
|
-
medium: "medium";
|
|
659
|
-
high: "high";
|
|
660
|
-
xhigh: "xhigh";
|
|
661
|
-
max: "max";
|
|
662
|
-
}>>;
|
|
663
|
-
}, z.core.$strict>]>>;
|
|
664
|
-
fallback_models: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
665
|
-
model: z.ZodString;
|
|
666
|
-
thinking_level: z.ZodOptional<z.ZodEnum<{
|
|
667
|
-
off: "off";
|
|
668
|
-
minimal: "minimal";
|
|
669
|
-
low: "low";
|
|
670
|
-
medium: "medium";
|
|
671
|
-
high: "high";
|
|
672
|
-
xhigh: "xhigh";
|
|
673
|
-
max: "max";
|
|
674
|
-
}>>;
|
|
675
|
-
}, z.core.$strict>]>>>;
|
|
676
554
|
thinking_level: z.ZodOptional<z.ZodEnum<{
|
|
677
555
|
off: "off";
|
|
678
556
|
minimal: "minimal";
|
|
@@ -682,7 +560,30 @@ export declare const MagicContextConfigSchema: z.ZodObject<{
|
|
|
682
560
|
xhigh: "xhigh";
|
|
683
561
|
max: "max";
|
|
684
562
|
}>>;
|
|
685
|
-
}, z.core.$strict>>;
|
|
563
|
+
}, z.core.$strict>]>>;
|
|
564
|
+
fallback_models: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
565
|
+
model: z.ZodString;
|
|
566
|
+
variant: z.ZodOptional<z.ZodString>;
|
|
567
|
+
thinking_level: z.ZodOptional<z.ZodEnum<{
|
|
568
|
+
off: "off";
|
|
569
|
+
minimal: "minimal";
|
|
570
|
+
low: "low";
|
|
571
|
+
medium: "medium";
|
|
572
|
+
high: "high";
|
|
573
|
+
xhigh: "xhigh";
|
|
574
|
+
max: "max";
|
|
575
|
+
}>>;
|
|
576
|
+
}, z.core.$strict>]>>>;
|
|
577
|
+
variant: z.ZodOptional<z.ZodString>;
|
|
578
|
+
thinking_level: z.ZodOptional<z.ZodEnum<{
|
|
579
|
+
off: "off";
|
|
580
|
+
minimal: "minimal";
|
|
581
|
+
low: "low";
|
|
582
|
+
medium: "medium";
|
|
583
|
+
high: "high";
|
|
584
|
+
xhigh: "xhigh";
|
|
585
|
+
max: "max";
|
|
586
|
+
}>>;
|
|
686
587
|
two_pass: z.ZodDefault<z.ZodBoolean>;
|
|
687
588
|
disallowed_tools: z.ZodDefault<z.ZodArray<z.ZodEnum<{
|
|
688
589
|
read: "read";
|
|
@@ -691,7 +592,7 @@ export declare const MagicContextConfigSchema: z.ZodObject<{
|
|
|
691
592
|
aft_zoom: "aft_zoom";
|
|
692
593
|
aft_search: "aft_search";
|
|
693
594
|
}>>>;
|
|
694
|
-
}, z.core.$
|
|
595
|
+
}, z.core.$strict>>;
|
|
695
596
|
cache_ttl: z.ZodDefault<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
696
597
|
default: z.ZodString;
|
|
697
598
|
}, z.core.$catchall<z.ZodString>>]>>;
|
|
@@ -721,7 +622,10 @@ export declare const MagicContextConfigSchema: z.ZodObject<{
|
|
|
721
622
|
default: z.ZodOptional<z.ZodNumber>;
|
|
722
623
|
}, z.core.$catchall<z.ZodNumber>>>;
|
|
723
624
|
protected_tokens: z.ZodOptional<z.ZodNumber>;
|
|
724
|
-
clear_reasoning_age: z.
|
|
625
|
+
clear_reasoning_age: z.ZodOptional<z.ZodUnknown>;
|
|
626
|
+
keep_reasoning_tokens: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodObject<{
|
|
627
|
+
default: z.ZodOptional<z.ZodNumber>;
|
|
628
|
+
}, z.core.$catchall<z.ZodNumber>>]>>;
|
|
725
629
|
history_budget_percentage: z.ZodDefault<z.ZodNumber>;
|
|
726
630
|
historian_timeout_ms: z.ZodDefault<z.ZodNumber>;
|
|
727
631
|
commit_cluster_trigger: z.ZodDefault<z.ZodObject<{
|
|
@@ -753,7 +657,8 @@ export declare const MagicContextConfigSchema: z.ZodObject<{
|
|
|
753
657
|
pi: z.ZodOptional<z.ZodObject<{
|
|
754
658
|
subagent_extensions: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
755
659
|
}, z.core.$strip>>;
|
|
756
|
-
smart_drops: z.
|
|
660
|
+
smart_drops: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodRecord<z.ZodString, z.ZodUnknown>]>>;
|
|
661
|
+
protected_tools: z.ZodPipe<z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodNumber>>, z.ZodTransform<Record<string, number>, Record<string, number>>>;
|
|
757
662
|
caveman_text_compression: z.ZodDefault<z.ZodObject<{
|
|
758
663
|
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
759
664
|
min_chars: z.ZodDefault<z.ZodNumber>;
|
|
@@ -789,7 +694,7 @@ export declare const MagicContextConfigSchema: z.ZodObject<{
|
|
|
789
694
|
}, z.core.$strip>>;
|
|
790
695
|
}, z.core.$strip>;
|
|
791
696
|
/** Settings whose fresh values can be used by later agent runs without changing rendered prompt bytes. */
|
|
792
|
-
export declare const LIVE_RELOAD_CONFIG_PATHS: readonly ["toast_duration_ms", "historian.
|
|
697
|
+
export declare const LIVE_RELOAD_CONFIG_PATHS: readonly ["cache_ttl", "toast_duration_ms", "historian.model", "historian.fallback_models", "historian.variant", "historian.thinking_level", "historian.two_pass", "historian.expand_tools", "historian.maxTokens", "historian_timeout_ms", "commit_cluster_trigger.enabled", "commit_cluster_trigger.min_clusters", "memory.auto_promote"];
|
|
793
698
|
/**
|
|
794
699
|
* Derived default protected_tokens formula:
|
|
795
700
|
* clamp(round(0.05 × usableSoft), min(16000, round(0.08 × usableSoft)), 64000)
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"magic-context.d.ts","sourceRoot":"","sources":["../../../src/config/schema/magic-context.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;
|
|
1
|
+
{"version":3,"file":"magic-context.d.ts","sourceRoot":"","sources":["../../../src/config/schema/magic-context.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAOxB,eAAO,MAAM,oCAAoC,KAAK,CAAC;AAIvD,eAAO,MAAM,6BAA6B,0OACiM,CAAC;AAC5O,eAAO,MAAM,4BAA4B,SAAU,CAAC;AACpD,eAAO,MAAM,iCAAiC,OAAO,CAAC;AAKtD,eAAO,MAAM,oBAAoB,OAAO,CAAC;AAEzC;;;iEAGiE;AACjE,eAAO,MAAM,qBAAqB;;;;;;;;GAEnB,CAAC;AAChB,MAAM,MAAM,eAAe,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,qBAAqB,CAAC,CAAC;AAEpE;0EAC0E;AAC1E,eAAO,MAAM,cAAc;;kBASZ,CAAC;AAChB,MAAM,MAAM,QAAQ,GAAG,WAAW,CAAC,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC,CAAC;AAEnE;;;GAGG;AACH,eAAO,MAAM,yBAAyB;;;EAA4B,CAAC;AACnE,YAAY,EAAE,mBAAmB,EAAE,MAAM,6BAA6B,CAAC;AAYvE,eAAO,MAAM,yBAAyB;;;;;;;;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E,gBAAgB,EAAE,MAAM,CAAC;SAC5B,CAAC;KACL,CAAC;IACF;;;;;OAKG;IACH,WAAW,EAAE;QACT,OAAO,EAAE,OAAO,CAAC;QACjB,sFAAsF;QACtF,OAAO,EAAE;YACL,WAAW,EAAE,MAAM,CAAC;YACpB,YAAY,EAAE,MAAM,CAAC;YACrB,SAAS,EAAE,MAAM,CAAC;YAClB,MAAM,EAAE,MAAM,CAAC;SAClB,CAAC;QACF,kFAAkF;QAClF,SAAS,EAAE;YACP,UAAU,EAAE,MAAM,CAAC;YACnB,iBAAiB,EAAE,MAAM,EAAE,CAAC;YAC5B,YAAY,EAAE,MAAM,CAAC;YACrB,UAAU,EAAE,MAAM,CAAC;SACtB,CAAC;QACF;;gDAEwC;QACxC,gBAAgB,EAAE;YACd,YAAY,EAAE,MAAM,CAAC;YACrB,YAAY,EAAE,MAAM,CAAC;SACxB,CAAC;KACL,CAAC;CACL;AAED,eAAO,MAAM,wBAAwB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAqfnC,CAAC;AAEH,0GAA0G;AAC1G,eAAO,MAAM,wBAAwB,6UAc3B,CAAC;AAsBX;;;;;;;;;;GAUG;AACH,wBAAgB,4BAA4B,CAAC,UAAU,EAAE,MAAM,GAAG,MAAM,CAKvE"}
|
|
@@ -24,6 +24,14 @@ export interface SubstituteResult {
|
|
|
24
24
|
* user via logger/toast/startup notification.
|
|
25
25
|
*/
|
|
26
26
|
warnings: string[];
|
|
27
|
+
/**
|
|
28
|
+
* The subset of {@link warnings} that are unresolved references: a missing
|
|
29
|
+
* or empty env var, a missing file, or an unreadable file that fell back to
|
|
30
|
+
* empty string. Purely advisory to the runtime (which keeps the lenient
|
|
31
|
+
* warning behavior); `config-check` treats these as hard config errors.
|
|
32
|
+
* Does not include the sensitive-path warning.
|
|
33
|
+
*/
|
|
34
|
+
failures: string[];
|
|
27
35
|
}
|
|
28
36
|
/**
|
|
29
37
|
* Expand `{env:VAR}` and `{file:path}` tokens in raw config text.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"variable.d.ts","sourceRoot":"","sources":["../../src/config/variable.ts"],"names":[],"mappings":"AAMA,MAAM,WAAW,eAAe;IAC5B,4CAA4C;IAC5C,IAAI,EAAE,MAAM,CAAC;IACb;;;;;;OAMG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB;;;OAGG;IACH,eAAe,CAAC,EAAE,OAAO,CAAC;CAC7B;AAED,MAAM,WAAW,gBAAgB;IAC7B,wEAAwE;IACxE,IAAI,EAAE,MAAM,CAAC;IACb;;;;OAIG;IACH,QAAQ,EAAE,MAAM,EAAE,CAAC;CACtB;AA0BD;;;;;;;;;;;;;;;;;;GAkBG;AACH,wBAAgB,yBAAyB,CAAC,KAAK,EAAE,eAAe,GAAG,gBAAgB,
|
|
1
|
+
{"version":3,"file":"variable.d.ts","sourceRoot":"","sources":["../../src/config/variable.ts"],"names":[],"mappings":"AAMA,MAAM,WAAW,eAAe;IAC5B,4CAA4C;IAC5C,IAAI,EAAE,MAAM,CAAC;IACb;;;;;;OAMG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB;;;OAGG;IACH,eAAe,CAAC,EAAE,OAAO,CAAC;CAC7B;AAED,MAAM,WAAW,gBAAgB;IAC7B,wEAAwE;IACxE,IAAI,EAAE,MAAM,CAAC;IACb;;;;OAIG;IACH,QAAQ,EAAE,MAAM,EAAE,CAAC;IACnB;;;;;;OAMG;IACH,QAAQ,EAAE,MAAM,EAAE,CAAC;CACtB;AA0BD;;;;;;;;;;;;;;;;;;GAkBG;AACH,wBAAgB,yBAAyB,CAAC,KAAK,EAAE,eAAe,GAAG,gBAAgB,CAkHlF"}
|