@deksden-com/dd-flow-cli 0.9.0-beta.63 → 0.9.0-beta.64

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.
Files changed (43) hide show
  1. package/CHANGELOG.md +12 -0
  2. package/dist/build-info.json +6 -6
  3. package/dist/cli/run-cli.js +45 -4
  4. package/dist/harness-runtime/lib/native-hook-command.mjs +1 -0
  5. package/dist/harness-runtime/lib/process-json.mjs +15 -6
  6. package/dist/services/cleanup.js +1 -1
  7. package/dist/services/code-checks.js +1 -1
  8. package/dist/services/eval-snapshots.js +2 -2
  9. package/dist/services/harness-adapter.js +61 -9
  10. package/dist/services/hooks.js +26 -0
  11. package/dist/services/lanes.js +1 -1
  12. package/dist/services/lifecycle-invocations.js +194 -22
  13. package/dist/services/managed-processes.js +2 -2
  14. package/dist/services/merge-queue.js +6 -6
  15. package/dist/services/merge-server.js +1 -1
  16. package/dist/services/migrations.js +1 -1
  17. package/dist/services/projects.js +1 -1
  18. package/dist/services/protocols.js +2 -2
  19. package/dist/services/run-control-worker.js +3 -3
  20. package/dist/services/run-control.js +1 -1
  21. package/dist/services/run-controller-adapter.js +8 -3
  22. package/dist/services/run-controller-capture.js +2 -2
  23. package/dist/services/run-controller-process.js +2 -2
  24. package/dist/services/run-controller-recovery.js +3 -3
  25. package/dist/services/run-controller.js +297 -180
  26. package/dist/services/run-recovery-runtime.js +1 -1
  27. package/dist/services/run-recovery.js +3 -3
  28. package/dist/services/runs.js +13 -14
  29. package/dist/services/runtime-budget.js +4 -4
  30. package/dist/services/runtime-scope-control.js +5 -5
  31. package/dist/services/runtime-scope-resume.js +7 -7
  32. package/dist/services/runtime-scope-worker.js +2 -2
  33. package/dist/services/stage-pause.js +2 -2
  34. package/dist/services/vnext-code-review.js +9 -4
  35. package/dist/services/vnext-code.js +10 -3
  36. package/dist/services/vnext-merge.js +16 -21
  37. package/dist/services/vnext-plan-review.js +4 -2
  38. package/dist/services/vnext-plan.js +1 -1
  39. package/dist/services/work-registry.js +198 -121
  40. package/dist/storage/database.js +112 -20
  41. package/dist/storage/writer-contract.js +2 -1
  42. package/dist/storage/writer-migration.js +2 -2
  43. package/package.json +1 -1
@@ -1,6 +1,7 @@
1
1
  import crypto from "node:crypto";
2
2
  import { AppError } from "../shared/errors.js";
3
- const version = 1;
3
+ export const STORE_WRITER_VERSION = 2;
4
+ const version = STORE_WRITER_VERSION;
4
5
  const table = "dd_flow_writer_contract";
5
6
  const quote = (name) => `"${name.replaceAll('"', '""')}"`;
6
7
  /** Publish additive schema and its writer fences in the same transaction. */
@@ -3,7 +3,7 @@ import path from "node:path";
3
3
  import crypto from "node:crypto";
4
4
  import { DatabaseSync } from "node:sqlite";
5
5
  import { AppError } from "../shared/errors.js";
6
- import { installStoreWriterContract, readStoreWriterContract, registerStoreWriter } from "./writer-contract.js";
6
+ import { installStoreWriterContract, readStoreWriterContract, registerStoreWriter, STORE_WRITER_VERSION } from "./writer-contract.js";
7
7
  /** Explicit one-store cutover. The caller must separately drain external owners. */
8
8
  export function migrateStoreWriter(file, backup) {
9
9
  if (!path.isAbsolute(file) || !path.isAbsolute(backup) || file === backup || !fs.existsSync(file) || !fs.statSync(file).isFile())
@@ -83,7 +83,7 @@ export function migrateStoreWriter(file, backup) {
83
83
  finally {
84
84
  verification.close();
85
85
  }
86
- const receipt = { database: file, backup, backup_sha256: crypto.createHash("sha256").update(fs.readFileSync(backup)).digest("hex"), previous_version: previous, writer_version: 1 };
86
+ const receipt = { database: file, backup, backup_sha256: crypto.createHash("sha256").update(fs.readFileSync(backup)).digest("hex"), previous_version: previous, writer_version: STORE_WRITER_VERSION };
87
87
  db.exec("CREATE TABLE IF NOT EXISTS dd_flow_writer_migrations (backup_path TEXT PRIMARY KEY, receipt_json TEXT NOT NULL)");
88
88
  db.prepare("INSERT INTO dd_flow_writer_migrations VALUES (?, ?)").run(destination, JSON.stringify(receipt));
89
89
  installStoreWriterContract(db);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@deksden-com/dd-flow-cli",
3
- "version": "0.9.0-beta.63",
3
+ "version": "0.9.0-beta.64",
4
4
  "description": "Mechanical runtime CLI for dd-flow workflows.",
5
5
  "type": "module",
6
6
  "bin": {