@cortexkit/opencode-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/{announcement-9pr71hd5.js → announcement-p41dde4h.js} +2 -2
- package/dist/auto-search-worker.js +5 -5
- package/dist/chunk-embedding-write-worker.js +13 -13
- package/dist/{compaction-marker-candidates-8hazqfvj.js → compaction-marker-candidates-1ndjqh9k.js} +2 -2
- package/dist/compaction-marker-candidates-worker.js +1 -1
- package/dist/{compartment-chunk-embedding-gfd093f8.js → compartment-chunk-embedding-ymc9mtwv.js} +7 -7
- package/dist/{conflict-warning-hook-56qpq7ws.js → conflict-warning-hook-m8yezwdj.js} +7 -7
- package/dist/{context-bejy30t5.js → context-aexc6pbs.js} +69 -44
- package/dist/{derive-budgets-z53424qx.js → derive-budgets-heypxqdz.js} +2 -2
- package/dist/{embedding-backfill-2dvf3rcn.js → embedding-backfill-sk7agn5v.js} +12 -12
- package/dist/embedding-worker-process.js +1 -1
- package/dist/embedding-worker.js +4 -4
- package/dist/features/magic-context/mural/render-mural.d.ts +17 -0
- package/dist/features/magic-context/mural/render-mural.d.ts.map +1 -1
- package/dist/features/magic-context/mural/render-trigger.d.ts +2 -1
- package/dist/features/magic-context/mural/render-trigger.d.ts.map +1 -1
- package/dist/features/magic-context/mural/resolve-mural.d.ts +8 -2
- package/dist/features/magic-context/mural/resolve-mural.d.ts.map +1 -1
- package/dist/features/magic-context/storage-historian-runs.d.ts +7 -0
- package/dist/features/magic-context/storage-historian-runs.d.ts.map +1 -1
- package/dist/{history-owner-n50e0e8y.js → history-owner-xqfsvf9k.js} +2 -2
- package/dist/hooks/magic-context/command-handler.d.ts +2 -0
- package/dist/hooks/magic-context/command-handler.d.ts.map +1 -1
- package/dist/hooks/magic-context/compartment-runner-historian.d.ts.map +1 -1
- package/dist/hooks/magic-context/compartment-runner-incremental.d.ts.map +1 -1
- package/dist/hooks/magic-context/compartment-runner-types.d.ts +9 -0
- package/dist/hooks/magic-context/compartment-runner-types.d.ts.map +1 -1
- package/dist/hooks/magic-context/compartment-runner.d.ts +7 -1
- package/dist/hooks/magic-context/compartment-runner.d.ts.map +1 -1
- package/dist/hooks/magic-context/historian-failure-report.d.ts +112 -0
- package/dist/hooks/magic-context/historian-failure-report.d.ts.map +1 -0
- package/dist/hooks/magic-context/hook-handlers.d.ts.map +1 -1
- package/dist/hooks/magic-context/hook.d.ts.map +1 -1
- package/dist/hooks/magic-context/transform-compartment-phase.d.ts +11 -1
- package/dist/hooks/magic-context/transform-compartment-phase.d.ts.map +1 -1
- package/dist/hooks/magic-context/transform.d.ts.map +1 -1
- package/dist/{index-5ptp2de1.js → index-0cz8bsyx.js} +9 -9
- package/dist/{index-r9agn061.js → index-1sq1krqw.js} +4 -4
- package/dist/{index-b6rdv8re.js → index-3hk445am.js} +4 -4
- package/dist/{index-by14cr73.js → index-3yyfftqq.js} +11 -11
- package/dist/{index-ffab4edg.js → index-575njz7q.js} +74 -50
- package/dist/{index-gapnh6tk.js → index-5ps3axh5.js} +1 -1
- package/dist/{index-0tz2fzpq.js → index-5vsk2cpp.js} +1 -1
- package/dist/{index-90z05d0p.js → index-832w615x.js} +1 -1
- package/dist/{index-sk6p6esd.js → index-8sc7vqt7.js} +4 -4
- package/dist/{index-cd3vp8xa.js → index-98qy103c.js} +1 -1
- package/dist/{index-3jeq08jv.js → index-a09sw9fx.js} +380 -93
- package/dist/{index-29ff546v.js → index-d0feqcs5.js} +6 -6
- package/dist/{index-gz001bx7.js → index-e6ncz7a6.js} +1 -1
- package/dist/{index-reyws9fy.js → index-esqcwes7.js} +1 -1
- package/dist/{index-h62j8z2r.js → index-ev2rrjfc.js} +4 -4
- package/dist/{index-sx1sppd6.js → index-gq1g9a3a.js} +8 -8
- package/dist/{index-ga5q492k.js → index-gqf8r04r.js} +1 -1
- package/dist/{index-5483ntzh.js → index-gth4t4ar.js} +5 -5
- package/dist/{index-pxfb7pp8.js → index-j4aeh6tx.js} +14 -14
- package/dist/{index-qperbvjn.js → index-jg7sbt3v.js} +2 -2
- package/dist/{index-9mggb1nv.js → index-jrj95cce.js} +2 -2
- package/dist/{index-12p4j9wa.js → index-kv4ntrr6.js} +5 -5
- package/dist/{index-tad3can2.js → index-m0pwswv9.js} +1 -1
- package/dist/{index-pdh4tdcq.js → index-n6aye6ny.js} +2 -2
- package/dist/{index-hsyczpn7.js → index-pxnzyvjc.js} +2 -2
- package/dist/{index-kn1bx21r.js → index-pzvdf7sr.js} +3 -3
- package/dist/{index-36wseasx.js → index-q7q6qp1f.js} +1 -1
- package/dist/{index-qfc1kjh4.js → index-s2jdky2x.js} +3 -3
- package/dist/{index-2ny9xwdn.js → index-s32f8y67.js} +2 -2
- package/dist/{index-3wmp1nb7.js → index-s3t4vk21.js} +7 -7
- package/dist/{index-hexdee98.js → index-snbpdpa3.js} +4 -4
- package/dist/{index-dhdv88e5.js → index-tebcx987.js} +1 -1
- package/dist/{index-5gqszjq9.js → index-tq20edcs.js} +3 -3
- package/dist/{index-0k283v27.js → index-tzy5h4x6.js} +1 -1
- package/dist/{index-em92bp7f.js → index-x40zr813.js} +2 -2
- package/dist/{index-sv5tn72j.js → index-xx05vta0.js} +4 -4
- package/dist/{index-82dfe8en.js → index-ywrz4wy2.js} +9 -4
- package/dist/{index-wgbp5zch.js → index-ywxvdwmj.js} +25 -10
- package/dist/{index-xstbytjn.js → index-zb4h9nrk.js} +2 -2
- package/dist/{index-2vsd5064.js → index-zxj39ba2.js} +4 -4
- package/dist/index.js +51 -50
- package/dist/{logger-sw7z6sjz.js → logger-d7c8akh9.js} +1 -1
- package/dist/{message-fts-rowid-map-kx1bsdyg.js → message-fts-rowid-map-0xx8ge09.js} +4 -4
- package/dist/{message-index-bounded-xav3h8qe.js → message-index-bounded-f6yz4xq8.js} +10 -10
- package/dist/{message-time-backfill-hp2jgn49.js → message-time-backfill-pz5981mf.js} +2 -2
- package/dist/migration-worker.js +10 -10
- package/dist/plugin/hooks/create-session-hooks.d.ts.map +1 -1
- package/dist/{project-embedding-registry-f2azrq24.js → project-embedding-registry-c2sfnamh.js} +11 -11
- package/dist/raw-ordinal-warmup-worker.js +8 -8
- package/dist/{read-session-chunk-70aam2c1.js → read-session-chunk-8b1g06nz.js} +8 -8
- package/dist/{read-session-raw-04ger9zt.js → read-session-raw-3sc9231y.js} +2 -2
- package/dist/{recomp-orchestrator-2tsjqbrm.js → recomp-orchestrator-zqn9zwxn.js} +29 -29
- package/dist/{render-fgxbcmnh.js → render-nrfbtkkw.js} +19 -19
- package/dist/{safe-notification-target-mx5khyxf.js → safe-notification-target-d21swr3n.js} +2 -2
- package/dist/{search-archive-0mz3p1g1.js → search-archive-1ppdjfm9.js} +10 -10
- package/dist/{search-jfwb4ms3.js → search-xha0r30f.js} +22 -22
- package/dist/{send-session-notification-gamjee2f.js → send-session-notification-ykvt5k2s.js} +5 -5
- package/dist/shared/data-path.d.ts +31 -36
- package/dist/shared/data-path.d.ts.map +1 -1
- package/dist/shared/test-temp-dir.d.ts +28 -0
- package/dist/shared/test-temp-dir.d.ts.map +1 -1
- package/dist/{storage-tags-arnkn5t1.js → storage-tags-spet01yb.js} +5 -5
- package/dist/{transform-postprocess-phase-64xtx439.js → transform-postprocess-phase-gxb3sp91.js} +30 -30
- package/dist/v2/auto-search-worker.js +5 -5
- package/dist/v2/chunk-embedding-write-worker.js +13 -13
- package/dist/v2/{compaction-marker-candidates-re14353a.js → compaction-marker-candidates-bp1bn579.js} +2 -2
- package/dist/v2/compaction-marker-candidates-worker.js +1 -1
- package/dist/v2/{compartment-chunk-embedding-0pxsrzrt.js → compartment-chunk-embedding-x6qw6mjk.js} +7 -7
- package/dist/v2/{context-5hhm89jw.js → context-wszt0gbq.js} +102 -57
- package/dist/v2/{derive-budgets-w0815q82.js → derive-budgets-gw030jzt.js} +3 -3
- package/dist/v2/{embedding-backfill-48qbnh7p.js → embedding-backfill-j2xj86zn.js} +12 -12
- package/dist/v2/embedding-worker-process.js +1 -1
- package/dist/v2/embedding-worker.js +4 -4
- package/dist/v2/{history-owner-ep91wgqj.js → history-owner-260djmv5.js} +2 -2
- package/dist/v2/hooks/claude-agent-instructions.d.ts +27 -0
- package/dist/v2/hooks/claude-agent-instructions.d.ts.map +1 -0
- package/dist/v2/hooks/context.d.ts.map +1 -1
- package/dist/v2/hooks/hidden-child.d.ts +15 -2
- package/dist/v2/hooks/hidden-child.d.ts.map +1 -1
- package/dist/v2/hooks/usage-persist.d.ts +7 -1
- package/dist/v2/hooks/usage-persist.d.ts.map +1 -1
- package/dist/v2/{logger-xnscpj6w.js → logger-zyf43np1.js} +1 -1
- package/dist/v2/{message-fts-rowid-map-57jh6xpb.js → message-fts-rowid-map-n8mcvcpz.js} +4 -4
- package/dist/v2/{message-index-bounded-sw8hyqw1.js → message-index-bounded-0w8eh8fc.js} +10 -10
- package/dist/v2/{message-time-backfill-baxebka0.js → message-time-backfill-ynb3vg6r.js} +2 -2
- package/dist/v2/migration-worker.js +10 -10
- package/dist/v2/{project-embedding-registry-kwahtjgg.js → project-embedding-registry-k0hjqt11.js} +11 -11
- package/dist/v2/raw-ordinal-warmup-worker.js +8 -8
- package/dist/v2/{read-session-chunk-nqkn0yb4.js → read-session-chunk-dxs1tgt9.js} +8 -8
- package/dist/v2/{read-session-raw-3e482h3c.js → read-session-raw-wg5zc29f.js} +2 -2
- package/dist/v2/{recomp-orchestrator-dzdxrgdt.js → recomp-orchestrator-76rv3b89.js} +30 -30
- package/dist/v2/{render-jfa3hj8z.js → render-9knrdrjs.js} +19 -19
- package/dist/v2/{safe-notification-target-9r79xnbt.js → safe-notification-target-y55z2zat.js} +2 -2
- package/dist/v2/{search-8dc9ex0a.js → search-a2a0qs3t.js} +21 -21
- package/dist/v2/{search-archive-p4s9q7a3.js → search-archive-2jmyvj69.js} +10 -10
- package/dist/v2/{send-session-notification-95p89k7q.js → send-session-notification-8g4r97bp.js} +5 -5
- package/dist/v2/{server-7vrtk78d.js → server-3ap5dmhc.js} +1 -1
- package/dist/v2/{server-avfc9ezb.js → server-4r86tcs2.js} +3 -3
- package/dist/v2/{server-np27dgyt.js → server-5sbsnpkn.js} +1 -1
- package/dist/v2/{server-rz5jnhnv.js → server-6ash6z8z.js} +1 -1
- package/dist/v2/{server-beydmd68.js → server-88n85n60.js} +4 -4
- package/dist/v2/{server-g61hgy1y.js → server-8pdfmc27.js} +4 -4
- package/dist/v2/{server-gge95a03.js → server-8ycacd59.js} +6 -6
- package/dist/v2/{server-8e5m2gre.js → server-9ab9jnpq.js} +3 -3
- package/dist/v2/{server-z6sxv6n3.js → server-9emfsa60.js} +382 -95
- package/dist/v2/{server-kyfj1090.js → server-9m5r04ws.js} +5 -5
- package/dist/v2/{server-3yk44ddz.js → server-afsz3cmx.js} +1 -1
- package/dist/v2/{server-c8z2grq0.js → server-at0v0z4t.js} +1 -1
- package/dist/v2/{server-v817sf79.js → server-d07yxksx.js} +2 -2
- package/dist/v2/{server-kwtnrhv3.js → server-d706s5xn.js} +2 -2
- package/dist/v2/{server-ycvqg2s3.js → server-d9aayyxk.js} +4 -4
- package/dist/v2/{server-966dq3pd.js → server-ds8vpfkr.js} +2 -2
- package/dist/v2/{server-bb6kf05j.js → server-j8376q08.js} +9 -4
- package/dist/v2/{server-7waad75d.js → server-ja6swvmb.js} +11 -11
- package/dist/v2/{server-tmf0ayqp.js → server-jdfe07mp.js} +1 -1
- package/dist/v2/{server-6k0rnwbd.js → server-jn4pktdk.js} +4 -4
- package/dist/v2/{server-qp5sj6n5.js → server-jtq03rkb.js} +2 -2
- package/dist/v2/{server-sa1fdt41.js → server-kc5kb9ya.js} +1 -1
- package/dist/v2/{server-91gb0vh8.js → server-npdey91q.js} +1 -1
- package/dist/v2/{server-vqq3g1t7.js → server-qjff96a6.js} +4 -4
- package/dist/v2/{server-4x0xq8a1.js → server-rbtx6q5v.js} +1 -1
- package/dist/v2/{server-jwydbwcx.js → server-svx20ra2.js} +4 -4
- package/dist/v2/{server-q02z0jq7.js → server-t8tmrtcg.js} +25 -10
- package/dist/v2/{server-0ayyh3mx.js → server-tzh55x6d.js} +9 -9
- package/dist/v2/{server-5p0bjk3y.js → server-v1s0cb4v.js} +2 -2
- package/dist/v2/{server-mxsy9h1d.js → server-x6fn9x8q.js} +2 -2
- package/dist/v2/{server-b0357as4.js → server-xepx8t43.js} +2 -2
- package/dist/v2/{server-3jc6qmdz.js → server-y8xjr8rx.js} +1 -1
- package/dist/v2/{server-5kgesxck.js → server-ypaat9rj.js} +2 -2
- package/dist/v2/{server-rpmkz5ta.js → server-z5255w05.js} +8 -8
- package/dist/v2/server.js +5 -5
- package/dist/v2/{storage-tags-19da4c0m.js → storage-tags-50wsqg3t.js} +5 -5
- package/dist/v2/{v2-archive-reader-jpdh0ktt.js → v2-archive-reader-ycjh6a2d.js} +1 -1
- package/dist/v2/{wrapup-orchestrator-5dfj2mcs.js → wrapup-orchestrator-ejcx02g2.js} +30 -30
- package/dist/{v2-archive-reader-557b5dn3.js → v2-archive-reader-wec0a8fx.js} +1 -1
- package/dist/wrapup-orchestrator-e7mczz6e.js +54 -0
- package/package.json +1 -1
- package/src/shared/data-path.test.ts +27 -10
- package/src/shared/data-path.ts +39 -39
- package/src/shared/test-temp-dir.ts +59 -0
- package/dist/wrapup-orchestrator-21hgybdk.js +0 -54
|
@@ -7,7 +7,7 @@ import {
|
|
|
7
7
|
deleteTagIdentityRevisions,
|
|
8
8
|
getTableColumnNames,
|
|
9
9
|
getMeasuredToolDefinitionTokens
|
|
10
|
-
} from "./index-
|
|
10
|
+
} from "./index-jrj95cce.js";
|
|
11
11
|
import {
|
|
12
12
|
invalidateAutoEmbedSession,
|
|
13
13
|
drainBackgroundBatches
|
|
@@ -20,7 +20,7 @@ import {
|
|
|
20
20
|
getMagicContextStorageDir,
|
|
21
21
|
log2,
|
|
22
22
|
sessionLog2
|
|
23
|
-
} from "./index-
|
|
23
|
+
} from "./index-ywrz4wy2.js";
|
|
24
24
|
import {
|
|
25
25
|
prepareCachedStatement2,
|
|
26
26
|
withSqliteBackgroundWriter2,
|
|
@@ -28,14 +28,14 @@ import {
|
|
|
28
28
|
} from "./index-gzy5w8ya.js";
|
|
29
29
|
import {
|
|
30
30
|
deleteUnmappedMessageFtsRows2
|
|
31
|
-
} from "./index-
|
|
31
|
+
} from "./index-s32f8y67.js";
|
|
32
32
|
import {
|
|
33
33
|
deleteChunkEmbedBackoffForSession2
|
|
34
|
-
} from "./index-
|
|
34
|
+
} from "./index-snbpdpa3.js";
|
|
35
35
|
import {
|
|
36
36
|
isPidAlive,
|
|
37
37
|
readProcessStartTime
|
|
38
|
-
} from "./index-
|
|
38
|
+
} from "./index-gqf8r04r.js";
|
|
39
39
|
import {
|
|
40
40
|
stripTagPrefix,
|
|
41
41
|
isRecord,
|
|
@@ -67,14 +67,14 @@ import {
|
|
|
67
67
|
getPendingPiCompactionMarkerState,
|
|
68
68
|
logPiCompactionMarkerClear,
|
|
69
69
|
isPrefixBoundThinkingModel
|
|
70
|
-
} from "./index-
|
|
70
|
+
} from "./index-8sc7vqt7.js";
|
|
71
71
|
import {
|
|
72
72
|
withReadOnlySessionDb
|
|
73
|
-
} from "./index-
|
|
73
|
+
} from "./index-x40zr813.js";
|
|
74
74
|
import {
|
|
75
75
|
layoutLkgPrefix,
|
|
76
76
|
assembleLkgPrefix
|
|
77
|
-
} from "./index-
|
|
77
|
+
} from "./index-xx05vta0.js";
|
|
78
78
|
import {
|
|
79
79
|
gaDatabasePath2,
|
|
80
80
|
V2StoreReader2
|
|
@@ -91,7 +91,7 @@ import {
|
|
|
91
91
|
} from "./index-avwt563y.js";
|
|
92
92
|
import {
|
|
93
93
|
logSlowWriteTransaction
|
|
94
|
-
} from "./index-
|
|
94
|
+
} from "./index-m0pwswv9.js";
|
|
95
95
|
import {
|
|
96
96
|
ensurePrivateStorageDirectorySync,
|
|
97
97
|
writeStorageFileSync,
|
|
@@ -4859,6 +4859,21 @@ function externalHistorianFailureReason(error, prefix = "provider_error") {
|
|
|
4859
4859
|
}
|
|
4860
4860
|
|
|
4861
4861
|
// src/features/magic-context/storage-historian-runs.ts
|
|
4862
|
+
function getRecentFailedHistorianRunTimes(db, sessionId, limit) {
|
|
4863
|
+
if (!Number.isInteger(limit) || limit <= 0)
|
|
4864
|
+
return [];
|
|
4865
|
+
try {
|
|
4866
|
+
return db.prepare(`SELECT created_at FROM historian_runs
|
|
4867
|
+
WHERE session_id = ? AND run_kind = 'incremental' AND status = 'failed'
|
|
4868
|
+
AND id > (
|
|
4869
|
+
SELECT COALESCE(MAX(id), 0) FROM historian_runs
|
|
4870
|
+
WHERE session_id = ? AND run_kind = 'incremental' AND status = 'success'
|
|
4871
|
+
)
|
|
4872
|
+
ORDER BY id DESC LIMIT ?`).all(sessionId, sessionId, limit).map((row) => row.created_at);
|
|
4873
|
+
} catch {
|
|
4874
|
+
return [];
|
|
4875
|
+
}
|
|
4876
|
+
}
|
|
4862
4877
|
function recordHistorianRun(db, input) {
|
|
4863
4878
|
try {
|
|
4864
4879
|
const failureReason = input.failureReason == null ? input.status === "failed" ? "provider_error" : null : capHistorianFailureReason(input.failureReason, input.status === "failed" ? "provider_error" : "");
|
|
@@ -5163,4 +5178,4 @@ var ERROR_CLASSES = new Set([
|
|
|
5163
5178
|
"permission_denied",
|
|
5164
5179
|
"unknown"
|
|
5165
5180
|
]);
|
|
5166
|
-
export { advanceSessionActivity, observeSessionActivity, backfillSessionActivity, COMPARTMENT_LEASE_RENEWAL_MS, getCompartmentLeaseBlocker, acquireCompartmentLease, renewCompartmentLease, releaseCompartmentLease, releaseCompartmentLeaseBestEffort, isCompartmentLeaseHeld, isNoContentCompartment, queueM0Mutation, getMaxM0MutationId, getCompartments, getLastCompartmentEndMessage, getLastCompartmentEndMessageId, getCompartmentsByEndMessageId, appendCompartments, buildCompartmentBlock, saveRecompStagingPass, getRecompStaging, clearRecompStaging, getRecompPartialRange, setRecompPartialRange, escapeXmlAttr, escapeXmlContent, getUncoveredCompartmentEndsThrough, isPartialCompartmentEnd, readProjectDocsCanonical, readServerFallbackUsage, providerResponseFailed, isSuccessfulProviderCompletion, LkgRecoveryFenceError, lkgServedArrayDigest, hasCleanLkgRecoveryFence, dirtyLkgRecoveryRevision, ownsLkgDirtyFence, invalidateCleanLkgRecoveryFence, prepareLkgCaptureFence, certifyCommittedLkgCapture, markLkgRecoveryDirty, rememberUnpublishedAutoSearchNoHint, getUnpublishedAutoSearchNoHint, forgetUnpublishedAutoSearchNoHint, registerAutoSearchWork, cancelAutoSearchWork, readSessionMeta, getOrCreateSessionMeta, updateSessionMeta, advanceToolReclaimWatermark, markSessionCleanupPending, retryPendingSessionCleanups, retryPendingRustSessionCleanupsForProject, clearSession, requestPendingMaterialization, pendingMaterializationOrigin, hasPendingMaterializationOrigin, clearPendingMaterialization, clearPendingMaterializationOrigin, recordSystemPromptForRequest, recordHeldHeadForRequest, bindSystemPromptResponse, isHeldHeadForRequest, deferDeliveredSystemRefresh, retirePendingSystemPromptDelivery, lkgProviderInputTotal, beginV2LkgRequest, claimLkgRequestIdentity, currentLkgRequestIdentity, noteCapturedLkgRequest, noteLkgProviderResponse, measuredLkgPrefix, clearLkgMeasuredRequest, saveLkgSlotToDb, clearPersistedLkgSlotStrict, loadPersistedLkgSlot, drainStaleLkgSlots, createDbLkgPersistence, resolveLkgModelKeys, createLkgEntryProjector, captureLkgSlot, validateAnthropicReasoningRuns, validateLkgSeam, replayLkg, coldStartRawServedIndex, coldStartUncapturedReplay, noteUncertifiedNormalLkg, hasProcessLocalLkgProof, lkgDirtyRevision, rememberLkgDirtyRevision, readPersistedLkgUntaggedInputIds, persistLkgUntaggedInputIds, noteLkgRecoveryPrefix, readLkgRecoveryPrefix, noteLkgHealthyPrefix, lkgRecoveryReplayUnproven, lkgRecoveryEntryUnproven, beginServedRequest, noteServedPassPermission, noteServedModel, noteServedReplay, noteServedHostInput, noteServedRefusal, countServedRefusal, dropServedRecord, forgetServedRecord, commitServedRequest, lkgInputIdentity, registerLkgPersistence, beginLkgPass, visitMessageContentFields, contentSnapshotValue, messageContentFields, signatureForFields, exactReusablePrefix, incrementalLkgContentDigests, lkgContentDigest, lkgSlotRejection, captureSlot, getInMemorySlot, getSlot, forgetInMemorySlot, dropSlot, noteEntry, getLkgSlotHeapStats, TOOL_SWEEP_SCOPED_MARKER, useScopedToolSweep, createPreAdoptionToolSweepResolver, copySessionStateForClone, externalHistorianFailureReason, recordHistorianRun, summarizeImportance, tallyFactsByCategory, MEMORY_VISIBILITY_MUTATION_CATEGORY, queueMemoryMutation, getMemoryMutationsForRender, getMemoryMutationsForRenderByProjects, getMaxMemoryMutationId, getMaxMemoryMutationIdForProjects, GLOBAL_USER_PROFILE_PROJECT_PATH, getProjectState, bumpProjectUserProfileVersion, saveSourceContent, replaceSourceContent, getSourceContents, recordSubagentInvocation, getLatestHistorianInvocationId };
|
|
5181
|
+
export { advanceSessionActivity, observeSessionActivity, backfillSessionActivity, COMPARTMENT_LEASE_RENEWAL_MS, getCompartmentLeaseBlocker, acquireCompartmentLease, renewCompartmentLease, releaseCompartmentLease, releaseCompartmentLeaseBestEffort, isCompartmentLeaseHeld, isNoContentCompartment, queueM0Mutation, getMaxM0MutationId, getCompartments, getLastCompartmentEndMessage, getLastCompartmentEndMessageId, getCompartmentsByEndMessageId, appendCompartments, buildCompartmentBlock, saveRecompStagingPass, getRecompStaging, clearRecompStaging, getRecompPartialRange, setRecompPartialRange, escapeXmlAttr, escapeXmlContent, getUncoveredCompartmentEndsThrough, isPartialCompartmentEnd, readProjectDocsCanonical, readServerFallbackUsage, providerResponseFailed, isSuccessfulProviderCompletion, LkgRecoveryFenceError, lkgServedArrayDigest, hasCleanLkgRecoveryFence, dirtyLkgRecoveryRevision, ownsLkgDirtyFence, invalidateCleanLkgRecoveryFence, prepareLkgCaptureFence, certifyCommittedLkgCapture, markLkgRecoveryDirty, rememberUnpublishedAutoSearchNoHint, getUnpublishedAutoSearchNoHint, forgetUnpublishedAutoSearchNoHint, registerAutoSearchWork, cancelAutoSearchWork, readSessionMeta, getOrCreateSessionMeta, updateSessionMeta, advanceToolReclaimWatermark, markSessionCleanupPending, retryPendingSessionCleanups, retryPendingRustSessionCleanupsForProject, clearSession, requestPendingMaterialization, pendingMaterializationOrigin, hasPendingMaterializationOrigin, clearPendingMaterialization, clearPendingMaterializationOrigin, recordSystemPromptForRequest, recordHeldHeadForRequest, bindSystemPromptResponse, isHeldHeadForRequest, deferDeliveredSystemRefresh, retirePendingSystemPromptDelivery, lkgProviderInputTotal, beginV2LkgRequest, claimLkgRequestIdentity, currentLkgRequestIdentity, noteCapturedLkgRequest, noteLkgProviderResponse, measuredLkgPrefix, clearLkgMeasuredRequest, saveLkgSlotToDb, clearPersistedLkgSlotStrict, loadPersistedLkgSlot, drainStaleLkgSlots, createDbLkgPersistence, resolveLkgModelKeys, createLkgEntryProjector, captureLkgSlot, validateAnthropicReasoningRuns, validateLkgSeam, replayLkg, coldStartRawServedIndex, coldStartUncapturedReplay, noteUncertifiedNormalLkg, hasProcessLocalLkgProof, lkgDirtyRevision, rememberLkgDirtyRevision, readPersistedLkgUntaggedInputIds, persistLkgUntaggedInputIds, noteLkgRecoveryPrefix, readLkgRecoveryPrefix, noteLkgHealthyPrefix, lkgRecoveryReplayUnproven, lkgRecoveryEntryUnproven, beginServedRequest, noteServedPassPermission, noteServedModel, noteServedReplay, noteServedHostInput, noteServedRefusal, countServedRefusal, dropServedRecord, forgetServedRecord, commitServedRequest, lkgInputIdentity, registerLkgPersistence, beginLkgPass, visitMessageContentFields, contentSnapshotValue, messageContentFields, signatureForFields, exactReusablePrefix, incrementalLkgContentDigests, lkgContentDigest, lkgSlotRejection, captureSlot, getInMemorySlot, getSlot, forgetInMemorySlot, dropSlot, noteEntry, getLkgSlotHeapStats, TOOL_SWEEP_SCOPED_MARKER, useScopedToolSweep, createPreAdoptionToolSweepResolver, copySessionStateForClone, externalHistorianFailureReason, getRecentFailedHistorianRunTimes, recordHistorianRun, summarizeImportance, tallyFactsByCategory, MEMORY_VISIBILITY_MUTATION_CATEGORY, queueMemoryMutation, getMemoryMutationsForRender, getMemoryMutationsForRenderByProjects, getMaxMemoryMutationId, getMaxMemoryMutationIdForProjects, GLOBAL_USER_PROFILE_PROJECT_PATH, getProjectState, bumpProjectUserProfileVersion, saveSourceContent, replaceSourceContent, getSourceContents, recordSubagentInvocation, getLatestHistorianInvocationId };
|
|
@@ -3,7 +3,7 @@ import {
|
|
|
3
3
|
} from "./index-6nqz8hsz.js";
|
|
4
4
|
import {
|
|
5
5
|
getSynapseLaneIdentity
|
|
6
|
-
} from "./index-
|
|
6
|
+
} from "./index-pxnzyvjc.js";
|
|
7
7
|
import {
|
|
8
8
|
getHarness2
|
|
9
9
|
} from "./index-pavzsdc6.js";
|
|
@@ -11,7 +11,7 @@ import {
|
|
|
11
11
|
getMagicContextStorageDir,
|
|
12
12
|
importPluginModule,
|
|
13
13
|
log2
|
|
14
|
-
} from "./index-
|
|
14
|
+
} from "./index-ywrz4wy2.js";
|
|
15
15
|
import {
|
|
16
16
|
inRootAsyncContext2
|
|
17
17
|
} from "./index-gzy5w8ya.js";
|
|
@@ -3,19 +3,19 @@ import {
|
|
|
3
3
|
} from "./index-6nqz8hsz.js";
|
|
4
4
|
import {
|
|
5
5
|
log2
|
|
6
|
-
} from "./index-
|
|
6
|
+
} from "./index-ywrz4wy2.js";
|
|
7
7
|
import {
|
|
8
8
|
isSynapseEmbeddingTruncated,
|
|
9
9
|
SynapseEmbeddingProvider
|
|
10
|
-
} from "./index-
|
|
10
|
+
} from "./index-pxnzyvjc.js";
|
|
11
11
|
import {
|
|
12
12
|
LocalEmbeddingProvider
|
|
13
|
-
} from "./index-
|
|
13
|
+
} from "./index-zb4h9nrk.js";
|
|
14
14
|
import {
|
|
15
15
|
OpenAICompatibleEmbeddingProvider,
|
|
16
16
|
getProjectEmbeddingSnapshot2,
|
|
17
17
|
embedBatchForProject2
|
|
18
|
-
} from "./index-
|
|
18
|
+
} from "./index-gq1g9a3a.js";
|
|
19
19
|
import {
|
|
20
20
|
isEmbeddingHostBusy2
|
|
21
21
|
} from "./index-qt1qqasc.js";
|
package/dist/index.js
CHANGED
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
recordToolParameters,
|
|
5
5
|
createDroppedInputToolExecuteBeforeHook,
|
|
6
6
|
readRawSessionMessages2
|
|
7
|
-
} from "./index-
|
|
7
|
+
} from "./index-d0feqcs5.js";
|
|
8
8
|
import {
|
|
9
9
|
setHarness2
|
|
10
10
|
} from "./index-pavzsdc6.js";
|
|
@@ -18,7 +18,7 @@ import {
|
|
|
18
18
|
log2,
|
|
19
19
|
sessionLog2,
|
|
20
20
|
flushLogger2
|
|
21
|
-
} from "./index-
|
|
21
|
+
} from "./index-ywrz4wy2.js";
|
|
22
22
|
import"./index-z4p0ry94.js";
|
|
23
23
|
import {
|
|
24
24
|
withContentLanguageDirective,
|
|
@@ -58,7 +58,7 @@ import {
|
|
|
58
58
|
checkCompactionMarkerConsistency,
|
|
59
59
|
clearInjectionCache,
|
|
60
60
|
clearNoteNudgeTriggerOnly
|
|
61
|
-
} from "./index-
|
|
61
|
+
} from "./index-a09sw9fx.js";
|
|
62
62
|
import"./index-sd3egckz.js";
|
|
63
63
|
import {
|
|
64
64
|
hasTrustedAbsoluteWall,
|
|
@@ -68,7 +68,7 @@ import {
|
|
|
68
68
|
deriveHistorianChunkTokens2,
|
|
69
69
|
resolveKnownHistorianContextLimit2,
|
|
70
70
|
resolveHistorianContextLimit2
|
|
71
|
-
} from "./index-
|
|
71
|
+
} from "./index-5ps3axh5.js";
|
|
72
72
|
import {
|
|
73
73
|
buildDreamTaskRuntimeConfigs2,
|
|
74
74
|
userMemoryCollectionEnabled2,
|
|
@@ -143,7 +143,7 @@ import {
|
|
|
143
143
|
parameterDescriptionsFor,
|
|
144
144
|
MagicContextRpcServer,
|
|
145
145
|
applyHiddenSubagentTemperature
|
|
146
|
-
} from "./index-
|
|
146
|
+
} from "./index-575njz7q.js";
|
|
147
147
|
import {
|
|
148
148
|
resolveOpenCodeDbPath,
|
|
149
149
|
openCodeDbPathExists,
|
|
@@ -170,13 +170,13 @@ import {
|
|
|
170
170
|
beginBootQuietPeriod,
|
|
171
171
|
bootQuietRemainingMs,
|
|
172
172
|
scheduleAfterBootQuiet
|
|
173
|
-
} from "./index-
|
|
173
|
+
} from "./index-tzy5h4x6.js";
|
|
174
174
|
import {
|
|
175
175
|
BoundedSessionMap,
|
|
176
176
|
deleteTemporalDecision,
|
|
177
177
|
recordToolDefinition,
|
|
178
178
|
getCurrentToolSetHash
|
|
179
|
-
} from "./index-
|
|
179
|
+
} from "./index-jrj95cce.js";
|
|
180
180
|
import {
|
|
181
181
|
observeSessionActivity,
|
|
182
182
|
backfillSessionActivity,
|
|
@@ -195,11 +195,11 @@ import {
|
|
|
195
195
|
dropServedRecord,
|
|
196
196
|
registerLkgPersistence,
|
|
197
197
|
dropSlot
|
|
198
|
-
} from "./index-
|
|
198
|
+
} from "./index-ywxvdwmj.js";
|
|
199
199
|
import {
|
|
200
200
|
recordSessionProjectIdentity
|
|
201
|
-
} from "./index-
|
|
202
|
-
import"./index-
|
|
201
|
+
} from "./index-jg7sbt3v.js";
|
|
202
|
+
import"./index-gqf8r04r.js";
|
|
203
203
|
import"./index-fb3zxn06.js";
|
|
204
204
|
import {
|
|
205
205
|
startBootDeadline,
|
|
@@ -210,7 +210,7 @@ import {
|
|
|
210
210
|
openDatabaseAsync,
|
|
211
211
|
isDatabasePersisted,
|
|
212
212
|
getDatabasePersistenceError
|
|
213
|
-
} from "./index-
|
|
213
|
+
} from "./index-0cz8bsyx.js";
|
|
214
214
|
import {
|
|
215
215
|
registerExitAbort,
|
|
216
216
|
unregisterExitAbort
|
|
@@ -219,37 +219,37 @@ import"./index-96ztjvkn.js";
|
|
|
219
219
|
import"./index-1d042x6w.js";
|
|
220
220
|
import {
|
|
221
221
|
forgetRawSessionOrdinalWatermark2
|
|
222
|
-
} from "./index-
|
|
223
|
-
import"./index-
|
|
224
|
-
import"./index-
|
|
222
|
+
} from "./index-q7q6qp1f.js";
|
|
223
|
+
import"./index-s32f8y67.js";
|
|
224
|
+
import"./index-xx05vta0.js";
|
|
225
225
|
import"./index-fr0wbhdn.js";
|
|
226
226
|
import {
|
|
227
227
|
preloadTokenizer
|
|
228
|
-
} from "./index-
|
|
229
|
-
import"./index-
|
|
228
|
+
} from "./index-5vsk2cpp.js";
|
|
229
|
+
import"./index-pxnzyvjc.js";
|
|
230
230
|
import {
|
|
231
231
|
getDefaultSubcConnectionFile,
|
|
232
232
|
SubcModuleTransport
|
|
233
|
-
} from "./index-
|
|
233
|
+
} from "./index-3yyfftqq.js";
|
|
234
234
|
import"./index-qt1qqasc.js";
|
|
235
|
-
import"./index-
|
|
235
|
+
import"./index-e6ncz7a6.js";
|
|
236
236
|
import {
|
|
237
237
|
observeOpenCodeTurnEvent,
|
|
238
238
|
clearTrackedOpenCodeSession,
|
|
239
239
|
findLastAssistantModelFromOpenCodeDb
|
|
240
|
-
} from "./index-
|
|
240
|
+
} from "./index-x40zr813.js";
|
|
241
241
|
import {
|
|
242
242
|
sendCommandResult2,
|
|
243
243
|
sendStatusNotification2
|
|
244
|
-
} from "./index-
|
|
244
|
+
} from "./index-1sq1krqw.js";
|
|
245
245
|
import {
|
|
246
246
|
detectConflicts,
|
|
247
247
|
resolveCompactionForBoot
|
|
248
|
-
} from "./index-
|
|
248
|
+
} from "./index-esqcwes7.js";
|
|
249
249
|
import {
|
|
250
250
|
sendConflictWarning2,
|
|
251
251
|
cleanupConflictWarnings2
|
|
252
|
-
} from "./index-
|
|
252
|
+
} from "./index-pzvdf7sr.js";
|
|
253
253
|
import"./index-1zx87sdm.js";
|
|
254
254
|
import {
|
|
255
255
|
stripPersistedAssistantText,
|
|
@@ -280,7 +280,7 @@ import {
|
|
|
280
280
|
isAnthropicFamilyRoute,
|
|
281
281
|
deleteTagsByMessageId2,
|
|
282
282
|
getMaxTagNumberBySession2
|
|
283
|
-
} from "./index-
|
|
283
|
+
} from "./index-8sc7vqt7.js";
|
|
284
284
|
import {
|
|
285
285
|
resolveHistorianModel2,
|
|
286
286
|
resolveOpenCodeAgentOverrides2,
|
|
@@ -290,24 +290,24 @@ import {
|
|
|
290
290
|
getEmbedDrainUiStatus,
|
|
291
291
|
clearEmbedSessionState
|
|
292
292
|
} from "./index-2amn2s73.js";
|
|
293
|
-
import"./index-
|
|
293
|
+
import"./index-snbpdpa3.js";
|
|
294
294
|
import {
|
|
295
295
|
deleteIndexedMessage
|
|
296
|
-
} from "./index-
|
|
296
|
+
} from "./index-ev2rrjfc.js";
|
|
297
297
|
import"./index-6athgjba.js";
|
|
298
|
-
import"./index-
|
|
298
|
+
import"./index-tebcx987.js";
|
|
299
299
|
import {
|
|
300
300
|
pushNotification2
|
|
301
301
|
} from "./index-x8a7jmkh.js";
|
|
302
|
-
import"./index-
|
|
302
|
+
import"./index-zb4h9nrk.js";
|
|
303
303
|
import {
|
|
304
304
|
getEmbeddingCoverageStatus2
|
|
305
|
-
} from "./index-
|
|
305
|
+
} from "./index-gq1g9a3a.js";
|
|
306
306
|
import"./index-4dhv7mqz.js";
|
|
307
|
-
import"./index-
|
|
307
|
+
import"./index-zxj39ba2.js";
|
|
308
308
|
import"./index-jjvbk92s.js";
|
|
309
|
-
import"./index-
|
|
310
|
-
import"./index-
|
|
309
|
+
import"./index-n6aye6ny.js";
|
|
310
|
+
import"./index-832w615x.js";
|
|
311
311
|
import {
|
|
312
312
|
createTagger,
|
|
313
313
|
cavemanWordRulesForLanguage,
|
|
@@ -317,25 +317,25 @@ import {
|
|
|
317
317
|
armBindingRecoverySafely,
|
|
318
318
|
collectForeignTextParts,
|
|
319
319
|
resetDegradedCacheCount2
|
|
320
|
-
} from "./index-
|
|
320
|
+
} from "./index-j4aeh6tx.js";
|
|
321
321
|
import {
|
|
322
322
|
scheduleClearAndReindex
|
|
323
|
-
} from "./index-
|
|
323
|
+
} from "./index-3hk445am.js";
|
|
324
324
|
import {
|
|
325
325
|
runManagedRecomp2
|
|
326
|
-
} from "./index-
|
|
326
|
+
} from "./index-gth4t4ar.js";
|
|
327
327
|
import {
|
|
328
328
|
isValidSemver,
|
|
329
329
|
compareSemverCore
|
|
330
|
-
} from "./index-
|
|
330
|
+
} from "./index-98qy103c.js";
|
|
331
331
|
import"./index-fmsr7v69.js";
|
|
332
332
|
import {
|
|
333
333
|
runManagedWrapup2
|
|
334
|
-
} from "./index-
|
|
335
|
-
import"./index-
|
|
334
|
+
} from "./index-s3t4vk21.js";
|
|
335
|
+
import"./index-tq20edcs.js";
|
|
336
336
|
import"./index-52x68mj4.js";
|
|
337
|
-
import"./index-
|
|
338
|
-
import"./index-
|
|
337
|
+
import"./index-s2jdky2x.js";
|
|
338
|
+
import"./index-kv4ntrr6.js";
|
|
339
339
|
import {
|
|
340
340
|
isDreamerRunnable,
|
|
341
341
|
isSmartNoteSurfaceAvailable,
|
|
@@ -355,7 +355,7 @@ import {
|
|
|
355
355
|
import {
|
|
356
356
|
closeQuietly
|
|
357
357
|
} from "./index-8ajstryz.js";
|
|
358
|
-
import"./index-
|
|
358
|
+
import"./index-m0pwswv9.js";
|
|
359
359
|
import {
|
|
360
360
|
setStoragePrivatePermissionEnforcement,
|
|
361
361
|
ensureStorageDirectorySync,
|
|
@@ -8203,7 +8203,7 @@ var require_src2 = __commonJS(function(exports, module) {
|
|
|
8203
8203
|
// package.json
|
|
8204
8204
|
var package_default = {
|
|
8205
8205
|
name: "@cortexkit/opencode-magic-context",
|
|
8206
|
-
version: "0.49.
|
|
8206
|
+
version: "0.49.59",
|
|
8207
8207
|
type: "module",
|
|
8208
8208
|
description: "OpenCode plugin for Magic Context — cross-session memory and context management",
|
|
8209
8209
|
main: "dist/index.js",
|
|
@@ -10783,6 +10783,7 @@ function createMagicContextHook(deps) {
|
|
|
10783
10783
|
dreamer: dreamerConfig ? {
|
|
10784
10784
|
config: dreamerConfig,
|
|
10785
10785
|
projectPath,
|
|
10786
|
+
isDisabled: () => (deps.sampleDreamConfig?.() ?? deps.config).dreamer?.disable === true,
|
|
10786
10787
|
runManual: (task) => {
|
|
10787
10788
|
const sampledDream = deps.sampleDreamConfig?.() ?? deps.config;
|
|
10788
10789
|
const currentDreamer = sampledDream.dreamer ?? dreamerConfig;
|
|
@@ -12080,7 +12081,7 @@ async function setup(context) {
|
|
|
12080
12081
|
if (claimStorageBackupWarningCheck() && isMagicContextStorageOutsideEngram(storageDir)) {
|
|
12081
12082
|
log2(`[magic-context] Magic Context storage is at ${storageDir}, outside the folder Engram backs up (~/.local/share/cortexkit/magic-context). It is not included in CortexKit backups.`);
|
|
12082
12083
|
}
|
|
12083
|
-
const { registerContext } = await import("./context-
|
|
12084
|
+
const { registerContext } = await import("./context-aexc6pbs.js");
|
|
12084
12085
|
setHarness2("opencode2");
|
|
12085
12086
|
bindStaleBuildNotice({}, import.meta.url, "opencode2");
|
|
12086
12087
|
const duties = await registerContext(context);
|
|
@@ -12159,7 +12160,7 @@ var server = async (ctx) => {
|
|
|
12159
12160
|
if (hasBannerEntries)
|
|
12160
12161
|
setTimeout(async () => {
|
|
12161
12162
|
try {
|
|
12162
|
-
const { sendStatusNotification } = await importPluginModule(() => import("./send-session-notification-
|
|
12163
|
+
const { sendStatusNotification } = await importPluginModule(() => import("./send-session-notification-ykvt5k2s.js"));
|
|
12163
12164
|
const clientWithSessions = ctx.client;
|
|
12164
12165
|
const sessions = await Promise.resolve(clientWithSessions.session?.list?.()).catch(() => null);
|
|
12165
12166
|
const sessionList = Array.isArray(sessions) ? sessions : sessions?.data;
|
|
@@ -12177,7 +12178,7 @@ var server = async (ctx) => {
|
|
|
12177
12178
|
log2(`[magic-context] opencode_db_missing path=${openCodeDbResolution.path} source=${openCodeDbResolution.source}`);
|
|
12178
12179
|
setTimeout(async () => {
|
|
12179
12180
|
try {
|
|
12180
|
-
const { sendStatusNotification } = await importPluginModule(() => import("./send-session-notification-
|
|
12181
|
+
const { sendStatusNotification } = await importPluginModule(() => import("./send-session-notification-ykvt5k2s.js"));
|
|
12181
12182
|
const clientWithSessions = ctx.client;
|
|
12182
12183
|
const sessions = await Promise.resolve(clientWithSessions.session?.list?.()).catch(() => null);
|
|
12183
12184
|
const sessionList = Array.isArray(sessions) ? sessions : sessions?.data;
|
|
@@ -12450,12 +12451,12 @@ var server = async (ctx) => {
|
|
|
12450
12451
|
{
|
|
12451
12452
|
const fence = getSchemaFenceRejection();
|
|
12452
12453
|
if (fence) {
|
|
12453
|
-
importPluginModule(() => import("./conflict-warning-hook-
|
|
12454
|
+
importPluginModule(() => import("./conflict-warning-hook-m8yezwdj.js")).then(({ sendSchemaFenceWarning }) => sendSchemaFenceWarning(ctx.client, ctx.directory, fence)).catch((error) => log2("[magic-context] schema-fence warning unavailable:", error));
|
|
12454
12455
|
}
|
|
12455
12456
|
}
|
|
12456
12457
|
const serverUrl = ctx.serverUrl;
|
|
12457
12458
|
const serverUrlStr = serverUrl instanceof URL ? serverUrl.toString().replace(/\/$/, "") : typeof serverUrl === "string" ? serverUrl.replace(/\/$/, "") : undefined;
|
|
12458
|
-
importPluginModule(() => import("./send-session-notification-
|
|
12459
|
+
importPluginModule(() => import("./send-session-notification-ykvt5k2s.js")).then(({ setNotificationServerUrl }) => {
|
|
12459
12460
|
setNotificationServerUrl(serverUrlStr);
|
|
12460
12461
|
}).catch((error) => log2("[magic-context] notification transport unavailable:", error));
|
|
12461
12462
|
if (conflictResult?.hasConflict) {
|
|
@@ -12469,7 +12470,7 @@ var server = async (ctx) => {
|
|
|
12469
12470
|
}
|
|
12470
12471
|
if (pluginConfig.enabled && !conflictResult?.hasConflict) {
|
|
12471
12472
|
setTimeout(() => {
|
|
12472
|
-
importPluginModule(() => import("./announcement-
|
|
12473
|
+
importPluginModule(() => import("./announcement-p41dde4h.js")).then(({
|
|
12473
12474
|
shouldShowAnnouncement,
|
|
12474
12475
|
ANNOUNCEMENT_VERSION,
|
|
12475
12476
|
ANNOUNCEMENT_FEATURES,
|
|
@@ -12478,7 +12479,7 @@ var server = async (ctx) => {
|
|
|
12478
12479
|
}) => {
|
|
12479
12480
|
if (!shouldShowAnnouncement())
|
|
12480
12481
|
return;
|
|
12481
|
-
return importPluginModule(() => import("./conflict-warning-hook-
|
|
12482
|
+
return importPluginModule(() => import("./conflict-warning-hook-m8yezwdj.js")).then(({ sendStartupAnnouncement }) => sendStartupAnnouncement(ctx.client, ctx.directory, ANNOUNCEMENT_VERSION, ANNOUNCEMENT_FEATURES, ANNOUNCEMENT_FOOTER, markAnnouncementSeen));
|
|
12482
12483
|
}).catch(() => {});
|
|
12483
12484
|
}, 8000);
|
|
12484
12485
|
}
|
|
@@ -12552,8 +12553,8 @@ var server = async (ctx) => {
|
|
|
12552
12553
|
tryReopenStorage,
|
|
12553
12554
|
rustReplayParticipant: () => magicContextRuntime.magicContext?.getRustReplayParticipant?.() ?? null,
|
|
12554
12555
|
onStorageBusyRefusal: async (sessionId, message) => {
|
|
12555
|
-
const { sendStatusNotification } = await importPluginModule(() => import("./send-session-notification-
|
|
12556
|
-
const { abortSessionFailClosed } = await importPluginModule(() => import("./transform-postprocess-phase-
|
|
12556
|
+
const { sendStatusNotification } = await importPluginModule(() => import("./send-session-notification-ykvt5k2s.js"));
|
|
12557
|
+
const { abortSessionFailClosed } = await importPluginModule(() => import("./transform-postprocess-phase-gxb3sp91.js"));
|
|
12557
12558
|
await sendStatusNotification(ctx.client, sessionId, message, {
|
|
12558
12559
|
toastDurationMs: 15000
|
|
12559
12560
|
});
|
|
@@ -5,13 +5,13 @@ import {
|
|
|
5
5
|
startMessageFtsRowidMapBackfill2,
|
|
6
6
|
messageFtsOrdinalRangeIsMapped2,
|
|
7
7
|
deleteUnmappedMessageFtsRows2
|
|
8
|
-
} from "./index-
|
|
9
|
-
import"./index-
|
|
8
|
+
} from "./index-s32f8y67.js";
|
|
9
|
+
import"./index-q7q6qp1f.js";
|
|
10
10
|
import"./index-96ztjvkn.js";
|
|
11
11
|
import"./index-v0p37hm2.js";
|
|
12
|
-
import"./index-
|
|
12
|
+
import"./index-m0pwswv9.js";
|
|
13
13
|
import"./index-gzy5w8ya.js";
|
|
14
|
-
import"./index-
|
|
14
|
+
import"./index-ywrz4wy2.js";
|
|
15
15
|
import"./index-pavzsdc6.js";
|
|
16
16
|
import"./index-z4p0ry94.js";
|
|
17
17
|
import"./index-1d042x6w.js";
|
|
@@ -4,20 +4,20 @@ import {
|
|
|
4
4
|
yieldIndexChunk2
|
|
5
5
|
} from "./index-gzy5w8ya.js";
|
|
6
6
|
import"./index-1zx87sdm.js";
|
|
7
|
-
import"./index-
|
|
8
|
-
import"./index-
|
|
7
|
+
import"./index-8sc7vqt7.js";
|
|
8
|
+
import"./index-5vsk2cpp.js";
|
|
9
9
|
import"./index-pavzsdc6.js";
|
|
10
|
-
import"./index-
|
|
10
|
+
import"./index-ywrz4wy2.js";
|
|
11
11
|
import"./index-z4p0ry94.js";
|
|
12
|
-
import"./index-
|
|
12
|
+
import"./index-jrj95cce.js";
|
|
13
13
|
import"./index-6nqz8hsz.js";
|
|
14
14
|
import"./index-v0p37hm2.js";
|
|
15
15
|
import"./index-96ztjvkn.js";
|
|
16
16
|
import"./index-1d042x6w.js";
|
|
17
|
-
import"./index-
|
|
17
|
+
import"./index-q7q6qp1f.js";
|
|
18
18
|
import"./index-58e3y90n.js";
|
|
19
|
-
import"./index-
|
|
20
|
-
import"./index-
|
|
19
|
+
import"./index-x40zr813.js";
|
|
20
|
+
import"./index-d0feqcs5.js";
|
|
21
21
|
import {
|
|
22
22
|
MESSAGE_INDEX_MAX_FTS_BYTES,
|
|
23
23
|
messageIndexSkipKey,
|
|
@@ -25,9 +25,9 @@ import {
|
|
|
25
25
|
markMessageIndexDirty,
|
|
26
26
|
getIndexableContent,
|
|
27
27
|
indexSingleMessage
|
|
28
|
-
} from "./index-
|
|
29
|
-
import"./index-
|
|
30
|
-
import"./index-
|
|
28
|
+
} from "./index-ev2rrjfc.js";
|
|
29
|
+
import"./index-s32f8y67.js";
|
|
30
|
+
import"./index-m0pwswv9.js";
|
|
31
31
|
|
|
32
32
|
// src/features/magic-context/message-index-bounded.ts
|
|
33
33
|
import { createHash } from "node:crypto";
|
|
@@ -3,11 +3,11 @@ import {
|
|
|
3
3
|
withoutSqliteTransformPass2
|
|
4
4
|
} from "./index-gzy5w8ya.js";
|
|
5
5
|
import"./index-pavzsdc6.js";
|
|
6
|
-
import"./index-
|
|
6
|
+
import"./index-ywrz4wy2.js";
|
|
7
7
|
import"./index-z4p0ry94.js";
|
|
8
8
|
import {
|
|
9
9
|
logSlowWriteTransaction
|
|
10
|
-
} from "./index-
|
|
10
|
+
} from "./index-m0pwswv9.js";
|
|
11
11
|
|
|
12
12
|
// src/features/magic-context/message-time-backfill.ts
|
|
13
13
|
var MESSAGE_TIME_BACKFILL_BATCH_SIZE = 500;
|
package/dist/migration-worker.js
CHANGED
|
@@ -2,7 +2,7 @@ import"./index-pavzsdc6.js";
|
|
|
2
2
|
import {
|
|
3
3
|
setLogLineForwarder2,
|
|
4
4
|
log2
|
|
5
|
-
} from "./index-
|
|
5
|
+
} from "./index-ywrz4wy2.js";
|
|
6
6
|
import"./index-z4p0ry94.js";
|
|
7
7
|
import {
|
|
8
8
|
Database2
|
|
@@ -10,27 +10,27 @@ import {
|
|
|
10
10
|
import"./index-fr0wbhdn.js";
|
|
11
11
|
import {
|
|
12
12
|
runMigrationsWithRetry
|
|
13
|
-
} from "./index-
|
|
14
|
-
import"./index-
|
|
13
|
+
} from "./index-xx05vta0.js";
|
|
14
|
+
import"./index-jrj95cce.js";
|
|
15
15
|
import"./index-58e3y90n.js";
|
|
16
|
-
import"./index-
|
|
17
|
-
import"./index-
|
|
16
|
+
import"./index-tzy5h4x6.js";
|
|
17
|
+
import"./index-gqf8r04r.js";
|
|
18
18
|
import"./index-fb3zxn06.js";
|
|
19
19
|
import {
|
|
20
20
|
setSqlitePragmaConfig,
|
|
21
21
|
initializeDatabase
|
|
22
|
-
} from "./index-
|
|
22
|
+
} from "./index-0cz8bsyx.js";
|
|
23
23
|
import"./index-wh9fxds5.js";
|
|
24
24
|
import"./index-v0p37hm2.js";
|
|
25
25
|
import"./index-96ztjvkn.js";
|
|
26
26
|
import"./index-1d042x6w.js";
|
|
27
|
-
import"./index-
|
|
28
|
-
import"./index-
|
|
29
|
-
import"./index-
|
|
27
|
+
import"./index-q7q6qp1f.js";
|
|
28
|
+
import"./index-s32f8y67.js";
|
|
29
|
+
import"./index-5vsk2cpp.js";
|
|
30
30
|
import {
|
|
31
31
|
closeQuietly
|
|
32
32
|
} from "./index-8ajstryz.js";
|
|
33
|
-
import"./index-
|
|
33
|
+
import"./index-m0pwswv9.js";
|
|
34
34
|
import {
|
|
35
35
|
serveWorkerJobs
|
|
36
36
|
} from "./index-7v05d9b7.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-session-hooks.d.ts","sourceRoot":"","sources":["../../../src/plugin/hooks/create-session-hooks.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,cAAc,CAAC;AAE7D,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,4BAA4B,CAAC;AAKnE,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,yCAAyC,CAAC;AAGnF,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,8CAA8C,CAAC;AACrF,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,+CAA+C,CAAC;AAC1F,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,qCAAqC,CAAC;AAChF,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AAC9C;;;;;;GAMG;AACH,wBAAgB,2BAA2B,CAAC,YAAY,EAAE,wBAAwB;;;;;;;;;;;;;mBAcrB,CAAC;aAA2B,CAAC;aAE3E,CAAC;eAA6B,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;2BA+G28zC,CAAC;;;;eAA8iB,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA3Gxi1C;AAED,wBAAgB,kBAAkB,CAAC,IAAI,EAAE;IACrC,GAAG,EAAE,aAAa,CAAC;IACnB,YAAY,EAAE,wBAAwB,CAAC;IACvC,gBAAgB,CAAC,EAAE,gBAAgB,CAAC,wBAAwB,CAAC,CAAC;IAC9D,gBAAgB,EAAE,gBAAgB,CAAC;IACnC,oBAAoB,CAAC,EAAE,oBAAoB,CAAC;IAC5C,oBAAoB,CAAC,EAAE,oBAAoB,CAAC;CAC/C;;;;;;;;;;;;;qBAkG8uJ,CAAC;8BAAwC,CAAC;iBAA8C,CAAC;0BAAc,CAAC;uBAAiB,CAAC;;;;;;;;;;;;;qBAAhkG,CAAC;mBAA6B,CAAC;iBAA2B,CAAC;iBAA2B,CAAC;0BAAc,CAAC;uBAAiB,CAAC;;;iBAA2D,CAAC;;oBAA4D,CAAC;uBAAiC,CAAC;yBAAoC,CAAC;;;;;;
|
|
1
|
+
{"version":3,"file":"create-session-hooks.d.ts","sourceRoot":"","sources":["../../../src/plugin/hooks/create-session-hooks.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,cAAc,CAAC;AAE7D,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,4BAA4B,CAAC;AAKnE,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,yCAAyC,CAAC;AAGnF,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,8CAA8C,CAAC;AACrF,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,+CAA+C,CAAC;AAC1F,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,qCAAqC,CAAC;AAChF,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AAC9C;;;;;;GAMG;AACH,wBAAgB,2BAA2B,CAAC,YAAY,EAAE,wBAAwB;;;;;;;;;;;;;mBAcrB,CAAC;aAA2B,CAAC;aAE3E,CAAC;eAA6B,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;2BA+G28zC,CAAC;;;;eAA8iB,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA3Gxi1C;AAED,wBAAgB,kBAAkB,CAAC,IAAI,EAAE;IACrC,GAAG,EAAE,aAAa,CAAC;IACnB,YAAY,EAAE,wBAAwB,CAAC;IACvC,gBAAgB,CAAC,EAAE,gBAAgB,CAAC,wBAAwB,CAAC,CAAC;IAC9D,gBAAgB,EAAE,gBAAgB,CAAC;IACnC,oBAAoB,CAAC,EAAE,oBAAoB,CAAC;IAC5C,oBAAoB,CAAC,EAAE,oBAAoB,CAAC;CAC/C;;;;;;;;;;;;;qBAkG8uJ,CAAC;8BAAwC,CAAC;iBAA8C,CAAC;0BAAc,CAAC;uBAAiB,CAAC;;;;;;;;;;;;;qBAAhkG,CAAC;mBAA6B,CAAC;iBAA2B,CAAC;iBAA2B,CAAC;0BAAc,CAAC;uBAAiB,CAAC;;;iBAA2D,CAAC;;oBAA4D,CAAC;uBAAiC,CAAC;yBAAoC,CAAC;;;;;;0BAAsg8C,CAAC;;;;;;;;;;;;;;;;EAvDvmgD;AAED,wBAAsB,uBAAuB,CAAC,IAAI,EAAE;IAChD,GAAG,EAAE,aAAa,CAAC;IACnB,YAAY,EAAE,wBAAwB,CAAC;IACvC,gBAAgB,CAAC,EAAE,gBAAgB,CAAC,wBAAwB,CAAC,CAAC;IAC9D,gBAAgB,EAAE,gBAAgB,CAAC;IACnC,oBAAoB,CAAC,EAAE,oBAAoB,CAAC;IAC5C,oBAAoB,CAAC,EAAE,oBAAoB,CAAC;IAC5C,oBAAoB,CAAC,EAAE,CAAC,OAAO,EAAE,mBAAmB,KAAK,IAAI,CAAC;CACjE;;;;;;;;;;;;;qBA6C8uJ,CAAC;8BAAwC,CAAC;iBAA8C,CAAC;0BAAc,CAAC;uBAAiB,CAAC;;;;;;;;;;;;;qBAAhkG,CAAC;mBAA6B,CAAC;iBAA2B,CAAC;iBAA2B,CAAC;0BAAc,CAAC;uBAAiB,CAAC;;;iBAA2D,CAAC;;oBAA4D,CAAC;uBAAiC,CAAC;yBAAoC,CAAC;;;;;;0BAAsg8C,CAAC;;;;;;;;;;;;;;;;GADvmgD"}
|
package/dist/{project-embedding-registry-f2azrq24.js → project-embedding-registry-c2sfnamh.js}
RENAMED
|
@@ -36,24 +36,24 @@ import {
|
|
|
36
36
|
sweepAllRegisteredProjects2,
|
|
37
37
|
_setTestProviderFactoryForProject2,
|
|
38
38
|
_resetProjectEmbeddingRegistryForTests2
|
|
39
|
-
} from "./index-
|
|
39
|
+
} from "./index-gq1g9a3a.js";
|
|
40
40
|
import"./index-4dhv7mqz.js";
|
|
41
41
|
import"./index-2amn2s73.js";
|
|
42
42
|
import"./index-qt1qqasc.js";
|
|
43
|
-
import"./index-
|
|
43
|
+
import"./index-zb4h9nrk.js";
|
|
44
44
|
import"./index-6nqz8hsz.js";
|
|
45
|
-
import"./index-
|
|
46
|
-
import"./index-
|
|
47
|
-
import"./index-
|
|
48
|
-
import"./index-
|
|
49
|
-
import"./index-
|
|
50
|
-
import"./index-
|
|
45
|
+
import"./index-jg7sbt3v.js";
|
|
46
|
+
import"./index-snbpdpa3.js";
|
|
47
|
+
import"./index-pxnzyvjc.js";
|
|
48
|
+
import"./index-tzy5h4x6.js";
|
|
49
|
+
import"./index-s32f8y67.js";
|
|
50
|
+
import"./index-q7q6qp1f.js";
|
|
51
51
|
import"./index-96ztjvkn.js";
|
|
52
52
|
import"./index-v0p37hm2.js";
|
|
53
|
-
import"./index-
|
|
54
|
-
import"./index-
|
|
53
|
+
import"./index-m0pwswv9.js";
|
|
54
|
+
import"./index-5vsk2cpp.js";
|
|
55
55
|
import"./index-gzy5w8ya.js";
|
|
56
|
-
import"./index-
|
|
56
|
+
import"./index-ywrz4wy2.js";
|
|
57
57
|
import"./index-pavzsdc6.js";
|
|
58
58
|
import"./index-z4p0ry94.js";
|
|
59
59
|
import"./index-1d042x6w.js";
|