rahman-resources 1.10.0 → 1.12.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/bin/cli.js +22 -0
- package/lib/manifest.json +897 -43
- package/lib/slice-schema.json +177 -31
- package/lib/starter/convex/schema.ts +1 -0
- package/lib/starter/convex/settings.ts +2 -0
- package/lib/starter/convex/setup.ts +3 -0
- package/lib/starter/scripts/setup-auth.mjs +56 -4
- package/package.json +2 -2
package/bin/cli.js
CHANGED
|
@@ -211,6 +211,22 @@ function findRepoRoot(start) {
|
|
|
211
211
|
// ─── catalog lookups ──────────────────────────────────────────────────────
|
|
212
212
|
|
|
213
213
|
function findEntry(slug) {
|
|
214
|
+
const direct = lookupEntry(slug);
|
|
215
|
+
if (direct) return direct;
|
|
216
|
+
// Superseded slugs (e.g. the seven landing sections merged into
|
|
217
|
+
// landing-sections, UX wave U3) resolve through manifest.aliases.
|
|
218
|
+
const alias = manifest.aliases?.[slug];
|
|
219
|
+
if (alias) {
|
|
220
|
+
const found = lookupEntry(alias);
|
|
221
|
+
if (found) {
|
|
222
|
+
console.error(kleur.yellow(`"${slug}" is superseded by "${alias}" — using ${alias}.`));
|
|
223
|
+
return found;
|
|
224
|
+
}
|
|
225
|
+
}
|
|
226
|
+
return null;
|
|
227
|
+
}
|
|
228
|
+
|
|
229
|
+
function lookupEntry(slug) {
|
|
214
230
|
for (const kind of KINDS) {
|
|
215
231
|
const list = manifest[kind + "s"] ?? [];
|
|
216
232
|
const e = list.find((x) => x.slug === slug);
|
|
@@ -1142,6 +1158,12 @@ async function runLift(rest) {
|
|
|
1142
1158
|
} else {
|
|
1143
1159
|
await pull(step.from, step.toAbs);
|
|
1144
1160
|
}
|
|
1161
|
+
// preview.tsx is the kitab-internal variant-preview harness (VP wave) —
|
|
1162
|
+
// it imports @/shared/preview/* which consumers don't have. Strip it.
|
|
1163
|
+
if (parsed.kind === "rahman") {
|
|
1164
|
+
const previewFile = path.join(step.toAbs, "preview.tsx");
|
|
1165
|
+
if (existsSync(previewFile)) rmSync(previewFile);
|
|
1166
|
+
}
|
|
1145
1167
|
console.log(kleur.green("ok"));
|
|
1146
1168
|
}
|
|
1147
1169
|
|