@cortexkit/pi-magic-context 0.49.42 → 0.49.44

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 (32) hide show
  1. package/dist/auto-search-worker.js +3 -3
  2. package/dist/chunk-embedding-write-worker.js +1 -1
  3. package/dist/{compaction-marker-candidates-8qhackvy.js → compaction-marker-candidates-17a21jfn.js} +12 -2
  4. package/dist/compaction-marker-candidates-worker.js +5 -2
  5. package/dist/{embedding-backfill-002vyexq.js → embedding-backfill-v9b8gkmp.js} +4 -4
  6. package/dist/embedding-worker.js +2 -2
  7. package/dist/{index-j0h89gxy.js → index-025nxwc9.js} +1 -1
  8. package/dist/{index-p8jpbrj4.js → index-2kmwjq42.js} +64 -12
  9. package/dist/{index-z7dktknj.js → index-9tcbabqr.js} +2 -2
  10. package/dist/{index-6cvt64cn.js → index-fjmghcbx.js} +137 -52
  11. package/dist/{index-jbkwszd5.js → index-gajhgp4k.js} +3 -3
  12. package/dist/{index-k0csz6pb.js → index-gg9r701n.js} +3 -3
  13. package/dist/{index-p9jfa33t.js → index-gtd9kaaf.js} +3 -3
  14. package/dist/{index-ccanzg8p.js → index-gzk7d940.js} +1 -1
  15. package/dist/{index-mx757f3g.js → index-j2x88zk0.js} +1 -1
  16. package/dist/{index-a7sj2bam.js → index-p1jxxsth.js} +1 -1
  17. package/dist/{index-ry84c8dr.js → index-pb0ygvpa.js} +1 -1
  18. package/dist/{index-2qqsnh1b.js → index-xf3ndcqd.js} +1 -1
  19. package/dist/{index-g2j58qpq.js → index-zttw4vew.js} +3 -3
  20. package/dist/index.js +353 -190
  21. package/dist/{message-index-bounded-39z2atfj.js → message-index-bounded-1gj1pwjy.js} +3 -3
  22. package/dist/migration-worker.js +1 -1
  23. package/dist/{project-embedding-registry-16pj4vyf.js → project-embedding-registry-e81zewts.js} +3 -3
  24. package/dist/raw-ordinal-warmup-worker.js +3 -3
  25. package/dist/{read-session-chunk-jxq427v6.js → read-session-chunk-r9qy3jzj.js} +2 -2
  26. package/dist/{render-6bhqgkpq.js → render-dvmk12tf.js} +5 -5
  27. package/dist/{search-archive-yvdq2nfp.js → search-archive-23s9g6dx.js} +4 -4
  28. package/dist/{search-45wknkb6.js → search-khaxkbs1.js} +7 -7
  29. package/dist/subagent-entry.js +13 -13
  30. package/dist/tag-snapshot-worker-pi.js +1 -1
  31. package/dist/{v2-archive-reader-bd94n954.js → v2-archive-reader-z7qgxxp0.js} +1 -1
  32. package/package.json +3 -1
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  piModelRefToCanonical
3
- } from "./index-ccanzg8p.js";
3
+ } from "./index-gzk7d940.js";
4
4
  import {
5
5
  getHarness2
6
6
  } from "./index-0h2mkab2.js";
@@ -39,7 +39,7 @@ import {
39
39
  expandToolPart,
40
40
  visitRawSessionMessages2,
41
41
  readRawSessionMessageById2
42
- } from "./index-mx757f3g.js";
42
+ } from "./index-j2x88zk0.js";
43
43
  import {
44
44
  isRecord,
45
45
  providerVisibleMessage,
@@ -64,7 +64,7 @@ import {
64
64
  import {
65
65
  isPidAlive,
66
66
  readProcessStartTime
67
- } from "./index-a7sj2bam.js";
67
+ } from "./index-p1jxxsth.js";
68
68
  import {
69
69
  gaDatabasePath2,
70
70
  V2StoreReader2
@@ -6832,7 +6832,7 @@ var MagicContextConfigSchema = object({
6832
6832
  enabled: boolean2().default(true).describe("Enable smart-note authoring and condition evaluation. Needs a runnable dreamer, which evaluates the conditions: with dreamer.disable true (or no dreamer block) ctx_note offers no surface_condition whatever this says. User-level only: tool definitions are process-wide. Changes require a host restart and rebuild each session's cached prompt once. Pending notes remain stored and unchecked; already-ready notes still surface."),
6833
6833
  retina_handoff: boolean2().default(false).describe("When true, dreamer skips smart notes whose surface conditions compiled to retina provider configs at authoring time. Default false keeps both paths active until the retina consumer is deployed.")
6834
6834
  }).default({ enabled: true, retina_handoff: false }).describe("Smart-note ownership transition controls."),
6835
- cache_ttl: union([string2(), object({ default: string2() }).catchall(string2())]).default("5m").describe(`How long Magic Context assumes the provider's cached prefix stays valid. This is MC's own deferral gate — it does not change the provider's actual cache lifetime. String (e.g. "5m", "1h", "30s") or per-model object ({ default: "5m", "provider/model": "1h", "provider/*": "never" }); keys resolve most-specific first (exact provider/model, bare model ID, shorter dash-prefixes, then the provider/* wildcard, then default). User and project settings, including an explicit "5m" or object default, apply on the next pass. Only built-in defaults are frozen per session, including across restarts: when unset, GPT-5.6 and later (including gpt-6*, through any provider prefix) use 30m, other models use 5m. /ctx-status shows the effective TTL and whether it comes from your config or a frozen built-in default. Editing the TTL does not itself rewrite prompt bytes; a lowered TTL rebuilds only after normal idle expiry. OpenAI documents at least 30 minutes since the latest write or reuse: https://developers.openai.com/api/docs/guides/prompt-caching (Cache lifetime and Summary of model differences). Set to "never" to mean MC never assumes expiry (for lanes kept warm externally by a cache-keep tool) — disables the idle-TTL heuristic so MC never initiates a rebuild based on elapsed time. Provider-side extended TTL is a separate request-level concern (cache_control: { ttl } in the request body).`),
6835
+ cache_ttl: union([string2(), object({ default: string2() }).catchall(string2())]).default("5m").describe(`How long Magic Context assumes the provider's cached prefix stays valid. It does not change the provider's actual cache lifetime, and it triggers no rebuild or fold: after an expiry the next request replays the same bytes. Magic Context uses it for diagnostics and, on OpenCode 2, to time an idle checkpoint in the host's session store (the experimental Rust transform still rebuilds on it). String (e.g. "5m", "1h", "30s") or per-model object ({ default: "5m", "provider/model": "1h", "provider/*": "never" }); keys resolve most-specific first (exact provider/model, bare model ID, shorter dash-prefixes, then the provider/* wildcard, then default). User and project settings, including an explicit "5m" or object default, apply on the next pass. Only built-in defaults are frozen per session, including across restarts: when unset, GPT-5.6 and later (including gpt-6*, through any provider prefix) use 30m, other models use 5m. /ctx-status shows the effective TTL and whether it comes from your config or a frozen built-in default. Editing the TTL never rewrites prompt bytes. OpenAI documents at least 30 minutes since the latest write or reuse: https://developers.openai.com/api/docs/guides/prompt-caching (Cache lifetime and Summary of model differences). Set to "never" to mean MC never assumes expiry (for a provider cache that an external cache-keep tool keeps warm). Provider-side extended TTL is a separate request-level concern (cache_control: { ttl } in the request body).`),
6836
6836
  prompt_surface: PromptSurfaceConfigSchema.default({ default: "full" }).describe("Prompt-surface presets: default is full; models use bare model IDs, provider/model, or provider/* routing keys. Guidance and tool-description overrides are user-level only. OpenCode 1.x, Pi, and OMP register tool descriptions once per process (they follow the default preset). OpenCode 2 rewrites the five ctx_* descriptions per request from the draft model."),
6837
6837
  output_reserve: union([
6838
6838
  number2().min(0),
@@ -4,7 +4,7 @@ import {
4
4
  renderToolTemplate,
5
5
  resolveModelConfigValue,
6
6
  deriveDefaultProtectedTokens
7
- } from "./index-ccanzg8p.js";
7
+ } from "./index-gzk7d940.js";
8
8
  import {
9
9
  getHarness2,
10
10
  harnessOwnsOpenCodeStore2
@@ -1788,7 +1788,7 @@ function finishDatabaseOpen(db, dbPath, explicitDbPath, latestSupportedVersion)
1788
1788
  state.running = startMessageFtsRowidMapBackfill2(db, signal).then(async () => {
1789
1789
  if (signal.aborted || !readsOpenCodeStore)
1790
1790
  return;
1791
- const { readRawSessionMessagePage, readRawSessionMessages } = await importPluginModule(() => import("./read-session-chunk-jxq427v6.js"));
1791
+ const { readRawSessionMessagePage, readRawSessionMessages } = await importPluginModule(() => import("./read-session-chunk-r9qy3jzj.js"));
1792
1792
  const { startMessageTimeBackfill } = await importPluginModule(() => import("./message-time-backfill-x45573rs.js"));
1793
1793
  if (signal.aborted)
1794
1794
  return;
@@ -6,7 +6,7 @@ import {
6
6
  } from "./index-wt7vmyj4.js";
7
7
  import {
8
8
  readRawSessionMessageIdOrdinalsForRange2
9
- } from "./index-mx757f3g.js";
9
+ } from "./index-j2x88zk0.js";
10
10
 
11
11
  // ../plugin/src/tools/ctx-expand/search-archive.ts
12
12
  var archiveReadsOnThisThread = 0;
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  DEFAULT_LOCAL_EMBEDDING_MODEL
3
- } from "./index-ccanzg8p.js";
3
+ } from "./index-gzk7d940.js";
4
4
  import {
5
5
  getSynapseLaneIdentity
6
6
  } from "./index-rzfr7wdv.js";
@@ -47,7 +47,7 @@ import {
47
47
  getProjectEmbeddingSnapshot2,
48
48
  embedTextForProject2,
49
49
  embedItemsForProject2
50
- } from "./index-z7dktknj.js";
50
+ } from "./index-9tcbabqr.js";
51
51
  import {
52
52
  recordEmbeddingMeasurement
53
53
  } from "./index-hgd00nas.js";
@@ -63,7 +63,7 @@ import {
63
63
  isEmbeddingEnabled,
64
64
  embedText,
65
65
  ensureMemoryEmbeddings2
66
- } from "./index-jbkwszd5.js";
66
+ } from "./index-gajhgp4k.js";
67
67
  import {
68
68
  getMemorySelectColumns2,
69
69
  isMemoryRow2,
@@ -91,7 +91,7 @@ import {
91
91
  clearIndexedMessages,
92
92
  indexSingleMessage,
93
93
  indexMessagesAfterOrdinal
94
- } from "./index-j0h89gxy.js";
94
+ } from "./index-025nxwc9.js";
95
95
  import {
96
96
  MESSAGE_FTS_SESSION_FILTER_SQL,
97
97
  withMessageFtsSessionFilter