@cortexkit/opencode-magic-context 0.49.102 → 0.49.103

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 (86) hide show
  1. package/dist/auto-search-worker.js +5 -5
  2. package/dist/chunk-embedding-write-worker.js +1 -1
  3. package/dist/{context-4fjwzqqa.js → context-jk7bgc3s.js} +20 -20
  4. package/dist/{embedding-backfill-79br4kk6.js → embedding-backfill-anty7zdf.js} +3 -3
  5. package/dist/{embedding-cache-zn4r1c31.js → embedding-cache-dveynq4m.js} +1 -1
  6. package/dist/features/magic-context/memory/storage-memory-embeddings.d.ts +2 -1
  7. package/dist/features/magic-context/memory/storage-memory-embeddings.d.ts.map +1 -1
  8. package/dist/features/magic-context/overflow-detection.d.ts.map +1 -1
  9. package/dist/features/magic-context/project-embedding-registry.d.ts +5 -2
  10. package/dist/features/magic-context/project-embedding-registry.d.ts.map +1 -1
  11. package/dist/hooks/magic-context/compartment-runner-historian.d.ts.map +1 -1
  12. package/dist/hooks/magic-context/compartment-runner-incremental.d.ts.map +1 -1
  13. package/dist/{index-sgsaf60r.js → index-3nxhxeeg.js} +3 -3
  14. package/dist/{index-esym6cw4.js → index-42fg6tzz.js} +3 -3
  15. package/dist/{index-y33x200y.js → index-4536jdzj.js} +1 -1
  16. package/dist/{index-63kp05sy.js → index-4v50y0jr.js} +1 -1
  17. package/dist/{index-zg5r2syy.js → index-6gd9akdt.js} +1 -1
  18. package/dist/{index-tbhbxb09.js → index-6t6v8prs.js} +5 -5
  19. package/dist/{index-2b7g81z7.js → index-7jvc0rhh.js} +35 -8
  20. package/dist/{index-kjhgxkdx.js → index-9jqaha1g.js} +1 -1
  21. package/dist/{index-634cww4x.js → index-9mxkvdtp.js} +9 -9
  22. package/dist/{index-3cgh0ght.js → index-f455a0g3.js} +1 -1
  23. package/dist/{index-fbg61b3d.js → index-jg5whyrd.js} +4 -4
  24. package/dist/{index-k4c0majv.js → index-jjxpmypb.js} +3 -3
  25. package/dist/{index-e6s2jpr8.js → index-jyj9jg9f.js} +2 -2
  26. package/dist/{index-k7yytqrd.js → index-mes48s7a.js} +65 -30
  27. package/dist/{index-jjy4shhy.js → index-p8nc9axh.js} +1 -1
  28. package/dist/{index-9emdjcb5.js → index-pw1f07vg.js} +1 -1
  29. package/dist/{index-qjwpqvnf.js → index-qbydvfev.js} +4 -3
  30. package/dist/{index-rjxg7a7m.js → index-qzfz2tvk.js} +5 -1
  31. package/dist/{index-mx4j316q.js → index-t2h3484a.js} +8 -8
  32. package/dist/{index-mhdavdd4.js → index-vhx6yph7.js} +11 -8
  33. package/dist/{index-rakm1eay.js → index-zh683xh2.js} +2 -2
  34. package/dist/index.js +24 -24
  35. package/dist/{message-index-bounded-289186ah.js → message-index-bounded-8s8sx40x.js} +3 -3
  36. package/dist/migration-worker.js +1 -1
  37. package/dist/plugin/dream-timer.d.ts.map +1 -1
  38. package/dist/{project-embedding-registry-xy8dcdys.js → project-embedding-registry-4cv7n37m.js} +2 -2
  39. package/dist/raw-ordinal-warmup-worker.js +4 -4
  40. package/dist/{read-session-chunk-frnwxnjg.js → read-session-chunk-wwg20mte.js} +2 -2
  41. package/dist/{recomp-orchestrator-cvsfmctf.js → recomp-orchestrator-vg4cxyp7.js} +12 -12
  42. package/dist/{render-2a83mgrp.js → render-f32trg2t.js} +6 -6
  43. package/dist/{search-archive-f5dzec0e.js → search-archive-yh6xtvrx.js} +5 -5
  44. package/dist/{search-fxtb4844.js → search-ygtyb91s.js} +11 -11
  45. package/dist/{storage-memory-hhrvfw0x.js → storage-memory-p91f7b5h.js} +2 -2
  46. package/dist/{storage-tags-2d2ba8e9.js → storage-tags-5nke1bdt.js} +1 -1
  47. package/dist/tools/ctx-reduce/constants.d.ts.map +1 -1
  48. package/dist/{transform-postprocess-phase-fyw30790.js → transform-postprocess-phase-958fmjs5.js} +13 -13
  49. package/dist/v2/auto-search-worker.js +5 -5
  50. package/dist/v2/chunk-embedding-write-worker.js +1 -1
  51. package/dist/v2/{context-08pwkj6g.js → context-3g3jvxg8.js} +64 -29
  52. package/dist/v2/{embedding-backfill-nhgp8znm.js → embedding-backfill-ra9gbbs4.js} +3 -3
  53. package/dist/v2/{embedding-cache-zn4r1c31.js → embedding-cache-dveynq4m.js} +1 -1
  54. package/dist/v2/{message-index-bounded-p69v4wpy.js → message-index-bounded-j1sxtefe.js} +3 -3
  55. package/dist/v2/migration-worker.js +1 -1
  56. package/dist/v2/{project-embedding-registry-qz9x79kn.js → project-embedding-registry-gdaqb7h0.js} +2 -2
  57. package/dist/v2/raw-ordinal-warmup-worker.js +4 -4
  58. package/dist/v2/{read-session-chunk-qzw3vedr.js → read-session-chunk-p6z3kmdj.js} +2 -2
  59. package/dist/v2/{recomp-orchestrator-4mrvs5yc.js → recomp-orchestrator-29m3cc5b.js} +11 -11
  60. package/dist/v2/{render-r2djh67k.js → render-jpj43axy.js} +6 -6
  61. package/dist/v2/{search-archive-4bq4ff8q.js → search-archive-wbhxp0p1.js} +5 -5
  62. package/dist/v2/{search-51qr14ed.js → search-ybyc7vmx.js} +10 -10
  63. package/dist/v2/{server-bhr92yb4.js → server-1qxdyz4p.js} +2 -2
  64. package/dist/v2/{server-nbdfv1wx.js → server-8f92sd2r.js} +1 -1
  65. package/dist/v2/{server-zzwje0mz.js → server-8m5wk6aq.js} +3 -3
  66. package/dist/v2/{server-606mnrv4.js → server-9ms9b75c.js} +5 -1
  67. package/dist/v2/{server-s3m2y97h.js → server-b01a7dhj.js} +1 -1
  68. package/dist/v2/{server-f49pxtwf.js → server-df5scn4q.js} +35 -8
  69. package/dist/v2/{server-7wpw3wc6.js → server-fagcnt6j.js} +11 -8
  70. package/dist/v2/{server-b25nvm9c.js → server-ga6y57vh.js} +1 -1
  71. package/dist/v2/{server-2ek9exbe.js → server-kx5egpt7.js} +3 -3
  72. package/dist/v2/{server-9emdjcb5.js → server-pw1f07vg.js} +1 -1
  73. package/dist/v2/{server-qjwpqvnf.js → server-qbydvfev.js} +4 -3
  74. package/dist/v2/{server-c1vcbszm.js → server-qdpd8h27.js} +1 -1
  75. package/dist/v2/{server-d2a639dg.js → server-r851hxn5.js} +8 -8
  76. package/dist/v2/{server-p2wxmjc3.js → server-t45hgcsg.js} +2 -2
  77. package/dist/v2/{server-awth2wsg.js → server-x22jtpna.js} +1 -1
  78. package/dist/v2/{server-b25kh28g.js → server-xpy46ddq.js} +3 -3
  79. package/dist/v2/server.js +2 -2
  80. package/dist/v2/{storage-memory-hhrvfw0x.js → storage-memory-p91f7b5h.js} +2 -2
  81. package/dist/v2/{storage-tags-4t9fb4ch.js → storage-tags-s7nvvyg8.js} +1 -1
  82. package/dist/v2/{v2-archive-reader-avcf7a5n.js → v2-archive-reader-5njmg3a3.js} +1 -1
  83. package/dist/v2/{wrapup-orchestrator-zwpjqymz.js → wrapup-orchestrator-ahkq8a61.js} +11 -11
  84. package/dist/{v2-archive-reader-cnhvhggz.js → v2-archive-reader-y38khjax.js} +1 -1
  85. package/dist/{wrapup-orchestrator-g1gnymt3.js → wrapup-orchestrator-gjqaac65.js} +13 -13
  86. package/package.json +1 -1
@@ -39,8 +39,8 @@ import {
39
39
  sweepAllRegisteredProjects2,
40
40
  _setTestProviderFactoryForProject2,
41
41
  _resetProjectEmbeddingRegistryForTests2
42
- } from "./index-mhdavdd4.js";
43
- import"./index-qjwpqvnf.js";
42
+ } from "./index-vhx6yph7.js";
43
+ import"./index-qbydvfev.js";
44
44
  import"./index-2amn2s73.js";
45
45
  import"./index-qt1qqasc.js";
46
46
  import"./index-nyjztqyj.js";
@@ -19,7 +19,7 @@ serveWorkerJobs(async (input, port) => {
19
19
  await main();
20
20
  async function main() {
21
21
  if (input.v2ArchiveReader) {
22
- const { serveV2ArchiveReads } = await import("./v2-archive-reader-cnhvhggz.js");
22
+ const { serveV2ArchiveReads } = await import("./v2-archive-reader-y38khjax.js");
23
23
  await serveV2ArchiveReads(port, openConnections);
24
24
  return;
25
25
  }
@@ -51,7 +51,7 @@ serveWorkerJobs(async (input, port) => {
51
51
  await runMessageFtsRowidMapBackfill(db);
52
52
  reply = { kind: "fts-rowid-backfill" };
53
53
  } else if (input.searchArchive) {
54
- const { renderSearchArchive } = await import("./search-archive-f5dzec0e.js");
54
+ const { renderSearchArchive } = await import("./search-archive-yh6xtvrx.js");
55
55
  const { readRawSessionMessageIdOrdinalsForRangeFromDb } = await import("./read-session-raw-pgc9gxtn.js");
56
56
  const archive = input.searchArchive;
57
57
  let raw;
@@ -81,7 +81,7 @@ serveWorkerJobs(async (input, port) => {
81
81
  const { setHarness } = await import("./harness-e4avh192.js");
82
82
  setHarness(input.harness ?? "opencode");
83
83
  const [{ indexMessageInShortChunks }, { configureContextDatabasePragmas }] = await Promise.all([
84
- import("./message-index-bounded-289186ah.js"),
84
+ import("./message-index-bounded-8s8sx40x.js"),
85
85
  import("./sqlite-context-pragmas-mv9jqwjh.js")
86
86
  ]);
87
87
  configureContextDatabasePragmas(db);
@@ -95,7 +95,7 @@ serveWorkerJobs(async (input, port) => {
95
95
  measurements: result.measurements
96
96
  };
97
97
  } else if (input.tagRatio !== undefined) {
98
- const { scanTagOwnerSummary, scanTagOwnerDelta } = await import("./storage-tags-2d2ba8e9.js");
98
+ const { scanTagOwnerSummary, scanTagOwnerDelta } = await import("./storage-tags-5nke1bdt.js");
99
99
  const delta = input.tagState ? scanTagOwnerDelta(db, input.sessionId, input.tagState) : null;
100
100
  if (delta)
101
101
  reply = { kind: "tag-delta", delta };
@@ -38,8 +38,8 @@ import {
38
38
  readSessionChunk2,
39
39
  getRawSessionMessageIdsThrough2,
40
40
  readRawSessionSeedTail2
41
- } from "./index-kjhgxkdx.js";
42
- import"./index-rjxg7a7m.js";
41
+ } from "./index-9jqaha1g.js";
42
+ import"./index-qzfz2tvk.js";
43
43
  import"./index-1zx87sdm.js";
44
44
  import"./index-vdzd98ry.js";
45
45
  import"./index-r3f85n7y.js";
@@ -7,26 +7,26 @@ import {
7
7
  setRecompTerminal2,
8
8
  buildRecompDeps2,
9
9
  runManagedRecomp2
10
- } from "./index-fbg61b3d.js";
11
- import"./index-2b7g81z7.js";
10
+ } from "./index-jg5whyrd.js";
11
+ import"./index-7jvc0rhh.js";
12
12
  import"./index-qxzk5s30.js";
13
13
  import"./index-sd3egckz.js";
14
- import"./index-esym6cw4.js";
15
- import"./index-e6s2jpr8.js";
16
- import"./index-9emdjcb5.js";
17
- import"./index-mhdavdd4.js";
18
- import"./index-qjwpqvnf.js";
19
- import"./index-y33x200y.js";
14
+ import"./index-42fg6tzz.js";
15
+ import"./index-jyj9jg9f.js";
16
+ import"./index-pw1f07vg.js";
17
+ import"./index-vhx6yph7.js";
18
+ import"./index-qbydvfev.js";
19
+ import"./index-4536jdzj.js";
20
20
  import"./index-ab86c21b.js";
21
- import"./index-jjy4shhy.js";
21
+ import"./index-p8nc9axh.js";
22
22
  import"./index-2amn2s73.js";
23
23
  import"./index-ke0mkz7g.js";
24
24
  import"./index-h1qh9n8b.js";
25
25
  import"./index-fqth7850.js";
26
26
  import"./index-61a853ky.js";
27
27
  import"./index-qt1qqasc.js";
28
- import"./index-kjhgxkdx.js";
29
- import"./index-rjxg7a7m.js";
28
+ import"./index-9jqaha1g.js";
29
+ import"./index-qzfz2tvk.js";
30
30
  import"./index-1zx87sdm.js";
31
31
  import"./index-vdzd98ry.js";
32
32
  import"./index-y14pawe1.js";
@@ -36,7 +36,7 @@ import"./index-r3f85n7y.js";
36
36
  import"./index-fd3hkyk1.js";
37
37
  import"./index-1vv1ka4a.js";
38
38
  import"./index-gcf2x04k.js";
39
- import"./index-3cgh0ght.js";
39
+ import"./index-f455a0g3.js";
40
40
  import"./index-fb3zxn06.js";
41
41
  import"./index-hyvxmz3e.js";
42
42
  import"./index-fr0wbhdn.js";
@@ -2,20 +2,20 @@ import {
2
2
  renderMessageByOrdinal2,
3
3
  renderVerboseRangeForTool2,
4
4
  renderItemByTag2
5
- } from "./index-rakm1eay.js";
6
- import"./index-y33x200y.js";
5
+ } from "./index-zh683xh2.js";
6
+ import"./index-4536jdzj.js";
7
7
  import"./index-ab86c21b.js";
8
- import"./index-jjy4shhy.js";
8
+ import"./index-p8nc9axh.js";
9
9
  import"./index-2amn2s73.js";
10
10
  import"./index-ke0mkz7g.js";
11
- import"./index-kjhgxkdx.js";
12
- import"./index-rjxg7a7m.js";
11
+ import"./index-9jqaha1g.js";
12
+ import"./index-qzfz2tvk.js";
13
13
  import"./index-1zx87sdm.js";
14
14
  import"./index-vdzd98ry.js";
15
15
  import"./index-r3f85n7y.js";
16
16
  import"./index-1vv1ka4a.js";
17
17
  import"./index-gcf2x04k.js";
18
- import"./index-3cgh0ght.js";
18
+ import"./index-f455a0g3.js";
19
19
  import"./index-fb3zxn06.js";
20
20
  import"./index-hyvxmz3e.js";
21
21
  import"./index-fr0wbhdn.js";
@@ -2,11 +2,11 @@ import {
2
2
  unresolvedLiveTailRefusal2,
3
3
  renderSearchArchive2,
4
4
  renderSearchArchiveOffThread2
5
- } from "./index-k4c0majv.js";
6
- import"./index-sgsaf60r.js";
7
- import"./index-zg5r2syy.js";
8
- import"./index-kjhgxkdx.js";
9
- import"./index-rjxg7a7m.js";
5
+ } from "./index-jjxpmypb.js";
6
+ import"./index-3nxhxeeg.js";
7
+ import"./index-6gd9akdt.js";
8
+ import"./index-9jqaha1g.js";
9
+ import"./index-qzfz2tvk.js";
10
10
  import"./index-1zx87sdm.js";
11
11
  import"./index-vdzd98ry.js";
12
12
  import"./index-r3f85n7y.js";
@@ -5,20 +5,20 @@ import {
5
5
  resolveMemoriesByIdsForSearch2,
6
6
  unifiedSearch2,
7
7
  formatSearchResults2
8
- } from "./index-634cww4x.js";
9
- import"./index-63kp05sy.js";
10
- import"./index-zg5r2syy.js";
11
- import"./index-esym6cw4.js";
12
- import"./index-e6s2jpr8.js";
13
- import"./index-9emdjcb5.js";
14
- import"./index-mhdavdd4.js";
15
- import"./index-qjwpqvnf.js";
8
+ } from "./index-9mxkvdtp.js";
9
+ import"./index-4v50y0jr.js";
10
+ import"./index-6gd9akdt.js";
11
+ import"./index-42fg6tzz.js";
12
+ import"./index-jyj9jg9f.js";
13
+ import"./index-pw1f07vg.js";
14
+ import"./index-vhx6yph7.js";
15
+ import"./index-qbydvfev.js";
16
16
  import"./index-ab86c21b.js";
17
- import"./index-jjy4shhy.js";
17
+ import"./index-p8nc9axh.js";
18
18
  import"./index-2amn2s73.js";
19
19
  import"./index-qt1qqasc.js";
20
- import"./index-kjhgxkdx.js";
21
- import"./index-rjxg7a7m.js";
20
+ import"./index-9jqaha1g.js";
21
+ import"./index-qzfz2tvk.js";
22
22
  import"./index-1zx87sdm.js";
23
23
  import"./index-vdzd98ry.js";
24
24
  import"./index-nyjztqyj.js";
@@ -31,8 +31,8 @@ import {
31
31
  deleteMemory2,
32
32
  getMemoryCount2,
33
33
  getMemoryCountsByStatus2
34
- } from "./index-9emdjcb5.js";
35
- import"./index-qjwpqvnf.js";
34
+ } from "./index-pw1f07vg.js";
35
+ import"./index-qbydvfev.js";
36
36
  import"./index-fr0wbhdn.js";
37
37
  import"./index-gzy5w8ya.js";
38
38
  export {
@@ -64,7 +64,7 @@ import {
64
64
  adoptNullOwnerToolTag2,
65
65
  getCandidateToolOwners2,
66
66
  pickNearestPriorOwner2
67
- } from "./index-rjxg7a7m.js";
67
+ } from "./index-qzfz2tvk.js";
68
68
  import"./index-1zx87sdm.js";
69
69
  import"./index-r3f85n7y.js";
70
70
  import"./index-xtv4d4hv.js";
@@ -1 +1 @@
1
- {"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../src/tools/ctx-reduce/constants.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,sBAAsB,qzCAKsI,CAAC;AAE1K,wBAAgB,oBAAoB,CAAC,YAAY,EAAE,MAAM,EAAE,cAAc,SAAI,GAAG,MAAM,CAarF"}
1
+ {"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../src/tools/ctx-reduce/constants.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,sBAAsB,qzCAKsI,CAAC;AAE1K,wBAAgB,oBAAoB,CAAC,YAAY,EAAE,MAAM,EAAE,cAAc,SAAI,GAAG,MAAM,CAcrF"}
@@ -19,27 +19,27 @@ import {
19
19
  finalizeMessageRepresentation2,
20
20
  runPostTransformPhase2,
21
21
  checkM0MutationDriftAndSignal2
22
- } from "./index-mx4j316q.js";
23
- import"./index-63kp05sy.js";
24
- import"./index-2b7g81z7.js";
22
+ } from "./index-t2h3484a.js";
23
+ import"./index-4v50y0jr.js";
24
+ import"./index-7jvc0rhh.js";
25
25
  import"./index-qxzk5s30.js";
26
26
  import"./index-sd3egckz.js";
27
- import"./index-esym6cw4.js";
28
- import"./index-e6s2jpr8.js";
29
- import"./index-9emdjcb5.js";
30
- import"./index-mhdavdd4.js";
31
- import"./index-qjwpqvnf.js";
32
- import"./index-y33x200y.js";
27
+ import"./index-42fg6tzz.js";
28
+ import"./index-jyj9jg9f.js";
29
+ import"./index-pw1f07vg.js";
30
+ import"./index-vhx6yph7.js";
31
+ import"./index-qbydvfev.js";
32
+ import"./index-4536jdzj.js";
33
33
  import"./index-ab86c21b.js";
34
- import"./index-jjy4shhy.js";
34
+ import"./index-p8nc9axh.js";
35
35
  import"./index-2amn2s73.js";
36
36
  import"./index-ke0mkz7g.js";
37
37
  import"./index-h1qh9n8b.js";
38
38
  import"./index-fqth7850.js";
39
39
  import"./index-61a853ky.js";
40
40
  import"./index-qt1qqasc.js";
41
- import"./index-kjhgxkdx.js";
42
- import"./index-rjxg7a7m.js";
41
+ import"./index-9jqaha1g.js";
42
+ import"./index-qzfz2tvk.js";
43
43
  import"./index-1zx87sdm.js";
44
44
  import"./index-vdzd98ry.js";
45
45
  import"./index-y14pawe1.js";
@@ -49,7 +49,7 @@ import"./index-r3f85n7y.js";
49
49
  import"./index-fd3hkyk1.js";
50
50
  import"./index-1vv1ka4a.js";
51
51
  import"./index-gcf2x04k.js";
52
- import"./index-3cgh0ght.js";
52
+ import"./index-f455a0g3.js";
53
53
  import"./index-fb3zxn06.js";
54
54
  import"./index-hyvxmz3e.js";
55
55
  import"./index-fr0wbhdn.js";
@@ -27,11 +27,11 @@ serveWorkerJobs(async (initial, port) => {
27
27
  { Database, registerSqliteDiagnosticSink },
28
28
  { log }
29
29
  ] = await Promise.all([
30
- import("./embedding-backfill-nhgp8znm.js"),
31
- import("./embedding-cache-zn4r1c31.js"),
32
- import("./storage-memory-hhrvfw0x.js"),
33
- import("./project-embedding-registry-qz9x79kn.js"),
34
- import("./search-51qr14ed.js"),
30
+ import("./embedding-backfill-ra9gbbs4.js"),
31
+ import("./embedding-cache-dveynq4m.js"),
32
+ import("./storage-memory-p91f7b5h.js"),
33
+ import("./project-embedding-registry-gdaqb7h0.js"),
34
+ import("./search-ybyc7vmx.js"),
35
35
  import("./compartment-chunk-embedding-6v74y2r3.js"),
36
36
  import("./embedding-activity-g1dhes6g.js"),
37
37
  import("./harness-e4avh192.js"),
@@ -36,7 +36,7 @@ import"./server-jrs4gny6.js";
36
36
  import {
37
37
  LATEST_SUPPORTED_VERSION,
38
38
  enforceSchemaFence
39
- } from "./server-b25nvm9c.js";
39
+ } from "./server-ga6y57vh.js";
40
40
  import"./server-5zx51pm4.js";
41
41
  import"./server-3mb205v9.js";
42
42
  import"./server-bzebqckc.js";
@@ -254,7 +254,7 @@ import {
254
254
  startCompartmentAgent,
255
255
  setRecompStarting2,
256
256
  setRecompTerminal2
257
- } from "./server-f49pxtwf.js";
257
+ } from "./server-df5scn4q.js";
258
258
  import {
259
259
  embedPauseBySession,
260
260
  embedRunStateBySession,
@@ -445,12 +445,12 @@ import {
445
445
  saveSourceContent,
446
446
  replaceSourceContent,
447
447
  getSourceContents
448
- } from "./server-nbdfv1wx.js";
448
+ } from "./server-8f92sd2r.js";
449
449
  import {
450
450
  cleanSearchText,
451
451
  matchedSearchSnippet,
452
452
  getLastIndexedOrdinal
453
- } from "./server-c1vcbszm.js";
453
+ } from "./server-qdpd8h27.js";
454
454
  import {
455
455
  ensureSessionMetaRow,
456
456
  clearCachedM0M1,
@@ -714,7 +714,7 @@ import {
714
714
  adoptNullOwnerToolTag2,
715
715
  getCandidateToolOwners2,
716
716
  pickNearestPriorOwner2
717
- } from "./server-606mnrv4.js";
717
+ } from "./server-9ms9b75c.js";
718
718
  import {
719
719
  BoundedSessionMap,
720
720
  getTableColumnNames,
@@ -828,7 +828,7 @@ import {
828
828
  readRawSessionMessageOrdinalById2,
829
829
  readSessionChunk2,
830
830
  readRawSessionSeedTail2
831
- } from "./server-awth2wsg.js";
831
+ } from "./server-x22jtpna.js";
832
832
  import {
833
833
  getMessageIndexEpoch,
834
834
  isMessageIndexSearchable,
@@ -854,7 +854,7 @@ import {
854
854
  resolveMemoriesByIdsForSearch2,
855
855
  unifiedSearch2,
856
856
  formatSearchResults2
857
- } from "./server-d2a639dg.js";
857
+ } from "./server-r851hxn5.js";
858
858
  import {
859
859
  startBootDeadline,
860
860
  getUnconfirmedMigrationHolders,
@@ -870,7 +870,7 @@ import {
870
870
  openDatabaseAsync,
871
871
  isDatabasePersisted,
872
872
  getDatabasePersistenceError
873
- } from "./server-b25nvm9c.js";
873
+ } from "./server-ga6y57vh.js";
874
874
  import {
875
875
  V2_MEMORY_CATEGORIES,
876
876
  CATEGORY_PRIORITY
@@ -946,13 +946,12 @@ import {
946
946
  embedTextForProject2,
947
947
  embedBatchForProject2,
948
948
  countUnembeddedMemoriesForProject2,
949
- embedUnembeddedMemoriesForProject2,
950
949
  embedUnembeddedMemoriesForProjectOutcome2,
951
950
  drainCommitBacklogForProject2,
952
951
  embedSessionCompartmentChunks2,
953
952
  getEmbeddingCoverageStatus2,
954
953
  getAutoEmbeddingSessionCoverage2
955
- } from "./server-7wpw3wc6.js";
954
+ } from "./server-fagcnt6j.js";
956
955
  import {
957
956
  GIT_SWEEP_LEASE_RENEWAL_MS,
958
957
  acquireGitSweepLease,
@@ -967,7 +966,7 @@ import {
967
966
  saveEmbeddingIfHashMatches,
968
967
  invalidateProject2,
969
968
  invalidateMemory2
970
- } from "./server-qjwpqvnf.js";
969
+ } from "./server-qbydvfev.js";
971
970
  import {
972
971
  getCachedLocalEmbeddingPooling,
973
972
  preflightLocalEmbeddingPooling,
@@ -992,8 +991,8 @@ import {
992
991
  readGitFileChangeTimesSince,
993
992
  verificationFileExists,
994
993
  normalizeVerificationFiles
995
- } from "./server-2ek9exbe.js";
996
- import"./server-bhr92yb4.js";
994
+ } from "./server-kx5egpt7.js";
995
+ import"./server-1qxdyz4p.js";
997
996
  import {
998
997
  computeCueContentHash,
999
998
  hasMuralCueColumns,
@@ -1020,7 +1019,7 @@ import {
1020
1019
  archiveMemory2,
1021
1020
  getMemoryCount2,
1022
1021
  getMemoryCountsByStatus2
1023
- } from "./server-9emdjcb5.js";
1022
+ } from "./server-pw1f07vg.js";
1024
1023
  import {
1025
1024
  registerNotificationSink2,
1026
1025
  pushLiveNotification2,
@@ -1067,15 +1066,15 @@ import {
1067
1066
  renderMessageByOrdinal2,
1068
1067
  renderVerboseRangeForTool2,
1069
1068
  renderItemByTag2
1070
- } from "./server-p2wxmjc3.js";
1071
- import"./server-s3m2y97h.js";
1069
+ } from "./server-t45hgcsg.js";
1070
+ import"./server-b01a7dhj.js";
1072
1071
  import {
1073
1072
  readV2ArchiveOffThread2
1074
- } from "./server-zzwje0mz.js";
1073
+ } from "./server-8m5wk6aq.js";
1075
1074
  import {
1076
1075
  unresolvedLiveTailRefusal2,
1077
1076
  renderSearchArchiveOffThread2
1078
- } from "./server-b25kh28g.js";
1077
+ } from "./server-xpy46ddq.js";
1079
1078
  import {
1080
1079
  markHostInstructionRow,
1081
1080
  hostInstructionRow,
@@ -26919,7 +26918,7 @@ function registerRpcHandlers(rpcServer, args) {
26919
26918
  const db = readDatabase();
26920
26919
  if (!db)
26921
26920
  return { ok: false, error: "db unavailable" };
26922
- const { runManagedRecomp } = await importPluginModule(() => import("./recomp-orchestrator-4mrvs5yc.js"));
26921
+ const { runManagedRecomp } = await importPluginModule(() => import("./recomp-orchestrator-29m3cc5b.js"));
26923
26922
  const { sendIgnoredMessage } = await importPluginModule(() => import("./send-session-notification-vtnk598k.js"));
26924
26923
  log2(`[rpc] recomp requested for session ${sessionId}`);
26925
26924
  if (!args.client && !args.hiddenCompletionExecutor) {
@@ -27004,7 +27003,7 @@ function registerRpcHandlers(rpcServer, args) {
27004
27003
  const db = readDatabase();
27005
27004
  if (!db)
27006
27005
  return { ok: false, error: "db unavailable" };
27007
- const { runManagedWrapup } = await importPluginModule(() => import("./wrapup-orchestrator-zwpjqymz.js"));
27006
+ const { runManagedWrapup } = await importPluginModule(() => import("./wrapup-orchestrator-ahkq8a61.js"));
27008
27007
  const model = await args.readSelectedSessionModel?.(sessionId) ?? liveSessionState.liveModelBySession.get(sessionId);
27009
27008
  const window = resolveOpenCodeWrapupWindow(db, sessionId, model);
27010
27009
  if (!window)
@@ -42552,6 +42551,7 @@ function logEmptyIdentityRefusalOnce(directory) {
42552
42551
  log2(`[dreamer] not registering ${directory}: it has no project identity, so no project-scoped work runs for it`);
42553
42552
  }
42554
42553
  var registeredProjects = new Map;
42554
+ var lastMemoryEmbeddingSkip = new WeakMap;
42555
42555
  function stopDreamScheduleTimerIfIdle() {
42556
42556
  if (registeredProjects.size !== 0)
42557
42557
  return;
@@ -42591,6 +42591,8 @@ async function startDreamScheduleTimer(args) {
42591
42591
  }
42592
42592
  }
42593
42593
  registeredProjects.set(args.directory, args);
42594
+ if (previousRegistration !== args)
42595
+ lastMemoryEmbeddingSkip.delete(args);
42594
42596
  if (isNewRegistration) {
42595
42597
  log2(`[dreamer] registered project ${args.projectIdentity} (dreaming=${dreamingEnabled} embeddings=${embeddingSweepEnabled} commits=${commitIndexingEnabled}; total=${registeredProjects.size})`);
42596
42598
  }
@@ -42742,17 +42744,51 @@ async function runProjectMaintenance(reg, origin, db) {
42742
42744
  const sampled = reg.sampleDreamRun?.();
42743
42745
  const current = sampled ? { ...reg, ...sampled } : reg;
42744
42746
  const projectMaintenanceEnabled = Boolean(current.dreamerConfig && current.dreamerConfig.disable !== true) || reg.memoryEnabled === true || current.gitCommitIndexing?.enabled === true || reg.historianChildSweep !== undefined;
42745
- if (!projectMaintenanceEnabled)
42747
+ if (!projectMaintenanceEnabled) {
42748
+ logMemoryEmbeddingOutcome(reg, { kind: "disabled" });
42746
42749
  return;
42750
+ }
42747
42751
  await reg.ensureRegistered(reg.directory, db);
42748
42752
  const memorySnapshot = getProjectEmbeddingSnapshot2(reg.projectIdentity);
42749
- if (memorySnapshot?.enabled) {
42750
- const embeddedCount = await embedUnembeddedMemoriesForProject2(db, reg.projectIdentity);
42751
- if (embeddedCount > 0) {
42752
- log2(`[magic-context] proactively embedded ${embeddedCount} ${embeddedCount === 1 ? "memory" : "memories"} for project ${reg.projectIdentity}`);
42753
+ const outcome = memorySnapshot?.enabled ? await embedUnembeddedMemoriesForProjectOutcome2(db, reg.projectIdentity) : { kind: "disabled" };
42754
+ logMemoryEmbeddingOutcome(reg, outcome);
42755
+ await sweepProject(current, origin, db, current.gitCommitIndexing?.enabled === true);
42756
+ }
42757
+ function logMemoryEmbeddingOutcome(reg, outcome) {
42758
+ let reason;
42759
+ let missingCount;
42760
+ switch (outcome.kind) {
42761
+ case "done":
42762
+ reason = "nothing missing";
42763
+ break;
42764
+ case "disabled":
42765
+ reason = "embedding disabled";
42766
+ break;
42767
+ case "unavailable":
42768
+ reason = outcome.reason === "busy" ? "a session is busy" : "provider unavailable";
42769
+ missingCount = outcome.missingCount;
42770
+ break;
42771
+ case "embedded": {
42772
+ const { count } = outcome;
42773
+ if (count > 0) {
42774
+ lastMemoryEmbeddingSkip.delete(reg);
42775
+ log2(`[magic-context] proactively embedded ${count} ${count === 1 ? "memory" : "memories"} for project ${reg.projectIdentity}`);
42776
+ return;
42777
+ }
42778
+ reason = "no vectors saved";
42779
+ missingCount = outcome.missingCount;
42780
+ break;
42753
42781
  }
42782
+ case "failed":
42783
+ lastMemoryEmbeddingSkip.delete(reg);
42784
+ return;
42754
42785
  }
42755
- await sweepProject(current, origin, db, current.gitCommitIndexing?.enabled === true);
42786
+ const missing = missingCount === undefined ? "" : ` (${missingCount} missing at check)`;
42787
+ const line = `[magic-context] proactive memory embedding skipped for project ${reg.projectIdentity}: ${reason}${missing}`;
42788
+ if (line === lastMemoryEmbeddingSkip.get(reg))
42789
+ return;
42790
+ log2(line);
42791
+ lastMemoryEmbeddingSkip.set(reg, line);
42756
42792
  }
42757
42793
  async function sweepProject(reg, origin, db, gitCommitEnabled) {
42758
42794
  if (!directoryStillExists(reg.directory)) {
@@ -58061,14 +58097,13 @@ Keep: user messages (never stamp one for its directive), your own conversation t
58061
58097
 
58062
58098
  Look at each tag before stamping it; never blanket-stamp a range like "1-50". Many small targeted stamps beat one sweep. \`drop\` accepts "3-5", "1,2,9", "1-5,8,12-15".`;
58063
58099
  function formatCtxReduceReply(stampedCount, selfStampCount = 0) {
58064
- const parts = [];
58065
58100
  if (stampedCount > 0) {
58066
- parts.push(`${stampedCount} tag${stampedCount === 1 ? "" : "s"} stamped.`);
58101
+ return `${stampedCount} tag${stampedCount === 1 ? "" : "s"} stamped.`;
58067
58102
  }
58068
58103
  if (selfStampCount > 0) {
58069
- parts.push(selfStampCount === 1 ? "1 was a ctx_reduce call; leave those alone, they are cleaned up automatically." : `${selfStampCount} were ctx_reduce calls; leave those alone, they are cleaned up automatically.`);
58104
+ return "Nothing stamped: ctx_reduce calls are cleaned up automatically.";
58070
58105
  }
58071
- return parts.join(" ");
58106
+ return "";
58072
58107
  }
58073
58108
  // src/tools/ctx-reduce/tools.ts
58074
58109
  import { createHash as createHash21 } from "node:crypto";
@@ -1,8 +1,8 @@
1
1
  import {
2
2
  ensureMemoryEmbeddings2
3
- } from "./server-bhr92yb4.js";
4
- import"./server-7wpw3wc6.js";
5
- import"./server-qjwpqvnf.js";
3
+ } from "./server-1qxdyz4p.js";
4
+ import"./server-fagcnt6j.js";
5
+ import"./server-qbydvfev.js";
6
6
  import"./server-2amn2s73.js";
7
7
  import"./server-qt1qqasc.js";
8
8
  import"./server-pqgnjf38.js";
@@ -7,7 +7,7 @@ import {
7
7
  invalidateMemory2,
8
8
  resetEmbeddingCacheForTests2,
9
9
  setEmbeddingCacheTtlForTests2
10
- } from "./server-qjwpqvnf.js";
10
+ } from "./server-qbydvfev.js";
11
11
  export {
12
12
  getProjectEmbeddings2 as getProjectEmbeddings,
13
13
  invalidateMemory2 as invalidateMemory,
@@ -4,7 +4,7 @@ import {
4
4
  yieldIndexChunk2
5
5
  } from "./server-gzy5w8ya.js";
6
6
  import"./server-1zx87sdm.js";
7
- import"./server-606mnrv4.js";
7
+ import"./server-9ms9b75c.js";
8
8
  import"./server-d46xewmt.js";
9
9
  import"./server-pavzsdc6.js";
10
10
  import"./server-xc7t2r4k.js";
@@ -16,7 +16,7 @@ import"./server-1d042x6w.js";
16
16
  import"./server-54nc921b.js";
17
17
  import"./server-2ra6pwf3.js";
18
18
  import"./server-vgy98kcd.js";
19
- import"./server-awth2wsg.js";
19
+ import"./server-x22jtpna.js";
20
20
  import {
21
21
  MESSAGE_INDEX_MAX_FTS_BYTES,
22
22
  messageIndexSkipKey,
@@ -24,7 +24,7 @@ import {
24
24
  markMessageIndexDirty,
25
25
  getIndexableContent,
26
26
  indexSingleMessage
27
- } from "./server-c1vcbszm.js";
27
+ } from "./server-qdpd8h27.js";
28
28
  import"./server-98xd6j4r.js";
29
29
  import"./server-yacpgq4s.js";
30
30
 
@@ -19,7 +19,7 @@ import"./server-fb3zxn06.js";
19
19
  import {
20
20
  setSqlitePragmaConfig,
21
21
  initializeDatabase
22
- } from "./server-b25nvm9c.js";
22
+ } from "./server-ga6y57vh.js";
23
23
  import"./server-5zx51pm4.js";
24
24
  import"./server-v0p37hm2.js";
25
25
  import"./server-96ztjvkn.js";
@@ -39,8 +39,8 @@ import {
39
39
  sweepAllRegisteredProjects2,
40
40
  _setTestProviderFactoryForProject2,
41
41
  _resetProjectEmbeddingRegistryForTests2
42
- } from "./server-7wpw3wc6.js";
43
- import"./server-qjwpqvnf.js";
42
+ } from "./server-fagcnt6j.js";
43
+ import"./server-qbydvfev.js";
44
44
  import"./server-2amn2s73.js";
45
45
  import"./server-qt1qqasc.js";
46
46
  import"./server-pqgnjf38.js";
@@ -19,7 +19,7 @@ serveWorkerJobs(async (input, port) => {
19
19
  await main();
20
20
  async function main() {
21
21
  if (input.v2ArchiveReader) {
22
- const { serveV2ArchiveReads } = await import("./v2-archive-reader-avcf7a5n.js");
22
+ const { serveV2ArchiveReads } = await import("./v2-archive-reader-5njmg3a3.js");
23
23
  await serveV2ArchiveReads(port, openConnections);
24
24
  return;
25
25
  }
@@ -51,7 +51,7 @@ serveWorkerJobs(async (input, port) => {
51
51
  await runMessageFtsRowidMapBackfill(db);
52
52
  reply = { kind: "fts-rowid-backfill" };
53
53
  } else if (input.searchArchive) {
54
- const { renderSearchArchive } = await import("./search-archive-4bq4ff8q.js");
54
+ const { renderSearchArchive } = await import("./search-archive-wbhxp0p1.js");
55
55
  const { readRawSessionMessageIdOrdinalsForRangeFromDb } = await import("./read-session-raw-seh1kcvp.js");
56
56
  const archive = input.searchArchive;
57
57
  let raw;
@@ -81,7 +81,7 @@ serveWorkerJobs(async (input, port) => {
81
81
  const { setHarness } = await import("./harness-e4avh192.js");
82
82
  setHarness(input.harness ?? "opencode");
83
83
  const [{ indexMessageInShortChunks }, { configureContextDatabasePragmas }] = await Promise.all([
84
- import("./message-index-bounded-p69v4wpy.js"),
84
+ import("./message-index-bounded-j1sxtefe.js"),
85
85
  import("./sqlite-context-pragmas-mv9jqwjh.js")
86
86
  ]);
87
87
  configureContextDatabasePragmas(db);
@@ -95,7 +95,7 @@ serveWorkerJobs(async (input, port) => {
95
95
  measurements: result.measurements
96
96
  };
97
97
  } else if (input.tagRatio !== undefined) {
98
- const { scanTagOwnerSummary, scanTagOwnerDelta } = await import("./storage-tags-4t9fb4ch.js");
98
+ const { scanTagOwnerSummary, scanTagOwnerDelta } = await import("./storage-tags-s7nvvyg8.js");
99
99
  const delta = input.tagState ? scanTagOwnerDelta(db, input.sessionId, input.tagState) : null;
100
100
  if (delta)
101
101
  reply = { kind: "tag-delta", delta };
@@ -38,8 +38,8 @@ import {
38
38
  readSessionChunk2,
39
39
  getRawSessionMessageIdsThrough2,
40
40
  readRawSessionSeedTail2
41
- } from "./server-awth2wsg.js";
42
- import"./server-606mnrv4.js";
41
+ } from "./server-x22jtpna.js";
42
+ import"./server-9ms9b75c.js";
43
43
  import"./server-1zx87sdm.js";
44
44
  import"./server-vgy98kcd.js";
45
45
  import"./server-arfzfxe8.js";