@softdesignbrasil/productdock-cli 0.15.0 → 0.16.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 +247 -6
- package/dist/productdock.js +87 -87
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -147,8 +147,8 @@ productdock <operation> --repository-id <uuid>
|
|
|
147
147
|
| `--repository-id <uuid>` | Repository the operation runs against — overrides `project.repository` |
|
|
148
148
|
|
|
149
149
|
One exception: the `eval` commands work on a project-level evaluation and
|
|
150
|
-
never use the repository UUID. `eval latest` and `eval
|
|
151
|
-
`repository_key` (`--repository <key>`); `eval submit` takes the repository of
|
|
150
|
+
never use the repository UUID. `eval latest`, `eval list` and `eval history`
|
|
151
|
+
filter by `repository_key` (`--repository <key>`); `eval submit` takes the repository of
|
|
152
152
|
the execution from the envelope's label (`target.repositories[0]`) or from
|
|
153
153
|
`--repository-name`. None of them offers `--repository-id`, and passing it
|
|
154
154
|
exits `1` before any network call — see `productdock eval` below and
|
|
@@ -158,6 +158,11 @@ The same holds for `test-report submit`: the test suite report belongs to the
|
|
|
158
158
|
project, so the repository UUID is not sent and `--repository-id` exits `1`
|
|
159
159
|
before any network call — see `productdock test-report` below.
|
|
160
160
|
|
|
161
|
+
And for `sprint list` and `sprint items`: a sprint belongs to the project, so
|
|
162
|
+
neither sends the repository UUID — `sprint items` lists every work item of the
|
|
163
|
+
sprint, not only the ones of the linked repository — and `--repository-id`
|
|
164
|
+
exits `1` before any network call — see `productdock sprint` below.
|
|
165
|
+
|
|
161
166
|
In a tree that was never linked, an operation that needs a project exits `1`,
|
|
162
167
|
naming **the directories it searched** — from the current one up to the
|
|
163
168
|
filesystem root — and telling you to run `productdock link` at the repository
|
|
@@ -480,7 +485,7 @@ summary goes to `stderr`.
|
|
|
480
485
|
| Subcommand | `data` |
|
|
481
486
|
| -------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
|
482
487
|
| `prd` | `{ content, status, version, updated_at }` — the latest PRD version. A work item with no PRD returns `{ content: null, message }`, which is a **success**, not an error |
|
|
483
|
-
| `list` | `{ project_id, work_item_prefix, repository_id, has_more, items[] }`; each item is `{ id, item_number, title, description, type, status, flow_mode, current_phase, assigned_to, assigned_to_name }` — `assigned_to` is the assignee's user id and `assigned_to_name` the readable name, both `null` when nobody is assigned. Capped at 100 items — `has_more: true` says the cap was hit. Without `--json`, the summary shows
|
|
488
|
+
| `list` | `{ project_id, work_item_prefix, repository_id, has_more, items[] }`; each item is `{ id, item_number, title, description, type, status, flow_mode, current_phase, assigned_to, assigned_to_name, wave, affected_release }` — `assigned_to` is the assignee's user id and `assigned_to_name` the readable name, both `null` when nobody is assigned; `wave` is the item's wave `{ id, code, name }` and `affected_release` its affected version `{ id, version, status, repository: { id, name } }`, each `null` when the item has none (the keys are always present). Capped at 100 items — `has_more: true` says the cap was hit. Without `--json`, the summary shows next to each item the assignee (`(sem responsável)` when there is none), the wave by its `code` (`(sem onda)`) and the affected version by its `version` (`(sem versão)`) |
|
|
484
489
|
| `spec-context` | `{ product_brief, product_brief_status, product_vision, domain_model, discovery_insights, non_functional_requirements, sibling_specs, skill_mode, current_state, repository_id }`. `skill_mode` is the project's Lite Mode toggle (`full` / `lite`) |
|
|
485
490
|
|
|
486
491
|
##### Exit codes
|
|
@@ -1246,8 +1251,9 @@ The general table above holds; this is how each condition maps to it:
|
|
|
1246
1251
|
|
|
1247
1252
|
Served by the `/cli/evaluations` endpoints of the ProductDock API. They are the
|
|
1248
1253
|
same operations the MCP server exposes as the `submit_eval` tool (`eval submit`,
|
|
1249
|
-
the write), the `get_eval_report` tool (`eval latest`, the read)
|
|
1250
|
-
`list_eval_repositories` tool (`eval list`, the evaluated repositories)
|
|
1254
|
+
the write), the `get_eval_report` tool (`eval latest`, the read), the
|
|
1255
|
+
`list_eval_repositories` tool (`eval list`, the evaluated repositories) and the
|
|
1256
|
+
`get_eval_history` tool (`eval history`, the score history), and they
|
|
1251
1257
|
return the same body — the CLI and the MCP call the same code on the server, so
|
|
1252
1258
|
the envelope validation, the write and the report selection are one
|
|
1253
1259
|
implementation, not two.
|
|
@@ -1303,6 +1309,9 @@ productdock eval latest --type observability --repository productdock-api \
|
|
|
1303
1309
|
|
|
1304
1310
|
# Which repositories have a security evaluation — the keys --repository takes
|
|
1305
1311
|
productdock eval list --type security --json
|
|
1312
|
+
|
|
1313
|
+
# How the security score of one repository evolved — date, score and previous score
|
|
1314
|
+
productdock eval history --type security --repository productdock-api
|
|
1306
1315
|
```
|
|
1307
1316
|
|
|
1308
1317
|
The subcommand also accepts `--json` and `--project-id`, documented once at the
|
|
@@ -1532,6 +1541,96 @@ The general table above holds; this is how each condition maps to it:
|
|
|
1532
1541
|
| `1` | Missing `--type`; `--repository-id` given (refused before any network call); directory not linked and no `--project-id`; unknown `eval_type` (`400`); not a member of the project (`403` — `not_member`, or `project_membership_required` with only "Ver todos os projetos"); any other API failure |
|
|
1533
1542
|
| `2` | The API rejected the token (`401`) — run `productdock login` again |
|
|
1534
1543
|
|
|
1544
|
+
#### `productdock eval history`
|
|
1545
|
+
|
|
1546
|
+
Shows the executions of one `eval_type` for **one** repository of the project,
|
|
1547
|
+
oldest first — each with its date, its score and the score of the execution
|
|
1548
|
+
before it. Served by `GET /cli/evaluations/history`; it is the same operation
|
|
1549
|
+
the MCP server exposes as the `get_eval_history` tool, and it returns the same
|
|
1550
|
+
body — the one the score chart of the Eval screen gets.
|
|
1551
|
+
|
|
1552
|
+
Without `--repository`, the repository is the one of the most recent execution
|
|
1553
|
+
of the type — the `project.repository` of `productdock.json` does **not** go
|
|
1554
|
+
along. `--repository` takes the `repository_key` that `eval list` returns; it
|
|
1555
|
+
is sent as is, not normalized. One repository per call: run it once per key to
|
|
1556
|
+
compare repositories.
|
|
1557
|
+
|
|
1558
|
+
**Only members of the project read it**, exactly as `eval latest`: a portal
|
|
1559
|
+
client, a non-member and someone who only has "Ver todos os projetos" get a
|
|
1560
|
+
`403` — `not_member` for the first two, `project_membership_required` for the
|
|
1561
|
+
third — and the server reads as you, with your token. `--repository-id` is
|
|
1562
|
+
refused exactly as in `eval latest`: exit `1` before any network call.
|
|
1563
|
+
|
|
1564
|
+
```bash
|
|
1565
|
+
# The last 10 executions of the repository of the latest security evaluation
|
|
1566
|
+
productdock eval history --type security
|
|
1567
|
+
|
|
1568
|
+
# The whole history of one repository, machine-readable, saved to a file
|
|
1569
|
+
productdock eval history --type observability --repository productdock-api \
|
|
1570
|
+
--limit all --json --out eval-history.json
|
|
1571
|
+
|
|
1572
|
+
# The 5 executions up to (and including) one execution
|
|
1573
|
+
productdock eval history --type security --limit 5 --until <execution_id> --json
|
|
1574
|
+
```
|
|
1575
|
+
|
|
1576
|
+
##### Parameters
|
|
1577
|
+
|
|
1578
|
+
| Subcommand | Argument | Options |
|
|
1579
|
+
| ---------- | -------- | --------------------------------------------------------------- |
|
|
1580
|
+
| `history` | — | `--type` · `--repository` · `--limit` · `--until` · `--out` |
|
|
1581
|
+
|
|
1582
|
+
| Parameter | Description |
|
|
1583
|
+
| ------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
|
1584
|
+
| `--type <eval_type>` | **Required.** `security`, `observability`, `frontend_quality` or `backend_quality`. Sent as typed — the list of types is the server's, and an unknown type comes back as a `400` naming the options |
|
|
1585
|
+
| `--repository <key>` | The `repository_key` of a previous answer (`eval list`): that repository. Without it, the repository of the most recent execution of the type |
|
|
1586
|
+
| `--limit <n\|all>` | How many executions, the most recent ones: an integer from `1` to `200`, or `all` for the whole history. Default `10`. Sent as typed — a value out of range comes back as a `400` |
|
|
1587
|
+
| `--until <execution_id>` | The id of an execution of that repository: the history ends there, inclusive, without the later ones. An id that is not an execution of the project, type and repository is a `404` |
|
|
1588
|
+
| `--out <file>` | Writes the response document to this file as well. The file gets the exact text `stdout` gets, written atomically |
|
|
1589
|
+
|
|
1590
|
+
##### Response format
|
|
1591
|
+
|
|
1592
|
+
Under `--json`, `stdout` carries one document with the API response untouched
|
|
1593
|
+
under `data`:
|
|
1594
|
+
|
|
1595
|
+
```jsonc
|
|
1596
|
+
{
|
|
1597
|
+
"ok": true,
|
|
1598
|
+
"operation": "get_eval_history",
|
|
1599
|
+
"data": {
|
|
1600
|
+
/* the body below */
|
|
1601
|
+
},
|
|
1602
|
+
}
|
|
1603
|
+
```
|
|
1604
|
+
|
|
1605
|
+
Without `--json`, `stdout` stays empty and a summary goes to `stderr`: the
|
|
1606
|
+
repository, then one line per execution — date, score, previous score and the
|
|
1607
|
+
execution id.
|
|
1608
|
+
|
|
1609
|
+
| Field | Meaning |
|
|
1610
|
+
| ------------------ | --------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
|
1611
|
+
| `repository_key` | Key of the repository the history belongs to — the value `--repository` takes; `null` when there is no execution |
|
|
1612
|
+
| `repository_label` | Label of the repository in its most recent execution; `null` when there is no execution |
|
|
1613
|
+
| `runs` | The executions, oldest first: `id` (the `execution_id` that `eval latest --execution-id` and `--until` take), `executed_at`, `score` and `previous_score` |
|
|
1614
|
+
| `previous_score` | Score of the execution right before, of the same repository — **even when it is outside the returned window**; `null` only for the first execution of the history |
|
|
1615
|
+
|
|
1616
|
+
There is no `rating` in this answer: read one execution with
|
|
1617
|
+
`productdock eval latest --execution-id <id>` for it.
|
|
1618
|
+
|
|
1619
|
+
**No execution is a success, not an error.** When the project has no execution
|
|
1620
|
+
of that type (or of that repository), the API answers `200` with `runs: []` and
|
|
1621
|
+
both keys `null`: the exit code is `0`, and the summary on `stderr` says no
|
|
1622
|
+
execution was found.
|
|
1623
|
+
|
|
1624
|
+
##### Exit codes
|
|
1625
|
+
|
|
1626
|
+
The general table above holds; this is how each condition maps to it:
|
|
1627
|
+
|
|
1628
|
+
| Code | When |
|
|
1629
|
+
| ---- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
|
1630
|
+
| `0` | The history was read — including an empty one (`runs: []`) |
|
|
1631
|
+
| `1` | Missing `--type`; `--repository-id` given (refused before any network call — use `--repository <key>`); directory not linked and no `--project-id`; invalid parameter (`400` — unknown `eval_type`, `--limit` out of range, malformed `--until`); `--until` not an execution of that repository (`404` — `evaluation_run_not_found`); not a member of the project (`403` — `not_member`, or `project_membership_required` with only "Ver todos os projetos"); any other API failure |
|
|
1632
|
+
| `2` | The API rejected the token (`401`) — run `productdock login` again |
|
|
1633
|
+
|
|
1535
1634
|
### `productdock test-report` — test suite reports
|
|
1536
1635
|
|
|
1537
1636
|
Served by the `/cli/test-reports` endpoint of the ProductDock API. It is the
|
|
@@ -1624,6 +1723,147 @@ The general table above holds; this is how each condition maps to it:
|
|
|
1624
1723
|
| `1` | Missing `<file>`; unreadable file; the file is not a JSON object; `--repository-id` given (refused before any network call); directory not linked and no `--project-id`; **invalid report (`400`) — the response names the offending field, and nothing was written**; not a member of the project (`403`); report above the server's size limit (`413`) — one message, with the size that was sent; any other API failure |
|
|
1625
1724
|
| `2` | The API rejected the token (`401`) — run `productdock login` again |
|
|
1626
1725
|
|
|
1726
|
+
### `productdock sprint` — project sprints
|
|
1727
|
+
|
|
1728
|
+
Served by `GET /cli/sprints` and `GET /cli/work-items` of the ProductDock API.
|
|
1729
|
+
They are the same operations the MCP server exposes as the `list_sprints` tool
|
|
1730
|
+
(`sprint list`) and the `list_work_items` tool with its `sprint_id` filter
|
|
1731
|
+
(`sprint items`), and they return the same body — the CLI and the MCP call the
|
|
1732
|
+
same code on the server.
|
|
1733
|
+
|
|
1734
|
+
**A sprint belongs to the project.** Neither command sends a repository: the
|
|
1735
|
+
`project.repository` of `productdock.json` does **not** go along, and
|
|
1736
|
+
`--repository-id` is refused — exit `1` before any network call. That is what
|
|
1737
|
+
makes `sprint items` list every work item of the sprint, and not only the ones
|
|
1738
|
+
of the linked repository.
|
|
1739
|
+
|
|
1740
|
+
**Reading requires access to the project** — the same rule as `wi list`: a
|
|
1741
|
+
call from someone with no access exits `1` with a `403`.
|
|
1742
|
+
|
|
1743
|
+
```bash
|
|
1744
|
+
# The sprints of the linked project — the current one is marked
|
|
1745
|
+
productdock sprint list
|
|
1746
|
+
|
|
1747
|
+
# Machine-readable, saved to a file — the id of each sprint is what `items` takes
|
|
1748
|
+
productdock sprint list --json --out sprints.json
|
|
1749
|
+
|
|
1750
|
+
# The work items of one sprint, by its id (UUID)
|
|
1751
|
+
productdock sprint items 5a5a5a5a-1111-4111-8111-5a5a5a5a5a5a --json
|
|
1752
|
+
```
|
|
1753
|
+
|
|
1754
|
+
Both subcommands also accept `--json` and `--project-id`, documented once at
|
|
1755
|
+
the top of [Commands](#commands).
|
|
1756
|
+
|
|
1757
|
+
#### `productdock sprint list`
|
|
1758
|
+
|
|
1759
|
+
Lists every sprint of the project, ordered by number — no pagination.
|
|
1760
|
+
|
|
1761
|
+
##### Parameters
|
|
1762
|
+
|
|
1763
|
+
| Subcommand | Argument | Options |
|
|
1764
|
+
| ---------- | -------- | ------------------------ |
|
|
1765
|
+
| `list` | — | `--project-id` · `--out` |
|
|
1766
|
+
|
|
1767
|
+
| Parameter | Description |
|
|
1768
|
+
| --------------------- | ---------------------------------------------------------------------------------------------------------------- |
|
|
1769
|
+
| `--project-id <uuid>` | Project whose sprints are listed — overrides `project.id` of `productdock.json`, for this call only |
|
|
1770
|
+
| `--out <file>` | Writes the response document to this file as well. The file gets the exact text `stdout` gets, written atomically |
|
|
1771
|
+
|
|
1772
|
+
##### Response format
|
|
1773
|
+
|
|
1774
|
+
Under `--json`, `stdout` carries one document with the API response untouched
|
|
1775
|
+
under `data`:
|
|
1776
|
+
|
|
1777
|
+
```jsonc
|
|
1778
|
+
{
|
|
1779
|
+
"ok": true,
|
|
1780
|
+
"operation": "list_sprints",
|
|
1781
|
+
"data": {
|
|
1782
|
+
/* the body below */
|
|
1783
|
+
},
|
|
1784
|
+
}
|
|
1785
|
+
```
|
|
1786
|
+
|
|
1787
|
+
Without `--json`, `stdout` stays empty and a summary goes to `stderr`: one line
|
|
1788
|
+
per sprint — number, name, status, dates and id —, the current one marked.
|
|
1789
|
+
|
|
1790
|
+
| Field | Meaning |
|
|
1791
|
+
| ----------------- | ------------------------------------------------------------------------------------------------------------ |
|
|
1792
|
+
| `project_id` | The project the sprints belong to |
|
|
1793
|
+
| `sprints_enabled` | Whether the Sprints module is on in the project. Off, the sprints already created are still listed |
|
|
1794
|
+
| `sprints` | One entry per sprint, by `number` |
|
|
1795
|
+
| `sprints[].id` | The sprint's UUID — the `<id>` that `sprint items` takes |
|
|
1796
|
+
| `sprints[].number`, `name`, `start_date`, `end_date`, `goal` | Number, name, dates (`YYYY-MM-DD`) and goal (`null` when none) |
|
|
1797
|
+
| `sprints[].status`, `status_label` | `planned`, `active` or `closed`, and the label the Sprints screen shows (Planejada, Ativa, Encerrada) |
|
|
1798
|
+
| `sprints[].is_current` | `true` for the active sprint |
|
|
1799
|
+
| `sprints[].started_at`, `closed_at` | When the sprint was started and closed on the platform; `null` until it happens |
|
|
1800
|
+
|
|
1801
|
+
**No sprint is a success, not an error.** A project without sprints answers
|
|
1802
|
+
`200` with `sprints: []`, and a project with the module off answers `200` with
|
|
1803
|
+
`sprints_enabled: false`: the exit code is `0` in both, and the summary on
|
|
1804
|
+
`stderr` says so.
|
|
1805
|
+
|
|
1806
|
+
##### Exit codes
|
|
1807
|
+
|
|
1808
|
+
The general table above holds; this is how each condition maps to it:
|
|
1809
|
+
|
|
1810
|
+
| Code | When |
|
|
1811
|
+
| ---- | ------------------------------------------------------------------------------------------------------------------------------------------------------------ |
|
|
1812
|
+
| `0` | The sprints were read — including none (`sprints: []`) and the module off (`sprints_enabled: false`) |
|
|
1813
|
+
| `1` | `--repository-id` given (refused before any network call); directory not linked and no `--project-id`; no access to the project (`403`); any other API failure |
|
|
1814
|
+
| `2` | The API rejected the token (`401`) — run `productdock login` again |
|
|
1815
|
+
|
|
1816
|
+
#### `productdock sprint items`
|
|
1817
|
+
|
|
1818
|
+
Lists the work items currently assigned to one sprint — by its `id`, the UUID
|
|
1819
|
+
`sprint list` returns; a number or a name is not accepted. Served by
|
|
1820
|
+
`GET /cli/work-items?sprint_id=<id>`, with the response of `wi list`: the same
|
|
1821
|
+
cap of 100 items, with `has_more`.
|
|
1822
|
+
|
|
1823
|
+
##### Parameters
|
|
1824
|
+
|
|
1825
|
+
| Subcommand | Argument | Options |
|
|
1826
|
+
| ------------ | -------- | ------------------------ |
|
|
1827
|
+
| `items <id>` | `<id>` | `--project-id` · `--out` |
|
|
1828
|
+
|
|
1829
|
+
| Parameter | Description |
|
|
1830
|
+
| --------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
|
1831
|
+
| `<id>` | **Required.** The sprint's id (UUID), as `sprint list` returns it. Missing, it fails locally (exit `1`) without a network call; the format is checked by the server |
|
|
1832
|
+
| `--project-id <uuid>` | Project the sprint belongs to — overrides `project.id` of `productdock.json`, for this call only |
|
|
1833
|
+
| `--out <file>` | Writes the response document to this file as well. The file gets the exact text `stdout` gets, written atomically |
|
|
1834
|
+
|
|
1835
|
+
##### Response format
|
|
1836
|
+
|
|
1837
|
+
Under `--json`, `stdout` carries one document with the API response untouched
|
|
1838
|
+
under `data`:
|
|
1839
|
+
|
|
1840
|
+
```jsonc
|
|
1841
|
+
{
|
|
1842
|
+
"ok": true,
|
|
1843
|
+
"operation": "list_work_items",
|
|
1844
|
+
"data": {
|
|
1845
|
+
/* the body of `wi list`, only with the items of the sprint */
|
|
1846
|
+
},
|
|
1847
|
+
}
|
|
1848
|
+
```
|
|
1849
|
+
|
|
1850
|
+
Without `--json`, `stdout` stays empty and a summary goes to `stderr`: one line
|
|
1851
|
+
per work item — reference, status, assignee and title.
|
|
1852
|
+
|
|
1853
|
+
`data` is the body `wi list` gets — `project_id`, `work_item_prefix`,
|
|
1854
|
+
`has_more` and `items` —, only with the items of the sprint. **A sprint with no
|
|
1855
|
+
work item is a success**: `items` is `[]` and the exit code is `0`.
|
|
1856
|
+
|
|
1857
|
+
##### Exit codes
|
|
1858
|
+
|
|
1859
|
+
The general table above holds; this is how each condition maps to it:
|
|
1860
|
+
|
|
1861
|
+
| Code | When |
|
|
1862
|
+
| ---- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
|
1863
|
+
| `0` | The work items were read — including none (`items: []`) |
|
|
1864
|
+
| `1` | Missing `<id>`; `--repository-id` given (refused before any network call); directory not linked and no `--project-id`; malformed id (`400`, naming `sprint_id`); sprint not found in the project (`404` — `sprint_not_found`); no access to the project (`403`); any other API failure |
|
|
1865
|
+
| `2` | The API rejected the token (`401`) — run `productdock login` again |
|
|
1866
|
+
|
|
1627
1867
|
### `productdock state` — the SDLC state of a work item
|
|
1628
1868
|
|
|
1629
1869
|
Served by the `/cli/state` endpoints of the ProductDock API. They are the same
|
|
@@ -2131,8 +2371,9 @@ bun test test/output.test.ts
|
|
|
2131
2371
|
| `lib/code.ts` | The `code` command group — `map` and `search` over `/cli/code/*` |
|
|
2132
2372
|
| `lib/phase-artifacts.ts` | The `artifact` command group — `submit` over `/cli/artifacts`, body from a file |
|
|
2133
2373
|
| `lib/prd-review.ts` | The `prd-review` command group — `get` (mandatory read-back) and `submit` over `/cli/prd-review`, and `claim`/`release` of the interactive Tech Review request |
|
|
2134
|
-
| `lib/evaluations.ts` | The `eval` command group — `submit` over `/cli/evaluations` (envelope from a file), `latest` over `/cli/evaluations/report` and `
|
|
2374
|
+
| `lib/evaluations.ts` | The `eval` command group — `submit` over `/cli/evaluations` (envelope from a file), `latest` over `/cli/evaluations/report`, `list` over `/cli/evaluations/repositories` and `history` over `/cli/evaluations/history`, project-level |
|
|
2135
2375
|
| `lib/test-reports.ts` | The `test-report` command group — `submit` over `/cli/test-reports` (report from a file), project-level |
|
|
2376
|
+
| `lib/sprints.ts` | The `sprint` command group — `list` over `/cli/sprints` and `items <id>` over `/cli/work-items?sprint_id=`, project-level |
|
|
2136
2377
|
| `lib/sdlc-state.ts` | The `state` command group — `phase` over `/cli/state/phase` and `update` over `/cli/state`, the read/write pair over the same state |
|
|
2137
2378
|
| `lib/prd-review-jobs.ts` | Tech Review queue client — `claim` (by work item, interactive), `heartbeat`, `release` and `finish` over `/cli/prd-review-jobs/*` |
|
|
2138
2379
|
| `lib/watch.ts` | The `watch` command — the PRD Tech Review runner: disposable worktree, the two Claude Code stages, heartbeat — no question during the round |
|