@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/README.md CHANGED
@@ -638,7 +638,7 @@ silently. `rules` works too, but warns (`package-rule-override`) until the reaso
638
638
  "doctor": {
639
639
  "packageRules": {
640
640
  "core/direct-data-access": { "files": ["src/**/*.tsx", "src/lib/**/*.ts"], "exclude": ["src/lib/server/**"], "reason": "Our data functions live in src/lib; check them too." },
641
- "ui/record-pages-use-resource-workspace": { "level": "off", "reason": "Every record page is a builder." }
641
+ "ui/records-use-record-view": { "level": "off", "reason": "Every record screen is a builder." }
642
642
  },
643
643
  "allow": [{ "rule": "ui/lists-use-resource-view", "file": "src/components/data/RecordTable.tsx", "reason": "The legacy wrapper; it goes when the last screen moves." }]
644
644
  }
package/dist/cli.js CHANGED
@@ -5671,7 +5671,7 @@ function checkLocalGenesisCopies(ctx) {
5671
5671
  });
5672
5672
  }
5673
5673
  }
5674
- function checkResourceWorkspaces(ctx) {
5674
+ function checkRecordViews(ctx) {
5675
5675
  if (isNative2(ctx) || !ctx.genesis.values.has("AppShellPageHeader")) return;
5676
5676
  const header = /<AppShellPageHeader(?=[\s>/])/;
5677
5677
  const byFolder = /* @__PURE__ */ new Map();
@@ -6430,7 +6430,7 @@ function renderSkill(rows) {
6430
6430
  return [
6431
6431
  "---",
6432
6432
  "name: genesis",
6433
- "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.",
6433
+ "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.",
6434
6434
  "---",
6435
6435
  "",
6436
6436
  "<!-- Generated by `genesis agents` from the installed Genesis packages. Don't edit; run `genesis agents` after upgrading Genesis. -->",
@@ -6577,7 +6577,7 @@ var init_primitives = __esm({
6577
6577
  RULES = [
6578
6578
  "Use the Genesis primitive for the need first: reuse, then extend, then invent (docs/FRAMEWORK.md, G1 to G6).",
6579
6579
  "Never copy an older screen as a template. Old screens predate the primitives; the doctor flags what they did.",
6580
- "A list screen is a view (`defineView`) rendered by `ResourceView`; a record page is `ResourceWorkspace`; on the phone, `NativeResourceView`.",
6580
+ "A list screen is a view (`defineView`) rendered by `ResourceView`; a record view is `RecordView`; on the phone, `NativeResourceView`.",
6581
6581
  "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.",
6582
6582
  "When no primitive fits, write the gap up for Genesis before inventing, then invent in the app on Genesis primitives.",
6583
6583
  "Run `genesis doctor` before you finish; it enforces these rules."
@@ -6724,7 +6724,7 @@ function builtinChecks(config, options = {}) {
6724
6724
  { name: "peer-ranges", check: checkPeerRanges },
6725
6725
  { name: "hand-rolled-sub-nav", check: checkHandRolledSubNav },
6726
6726
  { name: "local-genesis-copies", check: checkLocalGenesisCopies },
6727
- { name: "resource-workspaces", check: checkResourceWorkspaces },
6727
+ { name: "resource-workspaces", check: checkRecordViews },
6728
6728
  { name: "page-layouts", check: checkPageLayouts },
6729
6729
  { name: "iso-date-slices", check: checkIsoDateSlices },
6730
6730
  { name: "resource-view-trees", check: checkTreeViews },