@marktiderman/genesis-cli 1.15.0 → 1.16.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/dist/doctor.js CHANGED
@@ -4667,7 +4667,7 @@ function checkLocalGenesisCopies(ctx) {
4667
4667
  });
4668
4668
  }
4669
4669
  }
4670
- function checkResourceWorkspaces(ctx) {
4670
+ function checkRecordViews(ctx) {
4671
4671
  if (isNative2(ctx) || !ctx.genesis.values.has("AppShellPageHeader")) return;
4672
4672
  const header = /<AppShellPageHeader(?=[\s>/])/;
4673
4673
  const byFolder = /* @__PURE__ */ new Map();
@@ -5345,7 +5345,7 @@ var AGENTS_END = "<!-- genesis-primitives:end -->";
5345
5345
  var RULES = [
5346
5346
  "Use the Genesis primitive for the need first: reuse, then extend, then invent (docs/FRAMEWORK.md, G1 to G6).",
5347
5347
  "Never copy an older screen as a template. Old screens predate the primitives; the doctor flags what they did.",
5348
- "A list screen is a view (`defineView`) rendered by `ResourceView`; a record page is `ResourceWorkspace`; on the phone, `NativeResourceView`.",
5348
+ "A list screen is a view (`defineView`) rendered by `ResourceView`; a record view is `RecordView`; on the phone, `NativeResourceView`.",
5349
5349
  "Screens never call the database client (`supabase.from`, `.rpc`) directly: reads go through a view or a named data function, writes through the resource's provider rules.",
5350
5350
  "When no primitive fits, write the gap up for Genesis before inventing, then invent in the app on Genesis primitives.",
5351
5351
  "Run `genesis doctor` before you finish; it enforces these rules."
@@ -5354,7 +5354,7 @@ function renderSkill(rows) {
5354
5354
  return [
5355
5355
  "---",
5356
5356
  "name: genesis",
5357
- "description: Which Genesis primitive to use for each need (list screens, record pages, forms, data access, dates and more), with its import and docs. Load before writing any screen, list, form or data access in a Genesis app.",
5357
+ "description: Which Genesis primitive to use for each need (list screens, record views, forms, data access, dates and more), with its import and docs. Load before writing any screen, list, form or data access in a Genesis app.",
5358
5358
  "---",
5359
5359
  "",
5360
5360
  "<!-- Generated by `genesis agents` from the installed Genesis packages. Don't edit; run `genesis agents` after upgrading Genesis. -->",
@@ -5544,7 +5544,7 @@ function builtinChecks(config, options = {}) {
5544
5544
  { name: "peer-ranges", check: checkPeerRanges },
5545
5545
  { name: "hand-rolled-sub-nav", check: checkHandRolledSubNav },
5546
5546
  { name: "local-genesis-copies", check: checkLocalGenesisCopies },
5547
- { name: "resource-workspaces", check: checkResourceWorkspaces },
5547
+ { name: "resource-workspaces", check: checkRecordViews },
5548
5548
  { name: "page-layouts", check: checkPageLayouts },
5549
5549
  { name: "iso-date-slices", check: checkIsoDateSlices },
5550
5550
  { name: "resource-view-trees", check: checkTreeViews },