@ggui-ai/protocol 0.3.0-rc.0 → 0.4.0-rc.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.
- package/dist/gadgets/stdlib-gadgets.d.ts +1 -1
- package/dist/gadgets/stdlib-gadgets.d.ts.map +1 -1
- package/dist/gadgets/stdlib-gadgets.js +1 -1
- package/dist/registry/portable-blueprint.d.ts +7 -0
- package/dist/registry/portable-blueprint.d.ts.map +1 -1
- package/dist/registry/portable-blueprint.js +8 -0
- package/dist/schemas/mcp.d.ts +57 -4
- package/dist/schemas/mcp.d.ts.map +1 -1
- package/dist/schemas/mcp.js +68 -4
- package/dist/types/llm-route.d.ts +4 -4
- package/dist/types/llm-route.d.ts.map +1 -1
- package/dist/types/llm-route.js +24 -2
- package/dist/types/mcp.d.ts +20 -2
- package/dist/types/mcp.d.ts.map +1 -1
- package/dist/types/mcp.js +9 -2
- package/dist/types/portable-blueprint.d.ts +8 -0
- package/dist/types/portable-blueprint.d.ts.map +1 -1
- package/dist/types/ui-generator.d.ts +19 -1
- package/dist/types/ui-generator.d.ts.map +1 -1
- package/dist/version.d.ts +35 -0
- package/dist/version.d.ts.map +1 -1
- package/dist/version.js +35 -0
- package/package.json +2 -2
|
@@ -12,7 +12,7 @@ export declare const STDLIB_GADGETS_PACKAGE = "@ggui-ai/gadgets";
|
|
|
12
12
|
* in `@ggui-ai/gadgets` asserts the two stay in sync, so a release-time
|
|
13
13
|
* bump to the runtime package without updating this constant fails CI.
|
|
14
14
|
*/
|
|
15
|
-
export declare const STDLIB_GADGETS_VERSION = "0.
|
|
15
|
+
export declare const STDLIB_GADGETS_VERSION = "0.4.0-rc.0";
|
|
16
16
|
/**
|
|
17
17
|
* v1 catalog of stdlib gadget descriptors. Every entry's
|
|
18
18
|
* `package` defaults to {@link STDLIB_GADGETS_PACKAGE}; the
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"stdlib-gadgets.d.ts","sourceRoot":"","sources":["../../src/gadgets/stdlib-gadgets.ts"],"names":[],"mappings":"AA6BA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,wBAAwB,CAAC;AAE/D;;;;GAIG;AACH,eAAO,MAAM,sBAAsB,qBAAqB,CAAC;AAEzD;;;;;;GAMG;AACH,eAAO,MAAM,sBAAsB,
|
|
1
|
+
{"version":3,"file":"stdlib-gadgets.d.ts","sourceRoot":"","sources":["../../src/gadgets/stdlib-gadgets.ts"],"names":[],"mappings":"AA6BA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,wBAAwB,CAAC;AAE/D;;;;GAIG;AACH,eAAO,MAAM,sBAAsB,qBAAqB,CAAC;AAEzD;;;;;;GAMG;AACH,eAAO,MAAM,sBAAsB,eAAe,CAAC;AAEnD;;;;;;;;;;;;;;;;GAgBG;AACH,eAAO,MAAM,cAAc,EAAE,SAAS,QAAQ,CAAC,gBAAgB,CAAC,EAkH/D,CAAC;AAEF;;;;;;;GAOG;AACH,eAAO,MAAM,mBAAmB,EAAE,WAAW,CAAC,MAAM,CAUnD,CAAC"}
|
|
@@ -39,7 +39,7 @@ export const STDLIB_GADGETS_PACKAGE = '@ggui-ai/gadgets';
|
|
|
39
39
|
* in `@ggui-ai/gadgets` asserts the two stay in sync, so a release-time
|
|
40
40
|
* bump to the runtime package without updating this constant fails CI.
|
|
41
41
|
*/
|
|
42
|
-
export const STDLIB_GADGETS_VERSION = '0.
|
|
42
|
+
export const STDLIB_GADGETS_VERSION = '0.4.0-rc.0';
|
|
43
43
|
/**
|
|
44
44
|
* v1 catalog of stdlib gadget descriptors. Every entry's
|
|
45
45
|
* `package` defaults to {@link STDLIB_GADGETS_PACKAGE}; the
|
|
@@ -13,6 +13,13 @@ export interface PortableBlueprintSource {
|
|
|
13
13
|
readonly variance: BlueprintVariance;
|
|
14
14
|
/** Provenance of `componentCode` — travels with the artifact. */
|
|
15
15
|
readonly source: BlueprintSource;
|
|
16
|
+
/**
|
|
17
|
+
* Intent prose for semantic (Tier-2) matching at the import side.
|
|
18
|
+
* Optional: artifacts exported before this field existed (and rows
|
|
19
|
+
* without one) still import — importers fall back to their own
|
|
20
|
+
* intent derivation.
|
|
21
|
+
*/
|
|
22
|
+
readonly intent?: string;
|
|
16
23
|
}
|
|
17
24
|
/**
|
|
18
25
|
* Rejection message for schemaVersion-1 artifacts. v1 records predate
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"portable-blueprint.d.ts","sourceRoot":"","sources":["../../src/registry/portable-blueprint.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,gCAAgC,CAAC;AACxE,OAAO,EAAE,iCAAiC,EAAE,MAAM,gCAAgC,CAAC;AACnF,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAC;AAC9D,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,uBAAuB,CAAC;AAC/D,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,8BAA8B,CAAC;AAMpE,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAC;AAI7D,YAAY,EAAE,iBAAiB,EAAE,CAAC;AAClC,OAAO,EAAE,iCAAiC,EAAE,CAAC;AAE7C,gFAAgF;AAChF,MAAM,WAAW,uBAAuB;IACtC,QAAQ,CAAC,QAAQ,EAAE,YAAY,CAAC;IAChC,QAAQ,CAAC,aAAa,EAAE,MAAM,CAAC;IAC/B,QAAQ,CAAC,QAAQ,EAAE,iBAAiB,CAAC;IACrC,iEAAiE;IACjE,QAAQ,CAAC,MAAM,EAAE,eAAe,CAAC;
|
|
1
|
+
{"version":3,"file":"portable-blueprint.d.ts","sourceRoot":"","sources":["../../src/registry/portable-blueprint.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,gCAAgC,CAAC;AACxE,OAAO,EAAE,iCAAiC,EAAE,MAAM,gCAAgC,CAAC;AACnF,OAAO,KAAK,EAAE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,qBAAqB,CAAC,MAAM,EAAE,OAAO,GAAG,6BAA6B,CAyFpF"}
|
|
@@ -24,6 +24,9 @@ export function toPortableBlueprint(src, opts) {
|
|
|
24
24
|
variantKey: variantKey(src.variance),
|
|
25
25
|
source: src.source,
|
|
26
26
|
generatorProtocolVersion: PROTOCOL_VERSION,
|
|
27
|
+
...(src.intent !== undefined && src.intent.length > 0
|
|
28
|
+
? { intent: src.intent }
|
|
29
|
+
: {}),
|
|
27
30
|
...(opts?.catalog !== undefined
|
|
28
31
|
? { toolIdentityCatalogHash: computeToolCatalogHash(opts.catalog) }
|
|
29
32
|
: {}),
|
|
@@ -75,6 +78,10 @@ export function fromPortableBlueprint(record) {
|
|
|
75
78
|
typeof toolIdentityCatalogHash !== 'string') {
|
|
76
79
|
return { ok: false, reason: 'malformed `toolIdentityCatalogHash` (expected string)' };
|
|
77
80
|
}
|
|
81
|
+
const intent = r['intent'];
|
|
82
|
+
if (intent !== undefined && (typeof intent !== 'string' || intent.length === 0)) {
|
|
83
|
+
return { ok: false, reason: 'malformed `intent` (expected non-empty string when present)' };
|
|
84
|
+
}
|
|
78
85
|
const contract = dataContractSchema.safeParse(r['contract']);
|
|
79
86
|
if (!contract.success) {
|
|
80
87
|
return { ok: false, reason: `malformed \`contract\`: ${contract.error.message}` };
|
|
@@ -96,6 +103,7 @@ export function fromPortableBlueprint(record) {
|
|
|
96
103
|
variantKey: shippedVariantKey,
|
|
97
104
|
source,
|
|
98
105
|
generatorProtocolVersion,
|
|
106
|
+
...(intent !== undefined ? { intent } : {}),
|
|
99
107
|
...(toolIdentityCatalogHash !== undefined ? { toolIdentityCatalogHash } : {}),
|
|
100
108
|
},
|
|
101
109
|
keyMismatch,
|
package/dist/schemas/mcp.d.ts
CHANGED
|
@@ -320,9 +320,46 @@ export declare const renderCacheMarkerSchema: z.ZodObject<{
|
|
|
320
320
|
reason: z.ZodOptional<z.ZodString>;
|
|
321
321
|
}, z.core.$strip>;
|
|
322
322
|
/**
|
|
323
|
-
*
|
|
324
|
-
*
|
|
325
|
-
*
|
|
323
|
+
* Canonical failure codes for the in-result `ggui_render` failure
|
|
324
|
+
* envelope (SPEC §7.9 Plane 3). Closed enum — a failed render's
|
|
325
|
+
* `error.code` is always one of these four; finer-grained diagnostics
|
|
326
|
+
* ride on `error.message`.
|
|
327
|
+
*
|
|
328
|
+
* - `PRODUCTION_FAILED` — generation ran but did not produce a
|
|
329
|
+
* component (LLM/compile/commit failure).
|
|
330
|
+
* - `VALIDATION_ERROR` — a server-side precondition rejected the
|
|
331
|
+
* render before generation could run (misconfigured generation
|
|
332
|
+
* route, unusable stored config).
|
|
333
|
+
* - `NO_PLATFORM_KEY` — the server's managed provider-key
|
|
334
|
+
* configuration has no key for the resolved route.
|
|
335
|
+
* - `NO_CREDENTIALS` — no generation credentials are configured on
|
|
336
|
+
* the server at all.
|
|
337
|
+
*/
|
|
338
|
+
export declare const renderErrorCodeSchema: z.ZodEnum<{
|
|
339
|
+
PRODUCTION_FAILED: "PRODUCTION_FAILED";
|
|
340
|
+
VALIDATION_ERROR: "VALIDATION_ERROR";
|
|
341
|
+
NO_PLATFORM_KEY: "NO_PLATFORM_KEY";
|
|
342
|
+
NO_CREDENTIALS: "NO_CREDENTIALS";
|
|
343
|
+
}>;
|
|
344
|
+
/**
|
|
345
|
+
* In-result failure marker for `ggui_render`. Present on the wire
|
|
346
|
+
* output iff the tool result is `isError: true` — the structuredContent
|
|
347
|
+
* stays schema-conformant on failures, and this field carries the
|
|
348
|
+
* canonical failure classification.
|
|
349
|
+
*/
|
|
350
|
+
export declare const renderErrorSchema: z.ZodObject<{
|
|
351
|
+
code: z.ZodEnum<{
|
|
352
|
+
PRODUCTION_FAILED: "PRODUCTION_FAILED";
|
|
353
|
+
VALIDATION_ERROR: "VALIDATION_ERROR";
|
|
354
|
+
NO_PLATFORM_KEY: "NO_PLATFORM_KEY";
|
|
355
|
+
NO_CREDENTIALS: "NO_CREDENTIALS";
|
|
356
|
+
}>;
|
|
357
|
+
message: z.ZodString;
|
|
358
|
+
}, z.core.$strip>;
|
|
359
|
+
/**
|
|
360
|
+
* Wire-output shape — `{sessionId, resourceUri?, action, contractHash,
|
|
361
|
+
* cache, error?, nextStep?}`. `contractHash` (data-contract identity)
|
|
362
|
+
* and `cache` (reuse outcome) are required wire fields on this schema.
|
|
326
363
|
* The handler carries `shortCode`, `codeReady`, `handshakeId`,
|
|
327
364
|
* `decision`, `contract`, `codeUrl`, `codeHash`
|
|
328
365
|
* on its internal `RenderOutput` TS shape for telemetry / post-classify
|
|
@@ -336,12 +373,18 @@ export declare const renderCacheMarkerSchema: z.ZodObject<{
|
|
|
336
373
|
* `render-resource/...`). Leaving a dead URL on the wire had the model
|
|
337
374
|
* hallucinating links that resolve nowhere.
|
|
338
375
|
*
|
|
376
|
+
* Failure envelope (SPEC §7.1): a failed/rejected generation returns
|
|
377
|
+
* this same schema-conformant shape on an `isError: true` tool result —
|
|
378
|
+
* `error` present, `resourceUri` absent (nothing mountable), no
|
|
379
|
+
* `_meta` on the result. The error GguiSession is still committed, so
|
|
380
|
+
* `sessionId` remains a live handle into the session channel.
|
|
381
|
+
*
|
|
339
382
|
* Post-Phase-B the `'compose'` action enum value is gone — there is no
|
|
340
383
|
* stack of N renders to compose against.
|
|
341
384
|
*/
|
|
342
385
|
export declare const renderOutputSchema: z.ZodObject<{
|
|
343
386
|
sessionId: z.ZodString;
|
|
344
|
-
resourceUri: z.ZodString
|
|
387
|
+
resourceUri: z.ZodOptional<z.ZodString>;
|
|
345
388
|
action: z.ZodEnum<{
|
|
346
389
|
replace: "replace";
|
|
347
390
|
create: "create";
|
|
@@ -363,6 +406,15 @@ export declare const renderOutputSchema: z.ZodObject<{
|
|
|
363
406
|
}>>;
|
|
364
407
|
reason: z.ZodOptional<z.ZodString>;
|
|
365
408
|
}, z.core.$strip>;
|
|
409
|
+
error: z.ZodOptional<z.ZodObject<{
|
|
410
|
+
code: z.ZodEnum<{
|
|
411
|
+
PRODUCTION_FAILED: "PRODUCTION_FAILED";
|
|
412
|
+
VALIDATION_ERROR: "VALIDATION_ERROR";
|
|
413
|
+
NO_PLATFORM_KEY: "NO_PLATFORM_KEY";
|
|
414
|
+
NO_CREDENTIALS: "NO_CREDENTIALS";
|
|
415
|
+
}>;
|
|
416
|
+
message: z.ZodString;
|
|
417
|
+
}, z.core.$strip>>;
|
|
366
418
|
nextStep: z.ZodOptional<z.ZodObject<{
|
|
367
419
|
tool: z.ZodLiteral<"ggui_consume">;
|
|
368
420
|
description: z.ZodString;
|
|
@@ -426,6 +478,7 @@ export declare const updateInputSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
426
478
|
export declare const updateOutputSchema: z.ZodObject<{
|
|
427
479
|
sessionId: z.ZodString;
|
|
428
480
|
updated: z.ZodBoolean;
|
|
481
|
+
resourceUri: z.ZodString;
|
|
429
482
|
}, z.core.$strip>;
|
|
430
483
|
/**
|
|
431
484
|
* `ggui_runtime_declare_tool_catalog` — the host runtime declares its
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"mcp.d.ts","sourceRoot":"","sources":["../../src/schemas/mcp.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AAEH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAUxB,eAAO,MAAM,cAAc;;;iBAGzB,CAAC;AAEH,eAAO,MAAM,sBAAsB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAUnB,CAAC;AAYjB;;;;;GAKG;AACH,eAAO,MAAM,iBAAiB;;;CAgBpB,CAAC;AAEX,eAAO,MAAM,kBAAkB;;;iBAA8B,CAAC;AAE9D;;;GAGG;AACH,eAAO,MAAM,cAAc;;;;;CAKjB,CAAC;AAEX,eAAO,MAAM,eAAe;;;;;iBAA2B,CAAC;AAExD,eAAO,MAAM,oBAAoB;;CAKvB,CAAC;AAEX,eAAO,MAAM,qBAAqB;;iBAAiC,CAAC;AAEpE;;;;;GAKG;AACH,e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;AACH,eAAO,MAAM,qBAAqB;;;;;EAKhC,CAAC;AAEH;;;;;GAKG;AACH,eAAO,MAAM,iBAAiB;;;;;;;;iBAS5B,CAAC;AAEH;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;AACH,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAwE7B,CAAC;AAEH;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8BG;AACH,eAAO,MAAM,iBAAiB;;;;;;;;4BAa5B,CAAC;AAEH;;;;;;;;;;GAUG;AACH,eAAO,MAAM,kBAAkB;;;;iBAW7B,CAAC;AAEH;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AACH,eAAO,MAAM,6BAA6B;;;;;kBAW/B,CAAC;AAEZ,eAAO,MAAM,8BAA8B;;;kBAKhC,CAAC"}
|
package/dist/schemas/mcp.js
CHANGED
|
@@ -381,9 +381,43 @@ export const renderCacheMarkerSchema = z.object({
|
|
|
381
381
|
.describe('Compact human-readable explanation of the cache outcome — why this render reused a stored component or generated cold. Diagnostic; default-available without the verbose env-gated trace.'),
|
|
382
382
|
});
|
|
383
383
|
/**
|
|
384
|
-
*
|
|
385
|
-
*
|
|
386
|
-
*
|
|
384
|
+
* Canonical failure codes for the in-result `ggui_render` failure
|
|
385
|
+
* envelope (SPEC §7.9 Plane 3). Closed enum — a failed render's
|
|
386
|
+
* `error.code` is always one of these four; finer-grained diagnostics
|
|
387
|
+
* ride on `error.message`.
|
|
388
|
+
*
|
|
389
|
+
* - `PRODUCTION_FAILED` — generation ran but did not produce a
|
|
390
|
+
* component (LLM/compile/commit failure).
|
|
391
|
+
* - `VALIDATION_ERROR` — a server-side precondition rejected the
|
|
392
|
+
* render before generation could run (misconfigured generation
|
|
393
|
+
* route, unusable stored config).
|
|
394
|
+
* - `NO_PLATFORM_KEY` — the server's managed provider-key
|
|
395
|
+
* configuration has no key for the resolved route.
|
|
396
|
+
* - `NO_CREDENTIALS` — no generation credentials are configured on
|
|
397
|
+
* the server at all.
|
|
398
|
+
*/
|
|
399
|
+
export const renderErrorCodeSchema = z.enum([
|
|
400
|
+
'PRODUCTION_FAILED',
|
|
401
|
+
'VALIDATION_ERROR',
|
|
402
|
+
'NO_PLATFORM_KEY',
|
|
403
|
+
'NO_CREDENTIALS',
|
|
404
|
+
]);
|
|
405
|
+
/**
|
|
406
|
+
* In-result failure marker for `ggui_render`. Present on the wire
|
|
407
|
+
* output iff the tool result is `isError: true` — the structuredContent
|
|
408
|
+
* stays schema-conformant on failures, and this field carries the
|
|
409
|
+
* canonical failure classification.
|
|
410
|
+
*/
|
|
411
|
+
export const renderErrorSchema = z.object({
|
|
412
|
+
code: renderErrorCodeSchema.describe('Canonical failure class. PRODUCTION_FAILED: generation did not produce a component. VALIDATION_ERROR: a server-side precondition rejected the render before generation. NO_PLATFORM_KEY: the server\'s managed provider-key configuration has no key for the resolved route. NO_CREDENTIALS: no generation credentials are configured on the server.'),
|
|
413
|
+
message: z
|
|
414
|
+
.string()
|
|
415
|
+
.describe('Human-readable failure detail — fold into the next attempt or surface to the operator.'),
|
|
416
|
+
});
|
|
417
|
+
/**
|
|
418
|
+
* Wire-output shape — `{sessionId, resourceUri?, action, contractHash,
|
|
419
|
+
* cache, error?, nextStep?}`. `contractHash` (data-contract identity)
|
|
420
|
+
* and `cache` (reuse outcome) are required wire fields on this schema.
|
|
387
421
|
* The handler carries `shortCode`, `codeReady`, `handshakeId`,
|
|
388
422
|
* `decision`, `contract`, `codeUrl`, `codeHash`
|
|
389
423
|
* on its internal `RenderOutput` TS shape for telemetry / post-classify
|
|
@@ -397,6 +431,12 @@ export const renderCacheMarkerSchema = z.object({
|
|
|
397
431
|
* `render-resource/...`). Leaving a dead URL on the wire had the model
|
|
398
432
|
* hallucinating links that resolve nowhere.
|
|
399
433
|
*
|
|
434
|
+
* Failure envelope (SPEC §7.1): a failed/rejected generation returns
|
|
435
|
+
* this same schema-conformant shape on an `isError: true` tool result —
|
|
436
|
+
* `error` present, `resourceUri` absent (nothing mountable), no
|
|
437
|
+
* `_meta` on the result. The error GguiSession is still committed, so
|
|
438
|
+
* `sessionId` remains a live handle into the session channel.
|
|
439
|
+
*
|
|
400
440
|
* Post-Phase-B the `'compose'` action enum value is gone — there is no
|
|
401
441
|
* stack of N renders to compose against.
|
|
402
442
|
*/
|
|
@@ -409,8 +449,15 @@ export const renderOutputSchema = z.object({
|
|
|
409
449
|
* tool_results (OpenAI Agents SDK, Google ADK) reach the mount URI;
|
|
410
450
|
* SDKs that preserve `_meta` see the same value on both fields.
|
|
411
451
|
* Mirrors the `resourceUri` field on `ggui_update`'s output.
|
|
452
|
+
*
|
|
453
|
+
* OPTIONAL — present iff the render is mountable. Absent on the
|
|
454
|
+
* failure envelope (`error` present): a failed render commits an
|
|
455
|
+
* error GguiSession but exposes no mount affordance.
|
|
412
456
|
*/
|
|
413
|
-
resourceUri: z
|
|
457
|
+
resourceUri: z
|
|
458
|
+
.string()
|
|
459
|
+
.optional()
|
|
460
|
+
.describe('MCP-Apps mount URI (ui://ggui/render/{id}). Present iff the render is mountable; absent on a failed render.'),
|
|
414
461
|
action: z.enum(['create', 'reuse', 'update', 'replace', 'declined']),
|
|
415
462
|
contractHash: z
|
|
416
463
|
.string()
|
|
@@ -422,6 +469,15 @@ export const renderOutputSchema = z.object({
|
|
|
422
469
|
.string()
|
|
423
470
|
.describe('Canonical hash of the design-time variance (persona, aesthetic, seed prompt, context). With contractHash it forms the reuse key: the same pair reuses one component; a different variant of the same contract gets its own.'),
|
|
424
471
|
cache: renderCacheMarkerSchema.describe('Reuse outcome for this render: whether a stored component was served, its similarity, the matched component id, and how many generation calls that avoided.'),
|
|
472
|
+
/**
|
|
473
|
+
* In-result failure marker — present iff the tool result is
|
|
474
|
+
* `isError: true`. The structuredContent stays schema-conformant on
|
|
475
|
+
* failures; this field carries the canonical `{code, message}`
|
|
476
|
+
* classification. Absent on every successful render.
|
|
477
|
+
*/
|
|
478
|
+
error: renderErrorSchema
|
|
479
|
+
.optional()
|
|
480
|
+
.describe('Present iff the tool result is isError — canonical {code, message} for a failed/rejected generation. Absent on success.'),
|
|
425
481
|
/**
|
|
426
482
|
* Wire-shape recovery hint for the next call. Emitted ONLY when the
|
|
427
483
|
* rendered contract has a non-empty `actionSpec` — i.e. the agent will
|
|
@@ -502,6 +558,14 @@ export const updateInputSchema = z.discriminatedUnion('kind', [
|
|
|
502
558
|
export const updateOutputSchema = z.object({
|
|
503
559
|
sessionId: z.string(),
|
|
504
560
|
updated: z.boolean(),
|
|
561
|
+
/**
|
|
562
|
+
* Unchanged from the initial render — the same `ui://ggui/render/{id}`
|
|
563
|
+
* URI the mount stamped. Mirrored on the LLM-visible structuredContent
|
|
564
|
+
* so SDKs that strip `_meta` from tool_results can still reach the
|
|
565
|
+
* mount URI. Kept in sync with the update handler's wire shape —
|
|
566
|
+
* this export and the handler's inline schema must not drift.
|
|
567
|
+
*/
|
|
568
|
+
resourceUri: z.string(),
|
|
505
569
|
});
|
|
506
570
|
/**
|
|
507
571
|
* `ggui_runtime_declare_tool_catalog` — the host runtime declares its
|
|
@@ -51,11 +51,11 @@
|
|
|
51
51
|
* ready.
|
|
52
52
|
*/
|
|
53
53
|
export declare const MODELS: {
|
|
54
|
-
readonly anthropic: readonly ["claude-haiku-4-5-20251001", "claude-sonnet-4-6", "claude-opus-4-7", "claude-opus-4-6"];
|
|
55
|
-
readonly openai: readonly ["gpt-5.5", "gpt-5.5-2026-04-23", "gpt-5.5-pro", "gpt-5.5-pro-2026-04-23", "gpt-5.4", "gpt-5.4-2026-03-05", "gpt-5.4-mini", "gpt-5.4-mini-2026-03-17", "gpt-5.4-nano", "gpt-5.4-nano-2026-03-17", "gpt-5.3-codex"];
|
|
56
|
-
readonly google: readonly ["gemini-3.5-flash", "gemini-flash-latest", "gemini-3.1-flash-lite", "gemini-3.1-pro-preview", "gemini-3.1-flash-lite-preview", "gemini-3-flash-preview"];
|
|
54
|
+
readonly anthropic: readonly ["claude-fable-5", "claude-opus-5", "claude-sonnet-5", "claude-haiku-4-5-20251001", "claude-sonnet-4-6", "claude-opus-4-7", "claude-opus-4-6"];
|
|
55
|
+
readonly openai: readonly ["gpt-5.6", "gpt-5.6-sol", "gpt-5.6-terra", "gpt-5.6-luna", "gpt-5.5", "gpt-5.5-2026-04-23", "gpt-5.5-pro", "gpt-5.5-pro-2026-04-23", "gpt-5.4", "gpt-5.4-2026-03-05", "gpt-5.4-mini", "gpt-5.4-mini-2026-03-17", "gpt-5.4-nano", "gpt-5.4-nano-2026-03-17", "gpt-5.3-codex"];
|
|
56
|
+
readonly google: readonly ["gemini-3.6-flash", "gemini-3.5-flash", "gemini-3.5-flash-lite", "gemini-flash-latest", "gemini-3.1-flash-lite", "gemini-3.1-pro-preview", "gemini-3.1-flash-lite-preview", "gemini-3-flash-preview"];
|
|
57
57
|
readonly bedrock: readonly ["us.anthropic.claude-haiku-4-5-20251001-v1:0", "eu.anthropic.claude-haiku-4-5-20251001-v1:0", "apac.anthropic.claude-haiku-4-5-20251001-v1:0", "global.anthropic.claude-haiku-4-5-20251001-v1:0", "us.anthropic.claude-sonnet-4-6", "eu.anthropic.claude-sonnet-4-6", "apac.anthropic.claude-sonnet-4-6", "us.anthropic.claude-opus-4-7", "eu.anthropic.claude-opus-4-7", "apac.anthropic.claude-opus-4-7", "global.anthropic.claude-opus-4-7", "us.anthropic.claude-opus-4-6-v1"];
|
|
58
|
-
readonly openrouter: readonly ["anthropic/claude-haiku-4.5", "anthropic/claude-sonnet-4.6", "anthropic/claude-opus-4.7", "openai/gpt-5.5", "openai/gpt-5.5-pro", "openai/gpt-5.4-mini", "openai/gpt-5.4-nano", "google/gemini-3.5-flash", "google/gemini-3.1-pro-preview", "google/gemini-3.1-flash-lite", "x-ai/grok-4.3", "meta-llama/llama-4-maverick", "meta-llama/llama-3.3-70b-instruct", "deepseek/deepseek-v4-pro", "deepseek/deepseek-r1-0528", "qwen/qwen3.7-max", "qwen/qwen3-coder", "mistralai/mistral-large-2512", "openai/gpt-oss-120b"];
|
|
58
|
+
readonly openrouter: readonly ["anthropic/claude-fable-5", "anthropic/claude-opus-5", "anthropic/claude-sonnet-5", "anthropic/claude-haiku-4.5", "anthropic/claude-sonnet-4.6", "anthropic/claude-opus-4.7", "openai/gpt-5.6-sol", "openai/gpt-5.6-terra", "openai/gpt-5.6-luna", "openai/gpt-5.5", "openai/gpt-5.5-pro", "openai/gpt-5.4-mini", "openai/gpt-5.4-nano", "google/gemini-3.6-flash", "google/gemini-3.5-flash", "google/gemini-3.5-flash-lite", "google/gemini-3.1-pro-preview", "google/gemini-3.1-flash-lite", "x-ai/grok-4.3", "meta-llama/llama-4-maverick", "meta-llama/llama-3.3-70b-instruct", "deepseek/deepseek-v4-pro", "deepseek/deepseek-r1-0528", "qwen/qwen3.7-max", "qwen/qwen3-coder", "mistralai/mistral-large-2512", "openai/gpt-oss-120b"];
|
|
59
59
|
};
|
|
60
60
|
/**
|
|
61
61
|
* Every supported LLM provider. Adding a new provider = add a key to
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"llm-route.d.ts","sourceRoot":"","sources":["../../src/types/llm-route.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;GA0BG;AAMH;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AACH,eAAO,MAAM,MAAM;;;;;;
|
|
1
|
+
{"version":3,"file":"llm-route.d.ts","sourceRoot":"","sources":["../../src/types/llm-route.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;GA0BG;AAMH;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AACH,eAAO,MAAM,MAAM;;;;;;CAiIT,CAAC;AAMX;;;;GAIG;AACH,MAAM,MAAM,WAAW,GAAG,MAAM,OAAO,MAAM,CAAC;AAE9C;;;;GAIG;AACH,MAAM,MAAM,YAAY,CAAC,CAAC,SAAS,WAAW,IAAI,CAAC,OAAO,MAAM,CAAC,CAAC,CAAC,CAAC,CA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AAC,EAAE,MAAM,GAAG,QAAQ,GAAG,IAAI,CAgB7D;AAuBD;;;;;;;;;;GAUG;AACH,wBAAgB,eAAe,CAAC,KAAK,EAAE,QAAQ,GAAG,MAAM,CAKvD;AAmBD;;;;;;;;;GASG;AACH,wBAAgB,gBAAgB,CAAC,CAAC,EAAE,MAAM,GAAG,QAAQ,GAAG,IAAI,CAE3D"}
|
package/dist/types/llm-route.js
CHANGED
|
@@ -57,8 +57,12 @@ export const MODELS = {
|
|
|
57
57
|
anthropic: [
|
|
58
58
|
// Wire-canonical IDs accepted by api.anthropic.com/v1/messages.
|
|
59
59
|
// Per Anthropic's official models doc (claude.com/docs/about-claude/models/overview):
|
|
60
|
-
//
|
|
61
|
-
//
|
|
60
|
+
// the Claude 5 family (2026-07: Opus 5, Sonnet 5, and the
|
|
61
|
+
// Mythos-class Fable 5) and the 4.6/4.7 generation carry undated
|
|
62
|
+
// wire IDs; Haiku 4.5 still uses the dated form.
|
|
63
|
+
'claude-fable-5',
|
|
64
|
+
'claude-opus-5',
|
|
65
|
+
'claude-sonnet-5',
|
|
62
66
|
'claude-haiku-4-5-20251001',
|
|
63
67
|
'claude-sonnet-4-6',
|
|
64
68
|
'claude-opus-4-7',
|
|
@@ -68,6 +72,14 @@ export const MODELS = {
|
|
|
68
72
|
// Per OpenAI's model registry (developers.openai.com/api/docs/models/all).
|
|
69
73
|
// Both unversioned aliases AND dated snapshots are valid wire IDs;
|
|
70
74
|
// we enumerate both because operators reasonably use either.
|
|
75
|
+
// GPT-5.6 family (2026-07): named-suffix tiers — `sol` (deepest
|
|
76
|
+
// reasoning), `terra` (balanced), `luna` (fast/cost). The bare
|
|
77
|
+
// `gpt-5.6` alias routes to Sol on OpenAI's side. No dated
|
|
78
|
+
// siblings registered at adoption time.
|
|
79
|
+
'gpt-5.6',
|
|
80
|
+
'gpt-5.6-sol',
|
|
81
|
+
'gpt-5.6-terra',
|
|
82
|
+
'gpt-5.6-luna',
|
|
71
83
|
'gpt-5.5',
|
|
72
84
|
'gpt-5.5-2026-04-23',
|
|
73
85
|
'gpt-5.5-pro',
|
|
@@ -85,7 +97,9 @@ export const MODELS = {
|
|
|
85
97
|
// Stable + the commonly-used previews. The `-preview` suffix is
|
|
86
98
|
// load-bearing on the wire for preview models — Gemini's API
|
|
87
99
|
// rejects the bare name for those.
|
|
100
|
+
'gemini-3.6-flash',
|
|
88
101
|
'gemini-3.5-flash',
|
|
102
|
+
'gemini-3.5-flash-lite',
|
|
89
103
|
'gemini-flash-latest',
|
|
90
104
|
'gemini-3.1-flash-lite',
|
|
91
105
|
'gemini-3.1-pro-preview',
|
|
@@ -131,16 +145,24 @@ export const MODELS = {
|
|
|
131
145
|
// for Anthropic version (`claude-haiku-4.5`) where Anthropic direct
|
|
132
146
|
// uses dash (`claude-haiku-4-5`) — preserve OpenRouter's wire form.
|
|
133
147
|
// Anthropic family
|
|
148
|
+
'anthropic/claude-fable-5',
|
|
149
|
+
'anthropic/claude-opus-5',
|
|
150
|
+
'anthropic/claude-sonnet-5',
|
|
134
151
|
'anthropic/claude-haiku-4.5',
|
|
135
152
|
'anthropic/claude-sonnet-4.6',
|
|
136
153
|
'anthropic/claude-opus-4.7',
|
|
137
154
|
// OpenAI family
|
|
155
|
+
'openai/gpt-5.6-sol',
|
|
156
|
+
'openai/gpt-5.6-terra',
|
|
157
|
+
'openai/gpt-5.6-luna',
|
|
138
158
|
'openai/gpt-5.5',
|
|
139
159
|
'openai/gpt-5.5-pro',
|
|
140
160
|
'openai/gpt-5.4-mini',
|
|
141
161
|
'openai/gpt-5.4-nano',
|
|
142
162
|
// Google family
|
|
163
|
+
'google/gemini-3.6-flash',
|
|
143
164
|
'google/gemini-3.5-flash',
|
|
165
|
+
'google/gemini-3.5-flash-lite',
|
|
144
166
|
'google/gemini-3.1-pro-preview',
|
|
145
167
|
'google/gemini-3.1-flash-lite',
|
|
146
168
|
// Frontier alternatives
|
package/dist/types/mcp.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { z } from 'zod';
|
|
2
2
|
import type { JsonObject, JsonSchema, JsonValue } from './data-contract';
|
|
3
3
|
import type { GguiSession, GguiSessionStatus } from './render';
|
|
4
|
-
import type { consumeInputSchema, getSessionInputSchema, handshakeInputSchema, handshakeOutputSchema, renderBlueprintInputSchema, renderCacheMarkerSchema, renderInputSchema, renderOutputSchema, requestCredentialInputSchema, searchBlueprintsInputSchema, updateInputSchema, updateOutputSchema, declareToolCatalogOutputSchema } from '../schemas/mcp';
|
|
4
|
+
import type { consumeInputSchema, getSessionInputSchema, handshakeInputSchema, handshakeOutputSchema, renderBlueprintInputSchema, renderCacheMarkerSchema, renderErrorCodeSchema, renderErrorSchema, renderInputSchema, renderOutputSchema, requestCredentialInputSchema, searchBlueprintsInputSchema, updateInputSchema, updateOutputSchema, declareToolCatalogOutputSchema } from '../schemas/mcp';
|
|
5
5
|
export type { GguiSessionStatus } from './render';
|
|
6
6
|
/** Target screen size category for responsive layout */
|
|
7
7
|
export type Screen = 'mobile' | 'tablet' | 'desktop' | 'universal';
|
|
@@ -387,6 +387,17 @@ export type GguiRenderOutput = z.infer<typeof renderOutputSchema>;
|
|
|
387
387
|
* {@link renderCacheMarkerSchema} — the schema is the source of truth.
|
|
388
388
|
*/
|
|
389
389
|
export type RenderCacheMarker = z.infer<typeof renderCacheMarkerSchema>;
|
|
390
|
+
/**
|
|
391
|
+
* Canonical failure code for the in-result `ggui_render` failure
|
|
392
|
+
* envelope (SPEC §7.9 Plane 3). Derived from
|
|
393
|
+
* {@link renderErrorCodeSchema} — the schema is the source of truth.
|
|
394
|
+
*/
|
|
395
|
+
export type RenderErrorCode = z.infer<typeof renderErrorCodeSchema>;
|
|
396
|
+
/**
|
|
397
|
+
* In-result failure marker on `GguiRenderOutput.error` — present iff the
|
|
398
|
+
* tool result is `isError: true`. Derived from {@link renderErrorSchema}.
|
|
399
|
+
*/
|
|
400
|
+
export type RenderError = z.infer<typeof renderErrorSchema>;
|
|
390
401
|
export type GguiUpdateInput = z.infer<typeof updateInputSchema>;
|
|
391
402
|
export type GguiUpdateOutput = z.infer<typeof updateOutputSchema>;
|
|
392
403
|
/**
|
|
@@ -399,6 +410,14 @@ export type GguiUpdateOutput = z.infer<typeof updateOutputSchema>;
|
|
|
399
410
|
export type DeclareToolCatalogOutput = z.infer<typeof declareToolCatalogOutputSchema>;
|
|
400
411
|
/**
|
|
401
412
|
* Core protocol error codes (per spec Section 7.9)
|
|
413
|
+
*
|
|
414
|
+
* `-32004` is RETIRED-RESERVED: it was assigned to `PRODUCTION_FAILED`,
|
|
415
|
+
* a phantom code no first-party implementation ever emitted as a
|
|
416
|
+
* JSON-RPC error. `PRODUCTION_FAILED` is now an in-result tool-error
|
|
417
|
+
* code on the `ggui_render` failure envelope (SPEC §7.9 Plane 3 /
|
|
418
|
+
* §7.1; see {@link RenderErrorCode}). The slot stays unassigned so a
|
|
419
|
+
* future canonical code can't silently collide with stale consumers —
|
|
420
|
+
* new canonical codes come at `-32006` onwards.
|
|
402
421
|
*/
|
|
403
422
|
export declare const MCP_ERROR_CODES: {
|
|
404
423
|
readonly PARSE_ERROR: -32700;
|
|
@@ -409,7 +428,6 @@ export declare const MCP_ERROR_CODES: {
|
|
|
409
428
|
readonly UNAUTHORIZED: -32001;
|
|
410
429
|
readonly SESSION_NOT_FOUND: -32002;
|
|
411
430
|
readonly APP_NOT_FOUND: -32003;
|
|
412
|
-
readonly PRODUCTION_FAILED: -32004;
|
|
413
431
|
readonly CAPABILITY_DENIED: -32005;
|
|
414
432
|
};
|
|
415
433
|
/**
|
package/dist/types/mcp.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"mcp.d.ts","sourceRoot":"","sources":["../../src/types/mcp.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAC7B,OAAO,KAAK,EAAE,UAAU,EAAE,UAAU,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;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,OAAO,qBAAqB,CAAC,CAAC;AAExE;;;;;;;;;;;;;;;GAeG;AACH,MAAM,WAAW,kBAAkB;IACjC;;;;;OAKG;IACH,QAAQ,CAAC,eAAe,CAAC,EAAE;QACzB,QAAQ,CAAC,GAAG,EAAE,MAAM,CAAC;KACtB,CAAC;IACF;;;;;OAKG;IACH,QAAQ,CAAC,yBAAyB,CAAC,EAAE,SAAS,MAAM,EAAE,CAAC;CACxD;AAED,MAAM,MAAM,eAAe,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,iBAAiB,CAAC,CAAC;AAChE,MAAM,MAAM,gBAAgB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kBAAkB,CAAC,CAAC;AAElE;;;GAGG;AACH,MAAM,MAAM,iBAAiB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,uBAAuB,CAAC,CAAC;AAExE;;;;GAIG;AACH,MAAM,MAAM,eAAe,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,qBAAqB,CAAC,CAAC;AAEpE;;;GAGG;AACH,MAAM,MAAM,WAAW,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,iBAAiB,CAAC,CAAC;AAE5D,MAAM,MAAM,eAAe,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,iBAAiB,CAAC,CAAC;AAChE,MAAM,MAAM,gBAAgB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kBAAkB,CAAC,CAAC;AAElE;;;;;;GAMG;AACH,MAAM,MAAM,wBAAwB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,8BAA8B,CAAC,CAAC;AAMtF;;;;;;;;;;GAUG;AACH,eAAO,MAAM,eAAe;;;;;;;;;;CAWlB,CAAC;AAEX;;;GAGG;AACH,eAAO,MAAM,oBAAoB;;;;;;CAMvB,CAAC"}
|
package/dist/types/mcp.js
CHANGED
|
@@ -3,6 +3,14 @@
|
|
|
3
3
|
// =============================================================================
|
|
4
4
|
/**
|
|
5
5
|
* Core protocol error codes (per spec Section 7.9)
|
|
6
|
+
*
|
|
7
|
+
* `-32004` is RETIRED-RESERVED: it was assigned to `PRODUCTION_FAILED`,
|
|
8
|
+
* a phantom code no first-party implementation ever emitted as a
|
|
9
|
+
* JSON-RPC error. `PRODUCTION_FAILED` is now an in-result tool-error
|
|
10
|
+
* code on the `ggui_render` failure envelope (SPEC §7.9 Plane 3 /
|
|
11
|
+
* §7.1; see {@link RenderErrorCode}). The slot stays unassigned so a
|
|
12
|
+
* future canonical code can't silently collide with stale consumers —
|
|
13
|
+
* new canonical codes come at `-32006` onwards.
|
|
6
14
|
*/
|
|
7
15
|
export const MCP_ERROR_CODES = {
|
|
8
16
|
PARSE_ERROR: -32700,
|
|
@@ -10,11 +18,10 @@ export const MCP_ERROR_CODES = {
|
|
|
10
18
|
METHOD_NOT_FOUND: -32601,
|
|
11
19
|
INVALID_PARAMS: -32602,
|
|
12
20
|
INTERNAL_ERROR: -32603,
|
|
13
|
-
// Protocol-specific error codes
|
|
21
|
+
// Protocol-specific error codes (-32004 retired-reserved — see above)
|
|
14
22
|
UNAUTHORIZED: -32001,
|
|
15
23
|
SESSION_NOT_FOUND: -32002,
|
|
16
24
|
APP_NOT_FOUND: -32003,
|
|
17
|
-
PRODUCTION_FAILED: -32004,
|
|
18
25
|
CAPABILITY_DENIED: -32005,
|
|
19
26
|
};
|
|
20
27
|
/**
|
|
@@ -40,6 +40,14 @@ export interface PortableBlueprint {
|
|
|
40
40
|
* protocol shape.
|
|
41
41
|
*/
|
|
42
42
|
readonly generatorProtocolVersion: string;
|
|
43
|
+
/**
|
|
44
|
+
* Intent prose the blueprint was registered under — the semantic
|
|
45
|
+
* (Tier-2) matching input at the import side. Optional: artifacts
|
|
46
|
+
* exported before this field existed still import, with the
|
|
47
|
+
* importer deriving intent from its own fallbacks. When present it
|
|
48
|
+
* MUST be non-empty.
|
|
49
|
+
*/
|
|
50
|
+
readonly intent?: string;
|
|
43
51
|
/**
|
|
44
52
|
* SHA256(16) of the tool-identity catalog used to canonicalize
|
|
45
53
|
* `contract` at export. Importers re-canonicalize against their own
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"portable-blueprint.d.ts","sourceRoot":"","sources":["../../src/types/portable-blueprint.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAC;AACvD,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,gBAAgB,CAAC;AACxD,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAC;AAE7D;;;;;;GAMG;AACH,eAAO,MAAM,iCAAiC,IAAI,CAAC;AAEnD;;;;;;;;;;GAUG;AACH,MAAM,WAAW,iBAAiB;IAChC,QAAQ,CAAC,aAAa,EAAE,OAAO,iCAAiC,CAAC;IACjE,QAAQ,CAAC,QAAQ,EAAE,YAAY,CAAC;IAChC,QAAQ,CAAC,aAAa,EAAE,MAAM,CAAC;IAC/B,QAAQ,CAAC,QAAQ,EAAE,iBAAiB,CAAC;IACrC,QAAQ,CAAC,YAAY,EAAE,MAAM,CAAC;IAC9B,QAAQ,CAAC,UAAU,EAAE,MAAM,CAAC;IAC5B;;;;OAIG;IACH,QAAQ,CAAC,MAAM,EAAE,eAAe,CAAC;IACjC;;;;;OAKG;IACH,QAAQ,CAAC,wBAAwB,EAAE,MAAM,CAAC;IAC1C;;;;;;;OAOG;IACH,QAAQ,CAAC,uBAAuB,CAAC,EAAE,MAAM,CAAC;CAC3C"}
|
|
1
|
+
{"version":3,"file":"portable-blueprint.d.ts","sourceRoot":"","sources":["../../src/types/portable-blueprint.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAC;AACvD,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,gBAAgB,CAAC;AACxD,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAC;AAE7D;;;;;;GAMG;AACH,eAAO,MAAM,iCAAiC,IAAI,CAAC;AAEnD;;;;;;;;;;GAUG;AACH,MAAM,WAAW,iBAAiB;IAChC,QAAQ,CAAC,aAAa,EAAE,OAAO,iCAAiC,CAAC;IACjE,QAAQ,CAAC,QAAQ,EAAE,YAAY,CAAC;IAChC,QAAQ,CAAC,aAAa,EAAE,MAAM,CAAC;IAC/B,QAAQ,CAAC,QAAQ,EAAE,iBAAiB,CAAC;IACrC,QAAQ,CAAC,YAAY,EAAE,MAAM,CAAC;IAC9B,QAAQ,CAAC,UAAU,EAAE,MAAM,CAAC;IAC5B;;;;OAIG;IACH,QAAQ,CAAC,MAAM,EAAE,eAAe,CAAC;IACjC;;;;;OAKG;IACH,QAAQ,CAAC,wBAAwB,EAAE,MAAM,CAAC;IAC1C;;;;;;OAMG;IACH,QAAQ,CAAC,MAAM,CAAC,EAAE,MAAM,CAAC;IACzB;;;;;;;OAOG;IACH,QAAQ,CAAC,uBAAuB,CAAC,EAAE,MAAM,CAAC;CAC3C"}
|
|
@@ -48,9 +48,27 @@ export interface UIGenerationResponse {
|
|
|
48
48
|
/**
|
|
49
49
|
* Error during UI generation.
|
|
50
50
|
* The `details` field is {@link JsonValue} to carry any JSON-safe diagnostic data.
|
|
51
|
+
*
|
|
52
|
+
* `code` vocabulary:
|
|
53
|
+
*
|
|
54
|
+
* - `PRODUCTION_FAILED` — the generation pipeline ran but did not
|
|
55
|
+
* produce a component.
|
|
56
|
+
* - `COMPILATION_ERROR` — produced code failed to compile. Maps to
|
|
57
|
+
* the canonical `PRODUCTION_FAILED` on the render failure envelope
|
|
58
|
+
* (it is a finer-grained production failure, not a distinct wire
|
|
59
|
+
* class).
|
|
60
|
+
* - `VALIDATION_ERROR` — an input/config precondition rejected the
|
|
61
|
+
* generation before the LLM was called.
|
|
62
|
+
* - `NO_PLATFORM_KEY` — the server's managed provider-key
|
|
63
|
+
* configuration has no key for the resolved route.
|
|
64
|
+
* - `NO_CREDENTIALS` — no generation credentials are configured on
|
|
65
|
+
* the server.
|
|
66
|
+
*
|
|
67
|
+
* The last four map 1:1 onto the render failure envelope's canonical
|
|
68
|
+
* codes (`renderErrorCodeSchema` in `schemas/mcp.ts`).
|
|
51
69
|
*/
|
|
52
70
|
export interface GenerationError {
|
|
53
|
-
code: 'PRODUCTION_FAILED' | 'COMPILATION_ERROR' | 'VALIDATION_ERROR';
|
|
71
|
+
code: 'PRODUCTION_FAILED' | 'COMPILATION_ERROR' | 'VALIDATION_ERROR' | 'NO_PLATFORM_KEY' | 'NO_CREDENTIALS';
|
|
54
72
|
message: string;
|
|
55
73
|
/** Additional diagnostic information. Typed as {@link JsonValue} (any JSON-safe value). */
|
|
56
74
|
details?: JsonValue;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ui-generator.d.ts","sourceRoot":"","sources":["../../src/types/ui-generator.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,YAAY,EACZ,UAAU,EACV,UAAU,EACV,SAAS,EACV,MAAM,iBAAiB,CAAC;AAEzB;;;GAGG;AACH,MAAM,WAAW,mBAAmB,CAAC,QAAQ,GAAG,UAAU;IACxD,SAAS,EAAE,MAAM,CAAC;IAClB,MAAM,EAAE,MAAM,CAAC;IACf,OAAO,CAAC,EAAE,QAAQ,CAAC;IACnB,MAAM,CAAC,EAAE,UAAU,CAAC;CACrB;AAED;;;;;;;;GAQG;AACH,MAAM,WAAW,oBAAoB;IACnC,SAAS,EAAE,MAAM,CAAC;IAClB,aAAa,EAAE,MAAM,CAAC;IACtB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,QAAQ,CAAC,EAAE,MAAM,EAAE,CAAC;IACpB;;;;;;;;;;;;;;;;;;;OAmBG;IACH,QAAQ,CAAC,EAAE,YAAY,CAAC;CACzB;AAED
|
|
1
|
+
{"version":3,"file":"ui-generator.d.ts","sourceRoot":"","sources":["../../src/types/ui-generator.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,YAAY,EACZ,UAAU,EACV,UAAU,EACV,SAAS,EACV,MAAM,iBAAiB,CAAC;AAEzB;;;GAGG;AACH,MAAM,WAAW,mBAAmB,CAAC,QAAQ,GAAG,UAAU;IACxD,SAAS,EAAE,MAAM,CAAC;IAClB,MAAM,EAAE,MAAM,CAAC;IACf,OAAO,CAAC,EAAE,QAAQ,CAAC;IACnB,MAAM,CAAC,EAAE,UAAU,CAAC;CACrB;AAED;;;;;;;;GAQG;AACH,MAAM,WAAW,oBAAoB;IACnC,SAAS,EAAE,MAAM,CAAC;IAClB,aAAa,EAAE,MAAM,CAAC;IACtB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,QAAQ,CAAC,EAAE,MAAM,EAAE,CAAC;IACpB;;;;;;;;;;;;;;;;;;;OAmBG;IACH,QAAQ,CAAC,EAAE,YAAY,CAAC;CACzB;AAED;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,MAAM,WAAW,eAAe;IAC9B,IAAI,EACA,mBAAmB,GACnB,mBAAmB,GACnB,kBAAkB,GAClB,iBAAiB,GACjB,gBAAgB,CAAC;IACrB,OAAO,EAAE,MAAM,CAAC;IAChB,2FAA2F;IAC3F,OAAO,CAAC,EAAE,SAAS,CAAC;CACrB"}
|
package/dist/version.d.ts
CHANGED
|
@@ -6,6 +6,41 @@
|
|
|
6
6
|
* schema change; the most recent change anchors {@link PROTOCOL_VERSION}.
|
|
7
7
|
*
|
|
8
8
|
* --------------------------------------------------------------------
|
|
9
|
+
* Render failure envelope — in-result isError tool errors (2026-07-23,
|
|
10
|
+
* BREAKING, pre-launch). Ruling B. A `ggui_render` that fails or is
|
|
11
|
+
* rejected is a `tools/call` RESULT carrying `isError: true` — never a
|
|
12
|
+
* thrown JSON-RPC error. Before this, failures returned a
|
|
13
|
+
* SUCCESS-shaped envelope: an accident of the 2026-05-14 codeReady
|
|
14
|
+
* byte-trim, not a design, which mounted error renders as blank divs
|
|
15
|
+
* and let render meters count failures as billable.
|
|
16
|
+
*
|
|
17
|
+
* rb1. Failures stay SCHEMA-CONFORMANT. MCP SDK clients validate
|
|
18
|
+
* `structuredContent` against `outputSchema` even when
|
|
19
|
+
* `isError` is set, so the failure envelope must satisfy
|
|
20
|
+
* `renderOutputSchema` — it is not a free-form error shape.
|
|
21
|
+
* SPEC §7.1 / §7.9 Plane 3.
|
|
22
|
+
* rb2. `renderOutputSchema` gains optional `error: {code, message}`,
|
|
23
|
+
* present iff `isError`. `code` is the closed enum
|
|
24
|
+
* `RenderErrorCode` = PRODUCTION_FAILED | VALIDATION_ERROR |
|
|
25
|
+
* NO_PLATFORM_KEY | NO_CREDENTIALS; `message` is agent-facing
|
|
26
|
+
* guidance, not a stack.
|
|
27
|
+
* rb3. `resourceUri` becomes OPTIONAL — present iff the render is
|
|
28
|
+
* mountable. A failure carries no resource, so consumers must
|
|
29
|
+
* stop assuming presence. `updateOutputSchema` was synced for
|
|
30
|
+
* the same stripped-field class.
|
|
31
|
+
* rb4. The phantom JSON-RPC error code -32004 (PRODUCTION_FAILED) is
|
|
32
|
+
* RETIRED from `MCP_ERROR_CODES`. It was never emitted; the
|
|
33
|
+
* in-result contract above replaces it.
|
|
34
|
+
* rb5. NO `_meta` on failures (nothing to project), and the error
|
|
35
|
+
* session still COMMITS — the handshakeId is consumed, so
|
|
36
|
+
* recovery is re-handshake, not retry.
|
|
37
|
+
*
|
|
38
|
+
* Conformance-kit verdict: minor-intent while `draft-`, so
|
|
39
|
+
* PROTOCOL_VERSION is unchanged and no migration doc is required (see
|
|
40
|
+
* docs/protocol/VERSION-POLICY.md). Recorded here because the wire
|
|
41
|
+
* shape changed even though the stamp did not.
|
|
42
|
+
*
|
|
43
|
+
* --------------------------------------------------------------------
|
|
9
44
|
* Consolidated cleanliness release (2026-06-12, BREAKING, pre-launch).
|
|
10
45
|
* Four strands from the 2026-06-12 cleanliness + orphan audits, every
|
|
11
46
|
* finding adversarially re-verified before action: the dv* entries
|
package/dist/version.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"version.d.ts","sourceRoot":"","sources":["../src/version.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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAm2EG;AACH,eAAO,MAAM,gBAAgB,qBAAqB,CAAC;AAEnD;;;;;;;;;;;;;;;;;;;GAmBG;AACH,eAAO,MAAM,uBAAuB,qBAAmB,CAAC;AAExD;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AACH,eAAO,MAAM,gBAAgB,qBAAqB,CAAC;AAEnD;;;;;;;;;;;;;;;;;;;GAmBG;AACH,eAAO,MAAM,yBAAyB,EAAE,SAAS,MAAM,EAErD,CAAC"}
|
package/dist/version.js
CHANGED
|
@@ -6,6 +6,41 @@
|
|
|
6
6
|
* schema change; the most recent change anchors {@link PROTOCOL_VERSION}.
|
|
7
7
|
*
|
|
8
8
|
* --------------------------------------------------------------------
|
|
9
|
+
* Render failure envelope — in-result isError tool errors (2026-07-23,
|
|
10
|
+
* BREAKING, pre-launch). Ruling B. A `ggui_render` that fails or is
|
|
11
|
+
* rejected is a `tools/call` RESULT carrying `isError: true` — never a
|
|
12
|
+
* thrown JSON-RPC error. Before this, failures returned a
|
|
13
|
+
* SUCCESS-shaped envelope: an accident of the 2026-05-14 codeReady
|
|
14
|
+
* byte-trim, not a design, which mounted error renders as blank divs
|
|
15
|
+
* and let render meters count failures as billable.
|
|
16
|
+
*
|
|
17
|
+
* rb1. Failures stay SCHEMA-CONFORMANT. MCP SDK clients validate
|
|
18
|
+
* `structuredContent` against `outputSchema` even when
|
|
19
|
+
* `isError` is set, so the failure envelope must satisfy
|
|
20
|
+
* `renderOutputSchema` — it is not a free-form error shape.
|
|
21
|
+
* SPEC §7.1 / §7.9 Plane 3.
|
|
22
|
+
* rb2. `renderOutputSchema` gains optional `error: {code, message}`,
|
|
23
|
+
* present iff `isError`. `code` is the closed enum
|
|
24
|
+
* `RenderErrorCode` = PRODUCTION_FAILED | VALIDATION_ERROR |
|
|
25
|
+
* NO_PLATFORM_KEY | NO_CREDENTIALS; `message` is agent-facing
|
|
26
|
+
* guidance, not a stack.
|
|
27
|
+
* rb3. `resourceUri` becomes OPTIONAL — present iff the render is
|
|
28
|
+
* mountable. A failure carries no resource, so consumers must
|
|
29
|
+
* stop assuming presence. `updateOutputSchema` was synced for
|
|
30
|
+
* the same stripped-field class.
|
|
31
|
+
* rb4. The phantom JSON-RPC error code -32004 (PRODUCTION_FAILED) is
|
|
32
|
+
* RETIRED from `MCP_ERROR_CODES`. It was never emitted; the
|
|
33
|
+
* in-result contract above replaces it.
|
|
34
|
+
* rb5. NO `_meta` on failures (nothing to project), and the error
|
|
35
|
+
* session still COMMITS — the handshakeId is consumed, so
|
|
36
|
+
* recovery is re-handshake, not retry.
|
|
37
|
+
*
|
|
38
|
+
* Conformance-kit verdict: minor-intent while `draft-`, so
|
|
39
|
+
* PROTOCOL_VERSION is unchanged and no migration doc is required (see
|
|
40
|
+
* docs/protocol/VERSION-POLICY.md). Recorded here because the wire
|
|
41
|
+
* shape changed even though the stamp did not.
|
|
42
|
+
*
|
|
43
|
+
* --------------------------------------------------------------------
|
|
9
44
|
* Consolidated cleanliness release (2026-06-12, BREAKING, pre-launch).
|
|
10
45
|
* Four strands from the 2026-06-12 cleanliness + orphan audits, every
|
|
11
46
|
* finding adversarially re-verified before action: the dv* entries
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ggui-ai/protocol",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.4.0-rc.0",
|
|
4
4
|
"description": "ggui protocol types — events, renders, WebSocket, MCP, LLM models",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"keywords": [
|
|
@@ -78,7 +78,7 @@
|
|
|
78
78
|
"devDependencies": {
|
|
79
79
|
"@types/node": "^22.0.0",
|
|
80
80
|
"typescript": "^5.0.0",
|
|
81
|
-
"vitest": "^2.
|
|
81
|
+
"vitest": "^3.2.6"
|
|
82
82
|
},
|
|
83
83
|
"repository": {
|
|
84
84
|
"type": "git",
|