@pmelab/gtd 59.0.0 → 60.0.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/.claude-plugin/plugin.json +1 -1
- package/README.md +42 -38
- package/claude/hooks/doors.ts +8 -4
- package/dist/chunks/flows-DENt0uWV.mjs +707 -0
- package/dist/chunks/{steering-CCNvngSH.mjs → steering-DF_BMadH.mjs} +292 -289
- package/dist/chunks/{testkit-CMBAAyRK.mjs → testkit-BvecVjQ0.mjs} +937 -772
- package/dist/chunks/{wire-C12dahrH.mjs → wire-DZ8R1RU9.mjs} +9 -2
- package/dist/flows.mjs +2 -676
- package/dist/gtd.bundle.mjs +1101 -1025
- package/dist/steering.mjs +2 -2
- package/dist/testkit/gherkin.mjs +371 -82
- package/dist/testkit.mjs +3 -2
- package/dist/web/main.js +234 -232
- package/dist/wire.mjs +2 -2
- package/dist/workflow-kit.mjs +3 -3
- package/package.json +1 -1
- package/skills/authoring/SKILL.md +68 -61
- package/src/cli/Cli.test.ts +311 -229
- package/src/cli/Cli.ts +486 -585
- package/src/cli/Help.test.ts +47 -0
- package/src/cli/Help.ts +70 -0
- package/src/cli/History.ts +9 -4
- package/src/cli/Judges.ts +1 -1
- package/src/cli/Output.test.ts +35 -0
- package/src/cli/Output.ts +31 -1
- package/src/cli/Program.test.ts +131 -82
- package/src/cli/Program.ts +197 -111
- package/src/edge/Edge.test.ts +64 -56
- package/src/edge/Edge.ts +4 -4
- package/src/emit/Emit.test.ts +1 -1
- package/src/emit/Emit.ts +1 -1
- package/src/flows/factory.test.ts +14 -0
- package/src/flows/factory.ts +25 -6
- package/src/flows/helpers.test.ts +35 -0
- package/src/flows/helpers.ts +19 -10
- package/src/flows/index.test.ts +66 -0
- package/src/flows/index.ts +109 -5
- package/src/flows/internal.ts +7 -0
- package/src/flows/runtime.test.ts +192 -1
- package/src/flows/runtime.ts +188 -54
- package/src/gherkin/git-control.feature +6 -6
- package/src/gherkin/index.test.ts +127 -0
- package/src/gherkin/index.ts +481 -98
- package/src/gherkin/messages.test.ts +124 -0
- package/src/gherkin/messages.ts +101 -0
- package/src/gherkin/more-steps.feature +170 -0
- package/src/gherkin/scenario-end.feature +101 -0
- package/src/gherkin/testkit.feature +83 -7
- package/src/install/Install.test.ts +7 -7
- package/src/install/Install.ts +8 -8
- package/src/replay/Replay.test.ts +13 -2
- package/src/replay/Replay.ts +19 -30
- package/src/replay/judgeDiffShape.test.ts +1 -1
- package/src/steering/Footnotes.test.ts +1 -1
- package/src/steering/SteeringFormats.test.ts +1 -1
- package/src/steering/freeform.test.ts +1 -1
- package/src/steering/index.test.ts +27 -1
- package/src/steering/index.ts +6 -104
- package/src/steering/internal.ts +11 -0
- package/src/steering/qa.test.ts +7 -2
- package/src/steering/reads.test.ts +42 -0
- package/src/steering/reads.ts +43 -0
- package/src/steering/registry.ts +93 -0
- package/src/steering/review.test.ts +2 -2
- package/src/step/planStart.test.ts +18 -16
- package/src/step/planStart.ts +9 -9
- package/src/testkit/TestRepo.test.ts +289 -6
- package/src/testkit/TestRepo.ts +317 -41
- package/src/testkit/imports.test.ts +58 -0
- package/src/testkit/imports.ts +102 -0
- package/src/testkit/index.test.ts +28 -0
- package/src/testkit/index.ts +14 -2
- package/src/twins/EmittedScriptRecognizer.ts +7 -14
- package/src/twins/EmittedScripts.test.ts +4 -2
- package/src/twins/InMemRepo.ts +1 -0
- package/src/wire/Land.ts +1 -1
- package/src/wire/Script.ts +11 -0
- package/src/wire/WireSchema.test.ts +3 -0
- package/src/wire/golden/1/script.json +4 -0
- package/src/wire/index.ts +1 -0
- package/src/workflow/SteeringFormats.test.ts +1 -1
- package/src/workflow/compile.ts +2 -2
- package/src/workflow/discovery.test.ts +3 -3
- package/src/workflow/load.test.ts +256 -116
- package/src/workflow/load.ts +175 -152
- package/src/workflow/skills.test.ts +5 -5
- package/src/workflow/skills.ts +1 -1
- package/src/workflow-kit/index.test.ts +25 -0
- package/src/workflow-kit/index.ts +37 -4
- package/src/workflow-kit/review.ts +2 -2
|
@@ -1,7 +1,40 @@
|
|
|
1
1
|
// Building blocks workflows share. Policy-free: every skill list,
|
|
2
2
|
// lens, prompt, step, path and threshold arrives as a parameter, so a new
|
|
3
3
|
// workflow composes these without inheriting the shipped one's choices.
|
|
4
|
-
export
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
4
|
+
export {
|
|
5
|
+
escalation,
|
|
6
|
+
gate,
|
|
7
|
+
healthy,
|
|
8
|
+
untilSettled,
|
|
9
|
+
type EscalationCount,
|
|
10
|
+
type EscalationSteps,
|
|
11
|
+
type Health,
|
|
12
|
+
type RetryVerdict,
|
|
13
|
+
} from "./health.js"
|
|
14
|
+
export {
|
|
15
|
+
fixFindings,
|
|
16
|
+
lensEntriesOf,
|
|
17
|
+
lensOf,
|
|
18
|
+
lensesOf,
|
|
19
|
+
lensScopes,
|
|
20
|
+
qualityLap,
|
|
21
|
+
type FindingsFix,
|
|
22
|
+
type LensEntry,
|
|
23
|
+
} from "./quality.js"
|
|
24
|
+
export {
|
|
25
|
+
assertionLines,
|
|
26
|
+
removedAssertions,
|
|
27
|
+
type Assertion,
|
|
28
|
+
type RemovedAssertions,
|
|
29
|
+
} from "./scenarios.js"
|
|
30
|
+
export {
|
|
31
|
+
review,
|
|
32
|
+
reviewToHandOff,
|
|
33
|
+
type CollectRound,
|
|
34
|
+
type HandOffPolicy,
|
|
35
|
+
type Requested,
|
|
36
|
+
type ReviewOutcome,
|
|
37
|
+
type ReviewPolicy,
|
|
38
|
+
type ReviewRisk,
|
|
39
|
+
type Verdict,
|
|
40
|
+
} from "./review.js"
|
|
@@ -195,13 +195,13 @@ const converse = async (
|
|
|
195
195
|
}
|
|
196
196
|
|
|
197
197
|
/** What `finish` hands back to `review`: an outcome, or another lap at the gate. */
|
|
198
|
-
type Finish =
|
|
198
|
+
export type Finish =
|
|
199
199
|
| ReviewOutcome
|
|
200
200
|
| { readonly next: "await"; readonly reviewed: string }
|
|
201
201
|
| { readonly next: "rereview"; readonly carry: string | undefined }
|
|
202
202
|
|
|
203
203
|
/** What a round's routing needs from `finish`: its closing step and the ways it ends. */
|
|
204
|
-
interface Round {
|
|
204
|
+
export interface Round {
|
|
205
205
|
readonly round: string
|
|
206
206
|
readonly close: () => Promise<void>
|
|
207
207
|
readonly outcome: (verdict: "signoff" | "feedback") => ReviewOutcome
|