@marktiderman/genesis-cli 1.13.1 → 1.14.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.d.ts CHANGED
@@ -26,7 +26,7 @@ declare function parseRulesMarkdown(markdown: string): PatternRule[];
26
26
  declare function defineDoctorPlugin(plugin: DoctorPlugin): DoctorPlugin;
27
27
 
28
28
  /** Ids of the built-in rules, for `rules` overrides and `allow` entries. */
29
- declare const BUILTIN_RULES: readonly ["local-primitives", "starter-leftover", "forbidden-import", "raw-tag", "palette-color", "arbitrary-color", "raw-color", "undefined-token", "shadowed-export", "version-skew", "duplicate-genesis-package", "peer-range-mismatch", "hand-rolled-sub-nav", "local-genesis-copy", "resource-workspace", "page-layout", "iso-date-slice", "native-raw-primitive", "native-literal-color", "native-custom-header", "native-screen-layout", "store-readiness", "migration-grants", "migration-rls", "migration-definer-search-path", "migration-edited", "migration-testing-kit", "migration-view-rls", "package-app-import", "package-undeclared-dependency", "package-migration-test", "package-migration-number", "package-migration-edited", "package-unregistered", "package-unversioned-change", "package-export-missing", "package-block-invalid", "package-untagged-tests"];
29
+ declare const BUILTIN_RULES: readonly ["local-primitives", "starter-leftover", "forbidden-import", "raw-tag", "palette-color", "arbitrary-color", "raw-color", "undefined-token", "shadowed-export", "version-skew", "duplicate-genesis-package", "peer-range-mismatch", "hand-rolled-sub-nav", "local-genesis-copy", "resource-workspace", "page-layout", "iso-date-slice", "resource-view-tree", "studio-server-auth-import", "removed-scope-name", "scope-practice-id", "native-raw-primitive", "native-literal-color", "native-custom-header", "native-screen-layout", "store-readiness", "migration-grants", "migration-rls", "migration-definer-search-path", "migration-edited", "migration-testing-kit", "migration-view-rls", "package-app-import", "package-undeclared-dependency", "package-migration-test", "package-migration-number", "package-migration-edited", "package-unregistered", "package-unversioned-change", "package-export-missing", "package-block-invalid", "package-untagged-tests"];
30
30
 
31
31
  /**
32
32
  * Minimal globs for config: `*` matches within a folder, `**` across folders,
package/dist/doctor.js CHANGED
@@ -366,7 +366,7 @@ function globToRegExp(glob) {
366
366
  }
367
367
  function globMatcher(globs) {
368
368
  const res = (globs ?? []).filter((g) => g.trim()).map(globToRegExp);
369
- return (path20) => res.some((re) => re.test(path20));
369
+ return (path22) => res.some((re) => re.test(path22));
370
370
  }
371
371
  var DEFAULT_UI_PACKAGE = "@marktiderman/genesis-ui";
372
372
  var NATIVE_UI_PACKAGE = "@marktiderman/genesis-ui-native";
@@ -1236,6 +1236,11 @@ var BUILTIN_RULES = [
1236
1236
  "page-layout",
1237
1237
  // dates
1238
1238
  "iso-date-slice",
1239
+ // Genesis API usage (api-usage.ts)
1240
+ "resource-view-tree",
1241
+ "studio-server-auth-import",
1242
+ "removed-scope-name",
1243
+ "scope-practice-id",
1239
1244
  // native pack
1240
1245
  "native-raw-primitive",
1241
1246
  "native-literal-color",
@@ -2603,7 +2608,9 @@ function checkChanges(ctx, pkg, json, base, mergeBase) {
2603
2608
  }
2604
2609
  const raw = json;
2605
2610
  if (jsonBefore && (JSON.stringify(jsonBefore.genesis) !== JSON.stringify(raw.genesis) || JSON.stringify(jsonBefore.exports) !== JSON.stringify(raw.exports))) {
2606
- const registry = (git(ctx.root, ["diff", "--relative", "--name-only", mergeBase, "--", "features.ts", "src/features.ts"]) ?? "").trim();
2611
+ const appInRepo = path14.relative(top, realpathSync(ctx.root)).split(path14.sep).join("/");
2612
+ const candidates = [.../* @__PURE__ */ new Set(["features.ts", "src/features.ts", ...appInRepo ? [`${appInRepo}/features.ts`, `${appInRepo}/src/features.ts`] : []])];
2613
+ const registry = (git(top, ["diff", "--name-only", mergeBase, "--", ...candidates]) ?? "").trim();
2607
2614
  if (!registry) ctx.report({ rule: "package-unversioned-change", level: "warn", file: `${pkg.rel}/package.json`, message: `${pkg.name}'s blocks or exports changed but features.ts didn't; update the features they belong to` });
2608
2615
  }
2609
2616
  if (bumped && !named && before !== null) {
@@ -3561,6 +3568,358 @@ function checkIsoDateSlices(ctx) {
3561
3568
  }
3562
3569
  }
3563
3570
 
3571
+ // src/upgrade/scope-names.ts
3572
+ var IMPORTS_GENESIS = /\bfrom\s*["']@marktiderman\/genesis[\w/-]*["']/;
3573
+ function maskComments(text) {
3574
+ const out = text.split("");
3575
+ let quote = null;
3576
+ for (let i = 0; i < text.length; i++) {
3577
+ const ch = text[i];
3578
+ if (quote) {
3579
+ if (ch === "\\") i++;
3580
+ else if (ch === quote) quote = null;
3581
+ continue;
3582
+ }
3583
+ if (ch === '"' || ch === "'" || ch === "`") {
3584
+ quote = ch;
3585
+ continue;
3586
+ }
3587
+ if (ch === "/" && (text[i + 1] === "/" || text[i + 1] === "*")) {
3588
+ const line = text[i + 1] === "/";
3589
+ const end = line ? text.indexOf("\n", i) === -1 ? text.length : text.indexOf("\n", i) : text.indexOf("*/", i + 2) === -1 ? text.length : text.indexOf("*/", i + 2) + 2;
3590
+ for (let k = i; k < end; k++) if (out[k] !== "\n") out[k] = " ";
3591
+ i = end - 1;
3592
+ }
3593
+ }
3594
+ return out.join("");
3595
+ }
3596
+ var within = (spans, at) => spans.some(([a, b]) => at >= a && at < b);
3597
+ function importedFromGenesis(text, name) {
3598
+ for (const m of text.matchAll(/\bimport\s+(?:type\s+)?\{([^}]*)\}\s*from\s*["']@marktiderman\/genesis[\w/-]*["']/g)) {
3599
+ for (const part of m[1].split(",")) {
3600
+ const local = part.trim().replace(/^type\s+/, "").split(/\s+as\s+/).pop()?.trim();
3601
+ if (local === name) return true;
3602
+ }
3603
+ }
3604
+ return false;
3605
+ }
3606
+ var OPEN = { "(": ")", "{": "}", "[": "]" };
3607
+ function matching(text, open) {
3608
+ const stack = [];
3609
+ let quote = null;
3610
+ for (let i = open; i < text.length; i++) {
3611
+ const ch = text[i];
3612
+ if (quote) {
3613
+ if (ch === "\\") i++;
3614
+ else if (ch === quote) quote = null;
3615
+ continue;
3616
+ }
3617
+ if (ch === '"' || ch === "'" || ch === "`") quote = ch;
3618
+ else if (OPEN[ch]) stack.push(OPEN[ch]);
3619
+ else if (ch === ")" || ch === "}" || ch === "]") {
3620
+ stack.pop();
3621
+ if (stack.length === 0) return i + 1;
3622
+ }
3623
+ }
3624
+ return text.length;
3625
+ }
3626
+ function matchingBack(text, close) {
3627
+ let depth = 0;
3628
+ for (let i = close; i >= 0; i--) {
3629
+ const ch = text[i];
3630
+ if (ch === "}") depth++;
3631
+ else if (ch === "{") {
3632
+ depth--;
3633
+ if (depth === 0) return i;
3634
+ }
3635
+ }
3636
+ return 0;
3637
+ }
3638
+ function callSpans(text, name) {
3639
+ const out = [];
3640
+ for (const m of text.matchAll(new RegExp(`\\b${name}\\s*(?:<[^()]*?>)?\\s*\\(`, "g"))) {
3641
+ const open = m.index + m[0].length - 1;
3642
+ out.push([open, matching(text, open)]);
3643
+ }
3644
+ return out;
3645
+ }
3646
+ function typedObjectSpans(text, types) {
3647
+ const out = [];
3648
+ if (types.length === 0) return out;
3649
+ const names = `(?:(?:Partial|Readonly|Required|Pick|Omit)\\s*<\\s*)?(?:${types.join("|")})`;
3650
+ for (const m of text.matchAll(new RegExp(`:\\s*${names}\\b(?:<[^=]*?>)?[^=;{]*?=\\s*\\{`, "g"))) {
3651
+ const open = m.index + m[0].length - 1;
3652
+ out.push([open, matching(text, open)]);
3653
+ }
3654
+ for (const m of text.matchAll(new RegExp(`\\}\\s*(?:satisfies|as)\\s+${names}\\b`, "g"))) {
3655
+ const close = m.index;
3656
+ out.push([matchingBack(text, close), close + 1]);
3657
+ }
3658
+ return out;
3659
+ }
3660
+ function tagSpans(text, tag) {
3661
+ const out = [];
3662
+ for (const m of text.matchAll(new RegExp(`<${tag}\\b`, "g"))) {
3663
+ let depth = 0;
3664
+ let quote = null;
3665
+ let end = text.length;
3666
+ for (let i = m.index + 1; i < text.length; i++) {
3667
+ const ch = text[i];
3668
+ if (quote) {
3669
+ if (ch === "\\") i++;
3670
+ else if (ch === quote) quote = null;
3671
+ continue;
3672
+ }
3673
+ if (ch === '"' || ch === "'" || ch === "`") quote = ch;
3674
+ else if (ch === "{") depth++;
3675
+ else if (ch === "}") depth--;
3676
+ else if (ch === ">" && depth === 0) {
3677
+ end = i + 1;
3678
+ break;
3679
+ }
3680
+ }
3681
+ out.push([m.index, end]);
3682
+ }
3683
+ return out;
3684
+ }
3685
+ function attributeObjectSpans(text, tag, attr) {
3686
+ const out = [];
3687
+ for (const [a, b] of tagSpans(text, tag)) {
3688
+ const inTag = text.slice(a, b);
3689
+ for (const m of inTag.matchAll(new RegExp(`\\s${attr}\\s*=\\s*\\{\\s*\\{`, "g"))) {
3690
+ const open = a + m.index + m[0].length - 1;
3691
+ out.push([open, matching(text, open)]);
3692
+ }
3693
+ }
3694
+ return out;
3695
+ }
3696
+ function zoneBindings(text, hook, type) {
3697
+ const names = /* @__PURE__ */ new Set();
3698
+ if (hook) {
3699
+ for (const m of text.matchAll(/\b(?:const|let|var)\s+([A-Za-z_$][\w$]*)\s*(?::\s*DisplayTimeZones\s*)?=\s*useDisplayTimeZones\(\)/g)) names.add(m[1]);
3700
+ }
3701
+ if (type) for (const m of text.matchAll(/\b([A-Za-z_$][\w$]*)\s*\??\s*:\s*DisplayTimeZones\b/g)) names.add(m[1]);
3702
+ return [...names];
3703
+ }
3704
+ var escape = (name) => name.replace(/\$/g, "\\$");
3705
+ function findRemovedScopeNames(source) {
3706
+ const text = maskComments(source);
3707
+ if (!IMPORTS_GENESIS.test(text)) return [];
3708
+ const out = [];
3709
+ const has = (name) => importedFromGenesis(text, name);
3710
+ const viewSpans = [
3711
+ ...has("defineView") ? callSpans(text, "defineView") : [],
3712
+ ...typedObjectSpans(text, ["ViewDefinition", "ViewField"].filter(has))
3713
+ ];
3714
+ for (const m of text.matchAll(/(\btimeZone\s*:\s*)(["'`])practice\2/g)) {
3715
+ const at = m.index + m[1].length;
3716
+ if (!within(viewSpans, at)) continue;
3717
+ out.push({ index: m.index, what: "timeZone-practice", instead: 'timeZone: "scope"', start: at + 1, end: at + 1 + "practice".length, replacement: "scope" });
3718
+ }
3719
+ if (has("resolveZone")) {
3720
+ for (const m of text.matchAll(/(\bresolveZone\(\s*)(["'`])practice\2/g)) {
3721
+ const at = m.index + m[1].length + 1;
3722
+ out.push({ index: m.index, what: "resolveZone-practice", instead: 'resolveZone("scope", \u2026)', start: at, end: at + "practice".length, replacement: "scope" });
3723
+ }
3724
+ }
3725
+ const propSpans = [
3726
+ ...has("NativeResourceView") ? tagSpans(text, "NativeResourceView") : [],
3727
+ ...typedObjectSpans(text, ["NativeResourceViewProps"].filter(has))
3728
+ ];
3729
+ for (const m of text.matchAll(/(^|[\s{,(])practiceTimeZone(\s*[=:])/gm)) {
3730
+ const at = m.index + m[1].length;
3731
+ if (!within(propSpans, at)) continue;
3732
+ out.push({ index: at, what: "practiceTimeZone", instead: "scopeTimeZone", start: at, end: at + "practiceTimeZone".length, replacement: "scopeTimeZone" });
3733
+ }
3734
+ const zoneSpans = [
3735
+ ...has("DisplayTimeZonesProvider") ? attributeObjectSpans(text, "DisplayTimeZonesProvider", "value") : [],
3736
+ ...typedObjectSpans(text, ["DisplayTimeZones"].filter(has))
3737
+ ];
3738
+ for (const m of text.matchAll(/(^|[\s{,])practice(\s*:)/gm)) {
3739
+ const at = m.index + m[1].length;
3740
+ if (!within(zoneSpans, at)) continue;
3741
+ out.push({ index: at, what: "DisplayTimeZones.practice", instead: "scope", start: at, end: at + "practice".length, replacement: "scope" });
3742
+ }
3743
+ for (const name of zoneBindings(text, has("useDisplayTimeZones"), has("DisplayTimeZones"))) {
3744
+ for (const m of text.matchAll(new RegExp(`(?<![\\w$])${escape(name)}\\s*\\??\\.\\s*(practice)(?![\\w$])`, "g"))) {
3745
+ const at = m.index + m[0].length - "practice".length;
3746
+ out.push({ index: m.index, what: "DisplayTimeZones.practice", instead: `${name}.scope`, start: at, end: at + "practice".length, replacement: "scope" });
3747
+ }
3748
+ }
3749
+ const seen = /* @__PURE__ */ new Set();
3750
+ return out.filter((f) => seen.has(f.start) ? false : (seen.add(f.start), true)).sort((a, b) => a.start - b.start);
3751
+ }
3752
+ function readsPracticeId(text) {
3753
+ if (!IMPORTS_GENESIS.test(text)) return [];
3754
+ return [...text.matchAll(/\bscope\s*\??\.\s*practiceId\b/g)].map((m) => m.index);
3755
+ }
3756
+ var augmentsResourceScope = (text) => /\binterface\s+ResourceScope\b/.test(text);
3757
+ var PRACTICE_ID_AUGMENTATION = 'declare module "@marktiderman/genesis-core" { interface ResourceScope { practiceId?: string } }';
3758
+
3759
+ // src/upgrade/codemods.ts
3760
+ var SKIP_DIRS3 = /* @__PURE__ */ new Set(["node_modules", "dist", "build", ".git", ".next", ".output", ".turbo", ".expo", "coverage", "ios", "android"]);
3761
+ var SCRIPT = /\.(?:[cm]?[jt]sx?)$/;
3762
+ var MAX_BYTES = 2 * 1024 * 1024;
3763
+ function appScripts(root) {
3764
+ const out = [];
3765
+ const walk = (dir) => {
3766
+ for (const entry of readdirSync(dir, { withFileTypes: true }).sort((a, b) => a.name.localeCompare(b.name))) {
3767
+ const abs = path14.join(dir, entry.name);
3768
+ if (entry.isDirectory()) {
3769
+ if (!SKIP_DIRS3.has(entry.name)) walk(abs);
3770
+ } else if (entry.isFile() && SCRIPT.test(entry.name) && statSync(abs).size <= MAX_BYTES) {
3771
+ out.push(path14.relative(root, abs).split(path14.sep).join("/"));
3772
+ }
3773
+ }
3774
+ };
3775
+ walk(root);
3776
+ return out;
3777
+ }
3778
+
3779
+ // src/doctor/api-usage.ts
3780
+ var SCRIPT_EXTS5 = /* @__PURE__ */ new Set([".ts", ".tsx", ".js", ".jsx", ".mts", ".cts", ".mjs", ".cjs"]);
3781
+ function openingTag(code, start) {
3782
+ let depth = 0;
3783
+ let quote = null;
3784
+ for (let i = start + 1; i < code.length; i++) {
3785
+ const ch = code[i];
3786
+ if (quote) {
3787
+ if (ch === "\\") i++;
3788
+ else if (ch === quote) quote = null;
3789
+ continue;
3790
+ }
3791
+ if (ch === '"' || ch === "'" || ch === "`") quote = ch;
3792
+ else if (ch === "{") depth++;
3793
+ else if (ch === "}") depth--;
3794
+ else if (ch === ">" && depth === 0) return code.slice(start, i + 1);
3795
+ }
3796
+ return code.slice(start);
3797
+ }
3798
+ function ownAttributes(tag) {
3799
+ let depth = 0;
3800
+ let quote = null;
3801
+ let out = "";
3802
+ let inner = "";
3803
+ for (let i = 0; i < tag.length; i++) {
3804
+ const ch = tag[i];
3805
+ if (depth > 0) inner += ch;
3806
+ if (quote) {
3807
+ if (ch === "\\") {
3808
+ i++;
3809
+ if (depth > 0) inner += tag[i] ?? "";
3810
+ else out += ch + (tag[i] ?? "");
3811
+ continue;
3812
+ }
3813
+ if (ch === quote) quote = null;
3814
+ if (depth === 0) out += ch;
3815
+ continue;
3816
+ }
3817
+ if (ch === '"' || ch === "'" || ch === "`") {
3818
+ quote = ch;
3819
+ if (depth === 0) out += ch;
3820
+ } else if (ch === "{") {
3821
+ if (depth === 0) inner = "";
3822
+ depth++;
3823
+ } else if (ch === "}") {
3824
+ depth--;
3825
+ if (depth === 0) {
3826
+ const body = inner.slice(0, -1).trim();
3827
+ out += /^(["'`])[^"'`]*\1$/.test(body) ? `{${body}}` : "{}";
3828
+ }
3829
+ } else if (depth === 0) out += ch;
3830
+ }
3831
+ return out;
3832
+ }
3833
+ function checkTreeViews(ctx) {
3834
+ for (const file of ctx.files) {
3835
+ if (!SCRIPT_EXTS5.has(file.ext) || !/\btree\s*=/.test(file.code)) continue;
3836
+ for (const m of file.code.matchAll(/<(ResourceView|ResourcePage)\b(?:\s*<[^<>]*>)?/g)) {
3837
+ const tag = openingTag(file.code, (m.index ?? 0) + m[0].length - 1);
3838
+ const attrs = ownAttributes(tag);
3839
+ if (!/\stree\s*=/.test(attrs) || !/\spagination\s*=/.test(attrs)) continue;
3840
+ const paging = attrs.match(/\spagination\s*=\s*(?:\{\s*)?["'`](server|cursor)["'`]/);
3841
+ if (!paging) continue;
3842
+ ctx.report({
3843
+ rule: "resource-view-tree",
3844
+ level: "error",
3845
+ file: file.path,
3846
+ line: lineAt(file.code, m.index ?? 0),
3847
+ subject: m[1],
3848
+ message: `${m[1]} has \`tree\` with pagination="${paging[1]}", which throws when it renders: a tree is built from every row on the client. Leave pagination unset (docs/RESOURCE-VIEW.md, "Tree mode")`
3849
+ });
3850
+ }
3851
+ }
3852
+ }
3853
+ var STUDIO_SERVER = "@marktiderman/genesis-studio-server";
3854
+ var DEEP = /\b(?:from|import|require)\s*\(?\s*["']@marktiderman\/genesis-studio-server\/(dist|src|lib)\/[^"']*["']/g;
3855
+ var ROOT_REQUIRE = /\brequire\s*\(\s*["']@marktiderman\/genesis-studio-server["']\s*\)/g;
3856
+ function moduleFiles(ctx) {
3857
+ const scanned = new Set(ctx.files.map((f) => f.path));
3858
+ const ignored = globMatcher([...DEFAULT_IGNORE, ...ctx.config.ignore ?? []]);
3859
+ const extra = appScripts(ctx.root).filter((rel) => /\.(c|m)js$/.test(rel) && !scanned.has(rel) && !ignored(rel)).map((rel) => ({ path: rel, code: stripBlockComments(readFileSync(path14.join(ctx.root, rel), "utf8"), true) }));
3860
+ return [...ctx.files.filter((f) => SCRIPT_EXTS5.has(f.ext)), ...extra];
3861
+ }
3862
+ function checkStudioServerImports(ctx) {
3863
+ for (const file of moduleFiles(ctx)) {
3864
+ if (!file.code.includes(STUDIO_SERVER)) continue;
3865
+ for (const m of file.code.matchAll(DEEP)) {
3866
+ ctx.report({
3867
+ rule: "studio-server-auth-import",
3868
+ level: "warn",
3869
+ file: file.path,
3870
+ line: lineAt(file.code, m.index ?? 0),
3871
+ subject: `${STUDIO_SERVER}/${m[1]}`,
3872
+ message: `imports a studio-server file the package doesn't export, which fails at run time; the token checks and switchToUser are in ${STUDIO_SERVER}/auth (import or require)`
3873
+ });
3874
+ }
3875
+ for (const m of file.code.matchAll(ROOT_REQUIRE)) {
3876
+ ctx.report({
3877
+ rule: "studio-server-auth-import",
3878
+ level: "warn",
3879
+ file: file.path,
3880
+ line: lineAt(file.code, m.index ?? 0),
3881
+ subject: STUDIO_SERVER,
3882
+ message: `requires ${STUDIO_SERVER}, which is ESM-only and fails under require(); ${STUDIO_SERVER}/auth (the token checks and switchToUser) ships for require too`
3883
+ });
3884
+ }
3885
+ }
3886
+ }
3887
+ var REMOVED_WORDS = {
3888
+ "timeZone-practice": 'timeZone "practice"',
3889
+ "resolveZone-practice": 'resolveZone("practice")',
3890
+ practiceTimeZone: "practiceTimeZone",
3891
+ "DisplayTimeZones.practice": "DisplayTimeZones.practice"
3892
+ };
3893
+ function checkRemovedScopeNames(ctx) {
3894
+ let augmentedMemo;
3895
+ const augmented = () => augmentedMemo ??= ctx.files.some((f) => augmentsResourceScope(f.code)) || appScripts(ctx.root).filter((rel) => rel.endsWith(".d.ts")).some((rel) => augmentsResourceScope(readFileSync(path14.join(ctx.root, rel), "utf8")));
3896
+ for (const file of ctx.files) {
3897
+ if (!SCRIPT_EXTS5.has(file.ext)) continue;
3898
+ for (const hit of findRemovedScopeNames(file.code)) {
3899
+ ctx.report({
3900
+ rule: "removed-scope-name",
3901
+ level: "error",
3902
+ file: file.path,
3903
+ line: lineAt(file.code, hit.index),
3904
+ subject: REMOVED_WORDS[hit.what] ?? hit.what,
3905
+ message: `${REMOVED_WORDS[hit.what] ?? hit.what} was removed in genesis-core 2; use ${hit.instead}. \`genesis codemod genesis-core-2-scope-names\` rewrites every one`
3906
+ });
3907
+ }
3908
+ const reads = readsPracticeId(file.code);
3909
+ if (!reads.length || augmented()) continue;
3910
+ for (const index of reads) {
3911
+ ctx.report({
3912
+ rule: "scope-practice-id",
3913
+ level: "info",
3914
+ file: file.path,
3915
+ line: lineAt(file.code, index),
3916
+ subject: "practiceId",
3917
+ message: `scope.practiceId is the app's own scope key now, read as unknown; type it once: ${PRACTICE_ID_AUGMENTATION}`
3918
+ });
3919
+ }
3920
+ }
3921
+ }
3922
+
3564
3923
  // src/doctor/index.ts
3565
3924
  async function runDoctor(options = {}) {
3566
3925
  const root = path14.resolve(options.root ?? process.cwd());
@@ -3625,6 +3984,9 @@ function builtinChecks(config) {
3625
3984
  { name: "resource-workspaces", check: checkResourceWorkspaces },
3626
3985
  { name: "page-layouts", check: checkPageLayouts },
3627
3986
  { name: "iso-date-slices", check: checkIsoDateSlices },
3987
+ { name: "resource-view-trees", check: checkTreeViews },
3988
+ { name: "studio-server-imports", check: checkStudioServerImports },
3989
+ { name: "removed-scope-names", check: checkRemovedScopeNames },
3628
3990
  ...(config.packs ?? []).map((p) => packs[p])
3629
3991
  ];
3630
3992
  }