@decantr/cli 2.8.1 → 2.9.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 +30 -15
- package/dist/bin.js +5 -4
- package/dist/{chunk-KT2ROK2D.js → chunk-34TZXWIF.js} +1858 -1542
- package/dist/{chunk-RKZMHS2K.js → chunk-6UDJDQPT.js} +3021 -2005
- package/dist/{chunk-FV6DGYD7.js → chunk-FKM4OQDF.js} +106 -18
- package/dist/{chunk-V3XAQWKD.js → chunk-RXF7ZYGK.js} +22 -8
- package/dist/{chunk-PAF4PBD3.js → chunk-TMOCTDYY.js} +28 -8
- package/dist/{content-health-QQHBR6XG.js → content-health-4KP2EGTI.js} +27 -10
- package/dist/{heal-ZYD6NVGE.js → heal-2BDT7TR5.js} +1 -2
- package/dist/{health-ETZXWGTW.js → health-Q7XF3I5Z.js} +2 -3
- package/dist/index.js +5 -4
- package/dist/{studio-G3YOU5YF.js → studio-EDQMI6JE.js} +3 -5
- package/dist/{upgrade-U2BTWJJJ.js → upgrade-VON7Y3LG.js} +1 -1
- package/dist/{workspace-U7J3CJY3.js → workspace-JA2RZI6V.js} +3 -5
- package/package.json +4 -4
- package/dist/chunk-3TH5PLFO.js +0 -331
- package/dist/chunk-VE6N3XWG.js +0 -78
package/README.md
CHANGED
|
@@ -20,7 +20,8 @@ npx @decantr/cli new my-app --blueprint=esports-hq
|
|
|
20
20
|
Use `decantr setup` when you are unsure which path applies. It detects whether the repo is empty, already attached, or a Brownfield app and recommends the next command.
|
|
21
21
|
Use `decantr new` for a greenfield workspace in a fresh directory. With a blueprint/archetype it uses the runnable adapter and Decantr CSS; without registry content it creates a contract-only workspace unless you explicitly pass `--adoption=decantr-css`.
|
|
22
22
|
Use `decantr adopt` when you already have an app and want Decantr governance without adopting a blueprint. Brownfield attach is proposal-driven: Decantr inventories the app, writes an observed essence proposal, and only applies it when you explicitly accept or merge it.
|
|
23
|
-
Use `decantr task` before asking an LLM to modify a route,
|
|
23
|
+
Use `decantr doctor` when the next step is unclear, `decantr task` before asking an LLM to modify a route, `decantr verify` after the edit, and `decantr ci` in required automation. Use `decantr codify --from-audit` when you want project-owned UI patterns and local rules such as button/card/shell/theme standards to appear in future task context and verification.
|
|
24
|
+
In monorepos, app-scoped commands accept `--project <app-path>`. Hosted pack hydration also follows the essence path: `decantr registry compile-packs apps/web/decantr.essence.json --write-context` writes into `apps/web/.decantr/context`.
|
|
24
25
|
Use `decantr init`, `decantr analyze`, `decantr check`, and `decantr health` as advanced primitives when you need direct control over one step.
|
|
25
26
|
|
|
26
27
|
Current starter adapter availability:
|
|
@@ -39,6 +40,9 @@ Explicit workflow/adoption flags:
|
|
|
39
40
|
```bash
|
|
40
41
|
decantr setup
|
|
41
42
|
decantr adopt --yes
|
|
43
|
+
decantr doctor
|
|
44
|
+
decantr ci --fail-on error
|
|
45
|
+
decantr ci init
|
|
42
46
|
decantr codify --from-audit
|
|
43
47
|
decantr codify --accept
|
|
44
48
|
decantr task /feed "add saved recipe actions"
|
|
@@ -68,6 +72,8 @@ pnpm add -D -w @decantr/cli
|
|
|
68
72
|
pnpm exec decantr setup
|
|
69
73
|
pnpm exec decantr workspace list
|
|
70
74
|
pnpm exec decantr adopt --project apps/web --yes
|
|
75
|
+
pnpm exec decantr doctor --project apps/web
|
|
76
|
+
pnpm exec decantr ci init --project apps/web
|
|
71
77
|
```
|
|
72
78
|
|
|
73
79
|
Assistant rule integration is preview-first: `--assistant-bridge=preview` writes `.decantr/context/assistant-bridge.md`, `decantr rules preview` prints the bridge, and `--assistant-bridge=apply` or `decantr rules apply` mutates supported rule files with idempotent marked blocks.
|
|
@@ -77,7 +83,7 @@ Brownfield analysis also writes `.decantr/doctrine-map.json`, a ranked source-pr
|
|
|
77
83
|
## What It Does
|
|
78
84
|
|
|
79
85
|
- scaffolds Decantr projects from blueprints, archetypes, or prompts
|
|
80
|
-
- guides users through human workflow commands: setup, adopt, task, verify, and codify
|
|
86
|
+
- guides users through human workflow commands: setup, adopt, doctor, task, verify, ci, and codify
|
|
81
87
|
- supports explicit workflow lanes: greenfield blueprint, greenfield contract-only, brownfield adoption, and hybrid composition
|
|
82
88
|
- generates execution-pack context files for AI coding assistants
|
|
83
89
|
- audits projects against Decantr contracts
|
|
@@ -95,11 +101,16 @@ decantr setup
|
|
|
95
101
|
decantr new my-app --blueprint=esports-hq
|
|
96
102
|
decantr adopt --yes
|
|
97
103
|
decantr adopt --project apps/web --yes
|
|
104
|
+
decantr doctor
|
|
105
|
+
decantr doctor --project apps/web
|
|
98
106
|
decantr codify --from-audit
|
|
99
107
|
decantr codify --accept
|
|
100
108
|
decantr task /feed "add saved recipe actions"
|
|
101
109
|
decantr verify --brownfield --local-patterns
|
|
102
110
|
decantr verify --base-url http://localhost:3000 --evidence
|
|
111
|
+
decantr ci --project apps/web
|
|
112
|
+
decantr ci --workspace --changed --since origin/main
|
|
113
|
+
decantr ci init --project apps/web
|
|
103
114
|
decantr init --existing --blueprint=esports-hq
|
|
104
115
|
decantr init --workflow=greenfield --adoption=contract-only
|
|
105
116
|
decantr rules preview
|
|
@@ -107,7 +118,6 @@ decantr rules apply
|
|
|
107
118
|
decantr magic "AI-native analytics workspace"
|
|
108
119
|
decantr audit
|
|
109
120
|
decantr check
|
|
110
|
-
decantr verify --ci --fail-on error
|
|
111
121
|
decantr studio --port 4319 --host 127.0.0.1
|
|
112
122
|
decantr telemetry status
|
|
113
123
|
decantr telemetry explain
|
|
@@ -124,7 +134,11 @@ decantr showcase verification --json
|
|
|
124
134
|
|
|
125
135
|
## Project Health And Studio
|
|
126
136
|
|
|
127
|
-
`decantr verify` is the workflow command most users should run locally
|
|
137
|
+
`decantr verify` is the workflow command most users should run locally after edits. It delegates to Project Health, can add Brownfield guard validation with `--brownfield`, requires an accepted local pattern pack with `--local-patterns`, scans `.decantr/rules.json` when present, supports workspace mode, and writes evidence to `.decantr/evidence/latest.json` by default when `--evidence` is used.
|
|
138
|
+
|
|
139
|
+
`decantr doctor` explains project/workspace state, adoption mode, generated artifacts, local law, visual evidence, design authority signals, CI wiring, and the next command to run. It is the command to reach for when an app is in a monorepo, has stale Decantr files, or someone is not sure what Decantr expects next.
|
|
140
|
+
|
|
141
|
+
`decantr ci` is the blessed non-mutating automation gate. It runs the Project Health surface with adoption-mode-aware local law checks and emits a schema-backed CI report. `decantr ci init` writes root GitHub workflows or portable generic snippets using the detected package manager and pinned local CLI command instead of `@latest`.
|
|
128
142
|
|
|
129
143
|
`decantr health` remains the advanced project observability primitive. It composes the existing verifier audit, guard checks, brownfield route drift checks, runtime evidence, and execution-pack files into a `ProjectHealthReport` with a status, score, route summary, pack summary, findings, and AI-ready remediation prompts.
|
|
130
144
|
|
|
@@ -134,12 +148,13 @@ decantr verify --brownfield --local-patterns
|
|
|
134
148
|
decantr verify --brownfield --local-patterns --fail-on warn
|
|
135
149
|
decantr verify --base-url http://localhost:3000 --evidence
|
|
136
150
|
decantr verify --since-baseline
|
|
137
|
-
decantr
|
|
151
|
+
decantr doctor --project apps/registry
|
|
152
|
+
decantr ci --project apps/registry
|
|
153
|
+
decantr ci init --project apps/registry
|
|
154
|
+
decantr ci init --provider generic --project apps/registry
|
|
138
155
|
decantr health
|
|
139
156
|
decantr health --format json
|
|
140
157
|
decantr health --markdown --output health.md
|
|
141
|
-
decantr health --ci --fail-on error
|
|
142
|
-
decantr health --ci --fail-on warn
|
|
143
158
|
decantr health --prompt <finding-id>
|
|
144
159
|
decantr health --evidence --output .decantr/evidence/latest.json
|
|
145
160
|
decantr health --browser --base-url http://localhost:3000 --evidence
|
|
@@ -147,18 +162,18 @@ decantr health --save-baseline
|
|
|
147
162
|
decantr health --since-baseline
|
|
148
163
|
decantr health --design-tokens .decantr/design/figma-tokens.json
|
|
149
164
|
decantr health --json --output decantr-health.json
|
|
150
|
-
decantr
|
|
151
|
-
decantr
|
|
152
|
-
decantr
|
|
153
|
-
decantr
|
|
165
|
+
decantr ci init
|
|
166
|
+
decantr ci init --fail-on warn --force
|
|
167
|
+
decantr ci init --project apps/registry
|
|
168
|
+
decantr ci init --workspace
|
|
154
169
|
decantr workspace list
|
|
155
170
|
decantr verify --workspace --changed --since origin/main
|
|
156
171
|
decantr export --to figma-tokens
|
|
157
172
|
```
|
|
158
173
|
|
|
159
|
-
Use `--json` for machines and schema validation, `--markdown` for
|
|
174
|
+
Use `--json` for machines and schema validation, `--markdown` for summaries, `--evidence` for the privacy-redacted Evidence Bundle, and `--prompt <finding-id>` when you want a scoped remediation prompt for an AI assistant. The prompt command prints instructions only; it does not modify source files. `--browser` uses a project-local Playwright install and a supplied base URL to capture local route screenshots under `.decantr/evidence/screenshots/` and write `.decantr/evidence/visual-manifest.json`; missing Playwright becomes a setup finding, not a crash. `--save-baseline` writes `.decantr/health-baseline.json`; `--since-baseline` writes `.decantr/health-baseline-diff.json` with changed files, route impact, finding deltas, screenshot hash drift, and contract drift. `--design-tokens <path>` compares a Tokens Studio/Figma token JSON export against Decantr CSS token names. `decantr ci --fail-on error` fails only when blocking errors exist; `decantr ci --fail-on warn` also fails on warnings.
|
|
160
175
|
|
|
161
|
-
`decantr
|
|
176
|
+
`decantr ci init` installs `.github/workflows/decantr-ci.yml` for GitHub Actions. The generated workflow installs dependencies at the workspace root, writes JSON/markdown CI artifacts, gates with `decantr ci`, appends the markdown report to the GitHub step summary, and uploads both files as artifacts. Use `--force` to replace an existing workflow or `--fail-on warn` for stricter repositories. In monorepos, add `--project <path>` from the repository root; dependency install stays at the root while CI evaluates the app contract and uploads app-scoped artifacts. Use `--workspace` to generate an aggregate gate. Use `--provider generic` for Jenkins, Please, Buildkite, GitLab, Azure DevOps, or internal deployment tools. Generated CI uses the pinned local package-manager command and does not depend on `@latest`.
|
|
162
177
|
|
|
163
178
|
`decantr workspace` is the monorepo reliability namespace. Before attach, `workspace list` shows app candidates. After attach, it also discovers Decantr projects from `.decantr/workspace.json` or by finding `decantr.essence.json` files. Workspace health runs projects with deterministic ordering, concurrency, per-project timeout, failure isolation, and aggregate JSON, and can limit a run to changed projects:
|
|
164
179
|
|
|
@@ -220,7 +235,7 @@ decantr content-health --json
|
|
|
220
235
|
decantr content-health --markdown --output content-health.md
|
|
221
236
|
decantr content-health --ci --fail-on error
|
|
222
237
|
decantr content-health --ci --fail-on warn
|
|
223
|
-
decantr content
|
|
238
|
+
decantr content check --prompt <finding-id>
|
|
224
239
|
```
|
|
225
240
|
|
|
226
241
|
The report validates local `patterns/`, `themes/`, `blueprints/`, `archetypes/`, and `shells/` against the published registry schemas, checks hard references such as blueprint themes and composed archetypes, summarizes softer generation-coverage gaps such as missing pattern coverage, and emits AI-ready remediation prompts. It does not call the hosted registry by default; use the existing registry drift audits when you need live publish parity.
|
|
@@ -301,7 +316,7 @@ Recommended read order for AI-assisted scaffolding:
|
|
|
301
316
|
|
|
302
317
|
Treat the compiled execution packs as the source of truth. Use the narrative docs as secondary explanation, start with the shell and route structure first, and run `decantr check` plus `decantr audit` after implementation.
|
|
303
318
|
|
|
304
|
-
For a broader health pass, run `decantr verify` after `refresh
|
|
319
|
+
For a broader health pass, run `decantr verify` after `refresh` or before opening a pull request, and run `decantr ci` inside CI. Install the default GitHub Actions gate with `decantr ci init`. Findings include remediation commands and can be turned into focused AI prompts with `decantr health --prompt <finding-id>`.
|
|
305
320
|
|
|
306
321
|
For cold-start harness or certification runs, use only the scaffolded workspace files as the contract. If local scaffold files disagree, stop and report the mismatch rather than relying on repo-global Decantr assumptions.
|
|
307
322
|
|
package/dist/bin.js
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import "./chunk-
|
|
3
|
-
import "./chunk-
|
|
4
|
-
import "./chunk-
|
|
5
|
-
import "./chunk-
|
|
2
|
+
import "./chunk-6UDJDQPT.js";
|
|
3
|
+
import "./chunk-RXF7ZYGK.js";
|
|
4
|
+
import "./chunk-FKM4OQDF.js";
|
|
5
|
+
import "./chunk-TMOCTDYY.js";
|
|
6
|
+
import "./chunk-34TZXWIF.js";
|