@cortexkit/pi-magic-context 0.49.56 → 0.49.59

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 (55) hide show
  1. package/dist/auto-search-worker.js +5 -5
  2. package/dist/chunk-embedding-write-worker.js +12 -12
  3. package/dist/{compaction-marker-candidates-9yhrstyb.js → compaction-marker-candidates-nxaamfej.js} +2 -2
  4. package/dist/compaction-marker-candidates-worker.js +1 -1
  5. package/dist/{compartment-chunk-embedding-wg7emg3z.js → compartment-chunk-embedding-avkyp2df.js} +7 -7
  6. package/dist/{embedding-backfill-qde2zywg.js → embedding-backfill-3g3cm51d.js} +12 -12
  7. package/dist/embedding-worker-process.js +1 -1
  8. package/dist/embedding-worker.js +4 -4
  9. package/dist/historian-calibration-extension.js +1 -1
  10. package/dist/{index-j0eagxkz.js → index-1ts77n1b.js} +1 -1
  11. package/dist/{index-9x1jpjeb.js → index-2tk7e0bx.js} +100 -26
  12. package/dist/{index-xssjy4z9.js → index-3s39a1md.js} +1 -1
  13. package/dist/{index-xx1911hb.js → index-453s1hj6.js} +1 -1
  14. package/dist/{index-c3mms4dp.js → index-5hhhxck7.js} +10 -10
  15. package/dist/{index-qm139qq2.js → index-5rcjs14a.js} +2 -2
  16. package/dist/{index-yjgkjkjs.js → index-71rg8j43.js} +1 -1
  17. package/dist/{index-zxm7ckvc.js → index-79xfn84y.js} +2 -2
  18. package/dist/{index-5n3e2gq5.js → index-8gvbskcm.js} +27 -5
  19. package/dist/{index-b1q0h16h.js → index-9cqfbdgb.js} +3 -3
  20. package/dist/{index-ndg15t3x.js → index-cxczethe.js} +4 -4
  21. package/dist/{index-erkb5dee.js → index-e9wkbh8y.js} +8 -8
  22. package/dist/{index-9kaj9ty1.js → index-f4n7tnsf.js} +2 -2
  23. package/dist/{index-nhpvvdhw.js → index-fz4gexgk.js} +11 -3
  24. package/dist/{index-d40ecdbn.js → index-gavj3e6h.js} +4 -4
  25. package/dist/{index-6d0bby9d.js → index-ghp32f9m.js} +2 -2
  26. package/dist/{index-v858d5d1.js → index-jhmz9tgv.js} +1 -1
  27. package/dist/{index-awpx91y5.js → index-k7a8x7ba.js} +1 -1
  28. package/dist/{index-2pptpxq8.js → index-m6kszx0e.js} +4 -4
  29. package/dist/{index-7y60kyea.js → index-pefn1gt5.js} +1 -1
  30. package/dist/{index-jnh7a6a3.js → index-qdy49kwk.js} +4 -4
  31. package/dist/{index-yxeg8zaa.js → index-tm11k42a.js} +9 -4
  32. package/dist/{index-hec3bwev.js → index-txcs0vnj.js} +2 -2
  33. package/dist/{index-625kbnqd.js → index-w4sqw9mf.js} +8 -8
  34. package/dist/{index-rekymyxd.js → index-xan5mt5f.js} +5 -5
  35. package/dist/{index-szn2tac8.js → index-xjhq27z9.js} +1 -1
  36. package/dist/{index-ywmt8sdr.js → index-zgsemyph.js} +26 -11
  37. package/dist/index.js +1172 -373
  38. package/dist/{logger-hhgpkbx1.js → logger-93cnqyh0.js} +1 -1
  39. package/dist/{message-fts-rowid-map-tec2x7qe.js → message-fts-rowid-map-dtbragnt.js} +4 -4
  40. package/dist/{message-index-bounded-ac4qg6aw.js → message-index-bounded-behq385r.js} +9 -9
  41. package/dist/{message-time-backfill-krre2qnb.js → message-time-backfill-8zwv9byv.js} +2 -2
  42. package/dist/migration-worker.js +9 -9
  43. package/dist/{project-embedding-registry-qx2zjbgs.js → project-embedding-registry-63wsm3a8.js} +11 -11
  44. package/dist/raw-ordinal-warmup-worker.js +8 -8
  45. package/dist/{read-session-chunk-jyfcykg4.js → read-session-chunk-ksh32zfv.js} +7 -7
  46. package/dist/{read-session-raw-75dcxtdy.js → read-session-raw-0tytrjye.js} +2 -2
  47. package/dist/{render-gj0nzrg0.js → render-2qed2svq.js} +16 -16
  48. package/dist/{safe-notification-target-8s1xg0q9.js → safe-notification-target-fkyrd95h.js} +2 -2
  49. package/dist/{search-archive-vpxem4pj.js → search-archive-qqj7j1w1.js} +9 -9
  50. package/dist/{search-w12nc025.js → search-vmw1xbqx.js} +19 -19
  51. package/dist/{storage-tags-g0328gwp.js → storage-tags-s0m7e39a.js} +5 -5
  52. package/dist/subagent-entry.js +25 -25
  53. package/dist/tag-snapshot-worker-pi.js +11 -11
  54. package/dist/{v2-archive-reader-r96gp6nc.js → v2-archive-reader-cc7sx6dk.js} +1 -1
  55. package/package.json +3 -1
@@ -27,16 +27,16 @@ serveWorkerJobs(async (initial, port) => {
27
27
  { Database, registerSqliteDiagnosticSink },
28
28
  { log }
29
29
  ] = await Promise.all([
30
- import("./embedding-backfill-qde2zywg.js"),
30
+ import("./embedding-backfill-3g3cm51d.js"),
31
31
  import("./embedding-cache-7rp4gqzr.js"),
32
32
  import("./storage-memory-0ndn65fm.js"),
33
- import("./project-embedding-registry-qx2zjbgs.js"),
34
- import("./search-w12nc025.js"),
35
- import("./compartment-chunk-embedding-wg7emg3z.js"),
33
+ import("./project-embedding-registry-63wsm3a8.js"),
34
+ import("./search-vmw1xbqx.js"),
35
+ import("./compartment-chunk-embedding-avkyp2df.js"),
36
36
  import("./embedding-activity-ew6dshfd.js"),
37
37
  import("./harness-9872e0ym.js"),
38
38
  import("./sqlite-v89bj0yy.js"),
39
- import("./logger-hhgpkbx1.js")
39
+ import("./logger-93cnqyh0.js")
40
40
  ]);
41
41
  setHarness(input.harness);
42
42
  registerSqliteDiagnosticSink(log, getHarness);
@@ -11,37 +11,37 @@ import {
11
11
  isWorkerCloseMessage,
12
12
  exitOnWorkerClose
13
13
  } from "./index-x2n261wp.js";
14
- import"./index-7y60kyea.js";
15
- import"./index-yxeg8zaa.js";
14
+ import"./index-pefn1gt5.js";
15
+ import"./index-tm11k42a.js";
16
16
  import"./index-dnp1jjar.js";
17
- import"./index-qm139qq2.js";
17
+ import"./index-5rcjs14a.js";
18
18
  import"./index-8sqebjzk.js";
19
19
  import"./index-wfqysrwq.js";
20
- import"./index-szn2tac8.js";
21
- import"./index-6d0bby9d.js";
20
+ import"./index-xjhq27z9.js";
21
+ import"./index-ghp32f9m.js";
22
22
  import {
23
23
  replaceCompartmentChunkEmbeddings2,
24
24
  recordChunkEmbedBackoff2,
25
25
  loadUnembeddedSessionChunkCandidates2,
26
26
  countUnembeddedSessionCompartments2
27
- } from "./index-ndg15t3x.js";
27
+ } from "./index-cxczethe.js";
28
28
  import {
29
29
  recordSessionProjectIdentity,
30
30
  acquireGitSweepLease,
31
31
  renewGitSweepLease,
32
32
  releaseGitSweepLease
33
- } from "./index-zxm7ckvc.js";
34
- import"./index-xx1911hb.js";
33
+ } from "./index-79xfn84y.js";
34
+ import"./index-453s1hj6.js";
35
35
  import {
36
36
  LATEST_SUPPORTED_VERSION,
37
37
  enforceSchemaFence
38
- } from "./index-625kbnqd.js";
38
+ } from "./index-w4sqw9mf.js";
39
39
  import"./index-3bb24eb6.js";
40
- import"./index-d40ecdbn.js";
41
- import"./index-v858d5d1.js";
40
+ import"./index-gavj3e6h.js";
41
+ import"./index-jhmz9tgv.js";
42
42
  import"./index-135e8hvg.js";
43
43
  import"./index-n0zjvs3h.js";
44
- import"./index-j0eagxkz.js";
44
+ import"./index-1ts77n1b.js";
45
45
  import {
46
46
  serveWorkerJobs
47
47
  } from "./index-nypgv96r.js";
@@ -9,11 +9,11 @@ import {
9
9
  certifiedMarkerReferenceFloor2,
10
10
  readMarkerReferenceRows2,
11
11
  readKnownMarkerReferenceRows2
12
- } from "./index-xssjy4z9.js";
12
+ } from "./index-3s39a1md.js";
13
13
  import"./index-wfqysrwq.js";
14
14
  import"./index-8sqebjzk.js";
15
15
  import"./index-2qtx0q6h.js";
16
- import"./index-yxeg8zaa.js";
16
+ import"./index-tm11k42a.js";
17
17
  import"./index-0h2mkab2.js";
18
18
  import"./index-dnp1jjar.js";
19
19
  import"./index-x2n261wp.js";
@@ -7,7 +7,7 @@ serveWorkerJobs(async (input, port) => {
7
7
  port.postMessage({ kind: "accepted" });
8
8
  const [{ Database }, { scanMarkerCandidateSnapshot }] = await Promise.all([
9
9
  import("./sqlite-v89bj0yy.js"),
10
- import("./compaction-marker-candidates-9yhrstyb.js")
10
+ import("./compaction-marker-candidates-nxaamfej.js")
11
11
  ]);
12
12
  let db;
13
13
  let reply;
@@ -24,16 +24,16 @@ import {
24
24
  countSessionCompartmentEmbedCoverage2,
25
25
  countSessionCompartmentEmbedCoveragePolite2,
26
26
  countUnembeddedSessionCompartmentsPolite2
27
- } from "./index-ndg15t3x.js";
28
- import"./index-qm139qq2.js";
29
- import"./index-6d0bby9d.js";
30
- import"./index-szn2tac8.js";
27
+ } from "./index-cxczethe.js";
28
+ import"./index-5rcjs14a.js";
29
+ import"./index-ghp32f9m.js";
30
+ import"./index-xjhq27z9.js";
31
31
  import"./index-wfqysrwq.js";
32
32
  import"./index-8sqebjzk.js";
33
- import"./index-j0eagxkz.js";
34
- import"./index-7y60kyea.js";
33
+ import"./index-1ts77n1b.js";
34
+ import"./index-pefn1gt5.js";
35
35
  import"./index-2qtx0q6h.js";
36
- import"./index-yxeg8zaa.js";
36
+ import"./index-tm11k42a.js";
37
37
  import"./index-0h2mkab2.js";
38
38
  import"./index-dnp1jjar.js";
39
39
  import"./index-x2n261wp.js";
@@ -1,24 +1,24 @@
1
1
  import {
2
2
  ensureMemoryEmbeddings2
3
- } from "./index-jnh7a6a3.js";
4
- import"./index-erkb5dee.js";
3
+ } from "./index-qdy49kwk.js";
4
+ import"./index-e9wkbh8y.js";
5
5
  import"./index-9p40dgkm.js";
6
6
  import"./index-hgd00nas.js";
7
7
  import"./index-yhzhdp3m.js";
8
- import"./index-zxm7ckvc.js";
9
- import"./index-ndg15t3x.js";
10
- import"./index-hec3bwev.js";
11
- import"./index-qm139qq2.js";
8
+ import"./index-79xfn84y.js";
9
+ import"./index-cxczethe.js";
10
+ import"./index-txcs0vnj.js";
11
+ import"./index-5rcjs14a.js";
12
12
  import"./index-vcegxfwg.js";
13
- import"./index-xx1911hb.js";
14
- import"./index-6d0bby9d.js";
15
- import"./index-szn2tac8.js";
13
+ import"./index-453s1hj6.js";
14
+ import"./index-ghp32f9m.js";
15
+ import"./index-xjhq27z9.js";
16
16
  import"./index-wfqysrwq.js";
17
17
  import"./index-8sqebjzk.js";
18
- import"./index-j0eagxkz.js";
19
- import"./index-7y60kyea.js";
18
+ import"./index-1ts77n1b.js";
19
+ import"./index-pefn1gt5.js";
20
20
  import"./index-2qtx0q6h.js";
21
- import"./index-yxeg8zaa.js";
21
+ import"./index-tm11k42a.js";
22
22
  import"./index-0h2mkab2.js";
23
23
  import"./index-dnp1jjar.js";
24
24
  import"./index-x2n261wp.js";
@@ -1,7 +1,7 @@
1
1
  import"./index-0h2mkab2.js";
2
2
  import {
3
3
  log2
4
- } from "./index-yxeg8zaa.js";
4
+ } from "./index-tm11k42a.js";
5
5
  import"./index-dnp1jjar.js";
6
6
  import {
7
7
  inRootAsyncContext2
@@ -3,17 +3,17 @@ import {
3
3
  } from "./index-0h2mkab2.js";
4
4
  import {
5
5
  log2
6
- } from "./index-yxeg8zaa.js";
6
+ } from "./index-tm11k42a.js";
7
7
  import"./index-dnp1jjar.js";
8
8
  import"./index-vcegxfwg.js";
9
- import"./index-qm139qq2.js";
10
- import"./index-7y60kyea.js";
9
+ import"./index-5rcjs14a.js";
10
+ import"./index-pefn1gt5.js";
11
11
  import"./index-2qtx0q6h.js";
12
12
  import {
13
13
  resolveLocalEmbeddingWorkerRuntime,
14
14
  getLocalEmbeddingNativeMemoryStats,
15
15
  LocalEmbeddingProvider
16
- } from "./index-hec3bwev.js";
16
+ } from "./index-txcs0vnj.js";
17
17
  import {
18
18
  setStoragePrivatePermissionEnforcement
19
19
  } from "./index-81nthk8j.js";
@@ -10,7 +10,7 @@ import {
10
10
  } from "./index-0b5kqg7n.js";
11
11
  import"./index-4knyh1kt.js";
12
12
  import"./index-6x556c2q.js";
13
- import"./index-yxeg8zaa.js";
13
+ import"./index-tm11k42a.js";
14
14
  import"./index-0h2mkab2.js";
15
15
  import"./index-dnp1jjar.js";
16
16
  export {
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  log2
3
- } from "./index-yxeg8zaa.js";
3
+ } from "./index-tm11k42a.js";
4
4
 
5
5
  // ../plugin/src/shared/write-transaction-timing.ts
6
6
  var SLOW_WRITE_TRANSACTION_THRESHOLD_MS = 1000;
@@ -17,7 +17,7 @@ import {
17
17
  getMagicContextStorageDir,
18
18
  log2,
19
19
  sessionLog2
20
- } from "./index-yxeg8zaa.js";
20
+ } from "./index-tm11k42a.js";
21
21
  import {
22
22
  piModelRefToCanonical,
23
23
  modelRefLookupOrder,
@@ -38,25 +38,25 @@ import {
38
38
  } from "./index-135e8hvg.js";
39
39
  import {
40
40
  estimateTokens
41
- } from "./index-7y60kyea.js";
41
+ } from "./index-pefn1gt5.js";
42
42
  import {
43
43
  SubcClient,
44
44
  connectionFileExists,
45
45
  SYNAPSE_DEFAULT_MODEL,
46
46
  toSynapseLaneDescriptor,
47
47
  SynapseEmbeddingProvider
48
- } from "./index-qm139qq2.js";
48
+ } from "./index-5rcjs14a.js";
49
49
  import {
50
50
  inRootAsyncContext2,
51
51
  Database2
52
52
  } from "./index-2qtx0q6h.js";
53
53
  import {
54
54
  noteRawSessionSummaryRowWritten2
55
- } from "./index-szn2tac8.js";
55
+ } from "./index-xjhq27z9.js";
56
56
  import {
57
57
  piHarnessKindFromExecutable,
58
58
  getErrorMessage
59
- } from "./index-625kbnqd.js";
59
+ } from "./index-w4sqw9mf.js";
60
60
  import {
61
61
  getOrCreateSessionMeta,
62
62
  updateSessionMeta,
@@ -70,10 +70,10 @@ import {
70
70
  renderMessageByOrdinal2,
71
71
  renderVerboseRange2,
72
72
  renderItemByTag2
73
- } from "./index-ywmt8sdr.js";
73
+ } from "./index-zgsemyph.js";
74
74
  import {
75
75
  getLastIndexedOrdinal
76
- } from "./index-2pptpxq8.js";
76
+ } from "./index-m6kszx0e.js";
77
77
  import {
78
78
  TODO_STATUSES,
79
79
  TODO_PRIORITIES,
@@ -89,11 +89,11 @@ import {
89
89
  getCompactionMarkerPublicationState,
90
90
  compareAndSetCompactionMarkerPublicationState,
91
91
  getDeferredClearedCompactionMarkerState
92
- } from "./index-5n3e2gq5.js";
92
+ } from "./index-8gvbskcm.js";
93
93
  import {
94
94
  stableStringify,
95
95
  BoundedSessionMap
96
- } from "./index-v858d5d1.js";
96
+ } from "./index-jhmz9tgv.js";
97
97
  import {
98
98
  computeCueContentHash,
99
99
  getMuralCueState,
@@ -116,7 +116,7 @@ import {
116
116
  } from "./index-yhzhdp3m.js";
117
117
  import {
118
118
  preflightLocalEmbeddingPooling
119
- } from "./index-hec3bwev.js";
119
+ } from "./index-txcs0vnj.js";
120
120
  import {
121
121
  withQueryEmbeddingDeadline,
122
122
  markProjectLoadUntrusted2,
@@ -128,20 +128,20 @@ import {
128
128
  unregisterProjectEmbedding2,
129
129
  getProjectEmbeddingSnapshot2,
130
130
  embedTextForProject2
131
- } from "./index-erkb5dee.js";
131
+ } from "./index-e9wkbh8y.js";
132
132
  import {
133
133
  directoryHasGitMetadata,
134
134
  resolveProjectIdentityForSession,
135
135
  normalizeStoredProjectPath,
136
136
  storedPathBelongsToIdentity
137
- } from "./index-xx1911hb.js";
137
+ } from "./index-453s1hj6.js";
138
138
  import {
139
139
  createUnifiedSearchDiagnostics2,
140
140
  parseIdShapedQuery2,
141
141
  resolveMemoriesByIdsForSearch2,
142
142
  unifiedSearch2,
143
143
  formatSearchResults2
144
- } from "./index-c3mms4dp.js";
144
+ } from "./index-5hhhxck7.js";
145
145
  import {
146
146
  resolveOpenCodeDbPath,
147
147
  assertOpenCodeStoreGeneration
@@ -150,14 +150,14 @@ import {
150
150
  hasRawMessageProvider2,
151
151
  setRawMessageProvider2,
152
152
  readSessionChunk2
153
- } from "./index-rekymyxd.js";
153
+ } from "./index-xan5mt5f.js";
154
154
  import {
155
155
  resolveWorkspaceShareCategories,
156
156
  resolveWorkspaceIdentitySet,
157
157
  expandWorkspaceIdentitySetWithAliases,
158
158
  resolveStoredPathWorkspaceIdentity,
159
159
  storedPathBelongsToWorkspace
160
- } from "./index-d40ecdbn.js";
160
+ } from "./index-gavj3e6h.js";
161
161
  import {
162
162
  getNoteByIdInScope,
163
163
  getNotes,
@@ -168,7 +168,7 @@ import {
168
168
  updateNote,
169
169
  dismissNotes,
170
170
  dismissNote
171
- } from "./index-awpx91y5.js";
171
+ } from "./index-k7a8x7ba.js";
172
172
  import {
173
173
  isMarkerCandidateBasisCurrent2,
174
174
  invalidateMarkerCandidateBasis2,
@@ -179,10 +179,10 @@ import {
179
179
  certifiedMarkerReferenceFloor2,
180
180
  readMarkerReferenceRows2,
181
181
  readKnownMarkerReferenceRows2
182
- } from "./index-xssjy4z9.js";
182
+ } from "./index-3s39a1md.js";
183
183
  import {
184
184
  renderSearchArchive2
185
- } from "./index-9kaj9ty1.js";
185
+ } from "./index-f4n7tnsf.js";
186
186
  import {
187
187
  computeNormalizedHash
188
188
  } from "./index-9x1f96r8.js";
@@ -191,7 +191,7 @@ import {
191
191
  } from "./index-nrzkqte4.js";
192
192
  import {
193
193
  logSlowWriteTransaction
194
- } from "./index-j0eagxkz.js";
194
+ } from "./index-1ts77n1b.js";
195
195
  import {
196
196
  ensureStorageDirectorySync,
197
197
  writeStorageFileAtomicSync
@@ -4206,6 +4206,60 @@ function codepoints(value) {
4206
4206
  function escapeText(value) {
4207
4207
  return value.replace(/[\r\n]+/g, " ").replace(/\s+/g, " ").trim();
4208
4208
  }
4209
+ var PUNCTUATION_FALLBACKS = {
4210
+ "‘": "'",
4211
+ "’": "'",
4212
+ "‚": "'",
4213
+ "‛": "'",
4214
+ "“": '"',
4215
+ "”": '"',
4216
+ "„": '"',
4217
+ "‟": '"',
4218
+ "–": "-",
4219
+ "—": "-",
4220
+ "…": "...",
4221
+ " ": " ",
4222
+ " ": " ",
4223
+ " ": " "
4224
+ };
4225
+ var REMOVABLE_COMBINING_MARK = /(?![\u0334-\u0338])\p{M}/gu;
4226
+ function hasGlyph(character) {
4227
+ return MURAL_FONT_GLYPHS[character] !== undefined;
4228
+ }
4229
+ function drawableMuralCue(cue) {
4230
+ const text = escapeText(cue);
4231
+ let normalized = "";
4232
+ let changed = false;
4233
+ for (const character of text) {
4234
+ if (hasGlyph(character)) {
4235
+ normalized += character;
4236
+ continue;
4237
+ }
4238
+ changed = true;
4239
+ const replacement = PUNCTUATION_FALLBACKS[character] ?? character.normalize("NFKD").replace(REMOVABLE_COMBINING_MARK, "");
4240
+ for (const part of replacement) {
4241
+ if (!hasGlyph(part))
4242
+ return null;
4243
+ }
4244
+ normalized += replacement;
4245
+ }
4246
+ if (!changed)
4247
+ return cue;
4248
+ const result = escapeText(normalized);
4249
+ return result.length > 0 ? result : null;
4250
+ }
4251
+ function partitionDrawableEntries(entries) {
4252
+ const drawable = [];
4253
+ const undrawableIds = [];
4254
+ for (const entry of entries) {
4255
+ const cue = drawableMuralCue(entry.cue);
4256
+ if (cue === null)
4257
+ undrawableIds.push(entry.id);
4258
+ else
4259
+ drawable.push(cue === entry.cue ? entry : { ...entry, cue });
4260
+ }
4261
+ return { drawable, undrawableIds };
4262
+ }
4209
4263
  function banner(category, roomWidth) {
4210
4264
  const label = ` <${category}> `;
4211
4265
  if (codepoints(label) > roomWidth) {
@@ -4511,11 +4565,12 @@ function snapDimensionToVisionTile(contentPixels, maximum) {
4511
4565
  return Math.min(maximum, Math.max(MURAL_VISION_TILE, Math.ceil(contentPixels / MURAL_VISION_TILE) * MURAL_VISION_TILE));
4512
4566
  }
4513
4567
  function planMuralRender(entries) {
4514
- const roomWidth = chooseRoomWidth(entries);
4515
- const plan = planLines(entries, roomWidth);
4568
+ const { drawable, undrawableIds } = partitionDrawableEntries(entries);
4569
+ const roomWidth = chooseRoomWidth(drawable);
4570
+ const plan = planLines(drawable, roomWidth);
4516
4571
  const candidates = Array.from({ length: MURAL_COLUMNS }, (_, index) => {
4517
4572
  const requestedColumnCount = index + 1;
4518
- const layout = renderLayout(entries, plan, roomWidth, requestedColumnCount);
4573
+ const layout = renderLayout(drawable, plan, roomWidth, requestedColumnCount);
4519
4574
  const contentWidth = layout.columnCount === 0 ? 0 : layout.columnCount * roomWidth * MURAL_CELL_WIDTH + MURAL_COLUMN_GAP * (layout.columnCount - 1) * MURAL_CELL_WIDTH;
4520
4575
  const contentHeight = layout.rowCount * MURAL_LINE_PITCH;
4521
4576
  const width = snapDimensionToVisionTile(contentWidth, MURAL_WIDTH);
@@ -4544,7 +4599,13 @@ function planMuralRender(entries) {
4544
4599
  }
4545
4600
  return candidate.requestedColumnCount < best.requestedColumnCount ? candidate : best;
4546
4601
  }, firstCandidate);
4547
- return { roomWidth, layout: selected.layout, width: selected.width, height: selected.height };
4602
+ return {
4603
+ roomWidth,
4604
+ layout: selected.layout,
4605
+ width: selected.width,
4606
+ height: selected.height,
4607
+ undrawableIds
4608
+ };
4548
4609
  }
4549
4610
  function rasterMural(plan) {
4550
4611
  const { roomWidth, layout, width, height } = plan;
@@ -4580,6 +4641,7 @@ function renderPlannedMural(plan) {
4580
4641
  layoutItems: layout.layoutItems,
4581
4642
  renderedIds: layout.renderedIds,
4582
4643
  droppedIds: layout.droppedIds,
4644
+ undrawableIds: plan.undrawableIds,
4583
4645
  categoryLineUsage: layout.usage,
4584
4646
  filledLineCount: layout.filledLineCount,
4585
4647
  width,
@@ -4611,13 +4673,17 @@ function poolContentHash(pool, memory) {
4611
4673
  function getMuralCoverage(db, projectIdentity, pool) {
4612
4674
  const { memories, cueState } = pool ?? readMuralPool(db, projectIdentity);
4613
4675
  let cuedMemoryCount = 0;
4676
+ let undrawableCueCount = 0;
4614
4677
  for (const memory of memories) {
4615
4678
  const state = cueState.get(memory.id);
4616
4679
  if (state && typeof state.cue === "string" && state.cue.trim() !== "" && state.hash !== null && state.hash === poolContentHash(pool, memory)) {
4617
- cuedMemoryCount += 1;
4680
+ if (drawableMuralCue(state.cue) === null)
4681
+ undrawableCueCount += 1;
4682
+ else
4683
+ cuedMemoryCount += 1;
4618
4684
  }
4619
4685
  }
4620
- return { activeMemoryCount: memories.length, cuedMemoryCount };
4686
+ return { activeMemoryCount: memories.length, cuedMemoryCount, undrawableCueCount };
4621
4687
  }
4622
4688
  function resolveMural(db, projectIdentity, budgetTokens = DEFAULT_MURAL_MEMORY_BUDGET, pool) {
4623
4689
  const memories = pool?.memories ?? getMemoriesByProject2(db, projectIdentity, ["active", "permanent"]);
@@ -4720,7 +4786,8 @@ function ensureMuralRendered(db, projectIdentity, budgetTokens = DEFAULT_MURAL_M
4720
4786
  const pool = readMuralPool(db, projectIdentity);
4721
4787
  const coverage = getMuralCoverage(db, projectIdentity, pool);
4722
4788
  if (coverage.activeMemoryCount === 0 || !muralCoverageGate(coverage.cuedMemoryCount, coverage.activeMemoryCount)) {
4723
- const skipReason = coverage.activeMemoryCount === 0 ? "no active memories" : `only ${coverage.cuedMemoryCount}/${coverage.activeMemoryCount} active memories have current cues (requires ${MIN_MURAL_CUED_MEMORIES} cues or ${MIN_MURAL_COVERAGE * 100}% coverage)`;
4789
+ const undrawable = coverage.undrawableCueCount > 0 ? ` the mural font can draw (${coverage.undrawableCueCount} more use characters it has no glyph for)` : "";
4790
+ const skipReason = coverage.activeMemoryCount === 0 ? "no active memories" : `only ${coverage.cuedMemoryCount}/${coverage.activeMemoryCount} active memories have current cues${undrawable} (requires ${MIN_MURAL_CUED_MEMORIES} cues or ${MIN_MURAL_COVERAGE * 100}% coverage)`;
4724
4791
  log2(`[mural] skipped for ${projectIdentity}: ${skipReason}`);
4725
4792
  return { hasMural: false, rerendered: false, skipReason };
4726
4793
  }
@@ -4735,6 +4802,11 @@ function ensureMuralRendered(db, projectIdentity, budgetTokens = DEFAULT_MURAL_M
4735
4802
  return { ...cached.result };
4736
4803
  }
4737
4804
  const plan = planMuralRender(entries);
4805
+ if (plan.layout.renderedIds.length === 0) {
4806
+ const skipReason = `none of the ${entries.length} overflow cues can be drawn (${plan.undrawableIds.length} use characters the mural font has no glyph for)`;
4807
+ log2(`[mural] skipped for ${projectIdentity}: ${skipReason}`);
4808
+ return { hasMural: false, rerendered: false, skipReason };
4809
+ }
4738
4810
  const textHash = createHash3("sha256").update(plan.layout.text).digest("hex");
4739
4811
  if (existing && existing.contentHash === textHash && existing.width === plan.width && existing.height === plan.height) {
4740
4812
  return rememberRender(db, projectIdentity, key, existing.image, {
@@ -4747,6 +4819,8 @@ function ensureMuralRendered(db, projectIdentity, budgetTokens = DEFAULT_MURAL_M
4747
4819
  });
4748
4820
  }
4749
4821
  const rendered = renderPlannedMural(plan);
4822
+ if (rendered.undrawableIds.length > 0)
4823
+ log2(`[mural] rendered for ${projectIdentity}: ${rendered.renderedIds.length} cues drawn, ${rendered.droppedIds.length} left out for space, ${rendered.undrawableIds.length} left out because the mural font has no glyph for their characters`);
4750
4824
  if (mode === "persist")
4751
4825
  upsertMural(db, {
4752
4826
  projectPath: projectIdentity,
@@ -3,7 +3,7 @@ import {
3
3
  } from "./index-8sqebjzk.js";
4
4
  import {
5
5
  log2
6
- } from "./index-yxeg8zaa.js";
6
+ } from "./index-tm11k42a.js";
7
7
  import {
8
8
  inRootAsyncContext2,
9
9
  getSqliteDatabasePath2
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  getMagicContextStorageDir,
3
3
  log2
4
- } from "./index-yxeg8zaa.js";
4
+ } from "./index-tm11k42a.js";
5
5
  import {
6
6
  inRootAsyncContext2
7
7
  } from "./index-2qtx0q6h.js";
@@ -12,10 +12,10 @@ import {
12
12
  getDataDir,
13
13
  log2,
14
14
  sessionLog2
15
- } from "./index-yxeg8zaa.js";
15
+ } from "./index-tm11k42a.js";
16
16
  import {
17
17
  SubcClient
18
- } from "./index-qm139qq2.js";
18
+ } from "./index-5rcjs14a.js";
19
19
  import {
20
20
  inRootAsyncContext2,
21
21
  getSqliteDatabasePath2,
@@ -24,13 +24,13 @@ import {
24
24
  } from "./index-2qtx0q6h.js";
25
25
  import {
26
26
  runSessionWarmupWorker
27
- } from "./index-szn2tac8.js";
27
+ } from "./index-xjhq27z9.js";
28
28
  import {
29
29
  buildCanonicalChunkTextFromFts2,
30
30
  loadCompartmentChunkEmbeddingsForSearch2,
31
31
  peekCompartmentChunkSearchPool2,
32
32
  warmCompartmentChunkSearchPool2
33
- } from "./index-ndg15t3x.js";
33
+ } from "./index-cxczethe.js";
34
34
  import {
35
35
  saveCommitEmbedding,
36
36
  loadProjectCommitEmbeddings,
@@ -47,13 +47,13 @@ import {
47
47
  getProjectEmbeddingSnapshot2,
48
48
  embedTextForProject2,
49
49
  embedItemsForProject2
50
- } from "./index-erkb5dee.js";
50
+ } from "./index-e9wkbh8y.js";
51
51
  import {
52
52
  recordEmbeddingMeasurement
53
53
  } from "./index-hgd00nas.js";
54
54
  import {
55
55
  scheduleAfterBootQuiet
56
- } from "./index-xx1911hb.js";
56
+ } from "./index-453s1hj6.js";
57
57
  import {
58
58
  saveEmbeddingIfHashMatches,
59
59
  getProjectEmbeddings2
@@ -63,7 +63,7 @@ import {
63
63
  isEmbeddingEnabled,
64
64
  embedText,
65
65
  ensureMemoryEmbeddings2
66
- } from "./index-jnh7a6a3.js";
66
+ } from "./index-qdy49kwk.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-2pptpxq8.js";
94
+ } from "./index-m6kszx0e.js";
95
95
  import {
96
96
  MESSAGE_FTS_SESSION_FILTER_SQL,
97
97
  withMessageFtsSessionFilter
@@ -102,11 +102,11 @@ import {
102
102
  expandWorkspaceIdentitySetWithAliases,
103
103
  resolveStoredPathWorkspaceIdentity,
104
104
  sourceNameForMemory
105
- } from "./index-d40ecdbn.js";
105
+ } from "./index-gavj3e6h.js";
106
106
  import {
107
107
  getNotes,
108
108
  getActivePrimers
109
- } from "./index-awpx91y5.js";
109
+ } from "./index-k7a8x7ba.js";
110
110
  import {
111
111
  computeNormalizedHash
112
112
  } from "./index-9x1f96r8.js";
@@ -1,12 +1,12 @@
1
1
  import {
2
2
  estimateTokens
3
- } from "./index-7y60kyea.js";
3
+ } from "./index-pefn1gt5.js";
4
4
  import {
5
5
  getHarness2
6
6
  } from "./index-0h2mkab2.js";
7
7
  import {
8
8
  log2
9
- } from "./index-yxeg8zaa.js";
9
+ } from "./index-tm11k42a.js";
10
10
  import {
11
11
  inRootAsyncContext2
12
12
  } from "./index-2qtx0q6h.js";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  log2
3
- } from "./index-yxeg8zaa.js";
3
+ } from "./index-tm11k42a.js";
4
4
 
5
5
  // ../plugin/src/shared/safe-notification-target.ts
6
6
  var DEFAULT_TITLE_RE = /^(New session - |Child session - )\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}\.\d{3}Z$/;
@@ -3,10 +3,10 @@ import {
3
3
  } from "./index-0h2mkab2.js";
4
4
  import {
5
5
  isUserHomeDirectory
6
- } from "./index-xx1911hb.js";
6
+ } from "./index-453s1hj6.js";
7
7
  import {
8
8
  logSlowWriteTransaction
9
- } from "./index-j0eagxkz.js";
9
+ } from "./index-1ts77n1b.js";
10
10
 
11
11
  // ../plugin/src/features/magic-context/session-project-storage.ts
12
12
  var SESSION_CHUNK_REPAIR_BATCH_SIZE = 100;