@beignet/cli 0.0.45 → 0.0.46
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 +12 -0
- package/README.md +19 -9
- package/dist/choices.d.ts +1 -1
- package/dist/choices.d.ts.map +1 -1
- package/dist/choices.js +3 -0
- package/dist/choices.js.map +1 -1
- package/dist/db.d.ts +4 -0
- package/dist/db.d.ts.map +1 -1
- package/dist/db.js +4 -2
- package/dist/db.js.map +1 -1
- package/dist/inspect.d.ts.map +1 -1
- package/dist/inspect.js +520 -41
- package/dist/inspect.js.map +1 -1
- package/dist/mcp.js +2 -2
- package/dist/mcp.js.map +1 -1
- package/dist/templates/agents.d.ts.map +1 -1
- package/dist/templates/agents.js +13 -2
- package/dist/templates/agents.js.map +1 -1
- package/dist/templates/shared.js +1 -1
- package/package.json +2 -2
- package/skills/app-structure/SKILL.md +7 -1
- package/src/choices.ts +3 -0
- package/src/db.ts +4 -2
- package/src/inspect.ts +730 -41
- package/src/mcp.ts +2 -2
- package/src/templates/agents.ts +13 -2
- package/src/templates/shared.ts +1 -1
package/src/mcp.ts
CHANGED
|
@@ -995,7 +995,7 @@ export function buildBeignetMcpServer(options: McpServerOptions): McpServer {
|
|
|
995
995
|
"doctor_fix_plan",
|
|
996
996
|
{
|
|
997
997
|
description:
|
|
998
|
-
"Plan every currently available low-risk doctor repair without changing files. Returns stable operation IDs, exact unified patches, file hashes, and a plan ID for guarded doctor_fix application.",
|
|
998
|
+
"Plan every currently available low-risk doctor repair without changing files, including eligible registration drift and managed default provider-table exports. Returns stable operation IDs, exact unified patches, file hashes, and a plan ID for guarded doctor_fix application.",
|
|
999
999
|
inputSchema: {
|
|
1000
1000
|
strict: z
|
|
1001
1001
|
.boolean()
|
|
@@ -1021,7 +1021,7 @@ export function buildBeignetMcpServer(options: McpServerOptions): McpServer {
|
|
|
1021
1021
|
"doctor_fix",
|
|
1022
1022
|
{
|
|
1023
1023
|
description:
|
|
1024
|
-
"Apply low-risk doctor repairs, then re-check the app. With no planId, preserves the legacy apply-all behavior. Pass the planId returned by doctor_fix_plan for stale-file protection, optionally with fixIds to select repair operations.",
|
|
1024
|
+
"Apply eligible low-risk doctor repairs, then re-check the app; custom or ambiguous code remains diagnostic-only. With no planId, preserves the legacy apply-all behavior. Pass the planId returned by doctor_fix_plan for stale-file protection, optionally with fixIds to select repair operations.",
|
|
1025
1025
|
inputSchema: {
|
|
1026
1026
|
strict: z
|
|
1027
1027
|
.boolean()
|
package/src/templates/agents.ts
CHANGED
|
@@ -56,6 +56,10 @@ is a silent failure — the file exists but never runs:
|
|
|
56
56
|
in \`server/outbox.ts\`.
|
|
57
57
|
- Listeners must be added to the \`listeners\` array in \`server/listeners.ts\`
|
|
58
58
|
and wired through a \`registerListeners(...)\` call in server provider wiring.
|
|
59
|
+
- Apps using Inngest must also spread feature job registries into
|
|
60
|
+
\`inngestJobs\` in \`server/inngest.ts\`.
|
|
61
|
+
- Apps using runtime integrity must list workflow registries in
|
|
62
|
+
\`defineRuntimeManifest({...})\`.
|
|
59
63
|
|
|
60
64
|
The starter ships no workflow registries — generators create them on first
|
|
61
65
|
use, so their absence is fine. \`${cli} make event\`, \`${cli} make job\`,
|
|
@@ -69,7 +73,14 @@ manual registry instruction in the error.
|
|
|
69
73
|
with \`${cli} doctor --fix --dry-run\`, then apply the returned plan with
|
|
70
74
|
\`${cli} doctor --fix --plan <plan-id>\` and optional
|
|
71
75
|
\`--only <operation-ids>\`. Plain \`${cli} doctor --fix\` remains the
|
|
72
|
-
apply-all shortcut.
|
|
76
|
+
apply-all shortcut. Doctor can append fully unregistered artifacts to
|
|
77
|
+
existing central, Inngest, and runtime-manifest arrays when their imports and
|
|
78
|
+
array anchors are unambiguous. It also syncs missing default Beignet
|
|
79
|
+
provider-table exports when \`infra/db/schema/beignet.ts\` is missing or still
|
|
80
|
+
matches \`${cli} db schema sync\` output and the schema index has no custom
|
|
81
|
+
named re-export for that file. Run \`${cli} db generate\` and
|
|
82
|
+
\`${cli} db migrate\` after accepting that source repair. Custom or ambiguous
|
|
83
|
+
code stays diagnostic-only.
|
|
73
84
|
|
|
74
85
|
## Prefer generators
|
|
75
86
|
|
|
@@ -113,7 +124,7 @@ ${cli} check
|
|
|
113
124
|
It runs \`${cli} lint\` (Beignet's dependency-direction lint),
|
|
114
125
|
\`${cli} doctor --strict\`, and the app's \`lint\` (Biome), \`typecheck\`, and
|
|
115
126
|
\`test\` scripts in one pass, reporting every failure. Add \`--fix\` to apply
|
|
116
|
-
doctor's low-risk
|
|
127
|
+
doctor's eligible low-risk fixes first. Use \`${format}\` to apply
|
|
117
128
|
formatting. The individual commands (\`${lint}\`, \`${cli} lint\`,
|
|
118
129
|
\`${cli} doctor --strict\`, \`${test}\`, \`${typecheck}\`) still work when you
|
|
119
130
|
need one check alone.
|
package/src/templates/shared.ts
CHANGED