reffy-cli 0.7.0 → 1.1.1
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 +35 -24
- package/dist/cli.js +539 -36
- package/dist/diagram.js +2 -2
- package/dist/doctor.d.ts +1 -4
- package/dist/doctor.js +8 -12
- package/dist/index.d.ts +2 -0
- package/dist/index.js +2 -0
- package/dist/manifest.js +13 -0
- package/dist/plan-archive.d.ts +8 -0
- package/dist/plan-archive.js +169 -0
- package/dist/plan-runtime.d.ts +35 -0
- package/dist/plan-runtime.js +218 -0
- package/dist/plan.d.ts +25 -0
- package/dist/plan.js +298 -0
- package/dist/planning-paths.d.ts +18 -0
- package/dist/planning-paths.js +56 -0
- package/dist/planning-workspace.d.ts +8 -0
- package/dist/planning-workspace.js +76 -0
- package/dist/refs-paths.d.ts +13 -0
- package/dist/refs-paths.js +34 -9
- package/dist/spec-runtime.d.ts +14 -0
- package/dist/spec-runtime.js +82 -0
- package/dist/storage.d.ts +6 -0
- package/dist/storage.js +50 -0
- package/dist/types.d.ts +3 -0
- package/dist/workspace.d.ts +8 -0
- package/dist/workspace.js +51 -0
- package/package.json +14 -2
package/README.md
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
[](LICENSE)
|
|
5
5
|
[](https://github.com/RoskiDeluge/reffy-ts/actions/workflows/ci.yml)
|
|
6
6
|
|
|
7
|
-
Reffy is
|
|
7
|
+
Reffy is a CLI-first planning system for agent-friendly development workflows. It keeps ideation artifacts in straightforward version-controlled markdown files and manages formal planning files under `reffyspec/`.
|
|
8
8
|
|
|
9
9
|
## Install
|
|
10
10
|
|
|
@@ -17,19 +17,23 @@ npm install -g reffy-cli@latest
|
|
|
17
17
|
Inside your project:
|
|
18
18
|
|
|
19
19
|
```bash
|
|
20
|
+
cd your-project
|
|
20
21
|
reffy init
|
|
21
|
-
reffy bootstrap
|
|
22
22
|
```
|
|
23
23
|
|
|
24
24
|
Command summary:
|
|
25
25
|
|
|
26
|
-
- `reffy init`:
|
|
27
|
-
- `reffy bootstrap`:
|
|
28
|
-
- `reffy
|
|
26
|
+
- `reffy init`: runs the canonical first-run setup flow, creates the `.reffy/` and `reffyspec/` structure, writes managed instructions, reindexes artifacts, and on first-run text output prints a copy/paste instruction for your agent harness.
|
|
27
|
+
- `reffy bootstrap`: compatibility alias for `reffy init`.
|
|
28
|
+
- `reffy migrate`: migrates a legacy `.references/` workspace into `.reffy/`.
|
|
29
|
+
- `reffy doctor`: diagnoses required Reffy setup and workspace health.
|
|
29
30
|
- `reffy reindex`: reconciles `.reffy/manifest.json` with `.reffy/artifacts` by adding missing files and removing stale entries.
|
|
30
31
|
- `reffy validate`: validates `.reffy/manifest.json` against manifest v1 contract.
|
|
31
32
|
- `reffy summarize`: generates a read-only handoff summary from indexed artifacts.
|
|
32
|
-
- `reffy
|
|
33
|
+
- `reffy plan create`: generates proposal, task, design, and spec scaffolds from indexed Reffy artifacts.
|
|
34
|
+
- `reffy plan validate|list|show|archive`: manages the planning lifecycle under `reffyspec/`.
|
|
35
|
+
- `reffy spec list|show`: inspects current spec state under `reffyspec/`.
|
|
36
|
+
- `reffy diagram render`: renders Mermaid diagrams as SVG or ASCII, including spec-aware generation from compatible `spec.md` files.
|
|
33
37
|
|
|
34
38
|
Output modes:
|
|
35
39
|
|
|
@@ -46,34 +50,32 @@ reffy doctor --output text
|
|
|
46
50
|
reffy doctor --output json
|
|
47
51
|
reffy summarize --output text
|
|
48
52
|
reffy summarize --output json
|
|
53
|
+
reffy plan create --change-id add-login-flow --artifacts login-idea.md
|
|
54
|
+
reffy plan list --output json
|
|
55
|
+
reffy plan archive add-login-flow
|
|
56
|
+
reffy spec show auth --output json
|
|
49
57
|
reffy diagram render --stdin --format svg < diagram.mmd
|
|
50
|
-
reffy diagram render --input
|
|
51
|
-
reffy diagram render --input
|
|
58
|
+
reffy diagram render --input reffyspec/specs/auth/spec.md --format ascii
|
|
59
|
+
reffy diagram render --input reffyspec/specs/auth/spec.md --format svg --output .reffy/artifacts/auth-spec.svg
|
|
52
60
|
```
|
|
53
61
|
|
|
54
|
-
## Using Reffy With
|
|
62
|
+
## Using Reffy With ReffySpec
|
|
55
63
|
|
|
56
|
-
|
|
64
|
+
A practical pattern is:
|
|
57
65
|
|
|
58
|
-
1. Use Reffy for ideation and context capture in `.reffy/`.
|
|
59
|
-
2. Use
|
|
60
|
-
3. Keep a clear
|
|
66
|
+
1. Use Reffy for ideation and context capture in `.reffy/artifacts/`.
|
|
67
|
+
2. Use Reffy to scaffold and manage planning files in `reffyspec/`.
|
|
68
|
+
3. Keep a clear traceable path from exploratory artifacts to formal specs.
|
|
69
|
+
4. Use Reffy commands for day-to-day workflow.
|
|
61
70
|
|
|
62
71
|
Reference implementation in this repo:
|
|
63
72
|
|
|
64
73
|
- `AGENTS.md`: contains both managed instruction blocks and encodes sequencing.
|
|
65
74
|
- `AGENTS.md`: Reffy block routes ideation/exploration requests to `@/.reffy/AGENTS.md`.
|
|
66
|
-
- `AGENTS.md`:
|
|
67
|
-
- `.reffy/AGENTS.md`: defines
|
|
68
|
-
- `
|
|
69
|
-
- `
|
|
70
|
-
|
|
71
|
-
Practical connection pattern for any repo:
|
|
72
|
-
|
|
73
|
-
1. Run `reffy init` to install/refresh the Reffy instruction layer.
|
|
74
|
-
2. Keep your SDD framework instructions (for example OpenSpec) in the same root `AGENTS.md`.
|
|
75
|
-
3. During planning, cite only relevant Reffy artifacts from `.reffy/artifacts/` in your proposal/spec docs.
|
|
76
|
-
4. Continue implementation in your SDD framework's normal review/approval process.
|
|
75
|
+
- `AGENTS.md`: ReffySpec block routes planning/proposal/spec requests to `@/reffyspec/AGENTS.md`.
|
|
76
|
+
- `.reffy/AGENTS.md`: defines the artifact and ideation workflow.
|
|
77
|
+
- `reffyspec/AGENTS.md`: defines the ReffySpec planning/spec workflow conventions used in this repo.
|
|
78
|
+
- `reffyspec/project.md`: captures durable project context for agents, including purpose, stack, architecture, conventions, and constraints.
|
|
77
79
|
|
|
78
80
|
## Develop
|
|
79
81
|
|
|
@@ -87,3 +89,12 @@ npm test
|
|
|
87
89
|
```
|
|
88
90
|
|
|
89
91
|
`npm install` runs this package's `prepare` step, which builds `dist/` automatically.
|
|
92
|
+
|
|
93
|
+
## Release Security
|
|
94
|
+
|
|
95
|
+
Reffy publishes from GitHub Actions using npm trusted publishing with provenance enabled.
|
|
96
|
+
|
|
97
|
+
To verify an installed package:
|
|
98
|
+
|
|
99
|
+
- Check the package provenance details on npm.
|
|
100
|
+
- Run `npm audit signatures` after install to verify registry signatures and available provenance attestations.
|