@cortexkit/opencode-magic-context 0.49.81 → 0.49.83
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 +3 -3
- package/dist/chunk-embedding-write-worker.js +4 -4
- package/dist/{conflict-warning-hook-8s8r0c0v.js → conflict-warning-hook-a0wrnzch.js} +2 -2
- package/dist/{context-359s1ncq.js → context-xmyke353.js} +258 -31
- package/dist/{embedding-backfill-0tvprmrn.js → embedding-backfill-k994xdas.js} +4 -4
- package/dist/features/magic-context/dreamer/map-memories-retry.d.ts +18 -0
- package/dist/features/magic-context/dreamer/map-memories-retry.d.ts.map +1 -0
- package/dist/features/magic-context/dreamer/map-memories.d.ts.map +1 -1
- package/dist/features/magic-context/dreamer/retrospective-raw-provider.d.ts +2 -0
- package/dist/features/magic-context/dreamer/retrospective-raw-provider.d.ts.map +1 -1
- package/dist/features/magic-context/dreamer/task-gates.d.ts +1 -1
- package/dist/features/magic-context/dreamer/task-gates.d.ts.map +1 -1
- package/dist/features/magic-context/dreamer/task-registry.d.ts +7 -0
- package/dist/features/magic-context/dreamer/task-registry.d.ts.map +1 -1
- package/dist/features/magic-context/dreamer/task-scheduler.d.ts +9 -0
- package/dist/features/magic-context/dreamer/task-scheduler.d.ts.map +1 -1
- package/dist/features/magic-context/memory/identity-merge-command.d.ts +4 -0
- package/dist/features/magic-context/memory/identity-merge-command.d.ts.map +1 -0
- package/dist/features/magic-context/memory/project-binding-notice.d.ts +5 -0
- package/dist/features/magic-context/memory/project-binding-notice.d.ts.map +1 -0
- package/dist/features/magic-context/memory/project-identity.d.ts +1 -0
- package/dist/features/magic-context/memory/project-identity.d.ts.map +1 -1
- package/dist/features/magic-context/storage-clone.d.ts +17 -0
- package/dist/features/magic-context/storage-clone.d.ts.map +1 -1
- package/dist/features/magic-context/store-generation-rebase.d.ts +13 -0
- package/dist/features/magic-context/store-generation-rebase.d.ts.map +1 -1
- package/dist/hooks/magic-context/compartment-runner-incremental.d.ts +1 -7
- package/dist/hooks/magic-context/compartment-runner-incremental.d.ts.map +1 -1
- package/dist/hooks/magic-context/execute-status.d.ts.map +1 -1
- package/dist/hooks/magic-context/rust-mode-transform.d.ts.map +1 -1
- package/dist/hooks/magic-context/stored-compartment-gaps.d.ts +16 -0
- package/dist/hooks/magic-context/stored-compartment-gaps.d.ts.map +1 -0
- package/dist/hooks/magic-context/transform.d.ts +1 -0
- package/dist/hooks/magic-context/transform.d.ts.map +1 -1
- package/dist/{index-m4q6ptgz.js → index-2xhzmwf6.js} +4 -4
- package/dist/{index-jhhkb4jv.js → index-2ygw6q5s.js} +1 -1
- package/dist/{index-v0epndb8.js → index-93rezfvc.js} +22 -2
- package/dist/{index-1rx9bfrk.js → index-b2787fk6.js} +111 -40
- package/dist/{index-tebcx987.js → index-bd34njzg.js} +1 -1
- package/dist/{index-zpd4pxnp.js → index-dg5jvh9r.js} +6 -6
- package/dist/{index-6athgjba.js → index-e21n48yd.js} +34 -2
- package/dist/{index-726b5jh5.js → index-eptthgkw.js} +5 -5
- package/dist/{index-6sckwxjj.js → index-eyk7msgw.js} +344 -159
- package/dist/{index-9554nr2q.js → index-fgy6hnr3.js} +6 -1
- package/dist/{index-tzy5h4x6.js → index-fpqdbb67.js} +1 -1
- package/dist/{index-x8a7jmkh.js → index-fzgyvsb1.js} +15 -4
- package/dist/{index-1sq1krqw.js → index-g6hfh4h4.js} +4 -4
- package/dist/{index-wwzamy3j.js → index-hz1xdb15.js} +3 -3
- package/dist/{index-nda0zgna.js → index-kknjvmpx.js} +2 -1
- package/dist/{index-m6rkq3t4.js → index-rnyaa7cj.js} +1 -1
- package/dist/{index-yfn52pb6.js → index-shpyv8gq.js} +2 -2
- package/dist/{index-7jefmy0g.js → index-stx8zd81.js} +2 -2
- package/dist/{index-jg7sbt3v.js → index-vpw46557.js} +1 -1
- package/dist/{index-xx05vta0.js → index-w2wpx7t5.js} +1 -1
- package/dist/{index-177yv84k.js → index-w8dcjt7f.js} +1 -1
- package/dist/{index-ma258g0g.js → index-wxxcfpxh.js} +5 -5
- package/dist/{index-xsdaz3mq.js → index-x8qgqnym.js} +30 -11
- package/dist/{index-aawwdt26.js → index-zvane1rq.js} +2 -2
- package/dist/index.js +32 -32
- package/dist/migration-worker.js +3 -3
- package/dist/plugin/rpc-handlers.d.ts +2 -0
- package/dist/plugin/rpc-handlers.d.ts.map +1 -1
- package/dist/{project-embedding-registry-sw4z2ptg.js → project-embedding-registry-y3z36mjy.js} +3 -3
- package/dist/raw-ordinal-warmup-worker.js +2 -2
- package/dist/{recomp-orchestrator-ar3xw3f4.js → recomp-orchestrator-fjdp3t1d.js} +14 -14
- package/dist/{render-bjxgkrk6.js → render-c9fjwrad.js} +6 -6
- package/dist/{rpc-notifications-3hed126v.js → rpc-notifications-t9q0ynq7.js} +3 -1
- package/dist/{search-z56487n8.js → search-1jejx5cx.js} +9 -9
- package/dist/{search-archive-p3jhx9wc.js → search-archive-s2jas2jb.js} +2 -2
- package/dist/{send-session-notification-ykvt5k2s.js → send-session-notification-7x518gew.js} +1 -1
- package/dist/shared/prompt-surface-runtime.d.ts +1 -1
- package/dist/shared/rpc-notifications.d.ts +8 -3
- package/dist/shared/rpc-notifications.d.ts.map +1 -1
- package/dist/shared/rpc-types.d.ts +4 -0
- package/dist/shared/rpc-types.d.ts.map +1 -1
- package/dist/shared/status-summary.d.ts +2 -0
- package/dist/shared/status-summary.d.ts.map +1 -1
- package/dist/shared/status-view-check.d.ts.map +1 -1
- package/dist/shared/status-view.d.ts +1 -0
- package/dist/shared/status-view.d.ts.map +1 -1
- package/dist/shared/user-facing-codes.d.ts +5 -0
- package/dist/shared/user-facing-codes.d.ts.map +1 -1
- package/dist/{store-8trkpmtx.js → store-ggrq9e14.js} +6 -2
- package/dist/{store-reader-3eh1s1m8.js → store-reader-tr64nxyy.js} +1 -1
- package/dist/{task-config-t6bpyka7.js → task-config-qt6n4bxm.js} +1 -1
- package/dist/tools/ctx-memory/constants.d.ts +1 -1
- package/dist/tools/ctx-memory/constants.d.ts.map +1 -1
- package/dist/tools/light-descriptions.d.ts +1 -1
- package/dist/tools/light-descriptions.d.ts.map +1 -1
- package/dist/tools/parameter-descriptions.d.ts +6 -6
- package/dist/tools/parameter-descriptions.d.ts.map +1 -1
- package/dist/{transform-postprocess-phase-6kyqctnq.js → transform-postprocess-phase-p2egg02g.js} +15 -15
- package/dist/v2/auto-search-worker.js +3 -3
- package/dist/v2/chunk-embedding-write-worker.js +4 -4
- package/dist/v2/{context-dpe94zcx.js → context-zn18k0yk.js} +648 -245
- package/dist/v2/{embedding-backfill-qnaswpmb.js → embedding-backfill-hjvjxp7d.js} +4 -4
- package/dist/v2/fork-inheritance.d.ts +25 -17
- package/dist/v2/fork-inheritance.d.ts.map +1 -1
- package/dist/v2/hidden-child-native.d.ts +6 -6
- package/dist/v2/hidden-child-native.d.ts.map +1 -1
- package/dist/v2/hidden-child-record.d.ts +21 -3
- package/dist/v2/hidden-child-record.d.ts.map +1 -1
- package/dist/v2/hidden-child-sweep.d.ts +1 -1
- package/dist/v2/hidden-child-sweep.d.ts.map +1 -1
- package/dist/v2/hidden-completion.d.ts +1 -0
- package/dist/v2/hidden-completion.d.ts.map +1 -1
- package/dist/v2/hidden-run-holder.d.ts +16 -0
- package/dist/v2/hidden-run-holder.d.ts.map +1 -0
- package/dist/v2/hooks/context.d.ts.map +1 -1
- package/dist/v2/hooks/dream-timer.d.ts +5 -7
- package/dist/v2/hooks/dream-timer.d.ts.map +1 -1
- package/dist/v2/hooks/fork-history-status.d.ts +10 -0
- package/dist/v2/hooks/fork-history-status.d.ts.map +1 -0
- package/dist/v2/hooks/hidden-child.d.ts.map +1 -1
- package/dist/v2/hooks/store.d.ts +4 -0
- package/dist/v2/hooks/store.d.ts.map +1 -1
- package/dist/v2/hooks/types.d.ts +5 -26
- package/dist/v2/hooks/types.d.ts.map +1 -1
- package/dist/v2/migration-worker.js +3 -3
- package/dist/v2/{project-embedding-registry-52f2jept.js → project-embedding-registry-mzsvyads.js} +3 -3
- package/dist/v2/raw-ordinal-warmup-worker.js +2 -2
- package/dist/v2/{recomp-orchestrator-7t6fkpbb.js → recomp-orchestrator-jn39mxh0.js} +13 -13
- package/dist/v2/{render-hwqk0d8t.js → render-q2aj9bgy.js} +6 -6
- package/dist/v2/retrospective-raw-provider.d.ts.map +1 -1
- package/dist/v2/{rpc-notifications-3hed126v.js → rpc-notifications-t9q0ynq7.js} +3 -1
- package/dist/v2/{search-eftsvbg7.js → search-9xn6ds9x.js} +8 -8
- package/dist/v2/{search-archive-mdxzvgpm.js → search-archive-fj59gjv1.js} +2 -2
- package/dist/v2/{send-session-notification-8g4r97bp.js → send-session-notification-p52rhjzy.js} +1 -1
- package/dist/v2/{server-ma9jwnas.js → server-1cn3kryt.js} +4 -4
- package/dist/v2/{server-34pvhvxt.js → server-1efjj215.js} +22 -2
- package/dist/v2/{server-92g7d776.js → server-2kswss3d.js} +2 -1
- package/dist/v2/{server-jn4pktdk.js → server-2ktxmtbd.js} +1 -1
- package/dist/v2/{server-zw1e3wq5.js → server-2w1rdttn.js} +1 -1
- package/dist/v2/{server-jtq03rkb.js → server-4z964n1c.js} +1 -1
- package/dist/v2/{server-pxdpwycq.js → server-53n8hv5q.js} +6 -6
- package/dist/v2/{server-rbtx6q5v.js → server-569he5mh.js} +1 -1
- package/dist/v2/{server-rthnpmbp.js → server-5yfq912a.js} +34 -2
- package/dist/v2/{server-mhrgymcs.js → server-68q80y27.js} +2 -2
- package/dist/v2/{server-afsz3cmx.js → server-bt546axy.js} +1 -1
- package/dist/v2/{server-dhdn8mwq.js → server-c8mqs0v5.js} +30 -11
- package/dist/v2/{server-x8a7jmkh.js → server-fzgyvsb1.js} +15 -4
- package/dist/v2/{server-76v5y7zm.js → server-g1a0nhtk.js} +2 -2
- package/dist/v2/{server-25qtxt4d.js → server-gx1s06dx.js} +6 -1
- package/dist/v2/{server-x8ksqcw7.js → server-pejjj0nv.js} +1 -1
- package/dist/v2/{server-a1zp7exh.js → server-vt6nj2hn.js} +106 -35
- package/dist/v2/{server-qjff96a6.js → server-wdq85mxj.js} +4 -4
- package/dist/v2/server.js +3 -3
- package/dist/v2/{store-m3zny7q2.js → store-qdgzd38f.js} +6 -2
- package/dist/v2/{store-reader-yaxtdy6f.js → store-reader-83tka051.js} +1 -1
- package/dist/v2/store-reader.d.ts +15 -8
- package/dist/v2/store-reader.d.ts.map +1 -1
- package/dist/v2/{task-config-7md27rx8.js → task-config-ex2vajr2.js} +1 -1
- package/dist/v2/tui/index.d.ts +1 -1
- package/dist/v2/tui/index.d.ts.map +1 -1
- package/dist/v2/{v2-archive-reader-p89x05hj.js → v2-archive-reader-9z8z97db.js} +1 -1
- package/dist/v2/{wrapup-orchestrator-c0bwb0wa.js → wrapup-orchestrator-vd5zfp3v.js} +13 -13
- package/dist/{v2-archive-reader-vzmzb245.js → v2-archive-reader-r0xpxsb1.js} +1 -1
- package/dist/{wrapup-orchestrator-548q5y55.js → wrapup-orchestrator-k29zqfp9.js} +15 -15
- package/package.json +1 -1
- package/src/agents/smart-notes-dreamer-gate.golden.json +169 -169
- package/src/features/magic-context/dreamer/task-registry.ts +8 -0
- package/src/shared/prompt-surface-a1-golden.md +8 -7
- package/src/shared/rpc-notifications.test.ts +29 -0
- package/src/shared/rpc-notifications.ts +24 -5
- package/src/shared/rpc-types.ts +4 -0
- package/src/shared/status-summary.ts +9 -1
- package/src/shared/status-view-check.ts +2 -0
- package/src/shared/status-view.test.ts +9 -0
- package/src/shared/status-view.ts +4 -0
- package/src/shared/user-facing-codes.ts +5 -0
- package/src/tui/slots/sidebar-content.tsx +11 -5
- package/src/tui-compiled/slots/sidebar-content.tsx +191 -176
- package/src/v2/tui/index.ts +7 -2
|
@@ -21,7 +21,7 @@ import {
|
|
|
21
21
|
import {
|
|
22
22
|
OpenAICompatibleEmbeddingProvider,
|
|
23
23
|
embedTextForProject2
|
|
24
|
-
} from "./index-
|
|
24
|
+
} from "./index-shpyv8gq.js";
|
|
25
25
|
import {
|
|
26
26
|
saveEmbeddingIfHashMatches
|
|
27
27
|
} from "./index-4dhv7mqz.js";
|
|
@@ -51,6 +51,11 @@ var USER_FACING_FAILURES = {
|
|
|
51
51
|
sentence: "History compression is paused because this session's saved summaries no longer line up with its messages.",
|
|
52
52
|
action: "Run /ctx-recomp to rebuild them."
|
|
53
53
|
},
|
|
54
|
+
fork_history_gap: {
|
|
55
|
+
code: "MC-H09",
|
|
56
|
+
sentence: "This fork's saved history has a gap.",
|
|
57
|
+
action: "Run /ctx-recomp to rebuild its history."
|
|
58
|
+
},
|
|
54
59
|
history_boundary_unresolved: {
|
|
55
60
|
code: "MC-H04",
|
|
56
61
|
sentence: "This request was not sent: it is larger than the model's context window, and Magic Context could not cut the already-summarized history out of it.",
|
|
@@ -737,4 +737,4 @@ function setBootQuietPeriodForTests(startAtMs) {
|
|
|
737
737
|
bootQuietUntilMs = startAtMs === null ? 0 : startAtMs + BOOT_QUIET_MS;
|
|
738
738
|
}
|
|
739
739
|
|
|
740
|
-
export { pruneMissingProjectIdentities, setHomeProjectPermission, shouldSkipHomeProjectMemory, ProjectIdentityError, resolveProjectIdentityStrict, takeDubiousOwnershipProjectIdentityWarning, isUserHomeDirectory, resolveProjectIdentity, directoryHasGitMetadata, describeUnresolvedProjectIdentity, isUsableProjectIdentity, resolveProjectIdentityForSession, normalizeStoredProjectPath, storedPathBelongsToIdentity, beginBootQuietPeriod, bootQuietRemainingMs, scheduleAfterBootQuiet, setBootQuietPeriodForTests };
|
|
740
|
+
export { pruneMissingProjectIdentities, setHomeProjectPermission, shouldSkipHomeProjectMemory, ProjectIdentityError, directoryFallback, resolveProjectIdentityStrict, takeDubiousOwnershipProjectIdentityWarning, isUserHomeDirectory, resolveProjectIdentity, directoryHasGitMetadata, describeUnresolvedProjectIdentity, isUsableProjectIdentity, resolveProjectIdentityForSession, normalizeStoredProjectPath, storedPathBelongsToIdentity, beginBootQuietPeriod, bootQuietRemainingMs, scheduleAfterBootQuiet, setBootQuietPeriodForTests };
|
|
@@ -15,9 +15,20 @@ function notificationMatchesSink(notification, sink) {
|
|
|
15
15
|
return notification.sessionId === sink.sessionId;
|
|
16
16
|
return sink.protocol !== 2;
|
|
17
17
|
}
|
|
18
|
-
function
|
|
18
|
+
function pushLiveNotification2(type, payload, sessionId) {
|
|
19
19
|
const notification = { id: nextNotificationId++, type, payload, sessionId };
|
|
20
|
-
|
|
20
|
+
for (const sink of sinks) {
|
|
21
|
+
if (sink.sessionId !== sessionId)
|
|
22
|
+
continue;
|
|
23
|
+
try {
|
|
24
|
+
sink.send(notification);
|
|
25
|
+
} catch {}
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
function pushNotification2(type, payload, sessionId, options) {
|
|
29
|
+
const notification = { id: nextNotificationId++, type, payload, sessionId };
|
|
30
|
+
if (!options?.liveOnly)
|
|
31
|
+
queue.push(notification);
|
|
21
32
|
for (const sink of sinks) {
|
|
22
33
|
if (!notificationMatchesSink(notification, sink))
|
|
23
34
|
continue;
|
|
@@ -25,7 +36,7 @@ function pushNotification2(type, payload, sessionId) {
|
|
|
25
36
|
sink.send(notification);
|
|
26
37
|
} catch {}
|
|
27
38
|
}
|
|
28
|
-
if (queue.length > 100) {
|
|
39
|
+
if (!options?.liveOnly && queue.length > 100) {
|
|
29
40
|
const reservedIds = new Set;
|
|
30
41
|
const reservedScopes = new Set;
|
|
31
42
|
for (let i = queue.length - 1;i >= 0 && reservedScopes.size < 25; i -= 1) {
|
|
@@ -101,4 +112,4 @@ function isTuiConnected2(sessionId) {
|
|
|
101
112
|
return false;
|
|
102
113
|
}
|
|
103
114
|
|
|
104
|
-
export { registerNotificationSink2, pushNotification2, acknowledgeNotifications2, __resetNotificationStateForTests2, drainNotifications2, isTuiConnected2 };
|
|
115
|
+
export { registerNotificationSink2, pushLiveNotification2, pushNotification2, acknowledgeNotifications2, __resetNotificationStateForTests2, drainNotifications2, isTuiConnected2 };
|
|
@@ -53,11 +53,11 @@ async function trySendTuiToast(sessionId, text, params, forcePersist) {
|
|
|
53
53
|
const message = text.length > 200 ? `${text.slice(0, 200)}…` : text;
|
|
54
54
|
const toastVariant = inferToastVariant(text);
|
|
55
55
|
const duration = params.toastDurationMs ?? 5000;
|
|
56
|
-
const { isTuiConnected: checkTui } = await importPluginModule(() => import("./rpc-notifications-
|
|
56
|
+
const { isTuiConnected: checkTui } = await importPluginModule(() => import("./rpc-notifications-t9q0ynq7.js"));
|
|
57
57
|
if (!checkTui(sessionId))
|
|
58
58
|
return false;
|
|
59
59
|
try {
|
|
60
|
-
const { pushNotification } = await importPluginModule(() => import("./rpc-notifications-
|
|
60
|
+
const { pushNotification } = await importPluginModule(() => import("./rpc-notifications-t9q0ynq7.js"));
|
|
61
61
|
pushNotification("toast", {
|
|
62
62
|
title,
|
|
63
63
|
message,
|
|
@@ -286,7 +286,7 @@ async function sendCommandResult2(client, sessionId, text, params) {
|
|
|
286
286
|
if (shouldHoldIgnoredNotification(sessionId)) {
|
|
287
287
|
return sendIgnoredMessage2(client, sessionId, text, params);
|
|
288
288
|
}
|
|
289
|
-
const { isTuiConnected } = await importPluginModule(() => import("./rpc-notifications-
|
|
289
|
+
const { isTuiConnected } = await importPluginModule(() => import("./rpc-notifications-t9q0ynq7.js"));
|
|
290
290
|
if (isTuiConnected(sessionId))
|
|
291
291
|
return sendIgnoredMessage2(client, sessionId, text, params);
|
|
292
292
|
const session = client?.session;
|
|
@@ -386,7 +386,7 @@ function observeIgnoredNotificationEvent2(event) {
|
|
|
386
386
|
}
|
|
387
387
|
async function sendStatusNotification2(_client, sessionId, text, params) {
|
|
388
388
|
try {
|
|
389
|
-
const { pushNotification } = await importPluginModule(() => import("./rpc-notifications-
|
|
389
|
+
const { pushNotification } = await importPluginModule(() => import("./rpc-notifications-t9q0ynq7.js"));
|
|
390
390
|
pushNotification("toast", {
|
|
391
391
|
title: extractToastTitle(text),
|
|
392
392
|
message: text,
|
|
@@ -7,14 +7,14 @@ import {
|
|
|
7
7
|
import {
|
|
8
8
|
requestPendingMaterialization,
|
|
9
9
|
dropSlot
|
|
10
|
-
} from "./index-
|
|
10
|
+
} from "./index-x8qgqnym.js";
|
|
11
11
|
import {
|
|
12
12
|
executeContextRecomp
|
|
13
|
-
} from "./index-
|
|
13
|
+
} from "./index-b2787fk6.js";
|
|
14
14
|
import {
|
|
15
15
|
renderUserFacingFailure,
|
|
16
16
|
userFacingFailureCode
|
|
17
|
-
} from "./index-
|
|
17
|
+
} from "./index-fgy6hnr3.js";
|
|
18
18
|
|
|
19
19
|
// src/hooks/magic-context/recomp-orchestrator.ts
|
|
20
20
|
function resolveLiveModelKey(liveSessionState, sessionId) {
|
|
@@ -20,6 +20,7 @@ var CANONICAL_DREAM_TASKS = [
|
|
|
20
20
|
"promote-primers",
|
|
21
21
|
"refresh-primers"
|
|
22
22
|
];
|
|
23
|
+
var MIN_POOL_TO_CLASSIFY = 10;
|
|
23
24
|
function availableDreamTasks(smartNotesEnabled = true) {
|
|
24
25
|
return CANONICAL_DREAM_TASKS.filter((task) => smartNotesEnabled || task !== "evaluate-smart-notes");
|
|
25
26
|
}
|
|
@@ -227,4 +228,4 @@ function summarizeDreamSchedule2(dreamer, smartNotesEnabled = true) {
|
|
|
227
228
|
return enabled.map((t) => `${t} ${dreamer?.tasks[t]?.schedule}`).join(", ");
|
|
228
229
|
}
|
|
229
230
|
|
|
230
|
-
export { CANONICAL_DREAM_TASKS, DREAM_TASK_CAPABILITIES, toolLoopDreamTasks, formatUnsupportedDreamTasks, formatDreamTaskBacklogs, formatDreamTaskFailures, processedDreamTaskItems, PROJECT_MEMORY_DREAM_TASKS, dreamTaskAllowedBySettings, leaseKindFor, leaseKeyFor, isCanonicalDreamTask, compareTaskOrder, buildDreamTaskRuntimeConfigs2, userMemoryCollectionEnabled2, userObservationCollectionEnabled2, userObservationsRequested2, userMemoryPromotionThreshold2, dreamTaskScheduled2, enabledDreamTasks2, summarizeDreamSchedule2 };
|
|
231
|
+
export { CANONICAL_DREAM_TASKS, MIN_POOL_TO_CLASSIFY, DREAM_TASK_CAPABILITIES, toolLoopDreamTasks, formatUnsupportedDreamTasks, formatDreamTaskBacklogs, formatDreamTaskFailures, processedDreamTaskItems, PROJECT_MEMORY_DREAM_TASKS, dreamTaskAllowedBySettings, leaseKindFor, leaseKeyFor, isCanonicalDreamTask, compareTaskOrder, buildDreamTaskRuntimeConfigs2, userMemoryCollectionEnabled2, userObservationCollectionEnabled2, userObservationsRequested2, userMemoryPromotionThreshold2, dreamTaskScheduled2, enabledDreamTasks2, summarizeDreamSchedule2 };
|
|
@@ -67,7 +67,7 @@ import {
|
|
|
67
67
|
} from "./index-2amn2s73.js";
|
|
68
68
|
import {
|
|
69
69
|
setBootQuietPeriodForTests
|
|
70
|
-
} from "./index-
|
|
70
|
+
} from "./index-fpqdbb67.js";
|
|
71
71
|
import {
|
|
72
72
|
isEmbeddingHostBusy2
|
|
73
73
|
} from "./index-qt1qqasc.js";
|
|
@@ -78,7 +78,7 @@ import {
|
|
|
78
78
|
acquireGitSweepLease,
|
|
79
79
|
renewGitSweepLease,
|
|
80
80
|
releaseGitSweepLease
|
|
81
|
-
} from "./index-
|
|
81
|
+
} from "./index-vpw46557.js";
|
|
82
82
|
import {
|
|
83
83
|
saveEmbeddingIfHashMatches,
|
|
84
84
|
getMemoryEmbedCoverage,
|
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
} from "./index-ywrz4wy2.js";
|
|
5
5
|
import {
|
|
6
6
|
sendStatusNotification2
|
|
7
|
-
} from "./index-
|
|
7
|
+
} from "./index-g6hfh4h4.js";
|
|
8
8
|
import {
|
|
9
9
|
formatConflictShort
|
|
10
10
|
} from "./index-nxxzeq4y.js";
|
|
@@ -235,7 +235,7 @@ async function sendStartupAnnouncement2(client, directory, version, features, fo
|
|
|
235
235
|
if (!sessionId) {
|
|
236
236
|
return;
|
|
237
237
|
}
|
|
238
|
-
const { isTuiConnected } = await importPluginModule(() => import("./rpc-notifications-
|
|
238
|
+
const { isTuiConnected } = await importPluginModule(() => import("./rpc-notifications-t9q0ynq7.js"));
|
|
239
239
|
if (isTuiConnected(sessionId) || isTuiConnected())
|
|
240
240
|
return;
|
|
241
241
|
const bullets = features.map((line) => ` • ${line}`).join(`
|
|
@@ -225,7 +225,7 @@ import {
|
|
|
225
225
|
saveSourceContent,
|
|
226
226
|
replaceSourceContent,
|
|
227
227
|
getSourceContents
|
|
228
|
-
} from "./index-
|
|
228
|
+
} from "./index-x8qgqnym.js";
|
|
229
229
|
import {
|
|
230
230
|
cleanSearchText,
|
|
231
231
|
matchedSearchSnippet
|
|
@@ -234,18 +234,18 @@ import {
|
|
|
234
234
|
getProjectEmbeddingSnapshot2,
|
|
235
235
|
embedTextForProject2,
|
|
236
236
|
embedBatchForProject2
|
|
237
|
-
} from "./index-
|
|
237
|
+
} from "./index-shpyv8gq.js";
|
|
238
238
|
import {
|
|
239
239
|
isEmbeddingHostBusy2
|
|
240
240
|
} from "./index-qt1qqasc.js";
|
|
241
241
|
import {
|
|
242
242
|
userFacingFailureCode
|
|
243
|
-
} from "./index-
|
|
243
|
+
} from "./index-fgy6hnr3.js";
|
|
244
244
|
import {
|
|
245
245
|
getMessageIndexEpoch,
|
|
246
246
|
isMessageIndexSearchable,
|
|
247
247
|
createAutoSearchDiagnostics
|
|
248
|
-
} from "./index-
|
|
248
|
+
} from "./index-rnyaa7cj.js";
|
|
249
249
|
import {
|
|
250
250
|
openCodeDbExists,
|
|
251
251
|
withReadOnlySessionDb,
|
|
@@ -285,7 +285,7 @@ import {
|
|
|
285
285
|
peekNoteNudgeText,
|
|
286
286
|
markNoteNudgeDelivered,
|
|
287
287
|
getActiveCompartmentRun
|
|
288
|
-
} from "./index-
|
|
288
|
+
} from "./index-b2787fk6.js";
|
|
289
289
|
import {
|
|
290
290
|
getErrorMessage
|
|
291
291
|
} from "./index-y8v6yerm.js";
|
|
@@ -75,11 +75,11 @@ import {
|
|
|
75
75
|
import {
|
|
76
76
|
layoutLkgPrefix,
|
|
77
77
|
assembleLkgPrefix
|
|
78
|
-
} from "./index-
|
|
78
|
+
} from "./index-w2wpx7t5.js";
|
|
79
79
|
import {
|
|
80
80
|
gaDatabasePath2,
|
|
81
81
|
V2StoreReader2
|
|
82
|
-
} from "./index-
|
|
82
|
+
} from "./index-e21n48yd.js";
|
|
83
83
|
import {
|
|
84
84
|
markHostInstructionRow,
|
|
85
85
|
hostInstructionRowID,
|
|
@@ -4692,9 +4692,10 @@ function copySessionStateForClone(db, sourceSessionId, destinationSessionId, fil
|
|
|
4692
4692
|
const compartmentColumns = db.prepare("PRAGMA table_info(compartments)").all();
|
|
4693
4693
|
const hasBlockIndices = ["start_block_index", "end_block_index"].every((name) => compartmentColumns.some((column) => column.name === name));
|
|
4694
4694
|
const blockProjection = hasBlockIndices ? "start_block_index, end_block_index" : "NULL AS start_block_index, NULL AS end_block_index";
|
|
4695
|
+
const rebaseProjection = compartmentColumns.some(({ name }) => name === "rebase_status") ? "rebase_status" : "NULL AS rebase_status";
|
|
4695
4696
|
const sourceCompartments = db.prepare(`SELECT sequence, start_message, end_message, start_message_id, end_message_id,
|
|
4696
4697
|
title, content, p1, p2, p3, p4, importance, episode_type, legacy,
|
|
4697
|
-
created_at, harness, ${blockProjection}
|
|
4698
|
+
created_at, harness, ${blockProjection}, ${rebaseProjection}
|
|
4698
4699
|
FROM compartments WHERE session_id = ? ORDER BY sequence ASC`).all(sourceSessionId);
|
|
4699
4700
|
const insertCompartment = db.prepare(`INSERT INTO compartments
|
|
4700
4701
|
(session_id, sequence, start_message, end_message, start_message_id,
|
|
@@ -4702,18 +4703,31 @@ function copySessionStateForClone(db, sourceSessionId, destinationSessionId, fil
|
|
|
4702
4703
|
episode_type, legacy, created_at, harness${hasBlockIndices ? ", start_block_index, end_block_index" : ""})
|
|
4703
4704
|
VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?${hasBlockIndices ? ", ?, ?" : ""})`);
|
|
4704
4705
|
const copiedCompartments = [];
|
|
4706
|
+
const selected = filter.selectCompartments?.(sourceCompartments.map((row) => ({
|
|
4707
|
+
sequence: row.sequence,
|
|
4708
|
+
startMessage: row.start_message,
|
|
4709
|
+
endMessage: row.end_message,
|
|
4710
|
+
startMessageId: row.start_message_id,
|
|
4711
|
+
endMessageId: row.end_message_id,
|
|
4712
|
+
rebaseStatus: row.rebase_status
|
|
4713
|
+
})));
|
|
4705
4714
|
for (const row of sourceCompartments) {
|
|
4706
|
-
const
|
|
4707
|
-
|
|
4715
|
+
const mapped = selected?.get(row.sequence);
|
|
4716
|
+
if (selected && !mapped)
|
|
4717
|
+
continue;
|
|
4718
|
+
const startMessage = mapped?.startMessage ?? filter.resolveBoundaryOrdinal(row.start_message_id);
|
|
4719
|
+
const endMessage = mapped?.endMessage ?? filter.resolveBoundaryOrdinal(row.end_message_id);
|
|
4708
4720
|
if (startMessage === undefined || endMessage === undefined)
|
|
4709
4721
|
continue;
|
|
4710
|
-
|
|
4722
|
+
const startMessageId = mapped?.startMessageId ?? mapMessageId(filter, row.start_message_id);
|
|
4723
|
+
const endMessageId = mapped?.endMessageId ?? mapMessageId(filter, row.end_message_id);
|
|
4724
|
+
insertCompartment.run(destinationSessionId, row.sequence, startMessage, endMessage, startMessageId, endMessageId, row.title, row.content, row.p1, row.p2, row.p3, row.p4, row.importance, row.episode_type, row.legacy, row.created_at, row.harness, ...hasBlockIndices ? [row.start_block_index, row.end_block_index] : []);
|
|
4711
4725
|
copiedCompartments.push({
|
|
4712
4726
|
sequence: row.sequence,
|
|
4713
4727
|
startMessage,
|
|
4714
4728
|
endMessage,
|
|
4715
|
-
startMessageId:
|
|
4716
|
-
endMessageId:
|
|
4729
|
+
startMessageId: startMessageId ?? row.start_message_id,
|
|
4730
|
+
endMessageId: endMessageId ?? row.end_message_id
|
|
4717
4731
|
});
|
|
4718
4732
|
}
|
|
4719
4733
|
const sourceTags = db.prepare(`SELECT id, message_id, type, status, byte_size, tag_number, harness,
|
|
@@ -4791,7 +4805,8 @@ function copySessionStateForClone(db, sourceSessionId, destinationSessionId, fil
|
|
|
4791
4805
|
if (pendingMarker === null)
|
|
4792
4806
|
clearedMarker = getPendingPiCompactionMarkerState(db, destinationSessionId);
|
|
4793
4807
|
const todoAnchor = meta?.todo_synthetic_anchor_message_id ?? "";
|
|
4794
|
-
const
|
|
4808
|
+
const replayFilter = filter.includeReplayMessageId ? { ...filter, includeMessageId: filter.includeReplayMessageId } : filter;
|
|
4809
|
+
const migrateTodo = todoAnchor.length > 0 && replayFilter.includeMessageId(todoAnchor);
|
|
4795
4810
|
db.prepare(`INSERT INTO session_meta
|
|
4796
4811
|
(session_id, harness, counter, cleared_reasoning_through_tag,
|
|
4797
4812
|
tool_reclaim_watermark, pi_stable_id_scheme, stripped_placeholder_ids,
|
|
@@ -4816,11 +4831,15 @@ function copySessionStateForClone(db, sourceSessionId, destinationSessionId, fil
|
|
|
4816
4831
|
todo_synthetic_anchor_message_id = excluded.todo_synthetic_anchor_message_id,
|
|
4817
4832
|
todo_synthetic_state_json = excluded.todo_synthetic_state_json,
|
|
4818
4833
|
cached_m0_bytes = NULL,
|
|
4819
|
-
cached_m1_bytes = NULL`).run(destinationSessionId, getHarness2(), maxCopiedTag, clampWatermark(meta?.cleared_reasoning_through_tag ?? null, maxCopiedTag), clampWatermark(meta?.tool_reclaim_watermark ?? null, maxCopiedTag), typeof meta?.pi_stable_id_scheme === "number" && Number.isFinite(meta.pi_stable_id_scheme) ? meta.pi_stable_id_scheme : null, filterStrippedPlaceholderBlob(meta?.stripped_placeholder_ids ?? null,
|
|
4834
|
+
cached_m1_bytes = NULL`).run(destinationSessionId, getHarness2(), maxCopiedTag, clampWatermark(meta?.cleared_reasoning_through_tag ?? null, maxCopiedTag), clampWatermark(meta?.tool_reclaim_watermark ?? null, maxCopiedTag), typeof meta?.pi_stable_id_scheme === "number" && Number.isFinite(meta.pi_stable_id_scheme) ? meta.pi_stable_id_scheme : null, filterStrippedPlaceholderBlob(meta?.stripped_placeholder_ids ?? null, replayFilter), filterIdBlob(meta?.stale_reduce_stripped_ids ?? null, replayFilter), filterProcessedImageBlob(meta?.processed_image_stripped_ids ?? null, replayFilter), clonePiContentDecisions(meta?.merged_reasoning_stripped_ids ?? null, replayFilter), pendingMarker, migrateTodo ? meta?.last_todo_state ?? "" : "", migrateTodo ? meta?.todo_synthetic_call_id ?? "" : "", migrateTodo ? mapMessageId(filter, todoAnchor) ?? "" : "", migrateTodo ? meta?.todo_synthetic_state_json ?? "" : "");
|
|
4835
|
+
const inheritedGaps = filter.inheritedCoordinateGaps?.() ?? [];
|
|
4836
|
+
if (inheritedGaps.length > 0) {
|
|
4837
|
+
db.prepare("UPDATE session_meta SET coordinate_rebase_notice = ? WHERE session_id = ?").run(JSON.stringify({ generation: "v2", inheritedGaps }), destinationSessionId);
|
|
4838
|
+
}
|
|
4820
4839
|
const metaColumnRows = db.prepare("PRAGMA table_info(session_meta)").all();
|
|
4821
4840
|
const metaColumns = new Set(metaColumnRows.map((column) => column.name));
|
|
4822
4841
|
if (metaColumns.has("trailing_blank_decisions")) {
|
|
4823
|
-
const replayDocument = cloneReplayDocument(db, sourceSessionId, copiedToolCallIds,
|
|
4842
|
+
const replayDocument = cloneReplayDocument(db, sourceSessionId, copiedToolCallIds, replayFilter);
|
|
4824
4843
|
writeReplayDocument(db, destinationSessionId, replayDocument);
|
|
4825
4844
|
}
|
|
4826
4845
|
const pendingOpsRow = db.prepare("SELECT COUNT(*) AS count FROM pending_ops WHERE session_id = ?").get(destinationSessionId);
|
|
@@ -13,7 +13,7 @@ import {
|
|
|
13
13
|
} from "./index-gzy5w8ya.js";
|
|
14
14
|
import {
|
|
15
15
|
scheduleAfterBootQuiet
|
|
16
|
-
} from "./index-
|
|
16
|
+
} from "./index-fpqdbb67.js";
|
|
17
17
|
import {
|
|
18
18
|
getHarness2,
|
|
19
19
|
harnessOwnsOpenCodeStore2
|
|
@@ -57,7 +57,7 @@ import {
|
|
|
57
57
|
hasPendingMigrations,
|
|
58
58
|
getMainThreadMigrationBodyCount,
|
|
59
59
|
runMigrations
|
|
60
|
-
} from "./index-
|
|
60
|
+
} from "./index-w2wpx7t5.js";
|
|
61
61
|
import {
|
|
62
62
|
installTagIdentityRevisionTrigger,
|
|
63
63
|
ensureColumn,
|
package/dist/index.js
CHANGED
|
@@ -58,7 +58,7 @@ import {
|
|
|
58
58
|
checkCompactionMarkerConsistency,
|
|
59
59
|
clearInjectionCache,
|
|
60
60
|
clearNoteNudgeTriggerOnly
|
|
61
|
-
} from "./index-
|
|
61
|
+
} from "./index-b2787fk6.js";
|
|
62
62
|
import"./index-sd3egckz.js";
|
|
63
63
|
import {
|
|
64
64
|
hasTrustedAbsoluteWall,
|
|
@@ -74,7 +74,7 @@ import {
|
|
|
74
74
|
userMemoryCollectionEnabled2,
|
|
75
75
|
userObservationCollectionEnabled2,
|
|
76
76
|
userObservationsRequested2
|
|
77
|
-
} from "./index-
|
|
77
|
+
} from "./index-kknjvmpx.js";
|
|
78
78
|
import {
|
|
79
79
|
logConfigDependencyNotesOnce,
|
|
80
80
|
openOpenCodeDb,
|
|
@@ -145,7 +145,7 @@ import {
|
|
|
145
145
|
parameterDescriptionsFor,
|
|
146
146
|
MagicContextRpcServer,
|
|
147
147
|
applyHiddenSubagentTemperature
|
|
148
|
-
} from "./index-
|
|
148
|
+
} from "./index-eyk7msgw.js";
|
|
149
149
|
import {
|
|
150
150
|
resolveOpenCodeDbPath,
|
|
151
151
|
openCodeDbPathExists,
|
|
@@ -172,7 +172,7 @@ import {
|
|
|
172
172
|
beginBootQuietPeriod,
|
|
173
173
|
bootQuietRemainingMs,
|
|
174
174
|
scheduleAfterBootQuiet
|
|
175
|
-
} from "./index-
|
|
175
|
+
} from "./index-fpqdbb67.js";
|
|
176
176
|
import {
|
|
177
177
|
BoundedSessionMap,
|
|
178
178
|
deleteTemporalDecision,
|
|
@@ -197,10 +197,10 @@ import {
|
|
|
197
197
|
dropServedRecord,
|
|
198
198
|
registerLkgPersistence,
|
|
199
199
|
dropSlot
|
|
200
|
-
} from "./index-
|
|
200
|
+
} from "./index-x8qgqnym.js";
|
|
201
201
|
import {
|
|
202
202
|
recordSessionProjectIdentity
|
|
203
|
-
} from "./index-
|
|
203
|
+
} from "./index-vpw46557.js";
|
|
204
204
|
import"./index-gqf8r04r.js";
|
|
205
205
|
import"./index-fb3zxn06.js";
|
|
206
206
|
import {
|
|
@@ -212,7 +212,7 @@ import {
|
|
|
212
212
|
openDatabaseAsync,
|
|
213
213
|
isDatabasePersisted,
|
|
214
214
|
getDatabasePersistenceError
|
|
215
|
-
} from "./index-
|
|
215
|
+
} from "./index-zvane1rq.js";
|
|
216
216
|
import {
|
|
217
217
|
registerExitAbort,
|
|
218
218
|
unregisterExitAbort
|
|
@@ -223,7 +223,7 @@ import {
|
|
|
223
223
|
forgetRawSessionOrdinalWatermark2
|
|
224
224
|
} from "./index-q7q6qp1f.js";
|
|
225
225
|
import"./index-s32f8y67.js";
|
|
226
|
-
import"./index-
|
|
226
|
+
import"./index-w2wpx7t5.js";
|
|
227
227
|
import"./index-fr0wbhdn.js";
|
|
228
228
|
import {
|
|
229
229
|
preloadTokenizer
|
|
@@ -232,7 +232,7 @@ import"./index-pxnzyvjc.js";
|
|
|
232
232
|
import {
|
|
233
233
|
getDefaultSubcConnectionFile,
|
|
234
234
|
SubcModuleTransport
|
|
235
|
-
} from "./index-
|
|
235
|
+
} from "./index-dg5jvh9r.js";
|
|
236
236
|
import"./index-qt1qqasc.js";
|
|
237
237
|
import"./index-e6ncz7a6.js";
|
|
238
238
|
import {
|
|
@@ -243,7 +243,7 @@ import {
|
|
|
243
243
|
import {
|
|
244
244
|
sendCommandResult2,
|
|
245
245
|
sendStatusNotification2
|
|
246
|
-
} from "./index-
|
|
246
|
+
} from "./index-g6hfh4h4.js";
|
|
247
247
|
import {
|
|
248
248
|
detectConflicts,
|
|
249
249
|
resolveCompactionForBoot
|
|
@@ -251,7 +251,7 @@ import {
|
|
|
251
251
|
import {
|
|
252
252
|
sendConflictWarning2,
|
|
253
253
|
cleanupConflictWarnings2
|
|
254
|
-
} from "./index-
|
|
254
|
+
} from "./index-stx8zd81.js";
|
|
255
255
|
import"./index-1zx87sdm.js";
|
|
256
256
|
import {
|
|
257
257
|
stripPersistedAssistantText,
|
|
@@ -296,18 +296,18 @@ import"./index-snbpdpa3.js";
|
|
|
296
296
|
import {
|
|
297
297
|
deleteIndexedMessage
|
|
298
298
|
} from "./index-zzvd4a9z.js";
|
|
299
|
-
import"./index-
|
|
300
|
-
import"./index-
|
|
299
|
+
import"./index-e21n48yd.js";
|
|
300
|
+
import"./index-bd34njzg.js";
|
|
301
301
|
import {
|
|
302
302
|
pushNotification2
|
|
303
|
-
} from "./index-
|
|
303
|
+
} from "./index-fzgyvsb1.js";
|
|
304
304
|
import"./index-zb4h9nrk.js";
|
|
305
305
|
import {
|
|
306
306
|
getEmbeddingCoverageStatus2
|
|
307
|
-
} from "./index-
|
|
307
|
+
} from "./index-shpyv8gq.js";
|
|
308
308
|
import"./index-4dhv7mqz.js";
|
|
309
|
-
import"./index-
|
|
310
|
-
import"./index-
|
|
309
|
+
import"./index-fgy6hnr3.js";
|
|
310
|
+
import"./index-w8dcjt7f.js";
|
|
311
311
|
import"./index-jjvbk92s.js";
|
|
312
312
|
import"./index-832w615x.js";
|
|
313
313
|
import {
|
|
@@ -319,13 +319,13 @@ import {
|
|
|
319
319
|
armBindingRecoverySafely,
|
|
320
320
|
collectForeignTextParts,
|
|
321
321
|
resetDegradedCacheCount2
|
|
322
|
-
} from "./index-
|
|
322
|
+
} from "./index-wxxcfpxh.js";
|
|
323
323
|
import {
|
|
324
324
|
scheduleClearAndReindex
|
|
325
|
-
} from "./index-
|
|
325
|
+
} from "./index-rnyaa7cj.js";
|
|
326
326
|
import {
|
|
327
327
|
runManagedRecomp2
|
|
328
|
-
} from "./index-
|
|
328
|
+
} from "./index-hz1xdb15.js";
|
|
329
329
|
import {
|
|
330
330
|
isValidSemver,
|
|
331
331
|
compareSemverCore
|
|
@@ -333,11 +333,11 @@ import {
|
|
|
333
333
|
import"./index-fmsr7v69.js";
|
|
334
334
|
import {
|
|
335
335
|
runManagedWrapup2
|
|
336
|
-
} from "./index-
|
|
336
|
+
} from "./index-eptthgkw.js";
|
|
337
337
|
import"./index-twmeey4h.js";
|
|
338
338
|
import"./index-52x68mj4.js";
|
|
339
|
-
import"./index-
|
|
340
|
-
import"./index-
|
|
339
|
+
import"./index-2xhzmwf6.js";
|
|
340
|
+
import"./index-2ygw6q5s.js";
|
|
341
341
|
import {
|
|
342
342
|
isDreamerRunnable,
|
|
343
343
|
isSmartNoteSurfaceAvailable,
|
|
@@ -8205,7 +8205,7 @@ var require_src2 = __commonJS(function(exports, module) {
|
|
|
8205
8205
|
// package.json
|
|
8206
8206
|
var package_default = {
|
|
8207
8207
|
name: "@cortexkit/opencode-magic-context",
|
|
8208
|
-
version: "0.49.
|
|
8208
|
+
version: "0.49.83",
|
|
8209
8209
|
type: "module",
|
|
8210
8210
|
description: "OpenCode plugin for Magic Context — cross-session memory and context management",
|
|
8211
8211
|
main: "dist/index.js",
|
|
@@ -12085,7 +12085,7 @@ async function setup(context) {
|
|
|
12085
12085
|
if (claimStorageBackupWarningCheck() && isMagicContextStorageOutsideEngram(storageDir)) {
|
|
12086
12086
|
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.`);
|
|
12087
12087
|
}
|
|
12088
|
-
const { registerContext } = await import("./context-
|
|
12088
|
+
const { registerContext } = await import("./context-xmyke353.js");
|
|
12089
12089
|
setHarness2("opencode2");
|
|
12090
12090
|
bindStaleBuildNotice({}, import.meta.url, "opencode2");
|
|
12091
12091
|
const duties = await registerContext(context);
|
|
@@ -12164,7 +12164,7 @@ var server = async (ctx) => {
|
|
|
12164
12164
|
if (hasBannerEntries)
|
|
12165
12165
|
setTimeout(async () => {
|
|
12166
12166
|
try {
|
|
12167
|
-
const { sendStatusNotification } = await importPluginModule(() => import("./send-session-notification-
|
|
12167
|
+
const { sendStatusNotification } = await importPluginModule(() => import("./send-session-notification-7x518gew.js"));
|
|
12168
12168
|
const clientWithSessions = ctx.client;
|
|
12169
12169
|
const sessions = await Promise.resolve(clientWithSessions.session?.list?.()).catch(() => null);
|
|
12170
12170
|
const sessionList = Array.isArray(sessions) ? sessions : sessions?.data;
|
|
@@ -12182,7 +12182,7 @@ var server = async (ctx) => {
|
|
|
12182
12182
|
log2(`[magic-context] opencode_db_missing path=${openCodeDbResolution.path} source=${openCodeDbResolution.source}`);
|
|
12183
12183
|
setTimeout(async () => {
|
|
12184
12184
|
try {
|
|
12185
|
-
const { sendStatusNotification } = await importPluginModule(() => import("./send-session-notification-
|
|
12185
|
+
const { sendStatusNotification } = await importPluginModule(() => import("./send-session-notification-7x518gew.js"));
|
|
12186
12186
|
const clientWithSessions = ctx.client;
|
|
12187
12187
|
const sessions = await Promise.resolve(clientWithSessions.session?.list?.()).catch(() => null);
|
|
12188
12188
|
const sessionList = Array.isArray(sessions) ? sessions : sessions?.data;
|
|
@@ -12455,12 +12455,12 @@ var server = async (ctx) => {
|
|
|
12455
12455
|
{
|
|
12456
12456
|
const fence = getSchemaFenceRejection();
|
|
12457
12457
|
if (fence) {
|
|
12458
|
-
importPluginModule(() => import("./conflict-warning-hook-
|
|
12458
|
+
importPluginModule(() => import("./conflict-warning-hook-a0wrnzch.js")).then(({ sendSchemaFenceWarning }) => sendSchemaFenceWarning(ctx.client, ctx.directory, fence)).catch((error) => log2("[magic-context] schema-fence warning unavailable:", error));
|
|
12459
12459
|
}
|
|
12460
12460
|
}
|
|
12461
12461
|
const serverUrl = ctx.serverUrl;
|
|
12462
12462
|
const serverUrlStr = serverUrl instanceof URL ? serverUrl.toString().replace(/\/$/, "") : typeof serverUrl === "string" ? serverUrl.replace(/\/$/, "") : undefined;
|
|
12463
|
-
importPluginModule(() => import("./send-session-notification-
|
|
12463
|
+
importPluginModule(() => import("./send-session-notification-7x518gew.js")).then(({ setNotificationServerUrl }) => {
|
|
12464
12464
|
setNotificationServerUrl(serverUrlStr);
|
|
12465
12465
|
}).catch((error) => log2("[magic-context] notification transport unavailable:", error));
|
|
12466
12466
|
if (conflictResult?.hasConflict) {
|
|
@@ -12483,7 +12483,7 @@ var server = async (ctx) => {
|
|
|
12483
12483
|
}) => {
|
|
12484
12484
|
if (!shouldShowAnnouncement())
|
|
12485
12485
|
return;
|
|
12486
|
-
return importPluginModule(() => import("./conflict-warning-hook-
|
|
12486
|
+
return importPluginModule(() => import("./conflict-warning-hook-a0wrnzch.js")).then(({ sendStartupAnnouncement }) => sendStartupAnnouncement(ctx.client, ctx.directory, ANNOUNCEMENT_VERSION, ANNOUNCEMENT_FEATURES, ANNOUNCEMENT_FOOTER, markAnnouncementSeen));
|
|
12487
12487
|
}).catch(() => {});
|
|
12488
12488
|
}, 8000);
|
|
12489
12489
|
}
|
|
@@ -12557,8 +12557,8 @@ var server = async (ctx) => {
|
|
|
12557
12557
|
tryReopenStorage,
|
|
12558
12558
|
rustReplayParticipant: () => magicContextRuntime.magicContext?.getRustReplayParticipant?.() ?? null,
|
|
12559
12559
|
onStorageBusyRefusal: async (sessionId, message) => {
|
|
12560
|
-
const { sendStatusNotification } = await importPluginModule(() => import("./send-session-notification-
|
|
12561
|
-
const { abortSessionFailClosed } = await importPluginModule(() => import("./transform-postprocess-phase-
|
|
12560
|
+
const { sendStatusNotification } = await importPluginModule(() => import("./send-session-notification-7x518gew.js"));
|
|
12561
|
+
const { abortSessionFailClosed } = await importPluginModule(() => import("./transform-postprocess-phase-p2egg02g.js"));
|
|
12562
12562
|
await sendStatusNotification(ctx.client, sessionId, message, {
|
|
12563
12563
|
toastDurationMs: 15000
|
|
12564
12564
|
});
|
package/dist/migration-worker.js
CHANGED
|
@@ -10,16 +10,16 @@ import {
|
|
|
10
10
|
import"./index-fr0wbhdn.js";
|
|
11
11
|
import {
|
|
12
12
|
runMigrationsWithRetry
|
|
13
|
-
} from "./index-
|
|
13
|
+
} from "./index-w2wpx7t5.js";
|
|
14
14
|
import"./index-jrj95cce.js";
|
|
15
15
|
import"./index-58e3y90n.js";
|
|
16
|
-
import"./index-
|
|
16
|
+
import"./index-fpqdbb67.js";
|
|
17
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-zvane1rq.js";
|
|
23
23
|
import"./index-wh9fxds5.js";
|
|
24
24
|
import"./index-v0p37hm2.js";
|
|
25
25
|
import"./index-96ztjvkn.js";
|
|
@@ -133,6 +133,8 @@ export declare function registerRpcHandlers(rpcServer: MagicContextRpcServer, ar
|
|
|
133
133
|
storageDir?: string;
|
|
134
134
|
getDebugMemoryHolders?: () => RuntimeDebugMemoryHolders | undefined;
|
|
135
135
|
getDatabase?: () => Database | null;
|
|
136
|
+
/** Optional read-only diagnosis supplied by the OpenCode 2 adapter. */
|
|
137
|
+
readForkHistoryGap?: (db: Database, sessionId: string) => boolean;
|
|
136
138
|
}): void;
|
|
137
139
|
export {};
|
|
138
140
|
//# sourceMappingURL=rpc-handlers.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"rpc-handlers.d.ts","sourceRoot":"","sources":["../../src/plugin/rpc-handlers.ts"],"names":[],"mappings":"AAWA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,gCAAgC,CAAC;
|
|
1
|
+
{"version":3,"file":"rpc-handlers.d.ts","sourceRoot":"","sources":["../../src/plugin/rpc-handlers.ts"],"names":[],"mappings":"AAWA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,gCAAgC,CAAC;AAqCzE,OAAO,EACH,KAAK,eAAe,IAAI,QAAQ,EAEnC,MAAM,mCAAmC,CAAC;AAmB3C,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,iDAAiD,CAAC;AAgBhG,OAAO,KAAK,EAAE,2BA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