@decantr/cli 1.7.28 → 1.7.29
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 +15 -6
- package/dist/bin.js +3 -3
- package/dist/chunk-DI2PLOJ6.js +1418 -0
- package/dist/{chunk-GCDFX7UE.js → chunk-HULA6E2D.js} +5 -4
- package/dist/{chunk-56VBV4MT.js → chunk-US6RK5QT.js} +1271 -774
- package/dist/heal-YHLXO5QL.js +307 -0
- package/dist/index.js +3 -3
- package/dist/{upgrade-XMY6LIPS.js → upgrade-EV23CKA3.js} +1 -1
- package/package.json +4 -4
- package/dist/chunk-RRRHQ45P.js +0 -397
- package/dist/heal-SWUFIYU5.js +0 -99
package/README.md
CHANGED
|
@@ -18,7 +18,7 @@ npx @decantr/cli new my-app --blueprint=agent-marketplace
|
|
|
18
18
|
```
|
|
19
19
|
|
|
20
20
|
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`.
|
|
21
|
-
Use `decantr analyze` first when you already have an app and want Decantr governance without adopting a blueprint.
|
|
21
|
+
Use `decantr analyze` first 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.
|
|
22
22
|
Use `decantr init` to attach Decantr contract/context files to an existing project or to create a contract-only workspace.
|
|
23
23
|
|
|
24
24
|
Current starter adapter availability:
|
|
@@ -31,11 +31,14 @@ Explicit workflow/adoption flags:
|
|
|
31
31
|
|
|
32
32
|
```bash
|
|
33
33
|
decantr init --workflow=greenfield --adoption=contract-only
|
|
34
|
-
decantr
|
|
34
|
+
decantr analyze
|
|
35
|
+
decantr init --existing --accept-proposal
|
|
36
|
+
decantr init --existing --merge-proposal
|
|
35
37
|
decantr init --existing --adoption=style-bridge
|
|
36
38
|
decantr init --existing --adoption=decantr-css
|
|
37
39
|
decantr init --project=apps/web --yes
|
|
38
40
|
decantr init --assistant-bridge=preview
|
|
41
|
+
decantr rules preview
|
|
39
42
|
decantr rules apply
|
|
40
43
|
```
|
|
41
44
|
|
|
@@ -47,7 +50,9 @@ Adoption modes:
|
|
|
47
50
|
|
|
48
51
|
Monorepos store both `workspaceRoot` and `appRoot`. In non-interactive workspace-root runs with multiple app candidates, pass `--project=<path>` so Decantr attaches to the intended app.
|
|
49
52
|
|
|
50
|
-
Assistant rule integration is preview-first: `--assistant-bridge=preview` writes `.decantr/context/assistant-bridge.md`,
|
|
53
|
+
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.
|
|
54
|
+
|
|
55
|
+
Brownfield analysis also writes `.decantr/doctrine-map.json`, a ranked source-precedence map across security/data, architecture, design-system, workflow/CI, feature/business, assistant-specific, stale, and unsafe-to-cite evidence. The proposal groups routes into observed semantic domains such as auth, RBAC, billing, reporting, facilities, settings, and public surfaces across Next App/Pages Router, React Router, Angular Router, SvelteKit, Vue Router, and Nuxt file routes. Existing styling systems such as Tailwind, Bootstrap, MUI, Chakra, plain CSS, and Decantr CSS are observed as evidence instead of replaced. `decantr check --brownfield` uses the doctrine map to flag actionable missing doctrine coverage, unsafe context, missing assistant bridges, style drift, and unsafe defaults without treating current database migrations as stale docs.
|
|
51
56
|
|
|
52
57
|
## What It Does
|
|
53
58
|
|
|
@@ -63,9 +68,11 @@ Assistant rule integration is preview-first: `--assistant-bridge=preview` writes
|
|
|
63
68
|
```bash
|
|
64
69
|
decantr new my-app --blueprint=agent-marketplace
|
|
65
70
|
decantr analyze
|
|
66
|
-
decantr init --existing --
|
|
71
|
+
decantr init --existing --accept-proposal
|
|
72
|
+
decantr check --brownfield
|
|
67
73
|
decantr init --existing --blueprint=agent-marketplace
|
|
68
74
|
decantr init --workflow=greenfield --adoption=contract-only
|
|
75
|
+
decantr rules preview
|
|
69
76
|
decantr rules apply
|
|
70
77
|
decantr magic "AI-native analytics workspace"
|
|
71
78
|
decantr audit
|
|
@@ -115,8 +122,10 @@ It covers:
|
|
|
115
122
|
|
|
116
123
|
- greenfield blueprint bootstrap
|
|
117
124
|
- greenfield contract-only
|
|
118
|
-
- brownfield `analyze -> init --existing`
|
|
119
|
-
-
|
|
125
|
+
- brownfield `analyze -> init --existing --accept-proposal -> check --brownfield`
|
|
126
|
+
- brownfield doctrine maps and contract coverage checks
|
|
127
|
+
- brownfield semantic route-domain sectioning
|
|
128
|
+
- direct brownfield compatibility init
|
|
120
129
|
- adoption modes (`contract-only`, `style-bridge`, `decantr-css`)
|
|
121
130
|
- offline contract-only and offline blueprint flows
|
|
122
131
|
- unsupported target contract-only fallback
|
package/dist/bin.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import "./chunk-
|
|
3
|
-
import "./chunk-
|
|
4
|
-
import "./chunk-
|
|
2
|
+
import "./chunk-US6RK5QT.js";
|
|
3
|
+
import "./chunk-HULA6E2D.js";
|
|
4
|
+
import "./chunk-DI2PLOJ6.js";
|