@happyvertical/smrt-app-cli 0.76.1 → 0.77.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.
@@ -0,0 +1,10 @@
1
+ /** Required production defaults; optional capabilities need explicit host composition. */
2
+ export declare const packageCatalogs: {
3
+ packageName: string;
4
+ messages: readonly {
5
+ key: string;
6
+ locale: string;
7
+ template: string;
8
+ }[];
9
+ }[];
10
+ //# sourceMappingURL=catalogs.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"catalogs.d.ts","sourceRoot":"","sources":["../../src/i18n/catalogs.ts"],"names":[],"mappings":"AAsCA,0FAA0F;AAC1F,eAAO,MAAM,eAAe;iBAlCX,MAAM;cACT,SAAS;QAAE,GAAG,EAAE,MAAM,CAAC;QAAC,MAAM,EAAE,MAAM,CAAC;QAAC,QAAQ,EAAE,MAAM,CAAA;KAAE,EAAE;GAiCP,CAAC"}
@@ -0,0 +1,30 @@
1
+ import { packageCatalogs as packageCatalogs$1 } from "@happyvertical/smrt-users/i18n/catalogs";
2
+ //#region src/i18n/catalogs.ts
3
+ function mergeCatalogInventories(catalogs) {
4
+ const result = /* @__PURE__ */ new Map();
5
+ const signatures = /* @__PURE__ */ new Map();
6
+ for (const catalog of catalogs) {
7
+ if (!catalog || typeof catalog.packageName !== "string" || !Array.isArray(catalog.messages)) throw new Error("Invalid package catalog inventory");
8
+ const signature = JSON.stringify([...catalog.messages].sort((a, b) => {
9
+ const left = JSON.stringify([
10
+ a.locale,
11
+ a.key,
12
+ a.template
13
+ ]);
14
+ const right = JSON.stringify([
15
+ b.locale,
16
+ b.key,
17
+ b.template
18
+ ]);
19
+ return left < right ? -1 : left > right ? 1 : 0;
20
+ }));
21
+ if (signatures.has(catalog.packageName) && signatures.get(catalog.packageName) !== signature) throw new Error(`Conflicting catalog identity ${catalog.packageName}`);
22
+ signatures.set(catalog.packageName, signature);
23
+ result.set(catalog.packageName, catalog);
24
+ }
25
+ return [...result.values()].sort((a, b) => a.packageName < b.packageName ? -1 : a.packageName > b.packageName ? 1 : 0);
26
+ }
27
+ /** Required production defaults; optional capabilities need explicit host composition. */
28
+ var packageCatalogs = mergeCatalogInventories([...packageCatalogs$1]);
29
+ //#endregion
30
+ export { packageCatalogs };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@happyvertical/smrt-app-cli",
3
- "version": "0.76.1",
3
+ "version": "0.77.0",
4
4
  "description": "Reusable CLI factory for SMRT apps — branded `<name> <resource> <command>` CLI + stdio MCP bridge with decorator-driven resource discovery",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
@@ -12,6 +12,11 @@
12
12
  },
13
13
  "./mcp-bridge": {
14
14
  "default": "./dist/bin/smrt-mcp-bridge.mjs"
15
+ },
16
+ "./i18n/catalogs": {
17
+ "types": "./dist/i18n/catalogs.d.ts",
18
+ "import": "./dist/i18n/catalogs.js",
19
+ "default": "./dist/i18n/catalogs.js"
15
20
  }
16
21
  },
17
22
  "bin": {
@@ -24,12 +29,12 @@
24
29
  "AGENTS.md"
25
30
  ],
26
31
  "dependencies": {
27
- "@happyvertical/smrt-users": "0.76.1",
32
+ "@happyvertical/smrt-users": "0.77.0",
28
33
  "@modelcontextprotocol/client": "2.3.1",
29
34
  "@modelcontextprotocol/server": "2.3.1"
30
35
  },
31
36
  "devDependencies": {
32
- "@happyvertical/smrt-core": "0.76.1",
37
+ "@happyvertical/smrt-core": "0.77.0",
33
38
  "@types/node": "24.13.6",
34
39
  "typescript": "6.0.3",
35
40
  "vite": "8.1.6",