dorfl 0.3.0 → 0.3.2

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 (67) hide show
  1. package/dist/advance-drivers.d.ts +1 -1
  2. package/dist/advance-lifecycle-template.js +6 -6
  3. package/dist/advance-lifecycle-template.js.map +1 -1
  4. package/dist/brand.d.ts +1 -1
  5. package/dist/brand.js +1 -1
  6. package/dist/cli.d.ts.map +1 -1
  7. package/dist/cli.js +41 -14
  8. package/dist/cli.js.map +1 -1
  9. package/dist/config-override.d.ts +1 -1
  10. package/dist/do-autopick.d.ts +1 -1
  11. package/dist/do-config.d.ts.map +1 -1
  12. package/dist/do-config.js +1 -1
  13. package/dist/do-config.js.map +1 -1
  14. package/dist/env-config.d.ts +1 -1
  15. package/dist/env-config.js +1 -1
  16. package/dist/identity.d.ts +1 -1
  17. package/dist/install-ci.js +2 -2
  18. package/dist/install-ci.js.map +1 -1
  19. package/dist/intake-trigger-template.js +2 -2
  20. package/dist/lifecycle-pools.d.ts +1 -1
  21. package/dist/mirror-pool-scan.d.ts +2 -2
  22. package/dist/mirror-pool-scan.js +1 -1
  23. package/dist/mirror-pool-scan.js.map +1 -1
  24. package/dist/prd-to-spec.d.ts +5 -5
  25. package/dist/prd-to-spec.js +5 -5
  26. package/dist/prd-to-spec.js.map +1 -1
  27. package/dist/protocol/WORK-CONTRACT.md +1 -1
  28. package/dist/repo-config.d.ts +11 -11
  29. package/dist/repo-config.d.ts.map +1 -1
  30. package/dist/repo-config.js +9 -9
  31. package/dist/repo-mirror.d.ts +6 -6
  32. package/dist/repo-mirror.d.ts.map +1 -1
  33. package/dist/repo-mirror.js +6 -6
  34. package/dist/repo-mirror.js.map +1 -1
  35. package/dist/run.d.ts +1 -1
  36. package/dist/run.js +1 -1
  37. package/dist/run.js.map +1 -1
  38. package/dist/scan.d.ts +2 -2
  39. package/dist/scan.js +5 -5
  40. package/dist/scan.js.map +1 -1
  41. package/dist/skills/convert-from-prd-to-spec/SKILL.md +2 -2
  42. package/dist/skills/drive-tasks/SKILL.md +1 -1
  43. package/dist/skills/from-idea/SKILL.md +2 -2
  44. package/dist/skills/setup/SKILL.md +1 -1
  45. package/dist/skills/setup/protocol/WORK-CONTRACT.md +1 -1
  46. package/dist/verify-workflow-template.d.ts +1 -1
  47. package/dist/verify-workflow-template.js +1 -1
  48. package/package.json +1 -1
  49. package/src/advance-drivers.ts +1 -1
  50. package/src/advance-lifecycle-template.ts +6 -6
  51. package/src/brand.ts +1 -1
  52. package/src/cli.ts +47 -14
  53. package/src/config-override.ts +1 -1
  54. package/src/do-autopick.ts +1 -1
  55. package/src/do-config.ts +1 -1
  56. package/src/env-config.ts +1 -1
  57. package/src/identity.ts +1 -1
  58. package/src/install-ci.ts +2 -2
  59. package/src/intake-trigger-template.ts +2 -2
  60. package/src/lifecycle-pools.ts +1 -1
  61. package/src/mirror-pool-scan.ts +3 -3
  62. package/src/prd-to-spec.ts +8 -8
  63. package/src/repo-config.ts +11 -11
  64. package/src/repo-mirror.ts +7 -7
  65. package/src/run.ts +2 -2
  66. package/src/scan.ts +5 -5
  67. package/src/verify-workflow-template.ts +1 -1
@@ -67,7 +67,7 @@ export interface PerformAdvanceMultiOptions extends SharedAdvanceContext {
67
67
  /**
68
68
  * The per-machine {@link ConfigOverrideMap}. Threaded into the in-place pool
69
69
  * scan (`scanRepoPaths`) so the per-machine override applies to advance
70
- * autopick eligibility — WITHOUT it the committed `.dorfl.json` silently
70
+ * autopick eligibility — WITHOUT it the committed `dorfl.json` silently
71
71
  * beats the override on this path (the in-place advance autopick mirror of the
72
72
  * `do` autopick defect).
73
73
  */
@@ -166,7 +166,7 @@ on:
166
166
  # Override an engine gate for THIS manual run only, riding the env layer of
167
167
  # flag > env > per-repo > global > default. Modelled as \`type: choice\` with a
168
168
  # BLANK first option (not \`type: boolean\`, which cannot represent "unset"):
169
- # blank ⇒ emit NOTHING (the committed .dorfl.json wins, today's
169
+ # blank ⇒ emit NOTHING (the committed dorfl.json wins, today's
170
170
  # behaviour); a non-blank choice ⇒ export the matching DORFL_* for this
171
171
  # run. The blank is load-bearing: env-config coercion THROWS on an empty
172
172
  # string, so the per-job step below only writes when the input is non-blank.
@@ -237,11 +237,11 @@ env:
237
237
  # ── The engine GATE FAMILY is resolved FROM CONFIG, not carried here ─────────
238
238
  # CI is NOT a special policy surface (ADR ci-config-policy-and-gate-family §5):
239
239
  # it runs the SAME engine gates, resolved through flag > env > per-repo > global
240
- # > default. The SAME .dorfl.json the laptop uses applies here. This
240
+ # > default. The SAME dorfl.json the laptop uses applies here. This
241
241
  # workflow emits NO DORFL_AUTO_BUILD / DORFL_AUTO_TASK /
242
242
  # DORFL_OBSERVATION_TRIAGE / DORFL_SURFACE_BLOCKERS line on a
243
243
  # SCHEDULE/PUSH tick, so the env layer carries NO defaults there — your committed
244
- # .dorfl.json wins (then the global config, then the strict built-in
244
+ # dorfl.json wins (then the global config, then the strict built-in
245
245
  # defaults autoBuild:false / autoTask:false / observationTriage:'off' /
246
246
  # surfaceBlockers:false). The ONE exception is a manual \`workflow_dispatch\` where
247
247
  # you fill a gate override input (above): the per-job step then exports that ONE
@@ -250,7 +250,7 @@ env:
250
250
  # \`enumerate\` scan (it gates the matrix pools via observationTriage/surfaceBlockers
251
251
  # /autoTask/autoBuild), not just the agent-running jobs — or the override is inert
252
252
  # for the very pools it targets. To enable CI autonomy durably, set the gate(s) in
253
- # .dorfl.json (applies everywhere) — NOT by re-running install-ci (ADR §6:
253
+ # dorfl.json (applies everywhere) — NOT by re-running install-ci (ADR §6:
254
254
  # install-ci is one-time).
255
255
 
256
256
  jobs:
@@ -467,7 +467,7 @@ jobs:
467
467
  - name: advance one item in-place (merge ⇒ rebase + CAS land on main)
468
468
  # In-place (no --isolated/--remote). \`--merge\` ties the integration mode
469
469
  # to THIS (matrix) shape: it sits at the top of the precedence chain, so
470
- # the workflow mode always wins over the repo's \`.dorfl.json\` default.
470
+ # the workflow mode always wins over the repo's \`dorfl.json\` default.
471
471
  # Cross-job land safety comes from the engine's CAS-retry loop, not from
472
472
  # this workflow's job shape. \`gh\` (merge / PR housekeeping) reads
473
473
  # \`GH_TOKEN\` from the env.
@@ -580,7 +580,7 @@ export function validateAdvanceLifecycleWorkflow(text) {
580
580
  // The workflow emits NO active gate env line for any of AUTO_BUILD / AUTO_TASK
581
581
  // / OBSERVATION_TRIAGE / SURFACE_BLOCKERS: the env layer is the OPTIONAL CI-only
582
582
  // override layer, NOT the carrier of defaults. Emitting any of them would FORCE
583
- // env to win over the repo's own .dorfl.json (the precedence is
583
+ // env to win over the repo's own dorfl.json (the precedence is
584
584
  // flag > env > per-repo > global > default), silently shadowing per-repo gate
585
585
  // config in CI — exactly the bug this task closes. A user who genuinely wants a
586
586
  // CI-SPECIFIC override adds the env var themselves (the opt-in CI override the
@@ -1 +1 @@
1
- {"version":3,"file":"advance-lifecycle-template.js","sourceRoot":"","sources":["../src/advance-lifecycle-template.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4DG;AAGH,OAAO,EAAC,wBAAwB,EAAC,MAAM,sBAAsB,CAAC;AAE9D,6EAA6E;AAC7E,MAAM,CAAC,MAAM,+BAA+B,GAAG,mBAAmB,CAAC;AAEnE,oEAAoE;AACpE,MAAM,CAAC,MAAM,kCAAkC,GAC9C,oJAAoJ,CAAC;AAEtJ,8EAA8E;AAC9E,MAAM,CAAC,MAAM,+BAA+B,GAC3C,iCAAiC,CAAC;AAEnC;;;;;;;;;;;;;;;;GAgBG;AACH,MAAM,UAAU,gCAAgC,CAC/C,MAAwB;IAExB,wEAAwE;IACxE,8EAA8E;IAC9E,gFAAgF;IAChF,oEAAoE;IACpE,MAAM,SAAS,GAAG,wBAAwB,CAAC,MAAM,CAAC,CAAC;IACnD,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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AC,6BAA6B,EAAE,CAAC,iEAAiE,CAAC,IAAI,CAC7G,IAAI,CACJ,EAAE,gEAAgE;QAClE,mEAAmE;QACnE,+CAA+C,CAAC,CAAC;IAElD,8EAA8E;IAC9E,OAAO,CAAC,0BAA0B,EAAE,8CAA8C,CAAC,IAAI,CACtF,IAAI,CACJ,EAAE,wDAAwD;QAC1D,8DAA8D,CAAC,CAAC;IAEjE,OAAO,EAAC,EAAE,EAAE,QAAQ,CAAC,MAAM,KAAK,CAAC,EAAE,QAAQ,EAAC,CAAC;AAC9C,CAAC"}
package/dist/brand.d.ts CHANGED
@@ -8,7 +8,7 @@
8
8
  *
9
9
  * - the `DORFL_` env-var prefix (a missed one is read as "unset" — the
10
10
  * worst kind of failure: silent);
11
- * - the `.dorfl.json` per-repo config filename;
11
+ * - the `dorfl.json` per-repo config filename;
12
12
  * - the `~/.dorfl/` workspaces-dir default + the `dorfl` config
13
13
  * dir name;
14
14
  * - the `.dorfl-job.json` per-job record filename;
package/dist/brand.js CHANGED
@@ -8,7 +8,7 @@
8
8
  *
9
9
  * - the `DORFL_` env-var prefix (a missed one is read as "unset" — the
10
10
  * worst kind of failure: silent);
11
- * - the `.dorfl.json` per-repo config filename;
11
+ * - the `dorfl.json` per-repo config filename;
12
12
  * - the `~/.dorfl/` workspaces-dir default + the `dorfl` config
13
13
  * dir name;
14
14
  * - the `.dorfl-job.json` per-job record filename;
package/dist/cli.d.ts.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"cli.d.ts","sourceRoot":"","sources":["../src/cli.ts"],"names":[],"mappings":";AACA,OAAO,EAAC,OAAO,EAAS,MAAM,WAAW,CAAC;AAyJ1C,OAAO,EAAgB,KAAK,mBAAmB,EAAC,MAAM,qBAAqB,CAAC;AAw/B5E,wBAAgB,YAAY,IAAI,OAAO,CAuyGtC;AAaD;;;;;;;GAOG;AACH,wBAAgB,qBAAqB,CACpC,MAAM,EAAE,mBAAmB,EAC3B,KAAK,EAAE,OAAO,GACZ,MAAM,CAyBR;AA+FD;;;;;GAKG;AACH,wBAAsB,MAAM,CAAC,IAAI,GAAE,MAAM,EAAiB,GAAG,OAAO,CAAC,IAAI,CAAC,CAQzE"}
1
+ {"version":3,"file":"cli.d.ts","sourceRoot":"","sources":["../src/cli.ts"],"names":[],"mappings":";AACA,OAAO,EAAC,OAAO,EAAS,MAAM,WAAW,CAAC;AAyJ1C,OAAO,EAAgB,KAAK,mBAAmB,EAAC,MAAM,qBAAqB,CAAC;AAihC5E,wBAAgB,YAAY,IAAI,OAAO,CA+yGtC;AAaD;;;;;;;GAOG;AACH,wBAAgB,qBAAqB,CACpC,MAAM,EAAE,mBAAmB,EAC3B,KAAK,EAAE,OAAO,GACZ,MAAM,CAyBR;AA+FD;;;;;GAKG;AACH,wBAAsB,MAAM,CAAC,IAAI,GAAE,MAAM,EAAiB,GAAG,OAAO,CAAC,IAAI,CAAC,CAQzE"}
package/dist/cli.js CHANGED
@@ -2,8 +2,8 @@
2
2
  import { Command, Option } from 'commander';
3
3
  import { createInterface } from 'node:readline';
4
4
  import { fileURLToPath } from 'node:url';
5
- import { realpathSync, mkdirSync, rmSync } from 'node:fs';
6
- import { join as joinPath } from 'node:path';
5
+ import { realpathSync, mkdirSync, rmSync, readFileSync } from 'node:fs';
6
+ import { join as joinPath, dirname } from 'node:path';
7
7
  import { git } from './git.js';
8
8
  import { loadConfig, mergeConfig, defaultConfigPath, } from './config.js';
9
9
  import { defaultConfigOverridePath, loadConfigOverride, } from './config-override.js';
@@ -123,7 +123,7 @@ function loadGlobalAndOverride(configPath) {
123
123
  }
124
124
  /**
125
125
  * Resolve the effective config for a `do --remote <r>` run, layering the target
126
- * repo's COMMITTED `.dorfl.json` (read from `<arbiter>/main` via the hub
126
+ * repo's COMMITTED `dorfl.json` (read from `<arbiter>/main` via the hub
127
127
  * mirror) into the SAME `flag > env > per-repo > global > default` chain in-place
128
128
  * `do` uses. This is the no-checkout analogue of {@link resolveRepoConfig}: there
129
129
  * is no working tree, so the bytes come from the arbiter's `main` instead of the
@@ -138,7 +138,7 @@ function loadGlobalAndOverride(configPath) {
138
138
  * the arbiter was momentarily offline.
139
139
  *
140
140
  * The config read uses {@link ensureMirrorMain} (main-only, NO-prune), NOT the
141
- * all-heads pruning {@link ensureMirror}: `git show main:.dorfl.json` only
141
+ * all-heads pruning {@link ensureMirror}: `git show main:dorfl.json` only
142
142
  * needs `main`, and the all-heads `+refs/heads/*:refs/heads/*` fetch would let a
143
143
  * `work/<slug>` branch CHECKED OUT in some stale job worktree block it (git
144
144
  * refuses to fetch into a checked-out branch), throwing the read into its
@@ -343,7 +343,7 @@ function resolveDefaultArbiterForCwd(cwd, global, flags, override) {
343
343
  // The SAME per-repo config read in-place `do` uses (`resolveRepoConfig` on the
344
344
  // cwd), so `--isolated` resolves the arbiter remote NAME (`defaultArbiter`)
345
345
  // through the identical `flag > env > per-repo > global > default` chain. An
346
- // absent `.dorfl.json` falls back to the global/default (`origin`).
346
+ // absent `dorfl.json` falls back to the global/default (`origin`).
347
347
  return resolveRepoConfig({ repoPath: cwd, global, flags, override }).config
348
348
  .defaultArbiter;
349
349
  }
@@ -673,11 +673,38 @@ const HEADLINE_GROUP = 'Commands:';
673
673
  const ADVANCED_GROUP = 'Advanced / plumbing:';
674
674
  /** Help group for the de-emphasised plumbing FLAGS named in ADR §7. */
675
675
  const ADVANCED_OPT_GROUP = 'Advanced / plumbing options:';
676
+ /**
677
+ * The CLI's own version, read at runtime from the package's `package.json`
678
+ * (the SINGLE source of truth changesets bumps on release) rather than a
679
+ * compiled-in literal that would silently drift on the next version bump.
680
+ *
681
+ * Resolved relative to THIS module (`dist/cli.js` → `../package.json`), so it
682
+ * works regardless of the cwd `dorfl` is invoked from. Best-effort: an
683
+ * unreadable/malformed `package.json` yields `'unknown'` rather than crashing
684
+ * the whole CLI over a `--version` niggle.
685
+ */
686
+ function resolvePackageVersion() {
687
+ try {
688
+ const here = dirname(fileURLToPath(import.meta.url));
689
+ const pkgPath = joinPath(here, '..', 'package.json');
690
+ const pkg = JSON.parse(readFileSync(pkgPath, 'utf8'));
691
+ return typeof pkg.version === 'string' && pkg.version.trim() !== ''
692
+ ? pkg.version
693
+ : 'unknown';
694
+ }
695
+ catch {
696
+ return 'unknown';
697
+ }
698
+ }
676
699
  export function buildProgram() {
677
700
  const program = new Command();
678
701
  program
679
702
  .name(brand.bin)
680
- .description('Autonomous parallel agents over file-based work/ queues.');
703
+ .description('Autonomous parallel agents over file-based work/ queues.')
704
+ // `-v`/`--version` print the installed CLI version (read from package.json).
705
+ // commander's default flags are `-V, --version`; we ALSO accept lower-case
706
+ // `-v` since that is what most users reach for.
707
+ .version(resolvePackageVersion(), '-v, --version', 'print the dorfl version');
681
708
  // `dorfl config --json` (spec `graceful-pre-timeout-wip-checkpoint` — step 5):
682
709
  // print the RESOLVED per-repo config as JSON, so BOTH the advance-lifecycle
683
710
  // workflow's `enumerate` job (which reads it to emit the dynamic
@@ -1115,7 +1142,7 @@ export function buildProgram() {
1115
1142
  const slug = resolveTaskOnlySlug(rawSlug);
1116
1143
  // Resolve the `promptGuidance` NUDGE namespace through the SAME chain the
1117
1144
  // gate family uses (env > per-repo > global > default), so e.g. a
1118
- // `promptGuidance.testFirst:true` in `.dorfl.json` strengthens the
1145
+ // `promptGuidance.testFirst:true` in `dorfl.json` strengthens the
1119
1146
  // wrapper line for `dorfl prompt` exactly as it would in `do`/`run`.
1120
1147
  const cwd = process.cwd();
1121
1148
  const global = loadConfig();
@@ -1206,7 +1233,7 @@ export function buildProgram() {
1206
1233
  process.exit(recovered.exitCode);
1207
1234
  }
1208
1235
  // Resolve the integration mode at completion time, highest first:
1209
- // --merge/--propose flag > per-repo .dorfl.json > global > default.
1236
+ // --merge/--propose flag > per-repo dorfl.json > global > default.
1210
1237
  // The flag sits at the TOP of the same chain the autonomous runner uses
1211
1238
  // (per-repo > global > default), so human and autonomous paths agree.
1212
1239
  const flagMode = integrationFromFlags(flags);
@@ -1354,7 +1381,7 @@ export function buildProgram() {
1354
1381
  const cwd = process.cwd();
1355
1382
  const { global, override } = loadGlobalAndOverride(flags.config);
1356
1383
  // Resolve the integration mode at integrate-time, highest first:
1357
- // --merge/--propose flag > per-repo .dorfl.json > global > default.
1384
+ // --merge/--propose flag > per-repo dorfl.json > global > default.
1358
1385
  // (Same chain `complete` uses — `do` is the autonomous twin.)
1359
1386
  let flagMode;
1360
1387
  try {
@@ -1376,7 +1403,7 @@ export function buildProgram() {
1376
1403
  // ORTHOGONAL: `--isolated` + `--remote` is REDUNDANT (a foreign `--remote` is
1377
1404
  // already isolated), so we accept it and `--remote` WINS (see `## Decisions`).
1378
1405
  //
1379
- // In BOTH cases the repo's COMMITTED `.dorfl.json` is reachable on
1406
+ // In BOTH cases the repo's COMMITTED `dorfl.json` is reachable on
1380
1407
  // `<arbiter>/main` (the mirror), so we layer it — `flag > env > per-repo >
1381
1408
  // global > default` parity with in-place `do` (task
1382
1409
  // `remote-do-reads-per-repo-config-from-arbiter-main`). Only the whitelisted
@@ -1481,7 +1508,7 @@ export function buildProgram() {
1481
1508
  // mirror fetch runs under). These are host-only by definition (rejected
1482
1509
  // per-repo), so reading them from global+flags first is correct and stable.
1483
1510
  const bootstrap = resolveGlobalConfig(global, remoteFlags);
1484
- // Source the committed `.dorfl.json` from `<arbiter>/main` via the
1511
+ // Source the committed `dorfl.json` from `<arbiter>/main` via the
1485
1512
  // hub mirror, then layer ONLY its whitelisted keys through the EXISTING
1486
1513
  // per-repo machinery. The read refreshes ONLY `main` (no-prune), so a
1487
1514
  // `work/<slug>` branch checked out in a stale worktree can never block it,
@@ -1536,7 +1563,7 @@ export function buildProgram() {
1536
1563
  // Single-job build path: gate the REBASED tip (the default) unconditionally.
1537
1564
  freshWorktreeGate: remoteConfig.freshWorktreeGate,
1538
1565
  // Cross-job merge-serialiser CAS-retry cap (resolved through the per-repo
1539
- // chain on the arbiter-side `.dorfl.json` too) — spec
1566
+ // chain on the arbiter-side `dorfl.json` too) — spec
1540
1567
  // `land-time-reverify-and-parallel-merge-ceiling` Story 5.
1541
1568
  mergeRetries: remoteConfig.mergeRetries,
1542
1569
  noPR: remoteConfig.noPR,
@@ -1867,7 +1894,7 @@ export function buildProgram() {
1867
1894
  const cwd = process.cwd();
1868
1895
  const { global, override } = loadGlobalAndOverride(flags.config);
1869
1896
  // Resolve the integration mode this invocation asks for, highest first:
1870
- // --merge/--propose flag > per-repo .dorfl.json > global > default.
1897
+ // --merge/--propose flag > per-repo dorfl.json > global > default.
1871
1898
  // The SAME chain `do`/`complete` use (via `integrationFromFlags`), so the
1872
1899
  // human, the autonomous runner, and the CI workflow all resolve the SAME
1873
1900
  // order. This is what ties the CI dispatch `integrationMode` to the actual
@@ -1921,7 +1948,7 @@ export function buildProgram() {
1921
1948
  `remote), or use --remote <url> to target another repo.`);
1922
1949
  process.exit(1);
1923
1950
  }
1924
- // Source the arbiter's COMMITTED `.dorfl.json` from `<arbiter>/main`
1951
+ // Source the arbiter's COMMITTED `dorfl.json` from `<arbiter>/main`
1925
1952
  // via the hub mirror + layer ONLY its whitelisted keys — the SAME
1926
1953
  // resolution `do --isolated` uses, so the gate family (autoBuild/autoTask/
1927
1954
  // observationTriage/surfaceBlockers) + selectionOrder + integration resolve