@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 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 only recommends `<For>` for state-backed reactive JSX
77
- collections, so static transforms with `.map()` remain valid.
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-42nqhW9u.js")).runAnalysis)({
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-vH9lYg05.js");
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-tPGn2CQC.js");
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);