@openclaw/gateway-protocol 2026.9.4 → 2026.9.5
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/client-info.d.mts +2 -0
- package/dist/client-info.mjs +2 -0
- package/dist/frame-guards.d.mts +2 -2
- package/dist/frame-guards.mjs +2 -1
- package/dist/{frames-B3ABtpZk.d.mts → frames-X2k-UkK8.d.mts} +40 -1
- package/dist/gateway-error-details-Djlwga0B.d.mts +1341 -0
- package/dist/gateway-error-details.d.mts +2 -2
- package/dist/gateway-error-details.mjs +2 -1
- package/dist/index.d.mts +1780 -929
- package/dist/index.mjs +83 -2
- package/dist/rolldown-runtime-D7D4PA-g.mjs +13 -0
- package/dist/{schema-modules-Cs1brqQv.d.mts → schema-modules-CsQIRdwb.d.mts} +18632 -18403
- package/dist/schema.d.mts +37 -19261
- package/dist/schema.mjs +1403 -999
- package/dist/server-capabilities-Gfkxm7Ho.mjs +26 -0
- package/dist/system-agent-context.d.mts +18 -0
- package/dist/system-agent-context.mjs +29 -0
- package/dist/{worktrees-CRLE3hce.mjs → tools-catalog-CF4aqT9l.mjs} +987 -280
- package/package.json +8 -3
- package/protocol.schema.json +114128 -107375
- package/dist/gateway-error-details-DVeCF9AS.d.mts +0 -111
package/dist/client-info.d.mts
CHANGED
|
@@ -84,6 +84,8 @@ export declare const GATEWAY_CLIENT_CAPS: {
|
|
|
84
84
|
readonly APPROVALS: "approvals";
|
|
85
85
|
readonly EXEC_APPROVALS: "exec-approvals";
|
|
86
86
|
readonly INLINE_WIDGETS: "inline-widgets";
|
|
87
|
+
readonly MODEL_CATALOG_SNAPSHOT: "model-catalog-snapshot";
|
|
88
|
+
readonly MODEL_SELECTION_POLICY: "model-selection-policy";
|
|
87
89
|
readonly RUN_TOOL_BINDINGS: "run-tool-bindings";
|
|
88
90
|
readonly SESSION_SCOPED_EVENTS: "session-scoped-events";
|
|
89
91
|
readonly PLUGIN_APPROVALS: "plugin-approvals";
|
package/dist/client-info.mjs
CHANGED
|
@@ -44,6 +44,8 @@ const GATEWAY_CLIENT_CAPS = {
|
|
|
44
44
|
APPROVALS: "approvals",
|
|
45
45
|
EXEC_APPROVALS: "exec-approvals",
|
|
46
46
|
INLINE_WIDGETS: "inline-widgets",
|
|
47
|
+
MODEL_CATALOG_SNAPSHOT: "model-catalog-snapshot",
|
|
48
|
+
MODEL_SELECTION_POLICY: "model-selection-policy",
|
|
47
49
|
RUN_TOOL_BINDINGS: "run-tool-bindings",
|
|
48
50
|
SESSION_SCOPED_EVENTS: "session-scoped-events",
|
|
49
51
|
PLUGIN_APPROVALS: "plugin-approvals",
|
package/dist/frame-guards.d.mts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { a as EventFrame, d as RequestFrame, l as HelloOk, p as ResponseFrame, r as ErrorShape, s as GatewayFrame, t as ConnectParams } from "./frames-
|
|
1
|
+
import { a as EventFrame, d as RequestFrame, l as HelloOk, p as ResponseFrame, r as ErrorShape, s as GatewayFrame, t as ConnectParams, y as GATEWAY_SERVER_CAPS } from "./frames-X2k-UkK8.mjs";
|
|
2
2
|
//#region src/frame-guards.d.ts
|
|
3
3
|
export declare function isGatewayEventFrame(value: unknown): value is EventFrame;
|
|
4
4
|
export declare function isGatewayResponseFrame(value: unknown): value is ResponseFrame;
|
|
5
5
|
//#endregion
|
|
6
|
-
export type
|
|
6
|
+
export { type ConnectParams, type ErrorShape, type EventFrame, GATEWAY_SERVER_CAPS, type GatewayFrame, type HelloOk, type RequestFrame, type ResponseFrame };
|
package/dist/frame-guards.mjs
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { r as isRecord } from "./record-coerce-BVp8Dr-B.mjs";
|
|
2
2
|
import { t as isNonEmptyProtocolString } from "./protocol-value-normalization-DfM01tqg.mjs";
|
|
3
|
+
import { t as GATEWAY_SERVER_CAPS } from "./server-capabilities-Gfkxm7Ho.mjs";
|
|
3
4
|
//#region src/frame-guards.ts
|
|
4
5
|
function isNonNegativeInteger(value) {
|
|
5
6
|
return typeof value === "number" && Number.isInteger(value) && value >= 0;
|
|
@@ -19,4 +20,4 @@ function isGatewayResponseFrame(value) {
|
|
|
19
20
|
return value.error === void 0 || isGatewayErrorShape(value.error);
|
|
20
21
|
}
|
|
21
22
|
//#endregion
|
|
22
|
-
export { isGatewayEventFrame, isGatewayResponseFrame };
|
|
23
|
+
export { GATEWAY_SERVER_CAPS, isGatewayEventFrame, isGatewayResponseFrame };
|
|
@@ -1,4 +1,29 @@
|
|
|
1
1
|
import { Static, Type } from "typebox";
|
|
2
|
+
//#region src/server-capabilities.d.ts
|
|
3
|
+
/** Stable feature names advertised in Gateway hello responses. */
|
|
4
|
+
declare const GATEWAY_SERVER_CAPS: {
|
|
5
|
+
readonly BOARD_WIDGET_PUT_CANVAS_DOC: "board-widget-put-canvas-doc";
|
|
6
|
+
readonly CHAT_SEND_ROUTING_CONTRACT: "chat-send-routing-contract";
|
|
7
|
+
readonly GATEWAY_RESTART_TARGET_SAFE: "gateway-restart-target-safe-v1";
|
|
8
|
+
readonly MODEL_CATALOG_SNAPSHOT: "model-catalog-snapshot";
|
|
9
|
+
readonly NODE_WORKER_BUNDLE_RETENTION: "node-worker-bundle-retention-v1";
|
|
10
|
+
readonly NODE_WORKER_BUNDLE_STATUS: "node-worker-bundle-status-v1";
|
|
11
|
+
readonly NODE_WORKER_ENVIRONMENT_SESSION: "node-worker-environment-session-v1";
|
|
12
|
+
readonly NODE_WORKER_PORTAL_STREAM: "node-worker-portal-stream-v1";
|
|
13
|
+
readonly PUBLISHED_MODEL_CATALOG: "published-model-catalog";
|
|
14
|
+
readonly PROFILE_BINDING: "profile-binding-v1";
|
|
15
|
+
readonly PROGRESS_CARD_AGENT_SCOPE: "progress-card-agent-scope-v1";
|
|
16
|
+
readonly SESSION_SCOPED_CHAT_METADATA: "session-scoped-chat-metadata";
|
|
17
|
+
readonly SESSION_SCOPED_MODEL_CATALOG: "session-scoped-model-catalog";
|
|
18
|
+
readonly SESSION_UNREAD_ACK_CONTRACT: "session-unread-ack-contract";
|
|
19
|
+
readonly SESSION_GOAL_START: "session-goal-start-v1";
|
|
20
|
+
readonly SESSION_SETTINGS_CONTRACT: "session-settings-contract";
|
|
21
|
+
readonly SESSION_SETTINGS_CAS: "session-settings-cas-v1";
|
|
22
|
+
readonly SYSTEM_AGENT_WIZARD_CANCEL: "openclaw-chat-wizard-cancel";
|
|
23
|
+
readonly SYSTEM_AGENT_SETUP_MODEL_REF: "openclaw-setup-model-ref";
|
|
24
|
+
readonly TASK_SUGGESTIONS_ACCEPT_MODES: "taskSuggestions.acceptModes";
|
|
25
|
+
};
|
|
26
|
+
//#endregion
|
|
2
27
|
//#region src/schema/frames.d.ts
|
|
3
28
|
/**
|
|
4
29
|
* Top-level gateway frame schemas.
|
|
@@ -47,6 +72,15 @@ declare const ConnectParamsSchema: Type.TObject<{
|
|
|
47
72
|
pathEnv: Type.TOptional<Type.TString>;
|
|
48
73
|
role: Type.TOptional<Type.TString>;
|
|
49
74
|
scopes: Type.TOptional<Type.TArray<Type.TString>>;
|
|
75
|
+
/** Initial catalog read scope; method authorization still owns access. */
|
|
76
|
+
modelCatalog: Type.TOptional<Type.TUnion<[Type.TObject<{
|
|
77
|
+
agentId: Type.TOptional<Type.TString>;
|
|
78
|
+
sessionKey: Type.TOptional<Type.TString>;
|
|
79
|
+
}>, Type.TObject<{
|
|
80
|
+
agentId: Type.TOptional<Type.TString>;
|
|
81
|
+
shortId: Type.TString;
|
|
82
|
+
slugHint: Type.TOptional<Type.TString>;
|
|
83
|
+
}>]>>;
|
|
50
84
|
device: Type.TOptional<Type.TObject<{
|
|
51
85
|
id: Type.TString;
|
|
52
86
|
publicKey: Type.TString;
|
|
@@ -87,6 +121,7 @@ declare const HelloOkSchema: Type.TObject<{
|
|
|
87
121
|
}>>;
|
|
88
122
|
presence: Type.TArray<Type.TObject<{
|
|
89
123
|
host: Type.TOptional<Type.TString>;
|
|
124
|
+
clientId: Type.TOptional<Type.TString>;
|
|
90
125
|
ip: Type.TOptional<Type.TString>;
|
|
91
126
|
version: Type.TOptional<Type.TString>;
|
|
92
127
|
platform: Type.TOptional<Type.TString>;
|
|
@@ -387,6 +422,7 @@ declare const RequestFrameSchema: Type.TObject<{
|
|
|
387
422
|
method: Type.TString;
|
|
388
423
|
params: Type.TOptional<Type.TUnknown>;
|
|
389
424
|
traceparent: Type.TOptional<Type.TString>;
|
|
425
|
+
expectedProfileId: Type.TOptional<Type.TString>;
|
|
390
426
|
}>;
|
|
391
427
|
/** Server response frame envelope paired with a prior request id. */
|
|
392
428
|
declare const ResponseFrameSchema: Type.TObject<{
|
|
@@ -412,6 +448,7 @@ declare const EventFrameSchema: Type.TObject<{
|
|
|
412
448
|
presence: Type.TInteger;
|
|
413
449
|
health: Type.TInteger;
|
|
414
450
|
}>>;
|
|
451
|
+
recipientProfileId: Type.TOptional<Type.TString>;
|
|
415
452
|
}>;
|
|
416
453
|
declare const GatewayFrameSchema: Type.TUnion<[Type.TObject<{
|
|
417
454
|
type: Type.TLiteral<"req">;
|
|
@@ -419,6 +456,7 @@ declare const GatewayFrameSchema: Type.TUnion<[Type.TObject<{
|
|
|
419
456
|
method: Type.TString;
|
|
420
457
|
params: Type.TOptional<Type.TUnknown>;
|
|
421
458
|
traceparent: Type.TOptional<Type.TString>;
|
|
459
|
+
expectedProfileId: Type.TOptional<Type.TString>;
|
|
422
460
|
}>, Type.TObject<{
|
|
423
461
|
type: Type.TLiteral<"res">;
|
|
424
462
|
id: Type.TString;
|
|
@@ -440,6 +478,7 @@ declare const GatewayFrameSchema: Type.TUnion<[Type.TObject<{
|
|
|
440
478
|
presence: Type.TInteger;
|
|
441
479
|
health: Type.TInteger;
|
|
442
480
|
}>>;
|
|
481
|
+
recipientProfileId: Type.TOptional<Type.TString>;
|
|
443
482
|
}>]>;
|
|
444
483
|
type ConnectParams = Static<typeof ConnectParamsSchema>;
|
|
445
484
|
type HelloOk = Static<typeof HelloOkSchema>;
|
|
@@ -451,4 +490,4 @@ type GatewayFrame = Static<typeof GatewayFrameSchema>;
|
|
|
451
490
|
type TickEvent = Static<typeof TickEventSchema>;
|
|
452
491
|
type ShutdownEvent = Static<typeof ShutdownEventSchema>;
|
|
453
492
|
//#endregion
|
|
454
|
-
export { TickEvent as _, EventFrame as a, GatewayFrameSchema as c, RequestFrame as d, RequestFrameSchema as f, ShutdownEventSchema as g, ShutdownEvent as h, ErrorShapeSchema as i, HelloOk as l, ResponseFrameSchema as m, ConnectParamsSchema as n, EventFrameSchema as o, ResponseFrame as p, ErrorShape as r, GatewayFrame as s, ConnectParams as t, HelloOkSchema as u, TickEventSchema as v };
|
|
493
|
+
export { TickEvent as _, EventFrame as a, GatewayFrameSchema as c, RequestFrame as d, RequestFrameSchema as f, ShutdownEventSchema as g, ShutdownEvent as h, ErrorShapeSchema as i, HelloOk as l, ResponseFrameSchema as m, ConnectParamsSchema as n, EventFrameSchema as o, ResponseFrame as p, ErrorShape as r, GatewayFrame as s, ConnectParams as t, HelloOkSchema as u, TickEventSchema as v, GATEWAY_SERVER_CAPS as y };
|