@devbie/fewbie-cli 1.12.0 → 1.13.1

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.
Files changed (41) hide show
  1. package/dist/commands/create.js +44 -24
  2. package/dist/commands/create.js.map +1 -1
  3. package/dist/commands/doctor.js +10 -1
  4. package/dist/commands/doctor.js.map +1 -1
  5. package/dist/commands/modules/adapters.d.ts +1 -0
  6. package/dist/commands/modules/adapters.js +43 -0
  7. package/dist/commands/modules/adapters.js.map +1 -1
  8. package/dist/commands/modules/apply.js +52 -5
  9. package/dist/commands/modules/apply.js.map +1 -1
  10. package/dist/commands/modules/remove.js +13 -0
  11. package/dist/commands/modules/remove.js.map +1 -1
  12. package/dist/commands/modules/update.js +64 -19
  13. package/dist/commands/modules/update.js.map +1 -1
  14. package/dist/commands/template/update.d.ts +2 -0
  15. package/dist/commands/template/update.js +101 -19
  16. package/dist/commands/template/update.js.map +1 -1
  17. package/dist/lib/i18n-contract.d.ts +1 -0
  18. package/dist/lib/i18n-contract.js +1 -0
  19. package/dist/lib/i18n-contract.js.map +1 -1
  20. package/dist/lib/lockfile.js +17 -0
  21. package/dist/lib/lockfile.js.map +1 -1
  22. package/dist/lib/stale-targets.d.ts +10 -0
  23. package/dist/lib/stale-targets.js +34 -0
  24. package/dist/lib/stale-targets.js.map +1 -0
  25. package/dist/lib/template-ownership.d.ts +5 -4
  26. package/dist/lib/template-ownership.js +28 -14
  27. package/dist/lib/template-ownership.js.map +1 -1
  28. package/dist/program.js +2 -0
  29. package/dist/program.js.map +1 -1
  30. package/dist/registry/contract.js +9 -5
  31. package/dist/registry/contract.js.map +1 -1
  32. package/dist/registry/login-form/contract.json +28 -0
  33. package/dist/registry/login-form/fewbie.module.json +42 -3
  34. package/dist/registry/password-checklist/contract.json +18 -0
  35. package/dist/registry/password-checklist/fewbie.module.json +32 -4
  36. package/dist/registry/settings-required-state/contract.json +18 -0
  37. package/dist/registry/settings-required-state/fewbie.module.json +32 -3
  38. package/dist/registry/source.d.ts +1 -0
  39. package/dist/registry/source.js +81 -19
  40. package/dist/registry/source.js.map +1 -1
  41. package/package.json +1 -1
@@ -3,11 +3,40 @@
3
3
  "name": "settings-required-state",
4
4
  "type": "registry:block",
5
5
  "title": "Settings required state",
6
- "description": "Empty state shown when required configuration is missing, with a call-to-action linking to the settings page.",
6
+ "description": "Empty state shown when required configuration is missing, with a call-to-action whose navigation stays in the host.",
7
+ "postInstall": "Render <SettingsRequiredState labels={...} title={...} settingsHref={...} onOpenSettings={...} /> wherever a feature needs its configuration first. The host supplies the translated action label, the in-app settings path and the navigation callback. Requires the shadcn ui primitives button and card.",
8
+ "x-fewbie.contract": {
9
+ "version": "1.0.0",
10
+ "framework": "^1.7.0",
11
+ "entry": "src/modules/settings-required-state/index.ts",
12
+ "labels": [
13
+ "actionLabel"
14
+ ],
15
+ "ports": [
16
+ "onOpenSettings"
17
+ ],
18
+ "ui": [
19
+ "button",
20
+ "card"
21
+ ],
22
+ "states": [
23
+ "ready"
24
+ ]
25
+ },
7
26
  "files": [
8
27
  {
9
- "path": "src/components/settings-required-state.tsx",
10
- "content": "\"use client\";\n\nimport type { ReactNode } from \"react\";\nimport Link from \"next/link\";\nimport { ArrowRight, Settings2 } from \"lucide-react\";\n\nimport { Button } from \"@/components/ui/button\";\nimport { Card, CardContent } from \"@/components/ui/card\";\nimport { cn } from \"@/lib/utils\";\n\ninterface SettingsRequiredStateProps {\n /** Short headline shown below the icon, e.g. \"AWS credential required\". */\n title: string;\n /** Explanation of which setting is missing and why it is needed. */\n description?: ReactNode;\n /** Destination of the settings call-to-action, usually the project settings page. */\n settingsHref: string;\n /** Label of the call-to-action button. */\n actionLabel?: string;\n /** Optional custom icon rendered inside the tinted badge. */\n icon?: ReactNode;\n /** Stretch the state to fill the parent height (used by full-screen panels). */\n fullHeight?: boolean;\n /** Allow callers to tweak the outer container when needed. */\n className?: string;\n}\n\n/**\n * Unified \"required settings are missing\" state. Feature modules render this\n * when their backing configuration has not been set up yet, so the\n * empty-state visuals and the settings entry point stay consistent.\n */\nexport function SettingsRequiredState({\n title,\n description,\n settingsHref,\n actionLabel = \"Open Settings\",\n icon,\n fullHeight = false,\n className,\n}: SettingsRequiredStateProps) {\n return (\n <div className={cn(\"flex w-full items-center justify-center\", fullHeight ? \"h-full\" : \"py-8 md:py-16\", className)}>\n <Card className=\"w-full max-w-xl text-center\">\n <CardContent className=\"flex flex-col items-center px-6 py-10 md:px-12\">\n {/* Tinted icon badge */}\n <div className=\"mb-4 flex size-16 items-center justify-center rounded-full bg-primary/10 text-primary\">\n {icon ?? <Settings2 className=\"size-8\" />}\n </div>\n\n <h2 className=\"text-lg font-semibold text-foreground\">{title}</h2>\n\n {description ? <p className=\"mt-2 max-w-md text-sm leading-7 text-muted-foreground\">{description}</p> : null}\n\n {/* settingsHref may be a full in-app path; Link handles client-side navigation. */}\n <Button asChild className=\"mt-6\">\n <Link href={settingsHref}>\n {actionLabel}\n <ArrowRight className=\"size-4\" />\n </Link>\n </Button>\n </CardContent>\n </Card>\n </div>\n );\n}\n",
28
+ "path": "src/modules/settings-required-state/index.ts",
29
+ "content": "export { SettingsRequiredState } from \"./settings-required-state\";\nexport type { SettingsRequiredStateLabels, SettingsRequiredStateProps } from \"./types\";\n",
30
+ "type": "registry:block"
31
+ },
32
+ {
33
+ "path": "src/modules/settings-required-state/types.ts",
34
+ "content": "import type { ReactNode } from \"react\";\n\n/**\n * Every string the state renders. The headline and description are already\n * host-supplied props, so only the call-to-action label lives here.\n */\nexport interface SettingsRequiredStateLabels {\n actionLabel: string;\n}\n\nexport interface SettingsRequiredStateProps {\n labels: SettingsRequiredStateLabels;\n /** Short headline shown below the icon, e.g. \"AWS credential required\". */\n title: string;\n /** Explanation of which setting is missing and why it is needed. */\n description?: ReactNode;\n /** Destination of the settings call-to-action, usually the project settings page. */\n settingsHref: string;\n /** Called with settingsHref; the host performs the client-side navigation. */\n onOpenSettings: (href: string) => void;\n /** Optional custom icon rendered inside the tinted badge. */\n icon?: ReactNode;\n /** Stretch the state to fill the parent height (used by full-screen panels). */\n fullHeight?: boolean;\n /** Allow callers to tweak the outer container when needed. */\n className?: string;\n}\n",
35
+ "type": "registry:block"
36
+ },
37
+ {
38
+ "path": "src/modules/settings-required-state/settings-required-state.tsx",
39
+ "content": "\"use client\";\n\nimport { ArrowRight, Settings2 } from \"lucide-react\";\n\nimport { Button } from \"@/components/ui/button\";\nimport { Card, CardContent } from \"@/components/ui/card\";\nimport { cn } from \"@/lib/utils\";\n\nimport type { SettingsRequiredStateProps } from \"./types\";\n\n/**\n * Unified \"required settings are missing\" state. Feature modules render this\n * when their backing configuration has not been set up yet, so the\n * empty-state visuals and the settings entry point stay consistent.\n */\nexport function SettingsRequiredState({\n labels,\n title,\n description,\n settingsHref,\n onOpenSettings,\n icon,\n fullHeight = false,\n className,\n}: SettingsRequiredStateProps) {\n return (\n <div className={cn(\"flex w-full items-center justify-center\", fullHeight ? \"h-full\" : \"py-8 md:py-16\", className)}>\n <Card className=\"w-full max-w-xl text-center\">\n <CardContent className=\"flex flex-col items-center px-6 py-10 md:px-12\">\n {/* Tinted icon badge */}\n <div className=\"mb-4 flex size-16 items-center justify-center rounded-full bg-primary/10 text-primary\">\n {icon ?? <Settings2 className=\"size-8\" />}\n </div>\n\n <h2 className=\"text-lg font-semibold text-foreground\">{title}</h2>\n\n {description ? <p className=\"mt-2 max-w-md text-sm leading-7 text-muted-foreground\">{description}</p> : null}\n\n <Button className=\"mt-6\" onClick={() => onOpenSettings(settingsHref)}>\n {labels.actionLabel}\n <ArrowRight className=\"size-4\" />\n </Button>\n </CardContent>\n </Card>\n </div>\n );\n}\n",
11
40
  "type": "registry:block"
12
41
  }
13
42
  ]
@@ -1,6 +1,7 @@
1
1
  export declare const REGISTRY_ITEMS_DIR = "packages/modules";
2
2
  export declare function isRegistryRoot(candidate: string): Promise<boolean>;
3
3
  export declare function locateItemsDir(checkout: string): Promise<string | null>;
4
+ export declare function assertSafeRef(ref: string): void;
4
5
  export declare function resolveRegistryRoot(projectRoot?: string): Promise<string>;
5
6
  export interface RegistryContext {
6
7
  root: string;
@@ -6,6 +6,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
6
6
  exports.REGISTRY_ITEMS_DIR = void 0;
7
7
  exports.isRegistryRoot = isRegistryRoot;
8
8
  exports.locateItemsDir = locateItemsDir;
9
+ exports.assertSafeRef = assertSafeRef;
9
10
  exports.resolveRegistryRoot = resolveRegistryRoot;
10
11
  exports.resolveRegistryContext = resolveRegistryContext;
11
12
  const node_crypto_1 = __importDefault(require("node:crypto"));
@@ -60,31 +61,90 @@ function registryCacheDir(url) {
60
61
  const digest = node_crypto_1.default.createHash("sha1").update(url).digest("hex").slice(0, 12);
61
62
  return node_path_1.default.join(base, digest);
62
63
  }
64
+ const CACHE_LOCK_TIMEOUT_MS = 60_000;
65
+ const CACHE_LOCK_STALE_MS = 5 * 60_000;
66
+ async function withCacheLock(cacheDir, run) {
67
+ const lockDir = `${cacheDir}.lock`;
68
+ await promises_1.default.mkdir(node_path_1.default.dirname(lockDir), { recursive: true });
69
+ const deadline = Date.now() + CACHE_LOCK_TIMEOUT_MS;
70
+ for (;;) {
71
+ try {
72
+ await promises_1.default.mkdir(lockDir);
73
+ break;
74
+ }
75
+ catch (error) {
76
+ if (error.code !== "EEXIST")
77
+ throw error;
78
+ const stat = await promises_1.default.stat(lockDir).catch(() => null);
79
+ if (stat !== null && Date.now() - stat.mtimeMs > CACHE_LOCK_STALE_MS) {
80
+ await promises_1.default.rm(lockDir, { recursive: true, force: true });
81
+ continue;
82
+ }
83
+ if (Date.now() > deadline) {
84
+ throw new cli_kit_1.CliError(`Timed out waiting for the registry cache lock at ${lockDir}.`);
85
+ }
86
+ await new Promise((resolve) => setTimeout(resolve, 100));
87
+ }
88
+ }
89
+ try {
90
+ return await run();
91
+ }
92
+ finally {
93
+ await promises_1.default.rm(lockDir, { recursive: true, force: true });
94
+ }
95
+ }
96
+ async function materializeSnapshot(cacheDir, itemsDir, commit) {
97
+ if (commit === "unknown")
98
+ return itemsDir;
99
+ const base = `${cacheDir}.snapshots`;
100
+ const target = node_path_1.default.join(base, commit);
101
+ if (await (0, cli_kit_1.pathExists)(target))
102
+ return target;
103
+ await promises_1.default.mkdir(base, { recursive: true });
104
+ const temp = `${target}.tmp-${process.pid}`;
105
+ await promises_1.default.rm(temp, { recursive: true, force: true });
106
+ await promises_1.default.cp(itemsDir, temp, { recursive: true });
107
+ try {
108
+ await promises_1.default.rename(temp, target);
109
+ }
110
+ catch (error) {
111
+ await promises_1.default.rm(temp, { recursive: true, force: true });
112
+ const code = error.code;
113
+ if (code !== "EEXIST" && code !== "ENOTEMPTY")
114
+ throw error;
115
+ }
116
+ return target;
117
+ }
63
118
  async function syncGitRegistry(url, ref) {
64
119
  if (ref)
65
120
  assertSafeRef(ref);
66
121
  const cacheDir = registryCacheDir(url);
67
122
  try {
68
- if (!(await (0, cli_kit_1.pathExists)(node_path_1.default.join(cacheDir, ".git")))) {
69
- if (await (0, cli_kit_1.pathExists)(cacheDir))
70
- await promises_1.default.rm(cacheDir, { recursive: true, force: true });
71
- await promises_1.default.mkdir(node_path_1.default.dirname(cacheDir), { recursive: true });
72
- await (0, cli_kit_1.execCapture)("git", ["clone", "--quiet", "--depth", "1", url, cacheDir]);
73
- }
74
- const revision = ref ?? "HEAD";
75
- await (0, cli_kit_1.execCapture)("git", ["-C", cacheDir, "fetch", "--quiet", "--depth", "1", "origin", revision]);
76
- await (0, cli_kit_1.execCapture)("git", ["-C", cacheDir, "checkout", "--quiet", "--force", "FETCH_HEAD"]);
123
+ return await withCacheLock(cacheDir, async () => {
124
+ if (!(await (0, cli_kit_1.pathExists)(node_path_1.default.join(cacheDir, ".git")))) {
125
+ if (await (0, cli_kit_1.pathExists)(cacheDir))
126
+ await promises_1.default.rm(cacheDir, { recursive: true, force: true });
127
+ await (0, cli_kit_1.execCapture)("git", ["clone", "--quiet", "--depth", "1", url, cacheDir]);
128
+ }
129
+ const revision = ref ?? "HEAD";
130
+ await (0, cli_kit_1.execCapture)("git", ["-C", cacheDir, "fetch", "--quiet", "--depth", "1", "origin", revision]);
131
+ await (0, cli_kit_1.execCapture)("git", ["-C", cacheDir, "checkout", "--quiet", "--force", "FETCH_HEAD"]);
132
+ const itemsDir = await locateItemsDir(cacheDir);
133
+ if (itemsDir === null) {
134
+ throw new cli_kit_1.CliError(`Registry ${url}${ref ? `#${ref}` : ""} has no items (expected ${expectedRegistryShape()}).`);
135
+ }
136
+ const { stdout } = await (0, cli_kit_1.execCapture)("git", ["-C", cacheDir, "rev-parse", "HEAD"]);
137
+ const commit = stdout.trim() || "unknown";
138
+ return { root: await materializeSnapshot(cacheDir, itemsDir, commit), commit };
139
+ });
77
140
  }
78
141
  catch (error) {
142
+ if (error instanceof cli_kit_1.CliError)
143
+ throw error;
79
144
  throw new cli_kit_1.CliError(`Failed to fetch registry ${url}${ref ? `#${ref}` : ""}: ${error.message}`);
80
145
  }
81
- const itemsDir = await locateItemsDir(cacheDir);
82
- if (itemsDir === null) {
83
- throw new cli_kit_1.CliError(`Registry ${url}${ref ? `#${ref}` : ""} has no items (expected ${expectedRegistryShape()}).`);
84
- }
85
- return itemsDir;
86
146
  }
87
- async function resolveRegistryRoot(projectRoot) {
147
+ async function resolveRegistry(projectRoot) {
88
148
  const override = process.env[REGISTRY_PATH_ENV];
89
149
  if (override) {
90
150
  const candidate = node_path_1.default.resolve(override);
@@ -92,7 +152,7 @@ async function resolveRegistryRoot(projectRoot) {
92
152
  if (itemsDir === null) {
93
153
  throw new cli_kit_1.CliError(`${REGISTRY_PATH_ENV} '${candidate}' is not a registry root (no ${expectedRegistryShape()}).`);
94
154
  }
95
- return itemsDir;
155
+ return { root: itemsDir, commit: git_commit_1.LOCAL_REGISTRY_COMMIT };
96
156
  }
97
157
  if (projectRoot) {
98
158
  const declaration = await (0, modules_file_1.readRegistryDeclaration)(projectRoot);
@@ -105,13 +165,15 @@ async function resolveRegistryRoot(projectRoot) {
105
165
  ];
106
166
  for (const candidate of candidates) {
107
167
  if (await isRegistryRoot(candidate)) {
108
- return candidate;
168
+ return { root: candidate, commit: await (0, git_commit_1.registryCommit)(candidate, false) };
109
169
  }
110
170
  }
111
171
  throw new cli_kit_1.CliError("Registry not found (expected dist/registry or registry/).");
112
172
  }
173
+ async function resolveRegistryRoot(projectRoot) {
174
+ return (await resolveRegistry(projectRoot)).root;
175
+ }
113
176
  async function resolveRegistryContext(projectRoot) {
114
- const root = await resolveRegistryRoot(projectRoot);
115
- return { root, commit: await (0, git_commit_1.registryCommit)(root, Boolean(process.env[REGISTRY_PATH_ENV])) };
177
+ return resolveRegistry(projectRoot);
116
178
  }
117
179
  //# sourceMappingURL=source.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"source.js","sourceRoot":"","sources":["../../src/registry/source.ts"],"names":[],"mappings":";;;;;;AAwBA,wCAgBC;AAOD,wCAKC;AA8DD,kDA0BC;AAUD,wDAGC;AAzJD,8DAAiC;AACjC,gEAAkC;AAClC,sDAAyB;AACzB,0DAA6B;AAE7B,6CAAoE;AACpE,sDAA8D;AAC9D,kDAAmD;AACnD,mCAAiD;AAGjD,MAAM,iBAAiB,GAAG,sBAAsB,CAAC;AAEjD,MAAM,kBAAkB,GAAG,2BAA2B,CAAC;AAG1C,QAAA,kBAAkB,GAAG,kBAAkB,CAAC;AAQ9C,KAAK,UAAU,cAAc,CAAC,SAAiB;IACpD,IAAI,OAAmC,CAAC;IACxC,IAAI,CAAC;QACH,OAAO,GAAG,MAAM,kBAAE,CAAC,OAAO,CAAC,SAAS,EAAE,EAAE,aAAa,EAAE,IAAI,EAAE,CAAC,CAAC;IACjE,CAAC;IAAC,MAAM,CAAC;QACP,OAAO,KAAK,CAAC;IACf,CAAC;IACD,KAAK,MAAM,KAAK,IAAI,OAAO,EAAE,CAAC;QAC5B,IAAI,CAAC,KAAK,CAAC,WAAW,EAAE;YAAE,SAAS;QACnC,MAAM,OAAO,GAAG,MAAM,kBAAE;aACrB,MAAM,CAAC,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AAC;AACnD,CAAC;AAUM,KAAK,UAAU,sBAAsB,CAAC,WAAoB;IAC/D,OAAO,eAAe,CAAC,WAAW,CAAC,CAAC;AACtC,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@devbie/fewbie-cli",
3
- "version": "1.12.0",
3
+ "version": "1.13.1",
4
4
  "description": "fewbie frontend framework CLI",
5
5
  "license": "MIT",
6
6
  "author": "worldzhy",