@cortexkit/pi-magic-context 0.49.34 → 0.49.35

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 (68) hide show
  1. package/dist/auto-search-worker.js +11 -6
  2. package/dist/chunk-embedding-write-worker.js +16 -13
  3. package/dist/{compaction-marker-candidates-p1kqkqhq.js → compaction-marker-candidates-hk2frhac.js} +3 -2
  4. package/dist/compaction-marker-candidates-worker.js +1 -1
  5. package/dist/{compartment-chunk-embedding-8c85ebce.js → compartment-chunk-embedding-5j1d1e3v.js} +8 -7
  6. package/dist/embedding-backfill-jt459ady.js +26 -0
  7. package/dist/embedding-worker-process.js +2 -1
  8. package/dist/embedding-worker.js +5 -4
  9. package/dist/expand-attachments-8sxeyj26.js +21 -0
  10. package/dist/historian-calibration-extension.js +2 -1
  11. package/dist/{index-0mc0vv97.js → index-0rvn6vhq.js} +3 -3
  12. package/dist/{index-hqw0rt9k.js → index-0wtm7g7f.js} +1 -1
  13. package/dist/{index-np9ryr8y.js → index-11knwv2h.js} +20 -240
  14. package/dist/{index-0gymvr5j.js → index-2p691ayw.js} +19 -8
  15. package/dist/{index-wqpjhx1p.js → index-2qqsnh1b.js} +2 -2
  16. package/dist/index-3bb24eb6.js +229 -0
  17. package/dist/{index-48twbev2.js → index-6pk49fc3.js} +37 -51
  18. package/dist/index-6y6v2wvn.js +194 -0
  19. package/dist/{index-e61zxfts.js → index-8m82cez2.js} +4 -4
  20. package/dist/{index-xn5yh0pn.js → index-a11nmw5t.js} +29 -128
  21. package/dist/index-by1bzjcd.js +24 -0
  22. package/dist/index-c6wbq66z.js +168 -0
  23. package/dist/{index-jn44h81p.js → index-cq71g4dk.js} +1 -1
  24. package/dist/{index-6wdwv3a6.js → index-d0w84hy5.js} +1 -1
  25. package/dist/{index-pb3ea2tq.js → index-d107f484.js} +5 -5
  26. package/dist/index-d21rhpbd.js +4171 -0
  27. package/dist/index-dnp1jjar.js +222 -0
  28. package/dist/index-ea37qn4x.js +777 -0
  29. package/dist/{index-f4fz95fy.js → index-fzm8fm4z.js} +303 -4980
  30. package/dist/{index-fgs78jyd.js → index-gymgz20n.js} +5 -222
  31. package/dist/index-hgd00nas.js +113 -0
  32. package/dist/{index-cj3bkd16.js → index-m68qfjte.js} +2 -2
  33. package/dist/{index-6981g1xv.js → index-mkh1cm5k.js} +1 -1
  34. package/dist/{index-4zemngt7.js → index-mp0gh04g.js} +2 -2
  35. package/dist/{index-23t8ryqw.js → index-n0zjvs3h.js} +1 -168
  36. package/dist/{index-bvpar0bg.js → index-rgvqh5x7.js} +2 -2
  37. package/dist/{index-gwxaz0z5.js → index-rzfr7wdv.js} +2 -2
  38. package/dist/{index-eenxm3t3.js → index-svqk0701.js} +40 -29
  39. package/dist/{index-9xd7qveg.js → index-vgfk2xa5.js} +4 -4
  40. package/dist/index-w26zvs1q.js +528 -0
  41. package/dist/index-wrr9rp9a.js +16 -0
  42. package/dist/{index-my0dn413.js → index-wt7vmyj4.js} +1 -1
  43. package/dist/{index-c474g0gj.js → index-yacs388s.js} +1 -1
  44. package/dist/{index-g2tfayfc.js → index-yg42q9bc.js} +95 -550
  45. package/dist/{index-eqw9t2ty.js → index-yhsmjvqa.js} +3 -3
  46. package/dist/index.js +523 -236
  47. package/dist/{logger-shetp43v.js → logger-2j70hhz4.js} +2 -1
  48. package/dist/{message-fts-rowid-map-3mbvdgn9.js → message-fts-rowid-map-aw4xa05a.js} +5 -4
  49. package/dist/{message-index-bounded-a6na71rg.js → message-index-bounded-da34vhs4.js} +12 -10
  50. package/dist/{message-time-backfill-e3r8ddh1.js → message-time-backfill-x45573rs.js} +3 -2
  51. package/dist/migration-worker.js +13 -10
  52. package/dist/{project-embedding-registry-acqb6be4.js → project-embedding-registry-davzvsz9.js} +13 -11
  53. package/dist/raw-ordinal-warmup-worker.js +12 -7
  54. package/dist/{read-session-chunk-2xcp6f40.js → read-session-chunk-nbcznexm.js} +14 -8
  55. package/dist/{read-session-raw-g9b1zdn5.js → read-session-raw-zb8kpa2y.js} +3 -2
  56. package/dist/render-d931g2vv.js +41 -0
  57. package/dist/{safe-notification-target-zcpchea6.js → safe-notification-target-jk69jxwp.js} +3 -2
  58. package/dist/search-archive-a76pp30g.js +24 -0
  59. package/dist/{search-b6hp64hc.js → search-atp7g95j.js} +24 -20
  60. package/dist/{storage-tags-6409qq18.js → storage-tags-jy8b0xsy.js} +5 -4
  61. package/dist/store-kabezr25.js +453 -0
  62. package/dist/store-reader-2m80zs5z.js +14 -0
  63. package/dist/subagent-entry.js +31 -23
  64. package/dist/tag-snapshot-worker-pi.js +15 -12
  65. package/dist/v2-archive-reader-wcjcfdzq.js +11 -0
  66. package/package.json +1 -1
  67. package/dist/embedding-backfill-rwfmyvze.js +0 -24
  68. package/dist/search-archive-jate39w5.js +0 -21
@@ -0,0 +1,453 @@
1
+ import"./index-dnp1jjar.js";
2
+ import"./index-3bb24eb6.js";
3
+ import"./index-n0zjvs3h.js";
4
+ import"./index-2qtx0q6h.js";
5
+ import {
6
+ RAW_MESSAGE_TYPES2
7
+ } from "./index-ea37qn4x.js";
8
+ import {
9
+ markHostUnservedRow
10
+ } from "./index-by1bzjcd.js";
11
+
12
+ // ../plugin/src/v2/fold/restore.ts
13
+ import { fileURLToPath } from "node:url";
14
+
15
+ // ../plugin/src/v2/hooks/storage-notice.ts
16
+ var STORAGE_NOTICE_PREFIX = "[Magic Context storage notice] ";
17
+ function isStorageNoticeText(text) {
18
+ return typeof text === "string" && text.startsWith(STORAGE_NOTICE_PREFIX);
19
+ }
20
+
21
+ // ../plugin/src/v2/fold/restore.ts
22
+ function unavailableAttachmentNote(name, mediaType) {
23
+ return `[Attachment ${name ? `"${name}" ` : ""}(${mediaType}) is not available in this restored history]`;
24
+ }
25
+ var imageMimes = new Set(["image/png", "image/jpeg", "image/gif", "image/webp"]);
26
+ function attachmentParts(files, rowID, media) {
27
+ const seen = new Map;
28
+ return files.flatMap((file) => {
29
+ if (imageMimes.has(file.mime) && file.source.type === "inline" && file.mention?.text) {
30
+ const key = JSON.stringify([
31
+ file.mime,
32
+ file.name ?? null,
33
+ file.description ?? null,
34
+ file.mention.text
35
+ ]);
36
+ const payloads = seen.get(key) ?? new Set;
37
+ if (payloads.has(file.data))
38
+ return [];
39
+ payloads.add(file.data);
40
+ seen.set(key, payloads);
41
+ }
42
+ const uri = file.source.type === "uri" ? file.source.uri : undefined;
43
+ const location = uri?.startsWith("file:") ? fileURLToPath(uri) : undefined;
44
+ if (file.mime === "text/plain" || file.mime === "application/x-directory") {
45
+ const directory = file.mime === "application/x-directory";
46
+ return [
47
+ {
48
+ type: "text",
49
+ text: `
50
+
51
+ ${[
52
+ directory ? `Attached directory: ${location ?? file.name ?? uri ?? "directory"}` : `Attached file: ${file.name ?? uri ?? "inline attachment"}`,
53
+ file.description === undefined ? undefined : `Description: ${file.description}`,
54
+ directory && !file.data.length ? undefined : "",
55
+ directory && !file.data.length ? undefined : Buffer.from(file.data, "base64").toString("utf8")
56
+ ].filter((line) => line !== undefined).join(`
57
+ `)}`,
58
+ metadata: {
59
+ attachment: {
60
+ source: file.source,
61
+ name: file.name,
62
+ description: file.description
63
+ }
64
+ }
65
+ }
66
+ ];
67
+ }
68
+ if (!imageMimes.has(file.mime) && file.mime !== "application/pdf")
69
+ return [];
70
+ const metadata = file.description === undefined ? undefined : { description: file.description };
71
+ const located = location ? [{ type: "text", text: `Attached file: ${location}` }] : [];
72
+ if (!media)
73
+ return [
74
+ ...located,
75
+ {
76
+ type: "media",
77
+ mediaType: file.mime,
78
+ data: file.data,
79
+ filename: file.name,
80
+ metadata
81
+ }
82
+ ];
83
+ const asset = media.asset(file.data, file.mime);
84
+ if (typeof asset === "string") {
85
+ media.unavailable({ rowID, name: file.name, mediaType: file.mime, reason: asset });
86
+ return [
87
+ ...located,
88
+ { type: "text", text: unavailableAttachmentNote(file.name, file.mime) }
89
+ ];
90
+ }
91
+ return [...located, { type: "media", media: asset, filename: file.name, metadata }];
92
+ });
93
+ }
94
+ function restoreRow(row, model, media) {
95
+ const data = row.data;
96
+ const make = (role, content, metadata = data.metadata) => ({
97
+ id: row.id,
98
+ role,
99
+ content,
100
+ ...metadata === undefined ? {} : { metadata }
101
+ });
102
+ if (row.type === "user") {
103
+ const skills = data.skills ?? [];
104
+ const content = [
105
+ ...skills.flatMap((skill) => skill.text === undefined ? [] : [{ type: "text", text: skill.text }]),
106
+ ...data.text ? [{ type: "text", text: data.text }] : [],
107
+ ...attachmentParts(data.files ?? [], row.id, media)
108
+ ];
109
+ return content.length ? [
110
+ make("user", content, {
111
+ ...data.metadata ?? {},
112
+ ...data.agents?.length ? { agents: data.agents } : {}
113
+ })
114
+ ] : [];
115
+ }
116
+ if (row.type === "system")
117
+ return [{ role: "system", content: [{ type: "text", text: data.text ?? "" }] }];
118
+ if (row.type === "synthetic" && isStorageNoticeText(data.text))
119
+ return [];
120
+ if (["synthetic", "skill"].includes(row.type))
121
+ return [make("user", [{ type: "text", text: data.text ?? "" }])];
122
+ if (row.type === "location-switched")
123
+ return [
124
+ make("user", [
125
+ {
126
+ type: "text",
127
+ text: `The working directory has been changed to ${data.location.directory}.`
128
+ }
129
+ ])
130
+ ];
131
+ if (row.type === "shell")
132
+ return data.metadata?.background === true ? [] : [
133
+ make("user", [
134
+ {
135
+ type: "text",
136
+ text: `The following shell command was executed by the user:
137
+
138
+ Command:
139
+ ${data.command}
140
+
141
+ Output:
142
+ ${data.output?.output ?? ""}`
143
+ }
144
+ ])
145
+ ];
146
+ if (row.type !== "assistant")
147
+ return [];
148
+ const previousModel = data.model;
149
+ const sameProvider = previousModel?.providerID === model.providerID;
150
+ const sameModel = sameProvider && previousModel?.id === model.id;
151
+ const reuse = sameModel && data.error === undefined;
152
+ const metadata = (state) => state === undefined ? undefined : { [model.providerID]: state };
153
+ const reasoningInterrupted = data.content?.some((part) => part.type === "reasoning" && part.time !== undefined && part.time.completed === undefined);
154
+ const content = [];
155
+ const results = [];
156
+ for (const part of data.content ?? []) {
157
+ let native = "native" in part ? part.native : part.type === "tool" ? part.providerState : part.state;
158
+ if (part.type === "tool" && part.providerResultState !== null && typeof part.providerResultState === "object" && !Array.isArray(part.providerResultState))
159
+ native = {
160
+ ...native !== null && typeof native === "object" && !Array.isArray(native) ? native : {},
161
+ ...part.providerResultState
162
+ };
163
+ if (part.type === "text") {
164
+ if (part.text !== "")
165
+ content.push({
166
+ type: "text",
167
+ text: part.text,
168
+ providerMetadata: reuse ? metadata(native) : undefined
169
+ });
170
+ continue;
171
+ }
172
+ if (part.type === "reasoning") {
173
+ if (part.text !== "" || reuse && !reasoningInterrupted && native !== undefined)
174
+ content.push({
175
+ type: data.error === undefined && !reasoningInterrupted ? "reasoning" : "text",
176
+ text: part.text,
177
+ providerMetadata: reuse && !reasoningInterrupted ? metadata(native) : undefined
178
+ });
179
+ continue;
180
+ }
181
+ const state = part.state;
182
+ const completed = state.status === "completed" || state.status === "error";
183
+ const toolReuse = reuse || sameModel && part.executed === true && completed;
184
+ let input = state.input;
185
+ if (state.status === "streaming" && typeof input === "string") {
186
+ try {
187
+ input = JSON.parse(input);
188
+ } catch {}
189
+ }
190
+ content.push({
191
+ type: "tool-call",
192
+ id: part.id,
193
+ name: part.name,
194
+ input,
195
+ providerExecuted: part.executed,
196
+ providerMetadata: toolReuse ? metadata(native) : undefined
197
+ });
198
+ if (!completed)
199
+ continue;
200
+ const toolContent = state.content ?? [];
201
+ const single = toolContent.length === 1 ? toolContent[0] : undefined;
202
+ const result = {
203
+ type: "tool-result",
204
+ id: part.id,
205
+ name: part.name,
206
+ providerExecuted: part.executed,
207
+ providerMetadata: (part.executed === true ? sameProvider : reuse) ? metadata(native) : undefined,
208
+ result: state.status === "error" ? { error: state.error, content: toolContent } : single?.type === "text" ? { type: "text", value: single.text } : { type: "content", value: toolContent },
209
+ ...state.status === "error" ? { resultType: "error" } : {}
210
+ };
211
+ if (part.executed === true)
212
+ content.push(result);
213
+ else
214
+ results.push({ role: "tool", content: [result] });
215
+ }
216
+ return [...content.length ? [make("assistant", content)] : [], ...results];
217
+ }
218
+
219
+ // ../plugin/src/v2/tool-result.ts
220
+ function toolErrorText(result) {
221
+ const value = result.value === undefined ? result : result.value;
222
+ return typeof value === "string" ? value : JSON.stringify(value);
223
+ }
224
+ function toolStateContent(state) {
225
+ if (typeof state.output === "string")
226
+ return state.output;
227
+ if (state.status === "error")
228
+ return toolErrorText({ error: state.error, content: state.content ?? [] });
229
+ if (typeof state.content === "string")
230
+ return state.content;
231
+ if (!Array.isArray(state.content))
232
+ return "";
233
+ return state.content.map((part) => {
234
+ if (typeof part === "string")
235
+ return part;
236
+ if (!part || typeof part !== "object")
237
+ return "";
238
+ const value = part;
239
+ if (typeof value.text === "string")
240
+ return value.text;
241
+ if (typeof value.value === "string")
242
+ return value.value;
243
+ return "";
244
+ }).filter(Boolean).join(`
245
+ `);
246
+ }
247
+
248
+ // ../plugin/src/v2/hooks/store.ts
249
+ var rawMessageTypes = new Set(RAW_MESSAGE_TYPES2);
250
+ var isRawRow = (row) => rawMessageTypes.has(row.type);
251
+ var NO_MODEL = { providerID: "", id: "" };
252
+ function hostServesRowById(row) {
253
+ return isRawRow(row) && restoreRow(row, NO_MODEL).some((message) => message.id === row.id);
254
+ }
255
+ function projectRawMessages(rows, ordinalFor) {
256
+ return rows.filter(isRawRow).map((row, index) => {
257
+ const message = {
258
+ id: row.id,
259
+ ordinal: ordinalFor(row, index),
260
+ role: row.type === "assistant" ? "assistant" : row.type === "system" ? "system" : "user",
261
+ createdAt: row.time_created ?? row.data.time?.created,
262
+ parts: row.type === "assistant" ? (row.data.content ?? []).map((part) => {
263
+ if (part.type !== "tool")
264
+ return { ...part };
265
+ const state = part.state;
266
+ const content = state.content;
267
+ return {
268
+ type: "tool",
269
+ tool: part.name,
270
+ callID: part.id,
271
+ state: {
272
+ ...state,
273
+ output: state.status === "error" ? toolStateContent(state) : content?.filter((p) => p.type === "text").map((p) => p.text).join(`
274
+ `) ?? ""
275
+ }
276
+ };
277
+ }) : [{ type: "text", text: row.data.text ?? "" }]
278
+ };
279
+ Object.defineProperty(message, "storeType", { value: row.type, enumerable: false });
280
+ if (!hostServesRowById(row))
281
+ markHostUnservedRow(message);
282
+ return message;
283
+ });
284
+ }
285
+ function rawMessagePage(rows, afterOrdinal) {
286
+ return projectRawMessages(rows, (_row, index) => afterOrdinal + index + 1);
287
+ }
288
+ var SERVED_BOUNDARY_PAGE = 50;
289
+ function servedBoundaryRow(reader, sessionID, messageID) {
290
+ const boundary = reader.messageById(sessionID, messageID);
291
+ if (!boundary)
292
+ return null;
293
+ if (hostServesRowById(boundary))
294
+ return boundary;
295
+ let through = boundary.seq - 1;
296
+ for (;; ) {
297
+ const rows = reader.rawRowsThrough(sessionID, through, SERVED_BOUNDARY_PAGE);
298
+ const served = rows.find(hostServesRowById);
299
+ if (served)
300
+ return served;
301
+ const oldest = rows.at(-1);
302
+ if (rows.length < SERVED_BOUNDARY_PAGE || !oldest)
303
+ return null;
304
+ through = oldest.seq - 1;
305
+ }
306
+ }
307
+ function createV2RawMessageReader(openReader, storePath, releaseReader = (reader) => reader.close()) {
308
+ const servedBoundaryCache = new Map;
309
+ return {
310
+ storePath,
311
+ getRevision: (sessionID) => {
312
+ const reader = openReader();
313
+ try {
314
+ return reader.latestSequence(sessionID);
315
+ } finally {
316
+ releaseReader(reader);
317
+ }
318
+ },
319
+ getCountAfterRevision: (sessionID, after, through) => {
320
+ const reader = openReader();
321
+ try {
322
+ return reader.messageCountAfterSequence(sessionID, after, through);
323
+ } finally {
324
+ releaseReader(reader);
325
+ }
326
+ },
327
+ readPage: (sessionID, afterOrdinal, limit, finalWatermark, after) => {
328
+ const reader = openReader();
329
+ try {
330
+ return rawMessagePage(reader.messagePage(sessionID, afterOrdinal, limit, finalWatermark, after), afterOrdinal);
331
+ } finally {
332
+ releaseReader(reader);
333
+ }
334
+ },
335
+ findById: (sessionID, messageID) => {
336
+ const reader = openReader();
337
+ try {
338
+ const ordinal = reader.messageOrdinalById(sessionID, messageID);
339
+ const row = reader.messageById(sessionID, messageID);
340
+ if (ordinal === null || row === null)
341
+ return null;
342
+ return rawMessagePage([row], ordinal - 1)[0] ?? null;
343
+ } finally {
344
+ releaseReader(reader);
345
+ }
346
+ },
347
+ findPartsById: (sessionID, messageID) => {
348
+ const reader = openReader();
349
+ try {
350
+ const row = reader.messageById(sessionID, messageID);
351
+ return row ? rawMessagePage([row], 0)[0] ?? null : null;
352
+ } finally {
353
+ releaseReader(reader);
354
+ }
355
+ },
356
+ hasById: (sessionID, messageID) => {
357
+ const reader = openReader();
358
+ try {
359
+ return reader.messageExistsById(sessionID, messageID);
360
+ } finally {
361
+ releaseReader(reader);
362
+ }
363
+ },
364
+ ordinalOf: (sessionID, messageID) => {
365
+ const reader = openReader();
366
+ try {
367
+ return reader.messageOrdinalById(sessionID, messageID);
368
+ } finally {
369
+ releaseReader(reader);
370
+ }
371
+ },
372
+ orderOf: (sessionID, messageID) => {
373
+ const reader = openReader();
374
+ try {
375
+ return reader.sequenceForId(sessionID, messageID) ?? null;
376
+ } finally {
377
+ releaseReader(reader);
378
+ }
379
+ },
380
+ ordinalMapForRange: (sessionID, fromOrdinal, toOrdinal) => {
381
+ const reader = openReader();
382
+ try {
383
+ return reader.messageIdOrdinals(sessionID, fromOrdinal, toOrdinal);
384
+ } finally {
385
+ releaseReader(reader);
386
+ }
387
+ },
388
+ readOrdinalPage: (sessionID, after, limit) => {
389
+ const reader = openReader();
390
+ try {
391
+ return reader.messageOrdinalPage(sessionID, after, limit);
392
+ } finally {
393
+ releaseReader(reader);
394
+ }
395
+ },
396
+ getCount: (sessionID) => {
397
+ const reader = openReader();
398
+ try {
399
+ return reader.messageCount(sessionID);
400
+ } finally {
401
+ releaseReader(reader);
402
+ }
403
+ },
404
+ getStoredCount: (sessionID) => {
405
+ const reader = openReader();
406
+ try {
407
+ return reader.storedMessageCount(sessionID);
408
+ } finally {
409
+ releaseReader(reader);
410
+ }
411
+ },
412
+ servedBoundaryIdOf: (sessionID, messageID) => {
413
+ const key = `${sessionID}\x00${messageID}`;
414
+ if (servedBoundaryCache.has(key))
415
+ return servedBoundaryCache.get(key) ?? null;
416
+ const reader = openReader();
417
+ try {
418
+ const served = servedBoundaryRow(reader, sessionID, messageID)?.id ?? null;
419
+ if (servedBoundaryCache.size >= 1000)
420
+ servedBoundaryCache.clear();
421
+ if (served !== null)
422
+ servedBoundaryCache.set(key, served);
423
+ return served;
424
+ } finally {
425
+ releaseReader(reader);
426
+ }
427
+ }
428
+ };
429
+ }
430
+ function createV2RawMessageProvider(reader, sessionID) {
431
+ return {
432
+ ...reader.storePath ? { workerSource: { kind: "opencode2", path: reader.storePath } } : {},
433
+ readMessagePage: (afterOrdinal, limit, finalWatermark, after) => reader.readPage(sessionID, afterOrdinal, limit, finalWatermark, after),
434
+ readMessageById: (messageID) => reader.findById(sessionID, messageID),
435
+ readMessagePartsById: (messageID) => reader.findPartsById(sessionID, messageID),
436
+ hasMessageById: (messageID) => reader.hasById(sessionID, messageID),
437
+ readMessageOrdinalById: (messageID) => reader.ordinalOf(sessionID, messageID),
438
+ ...reader.orderOf ? {
439
+ readMessageOrderById: (messageID) => reader.orderOf?.(sessionID, messageID) ?? null
440
+ } : {},
441
+ readMessageIdOrdinalsForRange: (fromOrdinal, toOrdinal) => reader.ordinalMapForRange(sessionID, fromOrdinal, toOrdinal),
442
+ readMessageOrdinalPage: (after, limit) => reader.readOrdinalPage(sessionID, after, limit),
443
+ getMessageCount: () => reader.getCount(sessionID),
444
+ getStoredMessageCount: () => reader.getStoredCount(sessionID),
445
+ ...reader.servedBoundaryIdOf ? {
446
+ readServedBoundaryId: (messageID) => reader.servedBoundaryIdOf?.(sessionID, messageID) ?? null
447
+ } : {}
448
+ };
449
+ }
450
+ export {
451
+ createV2RawMessageProvider,
452
+ createV2RawMessageReader
453
+ };
@@ -0,0 +1,14 @@
1
+ import {
2
+ gaDatabasePath2,
3
+ RAW_MESSAGE_TYPES2,
4
+ V2StoreReaderPool2,
5
+ V2StoreReader2
6
+ } from "./index-ea37qn4x.js";
7
+ import"./index-n0zjvs3h.js";
8
+ import"./index-2qtx0q6h.js";
9
+ export {
10
+ RAW_MESSAGE_TYPES2 as RAW_MESSAGE_TYPES,
11
+ V2StoreReader2 as V2StoreReader,
12
+ V2StoreReaderPool2 as V2StoreReaderPool,
13
+ gaDatabasePath2 as gaDatabasePath
14
+ };
@@ -1,54 +1,62 @@
1
1
  import {
2
2
  TOKEN_BUDGET_TOOL_REFUSAL
3
- } from "./index-eenxm3t3.js";
3
+ } from "./index-svqk0701.js";
4
4
  import {
5
5
  setHarness2
6
6
  } from "./index-0h2mkab2.js";
7
7
  import {
8
8
  log2
9
- } from "./index-fgs78jyd.js";
9
+ } from "./index-gymgz20n.js";
10
+ import"./index-dnp1jjar.js";
10
11
  import {
11
12
  resolveProjectIdentityForSession
12
- } from "./index-48twbev2.js";
13
+ } from "./index-6pk49fc3.js";
13
14
  import"./index-2qtx0q6h.js";
14
15
  import {
15
16
  openDatabase
16
- } from "./index-np9ryr8y.js";
17
+ } from "./index-11knwv2h.js";
17
18
  import"./index-fapenpch.js";
19
+ import"./index-3bb24eb6.js";
18
20
  import"./index-399p688g.js";
19
21
  import"./index-54wmg4rj.js";
20
- import"./index-6981g1xv.js";
21
- import"./index-bvpar0bg.js";
22
- import"./index-pb3ea2tq.js";
23
- import"./index-c474g0gj.js";
22
+ import"./index-mkh1cm5k.js";
23
+ import"./index-rgvqh5x7.js";
24
+ import"./index-d107f484.js";
25
+ import"./index-yacs388s.js";
24
26
  import"./index-135e8hvg.js";
25
- import"./index-23t8ryqw.js";
26
- import"./index-my0dn413.js";
27
+ import"./index-n0zjvs3h.js";
28
+ import"./index-wt7vmyj4.js";
29
+ import"./index-c6wbq66z.js";
27
30
  import"./index-4knyh1kt.js";
28
31
  import {
29
32
  loadPiConfig,
30
33
  ensureProjectRegisteredFromPiDirectory,
31
34
  resolvePiHarnessKind,
32
35
  registerMagicContextTools
33
- } from "./index-f4fz95fy.js";
36
+ } from "./index-fzm8fm4z.js";
34
37
  import"./index-ccanzg8p.js";
35
- import"./index-gwxaz0z5.js";
36
- import"./index-0gymvr5j.js";
37
- import"./index-wqpjhx1p.js";
38
- import"./index-xn5yh0pn.js";
38
+ import"./index-rzfr7wdv.js";
39
+ import"./index-2p691ayw.js";
40
+ import"./index-2qqsnh1b.js";
41
+ import"./index-a11nmw5t.js";
42
+ import"./index-hgd00nas.js";
39
43
  import"./index-9p40dgkm.js";
40
- import"./index-4zemngt7.js";
44
+ import"./index-mp0gh04g.js";
41
45
  import"./index-yhzhdp3m.js";
42
- import"./index-9xd7qveg.js";
43
- import"./index-e61zxfts.js";
44
- import"./index-eqw9t2ty.js";
46
+ import"./index-vgfk2xa5.js";
47
+ import"./index-d21rhpbd.js";
48
+ import"./index-8m82cez2.js";
49
+ import"./index-yhsmjvqa.js";
45
50
  import"./index-6x556c2q.js";
46
- import"./index-g2tfayfc.js";
51
+ import"./index-ea37qn4x.js";
52
+ import"./index-w26zvs1q.js";
47
53
  import"./index-1cvyaw9a.js";
48
- import"./index-cj3bkd16.js";
54
+ import"./index-6y6v2wvn.js";
55
+ import"./index-m68qfjte.js";
49
56
  import"./index-29nw7n1r.js";
50
- import"./index-6wdwv3a6.js";
51
- import"./index-hqw0rt9k.js";
57
+ import"./index-yg42q9bc.js";
58
+ import"./index-d0w84hy5.js";
59
+ import"./index-0wtm7g7f.js";
52
60
  import {
53
61
  setStoragePrivatePermissionEnforcement
54
62
  } from "./index-81nthk8j.js";
@@ -1,38 +1,41 @@
1
1
  import {
2
2
  Database2
3
3
  } from "./index-2qtx0q6h.js";
4
- import"./index-48twbev2.js";
4
+ import"./index-6pk49fc3.js";
5
5
  import"./index-0h2mkab2.js";
6
- import"./index-fgs78jyd.js";
6
+ import"./index-gymgz20n.js";
7
+ import"./index-dnp1jjar.js";
7
8
  import {
8
9
  LATEST_SUPPORTED_VERSION,
9
10
  getPersistedSchemaVersion
10
- } from "./index-np9ryr8y.js";
11
+ } from "./index-11knwv2h.js";
11
12
  import"./index-fapenpch.js";
13
+ import"./index-3bb24eb6.js";
12
14
  import"./index-399p688g.js";
13
15
  import {
14
16
  exitOnWorkerClose
15
17
  } from "./index-54wmg4rj.js";
16
- import"./index-6981g1xv.js";
17
- import"./index-bvpar0bg.js";
18
- import"./index-pb3ea2tq.js";
18
+ import"./index-mkh1cm5k.js";
19
+ import"./index-rgvqh5x7.js";
20
+ import"./index-d107f484.js";
19
21
  import {
20
22
  tagRevisionKey
21
- } from "./index-c474g0gj.js";
23
+ } from "./index-yacs388s.js";
22
24
  import"./index-135e8hvg.js";
23
- import"./index-23t8ryqw.js";
24
- import"./index-my0dn413.js";
25
+ import"./index-n0zjvs3h.js";
26
+ import"./index-wt7vmyj4.js";
27
+ import"./index-c6wbq66z.js";
25
28
  import {
26
29
  normalizeTagSnapshotRow2,
27
30
  TAG_SELECT_COLUMNS2
28
- } from "./index-eqw9t2ty.js";
31
+ } from "./index-yhsmjvqa.js";
29
32
  import {
30
33
  encodePiHydrationOperation,
31
34
  projectPiPassTag,
32
35
  PI_FALLBACK_ROW_COLUMNS,
33
36
  PI_FALLBACK_ROW_PREDICATE
34
- } from "./index-0mc0vv97.js";
35
- import"./index-hqw0rt9k.js";
37
+ } from "./index-0rvn6vhq.js";
38
+ import"./index-0wtm7g7f.js";
36
39
 
37
40
  // src/tag-snapshot-worker-pi.ts
38
41
  import { setTimeout as delay } from "node:timers/promises";
@@ -0,0 +1,11 @@
1
+ import {
2
+ readV2ArchiveOffThread2,
3
+ serveV2ArchiveReads2
4
+ } from "./index-6y6v2wvn.js";
5
+ import"./index-399p688g.js";
6
+ import"./index-2qtx0q6h.js";
7
+ import"./index-54wmg4rj.js";
8
+ export {
9
+ readV2ArchiveOffThread2 as readV2ArchiveOffThread,
10
+ serveV2ArchiveReads2 as serveV2ArchiveReads
11
+ };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cortexkit/pi-magic-context",
3
- "version": "0.49.34",
3
+ "version": "0.49.35",
4
4
  "type": "module",
5
5
  "description": "Pi and OMP coding agent extension for Magic Context — cross-session memory and context management",
6
6
  "main": "dist/index.js",
@@ -1,24 +0,0 @@
1
- import {
2
- ensureMemoryEmbeddings2
3
- } from "./index-9xd7qveg.js";
4
- import"./index-xn5yh0pn.js";
5
- import"./index-9p40dgkm.js";
6
- import"./index-yhzhdp3m.js";
7
- import"./index-4zemngt7.js";
8
- import"./index-0gymvr5j.js";
9
- import"./index-wqpjhx1p.js";
10
- import"./index-gwxaz0z5.js";
11
- import"./index-ccanzg8p.js";
12
- import"./index-48twbev2.js";
13
- import"./index-bvpar0bg.js";
14
- import"./index-6981g1xv.js";
15
- import"./index-399p688g.js";
16
- import"./index-hqw0rt9k.js";
17
- import"./index-my0dn413.js";
18
- import"./index-2qtx0q6h.js";
19
- import"./index-fgs78jyd.js";
20
- import"./index-0h2mkab2.js";
21
- import"./index-54wmg4rj.js";
22
- export {
23
- ensureMemoryEmbeddings2 as ensureMemoryEmbeddings
24
- };
@@ -1,21 +0,0 @@
1
- import {
2
- renderSearchArchive2
3
- } from "./index-cj3bkd16.js";
4
- import"./index-1cvyaw9a.js";
5
- import"./index-eenxm3t3.js";
6
- import"./index-eqw9t2ty.js";
7
- import"./index-6x556c2q.js";
8
- import"./index-ccanzg8p.js";
9
- import"./index-23t8ryqw.js";
10
- import"./index-c474g0gj.js";
11
- import"./index-6981g1xv.js";
12
- import"./index-399p688g.js";
13
- import"./index-hqw0rt9k.js";
14
- import"./index-my0dn413.js";
15
- import"./index-2qtx0q6h.js";
16
- import"./index-fgs78jyd.js";
17
- import"./index-0h2mkab2.js";
18
- import"./index-54wmg4rj.js";
19
- export {
20
- renderSearchArchive2 as renderSearchArchive
21
- };