@cortex-agent/server 2026.9.14 → 2026.9.21
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/README.md +3 -2
- package/defaults/config/hooks/08-agents-md-injector-post-tool.json +10 -0
- package/defaults/config/hooks/{10-cortex-md-injector-session-start.json → 10-agents-md-injector-session-start.json} +3 -3
- package/defaults/config/hooks/{CORTEX.md → AGENTS.md} +2 -2
- package/defaults/hooks/{CORTEX.md → AGENTS.md} +1 -1
- package/defaults/hooks/{cortex-md-injector.mjs → agents-md-injector.mjs} +117 -26
- package/defaults/hooks/cortex-hook-api.mjs +2 -2
- package/defaults/hooks/new-session-hook.mjs +2 -2
- package/defaults/hooks/rules-loader.mjs +2 -2
- package/defaults/hooks/status-md-guard.mjs +8 -8
- package/defaults/hooks/task-status-check.mjs +18 -76
- package/defaults/hooks/tasks-yaml-guard.mjs +2 -2
- package/defaults/plugins/cortex-commission/.claude-plugin/plugin.json +2 -2
- package/defaults/plugins/cortex-commission/plugin.json +2 -2
- package/defaults/plugins/cortex-commission/skills/commission/SKILL.md +3 -3
- package/defaults/plugins/cortex-feishu/skills/feishu-doc/SKILL.md +1 -1
- package/defaults/plugins/cortex-system/skills/client-manage/SKILL.md +2 -2
- package/defaults/plugins/cortex-system/skills/project-init/SKILL.md +4 -4
- package/defaults/plugins/cortex-system/skills/task/SKILL.md +1 -1
- package/defaults/rules/{cortex-md.md → agents-md.md} +4 -4
- package/defaults/rules/decision-records.md +1 -1
- package/defaults/rules/meta-conventions.md +4 -4
- package/defaults/rules/mission-md.md +1 -1
- package/dist/agent-adapter/claude/adapter.d.ts +0 -6
- package/dist/agent-adapter/claude/adapter.js +0 -8
- package/dist/agent-adapter/claude/defaults.d.ts +10 -7
- package/dist/agent-adapter/claude/defaults.js +18 -16
- package/dist/agent-adapter/claude/hooks-builder.js +2 -2
- package/dist/agent-adapter/claude/spawn-args.d.ts +0 -3
- package/dist/agent-adapter/claude/spawn-args.js +20 -16
- package/dist/agent-adapter/claude/turn-machine.d.ts +11 -0
- package/dist/agent-adapter/claude/turn-machine.js +46 -5
- package/dist/agent-adapter/normalize/prompt-builder.d.ts +16 -1
- package/dist/agent-adapter/normalize/prompt-builder.js +24 -6
- package/dist/agent-adapter/pi/mcp-bridge-logic.d.ts +11 -2
- package/dist/agent-adapter/pi/mcp-bridge-logic.js +32 -1
- package/dist/agent-adapter/pi/mcp-bridge.js +16 -15
- package/dist/agent-adapter/pi/session-options.d.ts +0 -6
- package/dist/agent-adapter/pi/session-options.js +1 -8
- package/dist/agent-adapter/types.d.ts +1 -1
- package/dist/core/mcp-tool-gate.d.ts +3 -17
- package/dist/core/mcp-tool-gate.js +4 -19
- package/dist/core/media-types.d.ts +10 -0
- package/dist/core/media-types.js +34 -0
- package/dist/core/platform-settings-spec.js +1 -1
- package/dist/core/settings-spec.d.ts +22 -1
- package/dist/core/settings-spec.js +33 -2
- package/dist/core/types/agent-types.d.ts +3 -1
- package/dist/core/utils.d.ts +1 -1
- package/dist/core/utils.js +1 -1
- package/dist/domain/agents/config.d.ts +1 -1
- package/dist/domain/agents/config.js +1 -1
- package/dist/domain/agents/profile-switch.d.ts +1 -1
- package/dist/domain/agents/profile-switch.js +3 -5
- package/dist/domain/agents/subagent/runner.js +0 -1
- package/dist/domain/commissions/commission-draft.d.ts +58 -0
- package/dist/domain/commissions/commission-draft.js +87 -4
- package/dist/domain/commissions/commission-finalize.d.ts +8 -3
- package/dist/domain/commissions/commission-finalize.js +14 -0
- package/dist/domain/executions/registry.d.ts +1 -2
- package/dist/domain/executions/registry.js +0 -3
- package/dist/domain/mcp/bundled-server.js +4 -3
- package/dist/domain/mcp/feishu/file.js +37 -18
- package/dist/domain/mcp/feishu/types.d.ts +3 -0
- package/dist/domain/mcp/feishu-server.js +1 -1
- package/dist/domain/mcp/tools/{cortex-md.d.ts → agents-md.d.ts} +6 -6
- package/dist/domain/mcp/tools/{cortex-md.js → agents-md.js} +6 -6
- package/dist/domain/mcp/tools/commission-tools.d.ts +12 -1
- package/dist/domain/mcp/tools/commission-tools.js +68 -14
- package/dist/domain/mcp/tools/remote-file.d.ts +20 -0
- package/dist/domain/mcp/tools/remote-file.js +44 -0
- package/dist/domain/mcp/tools/slack.d.ts +2 -0
- package/dist/domain/mcp/tools/slack.js +22 -7
- package/dist/domain/mcp/tools/task-ops.js +5 -13
- package/dist/domain/mcp/tools/ui-file.js +23 -10
- package/dist/domain/mcp/tools/waitpoint.d.ts +3 -0
- package/dist/domain/mcp/tools/waitpoint.js +122 -0
- package/dist/domain/memory/agents-md-injector.d.ts +24 -0
- package/dist/domain/memory/{cortex-md-injector.js → agents-md-injector.js} +10 -7
- package/dist/domain/projects/project-store.d.ts +1 -1
- package/dist/domain/projects/project-store.js +3 -3
- package/dist/domain/remote/client-hot-reload.js +3 -1
- package/dist/domain/remote/client-manager.js +105 -126
- package/dist/domain/remote/client-ssh-tunnel.d.ts +16 -5
- package/dist/domain/remote/client-ssh-tunnel.js +12 -5
- package/dist/domain/remote/cortex-client-config.d.ts +1 -1
- package/dist/domain/remote/cortex-client-config.js +1 -1
- package/dist/domain/remote/device-file.d.ts +51 -0
- package/dist/domain/remote/device-file.js +193 -0
- package/dist/domain/remote/device-port.js +3 -0
- package/dist/domain/remote/reverse-stream.d.ts +18 -7
- package/dist/domain/remote/reverse-stream.js +19 -6
- package/dist/domain/runs/builders.js +0 -1
- package/dist/domain/runs/compact.js +0 -1
- package/dist/domain/runs/engine-spec.d.ts +11 -4
- package/dist/domain/runs/engine-spec.js +7 -4
- package/dist/domain/runs/prompt.js +16 -10
- package/dist/domain/runs/request.d.ts +0 -1
- package/dist/domain/sessions/session-hooks.d.ts +5 -12
- package/dist/domain/sessions/session-hooks.js +6 -13
- package/dist/domain/sessions/session-lifecycle.d.ts +4 -4
- package/dist/domain/sessions/session-lifecycle.js +5 -6
- package/dist/domain/sessions/session-retention.d.ts +1 -3
- package/dist/domain/sessions/session-retention.js +9 -26
- package/dist/domain/sessions/session-use.d.ts +32 -0
- package/dist/domain/sessions/session-use.js +63 -0
- package/dist/domain/sessions/session.js +6 -5
- package/dist/domain/system/server-update-check.js +29 -1
- package/dist/domain/system/update-ui-state.d.ts +32 -0
- package/dist/domain/system/update-ui-state.js +63 -0
- package/dist/domain/tasks/claim-recovery.js +2 -2
- package/dist/domain/tasks/dispatch-utils.d.ts +10 -1
- package/dist/domain/tasks/dispatch-utils.js +46 -1
- package/dist/domain/tasks/dispatcher.js +4 -5
- package/dist/domain/tasks/mutator.d.ts +2 -2
- package/dist/domain/tasks/mutator.js +2 -2
- package/dist/domain/tasks/system/task-cli.js +2 -2
- package/dist/domain/tasks/system/task-state.js +1 -1
- package/dist/domain/threads/runner.js +3 -2
- package/dist/domain/ui-service/app-router.d.ts +54 -3
- package/dist/domain/ui-service/app-router.js +12 -14
- package/dist/domain/ui-service/input-schemas.d.ts +49 -5
- package/dist/domain/ui-service/input-schemas.js +35 -9
- package/dist/domain/ui-service/mutate/platform-settings.js +1 -1
- package/dist/domain/ui-service/mutate/sessions.d.ts +17 -1
- package/dist/domain/ui-service/mutate/sessions.js +83 -3
- package/dist/domain/ui-service/mutate/system.d.ts +3 -1
- package/dist/domain/ui-service/mutate/system.js +13 -0
- package/dist/domain/ui-service/mutate/waitpoints.d.ts +2 -0
- package/dist/domain/ui-service/mutate/waitpoints.js +20 -0
- package/dist/domain/ui-service/platform-settings.js +1 -1
- package/dist/domain/ui-service/plugins-shared.js +1 -1
- package/dist/domain/ui-service/query/config.js +1 -1
- package/dist/domain/ui-service/query/executions.js +0 -2
- package/dist/domain/ui-service/query/machine-detail.js +3 -8
- package/dist/domain/ui-service/query/memory.js +1 -1
- package/dist/domain/ui-service/query/sessions.js +7 -0
- package/dist/domain/ui-service/query/system.d.ts +2 -1
- package/dist/domain/ui-service/query/system.js +4 -0
- package/dist/domain/ui-service/query/threads.js +1 -54
- package/dist/domain/ui-service/query/waitpoints.d.ts +30 -0
- package/dist/domain/ui-service/query/waitpoints.js +117 -0
- package/dist/domain/ui-service/query-input-schemas.d.ts +3 -0
- package/dist/domain/ui-service/query-input-schemas.js +3 -0
- package/dist/domain/ui-service/trpc.js +1 -1
- package/dist/domain/ui-service/types.d.ts +175 -50
- package/dist/domain/ui-service/types.js +1 -1
- package/dist/domain/ui-service/ui-service.js +13 -33
- package/dist/domain/waitpoints/notices.d.ts +21 -0
- package/dist/domain/waitpoints/notices.js +115 -0
- package/dist/domain/waitpoints/service.d.ts +91 -0
- package/dist/domain/waitpoints/service.js +243 -0
- package/dist/entry/app.js +39 -29
- package/dist/entry/auth-login-cli.js +1 -1
- package/dist/entry/auth-login-terminal.js +1 -1
- package/dist/entry/init-auth.js +1 -1
- package/dist/entry/init.js +6 -6
- package/dist/entry/signal-cli.d.ts +30 -0
- package/dist/entry/signal-cli.js +207 -0
- package/dist/entry/start-ui-http.d.ts +1 -1
- package/dist/entry/start-ui-http.js +5 -3
- package/dist/events/event-types.d.ts +5 -7
- package/dist/hooks/{cortex-md-injector.mjs → agents-md-injector.mjs} +117 -26
- package/dist/hooks/cortex-hook-api.mjs +2 -2
- package/dist/hooks/new-session-hook.mjs +2 -2
- package/dist/hooks/rules-loader.mjs +2 -2
- package/dist/hooks/status-md-guard.mjs +8 -8
- package/dist/hooks/task-status-check.mjs +18 -76
- package/dist/hooks/tasks-yaml-guard.mjs +2 -2
- package/dist/orchestration/agent-file-send.d.ts +9 -0
- package/dist/orchestration/agent-file-send.js +21 -2
- package/dist/orchestration/agent-runner.d.ts +4 -3
- package/dist/orchestration/agent-runner.js +25 -23
- package/dist/orchestration/attachments-store.d.ts +31 -0
- package/dist/orchestration/attachments-store.js +184 -0
- package/dist/orchestration/conversation-request.d.ts +30 -8
- package/dist/orchestration/conversation-request.js +62 -26
- package/dist/orchestration/edit-retry.js +2 -1
- package/dist/orchestration/interactions/ask-user-resume.js +2 -1
- package/dist/orchestration/interactions/plan-approvals.js +1 -1
- package/dist/orchestration/interactions/ui-update-prompt.d.ts +8 -0
- package/dist/orchestration/interactions/ui-update-prompt.js +47 -0
- package/dist/orchestration/outputs-store.d.ts +11 -0
- package/dist/orchestration/outputs-store.js +32 -6
- package/dist/orchestration/resume-dispatcher.js +2 -2
- package/dist/orchestration/routing/file-handler.d.ts +23 -2
- package/dist/orchestration/routing/file-handler.js +22 -5
- package/dist/orchestration/routing/webhook.js +240 -39
- package/dist/orchestration/session-compact.d.ts +3 -0
- package/dist/orchestration/session-compact.js +3 -2
- package/dist/orchestration/session-events.d.ts +6 -0
- package/dist/orchestration/session-events.js +5 -0
- package/dist/orchestration/session-gateway.d.ts +1 -1
- package/dist/orchestration/session-gateway.js +1 -0
- package/dist/orchestration/thread-executor.d.ts +2 -0
- package/dist/orchestration/thread-executor.js +11 -1
- package/dist/orchestration/thread-input.d.ts +3 -2
- package/dist/orchestration/thread-input.js +8 -9
- package/dist/orchestration/turn/turn-prep.d.ts +15 -1
- package/dist/orchestration/turn/turn-prep.js +21 -9
- package/dist/orchestration/waitpoint-ingress.d.ts +41 -0
- package/dist/orchestration/waitpoint-ingress.js +172 -0
- package/dist/orchestration/waitpoint-notifier.d.ts +21 -0
- package/dist/orchestration/waitpoint-notifier.js +119 -0
- package/dist/orchestration/waitpoint-remote-drain.d.ts +20 -0
- package/dist/orchestration/waitpoint-remote-drain.js +147 -0
- package/dist/orchestration/waitpoint-sweep.d.ts +42 -0
- package/dist/orchestration/waitpoint-sweep.js +87 -0
- package/dist/platform/adapters/feishu-image.d.ts +19 -0
- package/dist/platform/adapters/feishu-image.js +71 -0
- package/dist/platform/adapters/feishu.d.ts +2 -0
- package/dist/platform/adapters/feishu.js +26 -16
- package/dist/platform/ui-http/app-update.d.ts +11 -0
- package/dist/platform/ui-http/app-update.js +3 -0
- package/dist/platform/ui-http/listening-ports.d.ts +1 -1
- package/dist/platform/ui-http/listening-ports.js +1 -1
- package/dist/platform/ui-http/ui-session.js +1 -1
- package/dist/store/conversation-ledger-repo.d.ts +10 -19
- package/dist/store/conversation-ledger-repo.js +143 -152
- package/dist/store/execution-repo.d.ts +1 -19
- package/dist/store/execution-repo.js +1 -18
- package/dist/store/project-notes-repo.js +11 -2
- package/dist/store/prompt-migration-replacements.js +1 -1
- package/dist/store/session-registry-import.d.ts +34 -0
- package/dist/store/session-registry-import.js +182 -0
- package/dist/store/session-registry-journal.d.ts +107 -0
- package/dist/store/session-registry-journal.js +308 -19
- package/dist/store/session-registry-repo.d.ts +113 -28
- package/dist/store/session-registry-repo.js +288 -105
- package/dist/store/version-migrations.d.ts +29 -3
- package/dist/store/version-migrations.js +288 -24
- package/dist/store/waitpoint-repo.d.ts +108 -0
- package/dist/store/waitpoint-repo.js +94 -0
- package/package.json +2 -2
- package/web/dist/assets/index-CwwQNMpP.css +1 -0
- package/web/dist/assets/index-DLSfgq3o.js +444 -0
- package/web/dist/assets/{index-aHbOZSP6.js → index-DZTuqUO4.js} +1 -1
- package/web/dist/index.html +2 -2
- package/defaults/config/hooks/08-cortex-md-injector-post-tool.json +0 -10
- package/dist/domain/executions/log-tailer.d.ts +0 -71
- package/dist/domain/executions/log-tailer.js +0 -194
- package/dist/domain/memory/cortex-md-injector.d.ts +0 -24
- package/dist/domain/memory/cortex-md-scanner.d.ts +0 -10
- package/dist/domain/memory/cortex-md-scanner.js +0 -66
- package/dist/domain/remote/cortex-client.d.ts +0 -1
- package/dist/domain/remote/cortex-client.js +0 -662
- package/dist/domain/tasks/system/cortex-run.d.ts +0 -25
- package/dist/domain/tasks/system/cortex-run.js +0 -360
- package/dist/store/session-repo.d.ts +0 -65
- package/dist/store/session-repo.js +0 -184
- package/web/dist/assets/index-BuXbCsuz.js +0 -444
- package/web/dist/assets/index-CCPxQ94C.css +0 -1
- /package/defaults/{CORTEX.md → AGENTS.md} +0 -0
- /package/defaults/config/{CORTEX.md → AGENTS.md} +0 -0
- /package/defaults/context/{CORTEX.md → AGENTS.md} +0 -0
- /package/defaults/context/ideas/{CORTEX.md → AGENTS.md} +0 -0
- /package/defaults/context/projects/{CORTEX.md → AGENTS.md} +0 -0
- /package/defaults/context/scans/{CORTEX.md → AGENTS.md} +0 -0
- /package/defaults/context/user/{CORTEX.md → AGENTS.md} +0 -0
|
@@ -1,68 +1,92 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
// input: SessionRegistryRepo (channel bindings + conversation headers + turn history)
|
|
2
|
+
// output: ConversationLedgerRepo — a thin FAÇADE over the session registry that keeps the historical
|
|
3
|
+
// ledger API (getConversation / beginTurn / rollbackTo / …) while the registry owns the data.
|
|
4
|
+
// pos: Compatibility surface for turn-history callers; NO storage of its own (no JSON file — the
|
|
5
|
+
// registry journal is the only store)
|
|
6
|
+
// >>> Once I am updated, be sure to update my header comment and the parent folder AGENTS.md <<<
|
|
7
|
+
//
|
|
8
|
+
// The ledger no longer has a JSON file. Every method maps onto the registry's channel-keyed
|
|
9
|
+
// conversation header + turn history, most under a single `registry.batch(...)` critical section so a
|
|
10
|
+
// header + turn mutation is atomic (the same guarantee the old JsonRepository.mutate gave). The
|
|
11
|
+
// exported names/signatures (ConversationLedgerRepo, conversationLedger, LedgerTurn, TurnStatus,
|
|
12
|
+
// ChannelConversation, LedgerData) are unchanged so downstream callers compile untouched.
|
|
13
|
+
import { sessionStore, } from './session-registry-repo.js';
|
|
5
14
|
function nowIso() {
|
|
6
15
|
return new Date().toISOString();
|
|
7
16
|
}
|
|
8
|
-
|
|
17
|
+
/** `updatedAt` is derived, not stored twice: the freshest of the header stamp and any turn stamp.
|
|
18
|
+
* This preserves the old "bump on every mutation" contract without a second write. */
|
|
19
|
+
function deriveUpdatedAt(header, turns) {
|
|
20
|
+
let latest = header.updatedAt;
|
|
21
|
+
for (const turn of turns)
|
|
22
|
+
if (turn.updatedAt > latest)
|
|
23
|
+
latest = turn.updatedAt;
|
|
24
|
+
return latest;
|
|
25
|
+
}
|
|
26
|
+
function toChannelConversation(header, turns) {
|
|
27
|
+
return {
|
|
28
|
+
sessionId: header.sessionId,
|
|
29
|
+
sessionName: header.sessionName,
|
|
30
|
+
backend: header.backend,
|
|
31
|
+
profileName: header.profileName,
|
|
32
|
+
turns,
|
|
33
|
+
updatedAt: deriveUpdatedAt(header, turns),
|
|
34
|
+
};
|
|
35
|
+
}
|
|
36
|
+
// --- Repo class (façade) ---
|
|
9
37
|
export class ConversationLedgerRepo {
|
|
10
|
-
|
|
11
|
-
constructor(
|
|
12
|
-
this.
|
|
13
|
-
filePath,
|
|
14
|
-
defaultValue: () => ({}),
|
|
15
|
-
});
|
|
38
|
+
registry;
|
|
39
|
+
constructor(registry = sessionStore) {
|
|
40
|
+
this.registry = registry;
|
|
16
41
|
}
|
|
17
|
-
// --- Read-only queries
|
|
42
|
+
// --- Read-only queries ---
|
|
18
43
|
async getConversation(channel) {
|
|
19
|
-
const
|
|
20
|
-
return
|
|
44
|
+
const found = await this.registry.readConversation(channel);
|
|
45
|
+
return found ? toChannelConversation(found.header, found.turns) : null;
|
|
21
46
|
}
|
|
22
47
|
async findTurn(channel, userMessageTs) {
|
|
23
|
-
const
|
|
24
|
-
|
|
25
|
-
if (!conv)
|
|
48
|
+
const found = await this.registry.readConversation(channel);
|
|
49
|
+
if (!found)
|
|
26
50
|
return null;
|
|
27
|
-
const idx =
|
|
51
|
+
const idx = found.turns.findIndex(t => t.userMessageTs === userMessageTs);
|
|
28
52
|
if (idx === -1)
|
|
29
53
|
return null;
|
|
30
|
-
return {
|
|
54
|
+
return {
|
|
55
|
+
conversation: toChannelConversation(found.header, found.turns),
|
|
56
|
+
turn: found.turns[idx],
|
|
57
|
+
turnIndex: idx,
|
|
58
|
+
};
|
|
31
59
|
}
|
|
32
|
-
// --- Mutations (
|
|
60
|
+
// --- Mutations (registry.batch → one critical section per call) ---
|
|
33
61
|
async initConversation(channel, opts) {
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
return { next: data, result: conv };
|
|
62
|
+
const now = nowIso();
|
|
63
|
+
const header = {
|
|
64
|
+
sessionId: opts.sessionId,
|
|
65
|
+
sessionName: opts.sessionName,
|
|
66
|
+
backend: opts.backend,
|
|
67
|
+
profileName: opts.profileName ?? null,
|
|
68
|
+
updatedAt: now,
|
|
69
|
+
};
|
|
70
|
+
await this.registry.batch(async (ops) => {
|
|
71
|
+
await ops.setConversation(channel, header);
|
|
72
|
+
await ops.clearTurns(channel);
|
|
46
73
|
});
|
|
74
|
+
return toChannelConversation(header, []);
|
|
47
75
|
}
|
|
48
76
|
async updateSessionId(channel, sessionId) {
|
|
49
|
-
await this.
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
conv.sessionId = sessionId;
|
|
54
|
-
conv.updatedAt = nowIso();
|
|
55
|
-
return { next: data, result: undefined };
|
|
77
|
+
await this.registry.batch(async (ops) => {
|
|
78
|
+
if (!ops.getConversationHeader(channel))
|
|
79
|
+
return;
|
|
80
|
+
await ops.setConversation(channel, { sessionId, updatedAt: nowIso() });
|
|
56
81
|
});
|
|
57
82
|
}
|
|
58
83
|
async beginTurn(channel, opts) {
|
|
59
|
-
return this.
|
|
60
|
-
|
|
61
|
-
if (!conv)
|
|
84
|
+
return this.registry.batch(async (ops) => {
|
|
85
|
+
if (!ops.getConversationHeader(channel))
|
|
62
86
|
throw new Error(`No conversation for channel ${channel}`);
|
|
63
87
|
const now = nowIso();
|
|
64
88
|
const turn = {
|
|
65
|
-
turnIndex:
|
|
89
|
+
turnIndex: ops.getTurns(channel).length,
|
|
66
90
|
userMessageTs: opts.userMessageTs,
|
|
67
91
|
userMessageText: opts.userMessageText,
|
|
68
92
|
statusMessageTs: opts.statusMessageTs ?? null,
|
|
@@ -73,84 +97,71 @@ export class ConversationLedgerRepo {
|
|
|
73
97
|
createdAt: now,
|
|
74
98
|
updatedAt: now,
|
|
75
99
|
};
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
return { next: data, result: turn };
|
|
100
|
+
await ops.beginTurn(channel, turn);
|
|
101
|
+
return turn;
|
|
79
102
|
});
|
|
80
103
|
}
|
|
81
104
|
async addResponseTs(channel, userMessageTs, responseTs) {
|
|
82
|
-
await this.
|
|
83
|
-
const
|
|
84
|
-
if (!conv)
|
|
85
|
-
return { next: data, result: undefined };
|
|
86
|
-
const turn = conv.turns.find(t => t.userMessageTs === userMessageTs);
|
|
105
|
+
await this.registry.batch(async (ops) => {
|
|
106
|
+
const turn = ops.getTurns(channel).find(t => t.userMessageTs === userMessageTs);
|
|
87
107
|
if (!turn)
|
|
88
|
-
return
|
|
89
|
-
turn.
|
|
90
|
-
|
|
91
|
-
|
|
108
|
+
return;
|
|
109
|
+
await ops.patchTurn(channel, turn.turnIndex, {
|
|
110
|
+
responseMessageTimestamps: [...turn.responseMessageTimestamps, responseTs],
|
|
111
|
+
updatedAt: nowIso(),
|
|
112
|
+
});
|
|
92
113
|
});
|
|
93
114
|
}
|
|
94
115
|
async completeTurn(channel, userMessageTs, opts) {
|
|
95
|
-
await this.
|
|
96
|
-
const
|
|
97
|
-
if (!conv)
|
|
98
|
-
return { next: data, result: undefined };
|
|
99
|
-
const turn = conv.turns.find(t => t.userMessageTs === userMessageTs);
|
|
116
|
+
await this.registry.batch(async (ops) => {
|
|
117
|
+
const turn = ops.getTurns(channel).find(t => t.userMessageTs === userMessageTs);
|
|
100
118
|
if (!turn || turn.status !== 'processing')
|
|
101
|
-
return
|
|
102
|
-
turn.
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
return { next: data, result: undefined };
|
|
119
|
+
return;
|
|
120
|
+
await ops.patchTurn(channel, turn.turnIndex, {
|
|
121
|
+
status: 'completed',
|
|
122
|
+
...(opts?.executionId ? { executionId: opts.executionId } : {}),
|
|
123
|
+
updatedAt: nowIso(),
|
|
124
|
+
});
|
|
108
125
|
});
|
|
109
126
|
}
|
|
110
127
|
async rollbackTo(channel, turnIndex) {
|
|
111
|
-
return this.
|
|
112
|
-
const
|
|
113
|
-
if (!
|
|
114
|
-
return
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
128
|
+
return this.registry.batch(async (ops) => {
|
|
129
|
+
const header = ops.getConversationHeader(channel);
|
|
130
|
+
if (!header)
|
|
131
|
+
return null;
|
|
132
|
+
const turns = ops.getTurns(channel);
|
|
133
|
+
if (turnIndex < 0 || turnIndex > turns.length)
|
|
134
|
+
return null;
|
|
118
135
|
const now = nowIso();
|
|
119
|
-
for (let i = turnIndex; i <
|
|
120
|
-
|
|
121
|
-
conv.turns[i].updatedAt = now;
|
|
122
|
-
superseded.push(conv.turns[i]);
|
|
136
|
+
for (let i = turnIndex; i < turns.length; i++) {
|
|
137
|
+
await ops.patchTurn(channel, turns[i].turnIndex, { status: 'superseded', updatedAt: now });
|
|
123
138
|
}
|
|
124
|
-
|
|
125
|
-
return {
|
|
139
|
+
const updated = ops.getTurns(channel);
|
|
140
|
+
return {
|
|
141
|
+
supersededTurns: updated.slice(turnIndex),
|
|
142
|
+
conversation: toChannelConversation(header, updated),
|
|
143
|
+
};
|
|
126
144
|
});
|
|
127
145
|
}
|
|
128
146
|
async truncateTurns(channel, fromIndex) {
|
|
129
|
-
await this.
|
|
130
|
-
const conv = data[channel];
|
|
131
|
-
if (!conv)
|
|
132
|
-
return { next: data, result: undefined };
|
|
133
|
-
conv.turns = conv.turns.slice(0, fromIndex);
|
|
134
|
-
conv.updatedAt = nowIso();
|
|
135
|
-
return { next: data, result: undefined };
|
|
136
|
-
});
|
|
147
|
+
await this.registry.truncateTurns(channel, fromIndex);
|
|
137
148
|
}
|
|
138
149
|
async clearConversation(channel) {
|
|
139
|
-
await this.
|
|
140
|
-
|
|
141
|
-
|
|
150
|
+
await this.registry.batch(async (ops) => {
|
|
151
|
+
await ops.clearConversation(channel);
|
|
152
|
+
await ops.clearTurns(channel);
|
|
142
153
|
});
|
|
143
154
|
}
|
|
144
155
|
async listBySessionIds(sessionIds) {
|
|
145
156
|
const targets = new Set(sessionIds);
|
|
146
157
|
if (targets.size === 0)
|
|
147
158
|
return [];
|
|
148
|
-
const
|
|
159
|
+
const all = await this.registry.listConversations();
|
|
149
160
|
const matches = [];
|
|
150
|
-
for (const
|
|
151
|
-
if (!
|
|
161
|
+
for (const { channel, header, turns } of all) {
|
|
162
|
+
if (!header.sessionId || !targets.has(header.sessionId))
|
|
152
163
|
continue;
|
|
153
|
-
matches.push({ ...
|
|
164
|
+
matches.push({ ...toChannelConversation(header, turns), channel });
|
|
154
165
|
}
|
|
155
166
|
return matches;
|
|
156
167
|
}
|
|
@@ -158,64 +169,50 @@ export class ConversationLedgerRepo {
|
|
|
158
169
|
const targets = new Set(sessionIds);
|
|
159
170
|
if (targets.size === 0)
|
|
160
171
|
return 0;
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
}
|
|
172
|
-
async deleteExceptSessionIds(sessionIds) {
|
|
173
|
-
const live = new Set(sessionIds);
|
|
174
|
-
return this.repo.mutate(data => {
|
|
175
|
-
let removed = 0;
|
|
176
|
-
for (const [channel, conversation] of Object.entries(data)) {
|
|
177
|
-
if (!conversation?.sessionId || live.has(conversation.sessionId))
|
|
178
|
-
continue;
|
|
179
|
-
delete data[channel];
|
|
180
|
-
removed += 1;
|
|
172
|
+
const all = await this.registry.listConversations();
|
|
173
|
+
const channels = all
|
|
174
|
+
.filter(({ header }) => header.sessionId && targets.has(header.sessionId))
|
|
175
|
+
.map(({ channel }) => channel);
|
|
176
|
+
if (channels.length === 0)
|
|
177
|
+
return 0;
|
|
178
|
+
await this.registry.batch(async (ops) => {
|
|
179
|
+
for (const channel of channels) {
|
|
180
|
+
await ops.clearConversation(channel);
|
|
181
|
+
await ops.clearTurns(channel);
|
|
181
182
|
}
|
|
182
|
-
return { next: data, result: removed };
|
|
183
183
|
});
|
|
184
|
+
return channels.length;
|
|
184
185
|
}
|
|
185
186
|
async switchSession(channel, opts) {
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
return { next: data, result: undefined };
|
|
187
|
+
const header = {
|
|
188
|
+
sessionId: opts.sessionId,
|
|
189
|
+
sessionName: opts.sessionName,
|
|
190
|
+
backend: opts.backend,
|
|
191
|
+
profileName: opts.profileName ?? null,
|
|
192
|
+
updatedAt: nowIso(),
|
|
193
|
+
};
|
|
194
|
+
await this.registry.batch(async (ops) => {
|
|
195
|
+
await ops.setConversation(channel, header);
|
|
196
|
+
await ops.clearTurns(channel);
|
|
197
197
|
});
|
|
198
198
|
}
|
|
199
199
|
/**
|
|
200
|
-
* Atomic init-if-missing + beginTurn. Captures the turn index under
|
|
200
|
+
* Atomic init-if-missing + beginTurn. Captures the turn index under one lock
|
|
201
201
|
* so callers can safely pass it to sessionBackup.createBackup.
|
|
202
202
|
* Returns { turn, turnIndex } for the caller.
|
|
203
203
|
*/
|
|
204
204
|
async initAndBeginTurn(channel, opts) {
|
|
205
|
-
return this.
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
conv = {
|
|
205
|
+
return this.registry.batch(async (ops) => {
|
|
206
|
+
if (!ops.getConversationHeader(channel)) {
|
|
207
|
+
await ops.setConversation(channel, {
|
|
209
208
|
sessionId: opts.sessionId,
|
|
210
209
|
sessionName: opts.sessionName,
|
|
211
210
|
backend: opts.backend,
|
|
212
211
|
profileName: opts.profileName ?? null,
|
|
213
|
-
turns: [],
|
|
214
212
|
updatedAt: nowIso(),
|
|
215
|
-
};
|
|
216
|
-
data[channel] = conv;
|
|
213
|
+
});
|
|
217
214
|
}
|
|
218
|
-
const turnIndex =
|
|
215
|
+
const turnIndex = ops.getTurns(channel).length;
|
|
219
216
|
const now = nowIso();
|
|
220
217
|
const turn = {
|
|
221
218
|
turnIndex,
|
|
@@ -229,32 +226,26 @@ export class ConversationLedgerRepo {
|
|
|
229
226
|
createdAt: now,
|
|
230
227
|
updatedAt: now,
|
|
231
228
|
};
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
return { next: data, result: { turn, turnIndex } };
|
|
229
|
+
await ops.beginTurn(channel, turn);
|
|
230
|
+
return { turn, turnIndex };
|
|
235
231
|
});
|
|
236
232
|
}
|
|
237
233
|
/** Set the backup path on the turn identified by userMessageTs. */
|
|
238
234
|
async setBackupPath(channel, userMessageTs, backupPath) {
|
|
239
|
-
await this.
|
|
240
|
-
const
|
|
241
|
-
if (!conv)
|
|
242
|
-
return { next: data, result: undefined };
|
|
243
|
-
const turn = conv.turns.find(t => t.userMessageTs === userMessageTs);
|
|
235
|
+
await this.registry.batch(async (ops) => {
|
|
236
|
+
const turn = ops.getTurns(channel).find(t => t.userMessageTs === userMessageTs);
|
|
244
237
|
if (!turn)
|
|
245
|
-
return
|
|
246
|
-
turn.backupPath
|
|
247
|
-
turn.updatedAt = nowIso();
|
|
248
|
-
return { next: data, result: undefined };
|
|
238
|
+
return;
|
|
239
|
+
await ops.patchTurn(channel, turn.turnIndex, { backupPath, updatedAt: nowIso() });
|
|
249
240
|
});
|
|
250
241
|
}
|
|
251
|
-
/** Drop the in-memory cache so the next read
|
|
242
|
+
/** Drop the registry's in-memory cache so the next read fetches from disk. For testing. */
|
|
252
243
|
invalidate() {
|
|
253
|
-
this.
|
|
244
|
+
this.registry.invalidate();
|
|
254
245
|
}
|
|
255
|
-
/** Wait for any in-flight
|
|
246
|
+
/** Wait for any in-flight registry mutation to complete. For graceful SIGTERM drain. */
|
|
256
247
|
flush() {
|
|
257
|
-
return this.
|
|
248
|
+
return this.registry.flush();
|
|
258
249
|
}
|
|
259
250
|
}
|
|
260
251
|
export const conversationLedger = new ConversationLedgerRepo();
|
|
@@ -7,16 +7,6 @@ export interface DispatchInfo {
|
|
|
7
7
|
sessionName: string | null;
|
|
8
8
|
tmuxName: string | null;
|
|
9
9
|
pid: string | null;
|
|
10
|
-
/** cortex-run `--name` (log-ref): resolves the run's output.log for the live log tailer (B2-C). */
|
|
11
|
-
runName: string | null;
|
|
12
|
-
}
|
|
13
|
-
/** The GPU actually selected for a cortex-run/dispatch execution (DR-0018 §6.3 B2-followup).
|
|
14
|
-
* Captured by the client watcher (`resolveGpuSelection`, incl. `--gpu auto`) and delivered via
|
|
15
|
-
* task-callback. `indices` = CUDA device ordinals; `memoryMb` = the selected GPU's total memory
|
|
16
|
-
* (auto-pick only — null for an explicit `--gpu N`). Null on the record ⇒ unknown / not captured. */
|
|
17
|
-
export interface ExecutionGpuInfo {
|
|
18
|
-
indices: number[];
|
|
19
|
-
memoryMb: number | null;
|
|
20
10
|
}
|
|
21
11
|
export interface ExecutionRecord {
|
|
22
12
|
id: string;
|
|
@@ -56,7 +46,6 @@ export interface ExecutionRecord {
|
|
|
56
46
|
numTurns: number | null;
|
|
57
47
|
durationS: number | null;
|
|
58
48
|
};
|
|
59
|
-
gpu: ExecutionGpuInfo | null;
|
|
60
49
|
text: {
|
|
61
50
|
label: string | null;
|
|
62
51
|
finalOutput: string | null;
|
|
@@ -113,7 +102,7 @@ declare class ExecutionRepo {
|
|
|
113
102
|
threadId?: string | null;
|
|
114
103
|
agentSlotId?: string | null;
|
|
115
104
|
}): ExecutionRecord;
|
|
116
|
-
registerDispatchExecution({ taskId, machine, channel, project, scheduleTaskId, taskText, taskHash, sessionName, tmuxName, pid,
|
|
105
|
+
registerDispatchExecution({ taskId, machine, channel, project, scheduleTaskId, taskText, taskHash, sessionName, tmuxName, pid, backend, billingMode }: {
|
|
117
106
|
taskId: string;
|
|
118
107
|
machine?: string | null;
|
|
119
108
|
channel?: string | null;
|
|
@@ -124,7 +113,6 @@ declare class ExecutionRepo {
|
|
|
124
113
|
sessionName?: string | null;
|
|
125
114
|
tmuxName?: string | null;
|
|
126
115
|
pid?: string | null;
|
|
127
|
-
runName?: string | null;
|
|
128
116
|
backend?: string;
|
|
129
117
|
billingMode?: string;
|
|
130
118
|
}): ExecutionRecord | null;
|
|
@@ -135,12 +123,6 @@ declare class ExecutionRepo {
|
|
|
135
123
|
session?: Partial<ExecutionRecord['session']>;
|
|
136
124
|
[key: string]: unknown;
|
|
137
125
|
}): ExecutionRecord | null;
|
|
138
|
-
/** Record the per-execution GPU onto the dispatch record keyed by taskId (DR-0018 §6.3
|
|
139
|
-
* B2-followup). GPU is write-once metadata delivered by the terminal task-callback, so —
|
|
140
|
-
* unlike touchExecution — this bypasses the terminal-status guard (the dispatch record is
|
|
141
|
-
* usually still 'running' at callback time, but a re-dispatched/terminal one must still learn
|
|
142
|
-
* its GPU). Returns null when no execution is registered for the task. */
|
|
143
|
-
setExecutionGpuByTaskId(taskId: string, gpu: ExecutionGpuInfo | null): ExecutionRecord | null;
|
|
144
126
|
completeExecution(id: string, metrics?: {
|
|
145
127
|
costUsd?: number | null;
|
|
146
128
|
numTurns?: number | null;
|
|
@@ -48,7 +48,6 @@ function createBaseRecord({ kind, channel, project, trigger, backend, billingMod
|
|
|
48
48
|
numTurns: null,
|
|
49
49
|
durationS: null,
|
|
50
50
|
},
|
|
51
|
-
gpu: null,
|
|
52
51
|
text: {
|
|
53
52
|
label: label || null,
|
|
54
53
|
finalOutput: null,
|
|
@@ -180,7 +179,7 @@ class ExecutionRepo {
|
|
|
180
179
|
this.queuePersist();
|
|
181
180
|
return record;
|
|
182
181
|
}
|
|
183
|
-
registerDispatchExecution({ taskId, machine, channel, project, scheduleTaskId, taskText, taskHash, sessionName, tmuxName, pid,
|
|
182
|
+
registerDispatchExecution({ taskId, machine, channel, project, scheduleTaskId, taskText, taskHash, sessionName, tmuxName, pid, backend, billingMode }) {
|
|
184
183
|
const existing = this.getExecutionByTaskId(taskId);
|
|
185
184
|
if (existing && !TERMINAL_STATUSES.has(existing.status)) {
|
|
186
185
|
return this.updateRecordInternal(existing.id, (record) => ({
|
|
@@ -200,7 +199,6 @@ class ExecutionRepo {
|
|
|
200
199
|
sessionName: sessionName || record.dispatch?.sessionName || null,
|
|
201
200
|
tmuxName: tmuxName || record.dispatch?.tmuxName || null,
|
|
202
201
|
pid: pid || record.dispatch?.pid || null,
|
|
203
|
-
runName: runName || record.dispatch?.runName || null,
|
|
204
202
|
},
|
|
205
203
|
}));
|
|
206
204
|
}
|
|
@@ -222,7 +220,6 @@ class ExecutionRepo {
|
|
|
222
220
|
sessionName: sessionName || null,
|
|
223
221
|
tmuxName: tmuxName || null,
|
|
224
222
|
pid: pid || null,
|
|
225
|
-
runName: runName || null,
|
|
226
223
|
};
|
|
227
224
|
this.map.set(record.id, record);
|
|
228
225
|
this.queuePersist();
|
|
@@ -238,20 +235,6 @@ class ExecutionRepo {
|
|
|
238
235
|
session: patch.session ? { ...record.session, ...patch.session } : record.session,
|
|
239
236
|
}));
|
|
240
237
|
}
|
|
241
|
-
/** Record the per-execution GPU onto the dispatch record keyed by taskId (DR-0018 §6.3
|
|
242
|
-
* B2-followup). GPU is write-once metadata delivered by the terminal task-callback, so —
|
|
243
|
-
* unlike touchExecution — this bypasses the terminal-status guard (the dispatch record is
|
|
244
|
-
* usually still 'running' at callback time, but a re-dispatched/terminal one must still learn
|
|
245
|
-
* its GPU). Returns null when no execution is registered for the task. */
|
|
246
|
-
setExecutionGpuByTaskId(taskId, gpu) {
|
|
247
|
-
const record = this.getExecutionByTaskId(taskId);
|
|
248
|
-
if (!record)
|
|
249
|
-
return null;
|
|
250
|
-
const next = { ...record, gpu };
|
|
251
|
-
this.map.set(record.id, next);
|
|
252
|
-
this.queuePersist();
|
|
253
|
-
return next;
|
|
254
|
-
}
|
|
255
238
|
completeExecution(id, metrics = {}) {
|
|
256
239
|
return this.updateRecordInternal(id, (record) => finalizeExecution(record, 'completed', metrics));
|
|
257
240
|
}
|
|
@@ -62,6 +62,10 @@ function isChromeLine(line) {
|
|
|
62
62
|
return line === '' || line === '# Notes' || line === FORMAT_MARKER || line === PRIVACY_MARKER
|
|
63
63
|
|| line === '## Active' || line === '## Completed';
|
|
64
64
|
}
|
|
65
|
+
function excerpt(line) {
|
|
66
|
+
const text = line.trim();
|
|
67
|
+
return text.length > 60 ? `${text.slice(0, 60)}...` : text;
|
|
68
|
+
}
|
|
65
69
|
export function parseNotesMarkdown(md) {
|
|
66
70
|
if (!md.includes(FORMAT_MARKER))
|
|
67
71
|
throw invalidFile('Unsupported NOTES.md format');
|
|
@@ -71,8 +75,13 @@ export function parseNotesMarkdown(md) {
|
|
|
71
75
|
const line = lines[index];
|
|
72
76
|
if (isChromeLine(line))
|
|
73
77
|
continue;
|
|
74
|
-
|
|
75
|
-
|
|
78
|
+
// Strict on purpose: this file is machine-owned, and quietly skipping a line we do not
|
|
79
|
+
// understand would silently delete it on the next write. The excerpt is what makes the refusal
|
|
80
|
+
// actionable — hand-written prose appended below the notes is the one way this ever happens.
|
|
81
|
+
if (!line.startsWith(META_PREFIX)) {
|
|
82
|
+
throw invalidFile(`Unexpected NOTES.md content at line ${index + 1}: ${JSON.stringify(excerpt(line))}. `
|
|
83
|
+
+ 'NOTES.md is written by the notes UI only — move hand-written text to another file.');
|
|
84
|
+
}
|
|
76
85
|
notes.push(parseEntry(lines, index));
|
|
77
86
|
index += 1;
|
|
78
87
|
}
|
|
@@ -77,7 +77,7 @@ export const MANAGER_TASK_FILE_REPLACEMENTS = [
|
|
|
77
77
|
export const STATUS_REGISTER_REPLACEMENTS = [
|
|
78
78
|
[
|
|
79
79
|
"Record findings, decisions, and artifacts in files as you go — not in a final summary. Update STATUS.md, the directory's CORTEX.md index, and the role's designated output artifact(s) before exiting.",
|
|
80
|
-
"Record findings, decisions, and artifacts in files as you go — not in a final summary. Update the role's designated output artifact(s) and the directory's
|
|
80
|
+
"Record findings, decisions, and artifacts in files as you go — not in a final summary. Update the role's designated output artifact(s) and the directory's AGENTS.md index before exiting. Update STATUS.md only if your work changed the project's situation (unblocked something, introduced a blocker, changed the next step) — STATUS is a state register, not a changelog; one line + pointer per change (see rules/status-md.md).",
|
|
81
81
|
],
|
|
82
82
|
[
|
|
83
83
|
"Prefer editing the existing project artifacts (STATUS.md, knowledge entries, the role's artifact file) over creating parallel new files.",
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
export interface LegacyImportSummary {
|
|
2
|
+
/** channel→sessionId bindings imported from sessions.json. */
|
|
3
|
+
bindings: number;
|
|
4
|
+
/** conversation headers imported from conversation-ledger.json. */
|
|
5
|
+
conversations: number;
|
|
6
|
+
/** total turns imported across all conversations. */
|
|
7
|
+
turns: number;
|
|
8
|
+
/** conversations whose header carried a non-null profileName. */
|
|
9
|
+
profileNames: number;
|
|
10
|
+
/** source basenames left in place because their JSON was corrupt. */
|
|
11
|
+
skipped: string[];
|
|
12
|
+
/** `.bak` basenames the sources were renamed to. */
|
|
13
|
+
renamed: string[];
|
|
14
|
+
}
|
|
15
|
+
/**
|
|
16
|
+
* Fold `<storeDir>/sessions.json` (bindings) and `<storeDir>/conversation-ledger.json` (headers +
|
|
17
|
+
* turns) into `<storeDir>/session-registry.jsonl` via the repo API, then rename each successfully
|
|
18
|
+
* consumed source to `<file>.pre-<version>.bak`.
|
|
19
|
+
*
|
|
20
|
+
* Semantics:
|
|
21
|
+
* - A missing source contributes 0 counts and is not renamed.
|
|
22
|
+
* - A corrupt source (unparseable JSON) is logged, listed in `skipped`, and LEFT ON DISK for manual
|
|
23
|
+
* inspection; the other source is still imported and the migration still succeeds (the caller
|
|
24
|
+
* bumps its version). Re-importing the good source on a retry is harmless: the good source has
|
|
25
|
+
* already been renamed away, so the retry sees it as missing.
|
|
26
|
+
* - Bindings whose session id is absent from the registry are imported anyway (bind is a free map).
|
|
27
|
+
* - Idempotent: after the rename, a second run finds no sources and does nothing (no journal growth).
|
|
28
|
+
* - Crash-safe: on a crash between the journal appends and the renames the sources are still present,
|
|
29
|
+
* so the next boot re-imports; per-channel turns are cleared before re-appending (only when the
|
|
30
|
+
* channel already carries turns), so the imported state converges rather than duplicating turns.
|
|
31
|
+
*/
|
|
32
|
+
export declare function importLegacySessionStores(storeDir: string, opts?: {
|
|
33
|
+
version?: string;
|
|
34
|
+
}): Promise<LegacyImportSummary>;
|