@ggui-ai/cli 0.16.0 → 0.17.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.
@@ -1 +1 @@
1
- {"version":3,"file":"config-push.d.ts","sourceRoot":"","sources":["../src/config-push.ts"],"names":[],"mappings":"AAUA,OAAO,EAKL,KAAK,gBAAgB,EACrB,KAAK,QAAQ,EACd,MAAM,mBAAmB,CAAC;AAmB3B;;;;;;GAMG;AACH,wBAAgB,yBAAyB,CAAC,QAAQ,EAAE,OAAO,GAAG,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAmBnF;AAED;;;;;;;;;GASG;AACH,wBAAgB,0BAA0B,CACxC,QAAQ,EAAE,OAAO,GAChB;IAAE,KAAK,EAAE,MAAM,CAAC;IAAC,SAAS,EAAE,KAAK,GAAG,SAAS,CAAA;CAAE,GAAG,SAAS,CAkB7D;AAGD;;;;;;;;;;;;;;;;;GAiBG;AACH,uDAAuD;AACvD,MAAM,WAAW,SAAS;IACxB,sCAAsC;IACtC,QAAQ,CAAC,KAAK,EAAE,QAAQ,CAAC;IACzB;;;;;OAKG;IACH,QAAQ,CAAC,oBAAoB,EAAE,SAAS,MAAM,EAAE,CAAC;CAClD;AAED,wBAAsB,qBAAqB,CACzC,WAAW,EAAE,MAAM,EACnB,QAAQ,EAAE,OAAO,GAChB,OAAO,CAAC,SAAS,GAAG,SAAS,CAAC,CAoDhC;AAMD;;;;;;;;;;;;;;GAcG;AACH,wBAAgB,4BAA4B,CAAC,OAAO,EAAE,gBAAgB,EAAE,GAAG,IAAI,CAiB9E;AAMD;;;;;;;;;;GAUG;AACH,wBAAsB,iBAAiB,CACrC,KAAK,EAAE,MAAM,EACb,QAAQ,GAAE,MAAsB,GAC/B,OAAO,CAAC,MAAM,CAAC,CAqGjB"}
1
+ {"version":3,"file":"config-push.d.ts","sourceRoot":"","sources":["../src/config-push.ts"],"names":[],"mappings":"AAUA,OAAO,EAKL,KAAK,gBAAgB,EACrB,KAAK,QAAQ,EACd,MAAM,mBAAmB,CAAC;AAmB3B;;;;;;GAMG;AACH,wBAAgB,yBAAyB,CAAC,QAAQ,EAAE,OAAO,GAAG,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAmBnF;AAED;;;;;;;;;GASG;AACH,wBAAgB,0BAA0B,CACxC,QAAQ,EAAE,OAAO,GAChB;IAAE,KAAK,EAAE,MAAM,CAAC;IAAC,SAAS,EAAE,KAAK,GAAG,SAAS,CAAA;CAAE,GAAG,SAAS,CAkB7D;AAGD;;;;;;;;;;;;;;;;;GAiBG;AACH,uDAAuD;AACvD,MAAM,WAAW,SAAS;IACxB,sCAAsC;IACtC,QAAQ,CAAC,KAAK,EAAE,QAAQ,CAAC;IACzB;;;;;OAKG;IACH,QAAQ,CAAC,oBAAoB,EAAE,SAAS,MAAM,EAAE,CAAC;CAClD;AAED,wBAAsB,qBAAqB,CACzC,WAAW,EAAE,MAAM,EACnB,QAAQ,EAAE,OAAO,GAChB,OAAO,CAAC,SAAS,GAAG,SAAS,CAAC,CA0DhC;AAMD;;;;;;;;;;;;;;GAcG;AACH,wBAAgB,4BAA4B,CAAC,OAAO,EAAE,gBAAgB,EAAE,GAAG,IAAI,CAiB9E;AAMD;;;;;;;;;;GAUG;AACH,wBAAsB,iBAAiB,CACrC,KAAK,EAAE,MAAM,EACb,QAAQ,GAAE,MAAsB,GAC/B,OAAO,CAAC,MAAM,CAAC,CAqGjB"}
@@ -98,10 +98,16 @@ export async function readThemeFromGguiJson(projectRoot, gguiJson) {
98
98
  // derived sets, attested; the declared mode is the default the card
99
99
  // paints when no host announces one; the preset id is the label.
100
100
  const overlays = loaded.overlays;
101
+ // The document's declared faces ride the wire verbatim (ggui#1093):
102
+ // `typography.faces` and `AppTheme.fonts` are ONE grammar now, so the
103
+ // deploy carries what the author declared instead of dropping it.
104
+ // Absence stays absence — no faces, no `fonts` member.
105
+ const fonts = loaded.document.typography?.faces ?? [];
101
106
  const theme = {
102
107
  overlayHash: await canonicalOverlayHash({ overlays }),
103
108
  overlays,
104
109
  mode: loaded.mode,
110
+ ...(fonts.length > 0 ? { fonts: [...fonts] } : {}),
105
111
  ...(loaded.source === 'preset' ? { name: loaded.preset } : {}),
106
112
  };
107
113
  // Defense + clear local error: the resolved overlay must satisfy the same
@@ -203,11 +209,11 @@ export async function runConfigPushStep(appId, startDir = process.cwd()) {
203
209
  const read = await readThemeFromGguiJson(dirname(gguiJsonPath), readResult.value);
204
210
  theme = read?.theme;
205
211
  if (read !== undefined && read.declaredFaceFamilies.length > 0) {
206
- // ggui#990: the PATCH carries the projection only — no faces slot
207
- // on the wire, nothing composes them on the hosted path — so the
208
- // declared families fall back to their stacks there. One line,
209
- // every deploy, until #990 lands.
210
- process.stderr.write(`ggui deploy: theme declares font faces (${read.declaredFaceFamilies.join(', ')}) that are not delivered on the hosted path yet — the fallback stack applies (ggui-ai/ggui#990).\n`);
212
+ // ggui#990/#1093: the PATCH now CARRIES the faces (`AppTheme.fonts`)
213
+ // and a server on this release inlines them in the shell it serves.
214
+ // A deployment still running an older release cannot — so the deploy
215
+ // names the families once, as the version-skew line it is.
216
+ process.stderr.write(`ggui deploy: theme declares font faces (${read.declaredFaceFamilies.join(', ')}) — carried on the wire; a deployment older than this release paints the fallback stack until it rolls (ggui-ai/ggui#990).\n`);
211
217
  }
212
218
  }
213
219
  catch (err) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ggui-ai/cli",
3
- "version": "0.16.0",
3
+ "version": "0.17.0",
4
4
  "description": "The `ggui` CLI — run the ggui protocol locally: dev server, self-hosted MCP server, and gadget / blueprint authoring. End-to-end OSS and self-hosted workflows; no account required.",
5
5
  "keywords": [
6
6
  "ggui",
@@ -37,22 +37,22 @@
37
37
  "@noble/hashes": "^1.6.0",
38
38
  "esbuild": "^0.28.2",
39
39
  "zod": "^4.3.6",
40
- "@ggui-ai/agent-runtime": "0.16.0",
41
- "@ggui-ai/artifact-manifest": "0.16.0",
42
- "@ggui-ai/dev-stack": "0.16.0",
43
- "@ggui-ai/design": "0.16.0",
44
- "@ggui-ai/gadget-signing": "0.16.0",
45
- "@ggui-ai/mcp-server": "0.16.0",
46
- "@ggui-ai/mcp-server-handlers": "0.16.0",
47
- "@ggui-ai/mcp-server-core": "0.16.0",
48
- "@ggui-ai/preview-a2ui": "0.16.0",
49
- "@ggui-ai/project-config": "0.16.0",
50
- "@ggui-ai/iframe-runtime": "0.16.0",
51
- "@ggui-ai/ui-gen": "0.16.0",
52
- "@ggui-ai/embedding-local": "0.16.0",
53
- "@ggui-ai/protocol": "0.16.0",
54
- "@ggui-ai/registry-core": "0.16.0",
55
- "@ggui-ai/ui-registry": "0.16.0"
40
+ "@ggui-ai/gadget-signing": "0.17.0",
41
+ "@ggui-ai/dev-stack": "0.17.0",
42
+ "@ggui-ai/design": "0.17.0",
43
+ "@ggui-ai/artifact-manifest": "0.17.0",
44
+ "@ggui-ai/agent-runtime": "0.17.0",
45
+ "@ggui-ai/embedding-local": "0.17.0",
46
+ "@ggui-ai/mcp-server": "0.17.0",
47
+ "@ggui-ai/mcp-server-handlers": "0.17.0",
48
+ "@ggui-ai/protocol": "0.17.0",
49
+ "@ggui-ai/preview-a2ui": "0.17.0",
50
+ "@ggui-ai/registry-core": "0.17.0",
51
+ "@ggui-ai/project-config": "0.17.0",
52
+ "@ggui-ai/iframe-runtime": "0.17.0",
53
+ "@ggui-ai/mcp-server-core": "0.17.0",
54
+ "@ggui-ai/ui-gen": "0.17.0",
55
+ "@ggui-ai/ui-registry": "0.17.0"
56
56
  },
57
57
  "devDependencies": {
58
58
  "@types/node": "^24.0.0",