@percepta/create 4.1.9 → 4.1.10
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/index.js +15 -16
- package/dist/index.js.map +1 -1
- package/dist/{init-CsuO_mu2.js → init-CP3IzRa6.js} +2 -2
- package/dist/{init-CsuO_mu2.js.map → init-CP3IzRa6.js.map} +1 -1
- package/dist/{register-app-B9vKTkoI.js → register-app-Dmnocuuy.js} +2 -2
- package/dist/{register-app-B9vKTkoI.js.map → register-app-Dmnocuuy.js.map} +1 -1
- package/dist/{register-os-blueprint-Gdyn0pN1.js → register-os-blueprint-Byf69wrl.js} +2 -2
- package/dist/{register-os-blueprint-Gdyn0pN1.js.map → register-os-blueprint-Byf69wrl.js.map} +1 -1
- package/dist/status-C8SBzB-K.js +27 -0
- package/dist/status-C8SBzB-K.js.map +1 -0
- package/dist/sync-Lsfz8ZH4.js +280 -0
- package/dist/sync-Lsfz8ZH4.js.map +1 -0
- package/dist/{upstream-PNL6DGtl.js → upstream-R8YDvUue.js} +6 -6
- package/dist/upstream-R8YDvUue.js.map +1 -0
- package/package.json +1 -1
- package/templates/monorepo/README.md +13 -0
- package/templates/webapp/.claude/commands/sync.md +11 -10
- package/templates/webapp/.claude/commands/upstream.md +2 -2
- package/templates/webapp/AGENTS.md +3 -3
- package/dist/status-BrK9v1yb.js +0 -48
- package/dist/status-BrK9v1yb.js.map +0 -1
- package/dist/sync-DC5DhIBT.js +0 -101
- package/dist/sync-DC5DhIBT.js.map +0 -1
- package/dist/upstream-PNL6DGtl.js.map +0 -1
package/dist/index.js
CHANGED
|
@@ -186,10 +186,9 @@ function derivePlaceholders(appName, appTitle, repoName = appName, customerSlug
|
|
|
186
186
|
__MOSAIC_DESIGN_THEME__: designTheme
|
|
187
187
|
};
|
|
188
188
|
}
|
|
189
|
-
function
|
|
190
|
-
if (options.
|
|
191
|
-
|
|
192
|
-
throw new Error("Mosaic repo path required. Use --mosaic-template-path or set MOSAIC_TEMPLATE_PATH.");
|
|
189
|
+
function resolveMosaicRepoPath(options) {
|
|
190
|
+
if (options.mosaicRepoPath) return path.resolve(options.mosaicRepoPath);
|
|
191
|
+
throw new Error("Mosaic repo path required. Use --mosaic-repo-path.");
|
|
193
192
|
}
|
|
194
193
|
//#endregion
|
|
195
194
|
//#region src/utils/package-metadata.ts
|
|
@@ -1364,31 +1363,31 @@ program.command("add").description("Add a Mosaic package to the current monorepo
|
|
|
1364
1363
|
});
|
|
1365
1364
|
const infra = program.command("infra").description("Manage Mosaic infra glue");
|
|
1366
1365
|
infra.command("register-os-blueprint").description("Register this customer monorepo's OS blueprint in infra").action(async () => {
|
|
1367
|
-
const { registerOsBlueprintCommand } = await import("./register-os-blueprint-
|
|
1366
|
+
const { registerOsBlueprintCommand } = await import("./register-os-blueprint-Byf69wrl.js");
|
|
1368
1367
|
await registerOsBlueprintCommand();
|
|
1369
1368
|
});
|
|
1370
1369
|
infra.command("register-app").description("Register a webapp database in this customer OS blueprint").argument("<app>", "Webapp package name").action(async (appName) => {
|
|
1371
|
-
const { registerAppCommand } = await import("./register-app-
|
|
1370
|
+
const { registerAppCommand } = await import("./register-app-Dmnocuuy.js");
|
|
1372
1371
|
await registerAppCommand(appName);
|
|
1373
1372
|
});
|
|
1374
|
-
program.command("status").description("Show template sync status for current app").
|
|
1375
|
-
const { statusCommand } = await import("./status-
|
|
1376
|
-
await statusCommand(
|
|
1373
|
+
program.command("status").description("Show template sync status for current app").action(async () => {
|
|
1374
|
+
const { statusCommand } = await import("./status-C8SBzB-K.js");
|
|
1375
|
+
await statusCommand();
|
|
1377
1376
|
});
|
|
1378
|
-
program.command("sync").description("Generate downstream sync context
|
|
1379
|
-
const { syncCommand } = await import("./sync-
|
|
1380
|
-
await syncCommand(
|
|
1377
|
+
program.command("sync").description("Generate downstream sync context for the current workspace").action(async () => {
|
|
1378
|
+
const { syncCommand } = await import("./sync-Lsfz8ZH4.js");
|
|
1379
|
+
await syncCommand();
|
|
1381
1380
|
});
|
|
1382
|
-
program.command("upstream").description("Generate upstream context (app → template)").option("--mosaic-
|
|
1383
|
-
const { upstreamCommand } = await import("./upstream-
|
|
1381
|
+
program.command("upstream").description("Generate upstream context (app → template)").option("--mosaic-repo-path <path>", "Path to local mosaic repo checkout").option("--files <patterns...>", "Specific files to propose upstream").action(async (options) => {
|
|
1382
|
+
const { upstreamCommand } = await import("./upstream-R8YDvUue.js");
|
|
1384
1383
|
await upstreamCommand(options);
|
|
1385
1384
|
});
|
|
1386
1385
|
program.command("init").description("Add .mosaic-template.json to an existing app").option("-t, --type <type>", "Template type (e.g., webapp, library)").option("--template-version <version>", "Template version to set").action(async (options) => {
|
|
1387
|
-
const { initCommand } = await import("./init-
|
|
1386
|
+
const { initCommand } = await import("./init-CP3IzRa6.js");
|
|
1388
1387
|
await initCommand(options);
|
|
1389
1388
|
});
|
|
1390
1389
|
program.parse();
|
|
1391
1390
|
//#endregion
|
|
1392
|
-
export {
|
|
1391
|
+
export { isValidProjectType as a, manifestExists as c, writeManifest as d, detectMonorepo as f, toTitleCase as h, VALID_PROJECT_TYPES as i, readManifest as l, toSnakeCase as m, readWorkspaceManifest as n, validateProjectName as o, toKebabCase as p, getTemplateVersion as r, derivePlaceholders as s, getWorkspaceManifestPath as t, resolveMosaicRepoPath as u };
|
|
1393
1392
|
|
|
1394
1393
|
//# sourceMappingURL=index.js.map
|