paseo-req-kit 1.7.0-beta.3 → 1.8.0
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/CHANGELOG.md +94 -0
- package/README.md +15 -10
- package/bin/req.mjs +4 -0
- package/config.example.json +32 -1
- package/contracts/feature-files.md +30 -0
- package/contracts/notifier-event.md +3 -2
- package/contracts/result-file.md +8 -4
- package/contracts/spec.md +3 -1
- package/contracts/state.md +7 -2
- package/contracts/verify.md +2 -0
- package/docs/adr/0023-types-gate-slices.md +54 -0
- package/docs/adr/0024-confirm-early-review-axes.md +27 -0
- package/docs/adr/0025-joint-requirements.md +27 -0
- package/docs/adr/README.md +3 -0
- package/docs/guide//344/275/277/347/224/250/350/200/205/346/214/207/345/215/227.md +18 -0
- package/docs/guide//345/256/211/350/243/205/344/270/216/345/215/207/347/272/247.md +16 -7
- package/docs/guide//347/273/264/346/212/244/350/200/205/346/214/207/345/215/227.md +1 -1
- package/docs/guide//351/241/271/347/233/256/345/256/232/345/210/266/344/270/216/350/277/220/350/241/214/350/247/204/345/210/231.md +105 -0
- package/engine/prompts/00-shared-context.md +4 -0
- package/engine/prompts/02-spec-review.md +1 -1
- package/engine/prompts/03-design.md +31 -8
- package/engine/prompts/04-design-review.md +3 -2
- package/engine/prompts/04b-design-revise.md +8 -1
- package/engine/prompts/05-implement.md +11 -5
- package/engine/prompts/06-code-review.md +13 -9
- package/engine/prompts/07-review-fix.md +1 -1
- package/engine/prompts/09-verify.md +1 -1
- package/engine/prompts/10-defect-fix.md +1 -1
- package/engine/prompts/11-report.md +20 -1
- package/engine/prompts/incremental.md +1 -0
- package/engine/prompts/joint.md +55 -0
- package/engine/prompts/related-repos.md +7 -0
- package/engine/prompts/review-axis-spec.md +10 -0
- package/engine/prompts/review-axis-standards.md +11 -0
- package/engine/prompts/types/assessment.md +41 -0
- package/engine/prompts/types/defect.md +55 -0
- package/engine/prompts/types/refactor.md +39 -0
- package/engine/src/cli-args.ts +14 -1
- package/engine/src/config.ts +140 -0
- package/engine/src/control.ts +27 -11
- package/engine/src/digest.ts +12 -3
- package/engine/src/doctor.ts +28 -1
- package/engine/src/eval.ts +1 -1
- package/engine/src/features.ts +2 -0
- package/engine/src/gate.ts +157 -0
- package/engine/src/joint.ts +173 -0
- package/engine/src/launch.ts +1 -1
- package/engine/src/lessons.ts +72 -0
- package/engine/src/main.ts +38 -5
- package/engine/src/messages.ts +87 -1
- package/engine/src/notifiers.ts +1 -1
- package/engine/src/notify-test.ts +4 -0
- package/engine/src/pipeline.ts +777 -63
- package/engine/src/playbooks.ts +46 -0
- package/engine/src/preflight.ts +41 -2
- package/engine/src/state.ts +58 -3
- package/engine/src/steps.ts +29 -5
- package/notifiers/im-template.mjs +3 -1
- package/package.json +2 -2
- package/skills/acceptance-criteria/SKILL.md +10 -1
- package/skills/req/SKILL.md +5 -3
- package/skills/req/playbooks/new.md +16 -5
- package/skills/req/playbooks/small.md +1 -1
- package/skills/req/playbooks/status.md +2 -0
- package/skills/req-retro/SKILL.md +2 -0
- package/skills/req-setup/SKILL.md +22 -5
- package/skills/requirement-interview/SKILL.md +3 -0
- package/skills/spec-writing/SKILL.md +18 -4
- package/skills/spec-writing/spec-template.md +4 -1
package/engine/src/notifiers.ts
CHANGED
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
|
|
7
7
|
import { pathToFileURL } from "node:url";
|
|
8
8
|
|
|
9
|
-
export const NOTIFIER_EVENT_TYPES = ["milestone", "blocked", "permission", "failed", "completed", "digest", "phase_done"] as const;
|
|
9
|
+
export const NOTIFIER_EVENT_TYPES = ["milestone", "blocked", "permission", "failed", "completed", "digest", "phase_done", "approval"] as const;
|
|
10
10
|
export type NotifierEventType = (typeof NOTIFIER_EVENT_TYPES)[number];
|
|
11
11
|
|
|
12
12
|
export interface NotifierConfig {
|
|
@@ -34,6 +34,10 @@ export function sampleEvent(type: NotifierEventType, repo: string): NotifierEven
|
|
|
34
34
|
text: `研发已完成,可以提测:提测说明在 ${featureDir}/handoff.md。`,
|
|
35
35
|
details: { handoffPath: `${featureDir}/handoff.md`, mode: "gated", verifyCommand: `${resume} --phase verify`, verifyAt: null, handbacks: 0 },
|
|
36
36
|
},
|
|
37
|
+
approval: {
|
|
38
|
+
text: `方案已通过审核,请需求方确认"做完后会看到什么"再开始写代码:${featureDir}/preview.md`,
|
|
39
|
+
details: { previewPath: `${featureDir}/preview.md`, approveCommand: resume.replace(/--resume$/, "--approve"), resumeCommand: resume },
|
|
40
|
+
},
|
|
37
41
|
completed: {
|
|
38
42
|
text: "开发流水线已结束:已完成,可以验收。",
|
|
39
43
|
details: { outcome: "completed", summary: "6 条验收标准全部通过。", reportPath: `${featureDir}/report.md` },
|