substrate-ai 0.20.124 → 0.20.125
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/cli/index.js +12 -3
- package/package.json +1 -1
package/dist/cli/index.js
CHANGED
|
@@ -12141,6 +12141,15 @@ function registerFactoryCommand$1(program) {
|
|
|
12141
12141
|
//#endregion
|
|
12142
12142
|
//#region src/cli/commands/reconcile-from-disk.ts
|
|
12143
12143
|
const logger$2 = createLogger("reconcile-from-disk");
|
|
12144
|
+
/**
|
|
12145
|
+
* The reconcile write (obs_2026-05-26_031). Keyed on `story_key` ALONE —
|
|
12146
|
+
* `wg_stories` has no `run_id` column (cols: story_key, epic, title, status,
|
|
12147
|
+
* spec_path, created_at, updated_at, completed_at), so the prior `AND run_id=?`
|
|
12148
|
+
* predicate threw DoltQueryError and the recovery write never landed, leaving
|
|
12149
|
+
* the Path-A primitive non-functional. Exported so the schema/SQL guard test
|
|
12150
|
+
* runs the EXACT statement against a real wg_stories (no drift). Params: [now, now, story_key].
|
|
12151
|
+
*/
|
|
12152
|
+
const RECONCILE_WG_STORIES_UPDATE = "UPDATE wg_stories SET status='complete', updated_at=?, completed_at=? WHERE story_key=?";
|
|
12144
12153
|
/** 64KB tail window for capturing subprocess stderr/stdout (Story 66-5 pattern). */
|
|
12145
12154
|
const MAX_OUTPUT_BYTES = 64 * 1024;
|
|
12146
12155
|
/**
|
|
@@ -12469,10 +12478,10 @@ async function runReconcileFromDiskAction(options) {
|
|
|
12469
12478
|
await initSchema(adapter);
|
|
12470
12479
|
const now = new Date().toISOString();
|
|
12471
12480
|
await adapter.transaction(async (tx) => {
|
|
12472
|
-
for (const record of reconcilableRecords) await tx.query(
|
|
12481
|
+
for (const record of reconcilableRecords) await tx.query(RECONCILE_WG_STORIES_UPDATE, [
|
|
12482
|
+
now,
|
|
12473
12483
|
now,
|
|
12474
|
-
record.storyKey
|
|
12475
|
-
resolvedRunId
|
|
12484
|
+
record.storyKey
|
|
12476
12485
|
]);
|
|
12477
12486
|
});
|
|
12478
12487
|
logger$2.info({
|