@ggui-ai/protocol 0.6.3 → 0.8.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/errors/resource-read.d.ts +105 -0
- package/dist/errors/resource-read.d.ts.map +1 -0
- package/dist/errors/resource-read.js +107 -0
- package/dist/gadgets/resolve-app-gadgets.d.ts +12 -6
- package/dist/gadgets/resolve-app-gadgets.d.ts.map +1 -1
- package/dist/gadgets/resolve-app-gadgets.js +19 -8
- package/dist/gadgets/stdlib-gadgets.d.ts +1 -1
- package/dist/gadgets/stdlib-gadgets.js +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +3 -0
- package/dist/integrations/mcp-apps.d.ts +50 -4
- package/dist/integrations/mcp-apps.d.ts.map +1 -1
- package/dist/integrations/mcp-apps.js +44 -5
- package/dist/schemas/data-contract.d.ts +30 -22
- package/dist/schemas/data-contract.d.ts.map +1 -1
- package/dist/schemas/data-contract.js +35 -26
- package/dist/schemas/mcp.d.ts +62 -16
- package/dist/schemas/mcp.d.ts.map +1 -1
- package/dist/schemas/mcp.js +72 -12
- package/dist/transport/websocket.d.ts +2 -5
- package/dist/transport/websocket.d.ts.map +1 -1
- package/dist/types/data-contract.d.ts +6 -2
- package/dist/types/data-contract.d.ts.map +1 -1
- package/dist/types/live-channel.d.ts +14 -37
- package/dist/types/live-channel.d.ts.map +1 -1
- package/dist/types/mcp.d.ts +56 -25
- package/dist/types/mcp.d.ts.map +1 -1
- package/dist/types/mcp.js +19 -2
- package/dist/validation/hygiene-rules.d.ts +2 -2
- package/dist/validation/hygiene-rules.js +2 -2
- package/dist/version.d.ts +272 -0
- package/dist/version.d.ts.map +1 -1
- package/dist/version.js +272 -0
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"data-contract.d.ts","sourceRoot":"","sources":["../../src/schemas/data-contract.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;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;;;;;;;;;;;kBAK9B,CAAC;AAEZ;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4BG;AACH,eAAO,MAAM,gCAAgC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;kBAU1C,CAAC;AAQJ;;;;;;;;;;;;;;;;;GAiBG;AACH,eAAO,MAAM,qBAAqB;;;kBAKvB,CAAC;AAEZ;;;;;;;;;;;GAWG;AACH,eAAO,MAAM,sBAAsB;;;mBAa/B,CAAC;AAEL;;;;;;;;;;;;;;;GAeG;AACH,eAAO,MAAM,4BAA4B;;;;;kBAO9B,CAAC;AAEZ;;;;;;;;;;;;GAYG;AACH,eAAO,MAAM,kBAAkB,sDAElB,CAAC;AAEd;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4BG;AACH,eAAO,MAAM,kBAAkB,EAAE,CAAC,CAAC,OAAO,CAAC,YAAY,CASZ,CAAC"}
|
|
@@ -304,8 +304,10 @@ export const SEMVER_PIN_RE = /^\d+\.\d+\.\d+(-[\w.]+)?(\+[\w.]+)?$/;
|
|
|
304
304
|
/**
|
|
305
305
|
* Hostname-only regex for `bundleHost` — the registry hostname (no
|
|
306
306
|
* scheme, no path) that the server prepends `https://` to and
|
|
307
|
-
* appends the canonical
|
|
308
|
-
*
|
|
307
|
+
* appends the canonical
|
|
308
|
+
* `/bundles/public/<scope>/<name>/<version>/{bundle.js,style.css}`
|
|
309
|
+
* suffix to when resolving a gadget's URLs at render time (the PUBLIC
|
|
310
|
+
* prefix of the registry's visibility-split bundle layout).
|
|
309
311
|
*
|
|
310
312
|
* Examples that pass:
|
|
311
313
|
* - `registry.ggui.ai` (spec default)
|
|
@@ -498,7 +500,7 @@ export const gadgetDescriptorSchema = z
|
|
|
498
500
|
* Used by:
|
|
499
501
|
* - `createGguiGadget` SDK factory (validates wrapper specs).
|
|
500
502
|
* - `App.gadgets` registration handlers (ggui.json seed,
|
|
501
|
-
*
|
|
503
|
+
* `ggui gadget install`, config push).
|
|
502
504
|
*
|
|
503
505
|
* Same TS interface as the wire schema — the strictness lives in zod
|
|
504
506
|
* refinements, not the type system.
|
|
@@ -510,37 +512,44 @@ export const strictGadgetDescriptorSchema = z
|
|
|
510
512
|
})
|
|
511
513
|
.strict();
|
|
512
514
|
/**
|
|
513
|
-
*
|
|
514
|
-
*
|
|
515
|
-
*
|
|
516
|
-
*
|
|
517
|
-
*
|
|
518
|
-
*
|
|
519
|
-
*
|
|
520
|
-
*
|
|
521
|
-
*
|
|
522
|
-
*
|
|
523
|
-
*
|
|
524
|
-
*
|
|
525
|
-
*
|
|
526
|
-
*
|
|
527
|
-
*
|
|
528
|
-
*
|
|
529
|
-
*
|
|
515
|
+
* Types-pipeline descriptor validator — PARKED (2026-08-09 gadget
|
|
516
|
+
* catalog foundations): no catalog-serving boundary consumes it.
|
|
517
|
+
* {@link strictGadgetDescriptorSchema} plus the refinement that every
|
|
518
|
+
* non-stdlib package MUST carry a `typesUrl`.
|
|
519
|
+
*
|
|
520
|
+
* Every live catalog boundary — descriptor writes, catalog reads, and
|
|
521
|
+
* the generation-time catalog adapter — validates with
|
|
522
|
+
* `strictGadgetDescriptorSchema`, where `typesUrl` is optional:
|
|
523
|
+
* nothing in the publish→install chain stamps `typesUrl` yet, and the
|
|
524
|
+
* types fetcher already skips descriptors without one, so generation
|
|
525
|
+
* degrades gracefully to no-types codegen.
|
|
526
|
+
*
|
|
527
|
+
* The one surviving consumer is the wrapper-author build helper
|
|
528
|
+
* (`writeDescriptorJson` in `@ggui-ai/gadgets/codegen`) — the
|
|
529
|
+
* authoring-side front half of the types pipeline, where the wrapper
|
|
530
|
+
* build HAS just emitted a `.d.ts` and stamped `typesUrl` +
|
|
531
|
+
* `typesSri`, so requiring them is coherent there.
|
|
532
|
+
*
|
|
533
|
+
* The export stays because it is the already-written contract for the
|
|
534
|
+
* types-pipeline follow-up: publish stamps `typesUrl` + `typesSri` on
|
|
535
|
+
* the descriptor after the build emits the `.d.ts`, descriptor
|
|
536
|
+
* projections carry both fields through, and the generation-time
|
|
537
|
+
* catalog adapter adopts this schema as its posture again — the
|
|
538
|
+
* code-gen sandbox then loads the `.d.ts` the URL points at to
|
|
530
539
|
* typecheck generated component code against the package's real
|
|
531
540
|
* export signatures. Stdlib (`@ggui-ai/gadgets`) is exempt — the
|
|
532
|
-
* sandbox loads its types directly.
|
|
533
|
-
* pre-launch posture forces strict typing across the board.
|
|
541
|
+
* sandbox loads its types directly.
|
|
534
542
|
*/
|
|
535
543
|
export const registeredGadgetDescriptorSchema = strictGadgetDescriptorSchema.refine((entry) => entry.package === STDLIB_GADGETS_PACKAGE ||
|
|
536
544
|
typeof entry.typesUrl === 'string', {
|
|
537
545
|
message: 'registered GadgetDescriptor MUST declare a `typesUrl` (HTTPS URL to the package\'s .d.ts) — the code-gen sandbox loads it to typecheck generated component code against the export signatures. Run `tsup --dts` (or `tsc --declaration`) in the wrapper build and publish the emitted .d.ts. Only the first-party `@ggui-ai/gadgets` stdlib is exempt.',
|
|
538
546
|
path: ['typesUrl'],
|
|
539
547
|
});
|
|
540
|
-
// `package` + `version` are required on every descriptor
|
|
541
|
-
//
|
|
542
|
-
//
|
|
543
|
-
//
|
|
548
|
+
// `package` + `version` are required on every descriptor —
|
|
549
|
+
// `(package, version)` is the registry's frozen identity tuple; the
|
|
550
|
+
// wire references packages by name only — so there is no "at least
|
|
551
|
+
// one of package / bundleUrl / bundleHost" refinement and no
|
|
552
|
+
// "bundleHost requires package + version" refinement.
|
|
544
553
|
/**
|
|
545
554
|
* Wire-side per-export USE entry on `clientCapabilities.gadgets`.
|
|
546
555
|
*
|
package/dist/schemas/mcp.d.ts
CHANGED
|
@@ -7,12 +7,12 @@
|
|
|
7
7
|
* Two consumption patterns, both anchored here:
|
|
8
8
|
*
|
|
9
9
|
* - **Wired raw shapes** (`*InputShape`): handlers in
|
|
10
|
-
* `@ggui-ai/mcp-server-handlers` (and the hosted pod's
|
|
11
|
-
*
|
|
12
|
-
*
|
|
13
|
-
*
|
|
14
|
-
*
|
|
15
|
-
*
|
|
10
|
+
* `@ggui-ai/mcp-server-handlers` (and the hosted pod's discover
|
|
11
|
+
* tool) import the SHAPE directly as their `inputSchema` and
|
|
12
|
+
* validate with `z.object(shape)` — unknown keys are STRIPPED.
|
|
13
|
+
* The shape is the one authored copy of the validation rules AND
|
|
14
|
+
* the agent-facing `.describe()` strings that ship via
|
|
15
|
+
* `tools/list`.
|
|
16
16
|
*
|
|
17
17
|
* - **Lifecycle triad** (`ggui_handshake` / `ggui_update`): the
|
|
18
18
|
* handlers carry deliberate input divergences (handshake's
|
|
@@ -107,10 +107,14 @@ export declare const listFeaturedBlueprintsInputSchema: z.ZodObject<{}, z.core.$
|
|
|
107
107
|
export declare const searchBlueprintsInputShape: {
|
|
108
108
|
readonly query: z.ZodString;
|
|
109
109
|
readonly limit: z.ZodOptional<z.ZodNumber>;
|
|
110
|
+
readonly tool: z.ZodOptional<z.ZodString>;
|
|
111
|
+
readonly server: z.ZodOptional<z.ZodString>;
|
|
110
112
|
};
|
|
111
113
|
export declare const searchBlueprintsInputSchema: z.ZodObject<{
|
|
112
114
|
query: z.ZodString;
|
|
113
115
|
limit: z.ZodOptional<z.ZodNumber>;
|
|
116
|
+
tool: z.ZodOptional<z.ZodString>;
|
|
117
|
+
server: z.ZodOptional<z.ZodString>;
|
|
114
118
|
}, z.core.$strip>;
|
|
115
119
|
export declare const renderBlueprintInputShape: {
|
|
116
120
|
readonly blueprintId: z.ZodString;
|
|
@@ -120,16 +124,6 @@ export declare const renderBlueprintInputSchema: z.ZodObject<{
|
|
|
120
124
|
}, z.core.$strip>;
|
|
121
125
|
export declare const discoverInputShape: {};
|
|
122
126
|
export declare const discoverInputSchema: z.ZodObject<{}, z.core.$strip>;
|
|
123
|
-
export declare const requestCredentialInputShape: {
|
|
124
|
-
readonly serviceId: z.ZodString;
|
|
125
|
-
readonly reason: z.ZodOptional<z.ZodString>;
|
|
126
|
-
readonly sessionId: z.ZodOptional<z.ZodString>;
|
|
127
|
-
};
|
|
128
|
-
export declare const requestCredentialInputSchema: z.ZodObject<{
|
|
129
|
-
serviceId: z.ZodString;
|
|
130
|
-
reason: z.ZodOptional<z.ZodString>;
|
|
131
|
-
sessionId: z.ZodOptional<z.ZodString>;
|
|
132
|
-
}, z.core.$strip>;
|
|
133
127
|
/**
|
|
134
128
|
* `ggui_handshake` — three-step suggestion protocol.
|
|
135
129
|
*
|
|
@@ -356,6 +350,58 @@ export declare const renderErrorSchema: z.ZodObject<{
|
|
|
356
350
|
}>;
|
|
357
351
|
message: z.ZodString;
|
|
358
352
|
}, z.core.$strip>;
|
|
353
|
+
/**
|
|
354
|
+
* Canonical failure codes for a `resources/read` on a render locator
|
|
355
|
+
* (`ui://ggui/render/{sessionId}/{blueprintKey}`). Closed enum.
|
|
356
|
+
*
|
|
357
|
+
* This is a DIFFERENT surface from {@link renderErrorCodeSchema}: that
|
|
358
|
+
* one classifies a `ggui_render` tool call that ran and failed, and
|
|
359
|
+
* rides in the tool result. This one classifies a resource read that
|
|
360
|
+
* cannot return a mount, and rides on a JSON-RPC error — a read either
|
|
361
|
+
* yields a live mount or fails, never a successful result wrapping a
|
|
362
|
+
* dead shell. That is what makes the contract host-checkable.
|
|
363
|
+
*
|
|
364
|
+
* - `NOT_FOUND` — no live render and no restorable record. The
|
|
365
|
+
* locator never existed, aged out, was erased, or the caller may
|
|
366
|
+
* not read it. Denial is deliberately reported as absence: a
|
|
367
|
+
* distinguishable "denied" would turn the read into an oracle for
|
|
368
|
+
* the existence of other callers' renders.
|
|
369
|
+
* - `BLUEPRINT_UNRESOLVABLE` — a record exists, but the component
|
|
370
|
+
* behind it cannot be resolved: removed, taken down, or the record
|
|
371
|
+
* carries no component reference at all.
|
|
372
|
+
* - `NOT_SUPPORTED` — this deployment keeps no durable record, so an
|
|
373
|
+
* evicted locator can never be restored. A property of the server,
|
|
374
|
+
* identical for every caller and every locator.
|
|
375
|
+
* - `NOT_MOUNTABLE` — the render resolved, but no delivery channel is
|
|
376
|
+
* available to mount it.
|
|
377
|
+
*/
|
|
378
|
+
export declare const resourceReadErrorCodeSchema: z.ZodEnum<{
|
|
379
|
+
NOT_FOUND: "NOT_FOUND";
|
|
380
|
+
BLUEPRINT_UNRESOLVABLE: "BLUEPRINT_UNRESOLVABLE";
|
|
381
|
+
NOT_SUPPORTED: "NOT_SUPPORTED";
|
|
382
|
+
NOT_MOUNTABLE: "NOT_MOUNTABLE";
|
|
383
|
+
}>;
|
|
384
|
+
/**
|
|
385
|
+
* Failure shape for a `resources/read` that cannot return a mount.
|
|
386
|
+
* Projected onto a JSON-RPC error by `resourceReadErrorToJsonRpc` —
|
|
387
|
+
* `code` lands on `error.data.code`, so hosts can branch on the
|
|
388
|
+
* classification without parsing prose.
|
|
389
|
+
*
|
|
390
|
+
* `message` is caller-facing and `detail` is operator-facing. NEITHER
|
|
391
|
+
* is preserved on `NOT_FOUND`: the mapper substitutes a constant there
|
|
392
|
+
* so a denied read and a genuine miss are byte-identical on the wire.
|
|
393
|
+
* Put diagnostics for that case in the server's own logs.
|
|
394
|
+
*/
|
|
395
|
+
export declare const resourceReadErrorSchema: z.ZodObject<{
|
|
396
|
+
code: z.ZodEnum<{
|
|
397
|
+
NOT_FOUND: "NOT_FOUND";
|
|
398
|
+
BLUEPRINT_UNRESOLVABLE: "BLUEPRINT_UNRESOLVABLE";
|
|
399
|
+
NOT_SUPPORTED: "NOT_SUPPORTED";
|
|
400
|
+
NOT_MOUNTABLE: "NOT_MOUNTABLE";
|
|
401
|
+
}>;
|
|
402
|
+
message: z.ZodString;
|
|
403
|
+
detail: z.ZodOptional<z.ZodString>;
|
|
404
|
+
}, z.core.$strip>;
|
|
359
405
|
/**
|
|
360
406
|
* Wire-output shape — `{sessionId, resourceUri?, action, contractHash,
|
|
361
407
|
* cache, error?, nextStep?}`. `contractHash` (data-contract identity)
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"mcp.d.ts","sourceRoot":"","sources":["../../src/schemas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;;;;;;;;;;;;;;;;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
|
@@ -7,12 +7,12 @@
|
|
|
7
7
|
* Two consumption patterns, both anchored here:
|
|
8
8
|
*
|
|
9
9
|
* - **Wired raw shapes** (`*InputShape`): handlers in
|
|
10
|
-
* `@ggui-ai/mcp-server-handlers` (and the hosted pod's
|
|
11
|
-
*
|
|
12
|
-
*
|
|
13
|
-
*
|
|
14
|
-
*
|
|
15
|
-
*
|
|
10
|
+
* `@ggui-ai/mcp-server-handlers` (and the hosted pod's discover
|
|
11
|
+
* tool) import the SHAPE directly as their `inputSchema` and
|
|
12
|
+
* validate with `z.object(shape)` — unknown keys are STRIPPED.
|
|
13
|
+
* The shape is the one authored copy of the validation rules AND
|
|
14
|
+
* the agent-facing `.describe()` strings that ship via
|
|
15
|
+
* `tools/list`.
|
|
16
16
|
*
|
|
17
17
|
* - **Lifecycle triad** (`ggui_handshake` / `ggui_update`): the
|
|
18
18
|
* handlers carry deliberate input divergences (handshake's
|
|
@@ -104,6 +104,20 @@ export const searchBlueprintsInputShape = {
|
|
|
104
104
|
.min(1)
|
|
105
105
|
.describe("Natural-language description of the UI you're looking for"),
|
|
106
106
|
limit: z.number().int().min(1).max(100).optional(),
|
|
107
|
+
// Charset mirrors `MCP_TOOL_BINDING_NAME_RE` in
|
|
108
|
+
// `@ggui-ai/artifact-manifest` (src/mcp-tool-bindings.ts). Inlined:
|
|
109
|
+
// protocol cannot import artifact-manifest — the dependency points
|
|
110
|
+
// the other way.
|
|
111
|
+
tool: z
|
|
112
|
+
.string()
|
|
113
|
+
.regex(/^[A-Za-z0-9_.-]{1,128}$/)
|
|
114
|
+
.optional()
|
|
115
|
+
.describe("Filter registry-sourced candidates to artifacts declaring a binding for this exact MCP tool name (case-sensitive). Local results are unaffected."),
|
|
116
|
+
server: z
|
|
117
|
+
.string()
|
|
118
|
+
.regex(/^[A-Za-z0-9_.-]{1,128}$/)
|
|
119
|
+
.optional()
|
|
120
|
+
.describe("Filter registry-sourced candidates to artifacts declaring a binding for this exact MCP server name (case-sensitive). Combine with `tool` to require the exact (server, tool) pair."),
|
|
107
121
|
};
|
|
108
122
|
export const searchBlueprintsInputSchema = z.object(searchBlueprintsInputShape);
|
|
109
123
|
export const renderBlueprintInputShape = {
|
|
@@ -115,12 +129,6 @@ export const renderBlueprintInputShape = {
|
|
|
115
129
|
export const renderBlueprintInputSchema = z.object(renderBlueprintInputShape);
|
|
116
130
|
export const discoverInputShape = {};
|
|
117
131
|
export const discoverInputSchema = z.object(discoverInputShape);
|
|
118
|
-
export const requestCredentialInputShape = {
|
|
119
|
-
serviceId: z.string().min(1),
|
|
120
|
-
reason: z.string().optional(),
|
|
121
|
-
sessionId: z.string().optional(),
|
|
122
|
-
};
|
|
123
|
-
export const requestCredentialInputSchema = z.object(requestCredentialInputShape);
|
|
124
132
|
// ── Post-Phase-B — canonical tool triad ──
|
|
125
133
|
//
|
|
126
134
|
// `ggui_handshake` → `ggui_render` → `ggui_update` / `ggui_consume`.
|
|
@@ -414,6 +422,58 @@ export const renderErrorSchema = z.object({
|
|
|
414
422
|
.string()
|
|
415
423
|
.describe('Human-readable failure detail — fold into the next attempt or surface to the operator.'),
|
|
416
424
|
});
|
|
425
|
+
/**
|
|
426
|
+
* Canonical failure codes for a `resources/read` on a render locator
|
|
427
|
+
* (`ui://ggui/render/{sessionId}/{blueprintKey}`). Closed enum.
|
|
428
|
+
*
|
|
429
|
+
* This is a DIFFERENT surface from {@link renderErrorCodeSchema}: that
|
|
430
|
+
* one classifies a `ggui_render` tool call that ran and failed, and
|
|
431
|
+
* rides in the tool result. This one classifies a resource read that
|
|
432
|
+
* cannot return a mount, and rides on a JSON-RPC error — a read either
|
|
433
|
+
* yields a live mount or fails, never a successful result wrapping a
|
|
434
|
+
* dead shell. That is what makes the contract host-checkable.
|
|
435
|
+
*
|
|
436
|
+
* - `NOT_FOUND` — no live render and no restorable record. The
|
|
437
|
+
* locator never existed, aged out, was erased, or the caller may
|
|
438
|
+
* not read it. Denial is deliberately reported as absence: a
|
|
439
|
+
* distinguishable "denied" would turn the read into an oracle for
|
|
440
|
+
* the existence of other callers' renders.
|
|
441
|
+
* - `BLUEPRINT_UNRESOLVABLE` — a record exists, but the component
|
|
442
|
+
* behind it cannot be resolved: removed, taken down, or the record
|
|
443
|
+
* carries no component reference at all.
|
|
444
|
+
* - `NOT_SUPPORTED` — this deployment keeps no durable record, so an
|
|
445
|
+
* evicted locator can never be restored. A property of the server,
|
|
446
|
+
* identical for every caller and every locator.
|
|
447
|
+
* - `NOT_MOUNTABLE` — the render resolved, but no delivery channel is
|
|
448
|
+
* available to mount it.
|
|
449
|
+
*/
|
|
450
|
+
export const resourceReadErrorCodeSchema = z.enum([
|
|
451
|
+
'NOT_FOUND',
|
|
452
|
+
'BLUEPRINT_UNRESOLVABLE',
|
|
453
|
+
'NOT_SUPPORTED',
|
|
454
|
+
'NOT_MOUNTABLE',
|
|
455
|
+
]);
|
|
456
|
+
/**
|
|
457
|
+
* Failure shape for a `resources/read` that cannot return a mount.
|
|
458
|
+
* Projected onto a JSON-RPC error by `resourceReadErrorToJsonRpc` —
|
|
459
|
+
* `code` lands on `error.data.code`, so hosts can branch on the
|
|
460
|
+
* classification without parsing prose.
|
|
461
|
+
*
|
|
462
|
+
* `message` is caller-facing and `detail` is operator-facing. NEITHER
|
|
463
|
+
* is preserved on `NOT_FOUND`: the mapper substitutes a constant there
|
|
464
|
+
* so a denied read and a genuine miss are byte-identical on the wire.
|
|
465
|
+
* Put diagnostics for that case in the server's own logs.
|
|
466
|
+
*/
|
|
467
|
+
export const resourceReadErrorSchema = z.object({
|
|
468
|
+
code: resourceReadErrorCodeSchema.describe('Canonical failure class. NOT_FOUND: no live render and no restorable record (also the response when the caller may not read this locator). BLUEPRINT_UNRESOLVABLE: a record exists but the component behind it is gone. NOT_SUPPORTED: this server keeps no durable record, so an evicted locator can never be restored. NOT_MOUNTABLE: the render resolved but no delivery channel is available.'),
|
|
469
|
+
message: z
|
|
470
|
+
.string()
|
|
471
|
+
.describe('Human-readable failure detail. Replaced by a constant on NOT_FOUND.'),
|
|
472
|
+
detail: z
|
|
473
|
+
.string()
|
|
474
|
+
.optional()
|
|
475
|
+
.describe('Extra diagnostic context for operators. Dropped on NOT_FOUND so a denied read cannot be told apart from a miss.'),
|
|
476
|
+
});
|
|
417
477
|
/**
|
|
418
478
|
* Wire-output shape — `{sessionId, resourceUri?, action, contractHash,
|
|
419
479
|
* cache, error?, nextStep?}`. `contractHash` (data-contract identity)
|
|
@@ -22,14 +22,14 @@
|
|
|
22
22
|
*/
|
|
23
23
|
import type { ActionEnvelope } from '../types/events';
|
|
24
24
|
import type { JsonObject } from '../types/data-contract';
|
|
25
|
-
import type { SubscribePayload, AckPayload, ErrorPayload, RenderPayload, StreamEnvelope, PropsUpdatePayload,
|
|
25
|
+
import type { SubscribePayload, AckPayload, ErrorPayload, RenderPayload, StreamEnvelope, PropsUpdatePayload, ChannelSubscribePayload, ChannelUnsubscribePayload, ChannelPayloadFrame, ChannelErrorPayload, DrainAckPayload } from '../types/live-channel';
|
|
26
26
|
import type { HostContextObservedPayload } from '../types/host-context';
|
|
27
27
|
import type { GguiSessionEvent } from '../types/ggui-session-event';
|
|
28
28
|
/**
|
|
29
29
|
* WebSocket message types for client-server communication.
|
|
30
30
|
* Each type maps to a specific payload shape in the {@link WebSocketMessage} discriminated union.
|
|
31
31
|
*/
|
|
32
|
-
export type WebSocketMessageType = 'action' | 'subscribe' | 'ping' | 'pong' | 'ack' | 'error' | 'render' | 'data' | 'props_update' | '
|
|
32
|
+
export type WebSocketMessageType = 'action' | 'subscribe' | 'ping' | 'pong' | 'ack' | 'error' | 'render' | 'data' | 'props_update' | 'channel_subscribe' | 'channel_unsubscribe' | 'channel_payload' | 'channel_error' | 'drain_ack' | 'host_context_observed' | 'render_event';
|
|
33
33
|
/** Fields shared by all WebSocket message variants. */
|
|
34
34
|
interface WsMessageBase {
|
|
35
35
|
requestId?: string;
|
|
@@ -88,9 +88,6 @@ export type WebSocketMessage = (WsMessageBase & {
|
|
|
88
88
|
}) | (WsMessageBase & {
|
|
89
89
|
type: 'props_update';
|
|
90
90
|
payload: PropsUpdatePayload;
|
|
91
|
-
}) | (WsMessageBase & {
|
|
92
|
-
type: 'system';
|
|
93
|
-
payload: SystemPayload;
|
|
94
91
|
}) | (WsMessageBase & {
|
|
95
92
|
type: 'channel_subscribe';
|
|
96
93
|
payload: ChannelSubscribePayload;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"websocket.d.ts","sourceRoot":"","sources":["../../src/transport/websocket.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAC;AACtD,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,wBAAwB,CAAC;AACzD,OAAO,KAAK,EACV,gBAAgB,EAChB,UAAU,EACV,YAAY,EACZ,aAAa,EACb,cAAc,EACd,kBAAkB,EAClB,
|
|
1
|
+
{"version":3,"file":"websocket.d.ts","sourceRoot":"","sources":["../../src/transport/websocket.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAC;AACtD,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,wBAAwB,CAAC;AACzD,OAAO,KAAK,EACV,gBAAgB,EAChB,UAAU,EACV,YAAY,EACZ,aAAa,EACb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AAE,IAAI,EAAE,QAAQ,CAAC;IAAC,OAAO,EAAE,aAAa,CAAA;CAAE,CAAC,GAC5D,CAAC,aAAa,GAAG;IAAE,IAAI,EAAE,MAAM,CAAC;IAAC,OAAO,EAAE,cAAc,CAAA;CAAE,CAAC,GAC3D,CAAC,aAAa,GAAG;IAAE,IAAI,EAAE,cAAc,CAAC;IAAC,OAAO,EAAE,kBAAkB,CAAA;CAAE,CAAC,GAEvE,CAAC,aAAa,GAAG;IAAE,IAAI,EAAE,mBAAmB,CAAC;IAAC,OAAO,EAAE,uBAAuB,CAAA;CAAE,CAAC,GACjF,CAAC,aAAa,GAAG;IAAE,IAAI,EAAE,qBAAqB,CAAC;IAAC,OAAO,EAAE,yBAAyB,CAAA;CAAE,CAAC,GACrF,CAAC,aAAa,GAAG;IAAE,IAAI,EAAE,iBAAiB,CAAC;IAAC,OAAO,EAAE,mBAAmB,CAAA;CAAE,CAAC,GAC3E,CAAC,aAAa,GAAG;IAAE,IAAI,EAAE,eAAe,CAAC;IAAC,OAAO,EAAE,mBAAmB,CAAA;CAAE,CAAC,GAEzE,CAAC,aAAa,GAAG;IAAE,IAAI,EAAE,WAAW,CAAC;IAAC,OAAO,EAAE,eAAe,CAAA;CAAE,CAAC,GAKjE,CAAC,aAAa,GAAG;IAAE,IAAI,EAAE,uBAAuB,CAAC;IAAC,OAAO,EAAE,0BAA0B,CAAA;CAAE,CAAC,GAQxF,CAAC,aAAa,GAAG;IAAE,IAAI,EAAE,cAAc,CAAC;IAAC,OAAO,EAAE,gBAAgB,CAAA;CAAE,CAAC,CAAC;AAE1E;;;GAGG;AACH,MAAM,MAAM,gBAAgB,GAAG,YAAY,GAAG,WAAW,GAAG,cAAc,GAAG,cAAc,CAAC"}
|
|
@@ -619,8 +619,12 @@ export interface GadgetDescriptor {
|
|
|
619
619
|
* Registry hostname (no scheme, no path) the server uses to resolve
|
|
620
620
|
* `bundleUrl` + `styleUrl` at render time:
|
|
621
621
|
*
|
|
622
|
-
* `https://<bundleHost>/bundles/<scope>/<name>/<version>/bundle.js`
|
|
623
|
-
* `https://<bundleHost>/bundles/<scope>/<name>/<version>/style.css`
|
|
622
|
+
* `https://<bundleHost>/bundles/public/<scope>/<name>/<version>/bundle.js`
|
|
623
|
+
* `https://<bundleHost>/bundles/public/<scope>/<name>/<version>/style.css`
|
|
624
|
+
*
|
|
625
|
+
* (the PUBLIC prefix of the registry's visibility-split bundle
|
|
626
|
+
* layout — host composition serves the anonymous render-time fetch;
|
|
627
|
+
* private artifacts always arrive as explicit `bundleUrl` values)
|
|
624
628
|
*
|
|
625
629
|
* Resolution order (operator wins over author wins over spec default):
|
|
626
630
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"data-contract.d.ts","sourceRoot":"","sources":["../../src/types/data-contract.ts"],"names":[],"mappings":"AAwCA;;;;;;;;;GASG;AACH,MAAM,WAAW,UAAU;IACzB,CAAC,GAAG,EAAE,MAAM,GAAG,SAAS,GAAG,SAAS,CAAC;CACtC;AAED;;;;;;;;;GASG;AACH,MAAM,MAAM,SAAS,GACjB,MAAM,GACN,MAAM,GACN,OAAO,GACP,IAAI,GACJ,SAAS,EAAE,GACX,UAAU,CAAC;AAMf;;;;;;;;GAQG;AACH,MAAM,WAAW,UAAW,SAAQ,UAAU;IAC5C,oEAAoE;IACpE,IAAI,CAAC,EAAE,QAAQ,GAAG,QAAQ,GAAG,SAAS,GAAG,SAAS,GAAG,OAAO,GAAG,QAAQ,GAAG,MAAM,CAAC;IACjF,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,uCAAuC;IACvC,IAAI,CAAC,EAAE,SAAS,EAAE,CAAC;IACnB,oBAAoB;IACpB,OAAO,CAAC,EAAE,SAAS,CAAC;IACpB,2DAA2D;IAC3D,OAAO,CAAC,EAAE,SAAS,CAAC;IACpB,uDAAuD;IACvD,KAAK,CAAC,EAAE,UAAU,CAAC;IACnB,gDAAgD;IAChD,UAAU,CAAC,EAAE,MAAM,CAAC,MAAM,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M,WAAW,qBAAsB,SAAQ,gBAAgB;IAC7D;;;;OAIG;IACH,SAAS,EAAE,MAAM,CAAC;IAClB;;;;;OAKG;IACH,IAAI,CAAC,EAAE,KAAK,CAAC;CACd;AAED;;;;;;GAMG;AACH,MAAM,MAAM,YAAY,GAAG,gBAAgB,GAAG,qBAAqB,CAAC;AAEpE;;;;;;;;;;;;;;;;;;GAkBG;AACH,MAAM,WAAW,eAAe;IAC9B;;;;OAIG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB;;;OAGG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAED;;;;;;;;;;GAUG;AACH,MAAM,MAAM,gBAAgB,GAAG,MAAM,CAAC,MAAM,EAAE,eAAe,CAAC,CAAC;AAE/D;;;;;;;;GAQG;AACH,MAAM,WAAW,SAAS;IACxB,mEAAmE;IACnE,OAAO,EAAE,MAAM,CAAC;IAChB,iEAAiE;IACjE,IAAI,EAAE,MAAM,CAAC;IACb,uEAAuE;IACvE,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,iEAAiE;IACjE,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6BG;AACH,MAAM,WAAW,gBAAgB;IAC/B;;;;;;OAMG;IACH,OAAO,EAAE,YAAY,EAAE,CAAC;IACxB;;;;;;;;;;OAUG;IACH,OAAO,EAAE,MAAM,CAAC;IAChB;;;;;;;;;;;OAWG;IACH,OAAO,EAAE,MAAM,CAAC;IAChB;;;;;;;;;;;;;;;OAeG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB
|
|
1
|
+
{"version":3,"file":"data-contract.d.ts","sourceRoot":"","sources":["../../src/types/data-contract.ts"],"names":[],"mappings":"AAwCA;;;;;;;;;GASG;AACH,MAAM,WAAW,UAAU;IACzB,CAAC,GAAG,EAAE,MAAM,GAAG,SAAS,GAAG,SAAS,CAAC;CACtC;AAED;;;;;;;;;GASG;AACH,MAAM,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OAGG;IACH,OAAO,CAAC,EAAE,SAAS,CAAC;CACrB;AAED;iBACiB;AACjB,eAAO,MAAM,2BAA2B,MAAM,CAAC;AAE/C;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AACH,MAAM,MAAM,WAAW,GAAG,MAAM,CAAC,MAAM,EAAE,YAAY,CAAC,CAAC;AAEvD;;;;;;;;;;;;;;;;;;;;;;GAsBG;AACH,wBAAgB,oBAAoB,CAAC,KAAK,EAAE,YAAY,GAAG,SAAS,GAAG,SAAS,CAa/E;AAMD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAoEG;AACH,MAAM,WAAW,YAAY;IAC3B;;;;;;;;;;;;OAYG;IACH;;;;;;OAMG;IACH,SAAS,CAAC,EAAE,SAAS,CAAC;IACtB;;;;;;;;;;;;;;;;OAgBG;IACH,UAAU,CAAC,EAAE,UAAU,CAAC;IACxB;;;OAGG;IACH,UAAU,CAAC,EAAE,UAAU,CAAC;IACxB;;;;;;;OAOG;IACH,WAAW,CAAC,EAAE,WAAW,CAAC;IAC1B,sEAAsE;IACtE,iBAAiB,CAAC,EAAE,qBAAqB,CAAC;IAC1C;;;;;;;;;;;OAWG;IACH,kBAAkB,CAAC,EAAE,sBAAsB,CAAC;CAC7C;AAMD;;;;;;GAMG;AACH,eAAO,MAAM,4BAA4B,QAAY,CAAC;AAEtD;;;;GAIG;AACH,eAAO,MAAM,0BAA0B,QAAY,CAAC;AAEpD;;;GAGG;AACH,eAAO,MAAM,0BAA0B,KAAK,CAAC"}
|
|
@@ -53,9 +53,10 @@ export interface SubscribePayload {
|
|
|
53
53
|
* the last envelope the client observed.
|
|
54
54
|
*
|
|
55
55
|
* Honored only by implementations that expose
|
|
56
|
-
* `GguiSessionStreamBuffer`-backed replay.
|
|
57
|
-
*
|
|
58
|
-
*
|
|
56
|
+
* `GguiSessionStreamBuffer`-backed replay. Both first-party
|
|
57
|
+
* deployments do: OSS `@ggui-ai/mcp-server` (in-memory buffer) and
|
|
58
|
+
* hosted cloud (Redis-backed buffer). A deployment that binds no
|
|
59
|
+
* buffer silently ignores the field.
|
|
59
60
|
*/
|
|
60
61
|
fromSeq?: number;
|
|
61
62
|
/**
|
|
@@ -276,11 +277,16 @@ export interface StreamEnvelope {
|
|
|
276
277
|
* `SubscribePayload.fromSeq`);
|
|
277
278
|
* - dedupe deliveries (at-least-once semantics).
|
|
278
279
|
*
|
|
279
|
-
* OPTIONAL because
|
|
280
|
-
*
|
|
281
|
-
*
|
|
282
|
-
*
|
|
283
|
-
*
|
|
280
|
+
* OPTIONAL because stamping is best-effort on two levels: the buffer
|
|
281
|
+
* seam itself is optional, and even a bound buffer only stamps on
|
|
282
|
+
* success. Any implementation backed by a `GguiSessionStreamBuffer`
|
|
283
|
+
* — OSS `@ggui-ai/mcp-server` (in-memory) and hosted cloud
|
|
284
|
+
* (Redis-backed) alike — stamps `seq` on every successfully
|
|
285
|
+
* buffered delivery through the same record-then-broadcast path,
|
|
286
|
+
* but a delivery whose buffer record fails degrades to unstamped
|
|
287
|
+
* rather than blocking the emit. A deployment that binds no buffer
|
|
288
|
+
* at all emits every delivery without `seq`. Clients treat any
|
|
289
|
+
* unstamped delivery as single-shot with no replay possible.
|
|
284
290
|
*/
|
|
285
291
|
seq?: number;
|
|
286
292
|
/**
|
|
@@ -426,35 +432,6 @@ export interface PropsUpdatePayload {
|
|
|
426
432
|
/** New props — full replacement */
|
|
427
433
|
props: JsonObject;
|
|
428
434
|
}
|
|
429
|
-
/**
|
|
430
|
-
* System-level event actions sent from platform to client.
|
|
431
|
-
*
|
|
432
|
-
* - `auth_required` — Agent needs user to authorize an OAuth service.
|
|
433
|
-
* - `credential_ready` — User completed OAuth; credential is available.
|
|
434
|
-
*/
|
|
435
|
-
export type SystemAction = 'auth_required' | 'credential_ready';
|
|
436
|
-
/**
|
|
437
|
-
* Payload for system message (Server → Client).
|
|
438
|
-
* Carries platform-level events such as OAuth consent requests.
|
|
439
|
-
*/
|
|
440
|
-
export interface SystemPayload {
|
|
441
|
-
action: SystemAction;
|
|
442
|
-
serviceId: string;
|
|
443
|
-
/** Human-readable service name (e.g., "Google", "Slack") */
|
|
444
|
-
displayName?: string;
|
|
445
|
-
/** OAuth scopes the agent is requesting */
|
|
446
|
-
scopes?: string[];
|
|
447
|
-
/** URL the user should open to initiate the OAuth consent flow */
|
|
448
|
-
consentUrl?: string;
|
|
449
|
-
/** Human-readable message explaining why access is needed */
|
|
450
|
-
message?: string;
|
|
451
|
-
/** Status of the credential (used with credential_ready) */
|
|
452
|
-
status?: string;
|
|
453
|
-
/** App ID requesting access (used with auth_required for app-scoped grants) */
|
|
454
|
-
appId?: string;
|
|
455
|
-
/** GguiSession ID for WebSocket context (used with auth_required) */
|
|
456
|
-
sessionId?: string;
|
|
457
|
-
}
|
|
458
435
|
/**
|
|
459
436
|
* Payload for `drain_ack` (Server → Client). Sent by `ggui_consume` after
|
|
460
437
|
* it pops an `ActionEnvelope` off a render's pending-events pipe, so
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"live-channel.d.ts","sourceRoot":"","sources":["../../src/types/live-channel.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AACH,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,UAAU,CAAC;AAC5C,OAAO,KAAK,EACV,UAAU,EACV,SAAS,EACT,iBAAiB,EAClB,MAAM,iBAAiB,CAAC;AAEzB;;GAEG;AACH,MAAM,WAAW,gBAAgB;IAC/B,SAAS,EAAE,MAAM,CAAC;IAClB;;;;;;;;;;OAUG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,sEAAsE;IACtE,IAAI,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC;IACxB
|
|
1
|
+
{"version":3,"file":"live-channel.d.ts","sourceRoot":"","sources":["../../src/types/live-channel.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AACH,OAAO,KAAK,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