@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.
- package/dist/auto-search-worker.js +5 -5
- package/dist/chunk-embedding-write-worker.js +12 -12
- package/dist/{compaction-marker-candidates-9yhrstyb.js → compaction-marker-candidates-nxaamfej.js} +2 -2
- package/dist/compaction-marker-candidates-worker.js +1 -1
- package/dist/{compartment-chunk-embedding-wg7emg3z.js → compartment-chunk-embedding-avkyp2df.js} +7 -7
- package/dist/{embedding-backfill-qde2zywg.js → embedding-backfill-3g3cm51d.js} +12 -12
- package/dist/embedding-worker-process.js +1 -1
- package/dist/embedding-worker.js +4 -4
- package/dist/historian-calibration-extension.js +1 -1
- package/dist/{index-j0eagxkz.js → index-1ts77n1b.js} +1 -1
- package/dist/{index-9x1jpjeb.js → index-2tk7e0bx.js} +100 -26
- package/dist/{index-xssjy4z9.js → index-3s39a1md.js} +1 -1
- package/dist/{index-xx1911hb.js → index-453s1hj6.js} +1 -1
- package/dist/{index-c3mms4dp.js → index-5hhhxck7.js} +10 -10
- package/dist/{index-qm139qq2.js → index-5rcjs14a.js} +2 -2
- package/dist/{index-yjgkjkjs.js → index-71rg8j43.js} +1 -1
- package/dist/{index-zxm7ckvc.js → index-79xfn84y.js} +2 -2
- package/dist/{index-5n3e2gq5.js → index-8gvbskcm.js} +27 -5
- package/dist/{index-b1q0h16h.js → index-9cqfbdgb.js} +3 -3
- package/dist/{index-ndg15t3x.js → index-cxczethe.js} +4 -4
- package/dist/{index-erkb5dee.js → index-e9wkbh8y.js} +8 -8
- package/dist/{index-9kaj9ty1.js → index-f4n7tnsf.js} +2 -2
- package/dist/{index-nhpvvdhw.js → index-fz4gexgk.js} +11 -3
- package/dist/{index-d40ecdbn.js → index-gavj3e6h.js} +4 -4
- package/dist/{index-6d0bby9d.js → index-ghp32f9m.js} +2 -2
- package/dist/{index-v858d5d1.js → index-jhmz9tgv.js} +1 -1
- package/dist/{index-awpx91y5.js → index-k7a8x7ba.js} +1 -1
- package/dist/{index-2pptpxq8.js → index-m6kszx0e.js} +4 -4
- package/dist/{index-7y60kyea.js → index-pefn1gt5.js} +1 -1
- package/dist/{index-jnh7a6a3.js → index-qdy49kwk.js} +4 -4
- package/dist/{index-yxeg8zaa.js → index-tm11k42a.js} +9 -4
- package/dist/{index-hec3bwev.js → index-txcs0vnj.js} +2 -2
- package/dist/{index-625kbnqd.js → index-w4sqw9mf.js} +8 -8
- package/dist/{index-rekymyxd.js → index-xan5mt5f.js} +5 -5
- package/dist/{index-szn2tac8.js → index-xjhq27z9.js} +1 -1
- package/dist/{index-ywmt8sdr.js → index-zgsemyph.js} +26 -11
- package/dist/index.js +1172 -373
- package/dist/{logger-hhgpkbx1.js → logger-93cnqyh0.js} +1 -1
- package/dist/{message-fts-rowid-map-tec2x7qe.js → message-fts-rowid-map-dtbragnt.js} +4 -4
- package/dist/{message-index-bounded-ac4qg6aw.js → message-index-bounded-behq385r.js} +9 -9
- package/dist/{message-time-backfill-krre2qnb.js → message-time-backfill-8zwv9byv.js} +2 -2
- package/dist/migration-worker.js +9 -9
- package/dist/{project-embedding-registry-qx2zjbgs.js → project-embedding-registry-63wsm3a8.js} +11 -11
- package/dist/raw-ordinal-warmup-worker.js +8 -8
- package/dist/{read-session-chunk-jyfcykg4.js → read-session-chunk-ksh32zfv.js} +7 -7
- package/dist/{read-session-raw-75dcxtdy.js → read-session-raw-0tytrjye.js} +2 -2
- package/dist/{render-gj0nzrg0.js → render-2qed2svq.js} +16 -16
- package/dist/{safe-notification-target-8s1xg0q9.js → safe-notification-target-fkyrd95h.js} +2 -2
- package/dist/{search-archive-vpxem4pj.js → search-archive-qqj7j1w1.js} +9 -9
- package/dist/{search-w12nc025.js → search-vmw1xbqx.js} +19 -19
- package/dist/{storage-tags-g0328gwp.js → storage-tags-s0m7e39a.js} +5 -5
- package/dist/subagent-entry.js +25 -25
- package/dist/tag-snapshot-worker-pi.js +11 -11
- package/dist/{v2-archive-reader-r96gp6nc.js → v2-archive-reader-cc7sx6dk.js} +1 -1
- 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-
|
|
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-
|
|
34
|
-
import("./search-
|
|
35
|
-
import("./compartment-chunk-embedding-
|
|
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-
|
|
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-
|
|
15
|
-
import"./index-
|
|
14
|
+
import"./index-pefn1gt5.js";
|
|
15
|
+
import"./index-tm11k42a.js";
|
|
16
16
|
import"./index-dnp1jjar.js";
|
|
17
|
-
import"./index-
|
|
17
|
+
import"./index-5rcjs14a.js";
|
|
18
18
|
import"./index-8sqebjzk.js";
|
|
19
19
|
import"./index-wfqysrwq.js";
|
|
20
|
-
import"./index-
|
|
21
|
-
import"./index-
|
|
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-
|
|
27
|
+
} from "./index-cxczethe.js";
|
|
28
28
|
import {
|
|
29
29
|
recordSessionProjectIdentity,
|
|
30
30
|
acquireGitSweepLease,
|
|
31
31
|
renewGitSweepLease,
|
|
32
32
|
releaseGitSweepLease
|
|
33
|
-
} from "./index-
|
|
34
|
-
import"./index-
|
|
33
|
+
} from "./index-79xfn84y.js";
|
|
34
|
+
import"./index-453s1hj6.js";
|
|
35
35
|
import {
|
|
36
36
|
LATEST_SUPPORTED_VERSION,
|
|
37
37
|
enforceSchemaFence
|
|
38
|
-
} from "./index-
|
|
38
|
+
} from "./index-w4sqw9mf.js";
|
|
39
39
|
import"./index-3bb24eb6.js";
|
|
40
|
-
import"./index-
|
|
41
|
-
import"./index-
|
|
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-
|
|
44
|
+
import"./index-1ts77n1b.js";
|
|
45
45
|
import {
|
|
46
46
|
serveWorkerJobs
|
|
47
47
|
} from "./index-nypgv96r.js";
|
package/dist/{compaction-marker-candidates-9yhrstyb.js → compaction-marker-candidates-nxaamfej.js}
RENAMED
|
@@ -9,11 +9,11 @@ import {
|
|
|
9
9
|
certifiedMarkerReferenceFloor2,
|
|
10
10
|
readMarkerReferenceRows2,
|
|
11
11
|
readKnownMarkerReferenceRows2
|
|
12
|
-
} from "./index-
|
|
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-
|
|
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-
|
|
10
|
+
import("./compaction-marker-candidates-nxaamfej.js")
|
|
11
11
|
]);
|
|
12
12
|
let db;
|
|
13
13
|
let reply;
|
package/dist/{compartment-chunk-embedding-wg7emg3z.js → compartment-chunk-embedding-avkyp2df.js}
RENAMED
|
@@ -24,16 +24,16 @@ import {
|
|
|
24
24
|
countSessionCompartmentEmbedCoverage2,
|
|
25
25
|
countSessionCompartmentEmbedCoveragePolite2,
|
|
26
26
|
countUnembeddedSessionCompartmentsPolite2
|
|
27
|
-
} from "./index-
|
|
28
|
-
import"./index-
|
|
29
|
-
import"./index-
|
|
30
|
-
import"./index-
|
|
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-
|
|
34
|
-
import"./index-
|
|
33
|
+
import"./index-1ts77n1b.js";
|
|
34
|
+
import"./index-pefn1gt5.js";
|
|
35
35
|
import"./index-2qtx0q6h.js";
|
|
36
|
-
import"./index-
|
|
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-
|
|
4
|
-
import"./index-
|
|
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-
|
|
9
|
-
import"./index-
|
|
10
|
-
import"./index-
|
|
11
|
-
import"./index-
|
|
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-
|
|
14
|
-
import"./index-
|
|
15
|
-
import"./index-
|
|
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-
|
|
19
|
-
import"./index-
|
|
18
|
+
import"./index-1ts77n1b.js";
|
|
19
|
+
import"./index-pefn1gt5.js";
|
|
20
20
|
import"./index-2qtx0q6h.js";
|
|
21
|
-
import"./index-
|
|
21
|
+
import"./index-tm11k42a.js";
|
|
22
22
|
import"./index-0h2mkab2.js";
|
|
23
23
|
import"./index-dnp1jjar.js";
|
|
24
24
|
import"./index-x2n261wp.js";
|
package/dist/embedding-worker.js
CHANGED
|
@@ -3,17 +3,17 @@ import {
|
|
|
3
3
|
} from "./index-0h2mkab2.js";
|
|
4
4
|
import {
|
|
5
5
|
log2
|
|
6
|
-
} from "./index-
|
|
6
|
+
} from "./index-tm11k42a.js";
|
|
7
7
|
import"./index-dnp1jjar.js";
|
|
8
8
|
import"./index-vcegxfwg.js";
|
|
9
|
-
import"./index-
|
|
10
|
-
import"./index-
|
|
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-
|
|
16
|
+
} from "./index-txcs0vnj.js";
|
|
17
17
|
import {
|
|
18
18
|
setStoragePrivatePermissionEnforcement
|
|
19
19
|
} from "./index-81nthk8j.js";
|
|
@@ -17,7 +17,7 @@ import {
|
|
|
17
17
|
getMagicContextStorageDir,
|
|
18
18
|
log2,
|
|
19
19
|
sessionLog2
|
|
20
|
-
} from "./index-
|
|
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-
|
|
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-
|
|
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-
|
|
55
|
+
} from "./index-xjhq27z9.js";
|
|
56
56
|
import {
|
|
57
57
|
piHarnessKindFromExecutable,
|
|
58
58
|
getErrorMessage
|
|
59
|
-
} from "./index-
|
|
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-
|
|
73
|
+
} from "./index-zgsemyph.js";
|
|
74
74
|
import {
|
|
75
75
|
getLastIndexedOrdinal
|
|
76
|
-
} from "./index-
|
|
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-
|
|
92
|
+
} from "./index-8gvbskcm.js";
|
|
93
93
|
import {
|
|
94
94
|
stableStringify,
|
|
95
95
|
BoundedSessionMap
|
|
96
|
-
} from "./index-
|
|
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-
|
|
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-
|
|
131
|
+
} from "./index-e9wkbh8y.js";
|
|
132
132
|
import {
|
|
133
133
|
directoryHasGitMetadata,
|
|
134
134
|
resolveProjectIdentityForSession,
|
|
135
135
|
normalizeStoredProjectPath,
|
|
136
136
|
storedPathBelongsToIdentity
|
|
137
|
-
} from "./index-
|
|
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-
|
|
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-
|
|
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-
|
|
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-
|
|
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-
|
|
182
|
+
} from "./index-3s39a1md.js";
|
|
183
183
|
import {
|
|
184
184
|
renderSearchArchive2
|
|
185
|
-
} from "./index-
|
|
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-
|
|
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
|
|
4515
|
-
const
|
|
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(
|
|
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 {
|
|
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
|
-
|
|
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
|
|
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,
|
|
@@ -12,10 +12,10 @@ import {
|
|
|
12
12
|
getDataDir,
|
|
13
13
|
log2,
|
|
14
14
|
sessionLog2
|
|
15
|
-
} from "./index-
|
|
15
|
+
} from "./index-tm11k42a.js";
|
|
16
16
|
import {
|
|
17
17
|
SubcClient
|
|
18
|
-
} from "./index-
|
|
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-
|
|
27
|
+
} from "./index-xjhq27z9.js";
|
|
28
28
|
import {
|
|
29
29
|
buildCanonicalChunkTextFromFts2,
|
|
30
30
|
loadCompartmentChunkEmbeddingsForSearch2,
|
|
31
31
|
peekCompartmentChunkSearchPool2,
|
|
32
32
|
warmCompartmentChunkSearchPool2
|
|
33
|
-
} from "./index-
|
|
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-
|
|
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-
|
|
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-
|
|
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-
|
|
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-
|
|
105
|
+
} from "./index-gavj3e6h.js";
|
|
106
106
|
import {
|
|
107
107
|
getNotes,
|
|
108
108
|
getActivePrimers
|
|
109
|
-
} from "./index-
|
|
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-
|
|
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-
|
|
9
|
+
} from "./index-tm11k42a.js";
|
|
10
10
|
import {
|
|
11
11
|
inRootAsyncContext2
|
|
12
12
|
} from "./index-2qtx0q6h.js";
|
|
@@ -3,10 +3,10 @@ import {
|
|
|
3
3
|
} from "./index-0h2mkab2.js";
|
|
4
4
|
import {
|
|
5
5
|
isUserHomeDirectory
|
|
6
|
-
} from "./index-
|
|
6
|
+
} from "./index-453s1hj6.js";
|
|
7
7
|
import {
|
|
8
8
|
logSlowWriteTransaction
|
|
9
|
-
} from "./index-
|
|
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;
|