openfeel 1.5.22 โ†’ 1.5.24

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 (68) hide show
  1. package/dist/commands/dev.d.ts +2 -0
  2. package/dist/commands/dev.d.ts.map +1 -1
  3. package/dist/commands/dev.js +78 -0
  4. package/dist/commands/dev.js.map +1 -1
  5. package/dist/commands/flow.d.ts.map +1 -1
  6. package/dist/commands/flow.js +42 -3
  7. package/dist/commands/flow.js.map +1 -1
  8. package/dist/commands/req.d.ts.map +1 -1
  9. package/dist/commands/req.js +250 -8
  10. package/dist/commands/req.js.map +1 -1
  11. package/dist/commands/stage.d.ts +22 -0
  12. package/dist/commands/stage.d.ts.map +1 -1
  13. package/dist/commands/stage.js +77 -5
  14. package/dist/commands/stage.js.map +1 -1
  15. package/dist/core/dev-status.d.ts +17 -1
  16. package/dist/core/dev-status.d.ts.map +1 -1
  17. package/dist/core/dev-status.js +124 -44
  18. package/dist/core/dev-status.js.map +1 -1
  19. package/dist/core/flow-archive/grouping.js +2 -2
  20. package/dist/core/flow-archive/grouping.js.map +1 -1
  21. package/dist/core/flow-manager.d.ts +35 -2
  22. package/dist/core/flow-manager.d.ts.map +1 -1
  23. package/dist/core/flow-manager.js +131 -28
  24. package/dist/core/flow-manager.js.map +1 -1
  25. package/dist/core/i18n-data/en.d.ts.map +1 -1
  26. package/dist/core/i18n-data/en.js +66 -2
  27. package/dist/core/i18n-data/en.js.map +1 -1
  28. package/dist/core/i18n-data/zh-CN.d.ts.map +1 -1
  29. package/dist/core/i18n-data/zh-CN.js +70 -3
  30. package/dist/core/i18n-data/zh-CN.js.map +1 -1
  31. package/dist/core/init.d.ts.map +1 -1
  32. package/dist/core/init.js +13 -0
  33. package/dist/core/init.js.map +1 -1
  34. package/dist/core/metrics.d.ts +16 -1
  35. package/dist/core/metrics.d.ts.map +1 -1
  36. package/dist/core/metrics.js +44 -10
  37. package/dist/core/metrics.js.map +1 -1
  38. package/dist/core/repo-hygiene.d.ts +65 -0
  39. package/dist/core/repo-hygiene.d.ts.map +1 -0
  40. package/dist/core/repo-hygiene.js +162 -0
  41. package/dist/core/repo-hygiene.js.map +1 -0
  42. package/dist/core/req/aggregate.d.ts.map +1 -1
  43. package/dist/core/req/aggregate.js +8 -1
  44. package/dist/core/req/aggregate.js.map +1 -1
  45. package/dist/core/req/requirement-ops.d.ts +36 -0
  46. package/dist/core/req/requirement-ops.d.ts.map +1 -1
  47. package/dist/core/req/requirement-ops.js +112 -2
  48. package/dist/core/req/requirement-ops.js.map +1 -1
  49. package/dist/core/req/types.d.ts +43 -0
  50. package/dist/core/req/types.d.ts.map +1 -1
  51. package/dist/core/session.d.ts +11 -0
  52. package/dist/core/session.d.ts.map +1 -1
  53. package/dist/core/session.js +27 -0
  54. package/dist/core/session.js.map +1 -1
  55. package/dist/core/template-loader.js +1 -1
  56. package/dist/core/templates.d.ts +1 -1
  57. package/dist/core/templates.d.ts.map +1 -1
  58. package/dist/core/templates.js +11 -6
  59. package/dist/core/templates.js.map +1 -1
  60. package/dist/core/update.js +1 -1
  61. package/dsh/lib/adapters/dashboard.js +29 -2
  62. package/dsh/lib/adapters/recovery.js +66 -4
  63. package/dsh/lib/guard.js +13 -0
  64. package/dsh/lib/surface/prompt.js +1 -1
  65. package/dsh/lib/tools/index.js +50 -11
  66. package/dsh/lib/tools/shared.js +14 -0
  67. package/dsh/package.json +2 -2
  68. package/package.json +1 -1
@@ -1 +1 @@
1
- {"version":3,"file":"en.d.ts","sourceRoot":"","sources":["../../../src/core/i18n-data/en.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,YAAY,CAAC;AAG7C,eAAO,MAAM,MAAM,EAAE,UAgCpB,CAAC;AAGF,eAAO,MAAM,IAAI,EAAE,UAyXlB,CAAC;AAGF,eAAO,MAAM,IAAI,EAAE,UAyBlB,CAAC;AAGF,eAAO,MAAM,MAAM,EAAE,UAmCpB,CAAC;AAGF,eAAO,MAAM,OAAO,EAAE,UA8CrB,CAAC;AAGF,eAAO,MAAM,KAAK,EAAE,UAqCnB,CAAC;AAGF,eAAO,MAAM,IAAI,EAAE,UAsClB,CAAC;AAGF,eAAO,MAAM,SAAS,EAAE,UAiCvB,CAAC;AAGF,eAAO,MAAM,OAAO,EAAE,UAcrB,CAAC;AAGF,eAAO,MAAM,OAAO,EAAE,UAAe,CAAC;AAGtC,eAAO,MAAM,IAAI,EAAE,UAMlB,CAAC;AAGF,eAAO,MAAM,YAAY,EAAE,UAAe,CAAC;AAG3C,eAAO,MAAM,IAAI,EAAE,UAoBlB,CAAC;AAGF,eAAO,MAAM,IAAI,EAAE,UAsXlB,CAAC;AAGF,eAAO,MAAM,MAAM,EAAE,UA+BpB,CAAC;AAGF,eAAO,MAAM,OAAO,EAAE,UA4BrB,CAAC;AAGF,eAAO,MAAM,KAAK,EAAE,UAqBnB,CAAC;AAGF,eAAO,MAAM,KAAK,EAAE,UAkCnB,CAAC;AAGF,eAAO,MAAM,OAAO,EAAE,UAUrB,CAAC;AAGF,eAAO,MAAM,IAAI,EAAE,UAMlB,CAAC;AAGF,eAAO,MAAM,GAAG,EAAE,UA4GjB,CAAC;AAGF;;;;GAIG;AACH,eAAO,MAAM,SAAS,EAAE,UA4CvB,CAAC;AAGF,eAAO,MAAM,UAAU,EAAE,KAAK,CAAC;IAAE,IAAI,EAAE,MAAM,CAAC;IAAC,MAAM,EAAE,UAAU,CAAA;CAAE,CAuBlE,CAAC"}
1
+ {"version":3,"file":"en.d.ts","sourceRoot":"","sources":["../../../src/core/i18n-data/en.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,YAAY,CAAC;AAG7C,eAAO,MAAM,MAAM,EAAE,UAgCpB,CAAC;AAGF,eAAO,MAAM,IAAI,EAAE,UAwYlB,CAAC;AAGF,eAAO,MAAM,IAAI,EAAE,UAyBlB,CAAC;AAGF,eAAO,MAAM,MAAM,EAAE,UAmCpB,CAAC;AAGF,eAAO,MAAM,OAAO,EAAE,UA8CrB,CAAC;AAGF,eAAO,MAAM,KAAK,EAAE,UAyCnB,CAAC;AAGF,eAAO,MAAM,IAAI,EAAE,UAsClB,CAAC;AAGF,eAAO,MAAM,SAAS,EAAE,UAiCvB,CAAC;AAGF,eAAO,MAAM,OAAO,EAAE,UAcrB,CAAC;AAGF,eAAO,MAAM,OAAO,EAAE,UAAe,CAAC;AAGtC,eAAO,MAAM,IAAI,EAAE,UAMlB,CAAC;AAGF,eAAO,MAAM,YAAY,EAAE,UAAe,CAAC;AAG3C,eAAO,MAAM,IAAI,EAAE,UAoBlB,CAAC;AAGF,eAAO,MAAM,IAAI,EAAE,UAmZlB,CAAC;AAGF,eAAO,MAAM,MAAM,EAAE,UA+BpB,CAAC;AAGF,eAAO,MAAM,OAAO,EAAE,UA4BrB,CAAC;AAGF,eAAO,MAAM,KAAK,EAAE,UAqBnB,CAAC;AAGF,eAAO,MAAM,KAAK,EAAE,UAkCnB,CAAC;AAGF,eAAO,MAAM,OAAO,EAAE,UAUrB,CAAC;AAGF,eAAO,MAAM,IAAI,EAAE,UAMlB,CAAC;AAGF,eAAO,MAAM,GAAG,EAAE,UA4HjB,CAAC;AAGF;;;;GAIG;AACH,eAAO,MAAM,SAAS,EAAE,UA4CvB,CAAC;AAGF,eAAO,MAAM,UAAU,EAAE,KAAK,CAAC;IAAE,IAAI,EAAE,MAAM,CAAC;IAAC,MAAM,EAAE,UAAU,CAAA;CAAE,CAuBlE,CAAC"}
@@ -79,7 +79,7 @@ export const flow = {
79
79
  'next.guardTierDiffTmpl': { key: 'flow.next.guardTierDiffTmpl', zh: '', en: 'Display tier {display} โ‰  effective tier {effective} (flow advance defaults to {effective})' },
80
80
  'next.guardConfigComboTmpl': { key: 'flow.next.guardConfigComboTmpl', zh: '', en: 'Silently ineffective config: execution_mode={mode} with auto_advance={auto} (auto-advance will not apply; the dependency is documented only in comments)' },
81
81
  'next.guardArchivingVerifyTmpl': { key: 'flow.next.guardArchivingVerifyTmpl', zh: '', en: 'Before closing the archiving phase, run `openfeel stage verify {stage} --result pass --kind <test|manual|build> --by <agent> --note <summary> --evidence <evidence>` (the stage ID is positional); otherwise the done gate rejects' },
82
- 'next.guardRequirementAllDoneTmpl': { key: 'flow.next.guardRequirementAllDoneTmpl', zh: '', en: 'All linked requirements are complete ({n}, all terminal): consider closing / archiving the stage (openfeel flow advance --stage {stage} --to done, or archive this version)' },
82
+ 'next.guardRequirementAllDoneTmpl': { key: 'flow.next.guardRequirementAllDoneTmpl', zh: '', en: 'All linked requirements are complete ({n}): a stage is a version container, so **you can keep adding requirements to it**; only close it (openfeel flow advance --stage {stage} --to done) or archive the version once you are sure this is the release and no more work goes in' },
83
83
  'overview.title': { key: 'flow.overview.title', zh: '', en: 'OpenFeel Pipeline Overview' },
84
84
  'overview.currentStatus': { key: 'flow.overview.currentStatus', zh: '', en: '๐Ÿ“ Current Status' },
85
85
  'overview.stagesOverview': { key: 'flow.overview.stagesOverview', zh: '', en: '๐Ÿ“‹ Stages Overview' },
@@ -122,6 +122,11 @@ export const flow = {
122
122
  'mode.lineTmpl': { key: 'flow.mode.lineTmpl', zh: '', en: 'Workflow mode: {mode} [source: {source}]' },
123
123
  'mode.targetsLabel': { key: 'flow.mode.targetsLabel', zh: '', en: 'Reachable targets ({stage} ยท {phase}): {targets}' },
124
124
  'archive.doneTmpl': { key: 'flow.archive.doneTmpl', zh: '', en: 'Archived {version}: stages {stages} / reviews {reviews} / log {log}' },
125
+ 'archive.gitCommitOkTmpl': { key: 'flow.archive.gitCommitOkTmpl', zh: '', en: 'โœ“ Archive output committed automatically: {version}' },
126
+ 'archive.gitCommitSkipTmpl': { key: 'flow.archive.gitCommitSkipTmpl', zh: '', en: '(skipped auto-commit: not a git repo or nothing to commit) {version}' },
127
+ 'archive.gitCommitNoRepoWarnTmpl': { key: 'flow.archive.gitCommitNoRepoWarnTmpl', zh: '', en: 'โš  Not a git repository: archive output for {version} was not committed; commit it manually later.' },
128
+ 'archive.gitCommitConcurrentSessionsWarnTmpl': { key: 'flow.archive.gitCommitConcurrentSessionsWarnTmpl', zh: '', en: 'โš  Concurrent sessions detected ({sessions}): skipped auto-commit to avoid mixing other sessions\' changes into the {version} archive commit; please run a scoped commit manually.' },
129
+ 'archive.gitCommitFailedWarnTmpl': { key: 'flow.archive.gitCommitFailedWarnTmpl', zh: '', en: 'โš  Auto-commit failed (git commit rejected / index locked / missing user.email): archive output for {version} may be staged but not committed; check `git status` and commit manually.' },
125
130
  'archive.rearchivedTmpl': { key: 'flow.archive.rearchivedTmpl', zh: '', en: '{version} re-archived (overwrite; index already contains it, idempotent convergence)' },
126
131
  'archive.previewTmpl': { key: 'flow.archive.previewTmpl', zh: '', en: '[dry-run] will archive {version}: stages {stages} / reviews {reviews} / log {log}' },
127
132
  'archive.previewNoWrite': { key: 'flow.archive.previewNoWrite', zh: '', en: '(preview mode: no file was written)' },
@@ -388,6 +393,16 @@ export const flow = {
388
393
  'dev.statusLastSyncTmpl': { key: 'flow.dev.statusLastSyncTmpl', zh: '', en: 'Last sync: {lastSync} (interval {interval} min)' },
389
394
  'dev.statusDueTmpl': { key: 'flow.dev.statusDueTmpl', zh: '', en: 'Status is stale (>= {interval} min): update the handoff summary, then run `openfeel dev sync`.' },
390
395
  'dev.statusOkTmpl': { key: 'flow.dev.statusOkTmpl', zh: '', en: 'Status is fresh ({interval} min window); no update needed.' },
396
+ // dev clean (v1.5.23 / REQ-041: keep runtime state out of git)
397
+ 'dev.cleanOkTmpl': { key: 'flow.dev.cleanOkTmpl', zh: '', en: 'โœ“ Repository hygiene check complete.' },
398
+ 'dev.cleanGitignoreTmpl': { key: 'flow.dev.cleanGitignoreTmpl', zh: '', en: 'ยท .gitignore ({file}): {entries}' },
399
+ 'dev.cleanUntrackedTmpl': { key: 'flow.dev.cleanUntrackedTmpl', zh: '', en: 'ยท Removed from the git index: {files} (working-tree files kept)' },
400
+ 'dev.cleanDryRunTmpl': { key: 'flow.dev.cleanDryRunTmpl', zh: '', en: '(dry-run: .gitignore and index untouched)' },
401
+ 'dev.cleanNotGitWarnTmpl': { key: 'flow.dev.cleanNotGitWarnTmpl', zh: '', en: 'โš  Not a git repository: only .gitignore is ensured, index check skipped.' },
402
+ 'dev.cleanNone': { key: 'flow.dev.cleanNone', zh: '', en: '(none)' },
403
+ 'dev.cleanLegacyTmpl': { key: 'flow.dev.cleanLegacyTmpl', zh: '', en: 'ยท Legacy files: {files}' },
404
+ 'dev.cleanLegacyConfirmTmpl': { key: 'flow.dev.cleanLegacyConfirmTmpl', zh: '', en: 'These legacy files will be deleted (unrecoverable; git history still keeps them): {files}\nRe-run with --yes to confirm; use --dry-run to only list them.' },
405
+ 'dev.cleanIncludeRequiresLegacyTmpl': { key: 'flow.dev.cleanIncludeRequiresLegacyTmpl', zh: '', en: '`--include-archive` must be used together with `--legacy`.' },
391
406
  'preflightRequiredTmpl': { key: 'flow.preflightRequiredTmpl', zh: '', en: 'Run `openfeel flow next` (or `flow status`) before a write operation (preflight missing or expired).' },
392
407
  };
393
408
  /* ==================== init ==================== */
@@ -503,6 +518,10 @@ export const stage = {
503
518
  'status.noStages': { key: 'stage.status.noStages', zh: '', en: 'No stages found (no status.md in .openfeel/plan/)' },
504
519
  'status.foundTmpl': { key: 'stage.status.foundTmpl', zh: '', en: 'Found {n} stage(s)' },
505
520
  'status.hint': { key: 'stage.status.hint', zh: '', en: 'Use openfeel stage status <stageId> to view detailed status' },
521
+ 'status.progressTmpl': { key: 'stage.status.progressTmpl', zh: '', en: 'Requirements: {done}/{total} done ({inProgress} in progress, {other} other)' },
522
+ 'status.oldestInProgressTmpl': { key: 'stage.status.oldestInProgressTmpl', zh: '', en: 'Oldest in progress: {id} (since {since})' },
523
+ 'status.phaseEnteredTmpl': { key: 'stage.status.phaseEnteredTmpl', zh: '', en: 'Current phase entered at: {at}' },
524
+ 'status.progressEmptyTmpl': { key: 'stage.status.progressEmptyTmpl', zh: '', en: 'Requirements: none linked (version container without work items)' },
506
525
  'errorStageNotFoundTmpl': { key: 'stage.errorStageNotFoundTmpl', zh: '', en: 'Error: status.md not found for stage "{stageId}"' },
507
526
  'errorCheckStageId': { key: 'stage.errorCheckStageId', zh: '', en: 'Please verify the stage ID is correct (e.g. v4-stage-04)' },
508
527
  'set.errorFieldNotFoundTmpl': { key: 'stage.set.errorFieldNotFoundTmpl', zh: '', en: 'Error: "{field}" field not found in {stageId} status.md' },
@@ -710,6 +729,7 @@ export const help = {
710
729
  'flow.archive.dryRun': { key: 'help.flow.archive.dryRun', zh: '', en: 'Preview only (the gate is still checked; zero writes)' },
711
730
  'flow.archive.json': { key: 'help.flow.archive.json', zh: '', en: 'Output { schemaVersion, version, stages, reviews, log, dryRun, eligible, unfinishedStages, blockingReviews, requirements } as JSON' },
712
731
  'flow.archive.allowUnfinished': { key: 'help.flow.archive.allowUnfinished', zh: '', en: 'Explicitly allow "this version still has unfinished requirements" (release soft gate; default refuses with zero writes)' },
732
+ 'flow.archive.commit': { key: 'help.flow.archive.commit', zh: '', en: 'Do not auto-commit archive output (v1.5.24: auto-commit is the default)' },
713
733
  'flow.archive.list': { key: 'help.flow.archive.list', zh: '', en: 'List archived versions and their counts (read-only; engine lexicographic order)' },
714
734
  'flow.archive.list.json': { key: 'help.flow.archive.list.json', zh: '', en: 'Output { schemaVersion, versions: [{version, counts}] } as JSON' },
715
735
  'flow.archive.show': { key: 'help.flow.archive.show', zh: '', en: 'Show a given archived version (read-only; human output = counts + stage overview)' },
@@ -848,7 +868,7 @@ export const help = {
848
868
  'stage.status.json': { key: 'help.stage.status.json', zh: '', en: 'Output as JSON (single JSON document with schemaVersion)' },
849
869
  'stage.set': { key: 'help.stage.set', zh: '', en: 'Set stage status field (atomic update, preserve rest)' },
850
870
  'stage.set.argstageId': { key: 'help.stage.set.argstageId', zh: '', en: 'Stage ID (e.g. v4-stage-04)' },
851
- 'stage.set.status': { key: 'help.stage.set.status', zh: '', en: 'Status value (coarse-grained: planned/review_failed/review_passed/testing/archiving/done)' },
871
+ 'stage.set.status': { key: 'help.stage.set.status', zh: '', en: 'Status value (coarse: planned/coding/review_failed/review_passed/testing/archiving/done; plan_* โ†’ planned, scheme_*/exec_running โ†’ coding)' },
852
872
  'stage.set.execMode': { key: 'help.stage.set.execMode', zh: '', en: 'Execution mode (manual | auto)' },
853
873
  'stage.set.autoAdvance': { key: 'help.stage.set.autoAdvance', zh: '', en: 'Auto advance (enabled | disabled)' },
854
874
  'stage.set.workflowMode': { key: 'help.stage.set.workflowMode', zh: '', en: 'Workflow mode (full | fast | general)' },
@@ -868,6 +888,7 @@ export const help = {
868
888
  'stage.verify.by': { key: 'help.stage.verify.by', zh: '', en: 'Verifier' },
869
889
  'stage.verify.note': { key: 'help.stage.verify.note', zh: '', en: 'Conclusion note (included in the archive summary)' },
870
890
  'stage.verify.evidence': { key: 'help.stage.verify.evidence', zh: '', en: 'Evidence (command / report path)' },
891
+ 'stage.verify.criteria': { key: 'help.stage.verify.criteria', zh: '', en: 'Related acceptance criteria ids (comma-separated; read-only reference, gate unchanged)' },
871
892
  'view': { key: 'help.view', zh: '', en: 'Review entry management' },
872
893
  'view.list': { key: 'help.view.list', zh: '', en: 'List review entries' },
873
894
  'view.list.op': { key: 'help.view.list.op', zh: '', en: 'Filter by operation ID' },
@@ -948,11 +969,38 @@ export const help = {
948
969
  'dev': { key: 'help.dev', zh: '', en: 'Dev status records (v1.5.0: Feel-only; CLI maintains the brief status block)' },
949
970
  'dev.sync': { key: 'help.dev.sync', zh: '', en: 'Write the brief status block now (dev_last AUTO block + .sync.json)' },
950
971
  'dev.status': { key: 'help.dev.status', zh: '', en: 'Show status sync state (read-only; default 30-minute window)' },
972
+ 'dev.clean': { key: 'help.dev.clean', zh: '', en: 'Keep runtime state out of git: complete .gitignore + remove tracked runtime files from the git index (working-tree files kept)' },
973
+ 'dev.clean.dryRun': { key: 'help.dev.clean.dryRun', zh: '', en: 'Show what would be done (no writes, no index change)' },
974
+ 'dev.clean.legacy': { key: 'help.dev.clean.legacy', zh: '', en: 'Also remove legacy files (task_claim.md / todo-current.md; v1.5.24)' },
975
+ 'dev.clean.includeArchive': { key: 'help.dev.clean.includeArchive', zh: '', en: 'With --legacy: also remove stale current_archive/*.md files' },
976
+ 'dev.clean.json': { key: 'help.dev.clean.json', zh: '', en: 'JSON output (includes legacy cleanup result)' },
977
+ 'dev.clean.yes': { key: 'help.dev.clean.yes', zh: '', en: 'Confirm the --legacy deletion (without it only a list is printed)' },
951
978
  'req.add': { key: 'help.req.add', zh: '', en: 'Create a requirement (auto ID; body skeleton under .openfeel/requirements/)' },
952
979
  'req.add.argtitle': { key: 'help.req.add.argtitle', zh: '', en: 'Requirement title' },
953
980
  'req.add.targetVersion': { key: 'help.req.add.targetVersion', zh: '', en: 'Target version (e.g. v1.3.0)' },
954
981
  'req.add.priority': { key: 'help.req.add.priority', zh: '', en: 'Priority (P0/P1/P2)' },
955
982
  'req.add.workflowMode': { key: 'help.req.add.workflowMode', zh: '', en: 'Workflow mode (full / fast / general; unset by default)' },
983
+ 'req.add.claim': { key: 'help.req.add.claim', zh: '', en: 'Claim immediately after creating (v1.5.23)' },
984
+ 'req.add.stage': { key: 'help.req.add.stage', zh: '', en: 'Link to this stage immediately after creating (v1.5.23)' },
985
+ 'req.waive': { key: 'help.req.waive', zh: '', en: 'Explicit waiver: drop it from the stage done gate and record why (distinct from cancelled)' },
986
+ 'req.waive.argid': { key: 'help.req.waive.argid', zh: '', en: 'Requirement ID' },
987
+ 'req.waive.reason': { key: 'help.req.waive.reason', zh: '', en: 'Why it is waived (required)' },
988
+ 'req.waive.by': { key: 'help.req.waive.by', zh: '', en: 'Who decided (default: session id)' },
989
+ 'req.waive.revoke': { key: 'help.req.waive.revoke', zh: '', en: 'Revoke the waiver' },
990
+ 'req.trivial': { key: 'help.req.trivial', zh: '', en: 'Mark trivial (skip review/verification: docs/copy/test comments)' },
991
+ 'req.trivial.argid': { key: 'help.req.trivial.argid', zh: '', en: 'Requirement ID' },
992
+ 'req.trivial.reason': { key: 'help.req.trivial.reason', zh: '', en: 'Why it counts as trivial (required)' },
993
+ 'req.trivial.by': { key: 'help.req.trivial.by', zh: '', en: 'Who marked it (default: session id)' },
994
+ 'req.trivial.revoke': { key: 'help.req.trivial.revoke', zh: '', en: 'Revoke the mark' },
995
+ 'req.complete': { key: 'help.req.complete', zh: '', en: 'One-shot completion: record review + verify and advance to done (reuses the existing done gate)' },
996
+ 'req.complete.argid': { key: 'help.req.complete.argid', zh: '', en: 'Requirement ID' },
997
+ 'req.complete.result': { key: 'help.req.complete.result', zh: '', en: 'Review/verification result (pass / fail; pass is required)' },
998
+ 'req.complete.kind': { key: 'help.req.complete.kind', zh: '', en: 'Verification kind (test / manual / build; default manual)' },
999
+ 'req.complete.note': { key: 'help.req.complete.note', zh: '', en: 'Summary (goes into the archive summary)' },
1000
+ 'req.complete.by': { key: 'help.req.complete.by', zh: '', en: 'Reviewer / verifier (default: session id)' },
1001
+ 'req.complete.evidence': { key: 'help.req.complete.evidence', zh: '', en: 'Evidence (test command / report path / summary)' },
1002
+ 'req.complete.independent': { key: 'help.req.complete.independent', zh: '', en: 'Independent review (recommended)' },
1003
+ 'req.complete.self': { key: 'help.req.complete.self', zh: '', en: 'Self review (non-independent; marked in the archive summary)' },
956
1004
  'req.list': { key: 'help.req.list', zh: '', en: 'List requirements (filter by status/version/owner; --include-archived merges archived ones)' },
957
1005
  'req.list.status': { key: 'help.req.list.status', zh: '', en: 'Filter by status (draft/scheduled/in_progress/done/blocked/cancelled/rejected)' },
958
1006
  'req.list.targetVersion': { key: 'help.req.list.targetVersion', zh: '', en: 'Filter by target version' },
@@ -1163,6 +1211,22 @@ export const repl = {
1163
1211
  export const req = {
1164
1212
  // req add
1165
1213
  'add.doneTmpl': { key: 'req.add.doneTmpl', zh: '', en: 'Created {id}: {title} (status: draft)' },
1214
+ 'add.claimedTmpl': { key: 'req.add.claimedTmpl', zh: '', en: 'ยท Claimed by: {owner}' },
1215
+ 'add.linkedTmpl': { key: 'req.add.linkedTmpl', zh: '', en: 'ยท Linked to stage: {stage}' },
1216
+ 'add.claimFailedTmpl': { key: 'req.add.claimFailedTmpl', zh: '', en: 'Cannot claim {id} (occupancy check failed)' },
1217
+ 'add.linkFailedTmpl': { key: 'req.add.linkFailedTmpl', zh: '', en: 'Cannot link {id} to stage {stage} (stage not found or carrier conflict)' },
1218
+ 'waive.doneTmpl': { key: 'req.waive.doneTmpl', zh: '', en: 'โœ“ {id} waived ({reason}); excluded from the stage done gate' },
1219
+ 'waive.revokedTmpl': { key: 'req.waive.revokedTmpl', zh: '', en: 'โœ“ Waiver revoked for {id}' },
1220
+ 'waive.reasonTmpl': { key: 'req.waive.reasonTmpl', zh: '', en: '`--reason <text>` is required to record why it is waived' },
1221
+ 'waive.noWaiverTmpl': { key: 'req.waive.noWaiverTmpl', zh: '', en: '{id} has no waiver record; nothing to revoke' },
1222
+ 'waive.alreadyDoneTmpl': { key: 'req.waive.alreadyDoneTmpl', zh: '', en: '{id} is already done; no waiver needed' },
1223
+ 'trivial.doneTmpl': { key: 'req.trivial.doneTmpl', zh: '', en: 'โœ“ {id} marked trivial ({reason}): the done gate skips review/verification' },
1224
+ 'trivial.revokedTmpl': { key: 'req.trivial.revokedTmpl', zh: '', en: 'โœ“ Trivial mark revoked for {id}' },
1225
+ 'trivial.reasonTmpl': { key: 'req.trivial.reasonTmpl', zh: '', en: '`--reason <text>` is required to explain why it is trivial' },
1226
+ 'trivial.noMarkTmpl': { key: 'req.trivial.noMarkTmpl', zh: '', en: '{id} has no trivial mark; nothing to revoke' },
1227
+ 'trivial.alreadyDoneTmpl': { key: 'req.trivial.alreadyDoneTmpl', zh: '', en: '{id} is already done; cannot mark it trivial' },
1228
+ 'complete.doneTmpl': { key: 'req.complete.doneTmpl', zh: '', en: 'โœ“ {id} completed: review {result} / verify {kind} โ†’ done' },
1229
+ 'complete.statusTmpl': { key: 'req.complete.statusTmpl', zh: '', en: '{id} is in status {status}: `req complete` only accepts draft / scheduled / in_progress (handle blocked or terminal states first)' },
1166
1230
  'add.bodyTmpl': { key: 'req.add.bodyTmpl', zh: '', en: 'Body skeleton: {path}' },
1167
1231
  // shared validation messages
1168
1232
  'invalidIdTmpl': { key: 'req.invalidIdTmpl', zh: '', en: '{input} -> invalid requirement ID (expected REQ-NNN, e.g. REQ-001)' },