@pmelab/gtd 6.14.0 → 7.1.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 CHANGED
@@ -49,28 +49,28 @@ Or run without installing:
49
49
  npx @pmelab/gtd
50
50
  ```
51
51
 
52
- Then scaffold the workflow for the repo — run once:
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` for the bundled unified workflow, with each agent
59
- state's prompt saved as an editable Markdown file under `gtd-prompts/` and
60
- referenced from the config (review and commit both). Edit a prompt by editing
61
- its `gtd-prompts/*.md` file — no config edit needed. File references resolve
62
- relative to **the `.gtdrc` that declares them**, so a config and its
63
- `gtd-prompts/` can even live in a parent directory shared across repos while gtd
64
- runs from each repo root — run `gtd init` from that parent directory (it need
65
- not be a git repo) to scaffold it there (see
66
- [Configuration](docs/configuration.md#content-values-inline-or-a-file-reference)).
67
- It also seeds a top-level `modes:` block suggesting **Prettier** as the
68
- steering-file formatter (`npx prettier --write` for the built-in `qa`/`review`
69
- modes — format only, so gtd still validates); edit or drop it freely (swap in
70
- dprint, a script, or delete the key). `gtd init` takes no argument. gtd ships
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
 
@@ -91,6 +91,8 @@ Four commands drive it:
91
91
  - **`gtd fix`** — start a brand new process that goes straight into repairing
92
92
  the current failing tests, then runs the shared review/squash tail (a no-op if
93
93
  the suite is already green).
94
+ - **`gtd visualize`** — serve an interactive diagram of the active workflow on a
95
+ local web server (the main flow, its sub-machines, and per-state details).
94
96
 
95
97
  `gtd version` (or `gtd --version`/`-v`) prints the installed version and exits;
96
98
  `gtd help` (or `gtd --help`/`-h`) prints the command list. Both short-circuit
@@ -182,8 +184,8 @@ Both halves are enforced by `gtd validate` and the `gtd step` gate.
182
184
  ## Documentation
183
185
 
184
186
  - [STATES.md](STATES.md) — the full pattern-machine specification: the model,
185
- the pattern grammar, resolution, retry, the squash lifecycle, and the bundled
186
- workflow templates
187
+ the pattern grammar, resolution, retry, the squash lifecycle, reusable
188
+ sub-machines, and the bundled workflow template
187
189
  - [CLI reference](docs/cli.md) — every command, exit codes, JSON schemas,
188
190
  repository requirements
189
191
  - [Driving the loop](docs/loop.md) — the reference loop driver, `gtd-loop`,