@richjava/req0 0.2.0 → 0.4.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 +6 -5
- package/cockpit/app.js +639 -34
- package/cockpit/index.html +51 -3
- package/cockpit/styles.css +109 -5
- package/dist/agent-questions.d.ts +59 -0
- package/dist/agent-questions.js +327 -0
- package/dist/author.d.ts +103 -0
- package/dist/author.js +435 -0
- package/dist/cli.js +6 -2
- package/dist/fix-from-proof.js +2 -0
- package/dist/implement-brief.js +2 -1
- package/dist/implement.d.ts +6 -0
- package/dist/implement.js +71 -20
- package/dist/improve.js +4 -3
- package/dist/pack.d.ts +63 -2
- package/dist/pack.js +330 -13
- package/dist/ready.js +7 -0
- package/dist/server.d.ts +3 -1
- package/dist/server.js +286 -7
- package/dist/types.d.ts +7 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -6,11 +6,11 @@
|
|
|
6
6
|
|
|
7
7
|
# Req0
|
|
8
8
|
|
|
9
|
-
Req0 is a **requirement operating system** for a product git repo.
|
|
9
|
+
Req0 is a **requirement operating system** for a product git repo. One structured pack drives definition, implementation, and proof — not a ticket, a chat, or a separate test script.
|
|
10
10
|
|
|
11
|
-
A local **cockpit**
|
|
11
|
+
A local **cockpit** runs that loop: a coding agent (Cursor or Copilot) 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
|
-
Req0 is a CLI plus a thin HTML cockpit. It is not a hosted SaaS.
|
|
13
|
+
Req0 is a CLI plus a thin HTML cockpit, free and open source. It is not a hosted SaaS.
|
|
14
14
|
|
|
15
15
|
## Install
|
|
16
16
|
|
|
@@ -37,9 +37,9 @@ cd /path/to/your-product
|
|
|
37
37
|
req0 start
|
|
38
38
|
```
|
|
39
39
|
|
|
40
|
-
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
|
|
40
|
+
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.
|
|
41
41
|
|
|
42
|
-
|
|
42
|
+
You can also edit `requirement.md` yourself. Save compiles. Spec Valid means the [grammar](https://github.com/richjava/req0/blob/main/docs/grammar.md) parsed — it does not mean the spec is ready to implement. With a TypeSafe key, authoring keeps going until Ready is Clear; without one, it stops at Spec Valid.
|
|
43
43
|
|
|
44
44
|
## Commands
|
|
45
45
|
|
|
@@ -65,6 +65,7 @@ docs/requirements/invoice-approval/
|
|
|
65
65
|
requirement.md
|
|
66
66
|
fixtures/personas.yaml # test users, never production credentials
|
|
67
67
|
fixtures/runtime.yaml # app URL and login selectors for Prove
|
|
68
|
+
context/ # optional screenshots the authoring agent can Read
|
|
68
69
|
derived/ # generated; do not hand-edit
|
|
69
70
|
```
|
|
70
71
|
|