@pmelab/gtd 15.7.0 → 15.9.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/README.md +20 -7
- package/dist/gtd.bundle.mjs +676 -209
- package/package.json +1 -1
- package/src/workflows/health.test.ts +13 -0
- package/src/workflows/health.ts +3 -3
- package/src/workflows/prose.ts +5 -4
- package/src/workflows/review.test.ts +247 -0
- package/src/workflows/review.ts +125 -47
- package/src/workflows/steps.test.ts +39 -0
- package/src/workflows/steps.ts +38 -6
- package/src/workflows/text.fixture.ts +40 -42
- package/src/workflows/text.ts +91 -21
package/README.md
CHANGED
|
@@ -344,7 +344,13 @@ noted in steps 2, 3, and 4 below.
|
|
|
344
344
|
against its own spec before moving on. Three points along that loop are
|
|
345
345
|
judged rather than always asking you outright — each stops and hands you a
|
|
346
346
|
verdict to make (`gtd judge answer`, or land with a clean tree to accept the
|
|
347
|
-
conservative default, which never skips work
|
|
347
|
+
conservative default, which never skips work;
|
|
348
|
+
`gtd judge run --provider fixed --answers <path>` — or the
|
|
349
|
+
`GTD_JUDGE_ANSWERS` env var, inline JSON — answers one from a file, piped
|
|
350
|
+
between `gtd judge --json` and `gtd judge answer`;
|
|
351
|
+
`gtd judge run --provider jev` asks TypeSafe's Jev instead, with the key in
|
|
352
|
+
`TYPESAFE_API_KEY` and `JEV_BASE_URL` optionally overriding the endpoint, and
|
|
353
|
+
exits 1 with nothing on stdout when it cannot answer every question):
|
|
348
354
|
- Every red round after the first: was the failure identical, new, or
|
|
349
355
|
progress?
|
|
350
356
|
- Before spending a review turn on a package: does the code already satisfy
|
|
@@ -377,12 +383,19 @@ noted in steps 2, 3, and 4 below.
|
|
|
377
383
|
|
|
378
384
|
4. **You review.** You get a review document listing what changed and what to
|
|
379
385
|
look at. Tick the boxes to approve, or write what is wrong. Approving ends
|
|
380
|
-
the process; feedback
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
+
the process; feedback is judged note by note, each as `edit`, `question`,
|
|
387
|
+
`nit` or `praise`. An `edit` sends the process back to step 2 for a fresh
|
|
388
|
+
plan — it never patches over a design you rejected. A `question` is answered
|
|
389
|
+
inline under your note and the process stops at the review again — no new
|
|
390
|
+
plan. A `nit` is fixed in one batch, the suite must go green (a red one gets
|
|
391
|
+
fix turns first), then a fresh review of the change stops at the review
|
|
392
|
+
again. `praise` is dropped; a round of only praise signs off. When a round
|
|
393
|
+
mixes them, questions are answered and nits fixed first, then the edits are
|
|
394
|
+
planned — risk: the planning lap may redo nit fixes it touches. A hand-edit
|
|
395
|
+
to code always plans a lap. Only a confident non-`edit` verdict skips the
|
|
396
|
+
replan — a note whose evidence was cut, or that got no verdict, counts as
|
|
397
|
+
`edit`. The same `gtd judge answer` / conservative-default shape as step 3's
|
|
398
|
+
own judged points.
|
|
386
399
|
|
|
387
400
|
You never talk to it. Every exchange is a file in `.gtd/` that you edit in your
|
|
388
401
|
own editor, and every answer you give is a commit. Your test suite is the gate
|