@pmelab/gtd 6.13.0 → 7.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/README.md +26 -23
- package/dist/gtd.bundle.mjs +338 -156
- package/docs/cli.md +35 -32
- package/docs/configuration.md +69 -71
- package/docs/development.md +2 -1
- package/docs/upgrading.md +15 -19
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -49,28 +49,28 @@ Or run without installing:
|
|
|
49
49
|
npx @pmelab/gtd
|
|
50
50
|
```
|
|
51
51
|
|
|
52
|
-
|
|
52
|
+
That's it — gtd ships the **unified** workflow as its **built-in default**, so a
|
|
53
|
+
state command works out of the box with no configuration at all.
|
|
54
|
+
|
|
55
|
+
Optionally, seed the settings a project usually tunes — run once:
|
|
53
56
|
|
|
54
57
|
```bash
|
|
55
58
|
gtd init
|
|
56
59
|
```
|
|
57
60
|
|
|
58
|
-
This writes a `.gtdrc.json`
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
**no** default workflow: a state command run before `gtd init` fails, pointing
|
|
72
|
-
you back here. See [Configuration](docs/configuration.md#gtd-init) for the
|
|
73
|
-
template.
|
|
61
|
+
This writes a minimal `.gtdrc.json` seeding the one variable most projects
|
|
62
|
+
change — the test command (`vars.testCommand`, defaulting to `npm test`) — plus
|
|
63
|
+
a top-level `modes:` block suggesting **Prettier** as the steering-file
|
|
64
|
+
formatter (`npx prettier --write` for the built-in `qa`/`review` modes — format
|
|
65
|
+
only, so gtd still validates); edit or drop either freely (point `testCommand`
|
|
66
|
+
at your suite, swap Prettier for dprint or a script, delete a key). It writes
|
|
67
|
+
**no** `workflow:` key — the machine is built in — so review and commit the file
|
|
68
|
+
before your first `gtd step`. `gtd init` takes no argument and refuses to
|
|
69
|
+
clobber an existing config; it may also run in a plain parent directory (not a
|
|
70
|
+
git repo) to seed a shared config a nested repo picks up. To customize the
|
|
71
|
+
machine itself, add a `workflow:` key (there is no default fallback to merge
|
|
72
|
+
over — a `workflow:` is the whole definition). See
|
|
73
|
+
[Configuration](docs/configuration.md#gtd-init) for the details.
|
|
74
74
|
|
|
75
75
|
## How it works
|
|
76
76
|
|
|
@@ -111,12 +111,15 @@ and tells you to repair it first (that's what `gtd fix` is for). The two
|
|
|
111
111
|
steering-file entries are chosen by which file you create:
|
|
112
112
|
|
|
113
113
|
- Create **`.gtd/TODO.md`** with a short sketch to start the **simple** flow: an
|
|
114
|
-
agent develops your sketch into a plan —
|
|
115
|
-
|
|
116
|
-
|
|
114
|
+
agent develops your sketch into a concrete plan — deciding open points itself
|
|
115
|
+
rather than asking questions — and hands it back for you to accept as-is or
|
|
116
|
+
edit. Editing sends it round again; accepting builds the plan in one turn and
|
|
117
117
|
runs your tests (looping on failures).
|
|
118
118
|
- Create **`.gtd/REQUIREMENTS.md`** to start the **advanced** flow: two-phase
|
|
119
|
-
product then technical Q&A (`.gtd/REQUIREMENTS.md` → `.gtd/ARCHITECTURE.md`)
|
|
119
|
+
product then technical Q&A (`.gtd/REQUIREMENTS.md` → `.gtd/ARCHITECTURE.md`) —
|
|
120
|
+
each open question offers a couple of candidate answers plus a
|
|
121
|
+
`- [ ] _your answer_` slot, and you tick exactly one per question (the gate
|
|
122
|
+
won't let a phase advance while any question is unanswered) — then
|
|
120
123
|
decomposition into work **packages** (each a set of independent tasks a single
|
|
121
124
|
build turn fans out to parallel subagents), a per-package test loop, and a
|
|
122
125
|
per-package **agentic review** that verifies the package against its spec.
|
|
@@ -168,8 +171,8 @@ points at (at its `#line`), symbols over a `qa`-mode file's open questions,
|
|
|
168
171
|
diagnostics for both (live as you edit), and a `gtd.openSteeringFile` command
|
|
169
172
|
that jumps to the current state's steering file. Config-driven via each state's
|
|
170
173
|
`file:`/`mode:` (see [CLI reference](docs/cli.md#gtd-lsp)) — falls back to
|
|
171
|
-
basename dispatch (`
|
|
172
|
-
|
|
174
|
+
basename dispatch (`REVIEW.md` → `review`) with no config in sight. `qa` and
|
|
175
|
+
`review` are gtd's built-in steering-file MODES — validators, not formatters: a
|
|
173
176
|
mode's `format:` and `validate:` are shell commands a workflow (or a project's
|
|
174
177
|
`.gtdrc`) declares for itself, so you bring your own formatter and your own
|
|
175
178
|
checkers (see
|