@cortexkit/opencode-magic-context 0.36.0 → 0.37.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/index.d.ts.map +1 -1
- package/dist/config/project-security.d.ts +2 -1
- package/dist/config/project-security.d.ts.map +1 -1
- package/dist/config/schema/magic-context.d.ts +10 -0
- package/dist/config/schema/magic-context.d.ts.map +1 -1
- package/dist/{conflict-warning-hook-dw9fs934.js → conflict-warning-hook-an4fxhwf.js} +4 -4
- package/dist/{derive-budgets-88mxk2w1.js → derive-budgets-0f8xpyw2.js} +3 -2
- package/dist/features/magic-context/context-authority.d.ts +12 -0
- package/dist/features/magic-context/context-authority.d.ts.map +1 -1
- package/dist/features/magic-context/dreamer/classify.d.ts +2 -0
- package/dist/features/magic-context/dreamer/classify.d.ts.map +1 -1
- package/dist/features/magic-context/dreamer/evaluate-smart-notes.d.ts +2 -0
- package/dist/features/magic-context/dreamer/evaluate-smart-notes.d.ts.map +1 -1
- package/dist/features/magic-context/dreamer/lease.d.ts +10 -3
- package/dist/features/magic-context/dreamer/lease.d.ts.map +1 -1
- package/dist/features/magic-context/dreamer/map-memories.d.ts +2 -0
- package/dist/features/magic-context/dreamer/map-memories.d.ts.map +1 -1
- package/dist/features/magic-context/dreamer/module-apply.d.ts +5 -0
- package/dist/features/magic-context/dreamer/module-apply.d.ts.map +1 -1
- package/dist/features/magic-context/dreamer/promote-primers.d.ts +2 -0
- package/dist/features/magic-context/dreamer/promote-primers.d.ts.map +1 -1
- package/dist/features/magic-context/dreamer/refresh-primers.d.ts +2 -0
- 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-scheduler.d.ts +5 -2
- package/dist/features/magic-context/dreamer/task-scheduler.d.ts.map +1 -1
- package/dist/features/magic-context/dreamer/verify.d.ts +2 -0
- package/dist/features/magic-context/dreamer/verify.d.ts.map +1 -1
- package/dist/features/magic-context/memory/embedding-openai.d.ts +3 -1
- package/dist/features/magic-context/memory/embedding-openai.d.ts.map +1 -1
- package/dist/features/magic-context/memory/project-identity.d.ts +6 -0
- package/dist/features/magic-context/memory/project-identity.d.ts.map +1 -1
- package/dist/features/magic-context/message-index-async.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 +2 -0
- package/dist/features/magic-context/mural/compress-cues.d.ts.map +1 -1
- package/dist/features/magic-context/overflow-detection.d.ts.map +1 -1
- package/dist/features/magic-context/project-embedding-registry.d.ts.map +1 -1
- package/dist/features/magic-context/schema-fence-probe.d.ts +1 -0
- package/dist/features/magic-context/schema-fence-probe.d.ts.map +1 -1
- package/dist/features/magic-context/smart-notes/condition-compiler.d.ts +1 -0
- package/dist/features/magic-context/smart-notes/condition-compiler.d.ts.map +1 -1
- package/dist/features/magic-context/smart-notes/runner.d.ts.map +1 -1
- package/dist/features/magic-context/smart-notes/wake-plane.d.ts +21 -0
- package/dist/features/magic-context/smart-notes/wake-plane.d.ts.map +1 -0
- package/dist/features/magic-context/storage-clone.d.ts +6 -0
- package/dist/features/magic-context/storage-clone.d.ts.map +1 -1
- package/dist/features/magic-context/storage-db.d.ts +14 -3
- package/dist/features/magic-context/storage-db.d.ts.map +1 -1
- package/dist/features/magic-context/storage-identity-merge.d.ts.map +1 -1
- package/dist/features/magic-context/storage-meta-persisted.d.ts +22 -0
- package/dist/features/magic-context/storage-meta-persisted.d.ts.map +1 -1
- package/dist/features/magic-context/storage-meta-session.d.ts.map +1 -1
- package/dist/features/magic-context/storage-meta-shared.d.ts.map +1 -1
- package/dist/features/magic-context/storage-primers.d.ts +11 -0
- package/dist/features/magic-context/storage-primers.d.ts.map +1 -1
- package/dist/features/magic-context/storage-schema-helpers.d.ts.map +1 -1
- package/dist/features/magic-context/storage-tags.d.ts +2 -0
- package/dist/features/magic-context/storage-tags.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 +2 -0
- 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 +7 -0
- package/dist/features/magic-context/user-memory/storage-user-memory.d.ts.map +1 -1
- package/dist/features/magic-context/window-report-ledger.d.ts +70 -0
- package/dist/features/magic-context/window-report-ledger.d.ts.map +1 -0
- package/dist/hooks/magic-context/child-session-spawn.d.ts +1 -0
- package/dist/hooks/magic-context/child-session-spawn.d.ts.map +1 -1
- package/dist/hooks/magic-context/command-handler.d.ts.map +1 -1
- package/dist/hooks/magic-context/compaction-off-transition.d.ts.map +1 -1
- package/dist/hooks/magic-context/compartment-render-epoch.d.ts +5 -3
- package/dist/hooks/magic-context/compartment-render-epoch.d.ts.map +1 -1
- package/dist/hooks/magic-context/embed-session-state.d.ts +1 -1
- package/dist/hooks/magic-context/embed-session-state.d.ts.map +1 -1
- package/dist/hooks/magic-context/event-handler.d.ts.map +1 -1
- package/dist/hooks/magic-context/event-resolvers.d.ts +4 -0
- package/dist/hooks/magic-context/event-resolvers.d.ts.map +1 -1
- package/dist/hooks/magic-context/execute-status.d.ts +2 -1
- package/dist/hooks/magic-context/execute-status.d.ts.map +1 -1
- package/dist/hooks/magic-context/hook.d.ts.map +1 -1
- package/dist/hooks/magic-context/inject-compartments.d.ts +8 -0
- package/dist/hooks/magic-context/inject-compartments.d.ts.map +1 -1
- package/dist/hooks/magic-context/lkg-replay.d.ts +5 -2
- package/dist/hooks/magic-context/lkg-replay.d.ts.map +1 -1
- package/dist/hooks/magic-context/lkg-slot.d.ts +20 -0
- package/dist/hooks/magic-context/lkg-slot.d.ts.map +1 -1
- package/dist/hooks/magic-context/module-state-sync.d.ts +9 -0
- package/dist/hooks/magic-context/module-state-sync.d.ts.map +1 -1
- package/dist/hooks/magic-context/module-transport.d.ts +20 -3
- package/dist/hooks/magic-context/module-transport.d.ts.map +1 -1
- package/dist/hooks/magic-context/module-wire.d.ts +6 -1
- package/dist/hooks/magic-context/module-wire.d.ts.map +1 -1
- package/dist/hooks/magic-context/read-session-formatting.d.ts +1 -0
- package/dist/hooks/magic-context/read-session-formatting.d.ts.map +1 -1
- package/dist/hooks/magic-context/rust-mode-transform.d.ts +20 -0
- package/dist/hooks/magic-context/rust-mode-transform.d.ts.map +1 -1
- package/dist/hooks/magic-context/strip-content.d.ts +31 -1
- package/dist/hooks/magic-context/strip-content.d.ts.map +1 -1
- package/dist/hooks/magic-context/system-prompt-hash.d.ts.map +1 -1
- package/dist/hooks/magic-context/transform-postprocess-phase.d.ts +12 -3
- package/dist/hooks/magic-context/transform-postprocess-phase.d.ts.map +1 -1
- package/dist/hooks/magic-context/transform.d.ts +10 -0
- 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-3nfgbsp4.js → index-0ze9p983.js} +897 -114
- package/dist/{index-nsx2n9eg.js → index-4cz5nfxf.js} +3 -3
- package/dist/{index-0c9dmw9m.js → index-8mtsfhyg.js} +33 -3
- package/dist/{index-f1tnb3vm.js → index-8pqfcghm.js} +21 -9
- package/dist/{index-37rt2bka.js → index-cae89eas.js} +26 -7
- package/dist/index-cgyfn1s2.js +53 -0
- package/dist/{index-z8v31d85.js → index-crke4z5j.js} +144 -14
- package/dist/{index-tsgs7td8.js → index-pck9vadr.js} +1 -1
- package/dist/index-q0t189ay.js +741 -0
- package/dist/{index-3tnkymva.js → index-sw8gnq34.js} +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1952 -795
- package/dist/plugin/hooks/create-session-hooks.d.ts +3 -0
- package/dist/plugin/hooks/create-session-hooks.d.ts.map +1 -1
- package/dist/plugin/rpc-handlers.d.ts.map +1 -1
- package/dist/plugin/rust-tool-backends.d.ts +4 -0
- package/dist/plugin/rust-tool-backends.d.ts.map +1 -1
- package/dist/{recomp-orchestrator-7wbbvf87.js → recomp-orchestrator-c3ff16k7.js} +8 -7
- package/dist/{safe-notification-target-c11fdda2.js → safe-notification-target-b693f9x3.js} +2 -2
- package/dist/{send-session-notification-bgtf4853.js → send-session-notification-dxske5zm.js} +3 -3
- package/dist/shared/conflict-detector.d.ts +63 -0
- package/dist/shared/conflict-detector.d.ts.map +1 -1
- package/dist/shared/conflict-fixer.d.ts.map +1 -1
- package/dist/shared/harness-provider-map.d.ts +8 -0
- package/dist/shared/harness-provider-map.d.ts.map +1 -1
- package/dist/shared/jsonc-edit.d.ts +18 -0
- package/dist/shared/jsonc-edit.d.ts.map +1 -0
- package/dist/shared/jsonc-parser.d.ts +11 -1
- package/dist/shared/jsonc-parser.d.ts.map +1 -1
- package/dist/shared/logger.d.ts +8 -0
- package/dist/shared/logger.d.ts.map +1 -1
- package/dist/shared/models-dev-cache.d.ts +5 -0
- package/dist/shared/models-dev-cache.d.ts.map +1 -1
- package/dist/shared/prompt-surface-runtime.d.ts.map +1 -1
- package/dist/shared/prompt-surface.d.ts +7 -3
- package/dist/shared/prompt-surface.d.ts.map +1 -1
- package/dist/shared/rpc-client.d.ts.map +1 -1
- package/dist/shared/rpc-types.d.ts +14 -0
- package/dist/shared/rpc-types.d.ts.map +1 -1
- package/dist/shared/rpc-utils.d.ts +32 -6
- package/dist/shared/rpc-utils.d.ts.map +1 -1
- package/dist/shared/tui-preferences.d.ts +9 -0
- package/dist/shared/tui-preferences.d.ts.map +1 -1
- package/dist/shared/window-geometry.d.ts +89 -0
- package/dist/shared/window-geometry.d.ts.map +1 -0
- package/dist/{storage-meta-session-kh5egr11.js → storage-meta-session-mk4gsnke.js} +4 -3
- package/dist/tools/ctx-memory/tools.d.ts.map +1 -1
- package/dist/tools/ctx-note/tools.d.ts.map +1 -1
- package/dist/tui/data/context-db.d.ts.map +1 -1
- package/dist/tui-compiled/data/context-db.d.ts.map +1 -1
- package/package.json +2 -1
- package/src/config/index.test.ts +23 -0
- package/src/config/index.ts +43 -9
- package/src/config/latch-permanence-guard.test.ts +218 -0
- package/src/config/project-security.ts +10 -1
- package/src/config/schema/magic-context.test.ts +2 -1
- package/src/config/schema/magic-context.ts +13 -3
- package/src/shared/__fixtures__/window-overlay.v1.json +337 -0
- package/src/shared/conflict-detector.test.ts +176 -1
- package/src/shared/conflict-detector.ts +126 -3
- package/src/shared/conflict-fixer.test.ts +174 -0
- package/src/shared/conflict-fixer.ts +66 -70
- package/src/shared/harness-provider-map.test.ts +20 -0
- package/src/shared/harness-provider-map.ts +19 -0
- package/src/shared/jsonc-edit.ts +295 -0
- package/src/shared/jsonc-parser.test.ts +33 -0
- package/src/shared/jsonc-parser.ts +54 -2
- package/src/shared/logger.test.ts +119 -0
- package/src/shared/logger.ts +33 -15
- package/src/shared/models-dev-cache.test.ts +17 -0
- package/src/shared/models-dev-cache.ts +58 -6
- package/src/shared/prompt-surface-runtime.ts +5 -3
- package/src/shared/prompt-surface.test.ts +91 -2
- package/src/shared/prompt-surface.ts +35 -11
- package/src/shared/rpc-client.ts +4 -2
- package/src/shared/rpc-types.ts +14 -0
- package/src/shared/rpc-utils.test.ts +173 -13
- package/src/shared/rpc-utils.ts +202 -18
- package/src/shared/tui-preferences.test.ts +52 -2
- package/src/shared/tui-preferences.ts +42 -17
- package/src/shared/window-geometry.test.ts +309 -0
- package/src/shared/window-geometry.ts +629 -0
- package/src/tui/data/context-db.ts +5 -0
- package/src/tui/index.tsx +22 -0
- package/src/tui-compiled/data/context-db.ts +5 -0
- package/src/tui-compiled/index.tsx +319 -255
- package/dist/index-wgvxkqpx.js +0 -342
|
@@ -44,6 +44,9 @@ export declare function buildMagicContextHookConfig(pluginConfig: MagicContextPl
|
|
|
44
44
|
default: number;
|
|
45
45
|
[modelKey: string]: number;
|
|
46
46
|
};
|
|
47
|
+
models?: {
|
|
48
|
+
window_overlay_path?: string;
|
|
49
|
+
};
|
|
47
50
|
toast_duration_ms?: number;
|
|
48
51
|
execute_threshold_tokens?: {
|
|
49
52
|
default?: number;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-session-hooks.d.ts","sourceRoot":"","sources":["../../../src/plugin/hooks/create-session-hooks.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,cAAc,CAAC;AAO7D,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,8CAA8C,CAAC;AACrF,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,+CAA+C,CAAC;AAC1F,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,qCAAqC,CAAC;AAChF,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AAC9C;;;;;;GAMG;AACH,wBAAgB,2BAA2B,CAAC,YAAY,EAAE,wBAAwB;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"create-session-hooks.d.ts","sourceRoot":"","sources":["../../../src/plugin/hooks/create-session-hooks.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,cAAc,CAAC;AAO7D,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,8CAA8C,CAAC;AACrF,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,+CAA+C,CAAC;AAC1F,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,qCAAqC,CAAC;AAChF,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AAC9C;;;;;;GAMG;AACH,wBAAgB,2BAA2B,CAAC,YAAY,EAAE,wBAAwB;;;;;;;;;mBAE3C,CAAC;aAA2B,CAAC;aACtD,CAAC;eAA6B,CAAC;;;;;;;;;;;;;;;;;;;;;;;2BAyF+llB,CAAC;;;;eAA6iB,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA7E1rmB;AAED,wBAAgB,kBAAkB,CAAC,IAAI,EAAE;IACrC,GAAG,EAAE,aAAa,CAAC;IACnB,YAAY,EAAE,wBAAwB,CAAC;IACvC,gBAAgB,EAAE,gBAAgB,CAAC;IACnC,oBAAoB,CAAC,EAAE,oBAAoB,CAAC;IAC5C,oBAAoB,CAAC,EAAE,oBAAoB,CAAC;CAC/C;;;;;;;;;qBAqE8tJ,CAAC;iBAA2B,CAAC;0BAAc,CAAC;uBAAiB,CAAC;;;;;;;;;;;;;qBAA/sE,CAAC;mBAAyB,CAAC;iBAAuB,CAAC;iBAAuB,CAAC;0BAAc,CAAC;uBAAiB,CAAC;;;;;;0BAAmh8D,CAAC;;;;;;;;;EAvC7shE;AAED,wBAAsB,uBAAuB,CAAC,IAAI,EAAE;IAChD,GAAG,EAAE,aAAa,CAAC;IACnB,YAAY,EAAE,wBAAwB,CAAC;IACvC,gBAAgB,EAAE,gBAAgB,CAAC;IACnC,oBAAoB,CAAC,EAAE,oBAAoB,CAAC;IAC5C,oBAAoB,CAAC,EAAE,oBAAoB,CAAC;CAC/C;;;;;;;;;qBA+B8tJ,CAAC;iBAA2B,CAAC;0BAAc,CAAC;uBAAiB,CAAC;;;;;;;;;;;;;qBAA/sE,CAAC;mBAAyB,CAAC;iBAAuB,CAAC;iBAAuB,CAAC;0BAAc,CAAC;uBAAiB,CAAC;;;;;;0BAAmh8D,CAAC;;;;;;;;;GAD7shE"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"rpc-handlers.d.ts","sourceRoot":"","sources":["../../src/plugin/rpc-handlers.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,gCAAgC,CAAC;AAWzE,OAAO,EACH,KAAK,eAAe,IAAI,QAAQ,EAGnC,MAAM,mCAAmC,CAAC;
|
|
1
|
+
{"version":3,"file":"rpc-handlers.d.ts","sourceRoot":"","sources":["../../src/plugin/rpc-handlers.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,gCAAgC,CAAC;AAWzE,OAAO,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AQ,EACZ,SAAS,EAAE,MAAM,EACjB,SAAS,EAAE,MAAM,EACjB,gBAAgB,CAAC,EAAE,gBAAgB,EACnC,qBAAqB,CAAC,EAAE,MAAM,EAC9B,MAAM,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAChC,YAAY,CAAC,EAAE,iBAAiB,EAChC,iBAAiB,UAAO,GACzB,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAezB;AAED,wBAAgB,iBAAiB,CAC7B,EAAE,EAAE,QAAQ,EACZ,SAAS,EAAE,MAAM,EACjB,SAAS,EAAE,MAAM,EACjB,QAAQ,CAAC,EAAE,MAAM,EACjB,MAAM,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAChC,gBAAgB,CAAC,EAAE,gBAAgB,EACnC,qBAAqB,CAAC,EAAE,MAAM,EAC9B,YAAY,CAAC,EAAE,iBAAiB,EAChC,iBAAiB,UAAO,GACzB,YAAY,CAiOd;AA4BD;;GAEG;AACH,wBAAgB,mBAAmB,CAC/B,SAAS,EAAE,qBAAqB,EAChC,IAAI,EAAE;IACF,SAAS,EAAE,MAAM,CAAC;IAClB,MAAM,EAAE,kBAAkB,CAAC;IAC3B,MAAM,EAAE,OAAO,CAAC;IAChB,gBAAgB,EAAE,gBAAgB,CAAC;IACnC,oBAAoB,CAAC,EAAE,oBAAoB,CAAC;CAC/C,GACF,IAAI,CA2PN"}
|
|
@@ -11,6 +11,10 @@ export interface RustNoteToolRequest {
|
|
|
11
11
|
action: "write" | "read" | "update" | "dismiss";
|
|
12
12
|
content?: string;
|
|
13
13
|
surfaceCondition?: string;
|
|
14
|
+
compiledProvider?: string | null;
|
|
15
|
+
compiledConfig?: string | null;
|
|
16
|
+
compiledAt?: number | null;
|
|
17
|
+
compileStatus?: "compiled" | "plain" | "refused";
|
|
14
18
|
filter?: "all" | "active" | "pending" | "ready" | "dismissed";
|
|
15
19
|
limit?: number;
|
|
16
20
|
offset?: number;
|
|
@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e1E;AAED,MAAM,WAAW,gBAAgB;IAC7B,MAAM,CAAC,EAAE,CAAC,IAAI,EAAE;QACZ,SAAS,EAAE,MAAM,CAAC;QAClB,WAAW,EAAE,MAAM,CAAC;QACpB,IAAI,EAAE,MAAM,CAAC;QACb,SAAS,EAAE,MAAM,CAAC;KACrB,KAAK,OAAO,CAAC,OAAO,CAAC,CAAC;IACvB,cAAc,CAAC,EAAE,CAAC,IAAI,EAAE;QACpB,WAAW,EAAE,MAAM,CAAC;QACpB,WAAW,EAAE,MAAM,CAAC;QACpB,MAAM,EAAE,mBAAmB,CAAC;KAC/B,KAAK,OAAO,CAAC,kBAAkB,GAAG,IAAI,CAAC,CAAC;IACzC,gEAAgE;IAChE,IAAI,CAAC,EAAE,CAAC,IAAI,EAAE,mBAAmB,KAAK,OAAO,CAAC,OAAO,CAAC,CAAC;IACvD,qEAAqE;IACrE,MAAM,CAAC,EAAE,CAAC,IAAI,EAAE,qBAAqB,KAAK,OAAO,CAAC,OAAO,CAAC,CAAC;IAC3D,wGAAwG;IACxG,uBAAuB,CAAC,EAAE,CAAC,WAAW,EAAE,MAAM,KAAK,OAAO,CAAC;IAC3D,UAAU,CAAC,EAAE,CAAC,SAAS,EAAE,MAAM,KAAK,IAAI,CAAC;CAC5C;AAED,wBAAgB,4BAA4B,CAAC,KAAK,EAAE,OAAO,GAAG,OAAO,CAcpE"}
|
|
@@ -9,15 +9,16 @@ import {
|
|
|
9
9
|
setRecompNote,
|
|
10
10
|
setRecompStarting,
|
|
11
11
|
setRecompTerminal
|
|
12
|
-
} from "./index-
|
|
13
|
-
import"./index-
|
|
12
|
+
} from "./index-0ze9p983.js";
|
|
13
|
+
import"./index-q0t189ay.js";
|
|
14
14
|
import"./index-td9depx5.js";
|
|
15
|
-
import"./index-
|
|
16
|
-
import"./index-
|
|
17
|
-
import"./index-
|
|
18
|
-
import"./index-
|
|
15
|
+
import"./index-4cz5nfxf.js";
|
|
16
|
+
import"./index-crke4z5j.js";
|
|
17
|
+
import"./index-cgyfn1s2.js";
|
|
18
|
+
import"./index-sw8gnq34.js";
|
|
19
|
+
import"./index-8mtsfhyg.js";
|
|
19
20
|
import"./index-d62ypazr.js";
|
|
20
|
-
import"./index-
|
|
21
|
+
import"./index-8pqfcghm.js";
|
|
21
22
|
import"./index-mmrhhk9a.js";
|
|
22
23
|
import"./index-wckvcay0.js";
|
|
23
24
|
export {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import {
|
|
2
2
|
isDefaultSessionTitle,
|
|
3
3
|
waitForSafeNotificationTarget
|
|
4
|
-
} from "./index-
|
|
5
|
-
import"./index-
|
|
4
|
+
} from "./index-pck9vadr.js";
|
|
5
|
+
import"./index-8pqfcghm.js";
|
|
6
6
|
import"./index-mmrhhk9a.js";
|
|
7
7
|
import"./index-wckvcay0.js";
|
|
8
8
|
export {
|
package/dist/{send-session-notification-bgtf4853.js → send-session-notification-dxske5zm.js}
RENAMED
|
@@ -5,9 +5,9 @@ import {
|
|
|
5
5
|
flushIgnoredMessages,
|
|
6
6
|
sendIgnoredMessage,
|
|
7
7
|
sendUserPrompt
|
|
8
|
-
} from "./index-
|
|
9
|
-
import"./index-
|
|
10
|
-
import"./index-
|
|
8
|
+
} from "./index-4cz5nfxf.js";
|
|
9
|
+
import"./index-sw8gnq34.js";
|
|
10
|
+
import"./index-8pqfcghm.js";
|
|
11
11
|
import"./index-mmrhhk9a.js";
|
|
12
12
|
import"./index-wckvcay0.js";
|
|
13
13
|
export {
|
|
@@ -24,6 +24,17 @@ export interface ConflictResult {
|
|
|
24
24
|
prune: boolean;
|
|
25
25
|
};
|
|
26
26
|
}
|
|
27
|
+
/**
|
|
28
|
+
* Resolved native compaction state, as reported by the host's own config
|
|
29
|
+
* resolution (ctx.client.config.get() — the same object `opencode debug
|
|
30
|
+
* config` prints). `auto`/`prune` are booleans; the OpenCode schema annotates
|
|
31
|
+
* `auto` with default `true` and `prune` with default `false`, so an absent
|
|
32
|
+
* compaction block resolves to `{ auto: true, prune: false }`.
|
|
33
|
+
*/
|
|
34
|
+
export interface ResolvedCompaction {
|
|
35
|
+
auto: boolean;
|
|
36
|
+
prune: boolean;
|
|
37
|
+
}
|
|
27
38
|
/**
|
|
28
39
|
* Options for {@link detectConflicts}.
|
|
29
40
|
*
|
|
@@ -36,6 +47,13 @@ export interface ConflictResult {
|
|
|
36
47
|
* omit it and accept the default `true` (mode-on) behavior, which preserves
|
|
37
48
|
* today's conflict semantics; it must never silently skip the check.
|
|
38
49
|
*
|
|
50
|
+
* `resolvedCompaction` is the host's RESOLVED native compaction state
|
|
51
|
+
* (fetched via {@link resolveCompactionForBoot}). When present, the
|
|
52
|
+
* file-based {@link checkCompaction} is NOT called — the resolved values are
|
|
53
|
+
* used directly. Absent means the file-based fallback is used. The
|
|
54
|
+
* OPENCODE_DISABLE_AUTOCOMPACT env short-circuit is applied on top of
|
|
55
|
+
* whichever arm produced the value.
|
|
56
|
+
*
|
|
39
57
|
* When `compactionEnabled` is `false` (compaction-off mode), OpenCode
|
|
40
58
|
* `compaction.auto=true` / `compaction.prune=true` are NOT plugin-disabling
|
|
41
59
|
* conflicts — native compaction is the user's chosen window manager. DCP
|
|
@@ -44,6 +62,7 @@ export interface ConflictResult {
|
|
|
44
62
|
*/
|
|
45
63
|
export interface DetectConflictsOptions {
|
|
46
64
|
compactionEnabled?: boolean;
|
|
65
|
+
resolvedCompaction?: ResolvedCompaction;
|
|
47
66
|
}
|
|
48
67
|
/**
|
|
49
68
|
* Detect all conflicts that would prevent magic-context from working correctly.
|
|
@@ -53,8 +72,52 @@ export interface DetectConflictsOptions {
|
|
|
53
72
|
* When `false` (compaction-off mode), native `compaction.auto`/`prune` are
|
|
54
73
|
* reported in {@link ConflictResult.nativeCompaction} but are NOT flagged as
|
|
55
74
|
* conflicts — native compaction is the intended window manager in that mode.
|
|
75
|
+
*
|
|
76
|
+
* `resolvedCompaction` (optional) is the host's RESOLVED native compaction
|
|
77
|
+
* state from {@link resolveCompactionForBoot}. When present it is used
|
|
78
|
+
* directly and the file-based {@link checkCompaction} is skipped; when absent
|
|
79
|
+
* the file-based fallback runs unchanged.
|
|
56
80
|
*/
|
|
57
81
|
export declare function detectConflicts(directory: string, options?: DetectConflictsOptions): ConflictResult;
|
|
82
|
+
/**
|
|
83
|
+
* Minimal shape of the OpenCode SDK client's `config.get()` response. The
|
|
84
|
+
* SDK's generated `Config` type does not declare a `compaction` field (the
|
|
85
|
+
* schema lives in OpenCode's core config, not the SDK surface), so we read it
|
|
86
|
+
* defensively at runtime. `config.get()` returns a `RequestResult` whose
|
|
87
|
+
* `data` is the resolved config object — the same object `opencode debug
|
|
88
|
+
* config` prints. The `data` is typed as `unknown` here so the real SDK client
|
|
89
|
+
* (whose `Config` has no `compaction` key) is structurally assignable.
|
|
90
|
+
*/
|
|
91
|
+
export interface OpencodeConfigClientLike {
|
|
92
|
+
config: {
|
|
93
|
+
get: () => Promise<{
|
|
94
|
+
data?: unknown;
|
|
95
|
+
}>;
|
|
96
|
+
};
|
|
97
|
+
}
|
|
98
|
+
/**
|
|
99
|
+
* Fetch the host's RESOLVED native compaction state from the OpenCode SDK
|
|
100
|
+
* client (`ctx.client.config.get()`). This is the authority for the plugin's
|
|
101
|
+
* conflict decision (issue #309): the file-based re-derivation cannot see
|
|
102
|
+
* every layer OpenCode folds in (env-var config path, managed configs,
|
|
103
|
+
* multi-file merge), so any user whose `auto=false` lives in a layer we don't
|
|
104
|
+
* read would be wrongly flagged. We never re-derive what the host will tell
|
|
105
|
+
* us.
|
|
106
|
+
*
|
|
107
|
+
* A response WITHOUT a compaction block is INCONCLUSIVE, not "host defaults
|
|
108
|
+
* apply": a server whose `/config` shape drifted (OpenCode Desktop bundles
|
|
109
|
+
* its own server version) or a fetch racing boot returns data with no
|
|
110
|
+
* `compaction` key, and reading that absence as `auto=true` disables the
|
|
111
|
+
* plugin — the one wrong direction, because a false disable leaves NOTHING
|
|
112
|
+
* managing the window and every long session overflows (issue #309, second
|
|
113
|
+
* arm). Only an explicit boolean from the host resolves this arm; anything
|
|
114
|
+
* else returns `null` so the caller falls back to the file-based check,
|
|
115
|
+
* which reads the layers the user actually wrote.
|
|
116
|
+
*
|
|
117
|
+
* Returns `null` when the fetch fails, times out (bounded to `timeoutMs` so
|
|
118
|
+
* boot never hangs), or serves no explicit compaction block.
|
|
119
|
+
*/
|
|
120
|
+
export declare function resolveCompactionForBoot(client: OpencodeConfigClientLike, timeoutMs?: number): Promise<ResolvedCompaction | null>;
|
|
58
121
|
/**
|
|
59
122
|
* Canonical npm package names that represent the conflicting plugin.
|
|
60
123
|
* Matched against the npm-style segment of each plugin entry, so:
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"conflict-detector.d.ts","sourceRoot":"","sources":["../../src/shared/conflict-detector.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"conflict-detector.d.ts","sourceRoot":"","sources":["../../src/shared/conflict-detector.ts"],"names":[],"mappings":"AA2BA,MAAM,WAAW,cAAc;IAC3B,8CAA8C;IAC9C,WAAW,EAAE,OAAO,CAAC;IACrB,+CAA+C;IAC/C,OAAO,EAAE,MAAM,EAAE,CAAC;IAClB,2DAA2D;IAC3D,SAAS,EAAE;QACP,cAAc,EAAE,OAAO,CAAC;QACxB,eAAe,EAAE,OAAO,CAAC;QACzB,SAAS,EAAE,OAAO,CAAC;QACnB,uBAAuB,EAAE,OAAO,CAAC;QACjC,uBAAuB,EAAE,OAAO,CAAC;QACjC,oBAAoB,EAAE,OAAO,CAAC;KACjC,CAAC;IACF;;;;;;OAMG;IACH,gBAAgB,EAAE;QACd,IAAI,EAAE,OAAO,CAAC;QACd,KAAK,EAAE,OAAO,CAAC;KAClB,CAAC;CACL;AAED;;;;;;GAMG;AACH,MAAM,WAAW,kBAAkB;IAC/B,IAAI,EAAE,OAAO,CAAC;IACd,KAAK,EAAE,OAAO,CAAC;CAClB;AAED;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AACH,MAAM,WAAW,sBAAsB;IACnC,iBAAiB,CAAC,EAAE,OAAO,CAAC;IAC5B,kBAAkB,CAAC,EAAE,kBAAkB,CAAC;CAC3C;AAED;;;;;;;;;;;;;GAaG;AACH,wBAAgB,eAAe,CAC3B,SAAS,EAAE,MAAM,EACjB,OAAO,CAAC,EAAE,sBAAsB,GACjC,cAAc,CAmFhB;AAID;;;;;;;;GAQG;AACH,MAAM,WAAW,wBAAwB;IACrC,MAAM,EAAE;QACJ,GAAG,EAAE,MAAM,OAAO,CAAC;YAAE,IAAI,CAAC,EAAE,OAAO,CAAA;SAAE,CAAC,CAAC;KAC1C,CAAC;CACL;AAaD;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,wBAAsB,wBAAwB,CAC1C,MAAM,EAAE,wBAAwB,EAChC,SAAS,SAAQ,GAClB,OAAO,CAAC,kBAAkB,GAAG,IAAI,CAAC,CAwBpC;AA0ED;;;;;;;;;;GAUG;AACH,eAAO,MAAM,iBAAiB,aAAuC,CAAC;AAOtE;;;;;;;;;;;;;;;GAeG;AACH,wBAAgB,kBAAkB,CAAC,KAAK,EAAE,MAAM,EAAE,cAAc,EAAE,GAAG,CAAC,MAAM,CAAC,GAAG,OAAO,CAoBtF;AAED;;;;iEAIiE;AACjE,wBAAgB,iBAAiB,CAAC,KAAK,EAAE,OAAO,GAAG,MAAM,GAAG,IAAI,CAI/D;AAwCD;;;;;;;;;;;;GAYG;AACH,eAAO,MAAM,iBAAiB,aAAiD,CAAC;AA2FhF;;GAEG;AACH,wBAAgB,mBAAmB,CAAC,MAAM,EAAE,cAAc,GAAG,MAAM,CAWlE"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"conflict-fixer.d.ts","sourceRoot":"","sources":["../../src/shared/conflict-fixer.ts"],"names":[],"mappings":"AAKA,OAAO,EACH,KAAK,cAAc,EAItB,MAAM,qBAAqB,CAAC;
|
|
1
|
+
{"version":3,"file":"conflict-fixer.d.ts","sourceRoot":"","sources":["../../src/shared/conflict-fixer.ts"],"names":[],"mappings":"AAKA,OAAO,EACH,KAAK,cAAc,EAItB,MAAM,qBAAqB,CAAC;AAyJ7B;;;;;;;;;;;;;GAaG;AACH,MAAM,WAAW,mBAAmB;IAChC,iBAAiB,CAAC,EAAE,OAAO,CAAC;CAC/B;AAED,wBAAgB,YAAY,CACxB,SAAS,EAAE,MAAM,EACjB,SAAS,EAAE,cAAc,CAAC,WAAW,CAAC,EACtC,OAAO,CAAC,EAAE,mBAAmB,GAC9B,MAAM,EAAE,CA6GV"}
|
|
@@ -36,6 +36,14 @@ export declare function piModelRefToCanonical(ref: string): string;
|
|
|
36
36
|
* Pi. Idempotent: normalizes any Pi-form prefix back to canonical first, so it
|
|
37
37
|
* is safe on a config that already holds Pi-form ids (hand-edited or pre-fix). */
|
|
38
38
|
export declare function resolveModelRefForPi(ref: string): string;
|
|
39
|
+
/**
|
|
40
|
+
* Return every known spelling of a model reference with the canonical shared
|
|
41
|
+
* form first. The raw input remains the first fallback, so a single config file
|
|
42
|
+
* works on every harness: canonical wins when both spellings are present, while
|
|
43
|
+
* Pi/OMP-native provider ids are still accepted at the read edge. Unknown
|
|
44
|
+
* providers pass through unchanged and therefore produce one candidate.
|
|
45
|
+
*/
|
|
46
|
+
export declare function modelRefLookupOrder(ref: string): string[];
|
|
39
47
|
/** OMP-native selector -> canonical shared-config model reference. */
|
|
40
48
|
export declare function ompModelRefToCanonical(ref: string): string;
|
|
41
49
|
/** Canonical shared-config model reference -> OMP-native selector. */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"harness-provider-map.d.ts","sourceRoot":"","sources":["../../src/shared/harness-provider-map.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8BG;AAoCH;+EAC+E;AAC/E,wBAAgB,qBAAqB,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAEzD;AAED;;mFAEmF;AACnF,wBAAgB,oBAAoB,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAExD;AAED,sEAAsE;AACtE,wBAAgB,sBAAsB,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAE1D;AAED,sEAAsE;AACtE,wBAAgB,qBAAqB,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAEzD"}
|
|
1
|
+
{"version":3,"file":"harness-provider-map.d.ts","sourceRoot":"","sources":["../../src/shared/harness-provider-map.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8BG;AAoCH;+EAC+E;AAC/E,wBAAgB,qBAAqB,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAEzD;AAED;;mFAEmF;AACnF,wBAAgB,oBAAoB,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAExD;AAED;;;;;;GAMG;AACH,wBAAgB,mBAAmB,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,EAAE,CAUzD;AAED,sEAAsE;AACtE,wBAAgB,sBAAsB,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAE1D;AAED,sEAAsE;AACtE,wBAAgB,qBAAqB,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAEzD"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { type JSONPath } from "jsonc-parser";
|
|
2
|
+
/**
|
|
3
|
+
* Replace one JSONC value without reserializing the rest of the document. New
|
|
4
|
+
* paths use jsonc-parser's structural edit so the original document remains
|
|
5
|
+
* untouched outside the inserted property.
|
|
6
|
+
*/
|
|
7
|
+
export declare function setJsoncValue(text: string, path: JSONPath, value: unknown): string;
|
|
8
|
+
/**
|
|
9
|
+
* Remove matching array entries while retaining the exact bytes for survivor
|
|
10
|
+
* comments and surrounding JSONC regions.
|
|
11
|
+
*/
|
|
12
|
+
export declare function removeJsoncArrayEntries(text: string, path: JSONPath, shouldRemove: (entry: unknown) => boolean): {
|
|
13
|
+
text: string;
|
|
14
|
+
removed: boolean;
|
|
15
|
+
};
|
|
16
|
+
/** Append values to an existing JSONC array without reserializing sibling fields. */
|
|
17
|
+
export declare function appendJsoncArrayValues(text: string, path: JSONPath, values: unknown[]): string;
|
|
18
|
+
//# sourceMappingURL=jsonc-edit.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"jsonc-edit.d.ts","sourceRoot":"","sources":["../../src/shared/jsonc-edit.ts"],"names":[],"mappings":"AAAA,OAAO,EAKH,KAAK,QAAQ,EAKhB,MAAM,cAAc,CAAC;AAoOtB;;;;GAIG;AACH,wBAAgB,aAAa,CAAC,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,QAAQ,EAAE,KAAK,EAAE,OAAO,GAAG,MAAM,CASlF;AAED;;;GAGG;AACH,wBAAgB,uBAAuB,CACnC,IAAI,EAAE,MAAM,EACZ,IAAI,EAAE,QAAQ,EACd,YAAY,EAAE,CAAC,KAAK,EAAE,OAAO,KAAK,OAAO,GAC1C;IAAE,IAAI,EAAE,MAAM,CAAC;IAAC,OAAO,EAAE,OAAO,CAAA;CAAE,CAiBpC;AAED,qFAAqF;AACrF,wBAAgB,sBAAsB,CAAC,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,EAAE,OAAO,EAAE,GAAG,MAAM,CAY9F"}
|
|
@@ -1,5 +1,15 @@
|
|
|
1
1
|
export declare function stripJsonComments(content: string): string;
|
|
2
|
-
export declare function
|
|
2
|
+
export declare function isPrototypePollutionKey(key: string): boolean;
|
|
3
|
+
export interface ParsedJsonSanitizerOptions {
|
|
4
|
+
onRejectedKey?: (path: readonly (string | number)[]) => void;
|
|
5
|
+
}
|
|
6
|
+
/**
|
|
7
|
+
* Copy parsed JSON into fresh own-property-only containers while rejecting keys
|
|
8
|
+
* that can alter an object's prototype during a later merge. Rebuilding objects
|
|
9
|
+
* also removes an already-polluted prototype produced by third-party parsers.
|
|
10
|
+
*/
|
|
11
|
+
export declare function sanitizeParsedJson<T>(value: T, options?: ParsedJsonSanitizerOptions, path?: readonly (string | number)[]): T;
|
|
12
|
+
export declare function parseJsonc<T = unknown>(content: string, options?: ParsedJsonSanitizerOptions): T;
|
|
3
13
|
export declare function readJsoncFile<T = unknown>(filePath: string): T | null;
|
|
4
14
|
export declare function detectConfigFile(basePath: string): {
|
|
5
15
|
format: "json" | "jsonc" | "none";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"jsonc-parser.d.ts","sourceRoot":"","sources":["../../src/shared/jsonc-parser.ts"],"names":[],"mappings":"AAEA,wBAAgB,iBAAiB,CAAC,OAAO,EAAE,MAAM,GAAG,MAAM,CA6DzD;
|
|
1
|
+
{"version":3,"file":"jsonc-parser.d.ts","sourceRoot":"","sources":["../../src/shared/jsonc-parser.ts"],"names":[],"mappings":"AAEA,wBAAgB,iBAAiB,CAAC,OAAO,EAAE,MAAM,GAAG,MAAM,CA6DzD;AA+CD,wBAAgB,uBAAuB,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAE5D;AAED,MAAM,WAAW,0BAA0B;IACvC,aAAa,CAAC,EAAE,CAAC,IAAI,EAAE,SAAS,CAAC,MAAM,GAAG,MAAM,CAAC,EAAE,KAAK,IAAI,CAAC;CAChE;AAED;;;;GAIG;AACH,wBAAgB,kBAAkB,CAAC,CAAC,EAChC,KAAK,EAAE,CAAC,EACR,OAAO,GAAE,0BAA+B,EACxC,IAAI,GAAE,SAAS,CAAC,MAAM,GAAG,MAAM,CAAC,EAAO,GACxC,CAAC,CA4BH;AAED,wBAAgB,UAAU,CAAC,CAAC,GAAG,OAAO,EAClC,OAAO,EAAE,MAAM,EACf,OAAO,GAAE,0BAA+B,GACzC,CAAC,CAGH;AAED,wBAAgB,aAAa,CAAC,CAAC,GAAG,OAAO,EAAE,QAAQ,EAAE,MAAM,GAAG,CAAC,GAAG,IAAI,CAMrE;AAED,wBAAgB,gBAAgB,CAAC,QAAQ,EAAE,MAAM,GAAG;IAChD,MAAM,EAAE,MAAM,GAAG,OAAO,GAAG,MAAM,CAAC;IAClC,IAAI,EAAE,MAAM,CAAC;CAChB,CAaA"}
|
package/dist/shared/logger.d.ts
CHANGED
|
@@ -1,5 +1,13 @@
|
|
|
1
|
+
export interface LoggerDiagnostics {
|
|
2
|
+
swallowedWriteCount: number;
|
|
3
|
+
lastErrorMessage: string | null;
|
|
4
|
+
lastErrorTime: string | null;
|
|
5
|
+
}
|
|
1
6
|
export declare function log(message: string, data?: unknown): void;
|
|
2
7
|
export declare function sessionLog(sessionId: string, message: string, data?: unknown): void;
|
|
8
|
+
export declare function getLoggerDiagnostics(): LoggerDiagnostics;
|
|
9
|
+
/** Flush buffered log entries immediately. Primarily useful to diagnostic readers and tests. */
|
|
10
|
+
export declare function flushLogger(): void;
|
|
3
11
|
/**
|
|
4
12
|
* Resolve the current log file path. The path is harness-aware (see
|
|
5
13
|
* {@link getMagicContextLogPath}) and re-evaluated on every call, so callers
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"logger.d.ts","sourceRoot":"","sources":["../../src/shared/logger.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"logger.d.ts","sourceRoot":"","sources":["../../src/shared/logger.ts"],"names":[],"mappings":"AAWA,MAAM,WAAW,iBAAiB;IAC9B,mBAAmB,EAAE,MAAM,CAAC;IAC5B,gBAAgB,EAAE,MAAM,GAAG,IAAI,CAAC;IAChC,aAAa,EAAE,MAAM,GAAG,IAAI,CAAC;CAChC;AA6CD,wBAAgB,GAAG,CAAC,OAAO,EAAE,MAAM,EAAE,IAAI,CAAC,EAAE,OAAO,GAAG,IAAI,CAmBzD;AAED,wBAAgB,UAAU,CAAC,SAAS,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,EAAE,IAAI,CAAC,EAAE,OAAO,GAAG,IAAI,CAEnF;AAED,wBAAgB,oBAAoB,IAAI,iBAAiB,CAMxD;AAED,gGAAgG;AAChG,wBAAgB,WAAW,IAAI,IAAI,CAElC;AAED;;;;;GAKG;AACH,wBAAgB,cAAc,IAAI,MAAM,CAEvC"}
|
|
@@ -25,6 +25,7 @@
|
|
|
25
25
|
* for Pi and Pi's own path is used.
|
|
26
26
|
*/
|
|
27
27
|
import type { ContextLimitProvenance } from "./context-limit-provenance";
|
|
28
|
+
import { type WindowGeometryResult } from "./window-geometry";
|
|
28
29
|
interface OpencodeClientLike {
|
|
29
30
|
config: {
|
|
30
31
|
providers: () => Promise<{
|
|
@@ -125,6 +126,10 @@ export declare function resetAuthRewarmLatchForTest(): void;
|
|
|
125
126
|
* `ctx.model.contextWindow`), so for Pi this returns `undefined` and Pi's
|
|
126
127
|
* own resolution path is used.
|
|
127
128
|
*/
|
|
129
|
+
export declare function getSdkWindowGeometry(providerID: string, modelID: string, detectedContextLimit?: number, options?: {
|
|
130
|
+
detectedLimitProvenance?: ContextLimitProvenance;
|
|
131
|
+
harness?: "opencode" | "pi";
|
|
132
|
+
}): WindowGeometryResult | undefined;
|
|
128
133
|
export declare function getSdkContextLimit(providerID: string, modelID: string, detectedContextLimit?: number, options?: {
|
|
129
134
|
reservation?: "default" | "none";
|
|
130
135
|
detectedLimitProvenance?: ContextLimitProvenance;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"models-dev-cache.d.ts","sourceRoot":"","sources":["../../src/shared/models-dev-cache.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;AAIH,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,4BAA4B,CAAC;
|
|
1
|
+
{"version":3,"file":"models-dev-cache.d.ts","sourceRoot":"","sources":["../../src/shared/models-dev-cache.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;AAIH,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,4BAA4B,CAAC;AAMzE,OAAO,EAIH,KAAK,oBAAoB,EAC5B,MAAM,mBAAmB,CAAC;AAE3B,UAAU,kBAAkB;IACxB,MAAM,EAAE;QACJ,SAAS,EAAE,MAAM,OAAO,CAAC;YAAE,IAAI,CAAC,E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;;;;;;;;;;;;;;;GAmBG;AACH,wBAAgB,oBAAoB,CAChC,UAAU,EAAE,MAAM,EAClB,OAAO,EAAE,MAAM,EACf,oBAAoB,CAAC,EAAE,MAAM,EAC7B,OAAO,CAAC,EAAE;IACN,uBAAuB,CAAC,EAAE,sBAAsB,CAAC;IACjD,OAAO,CAAC,EAAE,UAAU,GAAG,IAAI,CAAC;CAC/B,GACF,oBAAoB,GAAG,SAAS,CAkClC;AAED,wBAAgB,kBAAkB,CAC9B,UAAU,EAAE,MAAM,EAClB,OAAO,EAAE,MAAM,EACf,oBAAoB,CAAC,EAAE,MAAM,EAC7B,OAAO,CAAC,EAAE;IACN,WAAW,CAAC,EAAE,SAAS,GAAG,MAAM,CAAC;IACjC,uBAAuB,CAAC,EAAE,sBAAsB,CAAC;CACpD,GACF,MAAM,GAAG,SAAS,CAkCpB;AAED;;;GAGG;AACH,qFAAqF;AACrF,wBAAgB,mBAAmB,CAAC,UAAU,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,GAAG,OAAO,CAShF;AAED,wBAAgB,gBAAgB,CAAC,UAAU,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CAWxF;AA2BD,gFAAgF;AAChF,wBAAgB,mBAAmB,IAAI,IAAI,CAI1C;AAED,oDAAoD;AACpD,wBAAgB,sBAAsB,IAAI;IACtC,SAAS,EAAE,OAAO,CAAC;IACnB,QAAQ,EAAE,MAAM,CAAC;IACjB,QAAQ,EAAE,MAAM,CAAC;CACpB,CAMA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"prompt-surface-runtime.d.ts","sourceRoot":"","sources":["../../src/shared/prompt-surface-runtime.ts"],"names":[],"mappings":"AAGA,OAAO,EACH,KAAK,aAAa,EAGrB,MAAM,mCAAmC,CAAC;
|
|
1
|
+
{"version":3,"file":"prompt-surface-runtime.d.ts","sourceRoot":"","sources":["../../src/shared/prompt-surface-runtime.ts"],"names":[],"mappings":"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AAgB,0BAA0B,CACtC,OAAO,EAAE,iCAAiC,GAC3C,oBAAoB,CAkGtB;AAQD,uFAAuF;AACvF,wBAAgB,qCAAqC,CAAC,OAAO,EAAE,oBAAoB,GAAG;IAClF,OAAO,EAAE,CACL,SAAS,EAAE,MAAM,EACjB,MAAM,EAAE,mBAAmB,GAAG,SAAS,EACvC,QAAQ,EAAE,MAAM,GAAG,SAAS,KAC3B,8BAA8B,CAAC;IACpC,KAAK,EAAE,CAAC,SAAS,EAAE,MAAM,KAAK,IAAI,CAAC;CACtC,CAmBA"}
|
|
@@ -11,10 +11,12 @@ export interface PromptSurfaceConfig {
|
|
|
11
11
|
guidance_override_path?: string;
|
|
12
12
|
tool_descriptions?: Readonly<Record<string, string>>;
|
|
13
13
|
}
|
|
14
|
-
|
|
15
|
-
|
|
14
|
+
/** Stable wire identity for the config fields that can alter a served prompt surface. */
|
|
15
|
+
export declare function promptSurfaceConfigIdentity(config: PromptSurfaceConfig | undefined): string;
|
|
16
|
+
export type PromptSurfaceResolutionSource = "exact" | "bare" | "wildcard" | "default";
|
|
17
|
+
/** Validate bare model, provider/model, and provider/* routing keys. */
|
|
16
18
|
export declare function isValidPromptSurfaceModelKey(key: string): boolean;
|
|
17
|
-
export type ModelKeyLookupSource = PromptSurfaceResolutionSource
|
|
19
|
+
export type ModelKeyLookupSource = Exclude<PromptSurfaceResolutionSource, "default">;
|
|
18
20
|
export interface ModelKeyCandidate {
|
|
19
21
|
key: string;
|
|
20
22
|
source: ModelKeyLookupSource;
|
|
@@ -24,6 +26,8 @@ export interface ModelKeyCandidate {
|
|
|
24
26
|
* provider/model boundary is the first slash; the rest of the string remains
|
|
25
27
|
* the model ID, including additional slashes. Candidates are case-sensitive.
|
|
26
28
|
*
|
|
29
|
+
* Known harness provider aliases are checked canonical-first at each specificity,
|
|
30
|
+
* so one shared config works on every harness and canonical wins on collisions.
|
|
27
31
|
* Provider wildcards are checked after progressively less-specific model keys,
|
|
28
32
|
* but before the caller's default. That keeps an exact or base-model override
|
|
29
33
|
* authoritative while still allowing `provider/*` to cover otherwise-unlisted
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"prompt-surface.d.ts","sourceRoot":"","sources":["../../src/shared/prompt-surface.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"prompt-surface.d.ts","sourceRoot":"","sources":["../../src/shared/prompt-surface.ts"],"names":[],"mappings":"AAEA,4CAA4C;AAC5C,MAAM,MAAM,mBAAmB,GAAG,MAAM,GAAG,OAAO,CAAC;AAEnD;;;;GAIG;AACH,MAAM,WAAW,mBAAmB;IAChC,OAAO,CAAC,EAAE,mBAAmB,CAAC;IAC9B,MAAM,CAAC,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,mBAAmB,CAAC,CAAC,CAAC;IACvD,sBAAsB,CAAC,EAAE,MAAM,CAAC;IAChC,iBAAiB,CAAC,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC,CAAC;CACxD;AAED,yFAAyF;AACzF,wBAAgB,2BAA2B,CAAC,MAAM,EAAE,mBAAmB,GAAG,SAAS,GAAG,MAAM,CAW3F;AAED,MAAM,MAAM,6BAA6B,GAAG,OAAO,GAAG,MAAM,GAAG,UAAU,GAAG,SAAS,CAAC;AAEtF,wEAAwE;AACxE,wBAAgB,4BAA4B,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAyBjE;AAED,MAAM,MAAM,oBAAoB,GAAG,OAAO,CAAC,6BAA6B,EAAE,SAAS,CAAC,CAAC;AAErF,MAAM,WAAW,iBAAiB;IAC9B,GAAG,EAAE,MAAM,CAAC;IACZ,MAAM,EAAE,oBAAoB,CAAC;CAChC;AAED;;;;;;;;;;;GAWG;AACH,wBAAgB,mBAAmB,CAAC,QAAQ,EAAE,MAAM,GAAG,SAAS,GAAG,iBAAiB,EAAE,CAoCrF;AAED,0EAA0E;AAC1E,wBAAgB,uBAAuB,CAAC,CAAC,EACrC,MAAM,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;yEAGqE;IAC/D,eAAe,IAAI,OAAO,CAAC;QAC7B,IAAI,EAAE,MAAM,CAAC;QACb,KAAK,EAAE,MAAM,GAAG,IAAI,CAAC;QACrB,UAAU,EAAE,MAAM,GAAG,IAAI,CAAC;KAC7B,GAAG,IAAI,CAAC;YAYK,WAAW;IAwBzB,OAAO,CAAC,aAAa;
|
|
1
|
+
{"version":3,"file":"rpc-client.d.ts","sourceRoot":"","sources":["../../src/shared/rpc-client.ts"],"names":[],"mappings":"AAiBA,qBAAa,qBAAqB;IAC9B,OAAO,CAAC,IAAI,CAAuB;IACnC,OAAO,CAAC,KAAK,CAAuB;IACpC,OAAO,CAAC,UAAU,CAAuB;IACzC,OAAO,CAAC,OAAO,CAAS;IACxB,OAAO,CAAC,kBAAkB,CAAS;IACnC,OAAO,CAAC,aAAa,CAAS;gBAElB,UAAU,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM;IAKjD,iFAAiF;IAC3E,IAAI,CAAC,CAAC,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAClC,MAAM,EAAE,MAAM,EACd,MAAM,GAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAM,GACrC,OAAO,CAAC,CAAC,CAAC;IAwDb,4CAA4C;IACtC,WAAW,IAAI,OAAO,CAAC,OAAO,CAAC;IASrC;;;yEAGqE;IAC/D,eAAe,IAAI,OAAO,CAAC;QAC7B,IAAI,EAAE,MAAM,CAAC;QACb,KAAK,EAAE,MAAM,GAAG,IAAI,CAAC;QACrB,UAAU,EAAE,MAAM,GAAG,IAAI,CAAC;KAC7B,GAAG,IAAI,CAAC;YAYK,WAAW;IAwBzB,OAAO,CAAC,aAAa;YAiCP,WAAW;YAoBX,gBAAgB;IAU9B,KAAK,IAAI,IAAI;CAMhB"}
|
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
* Both sides import these — no SQLite dependency.
|
|
4
4
|
*/
|
|
5
5
|
import type { DreamTaskBacklogMap, DreamTaskProgress } from "../features/magic-context/dreamer/task-registry";
|
|
6
|
+
import type { LoggerDiagnostics } from "./logger";
|
|
6
7
|
export interface SidebarSnapshot {
|
|
7
8
|
sessionId: string;
|
|
8
9
|
usagePercentage: number;
|
|
@@ -132,6 +133,17 @@ export interface StatusDetail extends SidebarSnapshot {
|
|
|
132
133
|
operation: string;
|
|
133
134
|
}>;
|
|
134
135
|
contextLimit: number;
|
|
136
|
+
windowGeometry?: {
|
|
137
|
+
usableSoft: number;
|
|
138
|
+
usableHard: number;
|
|
139
|
+
geometry: "shared_upfront" | "shared_truncating" | "separate";
|
|
140
|
+
derivation: {
|
|
141
|
+
window: number;
|
|
142
|
+
reserve: number;
|
|
143
|
+
reserveSource: "output_catalog" | "output_config" | "wall_margin" | "none";
|
|
144
|
+
geometry: "shared_upfront" | "shared_truncating" | "separate";
|
|
145
|
+
};
|
|
146
|
+
};
|
|
135
147
|
/**
|
|
136
148
|
* Parsed cache TTL in ms. -1 = never expires (cacheTtl "never"; Infinity
|
|
137
149
|
* cannot ride JSON-RPC and 0 would be indistinguishable from unset). The
|
|
@@ -170,6 +182,8 @@ export interface StatusDetail extends SidebarSnapshot {
|
|
|
170
182
|
present: boolean;
|
|
171
183
|
ageMs: number | null;
|
|
172
184
|
};
|
|
185
|
+
/** Runtime logger write failures observed by this plugin process. */
|
|
186
|
+
loggerDiagnostics: LoggerDiagnostics;
|
|
173
187
|
/**
|
|
174
188
|
* Stable storage-version probe: "which schema is the DB at, which fence does
|
|
175
189
|
* this binary carry". Field names are deliberately snake_case, mirroring the
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"rpc-types.d.ts","sourceRoot":"","sources":["../../src/shared/rpc-types.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,KAAK,EACR,mBAAmB,EACnB,iBAAiB,EACpB,MAAM,iDAAiD,CAAC;
|
|
1
|
+
{"version":3,"file":"rpc-types.d.ts","sourceRoot":"","sources":["../../src/shared/rpc-types.ts"],"names":[],"mappings":"A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ACH,gBAAgB,EAAE;QACd;;;;;WAKG;QACH,yBAAyB,EAAE,MAAM,GAAG,IAAI,CAAC;QACzC,oEAAoE;QACpE,wBAAwB,EAAE,MAAM,CAAC;KACpC,CAAC;CACL;AAED,uFAAuF;AACvF,MAAM,WAAW,WAAW;IACxB,OAAO,EAAE,OAAO,CAAC;IACjB,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,MAAM,CAAC;IACjB,OAAO,EAAE;QAAE,QAAQ,EAAE,MAAM,CAAC;QAAC,KAAK,EAAE,MAAM,CAAA;KAAE,CAAC;IAC7C,QAAQ,EAAE;QAAE,QAAQ,EAAE,MAAM,CAAC;QAAC,KAAK,EAAE,MAAM,CAAA;KAAE,CAAC;IAC9C,OAAO,EAAE;QAAE,QAAQ,EAAE,MAAM,CAAC;QAAC,KAAK,EAAE,MAAM,CAAC;QAAC,UAAU,EAAE,OAAO,CAAA;KAAE,CAAC;IAClE,UAAU,EAAE,MAAM,CAAC;CACtB;AAED,MAAM,WAAW,sBAAsB;IACnC,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IACjC,SAAS,CAAC,EAAE,MAAM,CAAC;CACtB"}
|
|
@@ -27,23 +27,49 @@ export declare function rpcPortDir(storageDir: string, directory: string): strin
|
|
|
27
27
|
export declare function rpcPortFilePath(storageDir: string, directory: string, pid?: number, instanceId?: string): string;
|
|
28
28
|
/** Legacy single-port file used by v0.18.0 and earlier. */
|
|
29
29
|
export declare function legacyRpcPortFilePath(storageDir: string, directory: string): string;
|
|
30
|
-
export
|
|
30
|
+
export type PidLiveness = "alive" | "dead" | "inconclusive";
|
|
31
|
+
/**
|
|
32
|
+
* Check whether the platform confirms a PID is live without treating a denied
|
|
33
|
+
* probe as confirmation. Windows uses tasklist because MSYS2/Cygwin ps does not
|
|
34
|
+
* support the options used by the Unix probe. Sandboxes commonly reject
|
|
35
|
+
* `kill(pid, 0)` with EPERM even when the PID does not exist outside their view.
|
|
36
|
+
*/
|
|
37
|
+
export declare function isPidAlive(pid: number): PidLiveness;
|
|
31
38
|
/**
|
|
32
39
|
* Verify that a live PID still belongs to the process that wrote a port record.
|
|
33
40
|
*
|
|
34
41
|
* A PID can be reused after its original process exits. On Linux, procfs gives
|
|
35
|
-
* us a process start time without spawning a helper;
|
|
36
|
-
*
|
|
37
|
-
*
|
|
38
|
-
*
|
|
42
|
+
* us a process start time without spawning a helper; macOS and other Unix-like
|
|
43
|
+
* platforms use `ps`, while Windows uses `tasklist`, only on this cold
|
|
44
|
+
* database-open guard path. Legacy records without a start time use a weaker
|
|
45
|
+
* command-name check. A failed filesystem or process probe is inconclusive,
|
|
46
|
+
* not proof that this port record still belongs to OpenCode.
|
|
39
47
|
*/
|
|
40
|
-
export
|
|
48
|
+
export type PidIdentityPlausibility = "plausible" | "implausible" | "inconclusive";
|
|
49
|
+
export declare function isPidIdentityPlausible(record: RpcPortFileRecord): PidIdentityPlausibility;
|
|
41
50
|
export declare function __setRpcIdentityTestHooks(hooks: {
|
|
42
51
|
readFileSync?: typeof readFileSync;
|
|
43
52
|
execFileSync?: typeof execFileSync;
|
|
53
|
+
processKill?: typeof process.kill;
|
|
54
|
+
processListExecFileSync?: typeof execFileSync;
|
|
44
55
|
platform?: NodeJS.Platform;
|
|
45
56
|
nowMs?: () => number;
|
|
46
57
|
}): void;
|
|
47
58
|
export declare function __resetRpcIdentityTestHooks(): void;
|
|
59
|
+
/** Result of checking whether Pi/OMP processes may currently hold the shared database. */
|
|
60
|
+
export interface PiProcessDiscovery {
|
|
61
|
+
state: "known" | "unreadable";
|
|
62
|
+
processIds: number[];
|
|
63
|
+
error?: string;
|
|
64
|
+
}
|
|
65
|
+
/**
|
|
66
|
+
* Inspect Pi/OMP processes without converting a failed process-list probe into
|
|
67
|
+
* false evidence that no harness is running. Callers choose their own policy
|
|
68
|
+
* for the unreadable state: destructive maintenance can fail closed, while a
|
|
69
|
+
* migration guard can proceed after reporting that no live Pi process was confirmed.
|
|
70
|
+
*/
|
|
71
|
+
export declare function inspectLivePiProcesses(): PiProcessDiscovery;
|
|
72
|
+
/** Enumerate live Pi/OMP harness processes before deciding whether migration can proceed. */
|
|
73
|
+
export declare function discoverLivePiProcessIds(): number[];
|
|
48
74
|
export declare function parseRpcPortFile(content: string, fallbackPid?: number): RpcPortFileRecord | null;
|
|
49
75
|
//# sourceMappingURL=rpc-utils.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"rpc-utils.d.ts","sourceRoot":"","sources":["../../src/shared/rpc-utils.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAC;AAElD,OAAO,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AAGvC,MAAM,WAAW,iBAAiB;IAC9B,IAAI,EAAE,MAAM,CAAC;IACb,GAAG,EAAE,MAAM,CAAC;IACZ,UAAU,EAAE,MAAM,CAAC;IACnB;;;;;;;OAOG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,wFAAwF;IACxF,WAAW,CAAC,EAAE,MAAM,CAAC;CACxB;AAED;;;GAGG;AACH,wBAAgB,WAAW,CAAC,SAAS,EAAE,MAAM,GAAG,MAAM,CAGrD;AAED,0EAA0E;AAC1E,wBAAgB,UAAU,CAAC,UAAU,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,GAAG,MAAM,CAExE;AAED,sCAAsC;AACtC,wBAAgB,eAAe,CAC3B,UAAU,EAAE,MAAM,EAClB,SAAS,EAAE,MAAM,EACjB,GAAG,SAAc,EACjB,UAAU,CAAC,EAAE,MAAM,GACpB,MAAM,CAGR;AAED,2DAA2D;AAC3D,wBAAgB,qBAAqB,CAAC,UAAU,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,GAAG,MAAM,CAEnF;AAED,wBAAgB,UAAU,CAAC,GAAG,EAAE,MAAM,GAAG,
|
|
1
|
+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AAY,CAAC,EAAE,OAAO,YAAY,CAAC;IACnC,WAAW,CAAC,EAAE,OAAO,OAAO,CAAC,IAAI,CAAC;IAClC,uBAAuB,CAAC,EAAE,OAAO,YAAY,CAAC;IAC9C,QAAQ,CAAC,EAAE,MAAM,CAAC,QAAQ,CAAC;IAC3B,KAAK,CAAC,EAAE,MAAM,MAAM,CAAC;CACxB,GAAG,IAAI,CAQP;AAED,wBAAgB,2BAA2B,IAAI,IAAI,CAQlD;AAmBD,0FAA0F;AAC1F,MAAM,WAAW,kBAAkB;IAC/B,KAAK,EAAE,OAAO,GAAG,YAAY,CAAC;IAC9B,UAAU,EAAE,MAAM,EAAE,CAAC;IACrB,KAAK,CAAC,EAAE,MAAM,CAAC;CAClB;AAED;;;;;GAKG;AACH,wBAAgB,sBAAsB,IAAI,kBAAkB,CAgD3D;AAED,6FAA6F;AAC7F,wBAAgB,wBAAwB,IAAI,MAAM,EAAE,CAEnD;AAED,wBAAgB,gBAAgB,CAAC,OAAO,EAAE,MAAM,EAAE,WAAW,SAAI,GAAG,iBAAiB,GAAG,IAAI,CA2B3F"}
|
|
@@ -27,6 +27,15 @@ export declare function resolveMagicContextPrefs(root: Record<string, unknown>):
|
|
|
27
27
|
export declare function computeEffectiveOrder(root: Record<string, unknown>, pluginKey: string, defaultOrder: number): number;
|
|
28
28
|
type JsonValue = string | number | boolean | null;
|
|
29
29
|
export declare function queueTuiPreferenceUpdate(pluginKey: string, path: string[], value: JsonValue): Promise<void>;
|
|
30
|
+
type WatchReadFile = (file: string) => Promise<string>;
|
|
31
|
+
type WatchDirectory = (directory: string, listener: (event: string, filename: string | null) => void) => {
|
|
32
|
+
close(): void;
|
|
33
|
+
};
|
|
34
|
+
export declare function __setTuiPreferencesWatchTestHooks(hooks: {
|
|
35
|
+
readFile?: WatchReadFile;
|
|
36
|
+
watch?: WatchDirectory;
|
|
37
|
+
}): void;
|
|
38
|
+
export declare function __resetTuiPreferencesWatchTestHooks(): void;
|
|
30
39
|
export declare function watchTuiPreferences(onChange: () => void): () => void;
|
|
31
40
|
export {};
|
|
32
41
|
//# sourceMappingURL=tui-preferences.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tui-preferences.d.ts","sourceRoot":"","sources":["../../src/shared/tui-preferences.ts"],"names":[],"mappings":"AAqBA,eAAO,MAAM,kBAAkB,kCAAkC,CAAC;AAGlE,wBAAgB,qBAAqB,IAAI,MAAM,CAO9C;AAQD,wBAAsB,sBAAsB,IAAI,OAAO,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC,CAS/E;AAMD,wBAAgB,0BAA0B,IAAI,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CASpE;AAED,eAAO,MAAM,UAAU,kBAAkB,CAAC;AAC1C,eAAO,MAAM,kBAAkB,MAAM,CAAC;AAEtC,MAAM,WAAW,oBAAoB;IACjC,UAAU,EAAE,OAAO,CAAC;IACpB,KAAK,EAAE,MAAM,CAAC;IACd,cAAc,EAAE,OAAO,CAAC;IACxB,iBAAiB,EAAE,OAAO,CAAC;IAE3B,SAAS,EAAE,OAAO,GAAG,IAAI,CAAC;IAC1B,MAAM,EAAE;QACJ,KAAK,EAAE,MAAM,CAAC;KACjB,CAAC;IACF,QAAQ,EAAE;QACN,SAAS,EAAE,OAAO,CAAC;QACnB,MAAM,EAAE,OAAO,CAAC;QAChB,MAAM,EAAE,OAAO,CAAC;QAChB,OAAO,EAAE,OAAO,CAAC;QACjB,KAAK,EAAE,OAAO,CAAC;KAClB,CAAC;CACL;AAED,MAAM,MAAM,WAAW,GAAG,oBAAoB,CAAC,UAAU,CAAC,CAAC;AAE3D,eAAO,MAAM,aAAa,EAAE,oBAc3B,CAAC;AAmBF,wBAAgB,wBAAwB,CAAC,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,oBAAoB,CAyB5F;AAgBD,wBAAgB,qBAAqB,CACjC,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,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