@askrjs/cli 0.0.11 → 0.0.13
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 +4 -2
- package/dist/analyze.js +1 -1
- package/dist/cli.js +1 -1
- package/dist/{guardrails-vH9lYg05.js → guardrails-D6KCKS-H.js} +1 -1
- package/dist/{runner-42nqhW9u.js → runner-BSs9Ow3t.js} +557 -16
- package/dist/{runner-tPGn2CQC.js → runner-DetGSvGf.js} +1 -1
- package/dist/templates/spa/src/pages/app/_layout.tsx +11 -8
- package/dist/templates/spa/src/pages/app/admin-home.tsx +142 -132
- package/dist/templates/spa/src/pages/app/agent-runs.tsx +33 -26
- package/dist/templates/spa/src/pages/public/home.tsx +12 -9
- package/dist/templates/ssg/src/components/site-shell.tsx +4 -3
- package/dist/templates/ssg/src/pages/about.tsx +14 -11
- package/dist/templates/ssg/src/pages/content.tsx +10 -7
- package/dist/templates/ssg/src/pages/home.tsx +6 -3
- package/dist/templates/startkit/src/components/app-sidebar.tsx +23 -18
- package/dist/templates/startkit/src/components/data-table.tsx +41 -39
- package/dist/templates/startkit/src/pages/workspace/dashboard.tsx +16 -13
- package/package.json +10 -2
package/README.md
CHANGED
|
@@ -73,8 +73,10 @@ askr analyze --json --check
|
|
|
73
73
|
|
|
74
74
|
All diagnostics include a stable rule ID and workspace-relative source
|
|
75
75
|
location. The analyzer distinguishes canonical Askr imports from unrelated
|
|
76
|
-
same-named functions and
|
|
77
|
-
|
|
76
|
+
same-named functions and recommends `<For>` only when a `.map()` result is
|
|
77
|
+
rendered directly as JSX children, so ordinary data transforms remain valid.
|
|
78
|
+
It reports eager `<For>`/`<Show>`/`<Case>` controls behind changing ternaries
|
|
79
|
+
while accepting conditionally mounted components with their own render scope.
|
|
78
80
|
|
|
79
81
|
By default it transactionally applies only mechanical route-parameter and
|
|
80
82
|
plain-JSON JSX configuration fixes. `--check` is read-only for CI. Semantic
|
package/dist/analyze.js
CHANGED
|
@@ -71,7 +71,7 @@ async function runAnalyzeCli(args = process.argv.slice(2), io = console, runtime
|
|
|
71
71
|
io.log(helpText.trimEnd());
|
|
72
72
|
return 0;
|
|
73
73
|
}
|
|
74
|
-
const report = await (runtime.analyze ?? (await import("./runner-
|
|
74
|
+
const report = await (runtime.analyze ?? (await import("./runner-BSs9Ow3t.js")).runAnalysis)({
|
|
75
75
|
cwd: parsed.cwd,
|
|
76
76
|
workspacePatterns: parsed.workspacePatterns,
|
|
77
77
|
check: parsed.check
|
package/dist/cli.js
CHANGED
|
@@ -90,7 +90,7 @@ async function runCli(args = process.argv.slice(2), io = console) {
|
|
|
90
90
|
return runAnalyzeCli(args.slice(1), io);
|
|
91
91
|
}
|
|
92
92
|
if (command === "check" || command === "doctor" || command === "repair") {
|
|
93
|
-
const { runGuardrailCli } = await import("./guardrails-
|
|
93
|
+
const { runGuardrailCli } = await import("./guardrails-D6KCKS-H.js");
|
|
94
94
|
return runGuardrailCli(command, args.slice(1), io);
|
|
95
95
|
}
|
|
96
96
|
if (command === "generate") {
|
|
@@ -98,7 +98,7 @@ async function runGuardrailCli(command, args = process.argv.slice(2), io = conso
|
|
|
98
98
|
cwd: parsed.cwd,
|
|
99
99
|
workspacePatterns: parsed.workspacePatterns
|
|
100
100
|
};
|
|
101
|
-
const { runCheck, runDoctor, runRepair } = await import("./runner-
|
|
101
|
+
const { runCheck, runDoctor, runRepair } = await import("./runner-DetGSvGf.js");
|
|
102
102
|
const report = command === "doctor" ? await runDoctor(options, runtime) : command === "repair" ? await runRepair(options) : await runCheck(options, runtime);
|
|
103
103
|
if (parsed.json) io.log(JSON.stringify(report));
|
|
104
104
|
else if (report.command === "doctor") printDoctor(report, io);
|