@vyuhlabs/dxkit 2.21.1 → 2.22.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/CHANGELOG.md +47 -0
- package/dist/analyzers/flow/config.d.ts +10 -0
- package/dist/analyzers/flow/config.d.ts.map +1 -1
- package/dist/analyzers/flow/config.js +29 -0
- package/dist/analyzers/flow/config.js.map +1 -1
- package/dist/analyzers/flow/contract.d.ts +12 -0
- package/dist/analyzers/flow/contract.d.ts.map +1 -1
- package/dist/analyzers/flow/contract.js +20 -0
- package/dist/analyzers/flow/contract.js.map +1 -1
- package/dist/analyzers/flow/diagnose.d.ts +62 -0
- package/dist/analyzers/flow/diagnose.d.ts.map +1 -0
- package/dist/analyzers/flow/diagnose.js +120 -0
- package/dist/analyzers/flow/diagnose.js.map +1 -0
- package/dist/analyzers/flow/publish.d.ts +47 -0
- package/dist/analyzers/flow/publish.d.ts.map +1 -0
- package/dist/analyzers/flow/publish.js +146 -0
- package/dist/analyzers/flow/publish.js.map +1 -0
- package/dist/analyzers/flow/setup.d.ts +71 -0
- package/dist/analyzers/flow/setup.d.ts.map +1 -0
- package/dist/analyzers/flow/setup.js +136 -0
- package/dist/analyzers/flow/setup.js.map +1 -0
- package/dist/baseline/check.d.ts.map +1 -1
- package/dist/baseline/check.js +10 -6
- package/dist/baseline/check.js.map +1 -1
- package/dist/baseline/flow-gate-check.d.ts +16 -7
- package/dist/baseline/flow-gate-check.d.ts.map +1 -1
- package/dist/baseline/flow-gate-check.js +17 -7
- package/dist/baseline/flow-gate-check.js.map +1 -1
- package/dist/cli.d.ts.map +1 -1
- package/dist/cli.js +52 -2
- package/dist/cli.js.map +1 -1
- package/dist/doctor.d.ts +7 -0
- package/dist/doctor.d.ts.map +1 -1
- package/dist/doctor.js +38 -1
- package/dist/doctor.js.map +1 -1
- package/dist/flow-cli.d.ts +10 -0
- package/dist/flow-cli.d.ts.map +1 -1
- package/dist/flow-cli.js +46 -0
- package/dist/flow-cli.js.map +1 -1
- package/dist/generator.d.ts.map +1 -1
- package/dist/generator.js +6 -0
- package/dist/generator.js.map +1 -1
- package/dist/prompts.d.ts +15 -0
- package/dist/prompts.d.ts.map +1 -1
- package/dist/prompts.js +66 -0
- package/dist/prompts.js.map +1 -1
- package/dist/workspace.d.ts +52 -0
- package/dist/workspace.d.ts.map +1 -0
- package/dist/workspace.js +130 -0
- package/dist/workspace.js.map +1 -0
- package/package.json +1 -1
- package/templates/.claude/skills/dxkit-config/SKILL.md +14 -0
- package/templates/.claude/skills/dxkit-fix/SKILL.md +2 -0
- package/templates/.claude/skills/dxkit-flow/SKILL.md +83 -0
- package/templates/.claude/skills/dxkit-hooks/SKILL.md +1 -1
- package/templates/.claude/skills/dxkit-init/SKILL.md +5 -0
- package/templates/.claude/skills/dxkit-onboard/SKILL.md +2 -0
|
@@ -29,9 +29,14 @@ Ask the user what they want, then pick the right invocation:
|
|
|
29
29
|
| `--with-baseline-refresh` | `.github/workflows/dxkit-baseline-refresh.yml` (post-merge regen) | Yes |
|
|
30
30
|
| `--with-pr-review` | `.github/workflows/pr-review.yml` (AI PR review; needs `ANTHROPIC_API_KEY`) | No (still opt-in) |
|
|
31
31
|
| `--claude-loop` | Stop-gate hook for autonomous loops (additive merge into `.claude/settings.json` + CLAUDE.md); implies the dxkit skills. Pair with `--loop-preset security-only\|full-debt` | No (opt-in — registers a hook that blocks the agent from stopping) |
|
|
32
|
+
| `--flow` / `--no-flow` | Set up / suppress the UI→API integration gate. When `init` detects a UI→API surface it offers this automatically (interactive prompt for the posture); `--flow` forces it on with `warn`, `--no-flow` skips it. There is **no standalone `flow init`** — flow setup lives inside `init`. | Auto-offered when a UI→API surface is detected (silent otherwise) |
|
|
32
33
|
|
|
33
34
|
`--yes` accepts all prompts; `--force` overwrites existing files instead of writing `.dxkit` sidecars on conflict.
|
|
34
35
|
|
|
36
|
+
### The flow step (auto-detected)
|
|
37
|
+
|
|
38
|
+
When `init` finds client HTTP calls and/or server routes, it offers the **integration gate**: a PR that breaks a UI→API binding (a call to an endpoint no backend serves, or a removed route a consumer still calls) fails the guardrail. Interactively it asks for the posture with a one-line description of each — `warn` (default, surfaces breaks without failing a build), `block` (fails on an exact break), `off` (scaffold config only). It also confirms the dominant base-URL helper to strip and any multiple backend services. On a repo with no UI→API surface (a library, a CLI) the step is silent. Re-run or adjust later with `init --flow`; tune the posture in `.dxkit/policy.json:flow.mode`.
|
|
39
|
+
|
|
35
40
|
## Steps
|
|
36
41
|
|
|
37
42
|
1. **Detect the stack** before installing — let the user confirm:
|
|
@@ -31,6 +31,8 @@ Don't use when:
|
|
|
31
31
|
```
|
|
32
32
|
[1] State check → is dxkit installed? scaffold present? baseline captured? hooks active?
|
|
33
33
|
[2] Install if needed → npm init @vyuhlabs/dxkit OR npx vyuh-dxkit init --full --yes
|
|
34
|
+
(init auto-offers the UI→API integration gate when it
|
|
35
|
+
detects client calls + routes — pick a posture then)
|
|
34
36
|
[3] Doctor → npx vyuh-dxkit doctor (parse summary.fixable[])
|
|
35
37
|
[4] Fix gaps → dispatch through dxkit-fix for each fixable signal
|
|
36
38
|
[5] Capture baseline → npx vyuh-dxkit baseline create (with explicit secrets-warning)
|