@gadicc/loom 1.22.1 → 1.23.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.
@@ -23,6 +23,7 @@ type PackageJson = {
23
23
  dependencies?: Record<string, string>;
24
24
  devDependencies?: Record<string, string>;
25
25
  packageManager?: string;
26
+ pnpm?: Record<string, unknown>;
26
27
  version?: string;
27
28
  };
28
29
  type ManagedLocalSchemaConfig = {
@@ -238,6 +239,16 @@ export declare function clearPnpmWorkspaceLocalDevText(existingText: string | nu
238
239
  changed: boolean;
239
240
  text: string;
240
241
  };
242
+ /** Keeps first-party Loom releases outside pnpm's package-age delay. */
243
+ export declare function ensurePnpmWorkspaceLoomReleaseAgeExcludeText(existingText: string | null): {
244
+ changed: boolean;
245
+ conflict: null;
246
+ text: string;
247
+ } | {
248
+ changed: boolean;
249
+ conflict: string;
250
+ text: string;
251
+ };
241
252
  export declare function syncLocalDevPackage(cwd: string, options?: DevSyncOptions): Promise<DevSyncResult>;
242
253
  export declare function useLocalDevPackage(cwd: string, inputPath: string): Promise<DevOverrideResult>;
243
254
  export declare function usePublishedDevPackage(cwd: string, options?: UsePublishedDevPackageOptions): Promise<DevOverrideResult>;
@@ -1 +1 @@
1
- {"version":3,"file":"mod.d.ts","sourceRoot":"","sources":["../../../src/src/cli/mod.ts"],"names":[],"mappings":"AAyCA,OAAO,EAUL,KAAK,cAAc,EAMpB,MAAM,qBAAqB,CAAC;AAE7B,eAAO,MAAM,kBAAkB,WAAW,CAAC;AAC3C,eAAO,MAAM,eAAe,iBAAiB,CAAC;AAC9C,eAAO,MAAM,oBAAoB,2DACyB,CAAC;AAC3D,eAAO,MAAM,yBAAyB,uCAAuC,CAAC;AAC9E,eAAO,MAAM,uBAAuB,qCAAqC,CAAC;AAC1E,eAAO,MAAM,8BAA8B,8CACE,CAAC;AAC9C,eAAO,MAAM,4BAA4B,4CACE,CAAC;AAC5C,eAAO,MAAM,+BAA+B,6BAA6B,CAAC;AA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AAM,EAAE,CAAC;CAClB;;;GAqBP;AAED,wBAAsB,YAAY,CAChC,GAAG,EAAE,MAAM,EACX,GAAG,GAAE,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,SAAS,CAAe,EACrD,OAAO,GAAE,mBAAwB;;;;GA0LlC;AAED,wBAAsB,mBAAmB,CACvC,GAAG,EAAE,MAAM,EACX,GAAG,GAAE,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,SAAS,CAAe,EACrD,OAAO,GAAE,mBAAwB;;;eAMxB,MAAM;gBACL,sBAAsB;;;;GA2GjC;AAuFD,wBAAgB,4BAA4B,CAC1C,KAAK,EAAE,uBAAuB,EAC9B,OAAO,GAAE;IAAE,KAAK,CAAC,EAAE,OAAO,CAAC;IAAC,KAAK,CAAC,EAAE,MAAM,CAAA;CAAO,YAoClD;AA0/BD,wBAAsB,aAAa,CACjC,GAAG,EAAE,MAAM,EACX,OAAO,EAAE,MAAM,GAAG,SAAS,EAC3B,IAAI,EAAE,MAAM,EAAE,EACd,EAAE,EAAE,SAAS,EACb,OAAO,GAAE;IACP,aAAa,CAAC,EAAE,aAAa,CAAC;CAC1B,mBAiBP;AAymBD,wBAAsB,MAAM,CAC1B,IAAI,MAAwB,EAC5B,EAAE,GAAE,SAGH,mBAuKF"}
@@ -2061,6 +2061,55 @@ export function clearPnpmWorkspaceLocalDevText(existingText) {
2061
2061
  text: nextText,
2062
2062
  };
2063
2063
  }
2064
+ function pnpmWorkspaceExcludesMinimumReleaseAge(text, dependency) {
2065
+ if (!text)
2066
+ return false;
2067
+ const lines = normalizeText(text).split("\n");
2068
+ const index = lines.findIndex((line) => /^minimumReleaseAgeExclude:\s*/.test(line));
2069
+ if (index === -1)
2070
+ return false;
2071
+ const value = lines[index].replace(/^minimumReleaseAgeExclude:\s*/, "");
2072
+ return yamlScalarValueContainsToken(value, dependency) ||
2073
+ yamlListContainsToken(lines, index, 0, dependency);
2074
+ }
2075
+ /** Keeps first-party Loom releases outside pnpm's package-age delay. */
2076
+ export function ensurePnpmWorkspaceLoomReleaseAgeExcludeText(existingText) {
2077
+ const normalized = existingText ? normalizeText(existingText) : "";
2078
+ if (pnpmWorkspaceExcludesMinimumReleaseAge(normalized, LOOM_DEPENDENCY)) {
2079
+ return { changed: false, conflict: null, text: normalized };
2080
+ }
2081
+ const lines = normalized === ""
2082
+ ? []
2083
+ : normalized.replace(/\n$/, "").split("\n");
2084
+ const index = lines.findIndex((line) => /^minimumReleaseAgeExclude:\s*/.test(line));
2085
+ const entry = ` - "${LOOM_DEPENDENCY}"`;
2086
+ if (index === -1) {
2087
+ if (lines.length && lines.at(-1) !== "")
2088
+ lines.push("");
2089
+ lines.push("minimumReleaseAgeExclude:", entry);
2090
+ }
2091
+ else {
2092
+ const value = lines[index].replace(/^minimumReleaseAgeExclude:\s*/, "");
2093
+ if (value === "" || value.startsWith("#")) {
2094
+ lines.splice(index + 1, 0, entry);
2095
+ }
2096
+ else {
2097
+ const inline = value.match(/^\[([^\]]*)\](\s*#.*)?$/);
2098
+ if (!inline) {
2099
+ return {
2100
+ changed: false,
2101
+ conflict: "pnpm-workspace.yaml defines minimumReleaseAgeExclude in an unsupported scalar form; add @gadicc/loom manually.",
2102
+ text: normalized,
2103
+ };
2104
+ }
2105
+ const existingItems = inline[1].trim();
2106
+ const comment = inline[2] ?? "";
2107
+ lines[index] = `minimumReleaseAgeExclude: [${existingItems ? `${existingItems}, ` : ""}"${LOOM_DEPENDENCY}"]${comment}`;
2108
+ }
2109
+ }
2110
+ const text = formatYamlLines(lines);
2111
+ return { changed: text !== normalized, conflict: null, text };
2112
+ }
2064
2113
  async function writeTextOrDeleteIfEmpty(path, text) {
2065
2114
  if (text === "") {
2066
2115
  try {
@@ -2733,6 +2782,97 @@ async function checkNextAgentGuidance(cwd, packageJson) {
2733
2782
  }
2734
2783
  return { issues: [], suggestions: [], warnings: [] };
2735
2784
  }
2785
+ const PNPM_11_LEGACY_WORKSPACE_SETTINGS = [
2786
+ "allowNonAppliedPatches",
2787
+ "ignoreDepScripts",
2788
+ "ignorePatchFailures",
2789
+ "ignoredBuiltDependencies",
2790
+ "neverBuiltDependencies",
2791
+ "onlyBuiltDependencies",
2792
+ "onlyBuiltDependenciesFile",
2793
+ ];
2794
+ function getPnpmMajor(packageManager) {
2795
+ const match = packageManager?.match(/^pnpm@(\d+)(?:\.|$)/);
2796
+ return match ? Number(match[1]) : null;
2797
+ }
2798
+ function isPnpmRegistryOrAuthSetting(key) {
2799
+ return key === "registry" || key.endsWith(":registry") ||
2800
+ /^(?:\/\/[^:]+\/?:)?(?::_authToken|_auth|username|_password|email|always-auth)$/i
2801
+ .test(key);
2802
+ }
2803
+ function findUnsupportedPnpm11NpmrcSettings(text) {
2804
+ if (!text)
2805
+ return [];
2806
+ const settings = new Set();
2807
+ for (const line of normalizeText(text).split("\n")) {
2808
+ const trimmed = line.trim();
2809
+ if (!trimmed || trimmed.startsWith("#") || trimmed.startsWith(";")) {
2810
+ continue;
2811
+ }
2812
+ const separator = trimmed.indexOf("=");
2813
+ const key = (separator === -1 ? trimmed : trimmed.slice(0, separator))
2814
+ .trim();
2815
+ if (key && !isPnpmRegistryOrAuthSetting(key))
2816
+ settings.add(key);
2817
+ }
2818
+ return [...settings].sort();
2819
+ }
2820
+ function findLegacyPnpm11WorkspaceSettings(text) {
2821
+ if (!text)
2822
+ return [];
2823
+ const settings = new Set();
2824
+ const pattern = new RegExp(`^(${PNPM_11_LEGACY_WORKSPACE_SETTINGS.join("|")}):\\s*`);
2825
+ for (const line of normalizeText(text).split("\n")) {
2826
+ const match = line.match(pattern);
2827
+ if (match)
2828
+ settings.add(match[1]);
2829
+ }
2830
+ return [...settings].sort();
2831
+ }
2832
+ async function checkPnpm11Compatibility(cwd, packageJson, npmrcText) {
2833
+ const workspaceText = await readTextIfExists(join(cwd, "pnpm-workspace.yaml"));
2834
+ const usesPnpm = packageJson.packageManager?.startsWith("pnpm@") ||
2835
+ workspaceText !== null || await exists(join(cwd, "pnpm-lock.yaml"));
2836
+ if (!usesPnpm)
2837
+ return { issues: [], suggestions: [], warnings: [] };
2838
+ const findings = [];
2839
+ if (packageJson.pnpm && Object.keys(packageJson.pnpm).length > 0) {
2840
+ findings.push("pnpm 11+ ignores package.json#pnpm; move those settings to pnpm-workspace.yaml.");
2841
+ }
2842
+ const npmrcSettings = findUnsupportedPnpm11NpmrcSettings(npmrcText);
2843
+ if (npmrcSettings.length > 0) {
2844
+ findings.push(`pnpm 11+ reads only registry/auth settings from .npmrc; move ${npmrcSettings.join(", ")} to pnpm-workspace.yaml.`);
2845
+ }
2846
+ const legacyWorkspaceSettings = findLegacyPnpm11WorkspaceSettings(workspaceText);
2847
+ if (legacyWorkspaceSettings.length > 0) {
2848
+ findings.push(`pnpm 11+ no longer supports ${legacyWorkspaceSettings.join(", ")} in pnpm-workspace.yaml; migrate dependency build policy to allowBuilds and replace removed patch settings.`);
2849
+ }
2850
+ if (!pnpmWorkspaceExcludesMinimumReleaseAge(workspaceText, LOOM_DEPENDENCY)) {
2851
+ findings.push("pnpm 11's release-age policy can delay first-party @gadicc/loom updates; add it to minimumReleaseAgeExclude in pnpm-workspace.yaml.");
2852
+ }
2853
+ const workflowPaths = await getGithubWorkflowRelativePaths(cwd);
2854
+ const legacyWorkflowPaths = [];
2855
+ for (const relativePath of workflowPaths) {
2856
+ const text = await readTextIfExists(join(cwd, relativePath));
2857
+ if (text && /\buses:\s*pnpm\/action-setup@/m.test(text)) {
2858
+ legacyWorkflowPaths.push(relativePath);
2859
+ }
2860
+ }
2861
+ if (legacyWorkflowPaths.length > 0) {
2862
+ findings.push(`pnpm 11+ projects should use pnpm/setup instead of pnpm/action-setup in ${legacyWorkflowPaths.join(", ")}.`);
2863
+ }
2864
+ if (findings.length === 0) {
2865
+ return { issues: [], suggestions: [], warnings: [] };
2866
+ }
2867
+ const major = getPnpmMajor(packageJson.packageManager);
2868
+ return {
2869
+ issues: major !== null && major >= 11 ? findings : [],
2870
+ suggestions: [
2871
+ "Follow the pnpm 11 migration guide, keep registry/auth settings in .npmrc, and rerun `loom check`.",
2872
+ ],
2873
+ warnings: major === null || major < 11 ? findings : [],
2874
+ };
2875
+ }
2736
2876
  function getSkillsContext(packageJson, manifest) {
2737
2877
  return {
2738
2878
  activeFeatureKeys: new Set(manifest
@@ -9646,6 +9786,18 @@ export async function initProject(cwd, versionRange) {
9646
9786
  }
9647
9787
  const packageJson = (await readProjectPackageMetadata(cwd))
9648
9788
  .packageJson;
9789
+ if (tooling.dependencies.manager === "pnpm") {
9790
+ const workspacePath = join(cwd, "pnpm-workspace.yaml");
9791
+ const releaseAgeUpdate = ensurePnpmWorkspaceLoomReleaseAgeExcludeText(await readTextIfExists(workspacePath));
9792
+ if (releaseAgeUpdate.conflict) {
9793
+ notes.push(releaseAgeUpdate.conflict);
9794
+ }
9795
+ else if (releaseAgeUpdate.changed) {
9796
+ await writeFile(workspacePath, releaseAgeUpdate.text, "utf8");
9797
+ changedFiles.push("pnpm-workspace.yaml");
9798
+ notes.push("Excluded first-party @gadicc/loom releases from pnpm's minimum release-age delay.");
9799
+ }
9800
+ }
9649
9801
  const framework = await detectFramework(cwd, packageJson);
9650
9802
  const manifest = buildManifest(cwd, packageJson, framework, existingManifest, tooling);
9651
9803
  const featureInit = await ensureActiveFeatureScaffolds(cwd, framework, manifest);
@@ -9850,6 +10002,12 @@ export async function checkProject(cwd, env = process.env, options = {}) {
9850
10002
  warnings.push(".npmrc retains Loom's obsolete GitHub Packages registry configuration.");
9851
10003
  suggestions.add("Run `loom init` to remove the obsolete Loom registry lines.");
9852
10004
  }
10005
+ const pnpmCompatibilityCheck = await checkPnpm11Compatibility(cwd, packageJson, npmrcText);
10006
+ issues.push(...pnpmCompatibilityCheck.issues);
10007
+ warnings.push(...pnpmCompatibilityCheck.warnings);
10008
+ for (const suggestion of pnpmCompatibilityCheck.suggestions) {
10009
+ suggestions.add(suggestion);
10010
+ }
9853
10011
  const framework = await detectFramework(cwd, packageJson);
9854
10012
  const dependency = packageJson.dependencies?.[LOOM_DEPENDENCY];
9855
10013
  if (!dependency) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gadicc/loom",
3
- "version": "1.22.1",
3
+ "version": "1.23.0",
4
4
  "description": "Deno-first shared helpers for extracting common Next.js app code.",
5
5
  "homepage": "https://github.com/gadicc/loom#readme",
6
6
  "repository": {
@@ -231,7 +231,7 @@
231
231
  },
232
232
  "scripts": {},
233
233
  "loom": {
234
- "gitCommit": "30e5ffb5178e793a7780fa10bfe5b2719bccece5"
234
+ "gitCommit": "bb158a1690fa338bc94307c84a2f8bf870f02d72"
235
235
  },
236
236
  "bin": {
237
237
  "loom": "script/bin/loom.js"
@@ -23,6 +23,7 @@ type PackageJson = {
23
23
  dependencies?: Record<string, string>;
24
24
  devDependencies?: Record<string, string>;
25
25
  packageManager?: string;
26
+ pnpm?: Record<string, unknown>;
26
27
  version?: string;
27
28
  };
28
29
  type ManagedLocalSchemaConfig = {
@@ -238,6 +239,16 @@ export declare function clearPnpmWorkspaceLocalDevText(existingText: string | nu
238
239
  changed: boolean;
239
240
  text: string;
240
241
  };
242
+ /** Keeps first-party Loom releases outside pnpm's package-age delay. */
243
+ export declare function ensurePnpmWorkspaceLoomReleaseAgeExcludeText(existingText: string | null): {
244
+ changed: boolean;
245
+ conflict: null;
246
+ text: string;
247
+ } | {
248
+ changed: boolean;
249
+ conflict: string;
250
+ text: string;
251
+ };
241
252
  export declare function syncLocalDevPackage(cwd: string, options?: DevSyncOptions): Promise<DevSyncResult>;
242
253
  export declare function useLocalDevPackage(cwd: string, inputPath: string): Promise<DevOverrideResult>;
243
254
  export declare function usePublishedDevPackage(cwd: string, options?: UsePublishedDevPackageOptions): Promise<DevOverrideResult>;
@@ -1 +1 @@
1
- {"version":3,"file":"mod.d.ts","sourceRoot":"","sources":["../../../src/src/cli/mod.ts"],"names":[],"mappings":"AAyCA,OAAO,EAUL,KAAK,cAAc,EAMpB,MAAM,qBAAqB,CAAC;AAE7B,eAAO,MAAM,k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ensurePnpmWorkspaceLocalDevText;
49
49
  exports.clearPnpmWorkspaceLocalDevText = clearPnpmWorkspaceLocalDevText;
50
+ exports.ensurePnpmWorkspaceLoomReleaseAgeExcludeText = ensurePnpmWorkspaceLoomReleaseAgeExcludeText;
50
51
  exports.syncLocalDevPackage = syncLocalDevPackage;
51
52
  exports.useLocalDevPackage = useLocalDevPackage;
52
53
  exports.usePublishedDevPackage = usePublishedDevPackage;
@@ -2131,6 +2132,55 @@ function clearPnpmWorkspaceLocalDevText(existingText) {
2131
2132
  text: nextText,
2132
2133
  };
2133
2134
  }
2135
+ function pnpmWorkspaceExcludesMinimumReleaseAge(text, dependency) {
2136
+ if (!text)
2137
+ return false;
2138
+ const lines = normalizeText(text).split("\n");
2139
+ const index = lines.findIndex((line) => /^minimumReleaseAgeExclude:\s*/.test(line));
2140
+ if (index === -1)
2141
+ return false;
2142
+ const value = lines[index].replace(/^minimumReleaseAgeExclude:\s*/, "");
2143
+ return yamlScalarValueContainsToken(value, dependency) ||
2144
+ yamlListContainsToken(lines, index, 0, dependency);
2145
+ }
2146
+ /** Keeps first-party Loom releases outside pnpm's package-age delay. */
2147
+ function ensurePnpmWorkspaceLoomReleaseAgeExcludeText(existingText) {
2148
+ const normalized = existingText ? normalizeText(existingText) : "";
2149
+ if (pnpmWorkspaceExcludesMinimumReleaseAge(normalized, exports.LOOM_DEPENDENCY)) {
2150
+ return { changed: false, conflict: null, text: normalized };
2151
+ }
2152
+ const lines = normalized === ""
2153
+ ? []
2154
+ : normalized.replace(/\n$/, "").split("\n");
2155
+ const index = lines.findIndex((line) => /^minimumReleaseAgeExclude:\s*/.test(line));
2156
+ const entry = ` - "${exports.LOOM_DEPENDENCY}"`;
2157
+ if (index === -1) {
2158
+ if (lines.length && lines.at(-1) !== "")
2159
+ lines.push("");
2160
+ lines.push("minimumReleaseAgeExclude:", entry);
2161
+ }
2162
+ else {
2163
+ const value = lines[index].replace(/^minimumReleaseAgeExclude:\s*/, "");
2164
+ if (value === "" || value.startsWith("#")) {
2165
+ lines.splice(index + 1, 0, entry);
2166
+ }
2167
+ else {
2168
+ const inline = value.match(/^\[([^\]]*)\](\s*#.*)?$/);
2169
+ if (!inline) {
2170
+ return {
2171
+ changed: false,
2172
+ conflict: "pnpm-workspace.yaml defines minimumReleaseAgeExclude in an unsupported scalar form; add @gadicc/loom manually.",
2173
+ text: normalized,
2174
+ };
2175
+ }
2176
+ const existingItems = inline[1].trim();
2177
+ const comment = inline[2] ?? "";
2178
+ lines[index] = `minimumReleaseAgeExclude: [${existingItems ? `${existingItems}, ` : ""}"${exports.LOOM_DEPENDENCY}"]${comment}`;
2179
+ }
2180
+ }
2181
+ const text = formatYamlLines(lines);
2182
+ return { changed: text !== normalized, conflict: null, text };
2183
+ }
2134
2184
  async function writeTextOrDeleteIfEmpty(path, text) {
2135
2185
  if (text === "") {
2136
2186
  try {
@@ -2803,6 +2853,97 @@ async function checkNextAgentGuidance(cwd, packageJson) {
2803
2853
  }
2804
2854
  return { issues: [], suggestions: [], warnings: [] };
2805
2855
  }
2856
+ const PNPM_11_LEGACY_WORKSPACE_SETTINGS = [
2857
+ "allowNonAppliedPatches",
2858
+ "ignoreDepScripts",
2859
+ "ignorePatchFailures",
2860
+ "ignoredBuiltDependencies",
2861
+ "neverBuiltDependencies",
2862
+ "onlyBuiltDependencies",
2863
+ "onlyBuiltDependenciesFile",
2864
+ ];
2865
+ function getPnpmMajor(packageManager) {
2866
+ const match = packageManager?.match(/^pnpm@(\d+)(?:\.|$)/);
2867
+ return match ? Number(match[1]) : null;
2868
+ }
2869
+ function isPnpmRegistryOrAuthSetting(key) {
2870
+ return key === "registry" || key.endsWith(":registry") ||
2871
+ /^(?:\/\/[^:]+\/?:)?(?::_authToken|_auth|username|_password|email|always-auth)$/i
2872
+ .test(key);
2873
+ }
2874
+ function findUnsupportedPnpm11NpmrcSettings(text) {
2875
+ if (!text)
2876
+ return [];
2877
+ const settings = new Set();
2878
+ for (const line of normalizeText(text).split("\n")) {
2879
+ const trimmed = line.trim();
2880
+ if (!trimmed || trimmed.startsWith("#") || trimmed.startsWith(";")) {
2881
+ continue;
2882
+ }
2883
+ const separator = trimmed.indexOf("=");
2884
+ const key = (separator === -1 ? trimmed : trimmed.slice(0, separator))
2885
+ .trim();
2886
+ if (key && !isPnpmRegistryOrAuthSetting(key))
2887
+ settings.add(key);
2888
+ }
2889
+ return [...settings].sort();
2890
+ }
2891
+ function findLegacyPnpm11WorkspaceSettings(text) {
2892
+ if (!text)
2893
+ return [];
2894
+ const settings = new Set();
2895
+ const pattern = new RegExp(`^(${PNPM_11_LEGACY_WORKSPACE_SETTINGS.join("|")}):\\s*`);
2896
+ for (const line of normalizeText(text).split("\n")) {
2897
+ const match = line.match(pattern);
2898
+ if (match)
2899
+ settings.add(match[1]);
2900
+ }
2901
+ return [...settings].sort();
2902
+ }
2903
+ async function checkPnpm11Compatibility(cwd, packageJson, npmrcText) {
2904
+ const workspaceText = await readTextIfExists((0, node_path_1.join)(cwd, "pnpm-workspace.yaml"));
2905
+ const usesPnpm = packageJson.packageManager?.startsWith("pnpm@") ||
2906
+ workspaceText !== null || await exists((0, node_path_1.join)(cwd, "pnpm-lock.yaml"));
2907
+ if (!usesPnpm)
2908
+ return { issues: [], suggestions: [], warnings: [] };
2909
+ const findings = [];
2910
+ if (packageJson.pnpm && Object.keys(packageJson.pnpm).length > 0) {
2911
+ findings.push("pnpm 11+ ignores package.json#pnpm; move those settings to pnpm-workspace.yaml.");
2912
+ }
2913
+ const npmrcSettings = findUnsupportedPnpm11NpmrcSettings(npmrcText);
2914
+ if (npmrcSettings.length > 0) {
2915
+ findings.push(`pnpm 11+ reads only registry/auth settings from .npmrc; move ${npmrcSettings.join(", ")} to pnpm-workspace.yaml.`);
2916
+ }
2917
+ const legacyWorkspaceSettings = findLegacyPnpm11WorkspaceSettings(workspaceText);
2918
+ if (legacyWorkspaceSettings.length > 0) {
2919
+ findings.push(`pnpm 11+ no longer supports ${legacyWorkspaceSettings.join(", ")} in pnpm-workspace.yaml; migrate dependency build policy to allowBuilds and replace removed patch settings.`);
2920
+ }
2921
+ if (!pnpmWorkspaceExcludesMinimumReleaseAge(workspaceText, exports.LOOM_DEPENDENCY)) {
2922
+ findings.push("pnpm 11's release-age policy can delay first-party @gadicc/loom updates; add it to minimumReleaseAgeExclude in pnpm-workspace.yaml.");
2923
+ }
2924
+ const workflowPaths = await getGithubWorkflowRelativePaths(cwd);
2925
+ const legacyWorkflowPaths = [];
2926
+ for (const relativePath of workflowPaths) {
2927
+ const text = await readTextIfExists((0, node_path_1.join)(cwd, relativePath));
2928
+ if (text && /\buses:\s*pnpm\/action-setup@/m.test(text)) {
2929
+ legacyWorkflowPaths.push(relativePath);
2930
+ }
2931
+ }
2932
+ if (legacyWorkflowPaths.length > 0) {
2933
+ findings.push(`pnpm 11+ projects should use pnpm/setup instead of pnpm/action-setup in ${legacyWorkflowPaths.join(", ")}.`);
2934
+ }
2935
+ if (findings.length === 0) {
2936
+ return { issues: [], suggestions: [], warnings: [] };
2937
+ }
2938
+ const major = getPnpmMajor(packageJson.packageManager);
2939
+ return {
2940
+ issues: major !== null && major >= 11 ? findings : [],
2941
+ suggestions: [
2942
+ "Follow the pnpm 11 migration guide, keep registry/auth settings in .npmrc, and rerun `loom check`.",
2943
+ ],
2944
+ warnings: major === null || major < 11 ? findings : [],
2945
+ };
2946
+ }
2806
2947
  function getSkillsContext(packageJson, manifest) {
2807
2948
  return {
2808
2949
  activeFeatureKeys: new Set(manifest
@@ -9716,6 +9857,18 @@ async function initProject(cwd, versionRange) {
9716
9857
  }
9717
9858
  const packageJson = (await (0, projectTooling_js_1.readProjectPackageMetadata)(cwd))
9718
9859
  .packageJson;
9860
+ if (tooling.dependencies.manager === "pnpm") {
9861
+ const workspacePath = (0, node_path_1.join)(cwd, "pnpm-workspace.yaml");
9862
+ const releaseAgeUpdate = ensurePnpmWorkspaceLoomReleaseAgeExcludeText(await readTextIfExists(workspacePath));
9863
+ if (releaseAgeUpdate.conflict) {
9864
+ notes.push(releaseAgeUpdate.conflict);
9865
+ }
9866
+ else if (releaseAgeUpdate.changed) {
9867
+ await (0, promises_1.writeFile)(workspacePath, releaseAgeUpdate.text, "utf8");
9868
+ changedFiles.push("pnpm-workspace.yaml");
9869
+ notes.push("Excluded first-party @gadicc/loom releases from pnpm's minimum release-age delay.");
9870
+ }
9871
+ }
9719
9872
  const framework = await detectFramework(cwd, packageJson);
9720
9873
  const manifest = buildManifest(cwd, packageJson, framework, existingManifest, tooling);
9721
9874
  const featureInit = await ensureActiveFeatureScaffolds(cwd, framework, manifest);
@@ -9920,6 +10073,12 @@ async function checkProject(cwd, env = node_process_1.default.env, options = {})
9920
10073
  warnings.push(".npmrc retains Loom's obsolete GitHub Packages registry configuration.");
9921
10074
  suggestions.add("Run `loom init` to remove the obsolete Loom registry lines.");
9922
10075
  }
10076
+ const pnpmCompatibilityCheck = await checkPnpm11Compatibility(cwd, packageJson, npmrcText);
10077
+ issues.push(...pnpmCompatibilityCheck.issues);
10078
+ warnings.push(...pnpmCompatibilityCheck.warnings);
10079
+ for (const suggestion of pnpmCompatibilityCheck.suggestions) {
10080
+ suggestions.add(suggestion);
10081
+ }
9923
10082
  const framework = await detectFramework(cwd, packageJson);
9924
10083
  const dependency = packageJson.dependencies?.[exports.LOOM_DEPENDENCY];
9925
10084
  if (!dependency) {
@@ -223,6 +223,31 @@ as more authoritative than a generic mapped error when deciding what failed.
223
223
  Loom version, preserve the older behavior and add an explicit new path for the
224
224
  changed behavior.
225
225
 
226
+ ## pnpm major upgrades
227
+
228
+ - Treat the exact `packageManager` pin as the consumer contract. Do not move all
229
+ apps to a new pnpm major merely because a newer release exists.
230
+ - Before pnpm 11, move pnpm settings from `package.json#pnpm` into
231
+ `pnpm-workspace.yaml`; pnpm 11 no longer reads that package.json object.
232
+ - Keep only registry and authentication settings in `.npmrc`. Move pnpm options
233
+ such as `store-dir` and `strictDepBuilds` into `pnpm-workspace.yaml`.
234
+ - Replace `onlyBuiltDependencies`, `ignoredBuiltDependencies`, and related old
235
+ dependency-build settings with an explicit `allowBuilds` map before pnpm 11.
236
+ - For GitHub Actions on pnpm 11+, use the maintained `pnpm/setup` action rather
237
+ than `pnpm/action-setup`.
238
+ - Run `loom check` before changing the pin. Compatibility findings are warnings
239
+ while the app remains on pnpm 10 and issues once it declares pnpm 11 or newer.
240
+ - Keep `@gadicc/loom` in `minimumReleaseAgeExclude`. It is a first-party package
241
+ that consumers routinely need immediately; `loom init` adds the exception
242
+ without weakening pnpm's release-age policy for third-party dependencies.
243
+ - Canary a new pnpm major in one clean Vercel consumer before rolling it across
244
+ the fleet. Verify a frozen install, local tests/build, preview deployment, and
245
+ the production release workflow. Defer consumers with overlapping local config
246
+ edits or unrelated commits that would be pushed by the rollout.
247
+ - pnpm 12 is a separate migration even when it can consume the same lockfile.
248
+ Evaluate it independently after its new Rust CLI and stricter workspace
249
+ validation have matured in the actual deployment platform.
250
+
226
251
  ## Commits
227
252
 
228
253
  - Use conventional commits with scopes for the title. Limit the subject line to
@@ -39,6 +39,24 @@ Use this skill when working on the shared jobs feature from a consuming app.
39
39
  task. Keep env loading in tasks such as `job` via `loom env --`, not in
40
40
  `scripts/jobDirect.ts`.
41
41
 
42
+ ## Invocation policy
43
+
44
+ - Treat a direct runner as one job transport, not as a separate job class and
45
+ not as evidence that the handler requires shell APIs. The app's script/job
46
+ boundary should instead follow capabilities: database and external-service
47
+ operations belong in jobs even when they are also HTTP-accessible.
48
+ - In server-deployed apps, production-capable operator jobs should normally have
49
+ an authenticated HTTP route and appear in the admin catalog. Retain the direct
50
+ runner as a local development and emergency-operator convenience.
51
+ - Keep a job out of HTTP only when it is deliberately local-only, requires a
52
+ runtime unavailable to the web deployment, or has another reviewed production
53
+ control plane. Document both the reason and the actual production execution
54
+ path.
55
+ - Sensitivity alone is not a reason for CLI-only obscurity. Protect sensitive
56
+ HTTP jobs with fresh-admin or scoped API-key authorization, bounded typed
57
+ parameters, explicit confirmation for consequential actions, sanitized output,
58
+ and durable audit records.
59
+
42
60
  ## Catalog runtime boundaries
43
61
 
44
62
  - Keep the configured metadata catalog dependency-free. Define job metadata in a
@@ -0,0 +1,69 @@
1
+ ---
2
+ name: loom-scaffold
3
+ description: Scaffold a brand-new small site, demo, or prototype with @gadicc/loom and the standard Next.js, MUI, Better Auth, Neon, Drizzle, Vitest, Biome, pnpm, GitHub, and Vercel stack. Use for empty or nearly empty repositories; use the loom skill for adoption into an existing application.
4
+ ---
5
+
6
+ # Loom Scaffold
7
+
8
+ Create a small but production-capable greenfield application without copying an
9
+ older app wholesale. Use current compatible packages, let Loom own its shared
10
+ feature wiring, and leave product-specific UI and behavior in the new app.
11
+
12
+ This is an orchestration skill, not a frozen source template. Read
13
+ [the greenfield workflow](references/greenfield-workflow.md) completely before
14
+ changing the target repository.
15
+
16
+ ## Applicability
17
+
18
+ - Use this skill when the target is empty or contains only bootstrap state such
19
+ as `.git`, `.vercel`, and a local environment file.
20
+ - If meaningful application code already exists, switch to the `loom` skill and
21
+ adopt features incrementally instead.
22
+ - The standard profile is Next.js App Router with `src/`, TypeScript, MUI,
23
+ Better Auth with Google OAuth, Neon/Drizzle, Vitest, Biome, Node 24, the
24
+ current compatible pnpm 11 release, GitHub, and Vercel.
25
+ - Treat DB, auth, mail, files, jobs, PWA, and localization as selectable Loom
26
+ features. Do not add optional features merely because another app uses them.
27
+
28
+ ## Start here
29
+
30
+ 1. Inspect git status, remotes, the linked Vercel project, and existing files.
31
+ Preserve all pre-existing bootstrap state and never display local secrets.
32
+ 2. Resolve the app name, display title, canonical domain, desired features, and
33
+ deployment region. Database placement is expensive to change, so require an
34
+ explicit region before provisioning it; match Vercel functions unless the
35
+ user chooses otherwise.
36
+ 3. Confirm which external actions are in scope. Scaffolding does not by itself
37
+ authorize deleting/recreating resources, pushing commits, changing OAuth
38
+ clients, or deploying production.
39
+ 4. After installing Next.js, read the relevant version-matched documentation in
40
+ `node_modules/next/dist/docs/` before making framework-specific choices.
41
+ 5. Install the published Loom package, run `loom init`, read the resulting
42
+ `loom.json`, and use `loom add <feature>` rather than hand-creating shared
43
+ feature wiring.
44
+
45
+ ## Non-negotiable invariants
46
+
47
+ - Keep `loom.json` and `project.tooling` authoritative after initialization.
48
+ - Pin Node and the package manager reproducibly. Keep pnpm settings in
49
+ `pnpm-workspace.yaml`, exempt the first-party `@gadicc/loom` package from the
50
+ release-age delay, and explicitly review every dependency build script.
51
+ - Use Loom's loopback-only Better Auth development helper when `vercel dev`
52
+ proxies Next.js on an internal port. OAuth callbacks must use the public
53
+ localhost port, never the internal framework port.
54
+ - Generate Drizzle migrations and generated schemas through the declared app
55
+ tasks. Do not hand-edit migration journals or generated validation files.
56
+ - For a DB-backed production app, stage the exact Vercel artifact, run verified
57
+ migrations, smoke-test it, and only then promote it. Keep automatic preview
58
+ deployments, but disable automatic `main` production deployments once that
59
+ release workflow is ready.
60
+ - Keep secrets out of commits, command arguments, logs, caches, and uploaded
61
+ artifacts. Document variable names in `.env.example`.
62
+
63
+ ## Finish
64
+
65
+ Run the frozen install, project quality gate, production build, `loom check`,
66
+ and relevant network/preview checks. Report created resources and regions,
67
+ features, generated migration state, OAuth callback requirements, verification
68
+ results, deployment URLs, commits, and every remaining manual or unauthorized
69
+ step.
@@ -0,0 +1,4 @@
1
+ interface:
2
+ display_name: "Loom Scaffold"
3
+ short_description: "Scaffold a production-ready Loom web app"
4
+ default_prompt: "Use $loom-scaffold to create a new site with my standard Loom stack."
@@ -0,0 +1,248 @@
1
+ # Greenfield Loom application workflow
2
+
3
+ Use this workflow end to end for an empty or nearly empty repository. Adapt the
4
+ product surface, but preserve the operational boundaries below.
5
+
6
+ ## Reference provenance
7
+
8
+ This skill records the reusable decisions from a reviewed Own the Gate
9
+ greenfield build; it does not treat that application's moving working tree as a
10
+ template. Loom's `docs/reference-projects.yaml` registry pins the named
11
+ `greenfieldScaffold` snapshot from the initial app revision through the exact
12
+ revision reviewed when this workflow was extracted.
13
+
14
+ Use the skill itself as the normal source of truth. If Loom maintainers need to
15
+ inspect a raw reference artifact and both repositories are available locally,
16
+ read it from `capturedThroughRevision` without checking out or modifying the
17
+ live app. Current framework, provider, and Loom documentation overrides package
18
+ versions captured by the snapshot. Advance the snapshot only after deciding that
19
+ later app work is a reusable scaffold improvement rather than Own the Gate
20
+ product behavior.
21
+
22
+ ## 1. Intake and preflight
23
+
24
+ Inspect before asking questions:
25
+
26
+ - current path and existing non-generated files;
27
+ - `git status --short --branch` and configured remotes;
28
+ - `.vercel/project.json` or `.vercel/repo.json` without relinking;
29
+ - available Node, Corepack/pnpm, Vercel, GitHub, and provider CLIs;
30
+ - whether `.env.local` exists, without printing its values.
31
+
32
+ Resolve only material missing choices:
33
+
34
+ - package/directory slug and human-facing title;
35
+ - canonical domain and public localhost port;
36
+ - Vercel team/project and whether it is already linked;
37
+ - database and Vercel function region;
38
+ - required Loom features, with DB and Better Auth as the standard profile;
39
+ - OAuth providers and whether local/production credentials already exist;
40
+ - whether the user requested local scaffolding only, a pushed preview, or a
41
+ complete production release.
42
+
43
+ Do not infer permission to replace an existing resource. Before deleting or
44
+ recreating a database, deployment, branch, or credential, identify the exact
45
+ target, prove why replacement is needed, and obtain explicit authorization.
46
+
47
+ ## 2. Establish the application baseline
48
+
49
+ Preserve `.git`, `.vercel`, `.env.local`, and any user-owned files. If a
50
+ generator rejects the bootstrap files in the target directory, generate into a
51
+ temporary directory, review its output, and move only the intended scaffold
52
+ files. Never copy a temporary `.git`, `.vercel`, environment file, or lockfile
53
+ over existing state blindly.
54
+
55
+ Create the smallest useful baseline:
56
+
57
+ - current compatible Next.js and React with App Router, `src/`, TypeScript, and
58
+ the `@/*` alias;
59
+ - React Server Components by default, with narrow client providers;
60
+ - MUI, Emotion, the version-appropriate MUI Next.js cache provider, one shared
61
+ theme, and an intentional first page rather than generator demo content;
62
+ - site metadata in one typed app-local config used by layout, sitemap, robots,
63
+ and tests;
64
+ - Biome checks/fixes, Vitest, typecheck, build, and a full local gate;
65
+ - `.gitignore`, `.env.example`, `.node-version`, `.nvmrc`, and a concise README;
66
+ - Dependabot and CODEOWNERS when GitHub maintenance is in scope.
67
+
68
+ After `loom init`, keep project-specific AGENTS guidance outside Loom's managed
69
+ blocks. Add only useful local context such as the project overview, runtime and
70
+ UI choices, authoritative commands, environment/data rules, and verification
71
+ gate; do not duplicate the shared Loom skill.
72
+
73
+ Use current mutually compatible releases rather than copying versions from a
74
+ reference app. Pin framework/tooling versions where reproducibility matters.
75
+
76
+ ## 3. Configure pnpm 11 deliberately
77
+
78
+ Record an exact current pnpm 11 version in `packageManager` and target Node 24.
79
+ Do not move a new scaffold to pnpm 12 as part of ordinary creation; evaluate it
80
+ as a separate canary when explicitly requested.
81
+
82
+ Keep non-registry pnpm settings in `pnpm-workspace.yaml`, using pnpm 11 names:
83
+
84
+ - add `@gadicc/loom` to `minimumReleaseAgeExclude`, because it is first-party
85
+ development infrastructure;
86
+ - set `minimumReleaseAgeExcludePrune: true`;
87
+ - enable `strictDepBuilds`;
88
+ - use `allowBuilds` only for build scripts observed and reviewed during the
89
+ actual install.
90
+
91
+ If an already-reviewed dependency is younger than pnpm's release-age window, add
92
+ only its exact package/version exception. Do not disable the policy or add broad
93
+ third-party patterns. Let Loom remain the sole broad first-party exception.
94
+
95
+ In GitHub Actions, use the maintained `pnpm/setup` action pinned to a reviewed
96
+ full commit SHA. Let `package.json#packageManager` select pnpm; do not also pass
97
+ a duplicate version input. The cache input is `cache-dependency-path` with a
98
+ hyphen. Include both lockfile and workspace configuration in the cache key.
99
+
100
+ ## 4. Initialize Loom and select features
101
+
102
+ Install the current published `@gadicc/loom`, then run:
103
+
104
+ ```text
105
+ pnpm exec loom init
106
+ pnpm exec loom status
107
+ pnpm exec loom add db
108
+ pnpm exec loom add auth
109
+ ```
110
+
111
+ Only run the feature commands the app needs. Re-read `loom.json` after each
112
+ activation and treat recorded paths and `project.tooling` as authoritative. Keep
113
+ generated Loom wrappers thin. Let `loom init` manage the AGENTS bootstrap,
114
+ package skills, task wiring, and the pnpm release-age exception.
115
+
116
+ For DB work, read the `loom-db` skill. For Better Auth work, read the
117
+ `loom-auth` skill. Use the matching feature skill for every additional active
118
+ feature.
119
+
120
+ ## 5. Provision and initialize Neon
121
+
122
+ Select the region before provisioning. For the Vercel Marketplace path, use the
123
+ explicit region and resource name:
124
+
125
+ ```text
126
+ pnpm exec loom db neon setup --name <resource-name> --region <region>
127
+ pnpm exec loom db neon check
128
+ ```
129
+
130
+ Use Better Auth rather than Neon Auth unless the user explicitly chooses the
131
+ latter. Verify the connected provider, Production/Preview environment scopes,
132
+ and recorded region in `loom.json`; do not assume that project-level Preview
133
+ variables imply an isolated local-development database.
134
+
135
+ Keep app schemas in the configured schema directory. For the standard auth
136
+ baseline:
137
+
138
+ 1. create the app-owned Better Auth options and generator config;
139
+ 2. generate the Better Auth Drizzle schema;
140
+ 3. export it from the app schema barrel;
141
+ 4. generate and review the initial Drizzle migration;
142
+ 5. regenerate Loom's Valibot schemas;
143
+ 6. verify the PGlite harness and tests;
144
+ 7. apply migrations only through the authoritative env-aware task and only to
145
+ the intended database.
146
+
147
+ Never hand-edit Drizzle journal/snapshot state or generated Valibot output.
148
+
149
+ ## 6. Configure Better Auth and Google OAuth
150
+
151
+ Keep providers, the Drizzle adapter, plugins, redirect behavior, and session
152
+ enrichment app-local. Use Loom helpers for the stable secret, session, and
153
+ server-reader boundaries.
154
+
155
+ For local development through `vercel dev`, spread
156
+ `createBetterAuthLocalDevelopmentConfig()` only in the non-production branch. It
157
+ trusts the loopback proxy boundary so Better Auth derives callbacks from the
158
+ public localhost port rather than Next.js's internal port.
159
+
160
+ Document and verify these callbacks:
161
+
162
+ - local origin: `http://localhost:<public-port>`;
163
+ - local redirect: `http://localhost:<public-port>/api/auth/callback/google`;
164
+ - production origin: `https://<canonical-domain>`;
165
+ - production redirect: `https://<canonical-domain>/api/auth/callback/google`.
166
+
167
+ Treat Google OAuth client creation and redirect editing as manual/external
168
+ unless an authenticated, supported API or CLI path has been confirmed. Vercel
169
+ environment variables can be configured from its CLI without placing secret
170
+ values in command arguments or shell history.
171
+
172
+ When local credentials are available, run the app through the public
173
+ `vercel dev` URL and initiate sign-in. Inspect the actual Google authorization
174
+ request and compare its `redirect_uri` exactly with the configured public
175
+ callback before declaring local OAuth complete.
176
+
177
+ At minimum document these environment names:
178
+
179
+ - `NEXT_PUBLIC_SITE_URL` and `BETTER_AUTH_URL`;
180
+ - `BETTER_AUTH_SECRET` or a deliberate versioned rotation configuration;
181
+ - provider client ID and client secret;
182
+ - pooled and direct database URLs supplied by the integration.
183
+
184
+ ## 7. Build the safe production release path
185
+
186
+ Set the chosen Vercel function region in `vercel.json`. For a DB-backed app,
187
+ build the GitHub-to-Vercel staged release before disabling Vercel's automatic
188
+ production deployment for `main`.
189
+
190
+ Use Loom's setup commands where applicable:
191
+
192
+ ```text
193
+ pnpm exec loom db release setup-github
194
+ pnpm exec loom db migrations setup-github
195
+ pnpm exec loom check --production --network
196
+ ```
197
+
198
+ The app-local workflow must:
199
+
200
+ 1. install frozen dependencies and hydrate Loom's ignored skill links;
201
+ 2. run typecheck, Biome, tests, and `loom check --production`;
202
+ 3. pull Vercel Production settings and mask readable secrets;
203
+ 4. prepare metadata-backed placeholders only for unreadable Sensitive values;
204
+ 5. validate the preserved migration environment with `--connect`;
205
+ 6. build and scan the exact prebuilt artifact;
206
+ 7. upload it with `--prebuilt --prod --skip-domain`;
207
+ 8. run the backward-compatible Drizzle migration;
208
+ 9. smoke-test the staged deployment through a short-lived protection bypass;
209
+ 10. promote that exact deployment and revoke the bypass even on failure.
210
+
211
+ Keep preview deployments automatic. Pin third-party Actions to reviewed full
212
+ commit SHAs and let Dependabot maintain them.
213
+
214
+ ## 8. Verification and release
215
+
216
+ Before the first commit, run at least:
217
+
218
+ ```text
219
+ pnpm install --frozen-lockfile
220
+ pnpm pre-commit
221
+ pnpm build
222
+ pnpm exec loom check
223
+ ```
224
+
225
+ Run provider/network checks when external setup is in scope. If push/deployment
226
+ was authorized, use a non-production branch first, wait for Vercel to reach a
227
+ terminal state, and smoke-test meaningful routes such as the homepage, auth
228
+ session endpoint, and a DB readiness endpoint. Promote the exact verified
229
+ commit, follow CI/CD to completion, and fix/retry failures within the authorized
230
+ scope.
231
+
232
+ Do not upload a directory that contains unreviewed private data or local secret
233
+ files merely to obtain a preview. Use Git integration or establish an explicit
234
+ safe packaging/ignore boundary first.
235
+
236
+ ## 9. Handoff
237
+
238
+ Report:
239
+
240
+ - application URL, package name, title, and selected regions;
241
+ - installed stack and active Loom features;
242
+ - database resource, environment scoping, migration state, and whether live
243
+ connectivity was verified;
244
+ - OAuth origins/redirects and any console-only work remaining;
245
+ - local commands and every verification result;
246
+ - preview/production deployment and workflow URLs when created;
247
+ - commits and whether they were pushed;
248
+ - every incomplete, manual, deferred, or unauthorized step.