@cortexkit/opencode-magic-context 0.49.49 → 0.49.51

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.
Files changed (138) hide show
  1. package/dist/auto-search-worker.js +3 -3
  2. package/dist/chunk-embedding-write-worker.js +1 -1
  3. package/dist/config/project-security.d.ts.map +1 -1
  4. package/dist/config/schema/magic-context.d.ts +10 -0
  5. package/dist/config/schema/magic-context.d.ts.map +1 -1
  6. package/dist/{context-bwf57gnh.js → context-r77d4fdy.js} +37 -23
  7. package/dist/{embedding-backfill-d9x9q2e2.js → embedding-backfill-3wdjzrvs.js} +4 -4
  8. package/dist/embedding-worker.js +2 -2
  9. package/dist/features/magic-context/dreamer/provider-output-failure.d.ts +5 -7
  10. package/dist/features/magic-context/dreamer/provider-output-failure.d.ts.map +1 -1
  11. package/dist/features/magic-context/dreamer/task-scheduler.d.ts.map +1 -1
  12. package/dist/features/magic-context/dreamer/verify.d.ts.map +1 -1
  13. package/dist/features/magic-context/memory/embedding-identity.d.ts.map +1 -1
  14. package/dist/features/magic-context/memory/embedding-openai.d.ts +4 -0
  15. package/dist/features/magic-context/memory/embedding-openai.d.ts.map +1 -1
  16. package/dist/features/magic-context/memory/embedding-probe.d.ts +10 -0
  17. package/dist/features/magic-context/memory/embedding-probe.d.ts.map +1 -1
  18. package/dist/features/magic-context/memory/embedding.d.ts.map +1 -1
  19. package/dist/features/magic-context/project-embedding-registry.d.ts.map +1 -1
  20. package/dist/features/magic-context/search-rerank.d.ts +2 -2
  21. package/dist/features/magic-context/search-rerank.d.ts.map +1 -1
  22. package/dist/features/magic-context/storage-db.d.ts +14 -0
  23. package/dist/features/magic-context/storage-db.d.ts.map +1 -1
  24. package/dist/features/magic-context/transform-decision-log.d.ts +2 -0
  25. package/dist/features/magic-context/transform-decision-log.d.ts.map +1 -1
  26. package/dist/hooks/magic-context/compartment-runner-historian.d.ts.map +1 -1
  27. package/dist/{index-qb75tv9j.js → index-07rp6xcn.js} +1 -1
  28. package/dist/{index-5bksfv58.js → index-30sf7e5k.js} +27 -9
  29. package/dist/{index-7n2n3v92.js → index-5dptmnvd.js} +2 -2
  30. package/dist/{index-arxg51bj.js → index-8d7gkgjs.js} +4 -3
  31. package/dist/{index-wdmfnmv1.js → index-97bjd14c.js} +4 -4
  32. package/dist/{index-0mdh2cke.js → index-bamnjp2t.js} +20 -4
  33. package/dist/{index-5850zme4.js → index-ct3ettqt.js} +3 -3
  34. package/dist/{index-3n9ee4jh.js → index-cwj6qhmf.js} +1 -1
  35. package/dist/{index-j7verehm.js → index-gv7dwx5b.js} +36 -27
  36. package/dist/{index-va9x7y48.js → index-h8g08nxs.js} +135 -81
  37. package/dist/{index-jedbxq6n.js → index-hkveze74.js} +1 -1
  38. package/dist/{index-4dpvnp8k.js → index-jjy5a5w0.js} +3 -0
  39. package/dist/{index-h3p558ec.js → index-mjh63zvw.js} +1 -1
  40. package/dist/{index-vyv4tame.js → index-n0twfvah.js} +53 -2
  41. package/dist/{index-tj5gz396.js → index-rbs27k1d.js} +4 -2
  42. package/dist/{index-cs7pmwt6.js → index-s131svmx.js} +1 -1
  43. package/dist/{index-vbmh68fb.js → index-v4a1pnny.js} +4 -4
  44. package/dist/{index-k47v0tmk.js → index-wr2t8zb0.js} +8 -8
  45. package/dist/{index-agfh931z.js → index-z4832qfe.js} +4 -2
  46. package/dist/index.js +22 -22
  47. package/dist/{message-index-bounded-2shxmht9.js → message-index-bounded-k0ebpy3y.js} +3 -3
  48. package/dist/migration-worker.js +1 -1
  49. package/dist/plugin/embedding-bootstrap-helpers.d.ts.map +1 -1
  50. package/dist/plugin/embedding-routing.d.ts.map +1 -1
  51. package/dist/plugin/hooks/create-session-hooks.d.ts.map +1 -1
  52. package/dist/plugin/rpc-handlers.d.ts.map +1 -1
  53. package/dist/{project-embedding-registry-nzgkq61z.js → project-embedding-registry-5dwh5zfn.js} +3 -3
  54. package/dist/raw-ordinal-warmup-worker.js +3 -3
  55. package/dist/{read-session-chunk-c15y8yg6.js → read-session-chunk-6712p893.js} +2 -2
  56. package/dist/{recomp-orchestrator-gfxqqpph.js → recomp-orchestrator-8ebydg5j.js} +11 -11
  57. package/dist/{render-5tx8r0me.js → render-dtc4qkq4.js} +6 -6
  58. package/dist/{search-k2n5bvsk.js → search-75bj2430.js} +9 -9
  59. package/dist/{search-archive-6tgh88xp.js → search-archive-f6hjbnsa.js} +4 -4
  60. package/dist/shared/hidden-model-cooldown.d.ts +23 -0
  61. package/dist/shared/hidden-model-cooldown.d.ts.map +1 -0
  62. package/dist/shared/model-suggestion-retry.d.ts +0 -2
  63. package/dist/shared/model-suggestion-retry.d.ts.map +1 -1
  64. package/dist/shared/provider-response-completion.d.ts +10 -0
  65. package/dist/shared/provider-response-completion.d.ts.map +1 -1
  66. package/dist/shared/rpc-types.d.ts +1 -0
  67. package/dist/shared/rpc-types.d.ts.map +1 -1
  68. package/dist/shared/status-summary.d.ts +1 -0
  69. package/dist/shared/status-summary.d.ts.map +1 -1
  70. package/dist/shared/status-view-check.d.ts.map +1 -1
  71. package/dist/shared/status-view.d.ts +1 -0
  72. package/dist/shared/status-view.d.ts.map +1 -1
  73. package/dist/shared/test-db.d.ts +13 -0
  74. package/dist/shared/test-db.d.ts.map +1 -0
  75. package/dist/test-preload.d.ts +2 -0
  76. package/dist/test-preload.d.ts.map +1 -0
  77. package/dist/{transform-postprocess-phase-36dw4kxb.js → transform-postprocess-phase-1bg25094.js} +12 -12
  78. package/dist/v2/auto-search-worker.js +3 -3
  79. package/dist/v2/chunk-embedding-write-worker.js +1 -1
  80. package/dist/v2/{context-td3jyze3.js → context-cpbhpxks.js} +47 -30
  81. package/dist/v2/{embedding-backfill-5dqdm3ff.js → embedding-backfill-x1zpc04f.js} +4 -4
  82. package/dist/v2/embedding-worker.js +2 -2
  83. package/dist/v2/hidden-completion.d.ts.map +1 -1
  84. package/dist/v2/hooks/context.d.ts.map +1 -1
  85. package/dist/v2/hooks/usage-persist.d.ts +1 -1
  86. package/dist/v2/hooks/usage-persist.d.ts.map +1 -1
  87. package/dist/v2/hooks/usage-reading.d.ts +3 -0
  88. package/dist/v2/hooks/usage-reading.d.ts.map +1 -1
  89. package/dist/v2/{message-index-bounded-j1jskn8a.js → message-index-bounded-a36rw93p.js} +3 -3
  90. package/dist/v2/migration-worker.js +1 -1
  91. package/dist/v2/{project-embedding-registry-swm4mw1t.js → project-embedding-registry-v2fxrs8b.js} +3 -3
  92. package/dist/v2/raw-ordinal-warmup-worker.js +3 -3
  93. package/dist/v2/{read-session-chunk-carzw3m8.js → read-session-chunk-hzhxvhyv.js} +2 -2
  94. package/dist/v2/{recomp-orchestrator-e7vrs932.js → recomp-orchestrator-yzr49pd0.js} +11 -11
  95. package/dist/v2/{render-e9mh9y1d.js → render-rhaevxv1.js} +6 -6
  96. package/dist/v2/{search-sr23g316.js → search-3yrdpr38.js} +8 -8
  97. package/dist/v2/{search-archive-j3kb9ggd.js → search-archive-9924fyk8.js} +4 -4
  98. package/dist/v2/{server-z7n3n1ra.js → server-016a1whm.js} +134 -81
  99. package/dist/v2/{server-4y2pcckw.js → server-0k586y7d.js} +3 -3
  100. package/dist/v2/{server-p9s40wfa.js → server-0ms13pc8.js} +3 -0
  101. package/dist/v2/{server-c5kq8d5n.js → server-16kfxcxj.js} +1 -1
  102. package/dist/v2/{server-2qxt6qv0.js → server-3bfc26r7.js} +1 -1
  103. package/dist/v2/{server-fw49gc57.js → server-4h4acntc.js} +20 -4
  104. package/dist/v2/{server-yxe0gh3v.js → server-88yvx6r9.js} +53 -2
  105. package/dist/v2/{server-1ppcpsdw.js → server-brsx45r6.js} +4 -2
  106. package/dist/v2/{server-e20kfytm.js → server-eznem83k.js} +26 -8
  107. package/dist/v2/{server-y7q8cds3.js → server-jxrqsn84.js} +1 -1
  108. package/dist/v2/{server-t5cgb15n.js → server-q93jdtz8.js} +2 -2
  109. package/dist/v2/{server-ttrrh27h.js → server-sb55ddgn.js} +3 -2
  110. package/dist/v2/{server-e14c3hd6.js → server-scp3y4dh.js} +4 -2
  111. package/dist/v2/{server-0qxb8r8q.js → server-sgn61hht.js} +1 -1
  112. package/dist/v2/{server-r7y35vm9.js → server-vjadwb3j.js} +4 -3
  113. package/dist/v2/server.js +4 -4
  114. package/dist/v2/{v2-archive-reader-jnzjavzr.js → v2-archive-reader-5ggewg8q.js} +1 -1
  115. package/dist/v2/{wrapup-orchestrator-jw4nre49.js → wrapup-orchestrator-36c5wyvq.js} +11 -11
  116. package/dist/{v2-archive-reader-b76tfeje.js → v2-archive-reader-gx5ke1d7.js} +1 -1
  117. package/dist/{wrapup-orchestrator-fhfazjkq.js → wrapup-orchestrator-ya31knav.js} +12 -12
  118. package/package.json +1 -1
  119. package/src/config/index.test.ts +20 -0
  120. package/src/config/project-security.test.ts +5 -1
  121. package/src/config/project-security.ts +4 -0
  122. package/src/config/schema/magic-context.test.ts +43 -0
  123. package/src/config/schema/magic-context.ts +19 -0
  124. package/src/shared/hidden-model-cooldown.test.ts +117 -0
  125. package/src/shared/hidden-model-cooldown.ts +123 -0
  126. package/src/shared/model-suggestion-retry.test.ts +53 -76
  127. package/src/shared/model-suggestion-retry.ts +38 -53
  128. package/src/shared/provider-response-completion.test.ts +49 -0
  129. package/src/shared/provider-response-completion.ts +64 -0
  130. package/src/shared/rpc-types.ts +1 -0
  131. package/src/shared/startup-maintenance-policy.test.ts +115 -0
  132. package/src/shared/status-detail-text.test.ts +7 -0
  133. package/src/shared/status-summary.ts +3 -0
  134. package/src/shared/status-view-check.ts +1 -0
  135. package/src/shared/status-view.test.ts +15 -0
  136. package/src/shared/status-view.ts +11 -1
  137. package/src/shared/test-db.test.ts +84 -0
  138. package/src/shared/test-db.ts +36 -0
@@ -139,9 +139,9 @@ async function serveV2ArchiveReads2(port, openConnections) {
139
139
  import("./sqlite-zdgm52sv.js"),
140
140
  import("./store-reader-yaxtdy6f.js"),
141
141
  import("./store-skkhh3rd.js"),
142
- import("./read-session-chunk-carzw3m8.js"),
143
- import("./render-e9mh9y1d.js"),
144
- import("./search-archive-j3kb9ggd.js"),
142
+ import("./read-session-chunk-hzhxvhyv.js"),
143
+ import("./render-rhaevxv1.js"),
144
+ import("./search-archive-9924fyk8.js"),
145
145
  import("./expand-attachments-h33jbgyz.js")
146
146
  ]);
147
147
  const pool = new V2StoreReaderPool;
@@ -6880,6 +6880,7 @@ var BaseEmbeddingConfigSchema = object({
6880
6880
  query_instruction: union([string(), literal(false)]).optional().describe("OpenAI-compatible query prefix override. A string is prepended verbatim to search queries; false disables the built-in model-family instruction. Qwen3-Embedding, gte-Qwen instruct, e5 instruct, and Nomic families have built-in recipes. Query-only changes do not re-embed stored content. User-level only; project values are ignored."),
6881
6881
  document_prefix: string().optional().describe("OpenAI-compatible stored-document prefix override, prepended verbatim. Defaults to the model-family recipe (empty for Qwen3/gte/e5 instruct; 'search_document: ' for Nomic). Changing it changes stored vectors and triggers re-embedding. User-level only; project values are ignored."),
6882
6882
  truncate: string().optional().describe("Optional truncate mode sent in the embedding request body (e.g. NVIDIA NIM accepts 'NONE' | 'START' | 'END'). Omitted from the request when unset."),
6883
+ dimensions: number().int().min(1).max(8192).optional().describe("Optional output width for Matryoshka embedding models (e.g. Qwen3-Embedding-8B accepts 768 | 1024 | 2048 | 4096; OpenAI text-embedding-3-* accept smaller widths than native). Sent as the OpenAI-compatible `dimensions` request field. Omitted from the request when unset, so the endpoint default applies. Changing it changes the produced vectors and folds into the embedding model identity, so switching widths re-embeds rather than mixing vector spaces. Not supported for the local provider, and ignored from project config like the other embedding fields (a repository cannot choose how private text is embedded)."),
6883
6884
  max_input_tokens: number().int().positive().optional().describe("Optional maximum input tokens for chunk embeddings. Defaults conservatively to 512 when omitted."),
6884
6885
  local_runtime: _enum(["auto", "native", "wasm"]).default("auto").describe("Local provider only: ONNX runtime selection. 'auto' uses native under Node and uses WASM under Bun versions before 1.4.0, where Bun's NAPI teardown race can panic on quit; native is restored automatically on Bun 1.4.0+. Inference runs in a dedicated worker after disabling POSIX telemetry in the native process environment. Compiled Bun hosts and hosts without a verified in-process opt-out use a subprocess instead. Windows native ONNX emits OS-controlled ETW diagnostics, not direct uploads. On Bun before 1.4.0, even explicit 'native' uses WASM because native worker teardown can crash the process. Set 'wasm' to avoid loading the native addon on newer hosts too."),
6885
6886
  local_dtype: _enum([
@@ -6928,6 +6929,7 @@ var EmbeddingConfigSchema = BaseEmbeddingConfigSchema.transform((data) => {
6928
6929
  ...model ? { model } : {},
6929
6930
  ...endpoint ? { endpoint } : {},
6930
6931
  ...apiKey ? { api_key: apiKey } : {},
6932
+ ...data.dimensions ? { dimensions: data.dimensions } : {},
6931
6933
  ...inputType ? { input_type: inputType } : {},
6932
6934
  ...queryInputType ? { query_input_type: queryInputType } : {},
6933
6935
  ...data.query_instruction !== undefined ? { query_instruction: data.query_instruction } : {},
@@ -6954,6 +6956,7 @@ var EmbeddingConfigSchema = BaseEmbeddingConfigSchema.transform((data) => {
6954
6956
  provider: "openai-compatible",
6955
6957
  model: data.model?.trim() ?? "",
6956
6958
  endpoint: data.endpoint?.trim() ?? "",
6959
+ ...data.dimensions ? { dimensions: data.dimensions } : {},
6957
6960
  ...apiKey ? { api_key: apiKey } : {},
6958
6961
  ...inputType ? { input_type: inputType } : {},
6959
6962
  ...queryInputType ? { query_input_type: queryInputType } : {},
@@ -9,7 +9,7 @@ import {
9
9
  } from "./server-pavzsdc6.js";
10
10
  import {
11
11
  cleanUserText2
12
- } from "./server-2qxt6qv0.js";
12
+ } from "./server-3bfc26r7.js";
13
13
  import {
14
14
  recordMessageFtsRowid2,
15
15
  recordIndexedMessageTime2,
@@ -53,7 +53,7 @@ import {
53
53
  renderToolTemplate,
54
54
  resolveModelConfigValue,
55
55
  deriveDefaultProtectedTokens
56
- } from "./server-p9s40wfa.js";
56
+ } from "./server-0ms13pc8.js";
57
57
  import {
58
58
  readRawSessionMessagesFromDb2,
59
59
  readRawSessionMessagePageFromDb2,
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  DEFAULT_LOCAL_EMBEDDING_MODEL
3
- } from "./server-p9s40wfa.js";
3
+ } from "./server-0ms13pc8.js";
4
4
  import {
5
5
  embedPauseBySession,
6
6
  activeEmbeddingSessions,
@@ -83,7 +83,7 @@ import {
83
83
  logLocalEmbeddingPoolingUnavailableOnce,
84
84
  getEmbeddingProviderIdentity,
85
85
  LocalEmbeddingProvider
86
- } from "./server-1ppcpsdw.js";
86
+ } from "./server-brsx45r6.js";
87
87
  import {
88
88
  isKnownAutocommit
89
89
  } from "./server-8ajstryz.js";
@@ -592,6 +592,7 @@ class OpenAICompatibleEmbeddingProvider {
592
592
  queryPrefix;
593
593
  documentPrefix;
594
594
  truncate;
595
+ dimensions;
595
596
  initialized = false;
596
597
  failureTimes = [];
597
598
  circuitOpenUntil = 0;
@@ -611,6 +612,7 @@ class OpenAICompatibleEmbeddingProvider {
611
612
  this.queryPrefix = prefixes.queryPrefix;
612
613
  this.documentPrefix = prefixes.documentPrefix;
613
614
  this.truncate = options.truncate?.trim() ?? "";
615
+ this.dimensions = typeof options.dimensions === "number" && Number.isInteger(options.dimensions) && options.dimensions > 0 ? options.dimensions : undefined;
614
616
  this.rateLimitKey = rateLimitStateKey(this.endpoint, this.apiKey);
615
617
  const maxInputTokensSet = typeof options.maxInputTokens === "number" && Number.isFinite(options.maxInputTokens);
616
618
  this.maxInputTokens = maxInputTokensSet ? Math.max(1, Math.floor(options.maxInputTokens)) : DEFAULT_COMPARTMENT_CHUNK_MAX_INPUT_TOKENS2;
@@ -628,7 +630,8 @@ class OpenAICompatibleEmbeddingProvider {
628
630
  ...this.apiKey ? { api_key: this.apiKey } : {},
629
631
  ...this.inputType ? { input_type: this.inputType } : {},
630
632
  ...options.documentPrefix !== undefined ? { document_prefix: options.documentPrefix } : {},
631
- ...this.truncate ? { truncate: this.truncate } : {}
633
+ ...this.truncate ? { truncate: this.truncate } : {},
634
+ ...this.dimensions ? { dimensions: this.dimensions } : {}
632
635
  });
633
636
  }
634
637
  async initialize() {
@@ -734,7 +737,8 @@ class OpenAICompatibleEmbeddingProvider {
734
737
  model: this.model,
735
738
  input: requestTexts,
736
739
  ...inputTypeForRequest ? { input_type: inputTypeForRequest } : {},
737
- ...this.truncate ? { truncate: this.truncate } : {}
740
+ ...this.truncate ? { truncate: this.truncate } : {},
741
+ ...this.dimensions ? { dimensions: this.dimensions } : {}
738
742
  }),
739
743
  redirect: "error",
740
744
  signal: internalController.signal
@@ -807,6 +811,16 @@ class OpenAICompatibleEmbeddingProvider {
807
811
  results[slot] = Float32Array.from(embedding);
808
812
  }
809
813
  });
814
+ if (this.dimensions !== undefined) {
815
+ const requested = this.dimensions;
816
+ const returned = results.find((r) => r !== null && r.length !== requested)?.length;
817
+ if (returned !== undefined) {
818
+ const failure = this.failure("invalid_envelope", `requested dimensions=${requested} but endpoint returned ${returned}-dim vectors; the endpoint may not support the dimensions parameter for this model`, false);
819
+ log2(`[magic-context] openai-compatible embedding request failed: ${failure.reason}`);
820
+ this.recordFailure(requestStartedAt, isProbe, failure);
821
+ return Array.from({ length: texts.length }, () => null);
822
+ }
823
+ }
810
824
  if (results.every((r) => r === null)) {
811
825
  const failure = this.failure("invalid_envelope", `response had keys [${responseKeys.join(", ")}] but data[].embedding was absent`, false);
812
826
  log2(`[magic-context] openai-compatible embedding request failed: ${failure.reason}`);
@@ -1256,6 +1270,7 @@ function resolveEmbeddingConfig(config) {
1256
1270
  ...config.query_instruction !== undefined ? { query_instruction: config.query_instruction } : {},
1257
1271
  ...config.document_prefix !== undefined ? { document_prefix: config.document_prefix } : {},
1258
1272
  ...truncate ? { truncate } : {},
1273
+ ...config.dimensions ? { dimensions: config.dimensions } : {},
1259
1274
  ...config.max_input_tokens ? {
1260
1275
  max_input_tokens: normalizeCompartmentChunkMaxInputTokens2(config.max_input_tokens)
1261
1276
  } : {}
@@ -1305,6 +1320,7 @@ function createProvider(config, context) {
1305
1320
  queryInstruction: config.query_instruction,
1306
1321
  documentPrefix: config.document_prefix,
1307
1322
  truncate: config.truncate,
1323
+ dimensions: config.dimensions,
1308
1324
  maxInputTokens: config.max_input_tokens
1309
1325
  });
1310
1326
  }
@@ -53,7 +53,7 @@ import {
53
53
  serializeProcessedImageMarkers,
54
54
  getPendingPiCompactionMarkerState,
55
55
  logPiCompactionMarkerClear
56
- } from "./server-2qxt6qv0.js";
56
+ } from "./server-3bfc26r7.js";
57
57
  import {
58
58
  getTableColumnNames,
59
59
  tagTombstoneOwnerRange,
@@ -589,6 +589,57 @@ import { createHash as createHash6 } from "node:crypto";
589
589
  import { createHash as createHash4 } from "node:crypto";
590
590
 
591
591
  // src/shared/provider-response-completion.ts
592
+ var SERVER_FALLBACK_USAGE_SIGNATURE_PREFIX = "cortexkit-server-fallback-usage-v1:";
593
+ var SERVER_FALLBACK_SIGNATURE_PREFIX = "cortexkit-server-fallback-v1:";
594
+ function parseServerFallbackInputTokens(json) {
595
+ try {
596
+ const payload = JSON.parse(json);
597
+ if (!isRecord(payload) || !Array.isArray(payload.iterations))
598
+ return;
599
+ let last;
600
+ for (const entry of payload.iterations) {
601
+ if (isRecord(entry) && entry.type === "fallback_message")
602
+ last = entry;
603
+ }
604
+ if (!isRecord(last))
605
+ return;
606
+ const counts = [
607
+ last.input_tokens,
608
+ last.cache_read_input_tokens ?? 0,
609
+ last.cache_creation_input_tokens ?? 0
610
+ ];
611
+ if (!counts.every((count) => typeof count === "number" && Number.isFinite(count) && count >= 0))
612
+ return;
613
+ const inputTokens = counts.reduce((sum, count) => sum + Number(count), 0);
614
+ return Number.isFinite(inputTokens) ? inputTokens : undefined;
615
+ } catch {
616
+ return;
617
+ }
618
+ }
619
+ function readServerFallbackUsage(content) {
620
+ if (!Array.isArray(content))
621
+ return;
622
+ let boundary = false;
623
+ let invalidUsage = false;
624
+ for (const part of content) {
625
+ if (!isRecord(part) || part.type !== "reasoning")
626
+ continue;
627
+ for (const location of [part.native, part.state]) {
628
+ if (!isRecord(location) || typeof location.signature !== "string")
629
+ continue;
630
+ const signature = location.signature;
631
+ if (signature.startsWith(SERVER_FALLBACK_USAGE_SIGNATURE_PREFIX)) {
632
+ const inputTokens = parseServerFallbackInputTokens(signature.slice(SERVER_FALLBACK_USAGE_SIGNATURE_PREFIX.length));
633
+ if (inputTokens !== undefined)
634
+ return { kind: "usage", inputTokens };
635
+ invalidUsage = true;
636
+ } else if (signature.startsWith(SERVER_FALLBACK_SIGNATURE_PREFIX)) {
637
+ boundary = true;
638
+ }
639
+ }
640
+ }
641
+ return boundary || invalidUsage ? { kind: "boundary", invalidUsage } : undefined;
642
+ }
592
643
  function providerResponseFailed(input) {
593
644
  if (input.error !== undefined && input.error !== null && input.error !== "")
594
645
  return true;
@@ -4551,4 +4602,4 @@ var ERROR_CLASSES = new Set([
4551
4602
  "permission_denied",
4552
4603
  "unknown"
4553
4604
  ]);
4554
- export { COMPARTMENT_LEASE_RENEWAL_MS, getCompartmentLeaseBlocker, acquireCompartmentLease, renewCompartmentLease, releaseCompartmentLease, releaseCompartmentLeaseBestEffort, isCompartmentLeaseHeld, isNoContentCompartment, queueM0Mutation, getMaxM0MutationId, getCompartments, getLastCompartmentEndMessage, getLastCompartmentEndMessageId, getCompartmentsByEndMessageId, appendCompartments, buildCompartmentBlock, saveRecompStagingPass, getRecompStaging, clearRecompStaging, getRecompPartialRange, setRecompPartialRange, escapeXmlAttr, escapeXmlContent, getUncoveredCompartmentEndsThrough, isPartialCompartmentEnd, readProjectDocsCanonical, providerResponseFailed, isSuccessfulProviderCompletion, LkgRecoveryFenceError, lkgServedArrayDigest, hasCleanLkgRecoveryFence, dirtyLkgRecoveryRevision, ownsLkgDirtyFence, invalidateCleanLkgRecoveryFence, prepareLkgCaptureFence, certifyCommittedLkgCapture, markLkgRecoveryDirty, rememberUnpublishedAutoSearchNoHint, getUnpublishedAutoSearchNoHint, forgetUnpublishedAutoSearchNoHint, registerAutoSearchWork, advanceSessionActivity, backfillSessionActivity, readSessionMeta, getOrCreateSessionMeta, updateSessionMeta, advanceToolReclaimWatermark, markSessionCleanupPending, retryPendingSessionCleanups, retryPendingRustSessionCleanupsForProject, clearSession, requestPendingMaterialization, pendingMaterializationOrigin, hasPendingMaterializationOrigin, clearPendingMaterialization, clearPendingMaterializationOrigin, recordSystemPromptForRequest, recordHeldHeadForRequest, bindSystemPromptResponse, isHeldHeadForRequest, deferDeliveredSystemRefresh, retirePendingSystemPromptDelivery, lkgProviderInputTotal, beginV2LkgRequest, claimLkgRequestIdentity, currentLkgRequestIdentity, noteCapturedLkgRequest, noteLkgProviderResponse, measuredLkgPrefix, clearLkgMeasuredRequest, saveLkgSlotToDb, clearPersistedLkgSlotStrict, loadPersistedLkgSlot, drainStaleLkgSlots, resolveLkgModelKeys, createLkgEntryProjector, captureLkgSlot, validateAnthropicReasoningRuns, validateLkgSeam, replayLkg, coldStartRawServedIndex, coldStartUncapturedReplay, noteUncertifiedNormalLkg, hasProcessLocalLkgProof, lkgDirtyRevision, rememberLkgDirtyRevision, readPersistedLkgUntaggedInputIds, persistLkgUntaggedInputIds, noteLkgRecoveryPrefix, readLkgRecoveryPrefix, noteLkgHealthyPrefix, lkgRecoveryReplayUnproven, lkgRecoveryEntryUnproven, lkgInputIdentity, beginLkgPass, visitMessageContentFields, contentSnapshotValue, messageContentFields, signatureForFields, exactReusablePrefix, incrementalLkgContentDigests, lkgSlotRejection, captureSlot, getInMemorySlot, getSlot, forgetInMemorySlot, dropSlot, noteEntry, getLkgSlotHeapStats, TOOL_SWEEP_SCOPED_MARKER, useScopedToolSweep, createPreAdoptionToolSweepResolver, copySessionStateForClone, externalHistorianFailureReason, recordHistorianRun, summarizeImportance, tallyFactsByCategory, MEMORY_VISIBILITY_MUTATION_CATEGORY, queueMemoryMutation, getMemoryMutationsForRender, getMemoryMutationsForRenderByProjects, getMaxMemoryMutationId, getMaxMemoryMutationIdForProjects, GLOBAL_USER_PROFILE_PROJECT_PATH, getProjectState, bumpProjectUserProfileVersion, saveSourceContent, replaceSourceContent, getSourceContents, recordSubagentInvocation, getLatestHistorianInvocationId };
4605
+ export { COMPARTMENT_LEASE_RENEWAL_MS, getCompartmentLeaseBlocker, acquireCompartmentLease, renewCompartmentLease, releaseCompartmentLease, releaseCompartmentLeaseBestEffort, isCompartmentLeaseHeld, isNoContentCompartment, queueM0Mutation, getMaxM0MutationId, getCompartments, getLastCompartmentEndMessage, getLastCompartmentEndMessageId, getCompartmentsByEndMessageId, appendCompartments, buildCompartmentBlock, saveRecompStagingPass, getRecompStaging, clearRecompStaging, getRecompPartialRange, setRecompPartialRange, escapeXmlAttr, escapeXmlContent, getUncoveredCompartmentEndsThrough, isPartialCompartmentEnd, readProjectDocsCanonical, readServerFallbackUsage, providerResponseFailed, isSuccessfulProviderCompletion, LkgRecoveryFenceError, lkgServedArrayDigest, hasCleanLkgRecoveryFence, dirtyLkgRecoveryRevision, ownsLkgDirtyFence, invalidateCleanLkgRecoveryFence, prepareLkgCaptureFence, certifyCommittedLkgCapture, markLkgRecoveryDirty, rememberUnpublishedAutoSearchNoHint, getUnpublishedAutoSearchNoHint, forgetUnpublishedAutoSearchNoHint, registerAutoSearchWork, advanceSessionActivity, backfillSessionActivity, readSessionMeta, getOrCreateSessionMeta, updateSessionMeta, advanceToolReclaimWatermark, markSessionCleanupPending, retryPendingSessionCleanups, retryPendingRustSessionCleanupsForProject, clearSession, requestPendingMaterialization, pendingMaterializationOrigin, hasPendingMaterializationOrigin, clearPendingMaterialization, clearPendingMaterializationOrigin, recordSystemPromptForRequest, recordHeldHeadForRequest, bindSystemPromptResponse, isHeldHeadForRequest, deferDeliveredSystemRefresh, retirePendingSystemPromptDelivery, lkgProviderInputTotal, beginV2LkgRequest, claimLkgRequestIdentity, currentLkgRequestIdentity, noteCapturedLkgRequest, noteLkgProviderResponse, measuredLkgPrefix, clearLkgMeasuredRequest, saveLkgSlotToDb, clearPersistedLkgSlotStrict, loadPersistedLkgSlot, drainStaleLkgSlots, resolveLkgModelKeys, createLkgEntryProjector, captureLkgSlot, validateAnthropicReasoningRuns, validateLkgSeam, replayLkg, coldStartRawServedIndex, coldStartUncapturedReplay, noteUncertifiedNormalLkg, hasProcessLocalLkgProof, lkgDirtyRevision, rememberLkgDirtyRevision, readPersistedLkgUntaggedInputIds, persistLkgUntaggedInputIds, noteLkgRecoveryPrefix, readLkgRecoveryPrefix, noteLkgHealthyPrefix, lkgRecoveryReplayUnproven, lkgRecoveryEntryUnproven, lkgInputIdentity, beginLkgPass, visitMessageContentFields, contentSnapshotValue, messageContentFields, signatureForFields, exactReusablePrefix, incrementalLkgContentDigests, lkgSlotRejection, captureSlot, getInMemorySlot, getSlot, forgetInMemorySlot, dropSlot, noteEntry, getLkgSlotHeapStats, TOOL_SWEEP_SCOPED_MARKER, useScopedToolSweep, createPreAdoptionToolSweepResolver, copySessionStateForClone, externalHistorianFailureReason, recordHistorianRun, summarizeImportance, tallyFactsByCategory, MEMORY_VISIBILITY_MUTATION_CATEGORY, queueMemoryMutation, getMemoryMutationsForRender, getMemoryMutationsForRenderByProjects, getMaxMemoryMutationId, getMaxMemoryMutationIdForProjects, GLOBAL_USER_PROFILE_PROJECT_PATH, getProjectState, bumpProjectUserProfileVersion, saveSourceContent, replaceSourceContent, getSourceContents, recordSubagentInvocation, getLatestHistorianInvocationId };
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  DEFAULT_LOCAL_EMBEDDING_MODEL
3
- } from "./server-p9s40wfa.js";
3
+ } from "./server-0ms13pc8.js";
4
4
  import {
5
5
  getHarness2
6
6
  } from "./server-pavzsdc6.js";
@@ -645,6 +645,7 @@ function getEmbeddingProviderIdentity(config) {
645
645
  throw new Error("Unknown embedding provider");
646
646
  }
647
647
  const truncate = config.provider === "openai-compatible" ? config.truncate?.trim() : undefined;
648
+ const dimensions = config.provider === "openai-compatible" ? config.dimensions : undefined;
648
649
  const documentPrefix = config.provider === "openai-compatible" ? resolveEmbeddingTextPrefixes(config.model, config.query_instruction, config.document_prefix).documentPrefix : "";
649
650
  const localDtype = config.provider === "local" && config.local_dtype && config.local_dtype !== "fp32" ? config.local_dtype : undefined;
650
651
  const localPooling = config.provider === "local" ? getCachedLocalEmbeddingPooling(config.model?.trim() || DEFAULT_LOCAL_EMBEDDING_MODEL) : null;
@@ -656,7 +657,8 @@ function getEmbeddingProviderIdentity(config) {
656
657
  apiKeyPresent: Boolean(config.api_key?.trim()),
657
658
  inputType: config.input_type?.trim() || "",
658
659
  ...documentPrefix ? { documentPrefix } : {},
659
- ...truncate ? { truncate } : {}
660
+ ...truncate ? { truncate } : {},
661
+ ...dimensions ? { dimensions } : {}
660
662
  } : {
661
663
  provider: "local",
662
664
  model: config.model?.trim() || DEFAULT_LOCAL_EMBEDDING_MODEL,
@@ -25,7 +25,7 @@ import {
25
25
  isMessageIndexReconciledThrough,
26
26
  clearIndexedMessages,
27
27
  indexMessagesAfterOrdinal
28
- } from "./server-c5kq8d5n.js";
28
+ } from "./server-16kfxcxj.js";
29
29
  import {
30
30
  Priority,
31
31
  AdmissionClass,
@@ -56,7 +56,7 @@ import {
56
56
  enqueueShadowEmbeddingItems2,
57
57
  getProjectEmbeddingSnapshot2,
58
58
  embedItemsForProject2
59
- } from "./server-fw49gc57.js";
59
+ } from "./server-4h4acntc.js";
60
60
  import {
61
61
  recordEmbeddingMeasurement
62
62
  } from "./server-2amn2s73.js";
@@ -68,7 +68,7 @@ import {
68
68
  isEmbeddingEnabled,
69
69
  embedText,
70
70
  ensureMemoryEmbeddings2
71
- } from "./server-r7y35vm9.js";
71
+ } from "./server-vjadwb3j.js";
72
72
  import {
73
73
  ModuleMemoryAuthorityError2,
74
74
  getMemoriesByProject2,
@@ -81,7 +81,7 @@ import {
81
81
  sanitizeFtsQuery,
82
82
  searchMemoriesFTS,
83
83
  searchMemoriesFTSUnion
84
- } from "./server-0qxb8r8q.js";
84
+ } from "./server-sgn61hht.js";
85
85
  import {
86
86
  MESSAGE_FTS_SESSION_FILTER_SQL,
87
87
  withMessageFtsSessionFilter
@@ -1771,6 +1771,8 @@ function sha256(value) {
1771
1771
  var RERANK_MODEL = "gte-reranker-modernbert-base-f32";
1772
1772
  var RERANK_LANE_LIMIT = 25;
1773
1773
  var DEADLINE_MS = 1500;
1774
+ var SYNAPSE_RESTART_BACKOFF_MS = 30000;
1775
+ var SYNAPSE_ABSENT_BACKOFF_MS = 10 * 60000;
1774
1776
  var DOCUMENT_BYTES = 1024;
1775
1777
  var proseWordSegmenter = new Intl.Segmenter(undefined, { granularity: "word" });
1776
1778
  function isProseQuery(query) {
@@ -1913,10 +1915,11 @@ async function bounded(promise) {
1913
1915
  }
1914
1916
  }
1915
1917
  var connections = new Map;
1918
+ var synapseRetryAt = new Map;
1916
1919
  async function connect(connectionFile) {
1917
1920
  let connection = connections.get(connectionFile);
1918
1921
  if (!connection) {
1919
- connection = inRootAsyncContext2(() => SubcClient.connect({ connectionFile }));
1922
+ connection = inRootAsyncContext2(() => SubcClient.connect({ connectionFile, routeOpenRetryDeadlineMs: 0 }));
1920
1923
  connections.set(connectionFile, connection);
1921
1924
  connection.catch(() => connections.delete(connectionFile));
1922
1925
  }
@@ -1986,24 +1989,39 @@ function remoteRerankSkipped(reason, onSkipped) {
1986
1989
  logRerankFallback(safe);
1987
1990
  onSkipped?.(line);
1988
1991
  }
1989
- async function prepareReranker(projectRoot, sessionId, connectionFile, injectedClient, config) {
1992
+ async function prepareReranker(projectRoot, sessionId, connectionFile, injectedClient, config, now = Date.now) {
1990
1993
  if (config?.provider === "off")
1991
1994
  return null;
1992
1995
  if (config?.provider === "remote")
1993
1996
  return { remote: config };
1997
+ const daemonFile = connectionFile ?? getDefaultSubcConnectionFile();
1998
+ const rememberAbsence = injectedClient === undefined;
1999
+ if (rememberAbsence && (synapseRetryAt.get(daemonFile) ?? 0) > now())
2000
+ return null;
2001
+ let catalogRequested = false;
1994
2002
  try {
1995
2003
  if (injectedClient === null)
1996
2004
  throw new RerankFailure("missing_synapse");
1997
- const client = injectedClient ?? await connect(connectionFile ?? getDefaultSubcConnectionFile());
2005
+ const client = injectedClient ?? await connect(daemonFile);
1998
2006
  const identity = {
1999
2007
  project_root: projectRoot,
2000
2008
  harness: "magic-context",
2001
2009
  session: sessionId
2002
2010
  };
2011
+ catalogRequested = true;
2003
2012
  const lane = pinReranker(await bounded(client.call("synapse", "models.list", {}, { timeoutMs: DEADLINE_MS, targetKind: "management_surface", identity })));
2013
+ if (rememberAbsence)
2014
+ synapseRetryAt.delete(daemonFile);
2004
2015
  return { client, lane, identity };
2005
2016
  } catch (error) {
2006
- logRerankFallback(reasonOf(error));
2017
+ const reason = reasonOf(error);
2018
+ if (rememberAbsence && catalogRequested && reason === "unknown_module") {
2019
+ const failedAt = now();
2020
+ const previousRetryAt = synapseRetryAt.get(daemonFile);
2021
+ const backoff = previousRetryAt !== undefined && failedAt - previousRetryAt < SYNAPSE_ABSENT_BACKOFF_MS ? SYNAPSE_ABSENT_BACKOFF_MS : SYNAPSE_RESTART_BACKOFF_MS;
2022
+ synapseRetryAt.set(daemonFile, failedAt + backoff);
2023
+ }
2024
+ logRerankFallback(reason);
2007
2025
  return null;
2008
2026
  }
2009
2027
  }
@@ -5,7 +5,7 @@ import {
5
5
  expandToolPart,
6
6
  visitRawSessionMessages2,
7
7
  readRawSessionMessageById2
8
- } from "./server-2qxt6qv0.js";
8
+ } from "./server-3bfc26r7.js";
9
9
  import {
10
10
  getTagById2
11
11
  } from "./server-rcchadw0.js";
@@ -19,10 +19,10 @@ import {
19
19
  rawMessageWorkerSource2,
20
20
  rawMessageOffThreadRangeReader2,
21
21
  readRawSessionMessageIdOrdinalsForRange2
22
- } from "./server-2qxt6qv0.js";
22
+ } from "./server-3bfc26r7.js";
23
23
  import {
24
24
  readV2ArchiveOffThread2
25
- } from "./server-4y2pcckw.js";
25
+ } from "./server-0k586y7d.js";
26
26
 
27
27
  // src/tools/ctx-expand/search-archive.ts
28
28
  var archiveReadsOnThisThread = 0;
@@ -11,7 +11,7 @@ import {
11
11
  PER_HARNESS_MODEL_KEYS,
12
12
  ConfigProfilesSchema,
13
13
  MagicContextConfigSchema
14
- } from "./server-p9s40wfa.js";
14
+ } from "./server-0ms13pc8.js";
15
15
  import {
16
16
  isCompactionEnabled,
17
17
  migrateLegacyAgentEnabledInMemory
@@ -2236,7 +2236,8 @@ var EMBEDDING_USER_ONLY_FIELDS = [
2236
2236
  "provider",
2237
2237
  "fallback_provider",
2238
2238
  "query_instruction",
2239
- "document_prefix"
2239
+ "document_prefix",
2240
+ "dimensions"
2240
2241
  ];
2241
2242
  var PERCENTAGE_THRESHOLD_REASON = "security: a repository may only raise compaction thresholds above the user's effective value; it cannot force earlier historian work or cloned-repo cost escalation.";
2242
2243
  var TOKEN_THRESHOLD_REASON = "security: a repository may only raise execute_threshold_tokens above the user's trusted token threshold; it cannot force earlier historian work or cloned-repo cost escalation.";
@@ -567,6 +567,7 @@ var databases = new Map;
567
567
  var pendingAsyncOpens = new Map;
568
568
  var pendingDatabaseCloses = new Set;
569
569
  var startupBackfills = new WeakMap;
570
+ var scheduleStartupMaintenanceOnOpen = true;
570
571
  var persistenceByDatabase = new WeakMap;
571
572
  var persistenceErrorByDatabase = new WeakMap;
572
573
  var pathByDatabase = new WeakMap;
@@ -1002,7 +1003,7 @@ function finishDatabaseOpen(db, dbPath, explicitDbPath, latestSupportedVersion)
1002
1003
  return null;
1003
1004
  }
1004
1005
  healWedgedChannel2Claims(db);
1005
- if (!explicitDbPath) {
1006
+ if (!explicitDbPath && scheduleStartupMaintenanceOnOpen) {
1006
1007
  const readsOpenCodeStore = harnessOwnsOpenCodeStore2();
1007
1008
  const state = { controller: new AbortController };
1008
1009
  startupBackfills.set(db, state);
@@ -1022,7 +1023,7 @@ function finishDatabaseOpen(db, dbPath, explicitDbPath, latestSupportedVersion)
1022
1023
  state.running = startMessageFtsRowidMapBackfill2(db, signal).then(async () => {
1023
1024
  if (signal.aborted || !readsOpenCodeStore)
1024
1025
  return;
1025
- const { readRawSessionMessagePage, readRawSessionMessages } = await importPluginModule(() => import("./read-session-chunk-carzw3m8.js"));
1026
+ const { readRawSessionMessagePage, readRawSessionMessages } = await importPluginModule(() => import("./read-session-chunk-hzhxvhyv.js"));
1026
1027
  const { startMessageTimeBackfill } = await importPluginModule(() => import("./message-time-backfill-baxebka0.js"));
1027
1028
  if (signal.aborted)
1028
1029
  return;
@@ -1043,6 +1044,7 @@ function finishDatabaseOpen(db, dbPath, explicitDbPath, latestSupportedVersion)
1043
1044
  log2(`[magic-context] message-index backfill failed (will resume next startup): ${getErrorMessage(error)}`);
1044
1045
  });
1045
1046
  }));
1047
+ state.run = runBackfills;
1046
1048
  state.timer = scheduleAfterBootQuiet(runBackfills);
1047
1049
  }
1048
1050
  setDatabase(db);
@@ -10,7 +10,7 @@ import {
10
10
  } from "./server-bb6kf05j.js";
11
11
  import {
12
12
  embedTextForProject2
13
- } from "./server-fw49gc57.js";
13
+ } from "./server-4h4acntc.js";
14
14
  import {
15
15
  saveEmbeddingIfHashMatches
16
16
  } from "./server-4dhv7mqz.js";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  DEFAULT_LOCAL_EMBEDDING_MODEL
3
- } from "./server-p9s40wfa.js";
3
+ } from "./server-0ms13pc8.js";
4
4
  import {
5
5
  log2
6
6
  } from "./server-bb6kf05j.js";
@@ -10,12 +10,12 @@ import {
10
10
  } from "./server-mxsy9h1d.js";
11
11
  import {
12
12
  LocalEmbeddingProvider
13
- } from "./server-1ppcpsdw.js";
13
+ } from "./server-brsx45r6.js";
14
14
  import {
15
15
  OpenAICompatibleEmbeddingProvider,
16
16
  getProjectEmbeddingSnapshot2,
17
17
  embedBatchForProject2
18
- } from "./server-fw49gc57.js";
18
+ } from "./server-4h4acntc.js";
19
19
  import {
20
20
  isEmbeddingHostBusy2
21
21
  } from "./server-qt1qqasc.js";
@@ -62,6 +62,7 @@ function createProvider(config) {
62
62
  queryInstruction: config.query_instruction,
63
63
  documentPrefix: config.document_prefix,
64
64
  truncate: config.truncate,
65
+ dimensions: config.dimensions,
65
66
  maxInputTokens: config.max_input_tokens
66
67
  });
67
68
  }
package/dist/v2/server.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  loadPluginConfigDetailed
3
- } from "./server-ttrrh27h.js";
3
+ } from "./server-sb55ddgn.js";
4
4
  import {
5
5
  setHarness2
6
6
  } from "./server-pavzsdc6.js";
@@ -22,7 +22,7 @@ import {
22
22
  union,
23
23
  tuple,
24
24
  record
25
- } from "./server-p9s40wfa.js";
25
+ } from "./server-0ms13pc8.js";
26
26
  import {
27
27
  pushNotification2
28
28
  } from "./server-x8a7jmkh.js";
@@ -7875,7 +7875,7 @@ var require_src2 = __commonJS(function(exports, module) {
7875
7875
  // package.json
7876
7876
  var package_default = {
7877
7877
  name: "@cortexkit/opencode-magic-context",
7878
- version: "0.49.49",
7878
+ version: "0.49.51",
7879
7879
  type: "module",
7880
7880
  description: "OpenCode plugin for Magic Context — cross-session memory and context management",
7881
7881
  main: "dist/index.js",
@@ -8196,7 +8196,7 @@ async function setup(context) {
8196
8196
  if (claimStorageBackupWarningCheck() && isMagicContextStorageOutsideEngram(storageDir)) {
8197
8197
  log2(`[magic-context] Magic Context storage is at ${storageDir}, outside the folder Engram backs up (~/.local/share/cortexkit/magic-context). It is not included in CortexKit backups.`);
8198
8198
  }
8199
- const { registerContext } = await import("./context-td3jyze3.js");
8199
+ const { registerContext } = await import("./context-cpbhpxks.js");
8200
8200
  setHarness2("opencode2");
8201
8201
  bindStaleBuildNotice({}, import.meta.url, "opencode2");
8202
8202
  const duties = await registerContext(context);
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  readV2ArchiveOffThread2,
3
3
  serveV2ArchiveReads2
4
- } from "./server-4y2pcckw.js";
4
+ } from "./server-0k586y7d.js";
5
5
  import"./server-v0p37hm2.js";
6
6
  import"./server-gzy5w8ya.js";
7
7
  import"./server-1d042x6w.js";
@@ -11,7 +11,7 @@ import {
11
11
  releaseCompartmentLeaseBestEffort,
12
12
  getCompartments,
13
13
  getLastCompartmentEndMessage
14
- } from "./server-yxe0gh3v.js";
14
+ } from "./server-88yvx6r9.js";
15
15
  import"./server-2amn2s73.js";
16
16
  import"./server-3jc6qmdz.js";
17
17
  import"./server-mxsy9h1d.js";
@@ -24,7 +24,7 @@ import"./server-1d042x6w.js";
24
24
  import"./server-rz5jnhnv.js";
25
25
  import"./server-966dq3pd.js";
26
26
  import"./server-g61hgy1y.js";
27
- import"./server-c5kq8d5n.js";
27
+ import"./server-16kfxcxj.js";
28
28
  import {
29
29
  getWrapupInProgressState,
30
30
  acquireWrapupInProgress,
@@ -33,12 +33,12 @@ import {
33
33
  getHistorianFailureState,
34
34
  clearEmergencyRecovery,
35
35
  prepareRawSessionOrdinals2
36
- } from "./server-2qxt6qv0.js";
36
+ } from "./server-3bfc26r7.js";
37
37
  import"./server-ww7xbxxf.js";
38
- import"./server-e14c3hd6.js";
38
+ import"./server-scp3y4dh.js";
39
39
  import"./server-1zx87sdm.js";
40
40
  import"./server-rcchadw0.js";
41
- import"./server-p9s40wfa.js";
41
+ import"./server-0ms13pc8.js";
42
42
  import"./server-2ra6pwf3.js";
43
43
  import"./server-7vrtk78d.js";
44
44
  import"./server-kgq2e2hh.js";
@@ -63,16 +63,16 @@ import {
63
63
  registerActiveCompartmentRun,
64
64
  setRecompStarting2,
65
65
  setRecompTerminal2
66
- } from "./server-z7n3n1ra.js";
66
+ } from "./server-016a1whm.js";
67
67
  import"./server-qt1qqasc.js";
68
- import"./server-fw49gc57.js";
68
+ import"./server-4h4acntc.js";
69
69
  import"./server-qp5sj6n5.js";
70
70
  import"./server-4dhv7mqz.js";
71
- import"./server-1ppcpsdw.js";
72
- import"./server-r7y35vm9.js";
71
+ import"./server-brsx45r6.js";
72
+ import"./server-vjadwb3j.js";
73
73
  import"./server-jjvbk92s.js";
74
- import"./server-0qxb8r8q.js";
75
- import"./server-ttrrh27h.js";
74
+ import"./server-sgn61hht.js";
75
+ import"./server-sb55ddgn.js";
76
76
  import"./server-sa1fdt41.js";
77
77
  import"./server-5kgesxck.js";
78
78
  import"./server-91gb0vh8.js";
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  readV2ArchiveOffThread2,
3
3
  serveV2ArchiveReads2
4
- } from "./index-5850zme4.js";
4
+ } from "./index-ct3ettqt.js";
5
5
  import"./index-v0p37hm2.js";
6
6
  import"./index-gzy5w8ya.js";
7
7
  import"./index-1d042x6w.js";
@@ -1,35 +1,35 @@
1
1
  import {
2
2
  runManagedWrapup2
3
- } from "./index-vbmh68fb.js";
4
- import"./index-wdmfnmv1.js";
5
- import"./index-va9x7y48.js";
3
+ } from "./index-v4a1pnny.js";
4
+ import"./index-97bjd14c.js";
5
+ import"./index-h8g08nxs.js";
6
6
  import"./index-90z05d0p.js";
7
7
  import"./index-sd3egckz.js";
8
- import"./index-3n9ee4jh.js";
9
- import"./index-arxg51bj.js";
8
+ import"./index-cwj6qhmf.js";
9
+ import"./index-8d7gkgjs.js";
10
10
  import"./index-jjvbk92s.js";
11
- import"./index-0mdh2cke.js";
11
+ import"./index-bamnjp2t.js";
12
12
  import"./index-4dhv7mqz.js";
13
- import"./index-vyv4tame.js";
13
+ import"./index-n0twfvah.js";
14
14
  import"./index-25tm250q.js";
15
- import"./index-jedbxq6n.js";
15
+ import"./index-hkveze74.js";
16
16
  import"./index-2amn2s73.js";
17
17
  import"./index-6athgjba.js";
18
18
  import"./index-gapnh6tk.js";
19
19
  import"./index-r9agn061.js";
20
20
  import"./index-qt1qqasc.js";
21
- import"./index-qb75tv9j.js";
21
+ import"./index-07rp6xcn.js";
22
22
  import"./index-bkg4hdyh.js";
23
23
  import"./index-1zx87sdm.js";
24
24
  import"./index-em92bp7f.js";
25
25
  import"./index-x8a7jmkh.js";
26
26
  import"./index-gz001bx7.js";
27
- import"./index-tj5gz396.js";
28
- import"./index-4dpvnp8k.js";
27
+ import"./index-rbs27k1d.js";
28
+ import"./index-jjy5a5w0.js";
29
29
  import"./index-qperbvjn.js";
30
30
  import"./index-hexdee98.js";
31
31
  import"./index-hsyczpn7.js";
32
- import"./index-agfh931z.js";
32
+ import"./index-z4832qfe.js";
33
33
  import"./index-fb3zxn06.js";
34
34
  import"./index-pb8ysnq2.js";
35
35
  import"./index-fr0wbhdn.js";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cortexkit/opencode-magic-context",
3
- "version": "0.49.49",
3
+ "version": "0.49.51",
4
4
  "type": "module",
5
5
  "description": "OpenCode plugin for Magic Context — cross-session memory and context management",
6
6
  "main": "dist/index.js",