@hearsay-tools/squawk 0.18.0-dev.7509 → 0.18.0-dev.7522
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/agent-config/catalog.js +1 -1
- package/dist/agent-config/catalog.js.map +1 -1
- package/dist/agent-config/service.d.ts +2 -1
- package/dist/agent-config/service.js +1 -1
- package/dist/agent-config/service.js.map +1 -1
- package/dist/automations/service.d.ts +14 -14
- package/dist/automations/service.js +2 -2
- package/dist/automations/service.js.map +1 -1
- package/dist/automations/store.js +6 -1
- package/dist/automations/store.js.map +1 -1
- package/dist/automations/task-template.js +2 -1
- package/dist/automations/task-template.js.map +1 -1
- package/dist/automations/tool-adapter.js +17 -8
- package/dist/automations/tool-adapter.js.map +1 -1
- package/dist/ci-wait/controller.d.ts +8 -8
- package/dist/ci-wait/controller.js +1 -1
- package/dist/ci-wait/controller.js.map +1 -1
- package/dist/ci-wait/tools.d.ts +2 -2
- package/dist/contract/activity.d.ts +7 -49
- package/dist/contract/agent-config.d.ts +2 -14
- package/dist/contract/agent-profiles.d.ts +13 -91
- package/dist/contract/automation-requests.d.ts +6 -42
- package/dist/contract/automation-storage.d.ts +6 -42
- package/dist/contract/automation-tool.d.ts +6 -42
- package/dist/contract/automations.d.ts +18 -126
- package/dist/contract/config-requests.d.ts +2 -14
- package/dist/contract/delegation.d.ts +8 -56
- package/dist/contract/discovery.d.ts +8 -56
- package/dist/contract/health.d.ts +3 -25
- package/dist/contract/index.d.ts +1 -1
- package/dist/contract/index.js +1983 -1985
- package/dist/contract/per-runner-optional-strings.d.ts +3 -8
- package/dist/contract/provider-requests.d.ts +5 -35
- package/dist/contract/query-requests.d.ts +4 -7
- package/dist/contract/run-requests.d.ts +1 -7
- package/dist/contract/runner-skills.d.ts +2 -14
- package/dist/contract/runner.d.ts +5 -9
- package/dist/contract/runners.d.ts +144 -0
- package/dist/contract/runs.d.ts +22 -154
- package/dist/contract/workflow-file.d.ts +1 -7
- package/dist/contract/workflows.d.ts +9 -44
- package/dist/contract/workspace-events.d.ts +4 -28
- package/dist/contract/workspace.d.ts +23 -151
- package/dist/core/backend-detect.d.ts +2 -1
- package/dist/core/backend-detect.js.map +1 -1
- package/dist/core/provider-availability.d.ts +3 -1
- package/dist/core/provider-availability.js +1 -0
- package/dist/core/provider-availability.js.map +1 -1
- package/dist/core/runner-definition.d.ts +28 -2
- package/dist/core/runner-definition.js.map +1 -1
- package/dist/core/runner-fields.d.ts +26 -0
- package/dist/core/runner-fields.js +49 -0
- package/dist/core/runner-fields.js.map +1 -0
- package/dist/core/runner-model-catalog.d.ts +2 -1
- package/dist/core/runner-model-catalog.js +2 -2
- package/dist/core/runner-model-catalog.js.map +1 -1
- package/dist/core/runner-registry.d.ts +22 -1
- package/dist/core/runner-registry.js +32 -1
- package/dist/core/runner-registry.js.map +1 -1
- package/dist/core/ui-events.d.ts +3 -4
- package/dist/core/ui-events.js.map +1 -1
- package/dist/delegation/cli.js +6 -0
- package/dist/delegation/cli.js.map +1 -1
- package/dist/delegation/routes.d.ts +19 -19
- package/dist/delegation/routes.js +2 -2
- package/dist/delegation/routes.js.map +1 -1
- package/dist/delegation/service.js +3 -2
- package/dist/delegation/service.js.map +1 -1
- package/dist/delegation/transport.d.ts +21 -21
- package/dist/discovery/choices.d.ts +3 -2
- package/dist/discovery/choices.js +2 -2
- package/dist/discovery/choices.js.map +1 -1
- package/dist/discovery/cli.js +4 -1
- package/dist/discovery/cli.js.map +1 -1
- package/dist/runners/agent-config-notes.d.ts +5 -0
- package/dist/runners/agent-config-notes.js +6 -0
- package/dist/runners/agent-config-notes.js.map +1 -0
- package/dist/runners/claude/config-files.d.ts +3 -0
- package/dist/runners/claude/config-files.js +14 -0
- package/dist/runners/claude/config-files.js.map +1 -1
- package/dist/runners/claude/definition.js +4 -2
- package/dist/runners/claude/definition.js.map +1 -1
- package/dist/runners/claude/display.d.ts +12 -0
- package/dist/runners/claude/display.js +13 -0
- package/dist/runners/claude/display.js.map +1 -0
- package/dist/runners/claude/models.js +7 -0
- package/dist/runners/claude/models.js.map +1 -1
- package/dist/runners/codex/config-files.d.ts +3 -0
- package/dist/runners/codex/config-files.js +15 -0
- package/dist/runners/codex/config-files.js.map +1 -1
- package/dist/runners/codex/definition.js +4 -2
- package/dist/runners/codex/definition.js.map +1 -1
- package/dist/runners/codex/display.d.ts +12 -0
- package/dist/runners/codex/display.js +13 -0
- package/dist/runners/codex/display.js.map +1 -0
- package/dist/runners/codex/models.js +2 -0
- package/dist/runners/codex/models.js.map +1 -1
- package/dist/runners/omp/config-files.d.ts +3 -0
- package/dist/runners/omp/config-files.js +15 -0
- package/dist/runners/omp/config-files.js.map +1 -1
- package/dist/runners/omp/definition.js +4 -2
- package/dist/runners/omp/definition.js.map +1 -1
- package/dist/runners/omp/display.d.ts +11 -0
- package/dist/runners/omp/display.js +12 -0
- package/dist/runners/omp/display.js.map +1 -0
- package/dist/runners/omp/models.js +2 -0
- package/dist/runners/omp/models.js.map +1 -1
- package/dist/runners/opencode/config-files.d.ts +3 -0
- package/dist/runners/opencode/config-files.js +15 -0
- package/dist/runners/opencode/config-files.js.map +1 -1
- package/dist/runners/opencode/definition.js +4 -2
- package/dist/runners/opencode/definition.js.map +1 -1
- package/dist/runners/opencode/display.d.ts +11 -0
- package/dist/runners/opencode/display.js +12 -0
- package/dist/runners/opencode/display.js.map +1 -0
- package/dist/runners/opencode/models.js +2 -0
- package/dist/runners/opencode/models.js.map +1 -1
- package/dist/runners/pi/config-files.d.ts +3 -0
- package/dist/runners/pi/config-files.js +16 -0
- package/dist/runners/pi/config-files.js.map +1 -1
- package/dist/runners/pi/definition.js +4 -2
- package/dist/runners/pi/definition.js.map +1 -1
- package/dist/runners/pi/display.d.ts +12 -0
- package/dist/runners/pi/display.js +13 -0
- package/dist/runners/pi/display.js.map +1 -0
- package/dist/runners/pi/models.js +2 -0
- package/dist/runners/pi/models.js.map +1 -1
- package/dist/runs/legacy-run-rows.d.ts +24 -4
- package/dist/runs/legacy-run-rows.js +104 -29
- package/dist/runs/legacy-run-rows.js.map +1 -1
- package/dist/runs/run-exits.d.ts +16 -16
- package/dist/runs/store.d.ts +8 -35
- package/dist/runs/store.js +20 -21
- package/dist/runs/store.js.map +1 -1
- package/dist/server/activity-routes.d.ts +2 -2
- package/dist/server/open-in-targets.js +2 -2
- package/dist/server/open-in-targets.js.map +1 -1
- package/dist/server/provider-action-gate.d.ts +5 -2
- package/dist/server/provider-action-gate.js +9 -6
- package/dist/server/provider-action-gate.js.map +1 -1
- package/dist/server/provider-auth-runtime.js +2 -2
- package/dist/server/provider-auth-runtime.js.map +1 -1
- package/dist/server/reports-api.d.ts +2 -2
- package/dist/server/runner-skills.js +3 -1
- package/dist/server/runner-skills.js.map +1 -1
- package/dist/server/runners-routes.d.ts +51 -0
- package/dist/server/runners-routes.js +23 -0
- package/dist/server/runners-routes.js.map +1 -0
- package/dist/server/server-deps.d.ts +2 -1
- package/dist/server/server-deps.js +1 -3
- package/dist/server/server-deps.js.map +1 -1
- package/dist/server/server.d.ts +377 -463
- package/dist/server/server.js +34 -31
- package/dist/server/server.js.map +1 -1
- package/dist/server/start-run-options.d.ts +3 -1
- package/dist/server/start-run-options.js +2 -1
- package/dist/server/start-run-options.js.map +1 -1
- package/dist/server/validators.d.ts +6 -3
- package/dist/server/validators.js +21 -12
- package/dist/server/validators.js.map +1 -1
- package/dist/server/workspace-config-patch.js +2 -1
- package/dist/server/workspace-config-patch.js.map +1 -1
- package/dist/server/workspace-live-routes.d.ts +6 -6
- package/dist/workflows/continuation-admission.d.ts +3 -3
- package/dist/workflows/continuation-admission.js +2 -2
- package/dist/workflows/continuation-admission.js.map +1 -1
- package/dist/workflows/load.js +8 -0
- package/dist/workflows/load.js.map +1 -1
- package/dist/workflows/run/launch-read-resolver.d.ts +8 -8
- package/dist/workflows/run/launch-read-resolver.js +6 -6
- package/dist/workflows/run/launch-read-resolver.js.map +1 -1
- package/dist/workflows/run/queued-revival.d.ts +1 -1
- package/dist/workflows/run/queued-revival.js +5 -0
- package/dist/workflows/run/queued-revival.js.map +1 -1
- package/dist/workflows/run/run-line.d.ts +3 -0
- package/dist/workflows/run/run-line.js +11 -7
- package/dist/workflows/run/run-line.js.map +1 -1
- package/dist/workflows/run/usage-accounting.js +2 -2
- package/dist/workflows/run/usage-accounting.js.map +1 -1
- package/dist/workflows/run/wait-engine.d.ts +3 -3
- package/dist/workflows/run-scheduling.js +3 -3
- package/dist/workflows/run-scheduling.js.map +1 -1
- package/dist/workflows/run.d.ts +1 -1
- package/package.json +4 -4
- package/web/dist/assets/activity-motion-C3PyGX1i.js +2 -0
- package/web/dist/assets/{activity-route-CYetaRaf.js → activity-route-CBE9suPx.js} +1 -1
- package/web/dist/assets/attention-BOjuMCaW.js +1 -0
- package/web/dist/assets/{commit-diff-panel-D5MXcWp1.js → commit-diff-panel-BHLfoc5K.js} +1 -1
- package/web/dist/assets/diff-CPP5-PAO.js +3 -0
- package/web/dist/assets/{diff-view-De-FaJNL.js → diff-view-pVNE2LKd.js} +4 -4
- package/web/dist/assets/{file-preview-XuT7ByQJ.js → file-preview-Dnl25_Yq.js} +2 -2
- package/web/dist/assets/{git-toolbar-Cnxtcw27.js → git-toolbar-B8j0rXz_.js} +1 -1
- package/web/dist/assets/{github-4ugOBSSl.js → github-Bk_W_P7M.js} +1 -1
- package/web/dist/assets/{global-activity-route-B0RZF0VZ.js → global-activity-route-B3Bg4j74.js} +1 -1
- package/web/dist/assets/index-BUcVG7uX.js +14 -0
- package/web/dist/assets/{markdown-D9-0R3BD.js → markdown-DZFo50wI.js} +3 -3
- package/web/dist/assets/picker-pill-Bhsrt_K5.js +15 -0
- package/web/dist/assets/preview-pane-connected-B887FUPw.js +3 -0
- package/web/dist/assets/{project-router-D7rZ5E-b.js → project-router-lPPUPPDI.js} +1 -1
- package/web/dist/assets/project-scope-context-Xjbxntpg.js +4 -0
- package/web/dist/assets/prompt-template-menu-Cl8ES_lT.js +1 -0
- package/web/dist/assets/queries-D5f-3moU.js +1 -0
- package/web/dist/assets/{reference-chip-BEkQoiWt.js → reference-chip-BPdU-pFz.js} +1 -1
- package/web/dist/assets/repo-git-DkdZ-lHF.js +1 -0
- package/web/dist/assets/{report-reader-Buf2_ONr.js → report-reader-ClrhPnHJ.js} +1 -1
- package/web/dist/assets/{reports-bWP2ZBOP.js → reports-CNDxM3-h.js} +1 -1
- package/web/dist/assets/run-header-CGu_4msV.js +2 -0
- package/web/dist/assets/runners-Dc2_oqXR.js +1 -0
- package/web/dist/assets/skills-rESbVzy9.js +1 -0
- package/web/dist/assets/{tab-link-C_n2wSwD.js → tab-link-rmg3phtM.js} +1 -1
- package/web/dist/assets/task-changes-BqMvI8iD.js +1 -0
- package/web/dist/assets/{task-commits-4ClywWZW.js → task-commits-B0vE6rWz.js} +1 -1
- package/web/dist/assets/{task-files-DIQ_8hh_.js → task-files-5YPOAXtn.js} +1 -1
- package/web/dist/assets/{task-github-item-D4zs5cvm.js → task-github-item-D6VreAoa.js} +1 -1
- package/web/dist/assets/task-thread-DO2BE7tp.js +9 -0
- package/web/dist/assets/thread-state-Cn5cetra.js +4 -0
- package/web/dist/assets/{use-desktop-Dq3Z-pSO.js → use-desktop-R2WTomyJ.js} +1 -1
- package/web/dist/assets/use-hand-to-agent-state-B277xMq3.js +1 -0
- package/web/dist/assets/{useInfiniteQuery-BiIzSoTr.js → useInfiniteQuery-C05yR_S9.js} +1 -1
- package/web/dist/assets/useQuery-7jNqNIJb.js +1 -0
- package/web/dist/assets/{workflows-DX9Mpt9Q.js → workflows-fZms9I7r.js} +3 -3
- package/web/dist/assets/{ws-B3I-G6Q4.js → ws-wEXmfalm.js} +1 -1
- package/web/dist/index.html +13 -14
- package/dist/contract/runner-facts.d.ts +0 -51
- package/web/dist/assets/activity-motion-mnPv6Dpn.js +0 -2
- package/web/dist/assets/agent-accounts-9EM12D_s.js +0 -1
- package/web/dist/assets/attention-DjHSGsbe.js +0 -1
- package/web/dist/assets/diff-CbzFxE4W.js +0 -3
- package/web/dist/assets/index-S6DMaCB8.js +0 -14
- package/web/dist/assets/picker-pill-CFcrs68V.js +0 -15
- package/web/dist/assets/preview-pane-connected-B1Eo_Q-v.js +0 -3
- package/web/dist/assets/project-scope-context-DYV7r53s.js +0 -4
- package/web/dist/assets/prompt-template-menu-DYoBkQJP.js +0 -1
- package/web/dist/assets/queries-Bp7cia4e.js +0 -1
- package/web/dist/assets/repo-git-CPKuF-zu.js +0 -1
- package/web/dist/assets/run-header-masTwuK9.js +0 -2
- package/web/dist/assets/runner-facts-BpvNgJqf.js +0 -1
- package/web/dist/assets/skills-BUL45j_L.js +0 -1
- package/web/dist/assets/task-changes-rmp95PMX.js +0 -1
- package/web/dist/assets/task-thread-CdBfevnO.js +0 -9
- package/web/dist/assets/thread-state-3Um_4g0a.js +0 -4
- package/web/dist/assets/use-hand-to-agent-state-BxJSA8sR.js +0 -1
- package/web/dist/assets/useQuery-BfBOHv1O.js +0 -1
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { encodeRunRow } from './run-row.js';
|
|
2
2
|
import { upgradeLegacyWaits } from './legacy-waits.js';
|
|
3
|
+
import { LEGACY_RUNNER_IDS, knownRunnerIds, savedRunnerRegistration } from '../core/runner-registry.js';
|
|
3
4
|
/** The read-time upgrades of a stored record, in place, before the schema reads it. */
|
|
4
5
|
export function upgradeLegacyRunRow(row) {
|
|
5
6
|
upgradeLegacyWaits(row);
|
|
@@ -9,56 +10,129 @@ export function upgradeLegacyRunRow(row) {
|
|
|
9
10
|
}
|
|
10
11
|
/** Runners Squawk no longer ships (hearsay-tools/squawk#3715). A run saved on one still opens,
|
|
11
12
|
* lists and shows its transcript. */
|
|
12
|
-
const REMOVED_RUNNER_IDS = ['cursor'];
|
|
13
|
-
function
|
|
14
|
-
|
|
13
|
+
export const REMOVED_RUNNER_IDS = ['cursor'];
|
|
14
|
+
function removalOf(value) {
|
|
15
|
+
if (typeof value !== 'string')
|
|
16
|
+
return undefined;
|
|
17
|
+
if (REMOVED_RUNNER_IDS.includes(value))
|
|
18
|
+
return 'retired';
|
|
19
|
+
return LEGACY_RUNNER_IDS.has(value) || savedRunnerRegistration(value) !== false ? undefined : 'unregistered';
|
|
20
|
+
}
|
|
21
|
+
/** Whether a run's `removedRunner` names a runner that this process did not register, not a retired
|
|
22
|
+
* one: such a run waits, untouched, for a process that registers its runner. */
|
|
23
|
+
export function waitsForUnregisteredRunner(run) {
|
|
24
|
+
return run.removedRunner !== undefined && !REMOVED_RUNNER_IDS.includes(run.removedRunner);
|
|
25
|
+
}
|
|
26
|
+
/** Whether a saved runner id parses: a legacy id, a registered id, or, in a process that registered
|
|
27
|
+
* no runner, a built-in id. */
|
|
28
|
+
export function readableSavedRunner(id) {
|
|
29
|
+
return LEGACY_RUNNER_IDS.has(id) || knownRunnerIds().includes(id);
|
|
30
|
+
}
|
|
31
|
+
/** The fields each fold of an unregistered runner removed, keyed by the row it read. */
|
|
32
|
+
const keptFields = new WeakMap();
|
|
33
|
+
/** Whether a removed runner id that a row stored names a runner this process registered. */
|
|
34
|
+
function registeredAgain(value) {
|
|
35
|
+
return typeof value === 'string' && !REMOVED_RUNNER_IDS.includes(value) && savedRunnerRegistration(value) === true;
|
|
36
|
+
}
|
|
37
|
+
/** A `removedRunner` or `removedBackend` that names a runner registered again reads as before. */
|
|
38
|
+
function clearRegisteredAgain(row) {
|
|
39
|
+
if (registeredAgain(row.removedRunner))
|
|
40
|
+
delete row.removedRunner;
|
|
41
|
+
for (const step of records(row.steps))
|
|
42
|
+
if (registeredAgain(step.removedBackend))
|
|
43
|
+
delete step.removedBackend;
|
|
15
44
|
}
|
|
16
45
|
/**
|
|
17
46
|
* A run saved on a removed runner, or with any step or workflow-definition step on one, is read as
|
|
18
47
|
* `removedRunner`; a removed `runner` is cleared. Its steps on that runner keep no backend and no
|
|
19
48
|
* session, only `removedBackend`, so a Continue knows that step holds the latest work and opens a
|
|
20
49
|
* new session for it. A definition step on that runner keeps its prompt, skill and checks, and
|
|
21
|
-
* loses the runner and the model, effort and account that belonged to it.
|
|
22
|
-
* row stores the fold
|
|
50
|
+
* loses the runner and the model, effort and account that belonged to it. For a retired runner the
|
|
51
|
+
* next write of the row stores the fold; for an unregistered one it puts the removed fields back
|
|
52
|
+
* (`withKeptFields`), where the write has not set them.
|
|
23
53
|
*/
|
|
24
54
|
export function upgradeRemovedRunner(row) {
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
55
|
+
clearRegisteredAgain(row);
|
|
56
|
+
const kept = [];
|
|
57
|
+
const drop = (target, keys, path, removal) => {
|
|
58
|
+
for (const key of keys) {
|
|
59
|
+
if (target[key] === undefined)
|
|
60
|
+
continue;
|
|
61
|
+
if (removal === 'unregistered')
|
|
62
|
+
kept.push({ path: [...path, key], value: target[key] });
|
|
63
|
+
delete target[key];
|
|
64
|
+
}
|
|
65
|
+
};
|
|
66
|
+
// Runners whose fold a write already stored on a step: see the step loop below.
|
|
67
|
+
const stored = new Set(records(row.steps).map(step => step.removedBackend));
|
|
68
|
+
const rowRemoval = removalOf(row.runner);
|
|
69
|
+
let removed = rowRemoval ? row.runner : undefined;
|
|
70
|
+
if (rowRemoval)
|
|
71
|
+
drop(row, ['runner'], [], rowRemoval);
|
|
72
|
+
records(row.steps).forEach((step, index) => {
|
|
73
|
+
const removal = removalOf(step.backend);
|
|
74
|
+
if (!removal)
|
|
75
|
+
return;
|
|
76
|
+
// A step that a write already stored as folded marks no run: a Continue on another runner
|
|
77
|
+
// cleared the run's mark, as it clears it for a retired runner, whose fold leaves no backend.
|
|
78
|
+
if (removal === 'retired' || !stored.has(step.backend))
|
|
79
|
+
removed ??= step.backend;
|
|
32
80
|
step.removedBackend = step.backend;
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
delete step.sessionTransport;
|
|
36
|
-
}
|
|
81
|
+
drop(step, ['backend', 'sessionId', 'sessionTransport'], ['steps', index], removal);
|
|
82
|
+
});
|
|
37
83
|
const definition = row.workflowDef;
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
84
|
+
records(definition && typeof definition === 'object' ? definition.steps : undefined).forEach((step, index) => {
|
|
85
|
+
const removal = removalOf(step.runner);
|
|
86
|
+
if (!removal)
|
|
87
|
+
return;
|
|
88
|
+
if (removal === 'retired' || !stored.has(step.runner))
|
|
89
|
+
removed ??= step.runner;
|
|
90
|
+
drop(step, ['runner', 'model', 'effort', 'agentProfile'], ['workflowDef', 'steps', index], removal);
|
|
91
|
+
});
|
|
45
92
|
if (removed !== undefined && row.removedRunner === undefined)
|
|
46
93
|
row.removedRunner = removed;
|
|
94
|
+
if (kept.length > 0)
|
|
95
|
+
keptFields.set(row, kept);
|
|
47
96
|
}
|
|
48
|
-
/**
|
|
97
|
+
/**
|
|
98
|
+
* `onto` (by default `raw` itself) with the fields that the fold of `raw`, an unregistered runner's
|
|
99
|
+
* row, removed put back: for the raw extras of its row (raw-record.ts), so the next write keeps
|
|
100
|
+
* them unless it sets them itself, and for the stored JSON of an imported `runs.json` entry. `onto`
|
|
101
|
+
* itself when no such fold ran.
|
|
102
|
+
*/
|
|
103
|
+
export function withKeptFields(raw, onto = raw) {
|
|
104
|
+
const kept = raw && typeof raw === 'object' ? keptFields.get(raw) : undefined;
|
|
105
|
+
if (!kept)
|
|
106
|
+
return onto;
|
|
107
|
+
const copy = structuredClone(onto);
|
|
108
|
+
for (const { path, value } of kept) {
|
|
109
|
+
let target = copy;
|
|
110
|
+
for (const key of path.slice(0, -1))
|
|
111
|
+
target = target && typeof target === 'object' ? target[key] : undefined;
|
|
112
|
+
if (target && typeof target === 'object')
|
|
113
|
+
target[path.at(-1)] = value;
|
|
114
|
+
}
|
|
115
|
+
return copy;
|
|
116
|
+
}
|
|
117
|
+
/** A settled row's stored summary skips the record parse; it folds the same way, and a runner that
|
|
118
|
+
* is registered again reads as before. */
|
|
49
119
|
export function upgradeRemovedRunnerSummary(row) {
|
|
50
|
-
if (
|
|
120
|
+
if (row.runner === undefined && registeredAgain(row.removedRunner)) {
|
|
121
|
+
row.runner = row.removedRunner;
|
|
122
|
+
delete row.removedRunner;
|
|
123
|
+
}
|
|
124
|
+
if (removalOf(row.currentStepBackend))
|
|
51
125
|
delete row.currentStepBackend;
|
|
52
|
-
if (!
|
|
126
|
+
if (!removalOf(row.runner))
|
|
53
127
|
return;
|
|
54
128
|
if (row.removedRunner === undefined)
|
|
55
129
|
row.removedRunner = row.runner;
|
|
56
130
|
delete row.runner;
|
|
57
131
|
}
|
|
58
|
-
/** A saved worker-result snapshot names the runner the worker ran on; a
|
|
132
|
+
/** A saved worker-result snapshot names the runner the worker ran on; a retired one is dropped. */
|
|
59
133
|
export function upgradeRemovedRunnerResult(file) {
|
|
60
134
|
const result = file && typeof file === 'object' ? file.result : undefined;
|
|
61
|
-
if (result && typeof result === 'object' &&
|
|
135
|
+
if (result && typeof result === 'object' && removalOf(result.backend) === 'retired') {
|
|
62
136
|
delete result.backend;
|
|
63
137
|
}
|
|
64
138
|
return file;
|
|
@@ -130,7 +204,8 @@ export function legacyIndexRows(bytes, parse) {
|
|
|
130
204
|
continue;
|
|
131
205
|
}
|
|
132
206
|
const run = parsed.data[0];
|
|
133
|
-
|
|
207
|
+
// The shallow copy shares nested steps with the parsed entry: put back what the fold removed.
|
|
208
|
+
rows.set(run.id, encodeRunRow(run, JSON.stringify(withKeptFields(entry, stored))));
|
|
134
209
|
}
|
|
135
210
|
return { rows: [...rows.values()], skipped, total: raw.length };
|
|
136
211
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"legacy-run-rows.js","sourceRoot":"","sources":["../../src/runs/legacy-run-rows.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,YAAY,EAAE,MAAM,cAAc,CAAC;AAC5C,OAAO,EAAE,kBAAkB,EAAE,MAAM,mBAAmB,CAAC;
|
|
1
|
+
{"version":3,"file":"legacy-run-rows.js","sourceR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E,GAAG,CAAC,MAAM,EAAE,CAAC;AAClE,CAAC"}
|
package/dist/runs/run-exits.d.ts
CHANGED
|
@@ -653,7 +653,7 @@ export declare const RUN_EXITS: {
|
|
|
653
653
|
model?: string | undefined;
|
|
654
654
|
effort?: string | undefined;
|
|
655
655
|
modelIdentity?: string | undefined;
|
|
656
|
-
runner?:
|
|
656
|
+
runner?: string | undefined;
|
|
657
657
|
removedRunner?: string | undefined;
|
|
658
658
|
agentProfile?: string | undefined;
|
|
659
659
|
systemPrompt?: string | undefined;
|
|
@@ -771,7 +771,7 @@ export declare const RUN_EXITS: {
|
|
|
771
771
|
model?: string | undefined;
|
|
772
772
|
effort?: string | undefined;
|
|
773
773
|
timeoutMs?: number | undefined;
|
|
774
|
-
runner?:
|
|
774
|
+
runner?: string | undefined;
|
|
775
775
|
agentProfile?: string | undefined;
|
|
776
776
|
allowedTools?: string[] | undefined;
|
|
777
777
|
bashAllowlist?: string[] | undefined;
|
|
@@ -1393,7 +1393,7 @@ export declare const RUN_EXITS: {
|
|
|
1393
1393
|
model?: string | undefined;
|
|
1394
1394
|
effort?: string | undefined;
|
|
1395
1395
|
modelIdentity?: string | undefined;
|
|
1396
|
-
runner?:
|
|
1396
|
+
runner?: string | undefined;
|
|
1397
1397
|
removedRunner?: string | undefined;
|
|
1398
1398
|
agentProfile?: string | undefined;
|
|
1399
1399
|
systemPrompt?: string | undefined;
|
|
@@ -1512,7 +1512,7 @@ export declare const RUN_EXITS: {
|
|
|
1512
1512
|
model?: string | undefined;
|
|
1513
1513
|
effort?: string | undefined;
|
|
1514
1514
|
timeoutMs?: number | undefined;
|
|
1515
|
-
runner?:
|
|
1515
|
+
runner?: string | undefined;
|
|
1516
1516
|
agentProfile?: string | undefined;
|
|
1517
1517
|
allowedTools?: string[] | undefined;
|
|
1518
1518
|
bashAllowlist?: string[] | undefined;
|
|
@@ -2556,7 +2556,7 @@ export declare const RUN_EXITS: {
|
|
|
2556
2556
|
model?: string | undefined;
|
|
2557
2557
|
effort?: string | undefined;
|
|
2558
2558
|
modelIdentity?: string | undefined;
|
|
2559
|
-
runner?:
|
|
2559
|
+
runner?: string | undefined;
|
|
2560
2560
|
removedRunner?: string | undefined;
|
|
2561
2561
|
agentProfile?: string | undefined;
|
|
2562
2562
|
systemPrompt?: string | undefined;
|
|
@@ -2684,7 +2684,7 @@ export declare const RUN_EXITS: {
|
|
|
2684
2684
|
finishedAt?: string | undefined;
|
|
2685
2685
|
error?: string | undefined;
|
|
2686
2686
|
sessionId?: string | undefined;
|
|
2687
|
-
backend?:
|
|
2687
|
+
backend?: string | undefined;
|
|
2688
2688
|
removedBackend?: string | undefined;
|
|
2689
2689
|
profileId?: string | undefined;
|
|
2690
2690
|
skillPath?: string | undefined;
|
|
@@ -2703,7 +2703,7 @@ export declare const RUN_EXITS: {
|
|
|
2703
2703
|
model?: string | undefined;
|
|
2704
2704
|
effort?: string | undefined;
|
|
2705
2705
|
timeoutMs?: number | undefined;
|
|
2706
|
-
runner?:
|
|
2706
|
+
runner?: string | undefined;
|
|
2707
2707
|
agentProfile?: string | undefined;
|
|
2708
2708
|
allowedTools?: string[] | undefined;
|
|
2709
2709
|
bashAllowlist?: string[] | undefined;
|
|
@@ -3646,7 +3646,7 @@ export declare const RUN_EXITS: {
|
|
|
3646
3646
|
model?: string | undefined;
|
|
3647
3647
|
effort?: string | undefined;
|
|
3648
3648
|
modelIdentity?: string | undefined;
|
|
3649
|
-
runner?:
|
|
3649
|
+
runner?: string | undefined;
|
|
3650
3650
|
removedRunner?: string | undefined;
|
|
3651
3651
|
agentProfile?: string | undefined;
|
|
3652
3652
|
systemPrompt?: string | undefined;
|
|
@@ -3771,7 +3771,7 @@ export declare const RUN_EXITS: {
|
|
|
3771
3771
|
finishedAt?: string | undefined;
|
|
3772
3772
|
error?: string | undefined;
|
|
3773
3773
|
sessionId?: string | undefined;
|
|
3774
|
-
backend?:
|
|
3774
|
+
backend?: string | undefined;
|
|
3775
3775
|
removedBackend?: string | undefined;
|
|
3776
3776
|
profileId?: string | undefined;
|
|
3777
3777
|
skillPath?: string | undefined;
|
|
@@ -3790,7 +3790,7 @@ export declare const RUN_EXITS: {
|
|
|
3790
3790
|
model?: string | undefined;
|
|
3791
3791
|
effort?: string | undefined;
|
|
3792
3792
|
timeoutMs?: number | undefined;
|
|
3793
|
-
runner?:
|
|
3793
|
+
runner?: string | undefined;
|
|
3794
3794
|
agentProfile?: string | undefined;
|
|
3795
3795
|
allowedTools?: string[] | undefined;
|
|
3796
3796
|
bashAllowlist?: string[] | undefined;
|
|
@@ -4750,7 +4750,7 @@ export declare const RUN_EXITS: {
|
|
|
4750
4750
|
model?: string | undefined;
|
|
4751
4751
|
effort?: string | undefined;
|
|
4752
4752
|
modelIdentity?: string | undefined;
|
|
4753
|
-
runner?:
|
|
4753
|
+
runner?: string | undefined;
|
|
4754
4754
|
removedRunner?: string | undefined;
|
|
4755
4755
|
agentProfile?: string | undefined;
|
|
4756
4756
|
systemPrompt?: string | undefined;
|
|
@@ -4878,7 +4878,7 @@ export declare const RUN_EXITS: {
|
|
|
4878
4878
|
finishedAt?: string | undefined;
|
|
4879
4879
|
error?: string | undefined;
|
|
4880
4880
|
sessionId?: string | undefined;
|
|
4881
|
-
backend?:
|
|
4881
|
+
backend?: string | undefined;
|
|
4882
4882
|
removedBackend?: string | undefined;
|
|
4883
4883
|
profileId?: string | undefined;
|
|
4884
4884
|
skillPath?: string | undefined;
|
|
@@ -4897,7 +4897,7 @@ export declare const RUN_EXITS: {
|
|
|
4897
4897
|
model?: string | undefined;
|
|
4898
4898
|
effort?: string | undefined;
|
|
4899
4899
|
timeoutMs?: number | undefined;
|
|
4900
|
-
runner?:
|
|
4900
|
+
runner?: string | undefined;
|
|
4901
4901
|
agentProfile?: string | undefined;
|
|
4902
4902
|
allowedTools?: string[] | undefined;
|
|
4903
4903
|
bashAllowlist?: string[] | undefined;
|
|
@@ -5848,7 +5848,7 @@ export declare const RUN_EXITS: {
|
|
|
5848
5848
|
model?: string | undefined;
|
|
5849
5849
|
effort?: string | undefined;
|
|
5850
5850
|
modelIdentity?: string | undefined;
|
|
5851
|
-
runner?:
|
|
5851
|
+
runner?: string | undefined;
|
|
5852
5852
|
removedRunner?: string | undefined;
|
|
5853
5853
|
agentProfile?: string | undefined;
|
|
5854
5854
|
systemPrompt?: string | undefined;
|
|
@@ -5976,7 +5976,7 @@ export declare const RUN_EXITS: {
|
|
|
5976
5976
|
finishedAt?: string | undefined;
|
|
5977
5977
|
error?: string | undefined;
|
|
5978
5978
|
sessionId?: string | undefined;
|
|
5979
|
-
backend?:
|
|
5979
|
+
backend?: string | undefined;
|
|
5980
5980
|
removedBackend?: string | undefined;
|
|
5981
5981
|
profileId?: string | undefined;
|
|
5982
5982
|
skillPath?: string | undefined;
|
|
@@ -5995,7 +5995,7 @@ export declare const RUN_EXITS: {
|
|
|
5995
5995
|
model?: string | undefined;
|
|
5996
5996
|
effort?: string | undefined;
|
|
5997
5997
|
timeoutMs?: number | undefined;
|
|
5998
|
-
runner?:
|
|
5998
|
+
runner?: string | undefined;
|
|
5999
5999
|
agentProfile?: string | undefined;
|
|
6000
6000
|
allowedTools?: string[] | undefined;
|
|
6001
6001
|
bashAllowlist?: string[] | undefined;
|
package/dist/runs/store.d.ts
CHANGED
|
@@ -17,7 +17,7 @@ import { type OutcomeDependencies, type OutcomeReceipt, type RunOutcome } from '
|
|
|
17
17
|
import { type ExitCall, type RunExitId, type RunPatch } from './run-exits.ts';
|
|
18
18
|
import { type ConversationIdentity } from './conversation-identity.ts';
|
|
19
19
|
export { ConversationIdInUseError } from './conversation-identity.ts';
|
|
20
|
-
import {
|
|
20
|
+
import type { RunnerId } from '../core/agent-runner.ts';
|
|
21
21
|
import { RunDatabase, type RunDatabaseChanges, type RunDatabaseCommit } from './run-database.ts';
|
|
22
22
|
import { type BranchOwner } from './branch-owners.ts';
|
|
23
23
|
export { ciWaitEntry, holdsWorkerWait, upgradeLegacyWaits, workerWaitEntry } from './legacy-waits.ts';
|
|
@@ -64,14 +64,7 @@ declare const stepStateSchema: z.ZodObject<{
|
|
|
64
64
|
costUsd: z.ZodOptional<z.ZodNumber>;
|
|
65
65
|
synthetic: z.ZodOptional<z.ZodLiteral<"continuation">>;
|
|
66
66
|
continuesStepId: z.ZodOptional<z.ZodString>;
|
|
67
|
-
backend: z.ZodOptional<z.ZodPipe<z.
|
|
68
|
-
claude: "claude";
|
|
69
|
-
"claude-cli": "claude-cli";
|
|
70
|
-
codex: "codex";
|
|
71
|
-
omp: "omp";
|
|
72
|
-
opencode: "opencode";
|
|
73
|
-
pi: "pi";
|
|
74
|
-
}>, z.ZodTransform<"claude" | "codex" | "omp" | "opencode" | "pi", "claude" | "claude-cli" | "codex" | "omp" | "opencode" | "pi">>>;
|
|
67
|
+
backend: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>>;
|
|
75
68
|
}, z.core.$strip>;
|
|
76
69
|
/** Exported for `./run-index.ts`, the read-only reader of the same records. Nothing else should
|
|
77
70
|
* parse a stored run — see `reconcileLoadedRun` for why a second parser is a correctness risk. */
|
|
@@ -1875,14 +1868,7 @@ export declare const runRecordSchema: z.ZodObject<{
|
|
|
1875
1868
|
lastWaitsError: z.ZodCatch<z.ZodOptional<z.ZodString>>;
|
|
1876
1869
|
automaticWakes: z.ZodCatch<z.ZodOptional<z.ZodNumber>>;
|
|
1877
1870
|
waitDeliveryFailures: z.ZodCatch<z.ZodOptional<z.ZodNumber>>;
|
|
1878
|
-
runner: z.ZodOptional<z.ZodPipe<z.
|
|
1879
|
-
claude: "claude";
|
|
1880
|
-
"claude-cli": "claude-cli";
|
|
1881
|
-
codex: "codex";
|
|
1882
|
-
omp: "omp";
|
|
1883
|
-
opencode: "opencode";
|
|
1884
|
-
pi: "pi";
|
|
1885
|
-
}>, z.ZodTransform<"claude" | "codex" | "omp" | "opencode" | "pi", "claude" | "claude-cli" | "codex" | "omp" | "opencode" | "pi">>>;
|
|
1871
|
+
runner: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>>;
|
|
1886
1872
|
notify: z.ZodCatch<z.ZodOptional<z.ZodBoolean>>;
|
|
1887
1873
|
webhook: z.ZodCatch<z.ZodOptional<z.ZodObject<{
|
|
1888
1874
|
lastDeliveredAt: z.ZodOptional<z.ZodString>;
|
|
@@ -1955,13 +1941,7 @@ export declare const runRecordSchema: z.ZodObject<{
|
|
|
1955
1941
|
model: z.ZodOptional<z.ZodString>;
|
|
1956
1942
|
effort: z.ZodOptional<z.ZodString>;
|
|
1957
1943
|
timeoutMs: z.ZodOptional<z.ZodNumber>;
|
|
1958
|
-
runner: z.ZodOptional<z.
|
|
1959
|
-
claude: "claude";
|
|
1960
|
-
codex: "codex";
|
|
1961
|
-
omp: "omp";
|
|
1962
|
-
opencode: "opencode";
|
|
1963
|
-
pi: "pi";
|
|
1964
|
-
}>>;
|
|
1944
|
+
runner: z.ZodOptional<z.ZodString>;
|
|
1965
1945
|
agentProfile: z.ZodOptional<z.ZodString>;
|
|
1966
1946
|
allowedTools: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1967
1947
|
bashAllowlist: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
@@ -2014,14 +1994,7 @@ export declare const runRecordSchema: z.ZodObject<{
|
|
|
2014
1994
|
costUsd: z.ZodOptional<z.ZodNumber>;
|
|
2015
1995
|
synthetic: z.ZodOptional<z.ZodLiteral<"continuation">>;
|
|
2016
1996
|
continuesStepId: z.ZodOptional<z.ZodString>;
|
|
2017
|
-
backend: z.ZodOptional<z.ZodPipe<z.
|
|
2018
|
-
claude: "claude";
|
|
2019
|
-
"claude-cli": "claude-cli";
|
|
2020
|
-
codex: "codex";
|
|
2021
|
-
omp: "omp";
|
|
2022
|
-
opencode: "opencode";
|
|
2023
|
-
pi: "pi";
|
|
2024
|
-
}>, z.ZodTransform<"claude" | "codex" | "omp" | "opencode" | "pi", "claude" | "claude-cli" | "codex" | "omp" | "opencode" | "pi">>>;
|
|
1997
|
+
backend: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>>;
|
|
2025
1998
|
}, z.core.$strip>>;
|
|
2026
1999
|
automation: z.ZodOptional<z.ZodObject<{
|
|
2027
2000
|
automationId: z.ZodString;
|
|
@@ -3024,7 +2997,7 @@ export declare function parseRunRecords(raw: unknown): z.ZodSafeParseResult<{
|
|
|
3024
2997
|
lastWaitsError?: string | undefined;
|
|
3025
2998
|
automaticWakes?: number | undefined;
|
|
3026
2999
|
waitDeliveryFailures?: number | undefined;
|
|
3027
|
-
runner?:
|
|
3000
|
+
runner?: string | undefined;
|
|
3028
3001
|
notify?: boolean | undefined;
|
|
3029
3002
|
webhook?: {
|
|
3030
3003
|
lastDeliveredAt?: string | undefined;
|
|
@@ -3080,7 +3053,7 @@ export declare function parseRunRecords(raw: unknown): z.ZodSafeParseResult<{
|
|
|
3080
3053
|
model?: string | undefined;
|
|
3081
3054
|
effort?: string | undefined;
|
|
3082
3055
|
timeoutMs?: number | undefined;
|
|
3083
|
-
runner?:
|
|
3056
|
+
runner?: string | undefined;
|
|
3084
3057
|
agentProfile?: string | undefined;
|
|
3085
3058
|
allowedTools?: string[] | undefined;
|
|
3086
3059
|
bashAllowlist?: string[] | undefined;
|
|
@@ -3118,7 +3091,7 @@ export declare function parseRunRecords(raw: unknown): z.ZodSafeParseResult<{
|
|
|
3118
3091
|
costUsd?: number | undefined;
|
|
3119
3092
|
synthetic?: "continuation" | undefined;
|
|
3120
3093
|
continuesStepId?: string | undefined;
|
|
3121
|
-
backend?:
|
|
3094
|
+
backend?: string | undefined;
|
|
3122
3095
|
}[];
|
|
3123
3096
|
automation?: {
|
|
3124
3097
|
automationId: string;
|
package/dist/runs/store.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { legacyIndexRows, upgradeLegacyRunRow, upgradeRemovedRunnerResult } from './legacy-run-rows.js';
|
|
1
|
+
import { legacyIndexRows, readableSavedRunner, upgradeLegacyRunRow, upgradeRemovedRunnerResult, withKeptFields } from './legacy-run-rows.js';
|
|
2
2
|
import { dataReadDirs, runDataDir } from '../project-paths.js';
|
|
3
3
|
import { addRunSource, copyFallbackFamily, fallbackRunSource, bindWorkerResultPath, fallbackRunDeleteError, workerResultsDirectory } from './project-run-sources.js';
|
|
4
4
|
import { productEnv } from '../core/product-env.js';
|
|
@@ -50,8 +50,7 @@ import { ISSUE_URL_RE, namesForeignReference, originatingIssue, refUrlNumber, re
|
|
|
50
50
|
import { applyExit, doneCommits, exitDurability, RUN_EXITS } from './run-exits.js';
|
|
51
51
|
import { assertConversationIdFree } from './conversation-identity.js';
|
|
52
52
|
export { ConversationIdInUseError } from './conversation-identity.js';
|
|
53
|
-
import {
|
|
54
|
-
import { runnerIdOf } from '../core/runner-registry.js';
|
|
53
|
+
import { LEGACY_RUNNER_IDS } from '../core/runner-registry.js';
|
|
55
54
|
import { ARCHIVED_ROOT, RUNS_DB_FILE, RUNS_IMPORT_COMPLETE_KEY, RunConflictError, RunDatabase, RunDatabaseBusyError, } from './run-database.js';
|
|
56
55
|
import { listBranchOwners } from './branch-owners.js';
|
|
57
56
|
import { guardedJsonSql } from './guarded-json-sql.js';
|
|
@@ -73,26 +72,26 @@ import { supervisedWorkers } from './supervised.js';
|
|
|
73
72
|
import { claimOwnerLive, closeClaimSession, familyKey, foreignClaimedRunIds, liveForeignClaimedRunIds, openClaimSession, rowFamily } from './run-claims.js';
|
|
74
73
|
import { assertProjectWritable, projectWriteRefused } from '../server/cockpit-ownership.js';
|
|
75
74
|
/**
|
|
76
|
-
* A runner id as it may appear in a PERSISTED record,
|
|
77
|
-
* ids the rest of Squawk speaks (#547).
|
|
75
|
+
* A runner id as it may appear in a PERSISTED record (#547), spec 2026-11-18-runner-definitions.
|
|
78
76
|
*
|
|
79
|
-
* `claude-cli` is the legacy spelling of `claude
|
|
80
|
-
* `
|
|
81
|
-
*
|
|
82
|
-
* WHOLE array, so one record carrying it would have dropped every run in the
|
|
83
|
-
* file.
|
|
77
|
+
* `claude-cli` is the legacy spelling of `claude`: it is accepted and folded to `claude`
|
|
78
|
+
* (`LEGACY_RUNNER_IDS`), and its step keeps its session. The loader `safeParse`s the WHOLE array
|
|
79
|
+
* of a legacy `runs.json`, so one record the schema refused would drop every run in the file.
|
|
84
80
|
*
|
|
85
|
-
*
|
|
86
|
-
*
|
|
87
|
-
* a
|
|
88
|
-
*
|
|
89
|
-
*
|
|
90
|
-
*
|
|
91
|
-
*
|
|
92
|
-
*
|
|
81
|
+
* An id is readable when `readableSavedRunner` says so: a registered id, or, in a process that
|
|
82
|
+
* registered no runner, a built-in id. Before the parse, `upgradeRemovedRunner`
|
|
83
|
+
* (legacy-run-rows.ts) reads a retired or unregistered id as a removed-runner run, so this
|
|
84
|
+
* schema never sees one. An unknown id in a process with no registered runner makes the row
|
|
85
|
+
* unreadable, as before runner ids were open.
|
|
86
|
+
*
|
|
87
|
+
* The legacy fold is one-way and permanent: the next write stores `claude`. Use ONLY for
|
|
88
|
+
* read-back of stored state. Request bodies, settings and workflow step defs take the ids that
|
|
89
|
+
* the server's runner registry holds, because nothing should be able to ASK for the legacy
|
|
90
|
+
* spelling. The output is an open string: a runner that this process registered keeps its own
|
|
91
|
+
* id.
|
|
93
92
|
*/
|
|
94
|
-
const storedRunnerSchema = z.
|
|
95
|
-
.transform(
|
|
93
|
+
const storedRunnerSchema = z.string().refine(readableSavedRunner)
|
|
94
|
+
.transform(id => LEGACY_RUNNER_IDS.get(id) ?? id);
|
|
96
95
|
const stepStateSchema = contractStepStateSchema.extend({ backend: storedRunnerSchema.optional() });
|
|
97
96
|
/** Exported for `./run-index.ts`, the read-only reader of the same records. Nothing else should
|
|
98
97
|
* parse a stored run — see `reconcileLoadedRun` for why a second parser is a correctness risk. */
|
|
@@ -170,7 +169,7 @@ function decodeStoredRecord(raw) {
|
|
|
170
169
|
if (!parsed.success)
|
|
171
170
|
return undefined;
|
|
172
171
|
const run = parsed.data[0];
|
|
173
|
-
return { run, extras: collectRawExtras(raw, run), ...(upgraded ? { upgraded: true } : {}) };
|
|
172
|
+
return { run, extras: collectRawExtras(withKeptFields(raw), run), ...(upgraded ? { upgraded: true } : {}) };
|
|
174
173
|
}
|
|
175
174
|
/** One database row's `data` back into a record and its extras. Undefined when it does not parse:
|
|
176
175
|
* one unreadable row costs that row only. */
|