@richjava/req0 0.6.0 → 0.7.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
@@ -10,18 +10,14 @@ Req0 allows you to keep structured requirement packs in your product git repo. T
10
10
 
11
11
  A local **cockpit** runs that loop: a coding agent (Cursor, Copilot, Claude, or Codex) interviews you, drafts frozen-grammar `requirement.md`, and later implements — only after you answer, a compiler checks the grammar, and **Jev** (TypeSafe System One) judges Ready. The browser then proves the app against the spec. If proof fails, **Fix from proof** sends that report back so the same agent can repair the implementation — not the spec.
12
12
 
13
+ Implement is optional. On first run pick **I’ll write the code**, or set `"implement": false` in `req0.json` at the product repo root. Req0 then stays on the pack and QA; you implement your own way.
14
+
13
15
  Req0 is a CLI plus a thin HTML cockpit, free and open source. It is not a hosted SaaS.
14
16
 
15
17
  ## Install
16
18
 
17
19
  Node.js **22.15** or newer.
18
20
 
19
- ```bash
20
- npm install -g @richjava/req0
21
- ```
22
-
23
- Or run without a global install:
24
-
25
21
  ```bash
26
22
  npx @richjava/req0 start
27
23
  ```
@@ -34,7 +30,7 @@ From the **product** repo (the app you are specifying), not from inside this pac
34
30
 
35
31
  ```bash
36
32
  cd /path/to/your-product
37
- req0 start
33
+ npx @richjava/req0 start
38
34
  ```
39
35
 
40
36
  The cockpit opens at `http://127.0.0.1:4370` (or the next free port). From the requirement list, create a pack with a kebab-case id such as `001`. That writes `docs/requirements/<id>/`. On **Define**, describe the requirement and **Start** — the recorded coding agent interviews you (you can skip questions) and drafts frozen-grammar `requirement.md`. Optional PNG/JPG/WebP go in that pack’s `context/` folder. `req0 create` on the CLI still writes the starter template only.
@@ -69,7 +65,7 @@ docs/requirements/invoice-approval/
69
65
  derived/ # generated; do not hand-edit
70
66
  ```
71
67
 
72
- First run in an empty product repo asks how code should be written (**I’ll write the code**, **Cursor**, **Copilot**, **Claude**, or **Codex**) and, if an agent will implement, which stack. That writes `req0.json`. Set `"implement": false` when Req0 should not own Implement.
68
+ First run asks how code should be written (**I’ll write the code**, **Cursor**, **Copilot**, **Claude**, or **Codex**) and, if an agent will implement, which stack. That writes `req0.json` at the product repo root. Edit that file later: `"implement": false` turns Implement off (same as **I’ll write the code**); `"adapter": "cursor"` (or `copilot`, `claude`, `codex`) records which CLI to launch.
73
69
 
74
70
  Copy names-only env vars into `.env` as needed. Do not put secrets in `.env.example`.
75
71
 
@@ -304,10 +304,11 @@ body {
304
304
  #all-requirements {
305
305
  display: inline-flex;
306
306
  align-items: center;
307
+ justify-content: flex-start;
307
308
  gap: 6px;
308
309
  flex-shrink: 0;
309
310
  white-space: nowrap;
310
- align-self: center;
311
+ align-self: flex-start;
311
312
  }
312
313
 
313
314
  #all-requirements svg {
@@ -1797,6 +1798,10 @@ body {
1797
1798
  align-items: stretch;
1798
1799
  }
1799
1800
 
1801
+ #all-requirements {
1802
+ align-self: flex-start;
1803
+ }
1804
+
1800
1805
  .pack-row {
1801
1806
  flex-direction: column;
1802
1807
  align-items: stretch;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@richjava/req0",
3
- "version": "0.6.0",
3
+ "version": "0.7.0",
4
4
  "description": "Requirement operating system: spec packs, a local cockpit, Jev, coding-agent implement, and browser proof.",
5
5
  "license": "MIT",
6
6
  "type": "module",