openfeel 1.5.6 → 1.5.8
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/README.md +3 -1
- package/dist/commands/archive.d.ts.map +1 -1
- package/dist/commands/archive.js +29 -3
- package/dist/commands/archive.js.map +1 -1
- package/dist/commands/flow.d.ts.map +1 -1
- package/dist/commands/flow.js +77 -6
- package/dist/commands/flow.js.map +1 -1
- package/dist/commands/plan.d.ts.map +1 -1
- package/dist/commands/plan.js +9 -1
- package/dist/commands/plan.js.map +1 -1
- package/dist/commands/req.d.ts +1 -1
- package/dist/commands/req.d.ts.map +1 -1
- package/dist/commands/req.js +397 -75
- package/dist/commands/req.js.map +1 -1
- package/dist/commands/shared/errors.d.ts +18 -1
- package/dist/commands/shared/errors.d.ts.map +1 -1
- package/dist/commands/shared/errors.js +32 -2
- package/dist/commands/shared/errors.js.map +1 -1
- package/dist/commands/shared/json-output.d.ts.map +1 -1
- package/dist/commands/shared/json-output.js +1 -0
- package/dist/commands/shared/json-output.js.map +1 -1
- package/dist/commands/stage.d.ts.map +1 -1
- package/dist/commands/stage.js +76 -2
- package/dist/commands/stage.js.map +1 -1
- package/dist/core/archive/merge.d.ts +35 -5
- package/dist/core/archive/merge.d.ts.map +1 -1
- package/dist/core/archive/merge.js +275 -5
- package/dist/core/archive/merge.js.map +1 -1
- package/dist/core/dev/sessions.d.ts +106 -0
- package/dist/core/dev/sessions.d.ts.map +1 -0
- package/dist/core/dev/sessions.js +197 -0
- package/dist/core/dev/sessions.js.map +1 -0
- package/dist/core/dev-status.d.ts.map +1 -1
- package/dist/core/dev-status.js +3 -1
- package/dist/core/dev-status.js.map +1 -1
- package/dist/core/flow-archive/archive-file.d.ts +14 -3
- package/dist/core/flow-archive/archive-file.d.ts.map +1 -1
- package/dist/core/flow-archive/archive-file.js.map +1 -1
- package/dist/core/flow-archive/archive-ops.d.ts +24 -0
- package/dist/core/flow-archive/archive-ops.d.ts.map +1 -1
- package/dist/core/flow-archive/archive-ops.js +52 -5
- package/dist/core/flow-archive/archive-ops.js.map +1 -1
- package/dist/core/flow-archive/grouping.d.ts +5 -0
- package/dist/core/flow-archive/grouping.d.ts.map +1 -1
- package/dist/core/flow-archive/grouping.js +31 -0
- package/dist/core/flow-archive/grouping.js.map +1 -1
- package/dist/core/flow-manager.d.ts +131 -2
- package/dist/core/flow-manager.d.ts.map +1 -1
- package/dist/core/flow-manager.js +259 -19
- package/dist/core/flow-manager.js.map +1 -1
- package/dist/core/harness.d.ts +15 -0
- package/dist/core/harness.d.ts.map +1 -0
- package/dist/core/harness.js +75 -0
- package/dist/core/harness.js.map +1 -0
- package/dist/core/i18n-data/en.d.ts.map +1 -1
- package/dist/core/i18n-data/en.js +97 -8
- package/dist/core/i18n-data/en.js.map +1 -1
- package/dist/core/i18n-data/zh-CN.d.ts.map +1 -1
- package/dist/core/i18n-data/zh-CN.js +97 -8
- package/dist/core/i18n-data/zh-CN.js.map +1 -1
- package/dist/core/plan/path.d.ts +52 -0
- package/dist/core/plan/path.d.ts.map +1 -1
- package/dist/core/plan/path.js +109 -3
- package/dist/core/plan/path.js.map +1 -1
- package/dist/core/plan/stage.d.ts.map +1 -1
- package/dist/core/plan/stage.js +24 -2
- package/dist/core/plan/stage.js.map +1 -1
- package/dist/core/req/aggregate.d.ts +20 -4
- package/dist/core/req/aggregate.d.ts.map +1 -1
- package/dist/core/req/aggregate.js +55 -40
- package/dist/core/req/aggregate.js.map +1 -1
- package/dist/core/req/body-file.js +1 -1
- package/dist/core/req/body-file.js.map +1 -1
- package/dist/core/req/requirement-ops.d.ts +140 -12
- package/dist/core/req/requirement-ops.d.ts.map +1 -1
- package/dist/core/req/requirement-ops.js +331 -38
- package/dist/core/req/requirement-ops.js.map +1 -1
- package/dist/core/req/stage-links.d.ts +35 -0
- package/dist/core/req/stage-links.d.ts.map +1 -0
- package/dist/core/req/stage-links.js +46 -0
- package/dist/core/req/stage-links.js.map +1 -0
- package/dist/core/req/types.d.ts +53 -0
- package/dist/core/req/types.d.ts.map +1 -1
- package/dist/core/req/types.js +4 -0
- package/dist/core/req/types.js.map +1 -1
- package/dsh/ADAPTER.md +9 -4
- package/dsh/README.md +25 -4
- package/dsh/lib/adapters/sessions.js +183 -0
- package/dsh/lib/adapters/workflow-gate.js +12 -8
- package/dsh/lib/guard.js +4 -4
- package/dsh/lib/surface/prompt.js +24 -6
- package/dsh/lib/tools/index.js +240 -11
- package/dsh/package.json +4 -3
- package/package.json +4 -2
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/** 宿主 harness 标识(与 skill 目录一一对应) */
|
|
2
|
+
export type HarnessId = 'dsh' | 'claude' | 'opencode';
|
|
3
|
+
/** 探测结果:harness 标识 + skill 目录(相对项目根,POSIX 分隔符) */
|
|
4
|
+
export interface HarnessInfo {
|
|
5
|
+
id: HarnessId;
|
|
6
|
+
skillDir: string;
|
|
7
|
+
}
|
|
8
|
+
/**
|
|
9
|
+
* 探测项目可用 harness(纯只读)。
|
|
10
|
+
*
|
|
11
|
+
* @param projectPath 项目根路径
|
|
12
|
+
* @returns HarnessInfo[],按 dsh → claude → opencode 固定顺序去重;至少一项(回退 opencode)
|
|
13
|
+
*/
|
|
14
|
+
export declare function detectHarnesses(projectPath: string): HarnessInfo[];
|
|
15
|
+
//# sourceMappingURL=harness.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"harness.d.ts","sourceRoot":"","sources":["../../src/core/harness.ts"],"names":[],"mappings":"AAuBA,oCAAoC;AACpC,MAAM,MAAM,SAAS,GAAG,KAAK,GAAG,QAAQ,GAAG,UAAU,CAAC;AAEtD,kDAAkD;AAClD,MAAM,WAAW,WAAW;IAC1B,EAAE,EAAE,SAAS,CAAC;IACd,QAAQ,EAAE,MAAM,CAAC;CAClB;AA4BD;;;;;GAKG;AACH,wBAAgB,eAAe,CAAC,WAAW,EAAE,MAAM,GAAG,WAAW,EAAE,CA8BlE"}
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Harness 探测模块(v1.5.8 / REQ-024 归档官增强)
|
|
3
|
+
*
|
|
4
|
+
* 职责:判定当前项目应把开发 skill 写到哪个工具目录(dsh / claude / opencode)。
|
|
5
|
+
* 纯只读:只做 existsSync 探测,不做任何写盘,也不改变项目状态。
|
|
6
|
+
*
|
|
7
|
+
* 探测顺序(③ 级回退,去重保序):
|
|
8
|
+
* ① 项目标记:项目根存在 `.dsh/` / `.claude/` / `.opencode/` 目录(按此顺序收集);
|
|
9
|
+
* ② 项目无任何标记时用全局标记:`~/.openfeel/adapter-host-dsh.json` → dsh、
|
|
10
|
+
* `~/.claude/` → claude、`~/.config/opencode/` → opencode;
|
|
11
|
+
* ③ 仍为空 → 回退 `['opencode']`(历史默认 harness)。
|
|
12
|
+
*
|
|
13
|
+
* 边界:全局路径一律经 `global-paths.ts` 解析(`homedir` 的单一 import 点,N4 / T27),
|
|
14
|
+
* 本模块**不得**直接 import `node:os`,否则测试无法单点隔离 HOME。
|
|
15
|
+
*/
|
|
16
|
+
import { existsSync, statSync } from 'node:fs';
|
|
17
|
+
import { join } from 'node:path';
|
|
18
|
+
import { getClaudeConfigDir, getGlobalAdapterHostPath, getOpencodeGlobalDir, } from './global-paths.js';
|
|
19
|
+
/** harness → skill 目录(相对项目根;唯一权威表) */
|
|
20
|
+
const SKILL_DIRS = {
|
|
21
|
+
dsh: '.dsh/skills',
|
|
22
|
+
claude: '.claude/skills',
|
|
23
|
+
opencode: '.opencode/skills',
|
|
24
|
+
};
|
|
25
|
+
/** 项目级标记目录(收集顺序即输出顺序) */
|
|
26
|
+
const PROJECT_MARKERS = [
|
|
27
|
+
{ id: 'dsh', dir: '.dsh' },
|
|
28
|
+
{ id: 'claude', dir: '.claude' },
|
|
29
|
+
{ id: 'opencode', dir: '.opencode' },
|
|
30
|
+
];
|
|
31
|
+
/** 无任何标记时的回退 harness(历史默认) */
|
|
32
|
+
const FALLBACK_HARNESS = 'opencode';
|
|
33
|
+
/** 目录存在性判定(文件同名不算标记;不可读/不存在一律 false) */
|
|
34
|
+
function isDirectory(targetPath) {
|
|
35
|
+
try {
|
|
36
|
+
return statSync(targetPath).isDirectory();
|
|
37
|
+
}
|
|
38
|
+
catch {
|
|
39
|
+
return false;
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
/**
|
|
43
|
+
* 探测项目可用 harness(纯只读)。
|
|
44
|
+
*
|
|
45
|
+
* @param projectPath 项目根路径
|
|
46
|
+
* @returns HarnessInfo[],按 dsh → claude → opencode 固定顺序去重;至少一项(回退 opencode)
|
|
47
|
+
*/
|
|
48
|
+
export function detectHarnesses(projectPath) {
|
|
49
|
+
const found = [];
|
|
50
|
+
// ① 项目标记
|
|
51
|
+
for (const marker of PROJECT_MARKERS) {
|
|
52
|
+
if (isDirectory(join(projectPath, marker.dir))) {
|
|
53
|
+
found.push(marker.id);
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
// ② 项目无任何标记 → 全局标记(仅当 ① 为空才探测,避免全局环境干扰项目声明)
|
|
57
|
+
if (found.length === 0) {
|
|
58
|
+
if (existsSync(getGlobalAdapterHostPath())) {
|
|
59
|
+
found.push('dsh');
|
|
60
|
+
}
|
|
61
|
+
if (isDirectory(getClaudeConfigDir())) {
|
|
62
|
+
found.push('claude');
|
|
63
|
+
}
|
|
64
|
+
if (isDirectory(getOpencodeGlobalDir())) {
|
|
65
|
+
found.push('opencode');
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
// ③ 仍为空 → 回退
|
|
69
|
+
if (found.length === 0) {
|
|
70
|
+
found.push(FALLBACK_HARNESS);
|
|
71
|
+
}
|
|
72
|
+
// 去重保序(同一 id 不会重复 push,此处防御未来标记表扩展)
|
|
73
|
+
return [...new Set(found)].map((id) => ({ id, skillDir: SKILL_DIRS[id] }));
|
|
74
|
+
}
|
|
75
|
+
//# sourceMappingURL=harness.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"harness.js","sourceRoot":"","sources":["../../src/core/harness.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AACH,OAAO,EAAE,UAAU,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAC;AAC/C,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;AACjC,OAAO,EACL,kBAAkB,EAClB,wBAAwB,EACxB,oBAAoB,GACrB,MAAM,mBAAmB,CAAC;AAW3B,sCAAsC;AACtC,MAAM,UAAU,GAA8B;IAC5C,GAAG,EAAE,aAAa;IAClB,MAAM,EAAE,gBAAgB;IACxB,QAAQ,EAAE,kBAAkB;CAC7B,CAAC;AAEF,yBAAyB;AACzB,MAAM,eAAe,GAAkD;IACrE,EAAE,EAAE,EAAE,KAAK,EAAE,GAAG,EAAE,MAAM,EAAE;IAC1B,EAAE,EAAE,EAAE,QAAQ,EAAE,GAAG,EAAE,SAAS,EAAE;IAChC,EAAE,EAAE,EAAE,UAAU,EAAE,GAAG,EAAE,WAAW,EAAE;CACrC,CAAC;AAEF,8BAA8B;AAC9B,MAAM,gBAAgB,GAAc,UAAU,CAAC;AAE/C,wCAAwC;AACxC,SAAS,WAAW,CAAC,UAAkB;IACrC,IAAI,CAAC;QACH,OAAO,QAAQ,CAAC,UAAU,CAAC,CAAC,WAAW,EAAE,CAAC;IAC5C,CAAC;IAAC,MAAM,CAAC;QACP,OAAO,KAAK,CAAC;IACf,CAAC;AACH,CAAC;AAED;;;;;GAKG;AACH,MAAM,UAAU,eAAe,CAAC,WAAmB;IACjD,MAAM,KAAK,GAAgB,EAAE,CAAC;IAE9B,SAAS;IACT,KAAK,MAAM,MAAM,IAAI,eAAe,EAAE,CAAC;QACrC,IAAI,WAAW,CAAC,IAAI,CAAC,WAAW,EAAE,MAAM,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC;YAC/C,KAAK,CAAC,IAAI,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC;QACxB,CAAC;IACH,CAAC;IAED,4CAA4C;IAC5C,IAAI,KAAK,CAAC,MAAM,KAAK,CAAC,EAAE,CAAC;QACvB,IAAI,UAAU,CAAC,wBAAwB,EAAE,CAAC,EAAE,CAAC;YAC3C,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;QACpB,CAAC;QACD,IAAI,WAAW,CAAC,kBAAkB,EAAE,CAAC,EAAE,CAAC;YACtC,KAAK,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;QACvB,CAAC;QACD,IAAI,WAAW,CAAC,oBAAoB,EAAE,CAAC,EAAE,CAAC;YACxC,KAAK,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC;QACzB,CAAC;IACH,CAAC;IAED,aAAa;IACb,IAAI,KAAK,CAAC,MAAM,KAAK,CAAC,EAAE,CAAC;QACvB,KAAK,CAAC,IAAI,CAAC,gBAAgB,CAAC,CAAC;IAC/B,CAAC;IAED,oCAAoC;IACpC,OAAO,CAAC,GAAG,IAAI,GAAG,CAAC,KAAK,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC,EAAE,EAAE,EAAE,QAAQ,EAAE,UAAU,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,CAAC;AAC7E,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"en.d.ts","sourceRoot":"","sources":["../../../src/core/i18n-data/en.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,OAAO,KAAK,EAAa,UAAU,EAAE,MAAM,YAAY,CAAC;AAGxD,eAAO,MAAM,MAAM,EAAE,
|
|
1
|
+
{"version":3,"file":"en.d.ts","sourceRoot":"","sources":["../../../src/core/i18n-data/en.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,OAAO,KAAK,EAAa,UAAU,EAAE,MAAM,YAAY,CAAC;AAGxD,eAAO,MAAM,MAAM,EAAE,UAgCpB,CAAC;AAGF,eAAO,MAAM,IAAI,EAAE,UA2WlB,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,UAgXlB,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,UAiCnB,CAAC;AAGF,eAAO,MAAM,OAAO,EAAE,UAUrB,CAAC;AAGF,eAAO,MAAM,IAAI,EAAE,UAMlB,CAAC;AAGF,eAAO,MAAM,GAAG,EAAE,UA4GjB,CAAC;AAGF,eAAO,MAAM,UAAU,EAAE,KAAK,CAAC;IAAE,IAAI,EAAE,MAAM,CAAC;IAAC,MAAM,EAAE,UAAU,CAAA;CAAE,CAsBlE,CAAC"}
|
|
@@ -27,6 +27,9 @@ export const common = {
|
|
|
27
27
|
stageIdInvalidTmpl: { key: 'common.stageIdInvalidTmpl', zh: '', en: '{input} → invalid stage ID (expected stage-NN or vX.Y.Z-stage-NN)' },
|
|
28
28
|
stageIdSuggestTmpl: { key: 'common.stageIdSuggestTmpl', zh: '', en: 'Suggested name: {suggest}' },
|
|
29
29
|
stageDirConflictTmpl: { key: 'common.stageDirConflictTmpl', zh: '', en: 'Stage dir conflict: {stage} and {other} map to the same directory' },
|
|
30
|
+
stageDirOccupiedTmpl: { key: 'common.stageDirOccupiedTmpl', zh: '', en: 'Stage dir is already taken: {dir} ({reason}); pick another stage ID (suggested: {suggest})' },
|
|
31
|
+
stageDirOccupiedOwnerTmpl: { key: 'common.stageDirOccupiedOwnerTmpl', zh: '', en: 'dir belongs to stage {stage}' },
|
|
32
|
+
stageDirOccupiedArchived: { key: 'common.stageDirOccupiedArchived', zh: '', en: 'stage already archived' },
|
|
30
33
|
generalOnlyRequirement: { key: 'common.generalOnlyRequirement', zh: '', en: 'general (General Mode) is valid at the requirement level only — not supported at stage / deployment level; use fast / full for stages.' },
|
|
31
34
|
};
|
|
32
35
|
/* ==================== flow ==================== */
|
|
@@ -137,6 +140,12 @@ export const flow = {
|
|
|
137
140
|
'archive.show.stagesLabel': { key: 'flow.archive.show.stagesLabel', zh: '', en: 'Stages:' },
|
|
138
141
|
'archive.show.stageLineTmpl': { key: 'flow.archive.show.stageLineTmpl', zh: '', en: ' - {stage} [{phase}]' },
|
|
139
142
|
'archive.show.fullHint': { key: 'flow.archive.show.fullHint', zh: '', en: '(use --json to view the full log / reviews)' },
|
|
143
|
+
// flow archive release soft gate + requirements archived with the version (v1.5.8 / REQ-030)
|
|
144
|
+
'archive.unfinishedTitleTmpl': { key: 'flow.archive.unfinishedTitleTmpl', zh: '', en: 'Version {version} still has unfinished requirements ({n}): release soft gate not passed' },
|
|
145
|
+
'archive.unfinishedHintTmpl': { key: 'flow.archive.unfinishedHintTmpl', zh: '', en: 'Roll them over first: openfeel req rollover --from {version} --to <new-version> --all; or allow explicitly: openfeel flow archive {version} --allow-unfinished (refused with zero writes)' },
|
|
146
|
+
'archive.unfinishedWarnTmpl': { key: 'flow.archive.unfinishedWarnTmpl', zh: '', en: 'Warning: version {version} still has {n} unfinished requirements; archived anyway because --allow-unfinished was passed (they stay in flow.json)' },
|
|
147
|
+
'archive.requirementsTmpl': { key: 'flow.archive.requirementsTmpl', zh: '', en: 'Requirements: {requirements} (terminal, moved into the archive file with this version)' },
|
|
148
|
+
'archive.previewRequirementsTmpl': { key: 'flow.archive.previewRequirementsTmpl', zh: '', en: '[dry-run] requirements to archive: {requirements}' },
|
|
140
149
|
'stage.remove.notFoundTmpl': { key: 'flow.stage.remove.notFoundTmpl', zh: '', en: 'Stage not found: {stage}' },
|
|
141
150
|
'stage.remove.okTmpl': { key: 'flow.stage.remove.okTmpl', zh: '', en: '✓ Removed stage: {stage}' },
|
|
142
151
|
'stage.remove.purgedTmpl': { key: 'flow.stage.remove.purgedTmpl', zh: '', en: '✓ Deleted the plan directory' },
|
|
@@ -170,6 +179,7 @@ export const flow = {
|
|
|
170
179
|
'advance.gitCommitOkTmpl': { key: 'flow.advance.gitCommitOkTmpl', zh: '', en: '✓ Stage {stage} auto git commit archived' },
|
|
171
180
|
'advance.gitCommitSkipTmpl': { key: 'flow.advance.gitCommitSkipTmpl', zh: '', en: '(Skipped auto git commit: not a git repo or no changes) {stage}' },
|
|
172
181
|
'advance.gitCommitNoRepoWarnTmpl': { key: 'flow.advance.gitCommitNoRepoWarnTmpl', zh: '', en: '[WARN] This workspace is not a git repository: stage {stage} reached done without a version safety net. Run git init or back up manually.' },
|
|
182
|
+
'advance.gitCommitConcurrentSessionsWarnTmpl': { key: 'flow.advance.gitCommitConcurrentSessionsWarnTmpl', zh: '', en: '[WARN] Concurrent sessions detected ({sessions}): automatic commit was skipped so other sessions\' changes are not swept into the archive commit for stage {stage}. Please make a scoped commit manually (git add <files changed by this session> && git commit). The done transition is unaffected.' },
|
|
173
183
|
'advance.reasonIgnoredTmpl': { key: 'flow.advance.reasonIgnoredTmpl', zh: '', en: '[WARN] --reason is only recorded for review_passed → exec_running rework; ignored this time.' },
|
|
174
184
|
'advance.dryRunForceWarn': { key: 'flow.advance.dryRunForceWarn', zh: '', en: '⚠ --force + --dry-run: Stage jump check and invalid phase check skipped' },
|
|
175
185
|
'advance.dryRunTitle': { key: 'flow.advance.dryRunTitle', zh: '', en: '═══ Dry-run Preview ═══' },
|
|
@@ -304,6 +314,9 @@ export const flow = {
|
|
|
304
314
|
'health.reqLinksPassTmpl': { key: 'flow.health.reqLinksPassTmpl', zh: '', en: 'Requirement links consistent ({n} requirements, no dangling refs)' },
|
|
305
315
|
'health.reqDanglingTmpl': { key: 'flow.health.reqDanglingTmpl', zh: '', en: 'Dangling requirement links: {items} (referenced requirement does not exist; unbind via req link --unlink)' },
|
|
306
316
|
'health.reqDriftTmpl': { key: 'flow.health.reqDriftTmpl', zh: '', en: 'Requirement status drift: {items} (all linked stages done but requirement status is not done)' },
|
|
317
|
+
// flow done gate (v1.5.8 / REQ-027): archiving → done hard gate
|
|
318
|
+
'manager.stageVerificationMissingTmpl': { key: 'flow.manager.stageVerificationMissingTmpl', zh: '', en: 'Cannot advance stage {stage} to done: stage verification record is missing (run: openfeel stage verify {stage} --result pass --kind test|manual|build --by <who> --note <note>)' },
|
|
319
|
+
'manager.stageRequirementsIncompleteTmpl': { key: 'flow.manager.stageRequirementsIncompleteTmpl', zh: '', en: 'Cannot advance stage {stage} to done: linked requirements are not all done ({items}); finish them first (req review + req verify + req advance --to done)' },
|
|
307
320
|
'recover.title': { key: 'flow.recover.title', zh: '', en: '═══ Cross-Session Context Recovery ═══' },
|
|
308
321
|
'recover.globalStatus': { key: 'flow.recover.globalStatus', zh: '', en: 'Global Status' },
|
|
309
322
|
'recover.phase': { key: 'flow.recover.phase', zh: '', en: 'Pipeline Phase' },
|
|
@@ -505,6 +518,11 @@ export const stage = {
|
|
|
505
518
|
'task.sectionMissingTmpl': { key: 'stage.task.sectionMissingTmpl', zh: '', en: 'status.md has no task section; run "openfeel plan stage add" to create the skeleton first' },
|
|
506
519
|
'create.addedTmpl': { key: 'stage.create.addedTmpl', zh: '', en: '✓ Stage created: {stage} → plan_pending' },
|
|
507
520
|
'create.deprecated': { key: 'stage.create.deprecated', zh: '', en: '[deprecated] `openfeel stage create` is deprecated; use `openfeel flow stage add <stageId>` (register only) or `openfeel plan stage add <name>` (full entry)' },
|
|
521
|
+
// stage verify (v1.5.8 / REQ-027)
|
|
522
|
+
'verify.doneTmpl': { key: 'stage.verify.doneTmpl', zh: '', en: 'Recorded stage verification for {stage}: {kind} / {result} (by {by})' },
|
|
523
|
+
'verify.notFoundTmpl': { key: 'stage.verify.notFoundTmpl', zh: '', en: 'Stage {stage} not found (not registered in flow.json stages)' },
|
|
524
|
+
'verify.phaseTmpl': { key: 'stage.verify.phaseTmpl', zh: '', en: 'Stage {stage} is in phase {phase}; stage verification can only be recorded in the archiving phase (advance to archiving first)' },
|
|
525
|
+
'verify.invalidTmpl': { key: 'stage.verify.invalidTmpl', zh: '', en: 'Invalid verification record: --result must be pass|fail, --kind must be test|manual|build, and --by / --note must not be empty' },
|
|
508
526
|
};
|
|
509
527
|
/* ==================== plan ==================== */
|
|
510
528
|
export const plan = {
|
|
@@ -512,6 +530,7 @@ export const plan = {
|
|
|
512
530
|
'stage.createdDirTmpl': { key: 'plan.stage.createdDirTmpl', zh: '', en: 'Stage created: {name} (dir: {dir})' },
|
|
513
531
|
'stage.invalidDepsTmpl': { key: 'plan.stage.invalidDepsTmpl', zh: '', en: 'Unknown dependency stage(s): {deps} (registered stages: {known})' },
|
|
514
532
|
'stage.archivedDepsTmpl': { key: 'plan.stage.archivedDepsTmpl', zh: '', en: 'Archived dependency (treated as satisfied): {deps}' },
|
|
533
|
+
'stage.archivedVersionWarnTmpl': { key: 'plan.stage.archivedVersionWarnTmpl', zh: '', en: 'Note: version {version} is archived — consider a new version number before adding a stage' },
|
|
515
534
|
'stage.empty': { key: 'plan.stage.empty', zh: '', en: 'No working stages yet' },
|
|
516
535
|
'scheme.createdTmpl': { key: 'plan.scheme.createdTmpl', zh: '', en: 'Op created: {opId} ({stage})' },
|
|
517
536
|
'scheme.create.titleRequiredTmpl': { key: 'plan.scheme.create.titleRequiredTmpl', zh: '', en: 'Missing scheme title: pass <title>, or use --from-tasks to generate mechanically from the stage task table' },
|
|
@@ -587,6 +606,12 @@ export const archive = {
|
|
|
587
606
|
'reviewsCount': { key: 'archive.reviewsCount', zh: '', en: 'Review Entries' },
|
|
588
607
|
'knowledgeExtracts': { key: 'archive.knowledgeExtracts', zh: '', en: 'Knowledge Extracts' },
|
|
589
608
|
'archivePath': { key: 'archive.archivePath', zh: '', en: 'Archive File' },
|
|
609
|
+
'completedRequirements': { key: 'archive.completedRequirements', zh: '', en: 'Completed Requirements' },
|
|
610
|
+
'noneLabel': { key: 'archive.noneLabel', zh: '', en: 'None' },
|
|
611
|
+
'releaseNotes': { key: 'archive.releaseNotes', zh: '', en: 'Release Notes Draft' },
|
|
612
|
+
'generatedSkill': { key: 'archive.generatedSkill', zh: '', en: 'Generated Skill' },
|
|
613
|
+
'skillSkippedTmpl': { key: 'archive.skillSkippedTmpl', zh: '', en: 'Skill already exists, not overwritten: {skill} (pass --force to overwrite)' },
|
|
614
|
+
'errorInvalidSkillTmpl': { key: 'archive.errorInvalidSkillTmpl', zh: '', en: 'Error: invalid skill slug "{skill}" (expected lowercase letters/digits/hyphens, e.g. openfeel-archive).' },
|
|
590
615
|
};
|
|
591
616
|
/* ==================== roadmap ==================== */
|
|
592
617
|
export const roadmap = {};
|
|
@@ -670,7 +695,8 @@ export const help = {
|
|
|
670
695
|
'flow.archive': { key: 'help.flow.archive', zh: '', en: 'Archive flow.json slices by version (archives completed history by version prefix; separate from top-level openfeel archive [stage summaries])' },
|
|
671
696
|
'flow.archive.argversion': { key: 'help.flow.archive.argversion', zh: '', en: 'Version (e.g. v1.1.7; the leading v may be omitted)' },
|
|
672
697
|
'flow.archive.dryRun': { key: 'help.flow.archive.dryRun', zh: '', en: 'Preview only (the gate is still checked; zero writes)' },
|
|
673
|
-
'flow.archive.json': { key: 'help.flow.archive.json', zh: '', en: 'Output { schemaVersion, version, stages, reviews, log, dryRun, eligible, unfinishedStages, blockingReviews } as JSON' },
|
|
698
|
+
'flow.archive.json': { key: 'help.flow.archive.json', zh: '', en: 'Output { schemaVersion, version, stages, reviews, log, dryRun, eligible, unfinishedStages, blockingReviews, requirements } as JSON' },
|
|
699
|
+
'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)' },
|
|
674
700
|
'flow.archive.list': { key: 'help.flow.archive.list', zh: '', en: 'List archived versions and their counts (read-only; engine lexicographic order)' },
|
|
675
701
|
'flow.archive.list.json': { key: 'help.flow.archive.list.json', zh: '', en: 'Output { schemaVersion, versions: [{version, counts}] } as JSON' },
|
|
676
702
|
'flow.archive.show': { key: 'help.flow.archive.show', zh: '', en: 'Show a given archived version (read-only; human output = counts + stage overview)' },
|
|
@@ -817,6 +843,13 @@ export const help = {
|
|
|
817
843
|
'stage.task.undone': { key: 'help.stage.task.undone', zh: '', en: 'Mark task as not done' },
|
|
818
844
|
'stage.create': { key: 'help.stage.create', zh: '', en: 'Create a stage (deprecated; use openfeel flow stage add)' },
|
|
819
845
|
'stage.create.argstageId': { key: 'help.stage.create.argstageId', zh: '', en: 'Stage ID (e.g. v1.0.0-stage-30)' },
|
|
846
|
+
'stage.verify': { key: 'help.stage.verify', zh: '', en: 'Record stage verification evidence (v1.5.8: archiving phase only; the stage done gate requires result=pass)' },
|
|
847
|
+
'stage.verify.argstageId': { key: 'help.stage.verify.argstageId', zh: '', en: 'Stage ID (e.g. v1.5.8-stage-122 or stage-122)' },
|
|
848
|
+
'stage.verify.result': { key: 'help.stage.verify.result', zh: '', en: 'Verification result (pass / fail)' },
|
|
849
|
+
'stage.verify.kind': { key: 'help.stage.verify.kind', zh: '', en: 'Verification kind (test / manual / build)' },
|
|
850
|
+
'stage.verify.by': { key: 'help.stage.verify.by', zh: '', en: 'Verifier' },
|
|
851
|
+
'stage.verify.note': { key: 'help.stage.verify.note', zh: '', en: 'Conclusion note (included in the archive summary)' },
|
|
852
|
+
'stage.verify.evidence': { key: 'help.stage.verify.evidence', zh: '', en: 'Evidence (command / report path)' },
|
|
820
853
|
'view': { key: 'help.view', zh: '', en: 'Review entry management' },
|
|
821
854
|
'view.list': { key: 'help.view.list', zh: '', en: 'List review entries' },
|
|
822
855
|
'view.list.op': { key: 'help.view.list.op', zh: '', en: 'Filter by operation ID' },
|
|
@@ -845,10 +878,11 @@ export const help = {
|
|
|
845
878
|
'knowledge.dedup.category': { key: 'help.knowledge.dedup.category', zh: '', en: 'Check only the given category (architecture|patterns|troubleshooting|setup)' },
|
|
846
879
|
'knowledge.dedup.threshold': { key: 'help.knowledge.dedup.threshold', zh: '', en: 'Similarity threshold 0–1 (default 0.8)' },
|
|
847
880
|
'knowledge.dedup.json': { key: 'help.knowledge.dedup.json', zh: '', en: 'Output as JSON (single JSON document with schemaVersion)' },
|
|
848
|
-
'archive': { key: 'help.archive', zh: '', en: 'Archive stage (summarize output, generate summary, extract knowledge)' },
|
|
881
|
+
'archive': { key: 'help.archive', zh: '', en: 'Archive stage (summarize output, generate summary, extract knowledge, generate release notes and skill)' },
|
|
849
882
|
'archive.argstage': { key: 'help.archive.argstage', zh: '', en: 'Stage name (e.g. stage-06)' },
|
|
850
|
-
'archive.json': { key: 'help.archive.json', zh: '', en: 'Output { schemaVersion, stage, archivePath, opsCount, reviewsCount, knowledgeExtracts } as JSON' },
|
|
851
|
-
'archive.force': { key: 'help.archive.force', zh: '', en: 'Explicitly overwrite an existing archive file (refused by default with zero writes)' },
|
|
883
|
+
'archive.json': { key: 'help.archive.json', zh: '', en: 'Output { schemaVersion, stage, archivePath, opsCount, reviewsCount, knowledgeExtracts, generated } as JSON' },
|
|
884
|
+
'archive.force': { key: 'help.archive.force', zh: '', en: 'Explicitly overwrite an existing archive file (refused by default with zero writes; also overwrites existing release notes and skill)' },
|
|
885
|
+
'archive.skill': { key: 'help.archive.skill', zh: '', en: 'Generate a dev skill per detected harness (slug: lowercase letters/digits/hyphens, e.g. openfeel-archive)' },
|
|
852
886
|
'roadmap': { key: 'help.roadmap', zh: '', en: 'Roadmap management' },
|
|
853
887
|
'roadmap.create': { key: 'help.roadmap.create', zh: '', en: 'Create roadmap (version number like 1.0, 2.0)' },
|
|
854
888
|
'roadmap.create.argversion': { key: 'help.roadmap.create.argversion', zh: '', en: 'Version number' },
|
|
@@ -887,7 +921,7 @@ export const help = {
|
|
|
887
921
|
'model.list.scope': { key: 'help.model.list.scope', zh: '', en: 'Scope (omit to show effective value)' },
|
|
888
922
|
'model.list.json': { key: 'help.model.list.json', zh: '', en: 'Output { schemaVersion, scope, agents: [{ agent, provider, model, source }] } as JSON' },
|
|
889
923
|
// req (requirement flow command group)
|
|
890
|
-
'req': { key: 'help.req', zh: '', en: 'Requirement management (add/list/show/claim/release/set/link/advance/board/next)' },
|
|
924
|
+
'req': { key: 'help.req', zh: '', en: 'Requirement management (add/list/show/claim/release/set/link/advance/board/next/review/verify/release-check/rollover)' },
|
|
891
925
|
// chore (micro-change channel)
|
|
892
926
|
'chore': { key: 'help.chore', zh: '', en: 'Micro-change channel: open/close an ephemeral write window (no stage; adapter guard chore exception)' },
|
|
893
927
|
'chore.argnote': { key: 'help.chore.argnote', zh: '', en: 'Micro-change note (required to start; e.g. "adjust UI radius")' },
|
|
@@ -901,7 +935,7 @@ export const help = {
|
|
|
901
935
|
'req.add.targetVersion': { key: 'help.req.add.targetVersion', zh: '', en: 'Target version (e.g. v1.3.0)' },
|
|
902
936
|
'req.add.priority': { key: 'help.req.add.priority', zh: '', en: 'Priority (P0/P1/P2)' },
|
|
903
937
|
'req.add.workflowMode': { key: 'help.req.add.workflowMode', zh: '', en: 'Workflow mode (full / fast / general; unset by default)' },
|
|
904
|
-
'req.list': { key: 'help.req.list', zh: '', en: 'List requirements (filter by status/version/owner)' },
|
|
938
|
+
'req.list': { key: 'help.req.list', zh: '', en: 'List requirements (filter by status/version/owner; --include-archived merges archived ones)' },
|
|
905
939
|
'req.list.status': { key: 'help.req.list.status', zh: '', en: 'Filter by status (draft/scheduled/in_progress/done/blocked/cancelled/rejected)' },
|
|
906
940
|
'req.list.targetVersion': { key: 'help.req.list.targetVersion', zh: '', en: 'Filter by target version' },
|
|
907
941
|
'req.list.owner': { key: 'help.req.list.owner', zh: '', en: 'Filter by owner' },
|
|
@@ -926,7 +960,7 @@ export const help = {
|
|
|
926
960
|
'req.link.stage': { key: 'help.req.link.stage', zh: '', en: 'Stage ID (stage-NN or vX.Y.Z-stage-NN; short name resolves in the v1.0.0 series)' },
|
|
927
961
|
'req.link.requirement': { key: 'help.req.link.requirement', zh: '', en: 'Requirement ID (to link; exclusive with --unlink)' },
|
|
928
962
|
'req.link.unlink': { key: 'help.req.link.unlink', zh: '', en: 'Unlink the requirement from the stage' },
|
|
929
|
-
'req.advance': { key: 'help.req.advance', zh: '', en: 'Advance requirement status (legality by engine transition table; done:
|
|
963
|
+
'req.advance': { key: 'help.req.advance', zh: '', en: 'Advance requirement status (legality by engine transition table; done: allowed with no linked stages, or once every linked stage reaches exec_running or later)' },
|
|
930
964
|
'req.advance.argid': { key: 'help.req.advance.argid', zh: '', en: 'Requirement ID (e.g. REQ-001)' },
|
|
931
965
|
'req.advance.to': { key: 'help.req.advance.to', zh: '', en: 'Target status (legality checked by engine)' },
|
|
932
966
|
'req.board': { key: 'help.req.board', zh: '', en: 'Requirement board (grouped by status; 7 fixed groups)' },
|
|
@@ -940,6 +974,30 @@ export const help = {
|
|
|
940
974
|
'req.split.argid': { key: 'help.req.split.argid', zh: '', en: 'Requirement ID (e.g. REQ-001)' },
|
|
941
975
|
'req.split.into': { key: 'help.req.split.into', zh: '', en: 'Child requirement title (repeatable; at least one)' },
|
|
942
976
|
'req.split.json': { key: 'help.req.split.json', zh: '', en: 'Output JSON { schemaVersion, parent, children }' },
|
|
977
|
+
'req.review': { key: 'help.req.review', zh: '', en: 'Record a requirement review (v1.5.8: the done gate requires review.result=pass; --independent for an independent review, --self for a self-review)' },
|
|
978
|
+
'req.review.argid': { key: 'help.req.review.argid', zh: '', en: 'Requirement ID (e.g. REQ-001)' },
|
|
979
|
+
'req.review.result': { key: 'help.req.review.result', zh: '', en: 'Review result (pass / fail)' },
|
|
980
|
+
'req.review.by': { key: 'help.req.review.by', zh: '', en: 'Reviewer' },
|
|
981
|
+
'req.review.note': { key: 'help.req.review.note', zh: '', en: 'Conclusion note (included in the archive summary)' },
|
|
982
|
+
'req.review.independent': { key: 'help.req.review.independent', zh: '', en: 'Independent review (recommended)' },
|
|
983
|
+
'req.review.self': { key: 'help.req.review.self', zh: '', en: 'Self-review (not independent; marked self-review in the archive summary)' },
|
|
984
|
+
'req.verify': { key: 'help.req.verify', zh: '', en: 'Record requirement verification (v1.5.8: the done gate requires verification.result=pass)' },
|
|
985
|
+
'req.verify.argid': { key: 'help.req.verify.argid', zh: '', en: 'Requirement ID (e.g. REQ-001)' },
|
|
986
|
+
'req.verify.result': { key: 'help.req.verify.result', zh: '', en: 'Verification result (pass / fail)' },
|
|
987
|
+
'req.verify.kind': { key: 'help.req.verify.kind', zh: '', en: 'Verification kind (test / manual / build)' },
|
|
988
|
+
'req.verify.by': { key: 'help.req.verify.by', zh: '', en: 'Verifier' },
|
|
989
|
+
'req.verify.note': { key: 'help.req.verify.note', zh: '', en: 'Conclusion note (included in the archive summary)' },
|
|
990
|
+
'req.verify.evidence': { key: 'help.req.verify.evidence', zh: '', en: 'Evidence (test command / report path / summary)' },
|
|
991
|
+
// v1.5.8 / REQ-030: requirements archived with a version + release gate / rollover
|
|
992
|
+
'req.list.includeArchived': { key: 'help.req.list.includeArchived', zh: '', en: 'Include requirements already archived with a version (read-only; merges .openfeel/flow-archive/*.json)' },
|
|
993
|
+
'req.release-check': { key: 'help.req.release-check', zh: '', en: 'Release gate (soft): list done / unfinished / other requirements for a version; read-only, always exit 0' },
|
|
994
|
+
'req.release-check.argversion': { key: 'help.req.release-check.argversion', zh: '', en: 'Version (e.g. v1.5.8)' },
|
|
995
|
+
'req.release-check.json': { key: 'help.req.release-check.json', zh: '', en: 'Output { schemaVersion, version, done, unfinished, counts } as JSON' },
|
|
996
|
+
'req.rollover': { key: 'help.req.rollover', zh: '', en: 'Roll unfinished requirements over to a new version (rewrites target_version + carried_from provenance; non-terminal only)' },
|
|
997
|
+
'req.rollover.from': { key: 'help.req.rollover.from', zh: '', en: 'Source version (e.g. v1.5.8)' },
|
|
998
|
+
'req.rollover.to': { key: 'help.req.rollover.to', zh: '', en: 'Target version (e.g. v1.6.0)' },
|
|
999
|
+
'req.rollover.id': { key: 'help.req.rollover.id', zh: '', en: 'Roll over only this requirement (mutually exclusive with --all)' },
|
|
1000
|
+
'req.rollover.all': { key: 'help.req.rollover.all', zh: '', en: 'Roll over every unfinished requirement of that version (mutually exclusive with --id)' },
|
|
943
1001
|
};
|
|
944
1002
|
/* ==================== config ==================== */
|
|
945
1003
|
export const config = {
|
|
@@ -1121,20 +1179,33 @@ export const req = {
|
|
|
1121
1179
|
// req link
|
|
1122
1180
|
'link.doneTmpl': { key: 'req.link.doneTmpl', zh: '', en: 'Linked {stage} to {id}' },
|
|
1123
1181
|
'link.unlinkDoneTmpl': { key: 'req.link.unlinkDoneTmpl', zh: '', en: 'Unlinked requirement from {stage}' },
|
|
1182
|
+
'link.unlinkOneTmpl': { key: 'req.link.unlinkOneTmpl', zh: '', en: 'Unlinked {id} from {stage}' },
|
|
1124
1183
|
'link.noopTmpl': { key: 'req.link.noopTmpl', zh: '', en: '{stage} link unchanged (no-op)' },
|
|
1184
|
+
'link.needArgTmpl': { key: 'req.link.needArgTmpl', zh: '', en: 'Provide --requirement (link / unlink one) or --unlink (clear all)' },
|
|
1125
1185
|
'link.exclusiveTmpl': { key: 'req.link.exclusiveTmpl', zh: '', en: 'Provide exactly one of --requirement or --unlink' },
|
|
1126
1186
|
'link.terminalTmpl': { key: 'req.link.terminalTmpl', zh: '', en: '{id} is in a terminal status ({status}); cannot link' },
|
|
1127
1187
|
'link.modeSyncedTmpl': { key: 'req.link.modeSyncedTmpl', zh: '', en: 'Requirement workflow mode {mode} dispatched to stage {stage} (status.md field + flow.json redundancy batched)' },
|
|
1128
1188
|
// req advance
|
|
1129
1189
|
'advance.doneTmpl': { key: 'req.advance.doneTmpl', zh: '', en: 'Advanced {id}: {from} -> {to}' },
|
|
1130
1190
|
'advance.noopTmpl': { key: 'req.advance.noopTmpl', zh: '', en: '{id} is already {to} (no-op)' },
|
|
1191
|
+
// req review / verify (v1.5.8 / REQ-027)
|
|
1192
|
+
'review.doneTmpl': { key: 'req.review.doneTmpl', zh: '', en: 'Recorded review for {id}: {result} (by {by})' },
|
|
1193
|
+
'review.selfSuffix': { key: 'req.review.selfSuffix', zh: '', en: ' [self-review]' },
|
|
1194
|
+
'review.terminalTmpl': { key: 'req.review.terminalTmpl', zh: '', en: '{id} is in a terminal status ({status}); cannot record a review' },
|
|
1195
|
+
'review.invalidTmpl': { key: 'req.review.invalidTmpl', zh: '', en: 'Invalid review record: --result must be pass|fail, and --by / --note must not be empty' },
|
|
1196
|
+
'review.exclusiveFlagTmpl': { key: 'req.review.exclusiveFlagTmpl', zh: '', en: '--independent and --self are mutually exclusive' },
|
|
1197
|
+
'verify.doneTmpl': { key: 'req.verify.doneTmpl', zh: '', en: 'Recorded verification for {id}: {kind} / {result} (by {by})' },
|
|
1198
|
+
'verify.terminalTmpl': { key: 'req.verify.terminalTmpl', zh: '', en: '{id} is in a terminal status ({status}); cannot record verification' },
|
|
1199
|
+
'verify.invalidTmpl': { key: 'req.verify.invalidTmpl', zh: '', en: 'Invalid verification record: --result must be pass|fail, --kind must be test|manual|build, and --by / --note must not be empty' },
|
|
1131
1200
|
// error-code mapping
|
|
1132
1201
|
'err.stageNotFoundTmpl': { key: 'req.err.stageNotFoundTmpl', zh: '', en: 'Stage {stage} not found (not registered in flow.json stages)' },
|
|
1133
1202
|
'err.alreadyClaimedTmpl': { key: 'req.err.alreadyClaimedTmpl', zh: '', en: '{id} is claimed by someone else; release first: openfeel req release {id}' },
|
|
1134
1203
|
'err.alreadyLinkedTmpl': { key: 'req.err.alreadyLinkedTmpl', zh: '', en: '{stage} is already linked to another requirement; unlink first: openfeel req link --stage {stage} --unlink' },
|
|
1135
1204
|
'err.invalidFieldTmpl': { key: 'req.err.invalidFieldTmpl', zh: '', en: '{id} invalid field value (check --status / --title / --target-version / --priority / --workflow-mode)' },
|
|
1136
1205
|
'err.invalidStatusTmpl': { key: 'req.err.invalidStatusTmpl', zh: '', en: '{id} target status {to} rejected (current {current}; allowed: {targets})' },
|
|
1137
|
-
'err.doneGateTmpl': { key: 'req.err.doneGateTmpl', zh: '', en: '{id}
|
|
1206
|
+
'err.doneGateTmpl': { key: 'req.err.doneGateTmpl', zh: '', en: 'Requirement {id} is not complete yet: a linked stage is still in a plan/scheme phase (current status {current}); advance it to exec_running first. Execution phases do not block requirement completion, and a requirement with no linked stages can be completed directly.' },
|
|
1207
|
+
'err.reviewRequiredTmpl': { key: 'req.err.reviewRequiredTmpl', zh: '', en: 'Requirement {id} is not complete yet: no passing review record (current {current}); run: openfeel req review {id} --result pass --by <who> --note <note> [--independent|--self]' },
|
|
1208
|
+
'err.verificationRequiredTmpl': { key: 'req.err.verificationRequiredTmpl', zh: '', en: 'Requirement {id} is not complete yet: no passing verification record (current {current}); run: openfeel req verify {id} --result pass --kind test|manual|build --by <who> --note <note> [--evidence <evidence>]' },
|
|
1138
1209
|
'err.generalModeConflictTmpl': { key: 'req.err.generalModeConflictTmpl', zh: '', en: '{id} has linked stages — general (no pipeline) requires a requirement without linked stages (unlink first, or use fast / full)' },
|
|
1139
1210
|
'err.generalTargetTmpl': { key: 'req.err.generalTargetTmpl', zh: '', en: '{id} uses workflow mode general (no pipeline) — stage linking is not allowed' },
|
|
1140
1211
|
// req board
|
|
@@ -1160,6 +1231,24 @@ export const req = {
|
|
|
1160
1231
|
'show.childrenLabel': { key: 'req.show.childrenLabel', zh: '', en: 'Children:' },
|
|
1161
1232
|
'show.childItemTmpl': { key: 'req.show.childItemTmpl', zh: '', en: ' - {id} [{status}] {title}' },
|
|
1162
1233
|
'show.childrenNone': { key: 'req.show.childrenNone', zh: '', en: 'Children: (none)' },
|
|
1234
|
+
// v1.5.8 / REQ-030: requirements archived with a version + release gate / rollover
|
|
1235
|
+
'list.archivedSuffixTmpl': { key: 'req.list.archivedSuffixTmpl', zh: '', en: ' (archived)' },
|
|
1236
|
+
'show.archivedTmpl': { key: 'req.show.archivedTmpl', zh: '', en: 'Archived: moved into .openfeel/flow-archive/ with version {version} (read-only)' },
|
|
1237
|
+
'releaseCheck.titleTmpl': { key: 'req.releaseCheck.titleTmpl', zh: '', en: 'Release check {version}: {total} requirement(s)' },
|
|
1238
|
+
'releaseCheck.doneLabel': { key: 'req.releaseCheck.doneLabel', zh: '', en: 'Done ({n}):' },
|
|
1239
|
+
'releaseCheck.unfinishedLabel': { key: 'req.releaseCheck.unfinishedLabel', zh: '', en: 'Unfinished ({n}):' },
|
|
1240
|
+
'releaseCheck.otherLabel': { key: 'req.releaseCheck.otherLabel', zh: '', en: 'Other ({n}):' },
|
|
1241
|
+
'releaseCheck.itemTmpl': { key: 'req.releaseCheck.itemTmpl', zh: '', en: ' - {id} [{status}] {title}' },
|
|
1242
|
+
'releaseCheck.emptySection': { key: 'req.releaseCheck.emptySection', zh: '', en: ' (none)' },
|
|
1243
|
+
'releaseCheck.countsTmpl': { key: 'req.releaseCheck.countsTmpl', zh: '', en: 'counts: done={done} unfinished={unfinished} other={other} total={total}' },
|
|
1244
|
+
'releaseCheck.unfinishedHintTmpl': { key: 'req.releaseCheck.unfinishedHintTmpl', zh: '', en: 'Unfinished requirements exist: roll them over first (openfeel req rollover --from {version} --to <new-version> --all), or pass --allow-unfinished when archiving' },
|
|
1245
|
+
'rollover.doneTmpl': { key: 'req.rollover.doneTmpl', zh: '', en: 'Rolled over {count} requirement(s): {from} -> {to}' },
|
|
1246
|
+
'rollover.itemTmpl': { key: 'req.rollover.itemTmpl', zh: '', en: ' - {id} [{status}] {title}' },
|
|
1247
|
+
'rollover.noopTmpl': { key: 'req.rollover.noopTmpl', zh: '', en: 'Version {from} has no unfinished requirements to roll over (no-op)' },
|
|
1248
|
+
'rollover.exclusiveTmpl': { key: 'req.rollover.exclusiveTmpl', zh: '', en: '--id and --all are mutually exclusive and one is required' },
|
|
1249
|
+
'rollover.invalidVersionTmpl': { key: 'req.rollover.invalidVersionTmpl', zh: '', en: '--from {from} and --to {to} must be non-empty and different' },
|
|
1250
|
+
'rollover.notInVersionTmpl': { key: 'req.rollover.notInVersionTmpl', zh: '', en: '{id} targets version {current}, not {from}; cannot roll over' },
|
|
1251
|
+
'rollover.terminalTmpl': { key: 'req.rollover.terminalTmpl', zh: '', en: '{id} is in a terminal status ({status}); cannot roll over' },
|
|
1163
1252
|
};
|
|
1164
1253
|
/* ==================== 聚合导出 ==================== */
|
|
1165
1254
|
export const allDomains = [
|