cronus-ui 0.6.13 → 0.6.15

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
@@ -49,7 +49,7 @@ Notes that match the commander surface:
49
49
  `packages/cli/scripts/build-registry.ts` — each item carries its source, its npm
50
50
  `dependencies`, and its `registryDependencies` (other components it imports),
51
51
  derived by parsing imports.
52
- - The default registry is pinned to the CLI package version (`v0.6.13` here), not
52
+ - The default registry is pinned to the CLI package version (`v0.6.15` here), not
53
53
  mutable `main`, so a published CLI reads the registry snapshot it was released
54
54
  with. Use `-r, --registry ./registry` when testing local registry changes before
55
55
  a release tag exists.
@@ -80,7 +80,7 @@ Notes that match the commander surface:
80
80
  "lib": "lib",
81
81
  "blocks": "components/blocks"
82
82
  },
83
- "registry": "https://raw.githubusercontent.com/pedrogbraz/cronus-ui/v0.6.13/registry"
83
+ "registry": "https://raw.githubusercontent.com/pedrogbraz/cronus-ui/v0.6.15/registry"
84
84
  }
85
85
  ```
86
86
 
@@ -20,6 +20,7 @@
20
20
  */
21
21
  import { existsSync } from "node:fs";
22
22
  import { rm } from "node:fs/promises";
23
+ import { isGoldPathTemplate, patchChromeSource } from "../compose/gold-path.js";
23
24
  import { blockRefParts } from "../compose/manifest.js";
24
25
  import { buildComposePlan, ComposePlanError, } from "../compose/plan.js";
25
26
  import { baseSnapshotDir, reloadManifest } from "../compose/reload.js";
@@ -267,6 +268,7 @@ export async function addPage(options) {
267
268
  // pristine source re-applies BOTH the nav data-slot and the brand, yielding the
268
269
  // same bytes compose would. HONEST CUT: like compose's chrome customization,
269
270
  // this regenerates the chrome copy and does not preserve hand edits to it.
271
+ // saas/admin then gold-patch the rewritten app-shell-chrome (see below).
270
272
  const rewriteChrome = options.nav !== undefined || newChromeGroup;
271
273
  if (rewriteChrome && planChrome !== undefined) {
272
274
  for (const slug of chromeSlugsOfGroup(planChrome)) {
@@ -275,7 +277,16 @@ export async function addPage(options) {
275
277
  const source = plan.chromeSources[slug];
276
278
  if (source === undefined || !existsSync(dest))
277
279
  continue;
278
- const content = rewriteImports(rewriteChromeBlock(slug, source, plan), config);
280
+ let content = rewriteImports(rewriteChromeBlock(slug, source, plan), config);
281
+ // saas/admin: compose gold-patches this chrome (WorkspaceMenu / InviteMember
282
+ // / SessionUser). Rewriting from the pristine registry would otherwise
283
+ // restore Mara + WORKSPACES. Re-apply the same idempotent patch so --nav
284
+ // grows the sidebar without undoing the authenticated shell.
285
+ if (isGoldPathTemplate(appName) && slug === "app-shell-chrome") {
286
+ const patched = patchChromeSource(content, "@/components/workspace-menu", "@/components/invite-member", "@/components/session-user");
287
+ if (patched !== undefined)
288
+ content = patched;
289
+ }
279
290
  await writeFileEnsured(dest, content);
280
291
  if (!generatedFiles.includes(rel))
281
292
  generatedFiles.push(rel);
package/dist/config.d.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  export declare const CONFIG_FILE = "cronus-ui.json";
2
- export declare const CLI_VERSION = "0.6.13";
3
- export declare const DEFAULT_REGISTRY = "https://raw.githubusercontent.com/pedrogbraz/cronus-ui/v0.6.13/registry";
2
+ export declare const CLI_VERSION = "0.6.15";
3
+ export declare const DEFAULT_REGISTRY = "https://raw.githubusercontent.com/pedrogbraz/cronus-ui/v0.6.15/registry";
4
4
  /** Manifest entry `add`/`upgrade` record per installed registry item. */
5
5
  export interface InstalledRecord {
6
6
  /** Registry release the files came from (git tag without the leading "v"). */
package/dist/config.js CHANGED
@@ -2,7 +2,7 @@ import { existsSync } from "node:fs";
2
2
  import { readFile, writeFile } from "node:fs/promises";
3
3
  import { join } from "node:path";
4
4
  export const CONFIG_FILE = "cronus-ui.json";
5
- export const CLI_VERSION = "0.6.13";
5
+ export const CLI_VERSION = "0.6.15";
6
6
  export const DEFAULT_REGISTRY = `https://raw.githubusercontent.com/pedrogbraz/cronus-ui/v${CLI_VERSION}/registry`;
7
7
  export const DEFAULT_CONFIG = {
8
8
  aliases: { ui: "@/components/ui", lib: "@/lib", blocks: "@/components/blocks" },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cronus-ui",
3
- "version": "0.6.13",
3
+ "version": "0.6.15",
4
4
  "description": "cronus-ui — add Cronus UI components to your project, shadcn-style (copy-paste registry).",
5
5
  "type": "module",
6
6
  "license": "MIT",
@@ -54,7 +54,7 @@
54
54
  "registry:check": "bun run scripts/check-registry.ts"
55
55
  },
56
56
  "dependencies": {
57
- "@cronus-ui/ai-kit": "0.6.13",
57
+ "@cronus-ui/ai-kit": "0.6.15",
58
58
  "commander": "^15.0.0",
59
59
  "picocolors": "^1.1.1"
60
60
  },