@openclaw/gateway-protocol 2026.9.8 → 2026.10.1-beta.2
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/README.md +10 -0
- package/dist/client-info.d.mts +1 -0
- package/dist/client-info.mjs +1 -0
- package/dist/connect-error-details.d.mts +29 -8
- package/dist/connect-error-details.mjs +56 -85
- package/dist/frame-guards.d.mts +1 -1
- package/dist/frame-guards.mjs +1 -1
- package/dist/{frames-ICrB58JF.d.mts → frames-DrSBm15j.d.mts} +37 -11
- package/dist/index.d.mts +760 -186
- package/dist/index.mjs +56 -40
- package/dist/{schema-modules-CRgBq9O3.d.mts → schema-modules-BlWM3kTv.d.mts} +16442 -14463
- package/dist/schema.d.mts +4 -4
- package/dist/schema.mjs +40 -3
- package/dist/{server-capabilities-BnyAklc1.mjs → server-capabilities-BTjjxElt.mjs} +11 -0
- package/dist/{tools-catalog-pKZZLiUu.mjs → tools-catalog-Cg4qTBai.mjs} +1944 -1444
- package/package.json +3 -2
- package/protocol.schema.json +5817 -162
|
@@ -273,6 +273,18 @@ const SessionRepositorySourceSchema = closedObject({
|
|
|
273
273
|
maxLength: 1024
|
|
274
274
|
}))
|
|
275
275
|
});
|
|
276
|
+
/** Channel-owned destination for returning to the conversation that launched a session. */
|
|
277
|
+
const SessionConversationLinkSchema = closedObject({
|
|
278
|
+
url: Type.String({
|
|
279
|
+
minLength: 1,
|
|
280
|
+
maxLength: 2048,
|
|
281
|
+
pattern: "^https?://"
|
|
282
|
+
}),
|
|
283
|
+
label: Type.String({
|
|
284
|
+
minLength: 1,
|
|
285
|
+
maxLength: 128
|
|
286
|
+
})
|
|
287
|
+
});
|
|
276
288
|
const SessionRunStatusSchema = Type.Union([
|
|
277
289
|
Type.Literal("queued"),
|
|
278
290
|
Type.Literal("running"),
|
|
@@ -338,6 +350,8 @@ const SessionSwarmSummarySchema = closedObject({
|
|
|
338
350
|
/** Stable Gateway session row fields; mutation envelopes may add null tombstones. */
|
|
339
351
|
const SessionRowSchema = Type.Object({
|
|
340
352
|
key: Type.String(),
|
|
353
|
+
/** Detail fields omitted in compact lists must not clear a client's full-row cache. */
|
|
354
|
+
rowMode: Type.Optional(Type.Literal("compact")),
|
|
341
355
|
sessionId: Type.Optional(Type.String()),
|
|
342
356
|
incognito: Type.Optional(Type.Literal(true)),
|
|
343
357
|
kind: Type.Union([
|
|
@@ -352,6 +366,7 @@ const SessionRowSchema = Type.Object({
|
|
|
352
366
|
/** Named sidebar tint from SESSION_COLOR_IDS; clients map names to theme hues. */
|
|
353
367
|
color: Type.Optional(Type.String()),
|
|
354
368
|
channelAvatarUrl: Type.Optional(NonEmptyString),
|
|
369
|
+
conversationLink: Type.Optional(SessionConversationLinkSchema),
|
|
355
370
|
boardFace: Type.Optional(Type.Union([Type.Literal("chat"), Type.Literal("dashboard")])),
|
|
356
371
|
/** Shared dashboard default; absent means split. */
|
|
357
372
|
boardPresentation: Type.Optional(Type.Union([Type.Literal("split"), Type.Literal("expanded")])),
|
|
@@ -385,6 +400,8 @@ const SessionRowSchema = Type.Object({
|
|
|
385
400
|
archiveReason: Type.Optional(SessionEntryArchiveReasonSchema),
|
|
386
401
|
pinned: Type.Optional(Type.Boolean()),
|
|
387
402
|
pinnedAt: Type.Optional(Type.Number()),
|
|
403
|
+
snoozedUntil: Type.Optional(Type.Number()),
|
|
404
|
+
snoozedAt: Type.Optional(Type.Number()),
|
|
388
405
|
unread: Type.Optional(Type.Boolean()),
|
|
389
406
|
lastReadAt: Type.Optional(Type.Number()),
|
|
390
407
|
markedUnreadAt: Type.Optional(Type.Number()),
|
|
@@ -451,6 +468,8 @@ const SessionRowSchema = Type.Object({
|
|
|
451
468
|
participantCount: Type.Optional(Type.Integer({ minimum: 0 })),
|
|
452
469
|
visibility: Type.Optional(SessionVisibilitySchema),
|
|
453
470
|
sharingRole: Type.Optional(SessionSharingRoleSchema),
|
|
471
|
+
/** Recipient-local send admission; null explicitly clears a previous restriction. */
|
|
472
|
+
sendDisabledReason: Type.Optional(Type.Union([NonEmptyString, Type.Null()])),
|
|
454
473
|
createdAt: Type.Optional(Type.Number()),
|
|
455
474
|
forkSource: Type.Optional(Type.Object({
|
|
456
475
|
sessionKey: Type.String(),
|
|
@@ -991,6 +1010,17 @@ const WorkerDesktopLaunchResultSchema = closedObject({
|
|
|
991
1010
|
});
|
|
992
1011
|
//#endregion
|
|
993
1012
|
//#region packages/gateway-protocol/src/schema/model-runtime-options.ts
|
|
1013
|
+
/** Where a completion runs: the built-in HTTP runtime, a CLI backend, or a plugin harness. */
|
|
1014
|
+
const GatewayCompletionRouteSchema = closedObject({
|
|
1015
|
+
id: NonEmptyString,
|
|
1016
|
+
kind: Type.Union([
|
|
1017
|
+
Type.Literal("api"),
|
|
1018
|
+
Type.Literal("cli"),
|
|
1019
|
+
Type.Literal("harness")
|
|
1020
|
+
]),
|
|
1021
|
+
/** Operator-facing runtime name, e.g. "Claude CLI" or "OpenAI Codex". */
|
|
1022
|
+
label: NonEmptyString
|
|
1023
|
+
});
|
|
994
1024
|
const GatewayAgentRuntimeSchema = closedObject({
|
|
995
1025
|
id: NonEmptyString,
|
|
996
1026
|
fallback: Type.Optional(Type.Union([Type.Literal("openclaw"), Type.Literal("none")])),
|
|
@@ -1129,6 +1159,142 @@ const SecretsResolveResultSchema = closedObject({
|
|
|
1129
1159
|
inactiveRefPaths: Type.Optional(Type.Array(NonEmptyString))
|
|
1130
1160
|
});
|
|
1131
1161
|
//#endregion
|
|
1162
|
+
//#region packages/gateway-protocol/src/schema/clawhub-listing.ts
|
|
1163
|
+
/** The release actually selected by the registry, independently of listing latest metadata. */
|
|
1164
|
+
const ClawHubSelectedReleaseSchema = closedObject({
|
|
1165
|
+
version: NonEmptyString,
|
|
1166
|
+
createdAt: Type.Optional(Type.Integer({ minimum: 0 })),
|
|
1167
|
+
changelog: Type.Optional(Type.String()),
|
|
1168
|
+
tags: Type.Optional(Type.Array(NonEmptyString))
|
|
1169
|
+
});
|
|
1170
|
+
/** Artifact availability is advisory; installation still rechecks integrity and policy. */
|
|
1171
|
+
const ClawHubDownloadabilitySchema = Type.Union([
|
|
1172
|
+
closedObject({ status: Type.Literal("downloadable") }),
|
|
1173
|
+
closedObject({
|
|
1174
|
+
status: Type.Literal("unavailable"),
|
|
1175
|
+
reason: NonEmptyString
|
|
1176
|
+
}),
|
|
1177
|
+
closedObject({
|
|
1178
|
+
status: Type.Literal("unknown"),
|
|
1179
|
+
reason: NonEmptyString
|
|
1180
|
+
})
|
|
1181
|
+
]);
|
|
1182
|
+
/** Presence of the selected plugin release's registry summary, README, and scan metadata. */
|
|
1183
|
+
const ClawHubPluginMetadataSchema = closedObject({
|
|
1184
|
+
manifest: Type.Union([Type.Literal("available"), Type.Literal("missing")]),
|
|
1185
|
+
readme: Type.Union([Type.Literal("available"), Type.Literal("missing")]),
|
|
1186
|
+
security: Type.Union([Type.Literal("available"), Type.Literal("missing")])
|
|
1187
|
+
});
|
|
1188
|
+
const ClawHubPluginConfigFieldSchema = closedObject({
|
|
1189
|
+
name: NonEmptyString,
|
|
1190
|
+
description: Type.Optional(Type.String()),
|
|
1191
|
+
required: Type.Boolean(),
|
|
1192
|
+
sensitive: Type.Boolean()
|
|
1193
|
+
});
|
|
1194
|
+
const ClawHubPluginMcpServerSchema = closedObject({
|
|
1195
|
+
name: NonEmptyString,
|
|
1196
|
+
url: Type.Optional(Type.String({
|
|
1197
|
+
minLength: 1,
|
|
1198
|
+
maxLength: 2048
|
|
1199
|
+
})),
|
|
1200
|
+
transport: Type.Optional(Type.Union([
|
|
1201
|
+
Type.Literal("streamable-http"),
|
|
1202
|
+
Type.Literal("sse"),
|
|
1203
|
+
Type.Literal("stdio")
|
|
1204
|
+
])),
|
|
1205
|
+
auth: Type.Optional(Type.Union([
|
|
1206
|
+
Type.Literal("oauth"),
|
|
1207
|
+
Type.Literal("api-key"),
|
|
1208
|
+
Type.Literal("none")
|
|
1209
|
+
])),
|
|
1210
|
+
scope: Type.Optional(Type.String({ maxLength: 1e3 })),
|
|
1211
|
+
setup: Type.Optional(Type.String({ maxLength: 2e3 })),
|
|
1212
|
+
endpointRedacted: Type.Optional(Type.Boolean())
|
|
1213
|
+
});
|
|
1214
|
+
//#endregion
|
|
1215
|
+
//#region packages/gateway-protocol/src/schema/skill-detail.ts
|
|
1216
|
+
/** Skill registry detail, latest version, metadata, and owner info. */
|
|
1217
|
+
const SkillRegistrySetupSchema = Type.Array(closedObject({
|
|
1218
|
+
key: NonEmptyString,
|
|
1219
|
+
required: Type.Boolean()
|
|
1220
|
+
}));
|
|
1221
|
+
const SkillDetailUnavailableSchema = closedObject({
|
|
1222
|
+
status: Type.Literal("unavailable"),
|
|
1223
|
+
reason: NonEmptyString
|
|
1224
|
+
});
|
|
1225
|
+
const SkillsDetailResultSchema = closedObject({
|
|
1226
|
+
registry: Type.Optional(NonEmptyString),
|
|
1227
|
+
source: Type.Optional(Type.Literal("clawhub")),
|
|
1228
|
+
installRef: Type.Optional(NonEmptyString),
|
|
1229
|
+
selectedRelease: Type.Optional(Type.Union([ClawHubSelectedReleaseSchema, Type.Null()])),
|
|
1230
|
+
downloadability: Type.Optional(ClawHubDownloadabilitySchema),
|
|
1231
|
+
card: Type.Optional(Type.Union([closedObject({
|
|
1232
|
+
status: Type.Literal("available"),
|
|
1233
|
+
content: Type.String()
|
|
1234
|
+
}), SkillDetailUnavailableSchema])),
|
|
1235
|
+
requirements: Type.Optional(Type.Union([closedObject({
|
|
1236
|
+
status: Type.Literal("available"),
|
|
1237
|
+
setup: SkillRegistrySetupSchema,
|
|
1238
|
+
os: Type.Optional(Type.Union([Type.Array(Type.String()), Type.Null()])),
|
|
1239
|
+
systems: Type.Optional(Type.Union([Type.Array(Type.String()), Type.Null()])),
|
|
1240
|
+
scope: Type.Literal("registry-setup"),
|
|
1241
|
+
note: NonEmptyString
|
|
1242
|
+
}), SkillDetailUnavailableSchema])),
|
|
1243
|
+
security: Type.Optional(Type.Union([closedObject({
|
|
1244
|
+
status: Type.Literal("available"),
|
|
1245
|
+
scanStatus: NonEmptyString,
|
|
1246
|
+
hasWarnings: Type.Boolean(),
|
|
1247
|
+
hasScanResult: Type.Boolean(),
|
|
1248
|
+
checkedAt: Type.Optional(Type.Union([Type.Number(), Type.Null()])),
|
|
1249
|
+
summary: Type.Optional(Type.Union([Type.String(), Type.Null()])),
|
|
1250
|
+
virustotalUrl: Type.Optional(Type.Union([Type.String(), Type.Null()]))
|
|
1251
|
+
}), SkillDetailUnavailableSchema])),
|
|
1252
|
+
warnings: Type.Optional(Type.Array(Type.String())),
|
|
1253
|
+
skill: Type.Union([closedObject({
|
|
1254
|
+
slug: NonEmptyString,
|
|
1255
|
+
displayName: NonEmptyString,
|
|
1256
|
+
summary: Type.Optional(Type.Union([Type.String(), Type.Null()])),
|
|
1257
|
+
description: Type.Optional(Type.Union([Type.String(), Type.Null()])),
|
|
1258
|
+
icon: Type.Optional(Type.Union([Type.String(), Type.Null()])),
|
|
1259
|
+
topics: Type.Optional(Type.Array(Type.String())),
|
|
1260
|
+
stats: Type.Optional(Type.Record(Type.String(), Type.Number())),
|
|
1261
|
+
tags: Type.Optional(Type.Record(NonEmptyString, Type.String())),
|
|
1262
|
+
channel: Type.Optional(Type.Union([Type.String(), Type.Null()])),
|
|
1263
|
+
isOfficial: Type.Optional(Type.Union([Type.Boolean(), Type.Null()])),
|
|
1264
|
+
createdAt: Type.Integer(),
|
|
1265
|
+
updatedAt: Type.Integer()
|
|
1266
|
+
}), Type.Null()]),
|
|
1267
|
+
latestVersion: Type.Optional(Type.Union([closedObject({
|
|
1268
|
+
version: NonEmptyString,
|
|
1269
|
+
createdAt: Type.Integer(),
|
|
1270
|
+
changelog: Type.Optional(Type.String()),
|
|
1271
|
+
license: Type.Optional(Type.Union([Type.String(), Type.Null()]))
|
|
1272
|
+
}), Type.Null()])),
|
|
1273
|
+
metadata: Type.Optional(Type.Union([closedObject({
|
|
1274
|
+
setup: Type.Optional(SkillRegistrySetupSchema),
|
|
1275
|
+
os: Type.Optional(Type.Union([Type.Array(Type.String()), Type.Null()])),
|
|
1276
|
+
systems: Type.Optional(Type.Union([Type.Array(Type.String()), Type.Null()]))
|
|
1277
|
+
}), Type.Null()])),
|
|
1278
|
+
moderation: Type.Optional(Type.Union([closedObject({
|
|
1279
|
+
isSuspicious: Type.Boolean(),
|
|
1280
|
+
isMalwareBlocked: Type.Boolean(),
|
|
1281
|
+
verdict: Type.String(),
|
|
1282
|
+
reasonCodes: Type.Array(Type.String()),
|
|
1283
|
+
summary: Type.Union([Type.String(), Type.Null()]),
|
|
1284
|
+
engineVersion: Type.Union([Type.String(), Type.Null()]),
|
|
1285
|
+
updatedAt: Type.Union([Type.Number(), Type.Null()])
|
|
1286
|
+
}), Type.Null()])),
|
|
1287
|
+
owner: Type.Optional(Type.Union([closedObject({
|
|
1288
|
+
handle: Type.Optional(Type.Union([NonEmptyString, Type.Null()])),
|
|
1289
|
+
userId: Type.Optional(NonEmptyString),
|
|
1290
|
+
displayName: Type.Optional(Type.Union([NonEmptyString, Type.Null()])),
|
|
1291
|
+
image: Type.Optional(Type.Union([Type.String(), Type.Null()])),
|
|
1292
|
+
official: Type.Optional(Type.Union([Type.Boolean(), Type.Null()])),
|
|
1293
|
+
channel: Type.Optional(Type.Union([Type.String(), Type.Null()])),
|
|
1294
|
+
isOfficial: Type.Optional(Type.Union([Type.Boolean(), Type.Null()]))
|
|
1295
|
+
}), Type.Null()]))
|
|
1296
|
+
});
|
|
1297
|
+
//#endregion
|
|
1132
1298
|
//#region packages/gateway-protocol/src/schema/model-account-selection.ts
|
|
1133
1299
|
const ModelAuthProfileIdSchema = Type.String({
|
|
1134
1300
|
minLength: 1,
|
|
@@ -1214,7 +1380,13 @@ const ModelRuntimeProperties = {
|
|
|
1214
1380
|
reasoning: Type.Optional(Type.Boolean()),
|
|
1215
1381
|
thinkingLevels: Type.Optional(Type.Array(GatewayThinkingLevelOptionSchema)),
|
|
1216
1382
|
thinkingDefault: Type.Optional(NonEmptyString),
|
|
1217
|
-
effectiveFastMode: Type.Optional(Type.Union([
|
|
1383
|
+
effectiveFastMode: Type.Optional(Type.Union([
|
|
1384
|
+
Type.Boolean(),
|
|
1385
|
+
Type.Literal("auto"),
|
|
1386
|
+
Type.Literal("ultrafast")
|
|
1387
|
+
])),
|
|
1388
|
+
/** Account-scoped service tiers advertised for this selected runtime. Missing means unknown. */
|
|
1389
|
+
serviceTiers: Type.Optional(Type.Array(NonEmptyString)),
|
|
1218
1390
|
/** Local selected-request applicability, not preference or upstream fulfillment. */
|
|
1219
1391
|
supportsFastMode: Type.Optional(Type.Boolean()),
|
|
1220
1392
|
supportsTools: Type.Optional(Type.Boolean()),
|
|
@@ -1297,9 +1469,12 @@ const ModelsListResultSchema = closedObject({
|
|
|
1297
1469
|
confidence: Type.Optional(Type.Union([Type.Literal("provider-specific"), Type.Literal("none")]))
|
|
1298
1470
|
}))
|
|
1299
1471
|
}))),
|
|
1300
|
-
defaultModels: Type.Optional(closedObject({
|
|
1301
|
-
|
|
1302
|
-
automaticUtilityModel: Type.Union([NonEmptyString, Type.Null()])
|
|
1472
|
+
defaultModels: Type.Optional(closedObject({
|
|
1473
|
+
/** Auto preview from agents.defaults.model, even when utility routing is explicit or disabled. */
|
|
1474
|
+
automaticUtilityModel: Type.Union([NonEmptyString, Type.Null()]),
|
|
1475
|
+
/** Route the utility model in effect (automatic or explicit) runs on; absent when disabled. */
|
|
1476
|
+
utilityRuntime: Type.Optional(GatewayCompletionRouteSchema)
|
|
1477
|
+
})),
|
|
1303
1478
|
refreshFailed: Type.Optional(Type.Boolean()),
|
|
1304
1479
|
pendingProviders: Type.Optional(Type.Array(NonEmptyString)),
|
|
1305
1480
|
accountSelection: Type.Optional(ChatAccountSelectionSchema),
|
|
@@ -1684,43 +1859,15 @@ const SkillsSearchResultSchema = closedObject({ results: Type.Array(closedObject
|
|
|
1684
1859
|
updatedAt: Type.Optional(Type.Integer())
|
|
1685
1860
|
})) });
|
|
1686
1861
|
/** Reads registry detail for one skill. */
|
|
1687
|
-
const SkillsDetailParamsSchema = closedObject({
|
|
1688
|
-
|
|
1689
|
-
|
|
1690
|
-
|
|
1862
|
+
const SkillsDetailParamsSchema = closedObject({
|
|
1863
|
+
slug: Type.String({
|
|
1864
|
+
minLength: 1,
|
|
1865
|
+
description: CLAWHUB_SKILL_REF_DESCRIPTION
|
|
1866
|
+
}),
|
|
1867
|
+
version: Type.Optional(NonEmptyString)
|
|
1868
|
+
});
|
|
1691
1869
|
/** Reads current security verdicts for configured skills. */
|
|
1692
1870
|
const SkillsSecurityVerdictsParamsSchema = closedObject({ agentId: Type.Optional(NonEmptyString) });
|
|
1693
|
-
/** Skill registry detail, latest version, metadata, and owner info. */
|
|
1694
|
-
const SkillsDetailResultSchema = closedObject({
|
|
1695
|
-
skill: Type.Union([closedObject({
|
|
1696
|
-
slug: NonEmptyString,
|
|
1697
|
-
displayName: NonEmptyString,
|
|
1698
|
-
summary: Type.Optional(Type.String()),
|
|
1699
|
-
icon: Type.Optional(Type.Union([Type.String(), Type.Null()])),
|
|
1700
|
-
tags: Type.Optional(Type.Record(NonEmptyString, Type.String())),
|
|
1701
|
-
channel: Type.Optional(Type.Union([Type.String(), Type.Null()])),
|
|
1702
|
-
isOfficial: Type.Optional(Type.Union([Type.Boolean(), Type.Null()])),
|
|
1703
|
-
createdAt: Type.Integer(),
|
|
1704
|
-
updatedAt: Type.Integer()
|
|
1705
|
-
}), Type.Null()]),
|
|
1706
|
-
latestVersion: Type.Optional(Type.Union([closedObject({
|
|
1707
|
-
version: NonEmptyString,
|
|
1708
|
-
createdAt: Type.Integer(),
|
|
1709
|
-
changelog: Type.Optional(Type.String())
|
|
1710
|
-
}), Type.Null()])),
|
|
1711
|
-
metadata: Type.Optional(Type.Union([closedObject({
|
|
1712
|
-
os: Type.Optional(Type.Union([Type.Array(Type.String()), Type.Null()])),
|
|
1713
|
-
systems: Type.Optional(Type.Union([Type.Array(Type.String()), Type.Null()]))
|
|
1714
|
-
}), Type.Null()])),
|
|
1715
|
-
owner: Type.Optional(Type.Union([closedObject({
|
|
1716
|
-
handle: Type.Optional(Type.Union([NonEmptyString, Type.Null()])),
|
|
1717
|
-
displayName: Type.Optional(Type.Union([NonEmptyString, Type.Null()])),
|
|
1718
|
-
image: Type.Optional(Type.Union([Type.String(), Type.Null()])),
|
|
1719
|
-
official: Type.Optional(Type.Union([Type.Boolean(), Type.Null()])),
|
|
1720
|
-
channel: Type.Optional(Type.Union([Type.String(), Type.Null()])),
|
|
1721
|
-
isOfficial: Type.Optional(Type.Union([Type.Boolean(), Type.Null()]))
|
|
1722
|
-
}), Type.Null()]))
|
|
1723
|
-
});
|
|
1724
1871
|
/** Security verdict report for installed/requested skills. */
|
|
1725
1872
|
const SkillsSecurityVerdictsResultSchema = closedObject({
|
|
1726
1873
|
schema: Type.Literal("openclaw.skills.security-verdicts.v1"),
|
|
@@ -2406,15 +2553,12 @@ const WizardNextParamsSchema = closedObject({
|
|
|
2406
2553
|
sessionId: NonEmptyString,
|
|
2407
2554
|
answer: Type.Optional(WizardAnswerSchema)
|
|
2408
2555
|
});
|
|
2409
|
-
/** Session-id-only params for status requests. */
|
|
2410
|
-
const WizardSessionIdParamsSchema = closedObject({ sessionId: NonEmptyString });
|
|
2411
2556
|
/** Cancels a wizard or closes input when its client view is discarded. */
|
|
2412
2557
|
const WizardCancelParamsSchema = closedObject({
|
|
2413
2558
|
sessionId: NonEmptyString,
|
|
2414
2559
|
closeInput: Type.Optional(Type.Boolean())
|
|
2415
2560
|
});
|
|
2416
|
-
|
|
2417
|
-
const WizardStatusParamsSchema = WizardSessionIdParamsSchema;
|
|
2561
|
+
const WizardStatusParamsSchema = closedObject({ sessionId: NonEmptyString });
|
|
2418
2562
|
/** Selectable value shown in a choice-based wizard step. */
|
|
2419
2563
|
const WizardStepOptionSchema = closedObject({
|
|
2420
2564
|
value: Type.Unknown(),
|
|
@@ -2550,10 +2694,31 @@ const UserProfileSchema = closedObject({
|
|
|
2550
2694
|
emails: Type.Array(NonEmptyString),
|
|
2551
2695
|
githubIdentity: Type.Union([UserProfileGitHubIdentitySchema, Type.Null()]),
|
|
2552
2696
|
hasAvatar: Type.Boolean(),
|
|
2553
|
-
role: Type.Optional(UserProfileRoleSchema)
|
|
2697
|
+
role: Type.Optional(UserProfileRoleSchema),
|
|
2698
|
+
effectiveRole: Type.Optional(UserProfileRoleSchema),
|
|
2699
|
+
roleSource: Type.Optional(Type.Union([
|
|
2700
|
+
Type.Literal("assigned"),
|
|
2701
|
+
Type.Literal("githubLogin"),
|
|
2702
|
+
Type.Literal("default")
|
|
2703
|
+
]))
|
|
2704
|
+
});
|
|
2705
|
+
const UsersListParamsSchema = closedObject({ githubAccountIds: Type.Optional(Type.Array(Type.Integer({
|
|
2706
|
+
minimum: 1,
|
|
2707
|
+
maximum: Number.MAX_SAFE_INTEGER
|
|
2708
|
+
}), {
|
|
2709
|
+
maxItems: 500,
|
|
2710
|
+
uniqueItems: true
|
|
2711
|
+
})) });
|
|
2712
|
+
const UsersListResultSchema = closedObject({
|
|
2713
|
+
profiles: Type.Array(UserProfileSchema),
|
|
2714
|
+
githubProfiles: Type.Optional(Type.Array(closedObject({
|
|
2715
|
+
accountId: Type.Integer({
|
|
2716
|
+
minimum: 1,
|
|
2717
|
+
maximum: Number.MAX_SAFE_INTEGER
|
|
2718
|
+
}),
|
|
2719
|
+
profileId: UserProfileIdSchema
|
|
2720
|
+
}), { maxItems: 500 }))
|
|
2554
2721
|
});
|
|
2555
|
-
const UsersListParamsSchema = closedObject({});
|
|
2556
|
-
const UsersListResultSchema = closedObject({ profiles: Type.Array(UserProfileSchema) });
|
|
2557
2722
|
const UsersPersonalFileGetParamsSchema = closedObject({ agentId: NonEmptyString });
|
|
2558
2723
|
const UsersPersonalFileSetParamsSchema = closedObject({
|
|
2559
2724
|
agentId: NonEmptyString,
|
|
@@ -3223,7 +3388,6 @@ const ControlUiLinkReaderDescriptorSchema = closedObject({
|
|
|
3223
3388
|
});
|
|
3224
3389
|
//#endregion
|
|
3225
3390
|
//#region packages/gateway-protocol/src/schema/plugin-credentials.ts
|
|
3226
|
-
const closed$1 = { additionalProperties: false };
|
|
3227
3391
|
const text$1 = Type.String({
|
|
3228
3392
|
minLength: 1,
|
|
3229
3393
|
maxLength: 512
|
|
@@ -3232,15 +3396,15 @@ const path = Type.Array(Type.Union([text$1, Type.Integer({ minimum: 0 })]), {
|
|
|
3232
3396
|
minItems: 5,
|
|
3233
3397
|
maxItems: 32
|
|
3234
3398
|
});
|
|
3235
|
-
const PluginCredentialDescriptorSchema =
|
|
3399
|
+
const PluginCredentialDescriptorSchema = closedObject({
|
|
3236
3400
|
path,
|
|
3237
3401
|
label: text$1,
|
|
3238
3402
|
envVars: Type.Array(text$1, { maxItems: 32 }),
|
|
3239
3403
|
placeholder: Type.Optional(text$1),
|
|
3240
3404
|
signupUrl: Type.Optional(text$1),
|
|
3241
3405
|
requiresCredential: Type.Optional(Type.Boolean())
|
|
3242
|
-
}
|
|
3243
|
-
const reference =
|
|
3406
|
+
});
|
|
3407
|
+
const reference = closedObject({
|
|
3244
3408
|
source: Type.Union([
|
|
3245
3409
|
Type.Literal("env"),
|
|
3246
3410
|
Type.Literal("file"),
|
|
@@ -3252,35 +3416,35 @@ const reference = Type.Object({
|
|
|
3252
3416
|
minLength: 1,
|
|
3253
3417
|
maxLength: 4096
|
|
3254
3418
|
})
|
|
3255
|
-
}
|
|
3419
|
+
});
|
|
3256
3420
|
const PluginCredentialInspectionSchema = Type.Union([
|
|
3257
|
-
|
|
3258
|
-
|
|
3421
|
+
closedObject({ kind: Type.Literal("missing") }),
|
|
3422
|
+
closedObject({
|
|
3259
3423
|
kind: Type.Literal("literal"),
|
|
3260
3424
|
value: Type.Optional(Type.String())
|
|
3261
|
-
}
|
|
3262
|
-
|
|
3263
|
-
|
|
3425
|
+
}),
|
|
3426
|
+
closedObject({ kind: Type.Literal("invalid") }),
|
|
3427
|
+
closedObject({
|
|
3264
3428
|
kind: Type.Literal("environment"),
|
|
3265
3429
|
envVar: text$1
|
|
3266
|
-
}
|
|
3267
|
-
|
|
3430
|
+
}),
|
|
3431
|
+
closedObject({
|
|
3268
3432
|
kind: Type.Literal("reference"),
|
|
3269
3433
|
ref: reference,
|
|
3270
3434
|
unresolved: Type.Boolean()
|
|
3271
|
-
}
|
|
3435
|
+
})
|
|
3272
3436
|
]);
|
|
3273
3437
|
/** An admin can inspect only a credential advertised by this installed plugin, at this revision. */
|
|
3274
|
-
const PluginsCredentialsInspectParamsSchema =
|
|
3438
|
+
const PluginsCredentialsInspectParamsSchema = closedObject({
|
|
3275
3439
|
pluginId: text$1,
|
|
3276
3440
|
path,
|
|
3277
3441
|
baseHash: text$1,
|
|
3278
3442
|
reveal: Type.Optional(Type.Boolean())
|
|
3279
|
-
}
|
|
3280
|
-
const PluginsCredentialsInspectResultSchema =
|
|
3443
|
+
});
|
|
3444
|
+
const PluginsCredentialsInspectResultSchema = closedObject({
|
|
3281
3445
|
baseHash: text$1,
|
|
3282
3446
|
credential: PluginCredentialInspectionSchema
|
|
3283
|
-
}
|
|
3447
|
+
});
|
|
3284
3448
|
const validatePluginsCredentialsInspectParams = /* @__PURE__ */ lazyCompile(PluginsCredentialsInspectParamsSchema);
|
|
3285
3449
|
//#endregion
|
|
3286
3450
|
//#region packages/gateway-protocol/src/schema/plugin-inspection.ts
|
|
@@ -3649,7 +3813,22 @@ const PluginsListResultSchema = closedObject({
|
|
|
3649
3813
|
mutationAllowed: Type.Boolean()
|
|
3650
3814
|
});
|
|
3651
3815
|
/** Request payload for inspecting one plugin's declared capability surface. */
|
|
3652
|
-
const PluginsInspectParamsSchema =
|
|
3816
|
+
const PluginsInspectParamsSchema = Type.Union([
|
|
3817
|
+
closedObject({ pluginId: NonEmptyString }),
|
|
3818
|
+
closedObject({
|
|
3819
|
+
source: Type.Literal("clawhub"),
|
|
3820
|
+
packageName: NonEmptyString,
|
|
3821
|
+
version: Type.Optional(NonEmptyString)
|
|
3822
|
+
}),
|
|
3823
|
+
closedObject({
|
|
3824
|
+
catalogId: Type.String({
|
|
3825
|
+
minLength: 1,
|
|
3826
|
+
maxLength: 512,
|
|
3827
|
+
pattern: "^[A-Za-z0-9_-]+$"
|
|
3828
|
+
}),
|
|
3829
|
+
version: Type.Optional(NonEmptyString)
|
|
3830
|
+
})
|
|
3831
|
+
]);
|
|
3653
3832
|
/** Newly declared capability items grouped by their existing manifest surface. */
|
|
3654
3833
|
const PluginDeclaredSurfaceWideningSchema = Type.Partial(PluginDeclaredSurfaceSchema, { additionalProperties: false });
|
|
3655
3834
|
/** Typed failure payload that lets clients review and acknowledge plugin capabilities. */
|
|
@@ -3738,13 +3917,7 @@ const PluginDiscoveryLocalFactsSchema = closedObject({
|
|
|
3738
3917
|
present: Type.Boolean(),
|
|
3739
3918
|
installed: Type.Boolean(),
|
|
3740
3919
|
enabled: Type.Boolean(),
|
|
3741
|
-
state:
|
|
3742
|
-
Type.Literal("enabled"),
|
|
3743
|
-
Type.Literal("disabled"),
|
|
3744
|
-
Type.Literal("needs-setup"),
|
|
3745
|
-
Type.Literal("not-installed"),
|
|
3746
|
-
Type.Literal("error")
|
|
3747
|
-
]),
|
|
3920
|
+
state: PluginCatalogEntrySchema.properties.state,
|
|
3748
3921
|
pluginId: Type.Optional(NonEmptyString),
|
|
3749
3922
|
install: Type.Optional(PluginCatalogInstallActionSchema),
|
|
3750
3923
|
action: Type.Union([
|
|
@@ -3805,12 +3978,6 @@ const PluginDiscoveryCompatibilitySchema = closedObject({
|
|
|
3805
3978
|
pluginSdkVersion: Type.Optional(NonEmptyString),
|
|
3806
3979
|
minGatewayVersion: Type.Optional(NonEmptyString)
|
|
3807
3980
|
});
|
|
3808
|
-
const PluginDiscoveryConfigFieldSchema = closedObject({
|
|
3809
|
-
name: NonEmptyString,
|
|
3810
|
-
description: Type.Optional(Type.String()),
|
|
3811
|
-
required: Type.Boolean(),
|
|
3812
|
-
sensitive: Type.Boolean()
|
|
3813
|
-
});
|
|
3814
3981
|
const PluginDiscoveryVersionSchema = closedObject({
|
|
3815
3982
|
version: NonEmptyString,
|
|
3816
3983
|
createdAt: Type.Integer({ minimum: 0 }),
|
|
@@ -3820,6 +3987,13 @@ const PluginDiscoveryVersionSchema = closedObject({
|
|
|
3820
3987
|
const PluginDiscoveryDetailSchema = closedObject({
|
|
3821
3988
|
origin: Type.Union([Type.Literal("clawhub"), Type.Literal("local")]),
|
|
3822
3989
|
packageName: Type.Optional(NonEmptyString),
|
|
3990
|
+
registry: Type.Optional(NonEmptyString),
|
|
3991
|
+
requestedVersion: Type.Optional(NonEmptyString),
|
|
3992
|
+
tags: Type.Optional(Type.Record(NonEmptyString, NonEmptyString)),
|
|
3993
|
+
selectedRelease: Type.Optional(Type.Union([ClawHubSelectedReleaseSchema, Type.Null()])),
|
|
3994
|
+
downloadability: Type.Optional(ClawHubDownloadabilitySchema),
|
|
3995
|
+
remoteError: Type.Optional(Type.String()),
|
|
3996
|
+
metadata: Type.Optional(ClawHubPluginMetadataSchema),
|
|
3823
3997
|
author: Type.Optional(closedObject({
|
|
3824
3998
|
handle: Type.Optional(NonEmptyString),
|
|
3825
3999
|
displayName: Type.Optional(NonEmptyString),
|
|
@@ -3837,8 +4011,9 @@ const PluginDiscoveryDetailSchema = closedObject({
|
|
|
3837
4011
|
providers: Type.Optional(Type.Array(NonEmptyString)),
|
|
3838
4012
|
channels: Type.Optional(Type.Array(NonEmptyString)),
|
|
3839
4013
|
uiCapabilities: Type.Optional(PluginUiCapabilitiesSchema),
|
|
3840
|
-
configuration: Type.Array(
|
|
4014
|
+
configuration: Type.Array(ClawHubPluginConfigFieldSchema),
|
|
3841
4015
|
mcpServers: Type.Array(NonEmptyString),
|
|
4016
|
+
mcpServerDetails: Type.Optional(Type.Array(ClawHubPluginMcpServerSchema)),
|
|
3842
4017
|
skills: Type.Array(closedObject({
|
|
3843
4018
|
name: NonEmptyString,
|
|
3844
4019
|
description: Type.Optional(Type.String())
|
|
@@ -3915,7 +4090,9 @@ const PluginsInspectResultSchema = closedObject({
|
|
|
3915
4090
|
source: Type.Optional(PluginInspectSourceSchema),
|
|
3916
4091
|
declared: PluginDeclaredSurfaceSchema,
|
|
3917
4092
|
components: PluginInstalledComponentsSchema,
|
|
3918
|
-
|
|
4093
|
+
/** Catalog summaries are partial and cannot produce a capability-consent token. */
|
|
4094
|
+
reviewToken: Type.Optional(NonEmptyString),
|
|
4095
|
+
declaredSurfaceStatus: Type.Optional(Type.Union([Type.Literal("partial"), Type.Literal("unavailable")])),
|
|
3919
4096
|
grants: PluginOperatorGrantsSchema,
|
|
3920
4097
|
trust: Type.Optional(PluginInstallTrustSchema),
|
|
3921
4098
|
/** Exact installed-version ClawHub metadata when a canonical package match exists. */
|
|
@@ -4056,13 +4233,7 @@ const PluginsSetEnabledParamsSchema = closedObject({
|
|
|
4056
4233
|
acknowledgeCapabilities: Type.Optional(PluginCapabilityAcknowledgmentSchema)
|
|
4057
4234
|
});
|
|
4058
4235
|
/** Successful plugin enablement policy update. */
|
|
4059
|
-
const PluginsSetEnabledResultSchema = closedObject(
|
|
4060
|
-
ok: Type.Literal(true),
|
|
4061
|
-
plugin: PluginCatalogEntrySchema,
|
|
4062
|
-
restartRequired: Type.Boolean(),
|
|
4063
|
-
runtime: Type.Optional(PluginRuntimeApplicationSchema),
|
|
4064
|
-
warnings: Type.Optional(Type.Array(Type.String()))
|
|
4065
|
-
});
|
|
4236
|
+
const PluginsSetEnabledResultSchema = closedObject(PluginsInstallResultSchema.properties);
|
|
4066
4237
|
//#endregion
|
|
4067
4238
|
//#region packages/gateway-protocol/src/schema/sessions-catalog.ts
|
|
4068
4239
|
const SessionCatalogErrorSchema = closedObject({
|
|
@@ -4224,6 +4395,21 @@ const SessionsCatalogReadResultSchema = closedObject({
|
|
|
4224
4395
|
});
|
|
4225
4396
|
const SessionsCatalogContinueParamsSchema = SessionCatalogLocatorSchema;
|
|
4226
4397
|
const SessionsCatalogContinueResultSchema = closedObject({ sessionKey: NonEmptyString });
|
|
4398
|
+
const SessionsCatalogImportParamsSchema = closedObject({
|
|
4399
|
+
...SessionCatalogLocatorSchema.properties,
|
|
4400
|
+
displayName: Type.Optional(Type.String({
|
|
4401
|
+
minLength: 1,
|
|
4402
|
+
maxLength: 500,
|
|
4403
|
+
description: "Prepared presentation title for a newly created imported session. Ignored when updating an existing import."
|
|
4404
|
+
}))
|
|
4405
|
+
});
|
|
4406
|
+
const SessionsCatalogImportResultSchema = closedObject({
|
|
4407
|
+
sessionKey: NonEmptyString,
|
|
4408
|
+
importedItems: Type.Integer({ minimum: 0 }),
|
|
4409
|
+
totalItems: Type.Integer({ minimum: 0 }),
|
|
4410
|
+
complete: Type.Boolean(),
|
|
4411
|
+
created: Type.Boolean()
|
|
4412
|
+
});
|
|
4227
4413
|
const SessionsCatalogArchiveParamsSchema = closedObject({
|
|
4228
4414
|
...SessionCatalogLocatorSchema.properties,
|
|
4229
4415
|
confirmNoOtherRunner: Type.Literal(true)
|
|
@@ -4315,12 +4501,7 @@ const TerminalCloseParamsSchema = closedObject({ sessionId: NonEmptyString });
|
|
|
4315
4501
|
const TerminalAttachParamsSchema = closedObject({ sessionId: NonEmptyString });
|
|
4316
4502
|
/** Result of a successful attach; mirrors open plus the replay buffer. */
|
|
4317
4503
|
const TerminalAttachResultSchema = closedObject({
|
|
4318
|
-
|
|
4319
|
-
agentId: NonEmptyString,
|
|
4320
|
-
shell: NonEmptyString,
|
|
4321
|
-
cwd: NonEmptyString,
|
|
4322
|
-
confined: Type.Boolean(),
|
|
4323
|
-
title: Type.Optional(NonEmptyString),
|
|
4504
|
+
...TerminalOpenResultSchema.properties,
|
|
4324
4505
|
owner: Type.Optional(Type.Union([Type.Literal("conn"), Type.String({ pattern: "^agent:.+" })])),
|
|
4325
4506
|
buffer: Type.String(),
|
|
4326
4507
|
seq: Type.Optional(Type.Integer({ minimum: 0 }))
|
|
@@ -4393,21 +4574,17 @@ const ApprovalIdSchema = Type.String({
|
|
|
4393
4574
|
pattern: APPROVAL_ID_WELL_FORMED_UNICODE_PATTERN,
|
|
4394
4575
|
description: "Exact full approval id encoded safely in deep-link paths."
|
|
4395
4576
|
});
|
|
4396
|
-
/** Approval owner used to select the safe presentation payload. */
|
|
4397
4577
|
const ApprovalKindSchema = Type.Union([
|
|
4398
4578
|
Type.Literal("exec"),
|
|
4399
4579
|
Type.Literal("plugin"),
|
|
4400
4580
|
Type.Literal("system-agent")
|
|
4401
4581
|
]);
|
|
4402
|
-
/** Reviewer decisions accepted by the unified approval resolver. */
|
|
4403
4582
|
const ApprovalDecisionSchema = Type.Union([
|
|
4404
4583
|
Type.Literal("allow-once"),
|
|
4405
4584
|
Type.Literal("allow-always"),
|
|
4406
4585
|
Type.Literal("deny")
|
|
4407
4586
|
]);
|
|
4408
|
-
/** Reviewer decisions that permit an operation to proceed. */
|
|
4409
4587
|
const ApprovalAllowDecisionSchema = Type.Union([Type.Literal("allow-once"), Type.Literal("allow-always")]);
|
|
4410
|
-
/** Closed reason recorded for a terminal approval transition. */
|
|
4411
4588
|
const ApprovalTerminalReasonSchema = Type.Union([
|
|
4412
4589
|
Type.Literal("user"),
|
|
4413
4590
|
Type.Literal("timeout"),
|
|
@@ -4417,20 +4594,15 @@ const ApprovalTerminalReasonSchema = Type.Union([
|
|
|
4417
4594
|
Type.Literal("gateway-restart"),
|
|
4418
4595
|
Type.Literal("storage-corrupt")
|
|
4419
4596
|
]);
|
|
4420
|
-
/** Terminal reason accepted for an allowed approval. */
|
|
4421
4597
|
const ApprovalAllowedReasonSchema = Type.Union([Type.Literal("user")]);
|
|
4422
|
-
/** Terminal reasons accepted for a denied approval. */
|
|
4423
4598
|
const ApprovalDeniedReasonSchema = Type.Union([
|
|
4424
4599
|
Type.Literal("user"),
|
|
4425
4600
|
Type.Literal("malformed-verdict"),
|
|
4426
4601
|
Type.Literal("no-route"),
|
|
4427
4602
|
Type.Literal("storage-corrupt")
|
|
4428
4603
|
]);
|
|
4429
|
-
/** Terminal reason accepted for an expired approval. */
|
|
4430
4604
|
const ApprovalExpiredReasonSchema = Type.Union([Type.Literal("timeout")]);
|
|
4431
|
-
/** Terminal reasons accepted for a cancelled approval. */
|
|
4432
4605
|
const ApprovalCancelledReasonSchema = Type.Union([Type.Literal("run-aborted"), Type.Literal("gateway-restart")]);
|
|
4433
|
-
/** Reviewer-facing severity for plugin-owned approval requests. */
|
|
4434
4606
|
const PluginApprovalSeveritySchema = Type.Union([
|
|
4435
4607
|
Type.Literal("info"),
|
|
4436
4608
|
Type.Literal("warning"),
|
|
@@ -4581,7 +4753,6 @@ const SystemAgentApprovalPresentationSchema = closedObject({
|
|
|
4581
4753
|
agentId: Type.Optional(Type.Union([NonEmptyString, Type.Null()])),
|
|
4582
4754
|
allowedDecisions: SystemAgentApprovalAllowedDecisionsSchema
|
|
4583
4755
|
});
|
|
4584
|
-
/** Reviewer-safe presentation discriminated by the approval owner. */
|
|
4585
4756
|
const ApprovalPresentationSchema = Type.Union([
|
|
4586
4757
|
ExecApprovalPresentationSchema,
|
|
4587
4758
|
PluginApprovalPresentationSchema,
|
|
@@ -4614,7 +4785,6 @@ const ApprovalResolutionFields = {
|
|
|
4614
4785
|
source: Type.Optional(ApprovalHistorySourceAttributionSchema),
|
|
4615
4786
|
resolver: Type.Optional(ApprovalHistoryResolverAttributionSchema)
|
|
4616
4787
|
};
|
|
4617
|
-
/** Approval that has not yet accepted a reviewer decision. */
|
|
4618
4788
|
const PendingApprovalSnapshotSchema = closedObject({
|
|
4619
4789
|
...ApprovalRecordCommonFields,
|
|
4620
4790
|
status: Type.Literal("pending"),
|
|
@@ -4666,11 +4836,8 @@ const TerminalApprovalSnapshotSchema = Type.Union([
|
|
|
4666
4836
|
ExpiredApprovalSnapshotSchema,
|
|
4667
4837
|
CancelledApprovalSnapshotSchema
|
|
4668
4838
|
]);
|
|
4669
|
-
/** Lookup payload for one approval by its exact full id. */
|
|
4670
4839
|
const ApprovalGetParamsSchema = closedObject({ id: ApprovalRecordCommonFields.id });
|
|
4671
|
-
/** Current durable state for one authorized approval lookup. */
|
|
4672
4840
|
const ApprovalGetResultSchema = closedObject({ approval: ApprovalSnapshotSchema });
|
|
4673
|
-
/** Cursor-based query for the retained terminal approval ledger. */
|
|
4674
4841
|
const ApprovalHistoryParamsSchema = closedObject({
|
|
4675
4842
|
cursor: Type.Optional(Type.String({
|
|
4676
4843
|
minLength: 1,
|
|
@@ -4813,141 +4980,39 @@ function formatValidationErrors(errors) {
|
|
|
4813
4980
|
return unique.length > 0 ? unique.join("; ") : "unknown validation error";
|
|
4814
4981
|
}
|
|
4815
4982
|
//#endregion
|
|
4816
|
-
//#region packages/gateway-protocol/src/schema/
|
|
4817
|
-
const
|
|
4818
|
-
|
|
4819
|
-
|
|
4820
|
-
|
|
4821
|
-
|
|
4822
|
-
|
|
4823
|
-
|
|
4824
|
-
|
|
4825
|
-
|
|
4826
|
-
|
|
4827
|
-
|
|
4828
|
-
|
|
4829
|
-
|
|
4830
|
-
|
|
4831
|
-
|
|
4832
|
-
|
|
4833
|
-
|
|
4834
|
-
|
|
4835
|
-
|
|
4836
|
-
const FailoverReasonSchema = Type.Union(failoverReasonLiteralSchemas);
|
|
4837
|
-
const validatePresenceActivityParams = /* @__PURE__ */ lazyCompile(closedObject({}));
|
|
4838
|
-
const PresenceQueryParamsSchema = closedObject({
|
|
4839
|
-
action: Type.Optional(Type.Union([
|
|
4840
|
-
Type.Literal("list"),
|
|
4841
|
-
Type.Literal("person"),
|
|
4842
|
-
Type.Literal("device")
|
|
4843
|
-
], { description: "List connected people (default), inspect a person, or inspect a connected device." })),
|
|
4844
|
-
person: Type.Optional(Type.String({
|
|
4845
|
-
minLength: 1,
|
|
4846
|
-
maxLength: 320,
|
|
4847
|
-
description: "For person: me, a returned person/profile ID, or an exact unambiguous display name."
|
|
4848
|
-
})),
|
|
4849
|
-
deviceId: Type.Optional(Type.String({
|
|
4850
|
-
minLength: 1,
|
|
4851
|
-
description: "For device: the exact presence device ID returned by this tool."
|
|
4852
|
-
})),
|
|
4853
|
-
include: Type.Optional(Type.Array(Type.Union([
|
|
4854
|
-
Type.Literal("devices"),
|
|
4855
|
-
Type.Literal("network"),
|
|
4856
|
-
Type.Literal("location")
|
|
4857
|
-
]), {
|
|
4858
|
-
uniqueItems: true,
|
|
4859
|
-
maxItems: 3,
|
|
4860
|
-
description: "Optional device details. Network includes IP; location includes approximate IP location without requesting GPS. Each option includes devices."
|
|
4861
|
-
})),
|
|
4862
|
-
limit: Type.Optional(Type.Integer({
|
|
4863
|
-
minimum: 1,
|
|
4864
|
-
maximum: 100,
|
|
4865
|
-
description: "Maximum people returned (default 50, maximum 100); truncation is reported."
|
|
4866
|
-
}))
|
|
4867
|
-
});
|
|
4868
|
-
const PresenceActivitySchema = closedObject({
|
|
4869
|
-
at: Type.Integer({ minimum: 0 }),
|
|
4870
|
-
source: Type.Union([
|
|
4871
|
-
Type.Literal("openclaw-interaction"),
|
|
4872
|
-
Type.Literal("app-input"),
|
|
4873
|
-
Type.Literal("system-input")
|
|
4874
|
-
]),
|
|
4875
|
-
deviceId: NonEmptyString
|
|
4876
|
-
});
|
|
4877
|
-
const PresenceLocationSchema = closedObject({
|
|
4878
|
-
source: Type.Literal("ip"),
|
|
4879
|
-
status: Type.Union([
|
|
4880
|
-
Type.Literal("found"),
|
|
4881
|
-
Type.Literal("not-found"),
|
|
4882
|
-
Type.Literal("unavailable")
|
|
4883
|
-
]),
|
|
4884
|
-
city: Type.Optional(NonEmptyString),
|
|
4885
|
-
region: Type.Optional(NonEmptyString),
|
|
4886
|
-
country: Type.Optional(NonEmptyString),
|
|
4887
|
-
countryCode: Type.Optional(NonEmptyString),
|
|
4888
|
-
attribution: Type.Optional(closedObject({
|
|
4889
|
-
text: NonEmptyString,
|
|
4890
|
-
url: NonEmptyString
|
|
4891
|
-
}))
|
|
4892
|
-
});
|
|
4893
|
-
const PresenceDeviceSchema = closedObject({
|
|
4894
|
-
id: NonEmptyString,
|
|
4895
|
-
nodeId: Type.Optional(NonEmptyString),
|
|
4896
|
-
name: NonEmptyString,
|
|
4897
|
-
kind: Type.Union([Type.Literal("node"), Type.Literal("client")]),
|
|
4898
|
-
personIds: Type.Array(NonEmptyString),
|
|
4899
|
-
online: Type.Literal(true),
|
|
4900
|
-
activity: Type.Union([PresenceActivitySchema, Type.Null()]),
|
|
4901
|
-
connections: Type.Array(closedObject({
|
|
4902
|
-
id: NonEmptyString,
|
|
4903
|
-
clientId: Type.Optional(NonEmptyString),
|
|
4904
|
-
platform: Type.Optional(NonEmptyString),
|
|
4905
|
-
deviceFamily: Type.Optional(NonEmptyString),
|
|
4906
|
-
timeZone: Type.Optional(NonEmptyString),
|
|
4907
|
-
network: Type.Optional(closedObject({ ip: Type.Union([NonEmptyString, Type.Null()]) })),
|
|
4908
|
-
location: Type.Optional(PresenceLocationSchema)
|
|
4909
|
-
}))
|
|
4910
|
-
});
|
|
4911
|
-
const PresencePersonSchema = closedObject({
|
|
4912
|
-
id: NonEmptyString,
|
|
4913
|
-
profileId: Type.Optional(NonEmptyString),
|
|
4914
|
-
name: NonEmptyString,
|
|
4915
|
-
online: Type.Literal(true),
|
|
4916
|
-
onlineSince: Type.Optional(Type.Integer({ minimum: 0 })),
|
|
4917
|
-
activity: Type.Union([PresenceActivitySchema, Type.Null()]),
|
|
4918
|
-
deviceCount: Type.Integer({ minimum: 0 }),
|
|
4919
|
-
devices: Type.Optional(Type.Array(PresenceDeviceSchema))
|
|
4920
|
-
});
|
|
4921
|
-
const PresenceQueryResultSchema = closedObject({
|
|
4922
|
-
observedAt: Type.Integer({ minimum: 0 }),
|
|
4923
|
-
status: Type.Union([
|
|
4924
|
-
Type.Literal("ok"),
|
|
4925
|
-
Type.Literal("ambiguous"),
|
|
4926
|
-
Type.Literal("not-found"),
|
|
4927
|
-
Type.Literal("identity-unavailable")
|
|
4928
|
-
]),
|
|
4929
|
-
people: Type.Array(PresencePersonSchema),
|
|
4930
|
-
devices: Type.Optional(Type.Array(PresenceDeviceSchema)),
|
|
4931
|
-
totalPeople: Type.Integer({ minimum: 0 }),
|
|
4932
|
-
truncated: Type.Boolean(),
|
|
4933
|
-
message: Type.Optional(NonEmptyString)
|
|
4934
|
-
});
|
|
4935
|
-
//#endregion
|
|
4936
|
-
//#region packages/gateway-protocol/src/schema/worker-protocol-primitives.ts
|
|
4937
|
-
const WORKER_PUBLIC_INGRESS_PATH = "/__openclaw__/worker";
|
|
4938
|
-
const WORKER_PROTOCOL_MAX_IDENTIFIER_LENGTH = 256;
|
|
4939
|
-
const WORKER_PROTOCOL_MAX_FRAME_ID_LENGTH = 128;
|
|
4940
|
-
const WORKER_PROTOCOL_MAX_PAYLOAD_BYTES = 65536;
|
|
4941
|
-
const WORKER_PROTOCOL_MAX_MEDIA_PAYLOAD_BYTES = 26214400;
|
|
4942
|
-
const WorkerIdentifierSchema = Type.String({
|
|
4943
|
-
minLength: 1,
|
|
4944
|
-
maxLength: 256,
|
|
4945
|
-
pattern: "^\\S(?:.*\\S)?$"
|
|
4983
|
+
//#region packages/gateway-protocol/src/schema/worker-protocol-primitives.ts
|
|
4984
|
+
const WORKER_PUBLIC_INGRESS_PATH = "/__openclaw__/worker";
|
|
4985
|
+
const WORKER_PROTOCOL_MAX_IDENTIFIER_LENGTH = 256;
|
|
4986
|
+
const WORKER_PROTOCOL_MAX_FRAME_ID_LENGTH = 128;
|
|
4987
|
+
const WORKER_PROTOCOL_MAX_PAYLOAD_BYTES = 65536;
|
|
4988
|
+
const WORKER_PROTOCOL_MAX_MEDIA_PAYLOAD_BYTES = 26214400;
|
|
4989
|
+
/** Image data alone may exceed the ordinary control-frame budget. */
|
|
4990
|
+
function isWorkerFrameWithinBudget(frame, readImageData) {
|
|
4991
|
+
try {
|
|
4992
|
+
const bytes = Buffer.byteLength(JSON.stringify(frame), "utf8");
|
|
4993
|
+
if (bytes > 26214400) return false;
|
|
4994
|
+
return bytes - readImageData().reduce((total, data) => total + Buffer.byteLength(JSON.stringify(data), "utf8") - 2, 0) <= WORKER_PROTOCOL_MAX_PAYLOAD_BYTES;
|
|
4995
|
+
} catch {
|
|
4996
|
+
return false;
|
|
4997
|
+
}
|
|
4998
|
+
}
|
|
4999
|
+
const WorkerIdentifierSchema = Type.String({
|
|
5000
|
+
minLength: 1,
|
|
5001
|
+
maxLength: 256,
|
|
5002
|
+
pattern: "^\\S(?:.*\\S)?$"
|
|
4946
5003
|
});
|
|
4947
5004
|
const WorkerFrameIdSchema = Type.String({
|
|
4948
5005
|
minLength: 1,
|
|
4949
5006
|
maxLength: 128
|
|
4950
5007
|
});
|
|
5008
|
+
function workerRequestSchema(method, params) {
|
|
5009
|
+
return closedObject({
|
|
5010
|
+
type: Type.Literal("req"),
|
|
5011
|
+
id: WorkerFrameIdSchema,
|
|
5012
|
+
method: Type.Literal(method),
|
|
5013
|
+
params
|
|
5014
|
+
});
|
|
5015
|
+
}
|
|
4951
5016
|
const WorkerAdmissionFailureReasonSchema = Type.Union([
|
|
4952
5017
|
Type.Literal("invalid-credential"),
|
|
4953
5018
|
Type.Literal("credential-expired"),
|
|
@@ -4974,24 +5039,37 @@ const WorkerProtocolCloseReasonSchema = Type.Union([
|
|
|
4974
5039
|
Type.Literal("credential-replaced"),
|
|
4975
5040
|
Type.Literal("gateway-shutdown")
|
|
4976
5041
|
]);
|
|
4977
|
-
const WorkerErrorCodeSchema = Type.Union([Type.Literal("INVALID_REQUEST"), Type.Literal("UNAVAILABLE")]);
|
|
4978
|
-
const WorkerErrorDetailsSchema = closedObject({ reason: WorkerProtocolCloseReasonSchema });
|
|
4979
5042
|
const WorkerErrorShapeSchema = closedObject({
|
|
4980
|
-
code:
|
|
5043
|
+
code: Type.Union([Type.Literal("INVALID_REQUEST"), Type.Literal("UNAVAILABLE")]),
|
|
4981
5044
|
message: Type.String({
|
|
4982
5045
|
minLength: 1,
|
|
4983
5046
|
maxLength: 256
|
|
4984
5047
|
}),
|
|
4985
|
-
details:
|
|
5048
|
+
details: closedObject({ reason: WorkerProtocolCloseReasonSchema }),
|
|
4986
5049
|
retryable: Type.Optional(Type.Boolean()),
|
|
4987
5050
|
retryAfterMs: Type.Optional(Type.Integer({ minimum: 0 }))
|
|
4988
5051
|
});
|
|
4989
|
-
|
|
4990
|
-
|
|
4991
|
-
|
|
4992
|
-
|
|
4993
|
-
|
|
4994
|
-
|
|
5052
|
+
function workerErrorResponseSchema(error) {
|
|
5053
|
+
return closedObject({
|
|
5054
|
+
type: Type.Literal("res"),
|
|
5055
|
+
id: WorkerFrameIdSchema,
|
|
5056
|
+
ok: Type.Literal(false),
|
|
5057
|
+
error
|
|
5058
|
+
});
|
|
5059
|
+
}
|
|
5060
|
+
const WorkerErrorResponseFrameSchema = workerErrorResponseSchema(WorkerErrorShapeSchema);
|
|
5061
|
+
function workerResponseSchema(payload, ...errors) {
|
|
5062
|
+
return Type.Union([
|
|
5063
|
+
closedObject({
|
|
5064
|
+
type: Type.Literal("res"),
|
|
5065
|
+
id: WorkerFrameIdSchema,
|
|
5066
|
+
ok: Type.Literal(true),
|
|
5067
|
+
payload
|
|
5068
|
+
}),
|
|
5069
|
+
...errors,
|
|
5070
|
+
WorkerErrorResponseFrameSchema
|
|
5071
|
+
]);
|
|
5072
|
+
}
|
|
4995
5073
|
const WorkerTranscriptUsageSchema = closedObject({
|
|
4996
5074
|
input: Type.Number({ minimum: 0 }),
|
|
4997
5075
|
output: Type.Number({ minimum: 0 }),
|
|
@@ -5035,1083 +5113,525 @@ const LiveSequenceSchema = Type.Integer({
|
|
|
5035
5113
|
minimum: 1,
|
|
5036
5114
|
maximum: Number.MAX_SAFE_INTEGER
|
|
5037
5115
|
});
|
|
5038
|
-
//#endregion
|
|
5039
|
-
//#region packages/gateway-protocol/src/schema/worker-computer.ts
|
|
5040
|
-
const WORKER_COMPUTER_PROTOCOL_FEATURE = "worker-computer-v1";
|
|
5041
|
-
const WorkerComputerParamsSchema = closedObject({
|
|
5042
|
-
command: Type.Enum(["screen.snapshot", "computer.act"], { type: "string" }),
|
|
5043
|
-
paramsJson: Type.String({
|
|
5044
|
-
minLength: 2,
|
|
5045
|
-
maxLength: WORKER_PROTOCOL_MAX_PAYLOAD_BYTES
|
|
5046
|
-
}),
|
|
5047
|
-
timeoutMs: Type.Optional(Type.Integer({
|
|
5048
|
-
minimum: 1,
|
|
5049
|
-
maximum: 12e4
|
|
5050
|
-
})),
|
|
5051
|
-
idempotencyKey: Type.Optional(WorkerIdentifierSchema)
|
|
5052
|
-
});
|
|
5053
|
-
const WorkerComputerResultSchema = closedObject({ resultJson: Type.String({
|
|
5054
|
-
minLength: 2,
|
|
5055
|
-
maxLength: WORKER_PROTOCOL_MAX_MEDIA_PAYLOAD_BYTES
|
|
5056
|
-
}) });
|
|
5057
|
-
const WorkerComputerResponseFrameSchema = Type.Union([closedObject({
|
|
5058
|
-
type: Type.Literal("res"),
|
|
5059
|
-
id: WorkerFrameIdSchema,
|
|
5060
|
-
ok: Type.Literal(true),
|
|
5061
|
-
payload: WorkerComputerResultSchema
|
|
5062
|
-
}), WorkerErrorResponseFrameSchema]);
|
|
5063
|
-
//#endregion
|
|
5064
|
-
//#region packages/gateway-protocol/src/schema/worker-admission.ts
|
|
5065
|
-
const WORKER_RPC_SET_VERSION = 1;
|
|
5066
|
-
const WORKER_BUNDLE_PREWARM_VERSION = 1;
|
|
5067
|
-
const WORKER_HEARTBEAT_INTERVAL_MS = 15e3;
|
|
5068
|
-
const WORKER_PROTOCOL_METHODS = [
|
|
5069
|
-
"worker.heartbeat",
|
|
5070
|
-
"worker.transcript.commit",
|
|
5071
|
-
"worker.live-event",
|
|
5072
|
-
"worker.sessions.spawn",
|
|
5073
|
-
"worker.sessions.send",
|
|
5074
|
-
"worker.portal",
|
|
5075
|
-
"worker.computer",
|
|
5076
|
-
"worker.skill-workshop",
|
|
5077
|
-
"worker.presence"
|
|
5078
|
-
];
|
|
5079
|
-
const WORKER_TRANSCRIPT_COMMIT_PROTOCOL_FEATURE = "worker-transcript-commit-v1";
|
|
5080
|
-
const WORKER_LIVE_EVENT_PROTOCOL_FEATURE = "worker-live-event-v1";
|
|
5081
|
-
const WORKER_LAUNCH_V2_PROTOCOL_FEATURE = "worker-launch-v2";
|
|
5082
|
-
const WORKER_EXECUTION_CONTEXT_PROTOCOL_FEATURE = "worker-execution-context-v2";
|
|
5083
|
-
const WORKER_EXECUTION_AUTHORITY_PROTOCOL_FEATURE = "worker-execution-authority-v1";
|
|
5084
|
-
const WORKER_LINEAGE_START_PROTOCOL_FEATURE = "worker-lineage-start-v1";
|
|
5085
|
-
const NODE_WORKER_IDLE_RETENTION_PROTOCOL_FEATURE = "node-worker-idle-retention-v1";
|
|
5086
|
-
const WORKER_SESSION_TOOLS_PROTOCOL_FEATURE = "worker-session-tools-v1";
|
|
5087
|
-
const WORKER_PORTAL_PROTOCOL_FEATURE = "worker-portal-v1";
|
|
5088
|
-
const WORKER_PRESENCE_PROTOCOL_FEATURE = "worker-presence-v1";
|
|
5089
|
-
const WORKER_PROTOCOL_FEATURES = [
|
|
5090
|
-
"skill-resources-v1",
|
|
5091
|
-
"worker-skill-workshop-v1",
|
|
5092
|
-
"worker-heartbeat-v1",
|
|
5093
|
-
WORKER_TRANSCRIPT_COMMIT_PROTOCOL_FEATURE,
|
|
5094
|
-
WORKER_LIVE_EVENT_PROTOCOL_FEATURE,
|
|
5095
|
-
WORKER_EXECUTION_CONTEXT_PROTOCOL_FEATURE,
|
|
5096
|
-
WORKER_EXECUTION_AUTHORITY_PROTOCOL_FEATURE,
|
|
5097
|
-
WORKER_LINEAGE_START_PROTOCOL_FEATURE,
|
|
5098
|
-
NODE_WORKER_IDLE_RETENTION_PROTOCOL_FEATURE,
|
|
5099
|
-
WORKER_SESSION_TOOLS_PROTOCOL_FEATURE,
|
|
5100
|
-
WORKER_PORTAL_PROTOCOL_FEATURE,
|
|
5101
|
-
WORKER_PRESENCE_PROTOCOL_FEATURE,
|
|
5102
|
-
WORKER_COMPUTER_PROTOCOL_FEATURE,
|
|
5103
|
-
"worker-inference-v1"
|
|
5104
|
-
];
|
|
5105
|
-
const WORKER_PROTOCOL_MAX_METHOD_LENGTH = 64;
|
|
5106
|
-
const WORKER_PROTOCOL_MAX_FEATURES = 64;
|
|
5107
|
-
const WORKER_PROTOCOL_MAX_FEATURE_LENGTH = 128;
|
|
5108
|
-
const WORKER_TRANSCRIPT_MAX_BATCH_MESSAGES = 64;
|
|
5109
5116
|
const WORKER_TRANSCRIPT_MAX_CONTENT_PARTS = 128;
|
|
5110
5117
|
const WORKER_TRANSCRIPT_MAX_JSON_DEPTH = 32;
|
|
5111
|
-
const WORKER_SESSION_TOOL_MAX_TEXT_LENGTH = 8192;
|
|
5112
5118
|
const WORKER_PROVIDER_REPLAY_MAX_DATA_BYTES = WORKER_PROTOCOL_MAX_PAYLOAD_BYTES;
|
|
5113
|
-
const
|
|
5114
|
-
minLength:
|
|
5115
|
-
maxLength:
|
|
5116
|
-
|
|
5117
|
-
const WorkerProtocolFeatureSchema = Type.String({
|
|
5118
|
-
minLength: 1,
|
|
5119
|
-
maxLength: 128
|
|
5119
|
+
const WorkerReplayHashSchema = Type.String({
|
|
5120
|
+
minLength: 2,
|
|
5121
|
+
maxLength: 16,
|
|
5122
|
+
pattern: "^[a-z0-9]+$"
|
|
5120
5123
|
});
|
|
5121
|
-
|
|
5122
|
-
|
|
5123
|
-
|
|
5124
|
-
|
|
5125
|
-
maxLength: 64,
|
|
5126
|
-
pattern: "^[a-f0-9]{64}$"
|
|
5127
|
-
}),
|
|
5128
|
-
openclawVersion: Type.String({
|
|
5124
|
+
const WorkerProviderReplayStateSchema = closedObject({
|
|
5125
|
+
v: Type.Literal(1),
|
|
5126
|
+
type: WorkerIdentifierSchema,
|
|
5127
|
+
id: Type.Optional(Type.String({
|
|
5129
5128
|
minLength: 1,
|
|
5130
|
-
maxLength:
|
|
5131
|
-
}),
|
|
5132
|
-
|
|
5133
|
-
|
|
5134
|
-
|
|
5129
|
+
maxLength: WORKER_PROTOCOL_MAX_PAYLOAD_BYTES
|
|
5130
|
+
})),
|
|
5131
|
+
data: Type.String({
|
|
5132
|
+
minLength: 1,
|
|
5133
|
+
maxLength: WORKER_PROVIDER_REPLAY_MAX_DATA_BYTES
|
|
5135
5134
|
}),
|
|
5136
|
-
|
|
5137
|
-
minimum: 1,
|
|
5138
|
-
maximum: Number.MAX_SAFE_INTEGER
|
|
5139
|
-
}))
|
|
5140
|
-
}));
|
|
5141
|
-
const WorkerConnectAdmissionCommonProperties = {
|
|
5142
|
-
environmentId: WorkerIdentifierSchema,
|
|
5143
|
-
credential: WorkerCredentialSchema,
|
|
5144
|
-
ownerEpoch: Type.Integer({
|
|
5135
|
+
replayIndex: Type.Optional(Type.Integer({
|
|
5145
5136
|
minimum: 0,
|
|
5146
5137
|
maximum: Number.MAX_SAFE_INTEGER
|
|
5147
|
-
}),
|
|
5148
|
-
|
|
5149
|
-
|
|
5150
|
-
|
|
5151
|
-
|
|
5152
|
-
|
|
5153
|
-
|
|
5154
|
-
|
|
5155
|
-
|
|
5156
|
-
|
|
5157
|
-
|
|
5158
|
-
|
|
5159
|
-
|
|
5160
|
-
|
|
5161
|
-
runId: WorkerIdentifierSchema
|
|
5162
|
-
})]);
|
|
5163
|
-
/** Dedicated first-frame payload accepted only on the worker ingress. */
|
|
5164
|
-
const WorkerConnectParamsSchema = closedObject({
|
|
5165
|
-
minProtocol: Type.Integer({ minimum: 1 }),
|
|
5166
|
-
maxProtocol: Type.Integer({ minimum: 1 }),
|
|
5167
|
-
client: closedObject({
|
|
5168
|
-
id: Type.Literal(GATEWAY_CLIENT_IDS.WORKER),
|
|
5169
|
-
version: Type.String({
|
|
5170
|
-
minLength: 1,
|
|
5171
|
-
maxLength: 128
|
|
5138
|
+
})),
|
|
5139
|
+
provider: WorkerIdentifierSchema,
|
|
5140
|
+
api: WorkerIdentifierSchema,
|
|
5141
|
+
model: WorkerIdentifierSchema,
|
|
5142
|
+
baseUrlHash: Type.Optional(WorkerReplayHashSchema),
|
|
5143
|
+
sessionHash: Type.Optional(WorkerReplayHashSchema),
|
|
5144
|
+
authProfileHash: Type.Optional(WorkerReplayHashSchema)
|
|
5145
|
+
});
|
|
5146
|
+
function workerContentSchemas(text, signature, imageData) {
|
|
5147
|
+
return {
|
|
5148
|
+
text: closedObject({
|
|
5149
|
+
type: Type.Literal("text"),
|
|
5150
|
+
text,
|
|
5151
|
+
textSignature: Type.Optional(signature)
|
|
5172
5152
|
}),
|
|
5173
|
-
|
|
5174
|
-
|
|
5175
|
-
|
|
5153
|
+
image: closedObject({
|
|
5154
|
+
type: Type.Literal("image"),
|
|
5155
|
+
data: imageData,
|
|
5156
|
+
mimeType: Type.String({
|
|
5157
|
+
minLength: 1,
|
|
5158
|
+
maxLength: 256
|
|
5159
|
+
})
|
|
5176
5160
|
}),
|
|
5177
|
-
|
|
5178
|
-
|
|
5179
|
-
|
|
5180
|
-
|
|
5161
|
+
thinking: closedObject({
|
|
5162
|
+
type: Type.Literal("thinking"),
|
|
5163
|
+
thinking: text,
|
|
5164
|
+
thinkingSignature: Type.Optional(signature),
|
|
5165
|
+
redacted: Type.Optional(Type.Boolean())
|
|
5166
|
+
}),
|
|
5167
|
+
toolCall: closedObject({
|
|
5168
|
+
type: Type.Literal("toolCall"),
|
|
5169
|
+
id: WorkerIdentifierSchema,
|
|
5170
|
+
name: WorkerIdentifierSchema,
|
|
5171
|
+
arguments: Type.Record(Type.String({
|
|
5172
|
+
minLength: 1,
|
|
5173
|
+
maxLength: 256
|
|
5174
|
+
}), Type.Unknown()),
|
|
5175
|
+
thoughtSignature: Type.Optional(signature),
|
|
5176
|
+
executionMode: Type.Optional(Type.Enum(["sequential", "parallel"]))
|
|
5177
|
+
})
|
|
5178
|
+
};
|
|
5179
|
+
}
|
|
5180
|
+
function workerMessageSchemas(text, signature, timestamp) {
|
|
5181
|
+
const content = workerContentSchemas(text, signature, Type.String({
|
|
5182
|
+
minLength: 1,
|
|
5183
|
+
maxLength: WORKER_PROTOCOL_MAX_MEDIA_PAYLOAD_BYTES
|
|
5184
|
+
}));
|
|
5185
|
+
const textOrImage = Type.Union([content.text, content.image]);
|
|
5186
|
+
const assistant = {
|
|
5187
|
+
role: Type.Literal("assistant"),
|
|
5188
|
+
content: Type.Array(Type.Union([
|
|
5189
|
+
content.text,
|
|
5190
|
+
content.thinking,
|
|
5191
|
+
content.toolCall
|
|
5192
|
+
]), { maxItems: 128 }),
|
|
5193
|
+
api: WorkerIdentifierSchema,
|
|
5194
|
+
provider: WorkerIdentifierSchema,
|
|
5195
|
+
model: WorkerIdentifierSchema,
|
|
5196
|
+
responseModel: Type.Optional(WorkerIdentifierSchema),
|
|
5197
|
+
responseId: Type.Optional(WorkerIdentifierSchema),
|
|
5198
|
+
providerReplay: Type.Optional(WorkerProviderReplayStateSchema),
|
|
5199
|
+
usage: WorkerTranscriptUsageSchema,
|
|
5200
|
+
timestamp
|
|
5201
|
+
};
|
|
5202
|
+
return {
|
|
5203
|
+
image: content.image,
|
|
5204
|
+
userContent: Type.Array(textOrImage, {
|
|
5205
|
+
minItems: 1,
|
|
5206
|
+
maxItems: 128
|
|
5207
|
+
}),
|
|
5208
|
+
assistant,
|
|
5209
|
+
contextAssistant: closedObject({
|
|
5210
|
+
...assistant,
|
|
5211
|
+
diagnostics: Type.Optional(Type.Array(WorkerTranscriptAssistantDiagnosticSchema, { maxItems: 128 })),
|
|
5212
|
+
stopReason: Type.Enum([
|
|
5213
|
+
"stop",
|
|
5214
|
+
"length",
|
|
5215
|
+
"toolUse",
|
|
5216
|
+
"error",
|
|
5217
|
+
"aborted"
|
|
5218
|
+
]),
|
|
5219
|
+
errorMessage: Type.Optional(text),
|
|
5220
|
+
errorCode: Type.Optional(Type.String({ maxLength: 256 })),
|
|
5221
|
+
errorType: Type.Optional(Type.String({ maxLength: 256 })),
|
|
5222
|
+
errorBody: Type.Optional(text)
|
|
5223
|
+
}),
|
|
5224
|
+
toolResult: closedObject({
|
|
5225
|
+
role: Type.Literal("toolResult"),
|
|
5226
|
+
toolCallId: WorkerIdentifierSchema,
|
|
5227
|
+
toolName: WorkerIdentifierSchema,
|
|
5228
|
+
content: Type.Array(textOrImage, { maxItems: 128 }),
|
|
5229
|
+
details: Type.Optional(Type.Unknown()),
|
|
5230
|
+
isError: Type.Boolean(),
|
|
5231
|
+
timestamp
|
|
5232
|
+
})
|
|
5233
|
+
};
|
|
5234
|
+
}
|
|
5235
|
+
function checkWorkerProtocolJson(data) {
|
|
5236
|
+
return checkProtocolJson(data, 32);
|
|
5237
|
+
}
|
|
5238
|
+
//#endregion
|
|
5239
|
+
//#region packages/gateway-protocol/src/schema/worker-inference.ts
|
|
5240
|
+
const WORKER_INFERENCE_PROTOCOL_FEATURE = "worker-inference-v1";
|
|
5241
|
+
const WORKER_INFERENCE_METHODS = ["worker.inference.start", "worker.inference.cancel"];
|
|
5242
|
+
const WORKER_PROTOCOL_MAX_INFERENCE_PAYLOAD_BYTES = WORKER_PROTOCOL_MAX_MEDIA_PAYLOAD_BYTES;
|
|
5243
|
+
const WORKER_INFERENCE_MAX_CONTEXT_MESSAGES = 1024;
|
|
5244
|
+
const WORKER_INFERENCE_MAX_TOOLS = 256;
|
|
5245
|
+
const WORKER_INFERENCE_MAX_OUTPUT_TOKENS = 1e6;
|
|
5246
|
+
const InferenceTextSchema = Type.String({ maxLength: WORKER_PROTOCOL_MAX_INFERENCE_PAYLOAD_BYTES });
|
|
5247
|
+
const OptionalInferenceTextSchema = Type.Optional(InferenceTextSchema);
|
|
5248
|
+
const inferenceSchemas = workerMessageSchemas(InferenceTextSchema, InferenceTextSchema, LiveIntegerSchema);
|
|
5249
|
+
const WorkerInferenceImageContentSchema = inferenceSchemas.image;
|
|
5250
|
+
const WorkerInferenceAssistantMessageSchema = closedObject({
|
|
5251
|
+
...inferenceSchemas.assistant,
|
|
5252
|
+
stopReason: Type.Enum([
|
|
5253
|
+
"stop",
|
|
5254
|
+
"length",
|
|
5255
|
+
"toolUse"
|
|
5256
|
+
])
|
|
5181
5257
|
});
|
|
5182
|
-
const
|
|
5183
|
-
|
|
5184
|
-
|
|
5185
|
-
|
|
5186
|
-
|
|
5187
|
-
|
|
5188
|
-
|
|
5189
|
-
|
|
5190
|
-
|
|
5191
|
-
|
|
5192
|
-
|
|
5193
|
-
|
|
5194
|
-
|
|
5195
|
-
maximum: Number.MAX_SAFE_INTEGER
|
|
5196
|
-
}),
|
|
5197
|
-
rpcSetVersion: Type.Integer({
|
|
5198
|
-
minimum: 1,
|
|
5199
|
-
maximum: Number.MAX_SAFE_INTEGER
|
|
5258
|
+
const WorkerInferenceMessageSchema = Type.Union([
|
|
5259
|
+
closedObject({
|
|
5260
|
+
role: Type.Literal("user"),
|
|
5261
|
+
content: Type.Union([InferenceTextSchema, Type.Array(closedObject({
|
|
5262
|
+
type: Type.Literal("text"),
|
|
5263
|
+
text: InferenceTextSchema,
|
|
5264
|
+
textSignature: Type.Optional(InferenceTextSchema)
|
|
5265
|
+
}), {
|
|
5266
|
+
minItems: 1,
|
|
5267
|
+
maxItems: 128
|
|
5268
|
+
})]),
|
|
5269
|
+
timestamp: LiveIntegerSchema,
|
|
5270
|
+
runtimeContext: closedObject({ retained: Type.Optional(Type.Boolean()) })
|
|
5200
5271
|
}),
|
|
5201
|
-
|
|
5202
|
-
|
|
5203
|
-
|
|
5272
|
+
closedObject({
|
|
5273
|
+
role: Type.Literal("user"),
|
|
5274
|
+
content: Type.Union([InferenceTextSchema, inferenceSchemas.userContent]),
|
|
5275
|
+
timestamp: LiveIntegerSchema
|
|
5204
5276
|
}),
|
|
5205
|
-
|
|
5206
|
-
|
|
5207
|
-
heartbeatIntervalMs: Type.Integer({ minimum: 1 }),
|
|
5208
|
-
maxPayload: Type.Integer({ minimum: 1 })
|
|
5209
|
-
})
|
|
5210
|
-
});
|
|
5211
|
-
const WorkerAdmissionSuccessResponseFrameSchema = closedObject({
|
|
5212
|
-
type: Type.Literal("res"),
|
|
5213
|
-
id: WorkerFrameIdSchema,
|
|
5214
|
-
ok: Type.Literal(true),
|
|
5215
|
-
payload: WorkerHelloOkSchema
|
|
5216
|
-
});
|
|
5217
|
-
const WorkerAdmissionResponseFrameSchema = Type.Union([WorkerAdmissionSuccessResponseFrameSchema, WorkerErrorResponseFrameSchema]);
|
|
5218
|
-
const WorkerStatusSchema = Type.Union([
|
|
5219
|
-
Type.Literal("ready"),
|
|
5220
|
-
Type.Literal("busy"),
|
|
5221
|
-
Type.Literal("draining")
|
|
5277
|
+
inferenceSchemas.contextAssistant,
|
|
5278
|
+
inferenceSchemas.toolResult
|
|
5222
5279
|
]);
|
|
5223
|
-
const
|
|
5224
|
-
|
|
5225
|
-
|
|
5226
|
-
|
|
5227
|
-
const WorkerHeartbeatResultSchema = closedObject({
|
|
5228
|
-
receivedAtMs: Type.Integer({ minimum: 0 }),
|
|
5229
|
-
status: Type.Literal("ok"),
|
|
5230
|
-
ownerEpoch: Type.Integer({
|
|
5231
|
-
minimum: 0,
|
|
5232
|
-
maximum: Number.MAX_SAFE_INTEGER
|
|
5233
|
-
})
|
|
5280
|
+
const WorkerInferenceToolSchema = closedObject({
|
|
5281
|
+
name: WorkerIdentifierSchema,
|
|
5282
|
+
description: LiveTextSchema,
|
|
5283
|
+
parameters: Type.Unknown()
|
|
5234
5284
|
});
|
|
5235
|
-
const
|
|
5236
|
-
|
|
5237
|
-
|
|
5238
|
-
method: Type.Literal(WORKER_PROTOCOL_METHODS[0]),
|
|
5239
|
-
params: WorkerHeartbeatParamsSchema
|
|
5285
|
+
const WorkerInferenceModelRefSchema = closedObject({
|
|
5286
|
+
provider: WorkerIdentifierSchema,
|
|
5287
|
+
model: WorkerIdentifierSchema
|
|
5240
5288
|
});
|
|
5241
|
-
const
|
|
5242
|
-
|
|
5243
|
-
|
|
5244
|
-
|
|
5245
|
-
payload: WorkerHeartbeatResultSchema
|
|
5289
|
+
const WorkerInferenceContextSchema = closedObject({
|
|
5290
|
+
systemPrompt: Type.Optional(InferenceTextSchema),
|
|
5291
|
+
messages: Type.Array(WorkerInferenceMessageSchema, { maxItems: WORKER_INFERENCE_MAX_CONTEXT_MESSAGES }),
|
|
5292
|
+
tools: Type.Optional(Type.Array(WorkerInferenceToolSchema, { maxItems: WORKER_INFERENCE_MAX_TOOLS }))
|
|
5246
5293
|
});
|
|
5247
|
-
const
|
|
5248
|
-
|
|
5249
|
-
|
|
5250
|
-
maxLength: 256
|
|
5294
|
+
const WorkerInferenceThinkingBudgetSchema = Type.Integer({
|
|
5295
|
+
minimum: 0,
|
|
5296
|
+
maximum: WORKER_INFERENCE_MAX_OUTPUT_TOKENS
|
|
5251
5297
|
});
|
|
5252
|
-
const
|
|
5253
|
-
|
|
5254
|
-
|
|
5255
|
-
|
|
5256
|
-
|
|
5257
|
-
|
|
5258
|
-
label: Type.Optional(Type.String({
|
|
5259
|
-
minLength: 1,
|
|
5260
|
-
maxLength: 256
|
|
5261
|
-
})),
|
|
5262
|
-
agentId: Type.Optional(WorkerIdentifierSchema),
|
|
5263
|
-
model: Type.Optional(Type.String({
|
|
5264
|
-
minLength: 1,
|
|
5265
|
-
maxLength: 256
|
|
5266
|
-
})),
|
|
5267
|
-
runTimeoutSeconds: Type.Optional(Type.Integer({
|
|
5268
|
-
minimum: 0,
|
|
5269
|
-
maximum: 86400
|
|
5270
|
-
}))
|
|
5298
|
+
const WorkerInferenceThinkingBudgetsSchema = closedObject({
|
|
5299
|
+
minimal: Type.Optional(WorkerInferenceThinkingBudgetSchema),
|
|
5300
|
+
low: Type.Optional(WorkerInferenceThinkingBudgetSchema),
|
|
5301
|
+
medium: Type.Optional(WorkerInferenceThinkingBudgetSchema),
|
|
5302
|
+
high: Type.Optional(WorkerInferenceThinkingBudgetSchema),
|
|
5303
|
+
max: Type.Optional(WorkerInferenceThinkingBudgetSchema)
|
|
5271
5304
|
});
|
|
5272
|
-
const
|
|
5273
|
-
|
|
5274
|
-
sessionKey: Type.String({
|
|
5275
|
-
minLength: 1,
|
|
5276
|
-
maxLength: 1024
|
|
5277
|
-
}),
|
|
5278
|
-
message: Type.String({
|
|
5279
|
-
minLength: 1,
|
|
5280
|
-
maxLength: WORKER_SESSION_TOOL_MAX_TEXT_LENGTH
|
|
5281
|
-
}),
|
|
5282
|
-
timeoutSeconds: Type.Optional(Type.Integer({
|
|
5305
|
+
const WorkerInferenceOptionsSchema = closedObject({
|
|
5306
|
+
temperature: Type.Optional(Type.Number({
|
|
5283
5307
|
minimum: 0,
|
|
5284
|
-
maximum:
|
|
5285
|
-
}))
|
|
5286
|
-
});
|
|
5287
|
-
const WorkerPortalParamsSchema = closedObject({
|
|
5288
|
-
toolCallId: WorkerSessionToolCallIdSchema,
|
|
5289
|
-
action: Type.Union([
|
|
5290
|
-
Type.Literal("open"),
|
|
5291
|
-
Type.Literal("list"),
|
|
5292
|
-
Type.Literal("close")
|
|
5293
|
-
]),
|
|
5294
|
-
port: Type.Optional(Type.Integer({
|
|
5295
|
-
minimum: 1,
|
|
5296
|
-
maximum: 65535
|
|
5297
|
-
})),
|
|
5298
|
-
title: Type.Optional(Type.String({
|
|
5299
|
-
minLength: 1,
|
|
5300
|
-
maxLength: 256
|
|
5301
|
-
})),
|
|
5302
|
-
description: Type.Optional(Type.String({ maxLength: WORKER_SESSION_TOOL_MAX_TEXT_LENGTH })),
|
|
5303
|
-
path: Type.Optional(Type.String({
|
|
5304
|
-
maxLength: 1024,
|
|
5305
|
-
pattern: "^/"
|
|
5308
|
+
maximum: 2
|
|
5306
5309
|
})),
|
|
5307
|
-
|
|
5308
|
-
|
|
5309
|
-
|
|
5310
|
-
}))
|
|
5311
|
-
});
|
|
5312
|
-
const WorkerPresenceParamsSchema = closedObject({
|
|
5313
|
-
toolCallId: WorkerSessionToolCallIdSchema,
|
|
5314
|
-
...PresenceQueryParamsSchema.properties
|
|
5315
|
-
});
|
|
5316
|
-
const WorkerSessionToolResultSchema = closedObject({ resultJson: Type.String({
|
|
5317
|
-
minLength: 2,
|
|
5318
|
-
maxLength: WORKER_PROTOCOL_MAX_PAYLOAD_BYTES
|
|
5319
|
-
}) });
|
|
5320
|
-
const WorkerSessionToolResponseFrameSchema = Type.Union([closedObject({
|
|
5321
|
-
type: Type.Literal("res"),
|
|
5322
|
-
id: WorkerFrameIdSchema,
|
|
5323
|
-
ok: Type.Literal(true),
|
|
5324
|
-
payload: WorkerSessionToolResultSchema
|
|
5325
|
-
}), WorkerErrorResponseFrameSchema]);
|
|
5326
|
-
const WorkerSessionsSpawnResponseFrameSchema = WorkerSessionToolResponseFrameSchema;
|
|
5327
|
-
const WorkerSessionsSendResponseFrameSchema = WorkerSessionToolResponseFrameSchema;
|
|
5328
|
-
const WorkerPortalResponseFrameSchema = WorkerSessionToolResponseFrameSchema;
|
|
5329
|
-
const WorkerPresenceResponseFrameSchema = WorkerSessionToolResponseFrameSchema;
|
|
5330
|
-
const WorkerTranscriptTextContentSchema = closedObject({
|
|
5331
|
-
type: Type.Literal("text"),
|
|
5332
|
-
text: Type.String({ maxLength: WORKER_PROTOCOL_MAX_PAYLOAD_BYTES }),
|
|
5333
|
-
textSignature: Type.Optional(Type.String({
|
|
5334
|
-
minLength: 1,
|
|
5335
|
-
maxLength: WORKER_PROTOCOL_MAX_PAYLOAD_BYTES
|
|
5336
|
-
}))
|
|
5337
|
-
});
|
|
5338
|
-
const WorkerTranscriptThinkingContentSchema = closedObject({
|
|
5339
|
-
type: Type.Literal("thinking"),
|
|
5340
|
-
thinking: Type.String({ maxLength: WORKER_PROTOCOL_MAX_PAYLOAD_BYTES }),
|
|
5341
|
-
thinkingSignature: Type.Optional(Type.String({
|
|
5342
|
-
minLength: 1,
|
|
5343
|
-
maxLength: WORKER_PROTOCOL_MAX_PAYLOAD_BYTES
|
|
5310
|
+
maxTokens: Type.Optional(Type.Integer({
|
|
5311
|
+
minimum: 1,
|
|
5312
|
+
maximum: WORKER_INFERENCE_MAX_OUTPUT_TOKENS
|
|
5344
5313
|
})),
|
|
5345
|
-
|
|
5314
|
+
reasoning: Type.Optional(Type.Enum([
|
|
5315
|
+
"off",
|
|
5316
|
+
"minimal",
|
|
5317
|
+
"low",
|
|
5318
|
+
"medium",
|
|
5319
|
+
"high",
|
|
5320
|
+
"xhigh",
|
|
5321
|
+
"adaptive",
|
|
5322
|
+
"max"
|
|
5323
|
+
])),
|
|
5324
|
+
thinkingBudgets: Type.Optional(WorkerInferenceThinkingBudgetsSchema)
|
|
5346
5325
|
});
|
|
5347
|
-
const
|
|
5348
|
-
|
|
5349
|
-
|
|
5350
|
-
|
|
5351
|
-
|
|
5352
|
-
|
|
5353
|
-
|
|
5354
|
-
|
|
5355
|
-
|
|
5356
|
-
|
|
5326
|
+
const WorkerInferenceIdentityProperties = {
|
|
5327
|
+
runEpoch: LiveIntegerSchema,
|
|
5328
|
+
sessionId: WorkerIdentifierSchema,
|
|
5329
|
+
runId: WorkerIdentifierSchema,
|
|
5330
|
+
turnId: WorkerIdentifierSchema
|
|
5331
|
+
};
|
|
5332
|
+
const WorkerInferenceStartParamsSchema = closedObject({
|
|
5333
|
+
...WorkerInferenceIdentityProperties,
|
|
5334
|
+
modelRef: WorkerInferenceModelRefSchema,
|
|
5335
|
+
context: WorkerInferenceContextSchema,
|
|
5336
|
+
options: WorkerInferenceOptionsSchema
|
|
5357
5337
|
});
|
|
5358
|
-
const
|
|
5359
|
-
|
|
5360
|
-
|
|
5361
|
-
|
|
5362
|
-
|
|
5338
|
+
const WorkerInferenceStartResultSchema = closedObject({ status: Type.Enum(["accepted", "replayed"]) });
|
|
5339
|
+
const WorkerInferenceErrorReasonSchema = Type.Enum([
|
|
5340
|
+
"model-not-approved",
|
|
5341
|
+
"invalid-context",
|
|
5342
|
+
"epoch-mismatch",
|
|
5343
|
+
"session-not-attached",
|
|
5344
|
+
"provider-error",
|
|
5345
|
+
"cancelled"
|
|
5346
|
+
]);
|
|
5347
|
+
const WorkerInferenceErrorShapeSchema = closedObject({
|
|
5348
|
+
code: Type.Enum(["INVALID_REQUEST", "UNAVAILABLE"]),
|
|
5349
|
+
message: Type.String({
|
|
5363
5350
|
minLength: 1,
|
|
5364
5351
|
maxLength: 256
|
|
5365
|
-
}), Type.Unknown()),
|
|
5366
|
-
thoughtSignature: Type.Optional(Type.String({
|
|
5367
|
-
minLength: 1,
|
|
5368
|
-
maxLength: WORKER_PROTOCOL_MAX_PAYLOAD_BYTES
|
|
5369
|
-
})),
|
|
5370
|
-
executionMode: Type.Optional(Type.Union([Type.Literal("sequential"), Type.Literal("parallel")]))
|
|
5371
|
-
});
|
|
5372
|
-
const WorkerReplayHashSchema = Type.String({
|
|
5373
|
-
minLength: 2,
|
|
5374
|
-
maxLength: 16,
|
|
5375
|
-
pattern: "^[a-z0-9]+$"
|
|
5376
|
-
});
|
|
5377
|
-
const WorkerProviderReplayStateSchema = closedObject({
|
|
5378
|
-
v: Type.Literal(1),
|
|
5379
|
-
type: WorkerIdentifierSchema,
|
|
5380
|
-
id: Type.Optional(Type.String({
|
|
5381
|
-
minLength: 1,
|
|
5382
|
-
maxLength: WORKER_PROTOCOL_MAX_PAYLOAD_BYTES
|
|
5383
|
-
})),
|
|
5384
|
-
data: Type.String({
|
|
5385
|
-
minLength: 1,
|
|
5386
|
-
maxLength: WORKER_PROVIDER_REPLAY_MAX_DATA_BYTES
|
|
5387
|
-
}),
|
|
5388
|
-
replayIndex: Type.Optional(Type.Integer({
|
|
5389
|
-
minimum: 0,
|
|
5390
|
-
maximum: Number.MAX_SAFE_INTEGER
|
|
5391
|
-
})),
|
|
5392
|
-
provider: WorkerIdentifierSchema,
|
|
5393
|
-
api: WorkerIdentifierSchema,
|
|
5394
|
-
model: WorkerIdentifierSchema,
|
|
5395
|
-
baseUrlHash: Type.Optional(WorkerReplayHashSchema),
|
|
5396
|
-
sessionHash: Type.Optional(WorkerReplayHashSchema),
|
|
5397
|
-
authProfileHash: Type.Optional(WorkerReplayHashSchema)
|
|
5398
|
-
});
|
|
5399
|
-
const WorkerTranscriptUserMessageSchema = closedObject({
|
|
5400
|
-
role: Type.Literal("user"),
|
|
5401
|
-
content: Type.Array(Type.Union([WorkerTranscriptTextContentSchema, WorkerTranscriptImageContentSchema]), {
|
|
5402
|
-
minItems: 1,
|
|
5403
|
-
maxItems: 128
|
|
5404
5352
|
}),
|
|
5405
|
-
|
|
5353
|
+
details: closedObject({ reason: WorkerInferenceErrorReasonSchema })
|
|
5406
5354
|
});
|
|
5407
|
-
const
|
|
5408
|
-
|
|
5409
|
-
|
|
5410
|
-
|
|
5411
|
-
|
|
5412
|
-
|
|
5413
|
-
|
|
5355
|
+
const WorkerInferenceStartRequestFrameSchema = workerRequestSchema(WORKER_INFERENCE_METHODS[0], WorkerInferenceStartParamsSchema);
|
|
5356
|
+
const WorkerInferenceErrorResponseFrameSchema = workerErrorResponseSchema(WorkerInferenceErrorShapeSchema);
|
|
5357
|
+
const WorkerInferenceStartResponseFrameSchema = workerResponseSchema(WorkerInferenceStartResultSchema, WorkerInferenceErrorResponseFrameSchema);
|
|
5358
|
+
const WorkerInferenceCancelParamsSchema = closedObject({ ...WorkerInferenceIdentityProperties });
|
|
5359
|
+
const WorkerInferenceCancelResultSchema = closedObject({ status: Type.Literal("cancelled") });
|
|
5360
|
+
const WorkerInferenceCancelRequestFrameSchema = workerRequestSchema(WORKER_INFERENCE_METHODS[1], WorkerInferenceCancelParamsSchema);
|
|
5361
|
+
const WorkerInferenceCancelResponseFrameSchema = workerResponseSchema(WorkerInferenceCancelResultSchema, WorkerInferenceErrorResponseFrameSchema);
|
|
5362
|
+
const WorkerInferenceResolvedModelSchema = closedObject({
|
|
5414
5363
|
api: WorkerIdentifierSchema,
|
|
5415
5364
|
provider: WorkerIdentifierSchema,
|
|
5416
|
-
model: WorkerIdentifierSchema
|
|
5417
|
-
responseModel: Type.Optional(WorkerIdentifierSchema),
|
|
5418
|
-
responseId: Type.Optional(WorkerIdentifierSchema),
|
|
5419
|
-
providerReplay: Type.Optional(WorkerProviderReplayStateSchema),
|
|
5420
|
-
diagnostics: Type.Optional(Type.Array(WorkerTranscriptAssistantDiagnosticSchema, { maxItems: 128 })),
|
|
5421
|
-
usage: WorkerTranscriptUsageSchema,
|
|
5422
|
-
stopReason: Type.Union([
|
|
5423
|
-
Type.Literal("stop"),
|
|
5424
|
-
Type.Literal("length"),
|
|
5425
|
-
Type.Literal("toolUse"),
|
|
5426
|
-
Type.Literal("error"),
|
|
5427
|
-
Type.Literal("aborted")
|
|
5428
|
-
]),
|
|
5429
|
-
errorMessage: Type.Optional(Type.String({ maxLength: WORKER_PROTOCOL_MAX_PAYLOAD_BYTES })),
|
|
5430
|
-
errorCode: Type.Optional(Type.String({ maxLength: 256 })),
|
|
5431
|
-
errorType: Type.Optional(Type.String({ maxLength: 256 })),
|
|
5432
|
-
errorBody: Type.Optional(Type.String({ maxLength: WORKER_PROTOCOL_MAX_PAYLOAD_BYTES })),
|
|
5433
|
-
timestamp: Type.Integer({ minimum: 0 })
|
|
5434
|
-
});
|
|
5435
|
-
const WorkerTranscriptToolResultMessageSchema = closedObject({
|
|
5436
|
-
role: Type.Literal("toolResult"),
|
|
5437
|
-
toolCallId: WorkerIdentifierSchema,
|
|
5438
|
-
toolName: WorkerIdentifierSchema,
|
|
5439
|
-
content: Type.Array(Type.Union([WorkerTranscriptTextContentSchema, WorkerTranscriptImageContentSchema]), { maxItems: 128 }),
|
|
5440
|
-
details: Type.Optional(Type.Unknown()),
|
|
5441
|
-
isError: Type.Boolean(),
|
|
5442
|
-
timestamp: Type.Integer({ minimum: 0 })
|
|
5365
|
+
model: WorkerIdentifierSchema
|
|
5443
5366
|
});
|
|
5444
|
-
|
|
5445
|
-
|
|
5446
|
-
|
|
5447
|
-
|
|
5448
|
-
|
|
5449
|
-
|
|
5450
|
-
|
|
5451
|
-
|
|
5452
|
-
|
|
5367
|
+
function inferenceContentEvent(type, properties) {
|
|
5368
|
+
return closedObject({
|
|
5369
|
+
type: Type.Literal(type),
|
|
5370
|
+
contentIndex: LiveIntegerSchema,
|
|
5371
|
+
...properties
|
|
5372
|
+
});
|
|
5373
|
+
}
|
|
5374
|
+
const WorkerInferenceStreamEventSchema = Type.Union([
|
|
5375
|
+
closedObject({
|
|
5376
|
+
type: Type.Literal("start"),
|
|
5377
|
+
resolvedModel: WorkerInferenceResolvedModelSchema,
|
|
5378
|
+
timestamp: LiveIntegerSchema
|
|
5453
5379
|
}),
|
|
5454
|
-
|
|
5455
|
-
|
|
5456
|
-
|
|
5380
|
+
inferenceContentEvent("text_start", { contentSignature: OptionalInferenceTextSchema }),
|
|
5381
|
+
inferenceContentEvent("text_delta", { delta: InferenceTextSchema }),
|
|
5382
|
+
inferenceContentEvent("text_end", { contentSignature: OptionalInferenceTextSchema }),
|
|
5383
|
+
inferenceContentEvent("thinking_start", {}),
|
|
5384
|
+
inferenceContentEvent("thinking_delta", { delta: InferenceTextSchema }),
|
|
5385
|
+
inferenceContentEvent("thinking_end", { contentSignature: OptionalInferenceTextSchema }),
|
|
5386
|
+
inferenceContentEvent("toolcall_start", {
|
|
5387
|
+
id: WorkerIdentifierSchema,
|
|
5388
|
+
toolName: WorkerIdentifierSchema
|
|
5457
5389
|
}),
|
|
5458
|
-
|
|
5459
|
-
|
|
5460
|
-
|
|
5461
|
-
|
|
5462
|
-
|
|
5390
|
+
inferenceContentEvent("toolcall_delta", { delta: InferenceTextSchema }),
|
|
5391
|
+
inferenceContentEvent("toolcall_end", {})
|
|
5392
|
+
]);
|
|
5393
|
+
const WorkerInferenceEventParamsSchema = closedObject({
|
|
5394
|
+
...WorkerInferenceIdentityProperties,
|
|
5395
|
+
seq: LiveSequenceSchema,
|
|
5396
|
+
event: WorkerInferenceStreamEventSchema
|
|
5463
5397
|
});
|
|
5464
|
-
const
|
|
5465
|
-
|
|
5466
|
-
|
|
5467
|
-
|
|
5468
|
-
}),
|
|
5469
|
-
newLeafId: WorkerIdentifierSchema
|
|
5398
|
+
const WorkerInferenceEventFrameSchema = closedObject({
|
|
5399
|
+
type: Type.Literal("event"),
|
|
5400
|
+
event: Type.Literal("worker.inference.event"),
|
|
5401
|
+
payload: WorkerInferenceEventParamsSchema
|
|
5470
5402
|
});
|
|
5471
|
-
const
|
|
5472
|
-
Type.Literal("
|
|
5473
|
-
|
|
5474
|
-
|
|
5475
|
-
|
|
5476
|
-
|
|
5477
|
-
|
|
5478
|
-
code: Type.Literal("INVALID_REQUEST"),
|
|
5403
|
+
const WorkerInferenceTerminalDoneSchema = closedObject({
|
|
5404
|
+
type: Type.Literal("done"),
|
|
5405
|
+
message: WorkerInferenceAssistantMessageSchema
|
|
5406
|
+
});
|
|
5407
|
+
const WorkerInferenceTerminalErrorSchema = closedObject({
|
|
5408
|
+
type: Type.Literal("error"),
|
|
5409
|
+
reason: WorkerInferenceErrorReasonSchema,
|
|
5479
5410
|
message: Type.String({
|
|
5480
5411
|
minLength: 1,
|
|
5481
5412
|
maxLength: 256
|
|
5482
5413
|
}),
|
|
5483
|
-
|
|
5414
|
+
usage: Type.Optional(WorkerTranscriptUsageSchema)
|
|
5484
5415
|
});
|
|
5485
|
-
const
|
|
5486
|
-
|
|
5487
|
-
|
|
5488
|
-
|
|
5489
|
-
|
|
5490
|
-
});
|
|
5491
|
-
const WorkerTranscriptCommitSuccessResponseFrameSchema = closedObject({
|
|
5492
|
-
type: Type.Literal("res"),
|
|
5493
|
-
id: WorkerFrameIdSchema,
|
|
5494
|
-
ok: Type.Literal(true),
|
|
5495
|
-
payload: WorkerTranscriptCommitResultSchema
|
|
5416
|
+
const WorkerInferenceTerminalOutcomeSchema = Type.Union([WorkerInferenceTerminalDoneSchema, WorkerInferenceTerminalErrorSchema]);
|
|
5417
|
+
const WorkerInferenceTerminalParamsSchema = closedObject({
|
|
5418
|
+
...WorkerInferenceIdentityProperties,
|
|
5419
|
+
seq: LiveSequenceSchema,
|
|
5420
|
+
outcome: WorkerInferenceTerminalOutcomeSchema
|
|
5496
5421
|
});
|
|
5497
|
-
const
|
|
5498
|
-
type: Type.Literal("
|
|
5499
|
-
|
|
5500
|
-
|
|
5501
|
-
error: WorkerTranscriptCommitErrorShapeSchema
|
|
5422
|
+
const WorkerInferenceTerminalFrameSchema = closedObject({
|
|
5423
|
+
type: Type.Literal("event"),
|
|
5424
|
+
event: Type.Literal("worker.inference.terminal"),
|
|
5425
|
+
payload: WorkerInferenceTerminalParamsSchema
|
|
5502
5426
|
});
|
|
5503
|
-
|
|
5504
|
-
|
|
5505
|
-
WorkerTranscriptCommitErrorResponseFrameSchema,
|
|
5506
|
-
WorkerErrorResponseFrameSchema
|
|
5507
|
-
]);
|
|
5508
|
-
function workerLiveObject(properties) {
|
|
5509
|
-
return closedObject(properties);
|
|
5427
|
+
function workerInferenceValidator(schema) {
|
|
5428
|
+
return (data) => !checkWorkerProtocolJson(data) && Value.Check(schema, data);
|
|
5510
5429
|
}
|
|
5511
|
-
const
|
|
5512
|
-
const
|
|
5513
|
-
const
|
|
5514
|
-
|
|
5515
|
-
|
|
5516
|
-
|
|
5517
|
-
|
|
5518
|
-
const
|
|
5519
|
-
|
|
5520
|
-
|
|
5521
|
-
|
|
5522
|
-
mediaUrls: Type.Optional(Type.Array(LiveIdentifierSchema, { maxItems: 128 })),
|
|
5523
|
-
phase: Type.Optional(Type.Union([Type.Literal("commentary"), Type.Literal("final_answer")])),
|
|
5524
|
-
itemId: Type.Optional(WorkerIdentifierSchema)
|
|
5525
|
-
});
|
|
5526
|
-
const WorkerLiveThinkingPayloadSchema = workerLiveObject({
|
|
5527
|
-
text: LiveTextSchema,
|
|
5528
|
-
delta: LiveTextSchema
|
|
5529
|
-
});
|
|
5530
|
-
const WorkerLiveToolCommonProperties = {
|
|
5531
|
-
name: WorkerIdentifierSchema,
|
|
5532
|
-
toolCallId: WorkerIdentifierSchema,
|
|
5533
|
-
hideFromChannelProgress: Type.Optional(Type.Literal(true))
|
|
5534
|
-
};
|
|
5535
|
-
const WorkerLiveToolPayloadSchema = Type.Union([
|
|
5536
|
-
workerLiveObject({
|
|
5537
|
-
...WorkerLiveToolCommonProperties,
|
|
5538
|
-
phase: Type.Literal("start"),
|
|
5539
|
-
args: Type.Unknown()
|
|
5540
|
-
}),
|
|
5541
|
-
workerLiveObject({
|
|
5542
|
-
...WorkerLiveToolCommonProperties,
|
|
5543
|
-
phase: Type.Literal("update"),
|
|
5544
|
-
partialResult: Type.Unknown()
|
|
5545
|
-
}),
|
|
5546
|
-
workerLiveObject({
|
|
5547
|
-
...WorkerLiveToolCommonProperties,
|
|
5548
|
-
phase: Type.Literal("result"),
|
|
5549
|
-
meta: OptionalLiveTextSchema,
|
|
5550
|
-
isError: Type.Boolean(),
|
|
5551
|
-
result: Type.Unknown(),
|
|
5552
|
-
toolErrorSummary: OptionalLiveTextSchema
|
|
5553
|
-
})
|
|
5554
|
-
]);
|
|
5555
|
-
const WorkerLiveApprovalCommonProperties = {
|
|
5556
|
-
kind: Type.Union([
|
|
5557
|
-
Type.Literal("exec"),
|
|
5558
|
-
Type.Literal("plugin"),
|
|
5559
|
-
Type.Literal("unknown")
|
|
5560
|
-
]),
|
|
5561
|
-
title: LiveTextSchema,
|
|
5562
|
-
itemId: Type.Optional(WorkerIdentifierSchema),
|
|
5563
|
-
toolCallId: Type.Optional(WorkerIdentifierSchema),
|
|
5564
|
-
approvalId: Type.Optional(WorkerIdentifierSchema),
|
|
5565
|
-
approvalSlug: Type.Optional(WorkerIdentifierSchema),
|
|
5566
|
-
command: OptionalLiveTextSchema,
|
|
5567
|
-
host: OptionalLiveTextSchema,
|
|
5568
|
-
reason: OptionalLiveTextSchema,
|
|
5569
|
-
scope: Type.Optional(Type.Union([Type.Literal("turn"), Type.Literal("session")])),
|
|
5570
|
-
message: OptionalLiveTextSchema
|
|
5430
|
+
const validateWorkerInferenceStartParams = workerInferenceValidator(WorkerInferenceStartParamsSchema);
|
|
5431
|
+
const validateWorkerInferenceCancelParams = workerInferenceValidator(WorkerInferenceCancelParamsSchema);
|
|
5432
|
+
const validateWorkerInferenceTerminalOutcome = workerInferenceValidator(WorkerInferenceTerminalOutcomeSchema);
|
|
5433
|
+
const validateWorkerInferenceEventFrame = workerInferenceValidator(WorkerInferenceEventFrameSchema);
|
|
5434
|
+
const validateWorkerInferenceTerminalFrame = workerInferenceValidator(WorkerInferenceTerminalFrameSchema);
|
|
5435
|
+
//#endregion
|
|
5436
|
+
//#region packages/gateway-protocol/src/schema/worker-gateway-tool.ts
|
|
5437
|
+
const WORKER_GATEWAY_TOOLS_PROTOCOL_FEATURE = "worker-gateway-tools-v1";
|
|
5438
|
+
const WORKER_GATEWAY_TOOL_METHODS = {
|
|
5439
|
+
invoke: "worker.gatewayTool.invoke",
|
|
5440
|
+
cancel: "worker.gatewayTool.cancel"
|
|
5571
5441
|
};
|
|
5572
|
-
const
|
|
5573
|
-
|
|
5574
|
-
|
|
5575
|
-
|
|
5576
|
-
|
|
5577
|
-
|
|
5578
|
-
|
|
5579
|
-
|
|
5580
|
-
Type.
|
|
5581
|
-
Type.
|
|
5582
|
-
Type.
|
|
5583
|
-
|
|
5584
|
-
})
|
|
5585
|
-
|
|
5586
|
-
|
|
5587
|
-
|
|
5442
|
+
const JsonObjectSchema = Type.Record(Type.String(), Type.Unknown());
|
|
5443
|
+
const AgentToolSurfacePresentationSchema = closedObject({
|
|
5444
|
+
codeMode: closedObject({
|
|
5445
|
+
enabled: Type.Boolean(),
|
|
5446
|
+
executor: Type.Enum(["node", "quickjs"]),
|
|
5447
|
+
mode: Type.Literal("only"),
|
|
5448
|
+
timeoutMs: Type.Integer({ minimum: 1 }),
|
|
5449
|
+
memoryLimitBytes: Type.Integer({ minimum: 1 }),
|
|
5450
|
+
maxOutputBytes: Type.Integer({ minimum: 1 }),
|
|
5451
|
+
maxSnapshotBytes: Type.Integer({ minimum: 1 }),
|
|
5452
|
+
maxPendingToolCalls: Type.Integer({ minimum: 1 }),
|
|
5453
|
+
snapshotTtlSeconds: Type.Integer({ minimum: 1 }),
|
|
5454
|
+
searchDefaultLimit: Type.Integer({ minimum: 1 }),
|
|
5455
|
+
maxSearchLimit: Type.Integer({ minimum: 1 })
|
|
5456
|
+
}),
|
|
5457
|
+
toolSearch: closedObject({
|
|
5458
|
+
enabled: Type.Boolean(),
|
|
5459
|
+
mode: Type.Enum(["tools", "directory"]),
|
|
5460
|
+
searchDefaultLimit: Type.Integer({ minimum: 1 }),
|
|
5461
|
+
maxSearchLimit: Type.Integer({ minimum: 1 })
|
|
5462
|
+
}),
|
|
5463
|
+
forceDirectMessageTool: Type.Boolean(),
|
|
5464
|
+
skills: Type.Optional(Type.Array(closedObject({
|
|
5465
|
+
name: Type.String(),
|
|
5466
|
+
description: Type.String(),
|
|
5467
|
+
location: Type.String()
|
|
5468
|
+
})))
|
|
5588
5469
|
});
|
|
5589
|
-
const
|
|
5590
|
-
|
|
5591
|
-
|
|
5592
|
-
|
|
5593
|
-
|
|
5594
|
-
|
|
5595
|
-
|
|
5596
|
-
|
|
5597
|
-
|
|
5598
|
-
|
|
5599
|
-
|
|
5470
|
+
const WorkerToolSurfaceSchema = closedObject({
|
|
5471
|
+
generation: WorkerIdentifierSchema,
|
|
5472
|
+
presentation: AgentToolSurfacePresentationSchema,
|
|
5473
|
+
tools: Type.Array(closedObject({
|
|
5474
|
+
id: WorkerIdentifierSchema,
|
|
5475
|
+
execution: Type.Enum(["placement", "gateway"]),
|
|
5476
|
+
replay: Type.Optional(Type.Literal(true)),
|
|
5477
|
+
plugin: Type.Optional(closedObject({
|
|
5478
|
+
pluginId: WorkerIdentifierSchema,
|
|
5479
|
+
optional: Type.Boolean(),
|
|
5480
|
+
replaySafe: Type.Optional(Type.Boolean()),
|
|
5481
|
+
sideEffecting: Type.Optional(Type.Boolean()),
|
|
5482
|
+
mcp: Type.Optional(closedObject({
|
|
5483
|
+
serverName: Type.String(),
|
|
5484
|
+
safeServerName: Type.String(),
|
|
5485
|
+
toolName: Type.String(),
|
|
5486
|
+
operation: Type.Enum([
|
|
5487
|
+
"tool",
|
|
5488
|
+
"resources_list",
|
|
5489
|
+
"resources_read",
|
|
5490
|
+
"prompts_list",
|
|
5491
|
+
"prompts_get"
|
|
5492
|
+
]),
|
|
5493
|
+
node: Type.Optional(closedObject({
|
|
5494
|
+
id: WorkerIdentifierSchema,
|
|
5495
|
+
displayName: Type.Optional(Type.String())
|
|
5496
|
+
}))
|
|
5497
|
+
}))
|
|
5498
|
+
})),
|
|
5499
|
+
timeout: Type.Optional(closedObject({
|
|
5500
|
+
minimumMs: Type.Optional(Type.Integer({ minimum: 1 })),
|
|
5501
|
+
argument: Type.Optional(WorkerIdentifierSchema),
|
|
5502
|
+
defaultSeconds: Type.Optional(Type.Number({ minimum: 0 })),
|
|
5503
|
+
paddingMs: Type.Optional(Type.Integer({ minimum: 0 }))
|
|
5504
|
+
})),
|
|
5505
|
+
definition: closedObject({
|
|
5506
|
+
name: WorkerIdentifierSchema,
|
|
5507
|
+
label: Type.String({ maxLength: 1024 }),
|
|
5508
|
+
description: Type.String({ maxLength: WORKER_PROTOCOL_MAX_PAYLOAD_BYTES }),
|
|
5509
|
+
parameters: JsonObjectSchema,
|
|
5510
|
+
outputSchema: Type.Optional(JsonObjectSchema),
|
|
5511
|
+
hideFromChannelProgress: Type.Optional(Type.Literal(true)),
|
|
5512
|
+
resultContentSource: Type.Optional(Type.Literal("network")),
|
|
5513
|
+
executionMode: Type.Optional(Type.Enum(["sequential", "parallel"])),
|
|
5514
|
+
catalogMode: Type.Optional(Type.Literal("direct-only"))
|
|
5515
|
+
})
|
|
5516
|
+
}), { maxItems: 256 }),
|
|
5517
|
+
policy: closedObject({
|
|
5518
|
+
workspaceOnly: Type.Boolean(),
|
|
5519
|
+
readOnly: Type.Boolean(),
|
|
5520
|
+
applyPatchEnabled: Type.Boolean(),
|
|
5521
|
+
applyPatchWorkspaceOnly: Type.Boolean(),
|
|
5522
|
+
applyPatchContainmentSource: Type.Optional(Type.Enum([
|
|
5523
|
+
"config",
|
|
5524
|
+
"session",
|
|
5525
|
+
"required-root"
|
|
5526
|
+
])),
|
|
5527
|
+
modelContextWindowTokens: Type.Optional(Type.Integer({ minimum: 1 })),
|
|
5528
|
+
modelHasVision: Type.Optional(Type.Boolean()),
|
|
5529
|
+
memoryFlushWritePath: Type.Optional(Type.String({
|
|
5530
|
+
minLength: 1,
|
|
5531
|
+
maxLength: 4096
|
|
5532
|
+
})),
|
|
5533
|
+
imageSanitization: closedObject({
|
|
5534
|
+
maxBytes: Type.Optional(Type.Integer({ minimum: 1 })),
|
|
5535
|
+
maxDimensionPx: Type.Optional(Type.Integer({ minimum: 1 }))
|
|
5536
|
+
})
|
|
5537
|
+
})
|
|
5600
5538
|
});
|
|
5601
|
-
const
|
|
5602
|
-
|
|
5603
|
-
|
|
5604
|
-
|
|
5605
|
-
|
|
5606
|
-
};
|
|
5607
|
-
const WorkerLiveLifecycleFallbackPayloadSchema = workerLiveObject({
|
|
5608
|
-
...WorkerLiveFallbackCommonProperties,
|
|
5609
|
-
phase: Type.Literal("fallback"),
|
|
5610
|
-
reasonSummary: LiveTextSchema,
|
|
5611
|
-
attemptSummaries: Type.Array(LiveTextSchema, { maxItems: 128 }),
|
|
5612
|
-
attempts: Type.Array(WorkerLiveFallbackAttemptSchema, { maxItems: 128 })
|
|
5539
|
+
const WorkerGatewayToolInvokeParamsSchema = closedObject({
|
|
5540
|
+
generation: WorkerIdentifierSchema,
|
|
5541
|
+
toolId: WorkerIdentifierSchema,
|
|
5542
|
+
toolCallId: WorkerIdentifierSchema,
|
|
5543
|
+
arguments: JsonObjectSchema
|
|
5613
5544
|
});
|
|
5614
|
-
const
|
|
5615
|
-
|
|
5616
|
-
|
|
5617
|
-
previousActiveModel: Type.Optional(LiveIdentifierSchema)
|
|
5545
|
+
const WorkerGatewayToolCancelParamsSchema = closedObject({
|
|
5546
|
+
generation: WorkerIdentifierSchema,
|
|
5547
|
+
toolCallId: WorkerIdentifierSchema
|
|
5618
5548
|
});
|
|
5619
|
-
const
|
|
5620
|
-
|
|
5621
|
-
|
|
5622
|
-
|
|
5623
|
-
|
|
5624
|
-
|
|
5625
|
-
|
|
5626
|
-
|
|
5627
|
-
|
|
5628
|
-
Type.Literal("
|
|
5629
|
-
Type.
|
|
5630
|
-
|
|
5631
|
-
])
|
|
5549
|
+
const toolContent = workerContentSchemas(LiveTextSchema, LiveTextSchema, Type.String({ maxLength: WORKER_PROTOCOL_MAX_MEDIA_PAYLOAD_BYTES }));
|
|
5550
|
+
const WorkerGatewayToolResultSchema = closedObject({
|
|
5551
|
+
content: Type.Array(Type.Union([toolContent.text, toolContent.image]), { maxItems: 128 }),
|
|
5552
|
+
details: Type.Optional(Type.Unknown()),
|
|
5553
|
+
isError: Type.Optional(Type.Boolean()),
|
|
5554
|
+
terminate: Type.Optional(Type.Boolean()),
|
|
5555
|
+
progress: Type.Optional(closedObject({
|
|
5556
|
+
text: Type.String({ maxLength: WORKER_PROTOCOL_MAX_PAYLOAD_BYTES }),
|
|
5557
|
+
visibility: Type.Literal("channel"),
|
|
5558
|
+
privacy: Type.Literal("public"),
|
|
5559
|
+
id: Type.Optional(WorkerIdentifierSchema)
|
|
5560
|
+
}))
|
|
5632
5561
|
});
|
|
5633
|
-
const
|
|
5634
|
-
|
|
5635
|
-
|
|
5636
|
-
|
|
5637
|
-
|
|
5638
|
-
|
|
5639
|
-
|
|
5640
|
-
|
|
5641
|
-
|
|
5642
|
-
Type.
|
|
5643
|
-
|
|
5644
|
-
|
|
5645
|
-
|
|
5646
|
-
|
|
5647
|
-
toolErrorSummary: OptionalLiveTextSchema,
|
|
5648
|
-
livenessState: Type.Optional(Type.Union([
|
|
5649
|
-
Type.Literal("working"),
|
|
5650
|
-
Type.Literal("paused"),
|
|
5651
|
-
Type.Literal("blocked"),
|
|
5652
|
-
Type.Literal("abandoned")
|
|
5653
|
-
])),
|
|
5654
|
-
replayInvalid: Type.Optional(Type.Literal(true))
|
|
5655
|
-
};
|
|
5656
|
-
const WorkerLiveLifecycleTerminalPayloadSchema = Type.Union([
|
|
5657
|
-
workerLiveObject({
|
|
5658
|
-
...WorkerLiveLifecycleTerminalCommonProperties,
|
|
5659
|
-
phase: Type.Literal("finishing"),
|
|
5660
|
-
error: OptionalLiveTextSchema
|
|
5661
|
-
}),
|
|
5662
|
-
workerLiveObject({
|
|
5663
|
-
...WorkerLiveLifecycleTerminalCommonProperties,
|
|
5664
|
-
phase: Type.Literal("end")
|
|
5665
|
-
}),
|
|
5666
|
-
workerLiveObject({
|
|
5667
|
-
...WorkerLiveLifecycleTerminalCommonProperties,
|
|
5668
|
-
phase: Type.Literal("error"),
|
|
5669
|
-
error: LiveTextSchema,
|
|
5670
|
-
fallbackExhaustedFailure: Type.Optional(Type.Literal(true))
|
|
5671
|
-
})
|
|
5672
|
-
]);
|
|
5673
|
-
const WorkerLiveLifecyclePayloadSchema = Type.Union([
|
|
5674
|
-
WorkerLiveLifecycleStartPayloadSchema,
|
|
5675
|
-
WorkerLiveLifecycleFallbackPayloadSchema,
|
|
5676
|
-
WorkerLiveLifecycleFallbackClearedPayloadSchema,
|
|
5677
|
-
WorkerLiveLifecycleFallbackStepPayloadSchema,
|
|
5678
|
-
WorkerLiveLifecycleTerminalPayloadSchema
|
|
5679
|
-
]);
|
|
5680
|
-
const WorkerLiveEventSchema = Type.Union([
|
|
5681
|
-
workerLiveObject({
|
|
5682
|
-
kind: Type.Literal("assistant"),
|
|
5683
|
-
payload: WorkerLiveAssistantPayloadSchema
|
|
5684
|
-
}),
|
|
5685
|
-
workerLiveObject({
|
|
5686
|
-
kind: Type.Literal("thinking"),
|
|
5687
|
-
payload: WorkerLiveThinkingPayloadSchema
|
|
5688
|
-
}),
|
|
5689
|
-
workerLiveObject({
|
|
5690
|
-
kind: Type.Literal("tool"),
|
|
5691
|
-
payload: WorkerLiveToolPayloadSchema
|
|
5692
|
-
}),
|
|
5693
|
-
workerLiveObject({
|
|
5694
|
-
kind: Type.Literal("approval"),
|
|
5695
|
-
payload: WorkerLiveApprovalPayloadSchema
|
|
5696
|
-
}),
|
|
5697
|
-
workerLiveObject({
|
|
5698
|
-
kind: Type.Literal("lifecycle"),
|
|
5699
|
-
payload: WorkerLiveLifecyclePayloadSchema
|
|
5562
|
+
const WorkerGatewayToolCancelResultSchema = closedObject({ cancelled: Type.Boolean() });
|
|
5563
|
+
const WorkerGatewayToolResponseFrameSchema = workerResponseSchema(WorkerGatewayToolResultSchema);
|
|
5564
|
+
const WorkerGatewayToolCancelResponseFrameSchema = workerResponseSchema(WorkerGatewayToolCancelResultSchema);
|
|
5565
|
+
const WorkerGatewayToolUpdateFrameSchema = closedObject({
|
|
5566
|
+
type: Type.Literal("event"),
|
|
5567
|
+
event: Type.Literal("worker.gatewayTool.update"),
|
|
5568
|
+
payload: closedObject({
|
|
5569
|
+
generation: WorkerIdentifierSchema,
|
|
5570
|
+
toolCallId: WorkerIdentifierSchema,
|
|
5571
|
+
seq: Type.Integer({
|
|
5572
|
+
minimum: 1,
|
|
5573
|
+
maximum: Number.MAX_SAFE_INTEGER
|
|
5574
|
+
}),
|
|
5575
|
+
result: WorkerGatewayToolResultSchema
|
|
5700
5576
|
})
|
|
5701
|
-
]);
|
|
5702
|
-
const WorkerLiveEventParamsSchema = workerLiveObject({
|
|
5703
|
-
runEpoch: LiveIntegerSchema,
|
|
5704
|
-
lastAckedSeq: LiveIntegerSchema,
|
|
5705
|
-
seq: LiveSequenceSchema,
|
|
5706
|
-
runId: WorkerIdentifierSchema,
|
|
5707
|
-
event: WorkerLiveEventSchema
|
|
5708
5577
|
});
|
|
5709
|
-
const
|
|
5710
|
-
const
|
|
5711
|
-
|
|
5712
|
-
|
|
5713
|
-
|
|
5714
|
-
|
|
5715
|
-
|
|
5716
|
-
|
|
5717
|
-
|
|
5718
|
-
|
|
5719
|
-
})
|
|
5720
|
-
|
|
5721
|
-
|
|
5722
|
-
|
|
5723
|
-
minLength: 1,
|
|
5724
|
-
maxLength: 256
|
|
5578
|
+
const validateWorkerGatewayToolInvokeParams = /* @__PURE__ */ lazyCompile(WorkerGatewayToolInvokeParamsSchema);
|
|
5579
|
+
const validateWorkerGatewayToolCancelParams = /* @__PURE__ */ lazyCompile(WorkerGatewayToolCancelParamsSchema);
|
|
5580
|
+
const validateWorkerGatewayToolUpdateFrame = /* @__PURE__ */ lazyCompile(WorkerGatewayToolUpdateFrameSchema);
|
|
5581
|
+
function isWorkerGatewayToolFrameWithinBudget(frame, result) {
|
|
5582
|
+
return isWorkerFrameWithinBudget(frame, () => result?.content.flatMap((part) => part.type === "image" ? [part.data] : []) ?? []);
|
|
5583
|
+
}
|
|
5584
|
+
//#endregion
|
|
5585
|
+
//#region packages/gateway-protocol/src/schema/worker-computer.ts
|
|
5586
|
+
const WORKER_COMPUTER_PROTOCOL_FEATURE = "worker-computer-v1";
|
|
5587
|
+
const WorkerComputerParamsSchema = closedObject({
|
|
5588
|
+
command: Type.Enum(["screen.snapshot", "computer.act"], { type: "string" }),
|
|
5589
|
+
paramsJson: Type.String({
|
|
5590
|
+
minLength: 2,
|
|
5591
|
+
maxLength: WORKER_PROTOCOL_MAX_PAYLOAD_BYTES
|
|
5725
5592
|
}),
|
|
5726
|
-
|
|
5593
|
+
timeoutMs: Type.Optional(Type.Integer({
|
|
5594
|
+
minimum: 1,
|
|
5595
|
+
maximum: 12e4
|
|
5596
|
+
})),
|
|
5597
|
+
idempotencyKey: Type.Optional(WorkerIdentifierSchema)
|
|
5727
5598
|
});
|
|
5728
|
-
const
|
|
5729
|
-
|
|
5730
|
-
|
|
5731
|
-
|
|
5732
|
-
|
|
5599
|
+
const WorkerComputerResultSchema = closedObject({ resultJson: Type.String({
|
|
5600
|
+
minLength: 2,
|
|
5601
|
+
maxLength: WORKER_PROTOCOL_MAX_MEDIA_PAYLOAD_BYTES
|
|
5602
|
+
}) });
|
|
5603
|
+
const WorkerComputerResponseFrameSchema = workerResponseSchema(WorkerComputerResultSchema);
|
|
5604
|
+
//#endregion
|
|
5605
|
+
//#region packages/gateway-protocol/src/schema/computer.ts
|
|
5606
|
+
const ComputerStatusParamsSchema = closedObject({});
|
|
5607
|
+
const ComputerInvokeParamsSchema = closedObject({
|
|
5608
|
+
command: Type.Enum(["screen.snapshot", "computer.act"]),
|
|
5609
|
+
params: Type.Record(Type.String(), Type.Unknown()),
|
|
5610
|
+
generation: NonEmptyString,
|
|
5611
|
+
timeoutMs: Type.Optional(Type.Integer({ minimum: 1 })),
|
|
5612
|
+
idempotencyKey: NonEmptyString
|
|
5733
5613
|
});
|
|
5734
|
-
|
|
5735
|
-
|
|
5736
|
-
|
|
5737
|
-
|
|
5738
|
-
|
|
5614
|
+
//#endregion
|
|
5615
|
+
//#region packages/gateway-protocol/src/schema/skill-history.ts
|
|
5616
|
+
const SkillsProposalHistoryStatusParamsSchema = closedObject({ agentId: Type.Optional(NonEmptyString) });
|
|
5617
|
+
const SkillsProposalHistoryScanParamsSchema = closedObject({
|
|
5618
|
+
agentId: Type.Optional(NonEmptyString),
|
|
5619
|
+
direction: Type.Optional(Type.Union([Type.Literal("older"), Type.Literal("newer")]))
|
|
5739
5620
|
});
|
|
5740
|
-
const
|
|
5741
|
-
|
|
5742
|
-
|
|
5743
|
-
|
|
5744
|
-
|
|
5621
|
+
const SkillsProposalHistoryScanResultSchema = closedObject({
|
|
5622
|
+
schema: Type.Literal("openclaw.skill-workshop.history-scan.v1"),
|
|
5623
|
+
hasScanned: Type.Boolean(),
|
|
5624
|
+
reviewedSessions: Type.Integer({ minimum: 0 }),
|
|
5625
|
+
ideasFound: Type.Integer({ minimum: 0 }),
|
|
5626
|
+
hasMore: Type.Boolean(),
|
|
5627
|
+
lastScanReviewed: Type.Integer({ minimum: 0 }),
|
|
5628
|
+
lastScanIdeas: Type.Integer({ minimum: 0 }),
|
|
5629
|
+
lastScanAt: Type.Optional(NonEmptyString),
|
|
5630
|
+
oldestReviewedAt: Type.Optional(NonEmptyString),
|
|
5631
|
+
newestReviewedAt: Type.Optional(NonEmptyString)
|
|
5745
5632
|
});
|
|
5746
|
-
const
|
|
5747
|
-
|
|
5748
|
-
WorkerLiveEventErrorResponseFrameSchema,
|
|
5749
|
-
WorkerErrorResponseFrameSchema
|
|
5750
|
-
]);
|
|
5751
|
-
//#endregion
|
|
5752
|
-
//#region packages/gateway-protocol/src/schema/worker-inference.ts
|
|
5753
|
-
const WORKER_INFERENCE_PROTOCOL_FEATURE = "worker-inference-v1";
|
|
5754
|
-
const WORKER_INFERENCE_METHODS = ["worker.inference.start", "worker.inference.cancel"];
|
|
5755
|
-
const WORKER_PROTOCOL_MAX_INFERENCE_PAYLOAD_BYTES = WORKER_PROTOCOL_MAX_MEDIA_PAYLOAD_BYTES;
|
|
5756
|
-
const WORKER_INFERENCE_MAX_CONTEXT_MESSAGES = 1024;
|
|
5757
|
-
const WORKER_INFERENCE_MAX_TOOLS = 256;
|
|
5758
|
-
const WORKER_INFERENCE_MAX_OUTPUT_TOKENS = 1e6;
|
|
5759
|
-
function workerInferenceObject(properties) {
|
|
5760
|
-
return closedObject(properties);
|
|
5761
|
-
}
|
|
5762
|
-
const InferenceTextSchema = Type.String({ maxLength: WORKER_PROTOCOL_MAX_INFERENCE_PAYLOAD_BYTES });
|
|
5763
|
-
const OptionalInferenceTextSchema = Type.Optional(InferenceTextSchema);
|
|
5764
|
-
const WorkerInferenceTextContentSchema = workerInferenceObject({
|
|
5765
|
-
type: Type.Literal("text"),
|
|
5766
|
-
text: InferenceTextSchema,
|
|
5767
|
-
textSignature: OptionalInferenceTextSchema
|
|
5768
|
-
});
|
|
5769
|
-
const WorkerInferenceImageContentSchema = workerInferenceObject({
|
|
5770
|
-
type: Type.Literal("image"),
|
|
5771
|
-
data: Type.String({
|
|
5772
|
-
minLength: 1,
|
|
5773
|
-
maxLength: WORKER_PROTOCOL_MAX_INFERENCE_PAYLOAD_BYTES
|
|
5774
|
-
}),
|
|
5775
|
-
mimeType: Type.String({
|
|
5776
|
-
minLength: 1,
|
|
5777
|
-
maxLength: 256
|
|
5778
|
-
})
|
|
5779
|
-
});
|
|
5780
|
-
const WorkerInferenceThinkingContentSchema = workerInferenceObject({
|
|
5781
|
-
type: Type.Literal("thinking"),
|
|
5782
|
-
thinking: InferenceTextSchema,
|
|
5783
|
-
thinkingSignature: OptionalInferenceTextSchema,
|
|
5784
|
-
redacted: Type.Optional(Type.Boolean())
|
|
5785
|
-
});
|
|
5786
|
-
const WorkerInferenceToolCallSchema = workerInferenceObject({
|
|
5787
|
-
type: Type.Literal("toolCall"),
|
|
5788
|
-
id: WorkerIdentifierSchema,
|
|
5789
|
-
name: WorkerIdentifierSchema,
|
|
5790
|
-
arguments: Type.Record(Type.String({
|
|
5791
|
-
minLength: 1,
|
|
5792
|
-
maxLength: 256
|
|
5793
|
-
}), Type.Unknown()),
|
|
5794
|
-
thoughtSignature: OptionalInferenceTextSchema,
|
|
5795
|
-
executionMode: Type.Optional(Type.Union([Type.Literal("sequential"), Type.Literal("parallel")]))
|
|
5796
|
-
});
|
|
5797
|
-
const WorkerInferenceUserMessageSchema = workerInferenceObject({
|
|
5798
|
-
role: Type.Literal("user"),
|
|
5799
|
-
content: Type.Union([InferenceTextSchema, Type.Array(Type.Union([WorkerInferenceTextContentSchema, WorkerInferenceImageContentSchema]), {
|
|
5800
|
-
minItems: 1,
|
|
5801
|
-
maxItems: 128
|
|
5802
|
-
})]),
|
|
5803
|
-
timestamp: LiveIntegerSchema,
|
|
5804
|
-
runtimeContextCarrier: Type.Optional(Type.Boolean())
|
|
5805
|
-
});
|
|
5806
|
-
const WorkerInferenceAssistantMessageProperties = {
|
|
5807
|
-
role: Type.Literal("assistant"),
|
|
5808
|
-
content: Type.Array(Type.Union([
|
|
5809
|
-
WorkerInferenceTextContentSchema,
|
|
5810
|
-
WorkerInferenceThinkingContentSchema,
|
|
5811
|
-
WorkerInferenceToolCallSchema
|
|
5812
|
-
]), { maxItems: 128 }),
|
|
5813
|
-
api: WorkerIdentifierSchema,
|
|
5814
|
-
provider: WorkerIdentifierSchema,
|
|
5815
|
-
model: WorkerIdentifierSchema,
|
|
5816
|
-
responseModel: Type.Optional(WorkerIdentifierSchema),
|
|
5817
|
-
responseId: Type.Optional(WorkerIdentifierSchema),
|
|
5818
|
-
providerReplay: Type.Optional(WorkerProviderReplayStateSchema),
|
|
5819
|
-
usage: WorkerTranscriptUsageSchema,
|
|
5820
|
-
timestamp: LiveIntegerSchema
|
|
5821
|
-
};
|
|
5822
|
-
const WorkerInferenceAssistantMessageSchema = workerInferenceObject({
|
|
5823
|
-
...WorkerInferenceAssistantMessageProperties,
|
|
5824
|
-
stopReason: Type.Union([
|
|
5825
|
-
Type.Literal("stop"),
|
|
5826
|
-
Type.Literal("length"),
|
|
5827
|
-
Type.Literal("toolUse")
|
|
5828
|
-
])
|
|
5829
|
-
});
|
|
5830
|
-
const WorkerInferenceContextAssistantMessageSchema = workerInferenceObject({
|
|
5831
|
-
...WorkerInferenceAssistantMessageProperties,
|
|
5832
|
-
diagnostics: Type.Optional(Type.Array(WorkerTranscriptAssistantDiagnosticSchema, { maxItems: 128 })),
|
|
5833
|
-
stopReason: Type.Union([
|
|
5834
|
-
Type.Literal("stop"),
|
|
5835
|
-
Type.Literal("length"),
|
|
5836
|
-
Type.Literal("toolUse"),
|
|
5837
|
-
Type.Literal("error"),
|
|
5838
|
-
Type.Literal("aborted")
|
|
5839
|
-
]),
|
|
5840
|
-
errorMessage: OptionalInferenceTextSchema,
|
|
5841
|
-
errorCode: Type.Optional(Type.String({ maxLength: 256 })),
|
|
5842
|
-
errorType: Type.Optional(Type.String({ maxLength: 256 })),
|
|
5843
|
-
errorBody: OptionalInferenceTextSchema
|
|
5844
|
-
});
|
|
5845
|
-
const WorkerInferenceMessageSchema = Type.Union([
|
|
5846
|
-
WorkerInferenceUserMessageSchema,
|
|
5847
|
-
WorkerInferenceContextAssistantMessageSchema,
|
|
5848
|
-
workerInferenceObject({
|
|
5849
|
-
role: Type.Literal("toolResult"),
|
|
5850
|
-
toolCallId: WorkerIdentifierSchema,
|
|
5851
|
-
toolName: WorkerIdentifierSchema,
|
|
5852
|
-
content: Type.Array(Type.Union([WorkerInferenceTextContentSchema, WorkerInferenceImageContentSchema]), { maxItems: 128 }),
|
|
5853
|
-
details: Type.Optional(Type.Unknown()),
|
|
5854
|
-
isError: Type.Boolean(),
|
|
5855
|
-
timestamp: LiveIntegerSchema
|
|
5856
|
-
})
|
|
5857
|
-
]);
|
|
5858
|
-
const WorkerInferenceToolSchema = workerInferenceObject({
|
|
5859
|
-
name: WorkerIdentifierSchema,
|
|
5860
|
-
description: LiveTextSchema,
|
|
5861
|
-
parameters: Type.Unknown()
|
|
5862
|
-
});
|
|
5863
|
-
const WorkerInferenceModelRefSchema = workerInferenceObject({
|
|
5864
|
-
provider: WorkerIdentifierSchema,
|
|
5865
|
-
model: WorkerIdentifierSchema
|
|
5866
|
-
});
|
|
5867
|
-
const WorkerInferenceContextSchema = workerInferenceObject({
|
|
5868
|
-
systemPrompt: Type.Optional(InferenceTextSchema),
|
|
5869
|
-
messages: Type.Array(WorkerInferenceMessageSchema, { maxItems: WORKER_INFERENCE_MAX_CONTEXT_MESSAGES }),
|
|
5870
|
-
tools: Type.Optional(Type.Array(WorkerInferenceToolSchema, { maxItems: WORKER_INFERENCE_MAX_TOOLS }))
|
|
5871
|
-
});
|
|
5872
|
-
const WorkerInferenceReasoningSchema = Type.Union([
|
|
5873
|
-
Type.Literal("off"),
|
|
5874
|
-
Type.Literal("minimal"),
|
|
5875
|
-
Type.Literal("low"),
|
|
5876
|
-
Type.Literal("medium"),
|
|
5877
|
-
Type.Literal("high"),
|
|
5878
|
-
Type.Literal("xhigh"),
|
|
5879
|
-
Type.Literal("adaptive"),
|
|
5880
|
-
Type.Literal("max")
|
|
5881
|
-
]);
|
|
5882
|
-
const WorkerInferenceThinkingBudgetSchema = Type.Integer({
|
|
5883
|
-
minimum: 0,
|
|
5884
|
-
maximum: WORKER_INFERENCE_MAX_OUTPUT_TOKENS
|
|
5885
|
-
});
|
|
5886
|
-
const WorkerInferenceThinkingBudgetsSchema = workerInferenceObject({
|
|
5887
|
-
minimal: Type.Optional(WorkerInferenceThinkingBudgetSchema),
|
|
5888
|
-
low: Type.Optional(WorkerInferenceThinkingBudgetSchema),
|
|
5889
|
-
medium: Type.Optional(WorkerInferenceThinkingBudgetSchema),
|
|
5890
|
-
high: Type.Optional(WorkerInferenceThinkingBudgetSchema),
|
|
5891
|
-
max: Type.Optional(WorkerInferenceThinkingBudgetSchema)
|
|
5892
|
-
});
|
|
5893
|
-
const WorkerInferenceOptionsSchema = workerInferenceObject({
|
|
5894
|
-
temperature: Type.Optional(Type.Number({
|
|
5895
|
-
minimum: 0,
|
|
5896
|
-
maximum: 2
|
|
5897
|
-
})),
|
|
5898
|
-
maxTokens: Type.Optional(Type.Integer({
|
|
5899
|
-
minimum: 1,
|
|
5900
|
-
maximum: WORKER_INFERENCE_MAX_OUTPUT_TOKENS
|
|
5901
|
-
})),
|
|
5902
|
-
reasoning: Type.Optional(WorkerInferenceReasoningSchema),
|
|
5903
|
-
thinkingBudgets: Type.Optional(WorkerInferenceThinkingBudgetsSchema)
|
|
5904
|
-
});
|
|
5905
|
-
const WorkerInferenceIdentityProperties = {
|
|
5906
|
-
runEpoch: LiveIntegerSchema,
|
|
5907
|
-
sessionId: WorkerIdentifierSchema,
|
|
5908
|
-
runId: WorkerIdentifierSchema,
|
|
5909
|
-
turnId: WorkerIdentifierSchema
|
|
5910
|
-
};
|
|
5911
|
-
const WorkerInferenceStartParamsSchema = workerInferenceObject({
|
|
5912
|
-
...WorkerInferenceIdentityProperties,
|
|
5913
|
-
modelRef: WorkerInferenceModelRefSchema,
|
|
5914
|
-
context: WorkerInferenceContextSchema,
|
|
5915
|
-
options: WorkerInferenceOptionsSchema
|
|
5916
|
-
});
|
|
5917
|
-
const WorkerInferenceStartResultSchema = workerInferenceObject({ status: Type.Union([Type.Literal("accepted"), Type.Literal("replayed")]) });
|
|
5918
|
-
const WorkerInferenceErrorReasonSchema = Type.Union([
|
|
5919
|
-
Type.Literal("model-not-approved"),
|
|
5920
|
-
Type.Literal("invalid-context"),
|
|
5921
|
-
Type.Literal("epoch-mismatch"),
|
|
5922
|
-
Type.Literal("session-not-attached"),
|
|
5923
|
-
Type.Literal("provider-error"),
|
|
5924
|
-
Type.Literal("cancelled")
|
|
5925
|
-
]);
|
|
5926
|
-
const WorkerInferenceErrorShapeSchema = workerInferenceObject({
|
|
5927
|
-
code: Type.Union([Type.Literal("INVALID_REQUEST"), Type.Literal("UNAVAILABLE")]),
|
|
5928
|
-
message: Type.String({
|
|
5929
|
-
minLength: 1,
|
|
5930
|
-
maxLength: 256
|
|
5931
|
-
}),
|
|
5932
|
-
details: workerInferenceObject({ reason: WorkerInferenceErrorReasonSchema })
|
|
5933
|
-
});
|
|
5934
|
-
const WorkerInferenceStartRequestFrameSchema = workerInferenceObject({
|
|
5935
|
-
type: Type.Literal("req"),
|
|
5936
|
-
id: WorkerFrameIdSchema,
|
|
5937
|
-
method: Type.Literal(WORKER_INFERENCE_METHODS[0]),
|
|
5938
|
-
params: WorkerInferenceStartParamsSchema
|
|
5939
|
-
});
|
|
5940
|
-
const WorkerInferenceStartSuccessResponseFrameSchema = workerInferenceObject({
|
|
5941
|
-
type: Type.Literal("res"),
|
|
5942
|
-
id: WorkerFrameIdSchema,
|
|
5943
|
-
ok: Type.Literal(true),
|
|
5944
|
-
payload: WorkerInferenceStartResultSchema
|
|
5945
|
-
});
|
|
5946
|
-
const WorkerInferenceErrorResponseFrameSchema = workerInferenceObject({
|
|
5947
|
-
type: Type.Literal("res"),
|
|
5948
|
-
id: WorkerFrameIdSchema,
|
|
5949
|
-
ok: Type.Literal(false),
|
|
5950
|
-
error: WorkerInferenceErrorShapeSchema
|
|
5951
|
-
});
|
|
5952
|
-
const WorkerInferenceStartResponseFrameSchema = Type.Union([
|
|
5953
|
-
WorkerInferenceStartSuccessResponseFrameSchema,
|
|
5954
|
-
WorkerInferenceErrorResponseFrameSchema,
|
|
5955
|
-
WorkerErrorResponseFrameSchema
|
|
5956
|
-
]);
|
|
5957
|
-
const WorkerInferenceCancelParamsSchema = workerInferenceObject({ ...WorkerInferenceIdentityProperties });
|
|
5958
|
-
const WorkerInferenceCancelResultSchema = workerInferenceObject({ status: Type.Literal("cancelled") });
|
|
5959
|
-
const WorkerInferenceCancelRequestFrameSchema = workerInferenceObject({
|
|
5960
|
-
type: Type.Literal("req"),
|
|
5961
|
-
id: WorkerFrameIdSchema,
|
|
5962
|
-
method: Type.Literal(WORKER_INFERENCE_METHODS[1]),
|
|
5963
|
-
params: WorkerInferenceCancelParamsSchema
|
|
5964
|
-
});
|
|
5965
|
-
const WorkerInferenceCancelSuccessResponseFrameSchema = workerInferenceObject({
|
|
5966
|
-
type: Type.Literal("res"),
|
|
5967
|
-
id: WorkerFrameIdSchema,
|
|
5968
|
-
ok: Type.Literal(true),
|
|
5969
|
-
payload: WorkerInferenceCancelResultSchema
|
|
5970
|
-
});
|
|
5971
|
-
const WorkerInferenceCancelResponseFrameSchema = Type.Union([
|
|
5972
|
-
WorkerInferenceCancelSuccessResponseFrameSchema,
|
|
5973
|
-
WorkerInferenceErrorResponseFrameSchema,
|
|
5974
|
-
WorkerErrorResponseFrameSchema
|
|
5975
|
-
]);
|
|
5976
|
-
const WorkerInferenceResolvedModelSchema = workerInferenceObject({
|
|
5977
|
-
api: WorkerIdentifierSchema,
|
|
5978
|
-
provider: WorkerIdentifierSchema,
|
|
5979
|
-
model: WorkerIdentifierSchema
|
|
5980
|
-
});
|
|
5981
|
-
const WorkerInferenceStreamEventSchema = Type.Union([
|
|
5982
|
-
workerInferenceObject({
|
|
5983
|
-
type: Type.Literal("start"),
|
|
5984
|
-
resolvedModel: WorkerInferenceResolvedModelSchema,
|
|
5985
|
-
timestamp: LiveIntegerSchema
|
|
5986
|
-
}),
|
|
5987
|
-
workerInferenceObject({
|
|
5988
|
-
type: Type.Literal("text_start"),
|
|
5989
|
-
contentIndex: LiveIntegerSchema,
|
|
5990
|
-
contentSignature: OptionalInferenceTextSchema
|
|
5991
|
-
}),
|
|
5992
|
-
workerInferenceObject({
|
|
5993
|
-
type: Type.Literal("text_delta"),
|
|
5994
|
-
contentIndex: LiveIntegerSchema,
|
|
5995
|
-
delta: InferenceTextSchema
|
|
5996
|
-
}),
|
|
5997
|
-
workerInferenceObject({
|
|
5998
|
-
type: Type.Literal("text_end"),
|
|
5999
|
-
contentIndex: LiveIntegerSchema,
|
|
6000
|
-
contentSignature: OptionalInferenceTextSchema
|
|
6001
|
-
}),
|
|
6002
|
-
workerInferenceObject({
|
|
6003
|
-
type: Type.Literal("thinking_start"),
|
|
6004
|
-
contentIndex: LiveIntegerSchema
|
|
6005
|
-
}),
|
|
6006
|
-
workerInferenceObject({
|
|
6007
|
-
type: Type.Literal("thinking_delta"),
|
|
6008
|
-
contentIndex: LiveIntegerSchema,
|
|
6009
|
-
delta: InferenceTextSchema
|
|
6010
|
-
}),
|
|
6011
|
-
workerInferenceObject({
|
|
6012
|
-
type: Type.Literal("thinking_end"),
|
|
6013
|
-
contentIndex: LiveIntegerSchema,
|
|
6014
|
-
contentSignature: OptionalInferenceTextSchema
|
|
6015
|
-
}),
|
|
6016
|
-
workerInferenceObject({
|
|
6017
|
-
type: Type.Literal("toolcall_start"),
|
|
6018
|
-
contentIndex: LiveIntegerSchema,
|
|
6019
|
-
id: WorkerIdentifierSchema,
|
|
6020
|
-
toolName: WorkerIdentifierSchema
|
|
6021
|
-
}),
|
|
6022
|
-
workerInferenceObject({
|
|
6023
|
-
type: Type.Literal("toolcall_delta"),
|
|
6024
|
-
contentIndex: LiveIntegerSchema,
|
|
6025
|
-
delta: InferenceTextSchema
|
|
6026
|
-
}),
|
|
6027
|
-
workerInferenceObject({
|
|
6028
|
-
type: Type.Literal("toolcall_end"),
|
|
6029
|
-
contentIndex: LiveIntegerSchema
|
|
6030
|
-
})
|
|
6031
|
-
]);
|
|
6032
|
-
const WorkerInferenceEventParamsSchema = workerInferenceObject({
|
|
6033
|
-
...WorkerInferenceIdentityProperties,
|
|
6034
|
-
seq: LiveSequenceSchema,
|
|
6035
|
-
event: WorkerInferenceStreamEventSchema
|
|
6036
|
-
});
|
|
6037
|
-
const WorkerInferenceEventFrameSchema = workerInferenceObject({
|
|
6038
|
-
type: Type.Literal("event"),
|
|
6039
|
-
event: Type.Literal("worker.inference.event"),
|
|
6040
|
-
payload: WorkerInferenceEventParamsSchema
|
|
6041
|
-
});
|
|
6042
|
-
const WorkerInferenceTerminalDoneSchema = workerInferenceObject({
|
|
6043
|
-
type: Type.Literal("done"),
|
|
6044
|
-
message: WorkerInferenceAssistantMessageSchema
|
|
6045
|
-
});
|
|
6046
|
-
const WorkerInferenceTerminalErrorSchema = workerInferenceObject({
|
|
6047
|
-
type: Type.Literal("error"),
|
|
6048
|
-
reason: WorkerInferenceErrorReasonSchema,
|
|
6049
|
-
message: Type.String({
|
|
6050
|
-
minLength: 1,
|
|
6051
|
-
maxLength: 256
|
|
6052
|
-
}),
|
|
6053
|
-
usage: Type.Optional(WorkerTranscriptUsageSchema)
|
|
6054
|
-
});
|
|
6055
|
-
const WorkerInferenceTerminalOutcomeSchema = Type.Union([WorkerInferenceTerminalDoneSchema, WorkerInferenceTerminalErrorSchema]);
|
|
6056
|
-
const WorkerInferenceTerminalParamsSchema = workerInferenceObject({
|
|
6057
|
-
...WorkerInferenceIdentityProperties,
|
|
6058
|
-
seq: LiveSequenceSchema,
|
|
6059
|
-
outcome: WorkerInferenceTerminalOutcomeSchema
|
|
6060
|
-
});
|
|
6061
|
-
const WorkerInferenceTerminalFrameSchema = workerInferenceObject({
|
|
6062
|
-
type: Type.Literal("event"),
|
|
6063
|
-
event: Type.Literal("worker.inference.terminal"),
|
|
6064
|
-
payload: WorkerInferenceTerminalParamsSchema
|
|
6065
|
-
});
|
|
6066
|
-
function isSafeWorkerInferenceJson(data) {
|
|
6067
|
-
return checkProtocolJson(data, 32) === void 0;
|
|
6068
|
-
}
|
|
6069
|
-
function validateWorkerInferenceStartParams(data) {
|
|
6070
|
-
return isSafeWorkerInferenceJson(data) && Value.Check(WorkerInferenceStartParamsSchema, data);
|
|
6071
|
-
}
|
|
6072
|
-
function validateWorkerInferenceCancelParams(data) {
|
|
6073
|
-
return isSafeWorkerInferenceJson(data) && Value.Check(WorkerInferenceCancelParamsSchema, data);
|
|
6074
|
-
}
|
|
6075
|
-
function validateWorkerInferenceTerminalOutcome(data) {
|
|
6076
|
-
return isSafeWorkerInferenceJson(data) && Value.Check(WorkerInferenceTerminalOutcomeSchema, data);
|
|
6077
|
-
}
|
|
6078
|
-
function validateWorkerInferenceEventFrame(data) {
|
|
6079
|
-
return isSafeWorkerInferenceJson(data) && Value.Check(WorkerInferenceEventFrameSchema, data);
|
|
6080
|
-
}
|
|
6081
|
-
function validateWorkerInferenceTerminalFrame(data) {
|
|
6082
|
-
return isSafeWorkerInferenceJson(data) && Value.Check(WorkerInferenceTerminalFrameSchema, data);
|
|
6083
|
-
}
|
|
6084
|
-
//#endregion
|
|
6085
|
-
//#region packages/gateway-protocol/src/schema/computer.ts
|
|
6086
|
-
const ComputerStatusParamsSchema = closedObject({});
|
|
6087
|
-
const ComputerInvokeParamsSchema = closedObject({
|
|
6088
|
-
command: Type.Enum(["screen.snapshot", "computer.act"]),
|
|
6089
|
-
params: Type.Record(Type.String(), Type.Unknown()),
|
|
6090
|
-
generation: NonEmptyString,
|
|
6091
|
-
timeoutMs: Type.Optional(Type.Integer({ minimum: 1 })),
|
|
6092
|
-
idempotencyKey: NonEmptyString
|
|
6093
|
-
});
|
|
6094
|
-
//#endregion
|
|
6095
|
-
//#region packages/gateway-protocol/src/schema/skill-history.ts
|
|
6096
|
-
const SkillsProposalHistoryStatusParamsSchema = Type.Object({ agentId: Type.Optional(NonEmptyString) }, { additionalProperties: false });
|
|
6097
|
-
const SkillsProposalHistoryScanParamsSchema = Type.Object({
|
|
6098
|
-
agentId: Type.Optional(NonEmptyString),
|
|
6099
|
-
direction: Type.Optional(Type.Union([Type.Literal("older"), Type.Literal("newer")]))
|
|
6100
|
-
}, { additionalProperties: false });
|
|
6101
|
-
const SkillsProposalHistoryScanResultSchema = Type.Object({
|
|
6102
|
-
schema: Type.Literal("openclaw.skill-workshop.history-scan.v1"),
|
|
6103
|
-
hasScanned: Type.Boolean(),
|
|
6104
|
-
reviewedSessions: Type.Integer({ minimum: 0 }),
|
|
6105
|
-
ideasFound: Type.Integer({ minimum: 0 }),
|
|
6106
|
-
hasMore: Type.Boolean(),
|
|
6107
|
-
lastScanReviewed: Type.Integer({ minimum: 0 }),
|
|
6108
|
-
lastScanIdeas: Type.Integer({ minimum: 0 }),
|
|
6109
|
-
lastScanAt: Type.Optional(NonEmptyString),
|
|
6110
|
-
oldestReviewedAt: Type.Optional(NonEmptyString),
|
|
6111
|
-
newestReviewedAt: Type.Optional(NonEmptyString)
|
|
6112
|
-
}, { additionalProperties: false });
|
|
6113
|
-
const validateSkillsProposalHistoryStatusParams = /* @__PURE__ */ lazyCompile(SkillsProposalHistoryStatusParamsSchema);
|
|
6114
|
-
const validateSkillsProposalHistoryScanParams = /* @__PURE__ */ lazyCompile(SkillsProposalHistoryScanParamsSchema);
|
|
5633
|
+
const validateSkillsProposalHistoryStatusParams = /* @__PURE__ */ lazyCompile(SkillsProposalHistoryStatusParamsSchema);
|
|
5634
|
+
const validateSkillsProposalHistoryScanParams = /* @__PURE__ */ lazyCompile(SkillsProposalHistoryScanParamsSchema);
|
|
6115
5635
|
//#endregion
|
|
6116
5636
|
//#region packages/gateway-protocol/src/schema/skill-library.ts
|
|
6117
5637
|
const SKILL_LIBRARY_MAX_FILES = 256;
|
|
@@ -6125,8 +5645,7 @@ const sessionKey = Type.String({
|
|
|
6125
5645
|
minLength: 1,
|
|
6126
5646
|
maxLength: 512
|
|
6127
5647
|
});
|
|
6128
|
-
const
|
|
6129
|
-
const SkillLibraryFileSchema = Type.Object({
|
|
5648
|
+
const SkillLibraryFileSchema = closedObject({
|
|
6130
5649
|
path: Type.String({
|
|
6131
5650
|
minLength: 1,
|
|
6132
5651
|
maxLength: 512
|
|
@@ -6134,8 +5653,8 @@ const SkillLibraryFileSchema = Type.Object({
|
|
|
6134
5653
|
content: Type.String({ maxLength: Math.ceil(SKILL_LIBRARY_MAX_FILE_BYTES / 3) * 4 }),
|
|
6135
5654
|
encoding: Type.Optional(Type.Union([Type.Literal("utf8"), Type.Literal("base64")])),
|
|
6136
5655
|
executable: Type.Optional(Type.Boolean())
|
|
6137
|
-
}
|
|
6138
|
-
const SkillLibrarySelectionSchema =
|
|
5656
|
+
});
|
|
5657
|
+
const SkillLibrarySelectionSchema = closedObject({
|
|
6139
5658
|
skillId: id,
|
|
6140
5659
|
revision,
|
|
6141
5660
|
/** Persisted command identity: library collisions never shadow workspace names. */
|
|
@@ -6144,21 +5663,21 @@ const SkillLibrarySelectionSchema = Type.Object({
|
|
|
6144
5663
|
maxLength: 128
|
|
6145
5664
|
}),
|
|
6146
5665
|
ownerProfileId: Type.Union([Type.String({ maxLength: 128 }), Type.Null()])
|
|
6147
|
-
}
|
|
6148
|
-
const SkillsLibraryListParamsSchema =
|
|
5666
|
+
});
|
|
5667
|
+
const SkillsLibraryListParamsSchema = closedObject({
|
|
6149
5668
|
sessionKey: Type.Optional(sessionKey),
|
|
6150
5669
|
scope: Type.Optional(Type.Union([
|
|
6151
5670
|
Type.Literal("mine"),
|
|
6152
5671
|
Type.Literal("team"),
|
|
6153
5672
|
Type.Literal("all")
|
|
6154
5673
|
]))
|
|
6155
|
-
}
|
|
6156
|
-
const SkillsLibraryReadParamsSchema =
|
|
5674
|
+
});
|
|
5675
|
+
const SkillsLibraryReadParamsSchema = closedObject({
|
|
6157
5676
|
skillId: id,
|
|
6158
5677
|
revision: Type.Optional(revision),
|
|
6159
5678
|
sessionKey: Type.Optional(sessionKey)
|
|
6160
|
-
}
|
|
6161
|
-
const SkillsLibrarySaveParamsSchema =
|
|
5679
|
+
});
|
|
5680
|
+
const SkillsLibrarySaveParamsSchema = closedObject({
|
|
6162
5681
|
skillId: Type.Optional(id),
|
|
6163
5682
|
expectedRevision: Type.Union([revision, Type.Null()]),
|
|
6164
5683
|
slug,
|
|
@@ -6172,8 +5691,8 @@ const SkillsLibrarySaveParamsSchema = Type.Object({
|
|
|
6172
5691
|
minLength: 1,
|
|
6173
5692
|
maxLength: 512
|
|
6174
5693
|
}), { maxItems: 255 }))
|
|
6175
|
-
}
|
|
6176
|
-
const SkillsLibraryMutateParamsSchema =
|
|
5694
|
+
});
|
|
5695
|
+
const SkillsLibraryMutateParamsSchema = closedObject({
|
|
6177
5696
|
skillId: id,
|
|
6178
5697
|
expectedRevision: revision,
|
|
6179
5698
|
action: Type.Union([
|
|
@@ -6186,8 +5705,8 @@ const SkillsLibraryMutateParamsSchema = Type.Object({
|
|
|
6186
5705
|
Type.Literal("rollback")
|
|
6187
5706
|
]),
|
|
6188
5707
|
revision: Type.Optional(revision)
|
|
6189
|
-
}
|
|
6190
|
-
const SkillsLibraryActivateParamsSchema =
|
|
5708
|
+
});
|
|
5709
|
+
const SkillsLibraryActivateParamsSchema = closedObject({
|
|
6191
5710
|
sessionKey,
|
|
6192
5711
|
action: Type.Union([
|
|
6193
5712
|
Type.Literal("attach"),
|
|
@@ -6196,10 +5715,10 @@ const SkillsLibraryActivateParamsSchema = Type.Object({
|
|
|
6196
5715
|
]),
|
|
6197
5716
|
skillId: Type.Optional(id),
|
|
6198
5717
|
revision: Type.Optional(revision)
|
|
6199
|
-
}
|
|
6200
|
-
const SkillsLibraryImportParamsSchema =
|
|
5718
|
+
});
|
|
5719
|
+
const SkillsLibraryImportParamsSchema = closedObject({
|
|
6201
5720
|
slug,
|
|
6202
|
-
source:
|
|
5721
|
+
source: closedObject({
|
|
6203
5722
|
kind: Type.Literal("clawhub"),
|
|
6204
5723
|
slug: Type.String({
|
|
6205
5724
|
minLength: 1,
|
|
@@ -6209,10 +5728,10 @@ const SkillsLibraryImportParamsSchema = Type.Object({
|
|
|
6209
5728
|
minLength: 1,
|
|
6210
5729
|
maxLength: 128
|
|
6211
5730
|
}))
|
|
6212
|
-
}
|
|
6213
|
-
}
|
|
5731
|
+
})
|
|
5732
|
+
});
|
|
6214
5733
|
const SkillsLibraryUploadParamsSchema = Type.Union([
|
|
6215
|
-
|
|
5734
|
+
closedObject({
|
|
6216
5735
|
action: Type.Literal("begin"),
|
|
6217
5736
|
slug,
|
|
6218
5737
|
sizeBytes: Type.Integer({
|
|
@@ -6220,17 +5739,17 @@ const SkillsLibraryUploadParamsSchema = Type.Union([
|
|
|
6220
5739
|
maximum: SKILL_LIBRARY_MAX_BUNDLE_BYTES
|
|
6221
5740
|
}),
|
|
6222
5741
|
sha256: revision
|
|
6223
|
-
}
|
|
6224
|
-
|
|
5742
|
+
}),
|
|
5743
|
+
closedObject({
|
|
6225
5744
|
action: Type.Literal("chunk"),
|
|
6226
5745
|
uploadId: id,
|
|
6227
5746
|
offset: Type.Integer({ minimum: 0 }),
|
|
6228
5747
|
data: Type.String({ maxLength: 35e4 })
|
|
6229
|
-
}
|
|
6230
|
-
|
|
5748
|
+
}),
|
|
5749
|
+
closedObject({
|
|
6231
5750
|
action: Type.Literal("commit"),
|
|
6232
5751
|
uploadId: id
|
|
6233
|
-
}
|
|
5752
|
+
})
|
|
6234
5753
|
]);
|
|
6235
5754
|
const validateSkillsLibraryListParams = /* @__PURE__ */ lazyCompile(SkillsLibraryListParamsSchema);
|
|
6236
5755
|
const validateSkillsLibraryReadParams = /* @__PURE__ */ lazyCompile(SkillsLibraryReadParamsSchema);
|
|
@@ -6264,6 +5783,12 @@ const UiPanelCommandFields = {
|
|
|
6264
5783
|
dock: Type.Optional(Type.Union([Type.Literal("bottom"), Type.Literal("right")]))
|
|
6265
5784
|
};
|
|
6266
5785
|
const UiPanelCommandSchema = Type.Union([
|
|
5786
|
+
closedObject({
|
|
5787
|
+
...UiPanelCommandFields,
|
|
5788
|
+
panel: Type.Literal("plugin"),
|
|
5789
|
+
pluginId: NonEmptyString,
|
|
5790
|
+
panelId: NonEmptyString
|
|
5791
|
+
}),
|
|
6267
5792
|
closedObject({
|
|
6268
5793
|
...UiPanelCommandFields,
|
|
6269
5794
|
panel: Type.Literal("terminal"),
|
|
@@ -7024,15 +6549,18 @@ const TranscriptsStatusResultSchema = closedObject({
|
|
|
7024
6549
|
//#endregion
|
|
7025
6550
|
//#region packages/gateway-protocol/src/schema/sessions-list.ts
|
|
7026
6551
|
const SessionsListParamsSchema = closedObject({
|
|
6552
|
+
/** Omit detail-only capability metadata; sessions.describe retains the full row. */
|
|
6553
|
+
rowMode: Type.Optional(Type.Literal("compact")),
|
|
7027
6554
|
/** Maximum rows to return; omitted Gateway RPC calls use a bounded default. */
|
|
7028
6555
|
limit: Type.Optional(Type.Integer({ minimum: 1 })),
|
|
7029
6556
|
offset: Type.Optional(Type.Integer({ minimum: 0 })),
|
|
7030
6557
|
/** Activity age for sortBy: "activity"; otherwise metadata update age. */
|
|
7031
6558
|
activeMinutes: Type.Optional(Type.Integer({ minimum: 1 })),
|
|
7032
|
-
/**
|
|
7033
|
-
|
|
7034
|
-
|
|
7035
|
-
|
|
6559
|
+
/** Strictly ascending epoch-ms bucket boundaries in the caller's local time zone. */
|
|
6560
|
+
activityPulseBoundaries: Type.Optional(Type.Array(Type.Number({ minimum: 0 }), {
|
|
6561
|
+
minItems: 2,
|
|
6562
|
+
maxItems: 64
|
|
6563
|
+
})),
|
|
7036
6564
|
/** Select sessions with current direct running or queued work before pagination. */
|
|
7037
6565
|
activeOnly: Type.Optional(Type.Boolean()),
|
|
7038
6566
|
/** Require a real user/channel interaction; excludes synthetic isolated heartbeat rows. */
|
|
@@ -7157,6 +6685,18 @@ const UPDATE_RUN_STEP_STATUSES = [
|
|
|
7157
6685
|
"failed",
|
|
7158
6686
|
"skipped"
|
|
7159
6687
|
];
|
|
6688
|
+
const UPDATE_NPM_ERROR_CODES = [
|
|
6689
|
+
"ETARGET",
|
|
6690
|
+
"E404",
|
|
6691
|
+
"EINTEGRITY",
|
|
6692
|
+
"EACCES",
|
|
6693
|
+
"ENOTEMPTY",
|
|
6694
|
+
"ENOSPC",
|
|
6695
|
+
"ECONNRESET",
|
|
6696
|
+
"ETIMEDOUT",
|
|
6697
|
+
"EBUSY",
|
|
6698
|
+
"unknown"
|
|
6699
|
+
];
|
|
7160
6700
|
//#endregion
|
|
7161
6701
|
//#region packages/gateway-protocol/src/schema/update-runs.ts
|
|
7162
6702
|
const text = Type.String({ maxLength: 1024 });
|
|
@@ -7291,11 +6831,21 @@ const UpdateRunRecordSchema = closedObject({
|
|
|
7291
6831
|
startedAtMs: Type.Optional(timestamp),
|
|
7292
6832
|
endedAtMs: Type.Optional(timestamp),
|
|
7293
6833
|
exitCode: Type.Optional(Type.Union([Type.Integer(), Type.Null()])),
|
|
6834
|
+
termination: Type.Optional(Type.Enum([
|
|
6835
|
+
"exit",
|
|
6836
|
+
"timeout",
|
|
6837
|
+
"no-output-timeout",
|
|
6838
|
+
"signal"
|
|
6839
|
+
])),
|
|
6840
|
+
signal: Type.Optional(Type.Union([Type.String({ maxLength: 32 }), Type.Null()])),
|
|
6841
|
+
stderrTail: Type.Optional(Type.String({ maxLength: 8192 })),
|
|
7294
6842
|
detail: Type.Optional(text),
|
|
7295
6843
|
failureFacts: Type.Optional(Type.Array(closedObject({
|
|
7296
6844
|
check: Type.String({ maxLength: 128 }),
|
|
7297
6845
|
code: Type.String({ maxLength: 80 }),
|
|
7298
6846
|
message: Type.Optional(Type.String({ maxLength: 200 })),
|
|
6847
|
+
npmErrorCode: Type.Optional(Type.Enum(UPDATE_NPM_ERROR_CODES)),
|
|
6848
|
+
packageSpec: Type.Optional(Type.String({ maxLength: 200 })),
|
|
7299
6849
|
affectedKey: Type.Optional(Type.String({ maxLength: 128 })),
|
|
7300
6850
|
pluginId: Type.Optional(Type.String({ maxLength: 80 })),
|
|
7301
6851
|
errorName: Type.Optional(Type.Union([Type.String({ maxLength: 80 }), Type.Null()])),
|
|
@@ -7553,6 +7103,46 @@ const GitUpdateStatusSchema = Type.Union([
|
|
|
7553
7103
|
])
|
|
7554
7104
|
})
|
|
7555
7105
|
]);
|
|
7106
|
+
const ImmutableGenerationSha = Type.String({ pattern: "^[a-f0-9]{40}$" });
|
|
7107
|
+
const ImmutableOperationId = Type.String({ format: "uuid" });
|
|
7108
|
+
/** Recorded installation facts; preparation does not authorize activation. */
|
|
7109
|
+
const UpdateImmutableInstallSchema = closedObject({
|
|
7110
|
+
root: NonEmptyString,
|
|
7111
|
+
currentSha: ImmutableGenerationSha,
|
|
7112
|
+
currentPath: NonEmptyString,
|
|
7113
|
+
activationEnabled: Type.Optional(Type.Boolean()),
|
|
7114
|
+
activation: Type.Optional(closedObject({
|
|
7115
|
+
operationId: ImmutableOperationId,
|
|
7116
|
+
phase: Type.Union([
|
|
7117
|
+
Type.Literal("prepared"),
|
|
7118
|
+
Type.Literal("draining"),
|
|
7119
|
+
Type.Literal("stopping"),
|
|
7120
|
+
Type.Literal("stopped"),
|
|
7121
|
+
Type.Literal("publishing"),
|
|
7122
|
+
Type.Literal("starting"),
|
|
7123
|
+
Type.Literal("verifying"),
|
|
7124
|
+
Type.Literal("rollback-stopping"),
|
|
7125
|
+
Type.Literal("rollback-publishing"),
|
|
7126
|
+
Type.Literal("rollback-starting"),
|
|
7127
|
+
Type.Literal("rolled-back"),
|
|
7128
|
+
Type.Literal("recovery-required")
|
|
7129
|
+
]),
|
|
7130
|
+
previousSha: ImmutableGenerationSha,
|
|
7131
|
+
candidateSha: ImmutableGenerationSha
|
|
7132
|
+
})),
|
|
7133
|
+
lastActivation: Type.Optional(closedObject({
|
|
7134
|
+
operationId: ImmutableOperationId,
|
|
7135
|
+
outcome: Type.Union([Type.Literal("succeeded"), Type.Literal("rolled-back")]),
|
|
7136
|
+
selectedSha: ImmutableGenerationSha,
|
|
7137
|
+
verifiedAtMs: Type.Integer({ minimum: 0 })
|
|
7138
|
+
})),
|
|
7139
|
+
prepared: Type.Optional(closedObject({
|
|
7140
|
+
sha: ImmutableGenerationSha,
|
|
7141
|
+
path: NonEmptyString,
|
|
7142
|
+
buildDigest: Type.String({ pattern: "^[a-f0-9]{64}$" }),
|
|
7143
|
+
preparedAtMs: Type.Integer({ minimum: 0 })
|
|
7144
|
+
}))
|
|
7145
|
+
});
|
|
7556
7146
|
/** Authoritative automatic-update schedule and in-memory campaign state. */
|
|
7557
7147
|
const UpdateScheduleStateSchema = closedObject({
|
|
7558
7148
|
channel: NonEmptyString,
|
|
@@ -7561,9 +7151,11 @@ const UpdateScheduleStateSchema = closedObject({
|
|
|
7561
7151
|
kind: Type.Union([
|
|
7562
7152
|
Type.Literal("package"),
|
|
7563
7153
|
Type.Literal("git"),
|
|
7154
|
+
Type.Literal("immutable"),
|
|
7564
7155
|
Type.Literal("unknown")
|
|
7565
7156
|
]),
|
|
7566
|
-
git: Type.Optional(GitUpdateStatusSchema)
|
|
7157
|
+
git: Type.Optional(GitUpdateStatusSchema),
|
|
7158
|
+
immutable: Type.Optional(UpdateImmutableInstallSchema)
|
|
7567
7159
|
})),
|
|
7568
7160
|
target: Type.Optional(Type.Union([closedObject({
|
|
7569
7161
|
kind: Type.Literal("package"),
|
|
@@ -7736,11 +7328,7 @@ const ConfigSchemaLookupChildSchema = closedObject({
|
|
|
7736
7328
|
const ConfigSchemaLookupResultSchema = closedObject({
|
|
7737
7329
|
path: NonEmptyString,
|
|
7738
7330
|
schema: Type.Unknown(),
|
|
7739
|
-
reloadKind:
|
|
7740
|
-
Type.Literal("restart"),
|
|
7741
|
-
Type.Literal("hot"),
|
|
7742
|
-
Type.Literal("none")
|
|
7743
|
-
])),
|
|
7331
|
+
reloadKind: ConfigSchemaLookupChildSchema.properties.reloadKind,
|
|
7744
7332
|
hint: Type.Optional(ConfigUiHintSchema),
|
|
7745
7333
|
hintPath: Type.Optional(Type.String()),
|
|
7746
7334
|
children: Type.Array(ConfigSchemaLookupChildSchema)
|
|
@@ -7857,16 +7445,17 @@ const GatewaySuspendResumeResultSchema = closedObject({
|
|
|
7857
7445
|
status: Type.Literal("running"),
|
|
7858
7446
|
resumed: Type.Boolean()
|
|
7859
7447
|
});
|
|
7860
|
-
/** Arms cleanup
|
|
7448
|
+
/** Arms cleanup, or commits the exact host's shutdown before external native stop. */
|
|
7861
7449
|
const GatewaySuspendHandoffParamsSchema = closedObject({
|
|
7862
7450
|
suspensionId: SuspensionTokenSchema,
|
|
7451
|
+
commit: Type.Optional(Type.Literal(true)),
|
|
7863
7452
|
target: closedObject({
|
|
7864
7453
|
pid: Type.Integer({ minimum: 1 }),
|
|
7865
7454
|
processInstanceId: SuspensionTokenSchema
|
|
7866
7455
|
})
|
|
7867
7456
|
});
|
|
7868
7457
|
const GatewaySuspendHandoffResultSchema = closedObject({
|
|
7869
|
-
status: Type.Literal("armed"),
|
|
7458
|
+
status: Type.Union([Type.Literal("armed"), Type.Literal("committed")]),
|
|
7870
7459
|
suspensionId: SuspensionTokenSchema,
|
|
7871
7460
|
expiresAtMs: CountSchema
|
|
7872
7461
|
});
|
|
@@ -8100,20 +7689,641 @@ const SnapshotSchema = closedObject({
|
|
|
8100
7689
|
Type.Literal("password"),
|
|
8101
7690
|
Type.Literal("trusted-proxy")
|
|
8102
7691
|
])),
|
|
8103
|
-
updateAvailable: Type.Optional(UpdateAvailableSchema),
|
|
8104
|
-
updateSchedule: Type.Optional(UpdateScheduleStateSchema)
|
|
7692
|
+
updateAvailable: Type.Optional(UpdateAvailableSchema),
|
|
7693
|
+
updateSchedule: Type.Optional(UpdateScheduleStateSchema)
|
|
7694
|
+
});
|
|
7695
|
+
//#endregion
|
|
7696
|
+
//#region packages/gateway-protocol/src/schema/failover-reason.ts
|
|
7697
|
+
const failoverReasonLiteralSchemas = [
|
|
7698
|
+
"auth",
|
|
7699
|
+
"auth_permanent",
|
|
7700
|
+
"format",
|
|
7701
|
+
"rate_limit",
|
|
7702
|
+
"overloaded",
|
|
7703
|
+
"billing",
|
|
7704
|
+
"server_error",
|
|
7705
|
+
"timeout",
|
|
7706
|
+
"tls_certificate",
|
|
7707
|
+
"context_overflow",
|
|
7708
|
+
"model_not_found",
|
|
7709
|
+
"session_expired",
|
|
7710
|
+
"empty_response",
|
|
7711
|
+
"no_error_details",
|
|
7712
|
+
"unclassified",
|
|
7713
|
+
"unknown"
|
|
7714
|
+
].map((reason) => Type.Literal(reason));
|
|
7715
|
+
/** Closed failure reasons shared by model fallback producers and protocol consumers. */
|
|
7716
|
+
const FailoverReasonSchema = Type.Union(failoverReasonLiteralSchemas);
|
|
7717
|
+
const validatePresenceActivityParams = /* @__PURE__ */ lazyCompile(closedObject({}));
|
|
7718
|
+
const PresenceQueryParamsSchema = closedObject({
|
|
7719
|
+
action: Type.Optional(Type.Union([
|
|
7720
|
+
Type.Literal("list"),
|
|
7721
|
+
Type.Literal("person"),
|
|
7722
|
+
Type.Literal("device")
|
|
7723
|
+
], { description: "List connected people (default), inspect a person, or inspect a connected device." })),
|
|
7724
|
+
person: Type.Optional(Type.String({
|
|
7725
|
+
minLength: 1,
|
|
7726
|
+
maxLength: 320,
|
|
7727
|
+
description: "For person: me, a returned person/profile ID, or an exact unambiguous display name."
|
|
7728
|
+
})),
|
|
7729
|
+
deviceId: Type.Optional(Type.String({
|
|
7730
|
+
minLength: 1,
|
|
7731
|
+
description: "For device: the exact presence device ID returned by this tool."
|
|
7732
|
+
})),
|
|
7733
|
+
include: Type.Optional(Type.Array(Type.Union([
|
|
7734
|
+
Type.Literal("devices"),
|
|
7735
|
+
Type.Literal("network"),
|
|
7736
|
+
Type.Literal("location")
|
|
7737
|
+
]), {
|
|
7738
|
+
uniqueItems: true,
|
|
7739
|
+
maxItems: 3,
|
|
7740
|
+
description: "Optional device details. Network includes IP; location includes approximate IP location without requesting GPS. Each option includes devices."
|
|
7741
|
+
})),
|
|
7742
|
+
limit: Type.Optional(Type.Integer({
|
|
7743
|
+
minimum: 1,
|
|
7744
|
+
maximum: 100,
|
|
7745
|
+
description: "Maximum people returned (default 50, maximum 100); truncation is reported."
|
|
7746
|
+
}))
|
|
7747
|
+
});
|
|
7748
|
+
const PresenceActivitySchema = closedObject({
|
|
7749
|
+
at: Type.Integer({ minimum: 0 }),
|
|
7750
|
+
source: Type.Union([
|
|
7751
|
+
Type.Literal("openclaw-interaction"),
|
|
7752
|
+
Type.Literal("app-input"),
|
|
7753
|
+
Type.Literal("system-input")
|
|
7754
|
+
]),
|
|
7755
|
+
deviceId: NonEmptyString
|
|
7756
|
+
});
|
|
7757
|
+
const PresenceLocationSchema = closedObject({
|
|
7758
|
+
source: Type.Literal("ip"),
|
|
7759
|
+
status: Type.Union([
|
|
7760
|
+
Type.Literal("found"),
|
|
7761
|
+
Type.Literal("not-found"),
|
|
7762
|
+
Type.Literal("unavailable")
|
|
7763
|
+
]),
|
|
7764
|
+
city: Type.Optional(NonEmptyString),
|
|
7765
|
+
region: Type.Optional(NonEmptyString),
|
|
7766
|
+
country: Type.Optional(NonEmptyString),
|
|
7767
|
+
countryCode: Type.Optional(NonEmptyString),
|
|
7768
|
+
attribution: Type.Optional(closedObject({
|
|
7769
|
+
text: NonEmptyString,
|
|
7770
|
+
url: NonEmptyString
|
|
7771
|
+
}))
|
|
7772
|
+
});
|
|
7773
|
+
const PresenceDeviceSchema = closedObject({
|
|
7774
|
+
id: NonEmptyString,
|
|
7775
|
+
nodeId: Type.Optional(NonEmptyString),
|
|
7776
|
+
name: NonEmptyString,
|
|
7777
|
+
kind: Type.Union([Type.Literal("node"), Type.Literal("client")]),
|
|
7778
|
+
personIds: Type.Array(NonEmptyString),
|
|
7779
|
+
online: Type.Literal(true),
|
|
7780
|
+
activity: Type.Union([PresenceActivitySchema, Type.Null()]),
|
|
7781
|
+
connections: Type.Array(closedObject({
|
|
7782
|
+
id: NonEmptyString,
|
|
7783
|
+
clientId: Type.Optional(NonEmptyString),
|
|
7784
|
+
platform: Type.Optional(NonEmptyString),
|
|
7785
|
+
deviceFamily: Type.Optional(NonEmptyString),
|
|
7786
|
+
timeZone: Type.Optional(NonEmptyString),
|
|
7787
|
+
network: Type.Optional(closedObject({ ip: Type.Union([NonEmptyString, Type.Null()]) })),
|
|
7788
|
+
location: Type.Optional(PresenceLocationSchema)
|
|
7789
|
+
}))
|
|
7790
|
+
});
|
|
7791
|
+
const PresencePersonSchema = closedObject({
|
|
7792
|
+
id: NonEmptyString,
|
|
7793
|
+
profileId: Type.Optional(NonEmptyString),
|
|
7794
|
+
name: NonEmptyString,
|
|
7795
|
+
online: Type.Literal(true),
|
|
7796
|
+
onlineSince: Type.Optional(Type.Integer({ minimum: 0 })),
|
|
7797
|
+
activity: Type.Union([PresenceActivitySchema, Type.Null()]),
|
|
7798
|
+
deviceCount: Type.Integer({ minimum: 0 }),
|
|
7799
|
+
devices: Type.Optional(Type.Array(PresenceDeviceSchema))
|
|
7800
|
+
});
|
|
7801
|
+
const PresenceQueryResultSchema = closedObject({
|
|
7802
|
+
observedAt: Type.Integer({ minimum: 0 }),
|
|
7803
|
+
status: Type.Union([
|
|
7804
|
+
Type.Literal("ok"),
|
|
7805
|
+
Type.Literal("ambiguous"),
|
|
7806
|
+
Type.Literal("not-found"),
|
|
7807
|
+
Type.Literal("identity-unavailable")
|
|
7808
|
+
]),
|
|
7809
|
+
people: Type.Array(PresencePersonSchema),
|
|
7810
|
+
devices: Type.Optional(Type.Array(PresenceDeviceSchema)),
|
|
7811
|
+
totalPeople: Type.Integer({ minimum: 0 }),
|
|
7812
|
+
truncated: Type.Boolean(),
|
|
7813
|
+
message: Type.Optional(NonEmptyString)
|
|
7814
|
+
});
|
|
7815
|
+
//#endregion
|
|
7816
|
+
//#region packages/gateway-protocol/src/schema/worker-session-tools.ts
|
|
7817
|
+
const sessionText = Type.String({
|
|
7818
|
+
minLength: 1,
|
|
7819
|
+
maxLength: 8192
|
|
7820
|
+
});
|
|
7821
|
+
const sessionTimeout = Type.Optional(Type.Integer({
|
|
7822
|
+
minimum: 0,
|
|
7823
|
+
maximum: 86400
|
|
7824
|
+
}));
|
|
7825
|
+
const PlacedSessionsSpawnSchema = closedObject({
|
|
7826
|
+
task: sessionText,
|
|
7827
|
+
label: Type.Optional(Type.String({
|
|
7828
|
+
minLength: 1,
|
|
7829
|
+
maxLength: 256
|
|
7830
|
+
})),
|
|
7831
|
+
agentId: Type.Optional(Type.String({
|
|
7832
|
+
minLength: 1,
|
|
7833
|
+
maxLength: 256
|
|
7834
|
+
})),
|
|
7835
|
+
model: Type.Optional(Type.String({
|
|
7836
|
+
minLength: 1,
|
|
7837
|
+
maxLength: 256
|
|
7838
|
+
})),
|
|
7839
|
+
runTimeoutSeconds: sessionTimeout
|
|
7840
|
+
});
|
|
7841
|
+
const PlacedSessionsSendSchema = closedObject({
|
|
7842
|
+
sessionKey: Type.String({
|
|
7843
|
+
minLength: 1,
|
|
7844
|
+
maxLength: 1024
|
|
7845
|
+
}),
|
|
7846
|
+
message: sessionText,
|
|
7847
|
+
timeoutSeconds: sessionTimeout
|
|
7848
|
+
});
|
|
7849
|
+
const WORKER_SESSION_TOOLS_PROTOCOL_FEATURE = "worker-session-tools-v1";
|
|
7850
|
+
const WORKER_PORTAL_PROTOCOL_FEATURE = "worker-portal-v1";
|
|
7851
|
+
const WORKER_PRESENCE_PROTOCOL_FEATURE = "worker-presence-v1";
|
|
7852
|
+
const WORKER_SESSION_TOOL_MAX_TEXT_LENGTH = 8192;
|
|
7853
|
+
const WorkerSessionToolCallIdSchema = Type.String({
|
|
7854
|
+
minLength: 1,
|
|
7855
|
+
maxLength: 256
|
|
7856
|
+
});
|
|
7857
|
+
const WorkerSessionsSpawnParamsSchema = closedObject({
|
|
7858
|
+
...PlacedSessionsSpawnSchema.properties,
|
|
7859
|
+
toolCallId: WorkerSessionToolCallIdSchema,
|
|
7860
|
+
agentId: Type.Optional(WorkerIdentifierSchema)
|
|
7861
|
+
});
|
|
7862
|
+
const WorkerSessionsSendParamsSchema = closedObject({
|
|
7863
|
+
...PlacedSessionsSendSchema.properties,
|
|
7864
|
+
toolCallId: WorkerSessionToolCallIdSchema
|
|
7865
|
+
});
|
|
7866
|
+
const WorkerPortalParamsSchema = closedObject({
|
|
7867
|
+
toolCallId: WorkerSessionToolCallIdSchema,
|
|
7868
|
+
action: Type.Union([
|
|
7869
|
+
Type.Literal("open"),
|
|
7870
|
+
Type.Literal("list"),
|
|
7871
|
+
Type.Literal("close")
|
|
7872
|
+
]),
|
|
7873
|
+
port: Type.Optional(Type.Integer({
|
|
7874
|
+
minimum: 1,
|
|
7875
|
+
maximum: 65535
|
|
7876
|
+
})),
|
|
7877
|
+
title: Type.Optional(Type.String({
|
|
7878
|
+
minLength: 1,
|
|
7879
|
+
maxLength: 256
|
|
7880
|
+
})),
|
|
7881
|
+
description: Type.Optional(Type.String({ maxLength: WORKER_SESSION_TOOL_MAX_TEXT_LENGTH })),
|
|
7882
|
+
path: Type.Optional(Type.String({
|
|
7883
|
+
maxLength: 1024,
|
|
7884
|
+
pattern: "^/"
|
|
7885
|
+
})),
|
|
7886
|
+
id: Type.Optional(Type.String({
|
|
7887
|
+
minLength: 1,
|
|
7888
|
+
maxLength: 256
|
|
7889
|
+
}))
|
|
7890
|
+
});
|
|
7891
|
+
const WorkerPresenceParamsSchema = closedObject({
|
|
7892
|
+
toolCallId: WorkerSessionToolCallIdSchema,
|
|
7893
|
+
...PresenceQueryParamsSchema.properties
|
|
7894
|
+
});
|
|
7895
|
+
const WorkerSessionToolResultSchema = closedObject({ resultJson: Type.String({
|
|
7896
|
+
minLength: 2,
|
|
7897
|
+
maxLength: WORKER_PROTOCOL_MAX_PAYLOAD_BYTES
|
|
7898
|
+
}) });
|
|
7899
|
+
const WorkerSessionToolResponseFrameSchema = workerResponseSchema(WorkerSessionToolResultSchema);
|
|
7900
|
+
const WorkerSessionsSpawnResponseFrameSchema = WorkerSessionToolResponseFrameSchema;
|
|
7901
|
+
const WorkerSessionsSendResponseFrameSchema = WorkerSessionToolResponseFrameSchema;
|
|
7902
|
+
const WorkerPortalResponseFrameSchema = WorkerSessionToolResponseFrameSchema;
|
|
7903
|
+
const WorkerPresenceResponseFrameSchema = WorkerSessionToolResponseFrameSchema;
|
|
7904
|
+
//#endregion
|
|
7905
|
+
//#region packages/gateway-protocol/src/schema/worker-admission.ts
|
|
7906
|
+
const WORKER_RPC_SET_VERSION = 1;
|
|
7907
|
+
const WORKER_BUNDLE_PREWARM_VERSION = 1;
|
|
7908
|
+
const WORKER_HEARTBEAT_INTERVAL_MS = 15e3;
|
|
7909
|
+
const WORKER_PROTOCOL_METHODS = [
|
|
7910
|
+
"worker.heartbeat",
|
|
7911
|
+
"worker.transcript.commit",
|
|
7912
|
+
"worker.live-event",
|
|
7913
|
+
"worker.computer",
|
|
7914
|
+
WORKER_GATEWAY_TOOL_METHODS.invoke,
|
|
7915
|
+
WORKER_GATEWAY_TOOL_METHODS.cancel
|
|
7916
|
+
];
|
|
7917
|
+
const WORKER_TRANSCRIPT_COMMIT_PROTOCOL_FEATURE = "worker-transcript-commit-v1";
|
|
7918
|
+
const WORKER_LIVE_EVENT_PROTOCOL_FEATURE = "worker-live-event-v1";
|
|
7919
|
+
const WORKER_LAUNCH_V2_PROTOCOL_FEATURE = "worker-launch-v2";
|
|
7920
|
+
const WORKER_EXECUTION_CONTEXT_PROTOCOL_FEATURE = "worker-execution-context-v2";
|
|
7921
|
+
const WORKER_EXECUTION_AUTHORITY_PROTOCOL_FEATURE = "worker-execution-authority-v1";
|
|
7922
|
+
const WORKER_LINEAGE_START_PROTOCOL_FEATURE = "worker-lineage-start-v1";
|
|
7923
|
+
const WORKER_NATIVE_PROCESS_OWNER_PROTOCOL_FEATURE = "worker-native-process-owner-v1";
|
|
7924
|
+
const NODE_WORKER_IDLE_RETENTION_PROTOCOL_FEATURE = "node-worker-idle-retention-v1";
|
|
7925
|
+
const WORKER_PROTOCOL_FEATURES = [
|
|
7926
|
+
"skill-resources-v1",
|
|
7927
|
+
"worker-heartbeat-v1",
|
|
7928
|
+
WORKER_TRANSCRIPT_COMMIT_PROTOCOL_FEATURE,
|
|
7929
|
+
WORKER_LIVE_EVENT_PROTOCOL_FEATURE,
|
|
7930
|
+
WORKER_EXECUTION_CONTEXT_PROTOCOL_FEATURE,
|
|
7931
|
+
WORKER_EXECUTION_AUTHORITY_PROTOCOL_FEATURE,
|
|
7932
|
+
WORKER_LINEAGE_START_PROTOCOL_FEATURE,
|
|
7933
|
+
WORKER_NATIVE_PROCESS_OWNER_PROTOCOL_FEATURE,
|
|
7934
|
+
NODE_WORKER_IDLE_RETENTION_PROTOCOL_FEATURE,
|
|
7935
|
+
WORKER_COMPUTER_PROTOCOL_FEATURE,
|
|
7936
|
+
WORKER_GATEWAY_TOOLS_PROTOCOL_FEATURE,
|
|
7937
|
+
"worker-inference-v1"
|
|
7938
|
+
];
|
|
7939
|
+
const WORKER_PROTOCOL_MAX_METHOD_LENGTH = 64;
|
|
7940
|
+
const WORKER_PROTOCOL_MAX_FEATURES = 64;
|
|
7941
|
+
const WORKER_PROTOCOL_MAX_FEATURE_LENGTH = 128;
|
|
7942
|
+
const WORKER_TRANSCRIPT_MAX_BATCH_MESSAGES = 64;
|
|
7943
|
+
const WorkerCredentialSchema = Type.String({
|
|
7944
|
+
minLength: 16,
|
|
7945
|
+
maxLength: 256
|
|
7946
|
+
});
|
|
7947
|
+
const WorkerProtocolFeatureSchema = Type.String({
|
|
7948
|
+
minLength: 1,
|
|
7949
|
+
maxLength: 128
|
|
7950
|
+
});
|
|
7951
|
+
/** Build identity presented by a worker before the gateway admits it. */
|
|
7952
|
+
const WorkerAdmissionHandshakeSchema = withSince("2026.7", closedObject({
|
|
7953
|
+
bundleHash: Type.String({
|
|
7954
|
+
minLength: 64,
|
|
7955
|
+
maxLength: 64,
|
|
7956
|
+
pattern: "^[a-f0-9]{64}$"
|
|
7957
|
+
}),
|
|
7958
|
+
openclawVersion: Type.String({
|
|
7959
|
+
minLength: 1,
|
|
7960
|
+
maxLength: 128
|
|
7961
|
+
}),
|
|
7962
|
+
protocolFeatures: Type.Array(WorkerProtocolFeatureSchema, {
|
|
7963
|
+
maxItems: 64,
|
|
7964
|
+
uniqueItems: true
|
|
7965
|
+
}),
|
|
7966
|
+
bundlePrewarm: Type.Optional(Type.Integer({
|
|
7967
|
+
minimum: 1,
|
|
7968
|
+
maximum: Number.MAX_SAFE_INTEGER
|
|
7969
|
+
}))
|
|
7970
|
+
}));
|
|
7971
|
+
const WorkerConnectAdmissionCommonProperties = {
|
|
7972
|
+
environmentId: WorkerIdentifierSchema,
|
|
7973
|
+
credential: WorkerCredentialSchema,
|
|
7974
|
+
ownerEpoch: Type.Integer({
|
|
7975
|
+
minimum: 0,
|
|
7976
|
+
maximum: Number.MAX_SAFE_INTEGER
|
|
7977
|
+
}),
|
|
7978
|
+
rpcSetVersion: Type.Integer({
|
|
7979
|
+
minimum: 1,
|
|
7980
|
+
maximum: Number.MAX_SAFE_INTEGER
|
|
7981
|
+
}),
|
|
7982
|
+
handshake: WorkerAdmissionHandshakeSchema
|
|
7983
|
+
};
|
|
7984
|
+
const WorkerConnectAdmissionSchema = Type.Union([closedObject({
|
|
7985
|
+
...WorkerConnectAdmissionCommonProperties,
|
|
7986
|
+
sessionId: Type.Null(),
|
|
7987
|
+
runId: Type.Null()
|
|
7988
|
+
}), closedObject({
|
|
7989
|
+
...WorkerConnectAdmissionCommonProperties,
|
|
7990
|
+
sessionId: WorkerIdentifierSchema,
|
|
7991
|
+
runId: WorkerIdentifierSchema
|
|
7992
|
+
})]);
|
|
7993
|
+
const WorkerConnectRequestFrameSchema = workerRequestSchema("connect", closedObject({
|
|
7994
|
+
minProtocol: Type.Integer({ minimum: 1 }),
|
|
7995
|
+
maxProtocol: Type.Integer({ minimum: 1 }),
|
|
7996
|
+
client: closedObject({
|
|
7997
|
+
id: Type.Literal(GATEWAY_CLIENT_IDS.WORKER),
|
|
7998
|
+
version: Type.String({
|
|
7999
|
+
minLength: 1,
|
|
8000
|
+
maxLength: 128
|
|
8001
|
+
}),
|
|
8002
|
+
platform: Type.String({
|
|
8003
|
+
minLength: 1,
|
|
8004
|
+
maxLength: 128
|
|
8005
|
+
}),
|
|
8006
|
+
mode: Type.Literal(GATEWAY_CLIENT_MODES.WORKER)
|
|
8007
|
+
}),
|
|
8008
|
+
role: Type.Literal("worker"),
|
|
8009
|
+
admission: WorkerConnectAdmissionSchema
|
|
8010
|
+
}));
|
|
8011
|
+
const WorkerAdmissionResponseFrameSchema = workerResponseSchema(closedObject({
|
|
8012
|
+
type: Type.Literal("worker-hello-ok"),
|
|
8013
|
+
environmentId: WorkerIdentifierSchema,
|
|
8014
|
+
sessionId: Type.Union([WorkerIdentifierSchema, Type.Null()]),
|
|
8015
|
+
ownerEpoch: Type.Integer({
|
|
8016
|
+
minimum: 0,
|
|
8017
|
+
maximum: Number.MAX_SAFE_INTEGER
|
|
8018
|
+
}),
|
|
8019
|
+
rpcSetVersion: Type.Integer({
|
|
8020
|
+
minimum: 1,
|
|
8021
|
+
maximum: Number.MAX_SAFE_INTEGER
|
|
8022
|
+
}),
|
|
8023
|
+
protocolFeatures: Type.Array(WorkerProtocolFeatureSchema, {
|
|
8024
|
+
maxItems: 64,
|
|
8025
|
+
uniqueItems: true
|
|
8026
|
+
}),
|
|
8027
|
+
credentialExpiresAtMs: Type.Integer({ minimum: 0 }),
|
|
8028
|
+
toolSurface: Type.Optional(WorkerToolSurfaceSchema),
|
|
8029
|
+
policy: closedObject({
|
|
8030
|
+
heartbeatIntervalMs: Type.Integer({ minimum: 1 }),
|
|
8031
|
+
maxPayload: Type.Integer({ minimum: 1 })
|
|
8032
|
+
})
|
|
8033
|
+
}));
|
|
8034
|
+
const WorkerStatusSchema = Type.Union([
|
|
8035
|
+
Type.Literal("ready"),
|
|
8036
|
+
Type.Literal("busy"),
|
|
8037
|
+
Type.Literal("draining")
|
|
8038
|
+
]);
|
|
8039
|
+
const WorkerHeartbeatParamsSchema = closedObject({
|
|
8040
|
+
sentAtMs: Type.Integer({ minimum: 0 }),
|
|
8041
|
+
status: WorkerStatusSchema
|
|
8042
|
+
});
|
|
8043
|
+
const WorkerHeartbeatResultSchema = closedObject({
|
|
8044
|
+
receivedAtMs: Type.Integer({ minimum: 0 }),
|
|
8045
|
+
status: Type.Literal("ok"),
|
|
8046
|
+
ownerEpoch: Type.Integer({
|
|
8047
|
+
minimum: 0,
|
|
8048
|
+
maximum: Number.MAX_SAFE_INTEGER
|
|
8049
|
+
})
|
|
8050
|
+
});
|
|
8051
|
+
const WorkerHeartbeatRequestFrameSchema = workerRequestSchema(WORKER_PROTOCOL_METHODS[0], WorkerHeartbeatParamsSchema);
|
|
8052
|
+
const WorkerHeartbeatResponseFrameSchema = workerResponseSchema(WorkerHeartbeatResultSchema);
|
|
8053
|
+
const transcriptSchemas = workerMessageSchemas(LiveTextSchema, Type.String({
|
|
8054
|
+
minLength: 1,
|
|
8055
|
+
maxLength: WORKER_PROTOCOL_MAX_PAYLOAD_BYTES
|
|
8056
|
+
}), Type.Integer({ minimum: 0 }));
|
|
8057
|
+
const WorkerTranscriptUserMessageSchema = closedObject({
|
|
8058
|
+
role: Type.Literal("user"),
|
|
8059
|
+
content: transcriptSchemas.userContent,
|
|
8060
|
+
timestamp: Type.Integer({ minimum: 0 })
|
|
8061
|
+
});
|
|
8062
|
+
const WorkerTranscriptMessageSchema = Type.Union([
|
|
8063
|
+
WorkerTranscriptUserMessageSchema,
|
|
8064
|
+
transcriptSchemas.contextAssistant,
|
|
8065
|
+
transcriptSchemas.toolResult
|
|
8066
|
+
]);
|
|
8067
|
+
const WorkerTranscriptCommitParamsSchema = closedObject({
|
|
8068
|
+
runEpoch: Type.Integer({
|
|
8069
|
+
minimum: 0,
|
|
8070
|
+
maximum: Number.MAX_SAFE_INTEGER
|
|
8071
|
+
}),
|
|
8072
|
+
seq: Type.Integer({
|
|
8073
|
+
minimum: 1,
|
|
8074
|
+
maximum: Number.MAX_SAFE_INTEGER
|
|
8075
|
+
}),
|
|
8076
|
+
baseLeafId: Type.Union([WorkerIdentifierSchema, Type.Null()]),
|
|
8077
|
+
messages: Type.Array(WorkerTranscriptMessageSchema, {
|
|
8078
|
+
minItems: 1,
|
|
8079
|
+
maxItems: 64
|
|
8080
|
+
})
|
|
8081
|
+
});
|
|
8082
|
+
const WorkerTranscriptCommitResultSchema = closedObject({
|
|
8083
|
+
entryIds: Type.Array(WorkerIdentifierSchema, {
|
|
8084
|
+
minItems: 1,
|
|
8085
|
+
maxItems: 64
|
|
8086
|
+
}),
|
|
8087
|
+
newLeafId: WorkerIdentifierSchema
|
|
8088
|
+
});
|
|
8089
|
+
const WorkerTranscriptCommitErrorReasonSchema = Type.Enum([
|
|
8090
|
+
"stale-base-leaf",
|
|
8091
|
+
"epoch-mismatch",
|
|
8092
|
+
"invalid-batch",
|
|
8093
|
+
"session-not-attached"
|
|
8094
|
+
]);
|
|
8095
|
+
const WorkerTranscriptCommitErrorShapeSchema = closedObject({
|
|
8096
|
+
code: Type.Literal("INVALID_REQUEST"),
|
|
8097
|
+
message: Type.String({
|
|
8098
|
+
minLength: 1,
|
|
8099
|
+
maxLength: 256
|
|
8100
|
+
}),
|
|
8101
|
+
details: closedObject({ reason: WorkerTranscriptCommitErrorReasonSchema })
|
|
8102
|
+
});
|
|
8103
|
+
const WorkerTranscriptCommitRequestFrameSchema = workerRequestSchema(WORKER_PROTOCOL_METHODS[1], WorkerTranscriptCommitParamsSchema);
|
|
8104
|
+
const WorkerTranscriptCommitResponseFrameSchema = workerResponseSchema(WorkerTranscriptCommitResultSchema, workerErrorResponseSchema(WorkerTranscriptCommitErrorShapeSchema));
|
|
8105
|
+
const OptionalLiveTextSchema = Type.Optional(LiveTextSchema);
|
|
8106
|
+
const OptionalLiveIntegerSchema = Type.Optional(LiveIntegerSchema);
|
|
8107
|
+
const LiveIdentifierSchema = Type.String({
|
|
8108
|
+
minLength: 1,
|
|
8109
|
+
maxLength: WORKER_PROTOCOL_MAX_PAYLOAD_BYTES,
|
|
8110
|
+
pattern: "^\\S(?:.*\\S)?$"
|
|
8111
|
+
});
|
|
8112
|
+
const WorkerLiveAssistantPayloadSchema = closedObject({
|
|
8113
|
+
text: LiveTextSchema,
|
|
8114
|
+
delta: LiveTextSchema,
|
|
8115
|
+
replace: Type.Optional(Type.Literal(true)),
|
|
8116
|
+
mediaUrls: Type.Optional(Type.Array(LiveIdentifierSchema, { maxItems: 128 })),
|
|
8117
|
+
phase: Type.Optional(Type.Enum(["commentary", "final_answer"])),
|
|
8118
|
+
itemId: Type.Optional(WorkerIdentifierSchema)
|
|
8119
|
+
});
|
|
8120
|
+
const WorkerLiveThinkingPayloadSchema = closedObject({
|
|
8121
|
+
text: LiveTextSchema,
|
|
8122
|
+
delta: LiveTextSchema
|
|
8123
|
+
});
|
|
8124
|
+
const WorkerLiveToolCommonProperties = {
|
|
8125
|
+
name: WorkerIdentifierSchema,
|
|
8126
|
+
toolCallId: WorkerIdentifierSchema,
|
|
8127
|
+
hideFromChannelProgress: Type.Optional(Type.Literal(true))
|
|
8128
|
+
};
|
|
8129
|
+
const WorkerLiveToolPayloadSchema = Type.Union([
|
|
8130
|
+
closedObject({
|
|
8131
|
+
...WorkerLiveToolCommonProperties,
|
|
8132
|
+
phase: Type.Literal("start"),
|
|
8133
|
+
args: Type.Unknown()
|
|
8134
|
+
}),
|
|
8135
|
+
closedObject({
|
|
8136
|
+
...WorkerLiveToolCommonProperties,
|
|
8137
|
+
phase: Type.Literal("update"),
|
|
8138
|
+
partialResult: Type.Unknown()
|
|
8139
|
+
}),
|
|
8140
|
+
closedObject({
|
|
8141
|
+
...WorkerLiveToolCommonProperties,
|
|
8142
|
+
phase: Type.Literal("result"),
|
|
8143
|
+
meta: OptionalLiveTextSchema,
|
|
8144
|
+
isError: Type.Boolean(),
|
|
8145
|
+
result: Type.Unknown(),
|
|
8146
|
+
toolErrorSummary: OptionalLiveTextSchema
|
|
8147
|
+
})
|
|
8148
|
+
]);
|
|
8149
|
+
const WorkerLiveApprovalCommonProperties = {
|
|
8150
|
+
kind: Type.Enum([
|
|
8151
|
+
"exec",
|
|
8152
|
+
"plugin",
|
|
8153
|
+
"unknown"
|
|
8154
|
+
]),
|
|
8155
|
+
title: LiveTextSchema,
|
|
8156
|
+
itemId: Type.Optional(WorkerIdentifierSchema),
|
|
8157
|
+
toolCallId: Type.Optional(WorkerIdentifierSchema),
|
|
8158
|
+
approvalId: Type.Optional(WorkerIdentifierSchema),
|
|
8159
|
+
approvalSlug: Type.Optional(WorkerIdentifierSchema),
|
|
8160
|
+
command: OptionalLiveTextSchema,
|
|
8161
|
+
host: OptionalLiveTextSchema,
|
|
8162
|
+
reason: OptionalLiveTextSchema,
|
|
8163
|
+
scope: Type.Optional(Type.Enum(["turn", "session"])),
|
|
8164
|
+
message: OptionalLiveTextSchema
|
|
8165
|
+
};
|
|
8166
|
+
const WorkerLiveApprovalPayloadSchema = Type.Union([closedObject({
|
|
8167
|
+
...WorkerLiveApprovalCommonProperties,
|
|
8168
|
+
phase: Type.Literal("requested"),
|
|
8169
|
+
status: Type.Enum(["pending", "unavailable"])
|
|
8170
|
+
}), closedObject({
|
|
8171
|
+
...WorkerLiveApprovalCommonProperties,
|
|
8172
|
+
phase: Type.Literal("resolved"),
|
|
8173
|
+
status: Type.Enum([
|
|
8174
|
+
"approved",
|
|
8175
|
+
"denied",
|
|
8176
|
+
"failed"
|
|
8177
|
+
])
|
|
8178
|
+
})]);
|
|
8179
|
+
const WorkerLiveLifecycleStartPayloadSchema = closedObject({
|
|
8180
|
+
phase: Type.Literal("start"),
|
|
8181
|
+
startedAt: LiveIntegerSchema
|
|
8182
|
+
});
|
|
8183
|
+
const WorkerLiveFallbackAttemptSchema = closedObject({
|
|
8184
|
+
provider: LiveIdentifierSchema,
|
|
8185
|
+
model: LiveIdentifierSchema,
|
|
8186
|
+
error: LiveTextSchema,
|
|
8187
|
+
reason: Type.Optional(FailoverReasonSchema),
|
|
8188
|
+
authMode: Type.Optional(LiveIdentifierSchema),
|
|
8189
|
+
status: OptionalLiveIntegerSchema,
|
|
8190
|
+
code: Type.Optional(Type.String({
|
|
8191
|
+
minLength: 1,
|
|
8192
|
+
maxLength: WORKER_PROTOCOL_MAX_PAYLOAD_BYTES
|
|
8193
|
+
}))
|
|
8194
|
+
});
|
|
8195
|
+
const WorkerLiveFallbackCommonProperties = {
|
|
8196
|
+
selectedProvider: LiveIdentifierSchema,
|
|
8197
|
+
selectedModel: LiveIdentifierSchema,
|
|
8198
|
+
activeProvider: LiveIdentifierSchema,
|
|
8199
|
+
activeModel: LiveIdentifierSchema
|
|
8200
|
+
};
|
|
8201
|
+
const WorkerLiveLifecycleFallbackPayloadSchema = closedObject({
|
|
8202
|
+
...WorkerLiveFallbackCommonProperties,
|
|
8203
|
+
phase: Type.Literal("fallback"),
|
|
8204
|
+
reasonSummary: LiveTextSchema,
|
|
8205
|
+
attemptSummaries: Type.Array(LiveTextSchema, { maxItems: 128 }),
|
|
8206
|
+
attempts: Type.Array(WorkerLiveFallbackAttemptSchema, { maxItems: 128 })
|
|
8207
|
+
});
|
|
8208
|
+
const WorkerLiveLifecycleFallbackClearedPayloadSchema = closedObject({
|
|
8209
|
+
...WorkerLiveFallbackCommonProperties,
|
|
8210
|
+
phase: Type.Literal("fallback_cleared"),
|
|
8211
|
+
previousActiveModel: Type.Optional(LiveIdentifierSchema)
|
|
8212
|
+
});
|
|
8213
|
+
const WorkerLiveLifecycleFallbackStepPayloadSchema = closedObject({
|
|
8214
|
+
phase: Type.Literal("fallback_step"),
|
|
8215
|
+
fallbackStepType: Type.Literal("fallback_step"),
|
|
8216
|
+
fallbackStepFromModel: LiveIdentifierSchema,
|
|
8217
|
+
fallbackStepToModel: Type.Optional(LiveIdentifierSchema),
|
|
8218
|
+
fallbackStepFromFailureReason: Type.Optional(FailoverReasonSchema),
|
|
8219
|
+
fallbackStepFromFailureDetail: OptionalLiveTextSchema,
|
|
8220
|
+
fallbackStepChainPosition: OptionalLiveIntegerSchema,
|
|
8221
|
+
fallbackStepFinalOutcome: Type.Enum([
|
|
8222
|
+
"next_fallback",
|
|
8223
|
+
"succeeded",
|
|
8224
|
+
"chain_exhausted"
|
|
8225
|
+
])
|
|
8226
|
+
});
|
|
8227
|
+
const WorkerLiveLifecycleTerminalCommonProperties = {
|
|
8228
|
+
startedAt: OptionalLiveIntegerSchema,
|
|
8229
|
+
endedAt: LiveIntegerSchema,
|
|
8230
|
+
stopReason: Type.Optional(WorkerIdentifierSchema),
|
|
8231
|
+
yielded: Type.Optional(Type.Literal(true)),
|
|
8232
|
+
timeoutPhase: Type.Optional(Type.Enum([
|
|
8233
|
+
"queue",
|
|
8234
|
+
"preflight",
|
|
8235
|
+
"provider",
|
|
8236
|
+
"post_turn",
|
|
8237
|
+
"gateway_draining"
|
|
8238
|
+
])),
|
|
8239
|
+
providerStarted: Type.Optional(Type.Boolean()),
|
|
8240
|
+
aborted: Type.Optional(Type.Boolean()),
|
|
8241
|
+
toolErrorSummary: OptionalLiveTextSchema,
|
|
8242
|
+
livenessState: Type.Optional(Type.Enum([
|
|
8243
|
+
"working",
|
|
8244
|
+
"paused",
|
|
8245
|
+
"blocked",
|
|
8246
|
+
"abandoned"
|
|
8247
|
+
])),
|
|
8248
|
+
replayInvalid: Type.Optional(Type.Literal(true))
|
|
8249
|
+
};
|
|
8250
|
+
const WorkerLiveLifecycleTerminalPayloadSchema = Type.Union([
|
|
8251
|
+
closedObject({
|
|
8252
|
+
...WorkerLiveLifecycleTerminalCommonProperties,
|
|
8253
|
+
phase: Type.Literal("finishing"),
|
|
8254
|
+
error: OptionalLiveTextSchema
|
|
8255
|
+
}),
|
|
8256
|
+
closedObject({
|
|
8257
|
+
...WorkerLiveLifecycleTerminalCommonProperties,
|
|
8258
|
+
phase: Type.Literal("end")
|
|
8259
|
+
}),
|
|
8260
|
+
closedObject({
|
|
8261
|
+
...WorkerLiveLifecycleTerminalCommonProperties,
|
|
8262
|
+
phase: Type.Literal("error"),
|
|
8263
|
+
error: LiveTextSchema,
|
|
8264
|
+
fallbackExhaustedFailure: Type.Optional(Type.Literal(true))
|
|
8265
|
+
})
|
|
8266
|
+
]);
|
|
8267
|
+
const WorkerLiveLifecyclePayloadSchema = Type.Union([
|
|
8268
|
+
WorkerLiveLifecycleStartPayloadSchema,
|
|
8269
|
+
WorkerLiveLifecycleFallbackPayloadSchema,
|
|
8270
|
+
WorkerLiveLifecycleFallbackClearedPayloadSchema,
|
|
8271
|
+
WorkerLiveLifecycleFallbackStepPayloadSchema,
|
|
8272
|
+
WorkerLiveLifecycleTerminalPayloadSchema
|
|
8273
|
+
]);
|
|
8274
|
+
const WorkerLiveEventSchema = Type.Union([
|
|
8275
|
+
closedObject({
|
|
8276
|
+
kind: Type.Literal("assistant"),
|
|
8277
|
+
payload: WorkerLiveAssistantPayloadSchema
|
|
8278
|
+
}),
|
|
8279
|
+
closedObject({
|
|
8280
|
+
kind: Type.Literal("thinking"),
|
|
8281
|
+
payload: WorkerLiveThinkingPayloadSchema
|
|
8282
|
+
}),
|
|
8283
|
+
closedObject({
|
|
8284
|
+
kind: Type.Literal("tool"),
|
|
8285
|
+
payload: WorkerLiveToolPayloadSchema
|
|
8286
|
+
}),
|
|
8287
|
+
closedObject({
|
|
8288
|
+
kind: Type.Literal("approval"),
|
|
8289
|
+
payload: WorkerLiveApprovalPayloadSchema
|
|
8290
|
+
}),
|
|
8291
|
+
closedObject({
|
|
8292
|
+
kind: Type.Literal("lifecycle"),
|
|
8293
|
+
payload: WorkerLiveLifecyclePayloadSchema
|
|
8294
|
+
})
|
|
8295
|
+
]);
|
|
8296
|
+
const WorkerLiveEventParamsSchema = closedObject({
|
|
8297
|
+
runEpoch: LiveIntegerSchema,
|
|
8298
|
+
lastAckedSeq: LiveIntegerSchema,
|
|
8299
|
+
seq: LiveSequenceSchema,
|
|
8300
|
+
runId: WorkerIdentifierSchema,
|
|
8301
|
+
event: WorkerLiveEventSchema
|
|
8302
|
+
});
|
|
8303
|
+
const WorkerLiveEventResultSchema = closedObject({ ackedSeq: LiveIntegerSchema });
|
|
8304
|
+
const WorkerLiveEventErrorDetailsSchema = Type.Union([closedObject({ reason: Type.Enum([
|
|
8305
|
+
"epoch-mismatch",
|
|
8306
|
+
"session-not-attached",
|
|
8307
|
+
"invalid-event",
|
|
8308
|
+
"capacity-exceeded"
|
|
8309
|
+
]) }), closedObject({
|
|
8310
|
+
reason: Type.Literal("resync-required"),
|
|
8311
|
+
ackedSeq: LiveIntegerSchema,
|
|
8312
|
+
expectedSeq: LiveSequenceSchema
|
|
8313
|
+
})]);
|
|
8314
|
+
const WorkerLiveEventErrorShapeSchema = closedObject({
|
|
8315
|
+
code: Type.Literal("INVALID_REQUEST"),
|
|
8316
|
+
message: Type.String({
|
|
8317
|
+
minLength: 1,
|
|
8318
|
+
maxLength: 256
|
|
8319
|
+
}),
|
|
8320
|
+
details: WorkerLiveEventErrorDetailsSchema
|
|
8105
8321
|
});
|
|
8322
|
+
const WorkerLiveEventRequestFrameSchema = workerRequestSchema(WORKER_PROTOCOL_METHODS[2], WorkerLiveEventParamsSchema);
|
|
8323
|
+
const WorkerLiveEventResponseFrameSchema = workerResponseSchema(WorkerLiveEventResultSchema, workerErrorResponseSchema(WorkerLiveEventErrorShapeSchema));
|
|
8106
8324
|
//#endregion
|
|
8107
8325
|
//#region packages/gateway-protocol/src/schema/frames.ts
|
|
8108
|
-
/**
|
|
8109
|
-
* Top-level gateway frame schemas.
|
|
8110
|
-
*
|
|
8111
|
-
* These are the WebSocket envelope contracts; method/event payload schemas live
|
|
8112
|
-
* in feature-specific modules and are referenced by runtime validators.
|
|
8113
|
-
*/
|
|
8114
|
-
/** Periodic server heartbeat event payload. */
|
|
8115
8326
|
const TickEventSchema = closedObject({ ts: Type.Integer({ minimum: 0 }) });
|
|
8116
|
-
/** Server shutdown notice event payload. */
|
|
8117
8327
|
const ShutdownEventSchema = closedObject({
|
|
8118
8328
|
reason: NonEmptyString,
|
|
8119
8329
|
restartExpectedMs: Type.Optional(Type.Integer({ minimum: 0 }))
|
|
@@ -8178,7 +8388,6 @@ const ConnectParamsSchema = closedObject({
|
|
|
8178
8388
|
locale: Type.Optional(Type.String()),
|
|
8179
8389
|
userAgent: Type.Optional(Type.String())
|
|
8180
8390
|
});
|
|
8181
|
-
/** Successful gateway hello response with the server protocol and initial state. */
|
|
8182
8391
|
const HelloOkSchema = closedObject({
|
|
8183
8392
|
type: Type.Literal("hello-ok"),
|
|
8184
8393
|
protocol: Type.Integer({ minimum: 1 }),
|
|
@@ -8221,6 +8430,12 @@ const HelloOkSchema = closedObject({
|
|
|
8221
8430
|
recoveryScope: Type.Optional(NonEmptyString),
|
|
8222
8431
|
role: NonEmptyString,
|
|
8223
8432
|
scopes: Type.Array(NonEmptyString),
|
|
8433
|
+
sessionCap: Type.Optional(Type.Union([
|
|
8434
|
+
Type.Literal("write"),
|
|
8435
|
+
Type.Literal("suggest"),
|
|
8436
|
+
Type.Literal("view"),
|
|
8437
|
+
Type.Literal("none")
|
|
8438
|
+
])),
|
|
8224
8439
|
issuedAtMs: Type.Optional(Type.Integer({ minimum: 0 })),
|
|
8225
8440
|
deviceTokens: Type.Optional(Type.Array(closedObject({
|
|
8226
8441
|
deviceToken: NonEmptyString,
|
|
@@ -8258,7 +8473,6 @@ const RequestFrameSchema = closedObject({
|
|
|
8258
8473
|
traceparent: Type.Optional(Type.String({ maxLength: 128 })),
|
|
8259
8474
|
expectedProfileId: Type.Optional(UserProfileIdSchema)
|
|
8260
8475
|
});
|
|
8261
|
-
/** Server response frame envelope paired with a prior request id. */
|
|
8262
8476
|
const ResponseFrameSchema = closedObject({
|
|
8263
8477
|
type: Type.Literal("res"),
|
|
8264
8478
|
id: NonEmptyString,
|
|
@@ -8408,6 +8622,12 @@ const CHAT_WORK_CONTEXT_LIMITS = {
|
|
|
8408
8622
|
file: 224,
|
|
8409
8623
|
selection: 640
|
|
8410
8624
|
};
|
|
8625
|
+
/** Keep plugin reference fields small even when their JSON needs escaping. */
|
|
8626
|
+
const CHAT_WORK_CONTEXT_DETAIL_LIMITS = {
|
|
8627
|
+
fields: 4,
|
|
8628
|
+
key: 32,
|
|
8629
|
+
value: 128
|
|
8630
|
+
};
|
|
8411
8631
|
//#endregion
|
|
8412
8632
|
//#region packages/gateway-protocol/src/schema/chat-history-constants.ts
|
|
8413
8633
|
/** Largest history page accepted by the Gateway wire contract. */
|
|
@@ -8678,7 +8898,14 @@ const ChatWorkContextSchema = closedObject({
|
|
|
8678
8898
|
agentId: Type.Optional(Type.String({ maxLength: CHAT_WORK_CONTEXT_LIMITS.agentId })),
|
|
8679
8899
|
workspace: Type.Optional(Type.String({ maxLength: CHAT_WORK_CONTEXT_LIMITS.workspace })),
|
|
8680
8900
|
file: Type.Optional(Type.String({ maxLength: CHAT_WORK_CONTEXT_LIMITS.file })),
|
|
8681
|
-
selection: Type.Optional(Type.String({ maxLength: CHAT_WORK_CONTEXT_LIMITS.selection }))
|
|
8901
|
+
selection: Type.Optional(Type.String({ maxLength: CHAT_WORK_CONTEXT_LIMITS.selection })),
|
|
8902
|
+
detail: Type.Optional(Type.Record(Type.String({ pattern: "^[\\s\\S]*$" }), Type.String({ maxLength: CHAT_WORK_CONTEXT_DETAIL_LIMITS.value }), {
|
|
8903
|
+
maxProperties: CHAT_WORK_CONTEXT_DETAIL_LIMITS.fields,
|
|
8904
|
+
propertyNames: Type.String({
|
|
8905
|
+
minLength: 1,
|
|
8906
|
+
maxLength: CHAT_WORK_CONTEXT_DETAIL_LIMITS.key
|
|
8907
|
+
})
|
|
8908
|
+
}))
|
|
8682
8909
|
});
|
|
8683
8910
|
/** User-to-agent send request; idempotency key lets clients safely retry transport failures. */
|
|
8684
8911
|
const ChatSendParamsSchema = closedObject({
|
|
@@ -8690,7 +8917,11 @@ const ChatSendParamsSchema = closedObject({
|
|
|
8690
8917
|
workContext: Type.Optional(ChatWorkContextSchema),
|
|
8691
8918
|
intent: Type.Optional(ChatSendIntentSchema),
|
|
8692
8919
|
thinking: Type.Optional(Type.String()),
|
|
8693
|
-
fastMode: Type.Optional(Type.Union([
|
|
8920
|
+
fastMode: Type.Optional(Type.Union([
|
|
8921
|
+
Type.Boolean(),
|
|
8922
|
+
Type.Literal("auto"),
|
|
8923
|
+
Type.Literal("ultrafast")
|
|
8924
|
+
])),
|
|
8694
8925
|
fastAutoOnSeconds: Type.Optional(Type.Integer({ minimum: 1 })),
|
|
8695
8926
|
queueMode: Type.Optional(Type.String({ enum: [...QUEUE_MODES] })),
|
|
8696
8927
|
deliver: Type.Optional(Type.Boolean()),
|
|
@@ -8892,7 +9123,11 @@ const SessionsCreateParamsSchema = closedObject({
|
|
|
8892
9123
|
agentRuntime: Type.Optional(NonEmptyString),
|
|
8893
9124
|
contextWindow: Type.Optional(NonEmptyString),
|
|
8894
9125
|
thinkingLevel: Type.Optional(NonEmptyString),
|
|
8895
|
-
fastMode: Type.Optional(Type.Union([
|
|
9126
|
+
fastMode: Type.Optional(Type.Union([
|
|
9127
|
+
Type.Boolean(),
|
|
9128
|
+
Type.Literal("auto"),
|
|
9129
|
+
Type.Literal("ultrafast")
|
|
9130
|
+
])),
|
|
8896
9131
|
permissionMode: Type.Optional(SessionPermissionModeSchema),
|
|
8897
9132
|
toolOverrides: Type.Optional(SessionToolOverridesSchema),
|
|
8898
9133
|
incognito: Type.Optional(Type.Boolean()),
|
|
@@ -9135,12 +9370,14 @@ const SessionsPatchMutationProperties = {
|
|
|
9135
9370
|
})),
|
|
9136
9371
|
archived: Type.Optional(Type.Boolean()),
|
|
9137
9372
|
pinned: Type.Optional(Type.Boolean()),
|
|
9373
|
+
snoozedUntil: Type.Optional(Type.Union([Type.Integer({ minimum: 1 }), Type.Null()], { description: "Epoch ms wake time that hides the session from active lists until then; null wakes it." })),
|
|
9138
9374
|
unread: Type.Optional(Type.Boolean({ description: "Set true to mark unread; false records the session as read." })),
|
|
9139
9375
|
contextWindow: Type.Optional(Type.Union([NonEmptyString, Type.Null()])),
|
|
9140
9376
|
thinkingLevel: Type.Optional(Type.Union([NonEmptyString, Type.Null()])),
|
|
9141
9377
|
fastMode: Type.Optional(Type.Union([
|
|
9142
9378
|
Type.Boolean(),
|
|
9143
9379
|
Type.Literal("auto"),
|
|
9380
|
+
Type.Literal("ultrafast"),
|
|
9144
9381
|
Type.Null()
|
|
9145
9382
|
])),
|
|
9146
9383
|
toolOverrides: Type.Optional(Type.Union([SessionToolOverridesSchema, Type.Null()])),
|
|
@@ -9490,6 +9727,31 @@ const SessionsFilesGetResultSchema = closedObject({
|
|
|
9490
9727
|
root: Type.Optional(NonEmptyString),
|
|
9491
9728
|
file: SessionFileEntrySchema
|
|
9492
9729
|
});
|
|
9730
|
+
const SESSIONS_FILES_ASSETS_MAX_REFS = 64;
|
|
9731
|
+
const SESSIONS_FILES_ASSET_MAX_BYTES = 1048576;
|
|
9732
|
+
const SESSIONS_FILES_ASSETS_MAX_TOTAL_BYTES = 4194304;
|
|
9733
|
+
const sessionFileAssetRefSchema = Type.String({
|
|
9734
|
+
minLength: 1,
|
|
9735
|
+
maxLength: 4096
|
|
9736
|
+
});
|
|
9737
|
+
/** Reads relative HTML resources under the session's current file-read authority. */
|
|
9738
|
+
const SessionsFilesAssetsParamsSchema = closedObject({
|
|
9739
|
+
...SessionsFilesGetParamsSchema.properties,
|
|
9740
|
+
refs: Type.Array(sessionFileAssetRefSchema, { maxItems: 64 })
|
|
9741
|
+
});
|
|
9742
|
+
const SessionsFilesAssetsResultSchema = closedObject({ assets: Type.Array(Type.Union([closedObject({
|
|
9743
|
+
ref: sessionFileAssetRefSchema,
|
|
9744
|
+
mimeType: NonEmptyString,
|
|
9745
|
+
content: Type.String()
|
|
9746
|
+
}), closedObject({
|
|
9747
|
+
ref: sessionFileAssetRefSchema,
|
|
9748
|
+
error: Type.Union([
|
|
9749
|
+
Type.Literal("not_found"),
|
|
9750
|
+
Type.Literal("too_large"),
|
|
9751
|
+
Type.Literal("outside_session_boundary"),
|
|
9752
|
+
Type.Literal("unsupported")
|
|
9753
|
+
])
|
|
9754
|
+
})]), { maxItems: 64 }) });
|
|
9493
9755
|
/** Overwrites one existing session workspace file with hash-based CAS. */
|
|
9494
9756
|
const SessionsFilesSetParamsSchema = closedObject({
|
|
9495
9757
|
...SessionsFilesGetParamsSchema.properties,
|
|
@@ -10025,6 +10287,64 @@ const SessionTypingEventSchema = closedObject({
|
|
|
10025
10287
|
ts: Type.Integer({ minimum: 0 })
|
|
10026
10288
|
});
|
|
10027
10289
|
//#endregion
|
|
10290
|
+
//#region packages/gateway-protocol/src/schema/sessions-reactions.ts
|
|
10291
|
+
const SessionReactionTargetParamsSchema = {
|
|
10292
|
+
sessionKey: NonEmptyString,
|
|
10293
|
+
agentId: Type.Optional(NonEmptyString)
|
|
10294
|
+
};
|
|
10295
|
+
const ReactionEmojiSchema = Type.String({
|
|
10296
|
+
minLength: 1,
|
|
10297
|
+
maxLength: 32
|
|
10298
|
+
});
|
|
10299
|
+
const emojiSegmenter = new Intl.Segmenter("en", { granularity: "grapheme" });
|
|
10300
|
+
const emojiSequence = /^(?:\p{Regional_Indicator}{2}|[#*0-9]️?⃣|\u{1F3F4}[\u{E0061}-\u{E007A}]+\u{E007F}|\p{Extended_Pictographic}️?\p{Emoji_Modifier}?(?:\p{Extended_Pictographic}️?\p{Emoji_Modifier}?)*)$/u;
|
|
10301
|
+
/** One emoji grapheme: the Gateway's admission rule, shared with pickers for instant feedback. */
|
|
10302
|
+
function isReactionEmoji(emoji) {
|
|
10303
|
+
return Array.from(emoji).length <= 32 && [...emojiSegmenter.segment(emoji)].length === 1 && emojiSequence.test(emoji);
|
|
10304
|
+
}
|
|
10305
|
+
const MessageReactionSummarySchema = closedObject({
|
|
10306
|
+
emoji: ReactionEmojiSchema,
|
|
10307
|
+
count: Type.Integer({ minimum: 1 }),
|
|
10308
|
+
identities: Type.Array(closedObject({
|
|
10309
|
+
id: NonEmptyString,
|
|
10310
|
+
label: Type.Optional(Type.String())
|
|
10311
|
+
}), { minItems: 1 })
|
|
10312
|
+
});
|
|
10313
|
+
const SessionReactionMirrorSchema = closedObject({
|
|
10314
|
+
status: Type.Union([
|
|
10315
|
+
Type.Literal("delivered"),
|
|
10316
|
+
Type.Literal("failed"),
|
|
10317
|
+
Type.Literal("skipped")
|
|
10318
|
+
]),
|
|
10319
|
+
reason: Type.Optional(Type.String())
|
|
10320
|
+
});
|
|
10321
|
+
const SessionReactionsSetParamsSchema = closedObject({
|
|
10322
|
+
...SessionReactionTargetParamsSchema,
|
|
10323
|
+
messageId: NonEmptyString,
|
|
10324
|
+
emoji: ReactionEmojiSchema,
|
|
10325
|
+
remove: Type.Optional(Type.Boolean())
|
|
10326
|
+
});
|
|
10327
|
+
const SessionReactionsListParamsSchema = closedObject(SessionReactionTargetParamsSchema);
|
|
10328
|
+
const SessionReactionsSetResultSchema = closedObject({
|
|
10329
|
+
messageId: NonEmptyString,
|
|
10330
|
+
reactions: Type.Array(MessageReactionSummarySchema),
|
|
10331
|
+
mirror: Type.Optional(SessionReactionMirrorSchema)
|
|
10332
|
+
});
|
|
10333
|
+
const SessionReactionsListResultSchema = closedObject({
|
|
10334
|
+
sessionId: NonEmptyString,
|
|
10335
|
+
reactions: Type.Record(NonEmptyString, Type.Array(MessageReactionSummarySchema))
|
|
10336
|
+
});
|
|
10337
|
+
const SessionReactionEventSchema = closedObject({
|
|
10338
|
+
sessionKey: NonEmptyString,
|
|
10339
|
+
agentId: NonEmptyString,
|
|
10340
|
+
sessionId: NonEmptyString,
|
|
10341
|
+
messageId: NonEmptyString,
|
|
10342
|
+
emoji: ReactionEmojiSchema,
|
|
10343
|
+
action: Type.Union([Type.Literal("added"), Type.Literal("removed")]),
|
|
10344
|
+
actor: SessionSharingIdentitySchema,
|
|
10345
|
+
reactions: Type.Array(MessageReactionSummarySchema)
|
|
10346
|
+
});
|
|
10347
|
+
//#endregion
|
|
10028
10348
|
//#region packages/gateway-protocol/src/schema/projects.ts
|
|
10029
10349
|
const StoredProjectIdSchema = Type.String({ pattern: "^[a-z0-9][a-z0-9-]{0,63}$" });
|
|
10030
10350
|
const PROJECTS_LIST_DEFAULT_LIMIT = 50;
|
|
@@ -10097,8 +10417,31 @@ const ProjectSummarySchema = closedObject({
|
|
|
10097
10417
|
lastUsedAt: Type.Number({ minimum: 0 })
|
|
10098
10418
|
});
|
|
10099
10419
|
const ProjectsListParamsSchema = closedObject({ includeObserved: Type.Optional(Type.Boolean({ description: "Compute write-scoped observed checkout groups in addition to projects." })) });
|
|
10420
|
+
const ProjectDefaultRepositorySchema = closedObject({
|
|
10421
|
+
identity: Type.String({
|
|
10422
|
+
minLength: 1,
|
|
10423
|
+
maxLength: 200
|
|
10424
|
+
}),
|
|
10425
|
+
url: Type.String({
|
|
10426
|
+
minLength: 1,
|
|
10427
|
+
maxLength: 2048
|
|
10428
|
+
}),
|
|
10429
|
+
ref: Type.Optional(Type.String({
|
|
10430
|
+
minLength: 1,
|
|
10431
|
+
maxLength: 255
|
|
10432
|
+
})),
|
|
10433
|
+
profileId: Type.Optional(Type.String({
|
|
10434
|
+
minLength: 1,
|
|
10435
|
+
maxLength: 128
|
|
10436
|
+
}))
|
|
10437
|
+
});
|
|
10100
10438
|
const ProjectsListResultSchema = closedObject({
|
|
10101
10439
|
projects: Type.Array(ProjectRecordSchema),
|
|
10440
|
+
defaultRepository: Type.Optional(ProjectDefaultRepositorySchema),
|
|
10441
|
+
githubHost: Type.Optional(Type.String({
|
|
10442
|
+
minLength: 1,
|
|
10443
|
+
maxLength: 2048
|
|
10444
|
+
})),
|
|
10102
10445
|
recents: Type.Optional(Type.Array(ProjectRecentSchema, { maxItems: 8 })),
|
|
10103
10446
|
observedProjects: Type.Optional(Type.Array(ProjectSummarySchema, {
|
|
10104
10447
|
maxItems: 50,
|
|
@@ -10142,6 +10485,10 @@ const RemoteProjectSchema = closedObject({
|
|
|
10142
10485
|
minLength: 1,
|
|
10143
10486
|
maxLength: 2048
|
|
10144
10487
|
}),
|
|
10488
|
+
defaultBranch: Type.Optional(Type.String({
|
|
10489
|
+
minLength: 1,
|
|
10490
|
+
maxLength: 255
|
|
10491
|
+
})),
|
|
10145
10492
|
private: Type.Boolean()
|
|
10146
10493
|
});
|
|
10147
10494
|
const ProjectsSearchRemoteParamsSchema = closedObject({ query: Type.String({
|
|
@@ -10173,7 +10520,7 @@ const MemoryMigrationItemStatusSchema = Type.Union([
|
|
|
10173
10520
|
Type.Literal("conflict"),
|
|
10174
10521
|
Type.Literal("error")
|
|
10175
10522
|
]);
|
|
10176
|
-
const MemoryMigrationItemSchema =
|
|
10523
|
+
const MemoryMigrationItemSchema = closedObject({
|
|
10177
10524
|
id: NonEmptyString,
|
|
10178
10525
|
status: MemoryMigrationItemStatusSchema,
|
|
10179
10526
|
source: Type.Optional(NonEmptyString),
|
|
@@ -10181,8 +10528,8 @@ const MemoryMigrationItemSchema = Type.Object({
|
|
|
10181
10528
|
message: Type.Optional(Type.String()),
|
|
10182
10529
|
reason: Type.Optional(Type.String()),
|
|
10183
10530
|
details: Type.Optional(Type.Record(Type.String(), Type.Unknown()))
|
|
10184
|
-
}
|
|
10185
|
-
const MemoryMigrationSummarySchema =
|
|
10531
|
+
});
|
|
10532
|
+
const MemoryMigrationSummarySchema = closedObject({
|
|
10186
10533
|
total: Type.Integer({ minimum: 0 }),
|
|
10187
10534
|
planned: Type.Integer({ minimum: 0 }),
|
|
10188
10535
|
migrated: Type.Integer({ minimum: 0 }),
|
|
@@ -10190,8 +10537,8 @@ const MemoryMigrationSummarySchema = Type.Object({
|
|
|
10190
10537
|
conflicts: Type.Integer({ minimum: 0 }),
|
|
10191
10538
|
errors: Type.Integer({ minimum: 0 }),
|
|
10192
10539
|
sensitive: Type.Integer({ minimum: 0 })
|
|
10193
|
-
}
|
|
10194
|
-
const MemoryMigrationProviderPlanSchema =
|
|
10540
|
+
});
|
|
10541
|
+
const MemoryMigrationProviderPlanSchema = closedObject({
|
|
10195
10542
|
providerId: NonEmptyString,
|
|
10196
10543
|
label: NonEmptyString,
|
|
10197
10544
|
description: Type.Optional(Type.String()),
|
|
@@ -10209,17 +10556,17 @@ const MemoryMigrationProviderPlanSchema = Type.Object({
|
|
|
10209
10556
|
summary: MemoryMigrationSummarySchema,
|
|
10210
10557
|
items: Type.Array(MemoryMigrationItemSchema, { maxItems: MAX_MEMORY_MIGRATION_ITEMS }),
|
|
10211
10558
|
warnings: Type.Optional(Type.Array(Type.String()))
|
|
10212
|
-
}
|
|
10213
|
-
const MigrationsMemoryPlanParamsSchema =
|
|
10559
|
+
});
|
|
10560
|
+
const MigrationsMemoryPlanParamsSchema = closedObject({
|
|
10214
10561
|
agentId: NonEmptyString,
|
|
10215
10562
|
overwrite: Type.Optional(Type.Boolean())
|
|
10216
|
-
}
|
|
10217
|
-
const MigrationsMemoryPlanResultSchema =
|
|
10563
|
+
});
|
|
10564
|
+
const MigrationsMemoryPlanResultSchema = closedObject({
|
|
10218
10565
|
agentId: NonEmptyString,
|
|
10219
10566
|
workspace: NonEmptyString,
|
|
10220
10567
|
providers: Type.Array(MemoryMigrationProviderPlanSchema)
|
|
10221
|
-
}
|
|
10222
|
-
const MigrationsMemoryApplyParamsSchema =
|
|
10568
|
+
});
|
|
10569
|
+
const MigrationsMemoryApplyParamsSchema = closedObject({
|
|
10223
10570
|
idempotencyKey: NonEmptyString,
|
|
10224
10571
|
agentId: NonEmptyString,
|
|
10225
10572
|
providerId: NonEmptyString,
|
|
@@ -10230,7 +10577,7 @@ const MigrationsMemoryApplyParamsSchema = Type.Object({
|
|
|
10230
10577
|
maxItems: MAX_MEMORY_MIGRATION_ITEMS
|
|
10231
10578
|
}),
|
|
10232
10579
|
overwrite: Type.Optional(Type.Boolean())
|
|
10233
|
-
}
|
|
10580
|
+
});
|
|
10234
10581
|
const MigrationProtocolSchemas = {
|
|
10235
10582
|
MemoryMigrationItemStatus: MemoryMigrationItemStatusSchema,
|
|
10236
10583
|
MemoryMigrationItem: MemoryMigrationItemSchema,
|
|
@@ -10239,7 +10586,7 @@ const MigrationProtocolSchemas = {
|
|
|
10239
10586
|
MigrationsMemoryPlanParams: MigrationsMemoryPlanParamsSchema,
|
|
10240
10587
|
MigrationsMemoryPlanResult: MigrationsMemoryPlanResultSchema,
|
|
10241
10588
|
MigrationsMemoryApplyParams: MigrationsMemoryApplyParamsSchema,
|
|
10242
|
-
MigrationsMemoryApplyResult:
|
|
10589
|
+
MigrationsMemoryApplyResult: closedObject({
|
|
10243
10590
|
providerId: NonEmptyString,
|
|
10244
10591
|
source: NonEmptyString,
|
|
10245
10592
|
target: Type.Optional(NonEmptyString),
|
|
@@ -10248,9 +10595,88 @@ const MigrationProtocolSchemas = {
|
|
|
10248
10595
|
warnings: Type.Optional(Type.Array(Type.String())),
|
|
10249
10596
|
backupPath: Type.Optional(NonEmptyString),
|
|
10250
10597
|
reportDir: Type.Optional(NonEmptyString)
|
|
10251
|
-
}
|
|
10598
|
+
})
|
|
10252
10599
|
};
|
|
10253
10600
|
//#endregion
|
|
10601
|
+
//#region packages/gateway-protocol/src/schema/storage.ts
|
|
10602
|
+
const StorageLocationNameSchema = Type.String({ pattern: "^[a-z0-9][a-z0-9-]{0,62}$" });
|
|
10603
|
+
const StorageLocationsListParamsSchema = closedObject({});
|
|
10604
|
+
const StorageLocationsListResultSchema = closedObject({ locations: Type.Array(closedObject({
|
|
10605
|
+
name: StorageLocationNameSchema,
|
|
10606
|
+
provider: NonEmptyString,
|
|
10607
|
+
displayTarget: Type.Optional(NonEmptyString),
|
|
10608
|
+
encrypted: Type.Boolean()
|
|
10609
|
+
})) });
|
|
10610
|
+
const StorageLocationsProbeParamsSchema = closedObject({ name: StorageLocationNameSchema });
|
|
10611
|
+
const StorageLocationsProbeResultSchema = closedObject({
|
|
10612
|
+
state: Type.Union([
|
|
10613
|
+
Type.Literal("ok"),
|
|
10614
|
+
Type.Literal("unavailable"),
|
|
10615
|
+
Type.Literal("uninitialized"),
|
|
10616
|
+
Type.Literal("wrong-key"),
|
|
10617
|
+
Type.Literal("error")
|
|
10618
|
+
]),
|
|
10619
|
+
freeBytes: Type.Optional(Type.Number({ minimum: 0 })),
|
|
10620
|
+
totalBytes: Type.Optional(Type.Number({ minimum: 0 })),
|
|
10621
|
+
message: Type.Optional(Type.String())
|
|
10622
|
+
});
|
|
10623
|
+
//#endregion
|
|
10624
|
+
//#region packages/gateway-protocol/src/schema/backup.ts
|
|
10625
|
+
const BackupKindSchema = Type.Union([
|
|
10626
|
+
Type.Literal("archive"),
|
|
10627
|
+
Type.Literal("sqlite-snapshot"),
|
|
10628
|
+
Type.Literal("git"),
|
|
10629
|
+
Type.Literal("external")
|
|
10630
|
+
]);
|
|
10631
|
+
const BytesSchema = Type.Integer({ minimum: 0 });
|
|
10632
|
+
const BackupRunLocationSchema = closedObject({
|
|
10633
|
+
name: Type.String(),
|
|
10634
|
+
provider: Type.String(),
|
|
10635
|
+
locationId: Type.String(),
|
|
10636
|
+
key: Type.String(),
|
|
10637
|
+
namespace: Type.String(),
|
|
10638
|
+
plaintextBytes: BytesSchema,
|
|
10639
|
+
storedBytes: BytesSchema
|
|
10640
|
+
});
|
|
10641
|
+
const BackupRunRetentionSchema = closedObject({
|
|
10642
|
+
kept: BytesSchema,
|
|
10643
|
+
deleted: BytesSchema
|
|
10644
|
+
});
|
|
10645
|
+
const BackupRunRecordSchema = closedObject({
|
|
10646
|
+
id: Type.String(),
|
|
10647
|
+
createdAt: Type.Number(),
|
|
10648
|
+
archivePath: Type.String(),
|
|
10649
|
+
status: Type.Union([Type.Literal("ok"), Type.Literal("failed")]),
|
|
10650
|
+
kind: BackupKindSchema,
|
|
10651
|
+
target: Type.Optional(Type.String()),
|
|
10652
|
+
namespace: Type.Optional(Type.String()),
|
|
10653
|
+
error: Type.Optional(Type.String()),
|
|
10654
|
+
pushFailed: Type.Optional(Type.Literal(true)),
|
|
10655
|
+
bytes: Type.Optional(BytesSchema),
|
|
10656
|
+
location: Type.Optional(BackupRunLocationSchema),
|
|
10657
|
+
retention: Type.Optional(BackupRunRetentionSchema)
|
|
10658
|
+
});
|
|
10659
|
+
const BackupStatusParamsSchema = closedObject({});
|
|
10660
|
+
const BackupStatusResultSchema = closedObject({
|
|
10661
|
+
targets: Type.Array(closedObject({
|
|
10662
|
+
kind: BackupKindSchema,
|
|
10663
|
+
target: Type.String(),
|
|
10664
|
+
namespace: Type.Optional(Type.String()),
|
|
10665
|
+
latest: BackupRunRecordSchema,
|
|
10666
|
+
latestOk: Type.Optional(BackupRunRecordSchema)
|
|
10667
|
+
})),
|
|
10668
|
+
schedules: Type.Array(closedObject({
|
|
10669
|
+
id: Type.String(),
|
|
10670
|
+
mode: Type.Union([Type.Literal("git"), Type.Literal("offsite")]),
|
|
10671
|
+
target: Type.String(),
|
|
10672
|
+
namespace: Type.Optional(Type.String()),
|
|
10673
|
+
enabled: Type.Boolean(),
|
|
10674
|
+
everyMs: Type.Number(),
|
|
10675
|
+
nextRunAtMs: Type.Optional(Type.Number())
|
|
10676
|
+
})),
|
|
10677
|
+
locations: StorageLocationsListResultSchema.properties.locations
|
|
10678
|
+
});
|
|
10679
|
+
//#endregion
|
|
10254
10680
|
//#region packages/gateway-protocol/src/schema/agent.ts
|
|
10255
10681
|
/**
|
|
10256
10682
|
* Agent and channel-action gateway schemas.
|
|
@@ -11177,13 +11603,7 @@ const ExecutionIdentityContextCoverageStateSchema = Type.Union([
|
|
|
11177
11603
|
Type.Literal("unknown"),
|
|
11178
11604
|
Type.Literal("unsupported")
|
|
11179
11605
|
]);
|
|
11180
|
-
const ExecutionIdentityDecisionCoverageStateSchema = Type.Union([
|
|
11181
|
-
Type.Literal("enforced"),
|
|
11182
|
-
Type.Literal("attribution-only"),
|
|
11183
|
-
Type.Literal("unattributed"),
|
|
11184
|
-
Type.Literal("unknown"),
|
|
11185
|
-
Type.Literal("unsupported")
|
|
11186
|
-
]);
|
|
11606
|
+
const ExecutionIdentityDecisionCoverageStateSchema = Type.Union([Type.Literal("enforced"), ...ExecutionIdentityContextCoverageStateSchema.anyOf]);
|
|
11187
11607
|
const ExecutionIdentityRefArraySchema = Type.Array(ExecutionIdentityRefSchema, { maxItems: 16 });
|
|
11188
11608
|
const PrincipalRefV1Schema = closedObject({
|
|
11189
11609
|
kind: Type.Union([
|
|
@@ -11537,21 +11957,12 @@ const AuditListResultSchema = closedObject({
|
|
|
11537
11957
|
});
|
|
11538
11958
|
//#endregion
|
|
11539
11959
|
//#region packages/gateway-protocol/src/schema/channels.ts
|
|
11540
|
-
/**
|
|
11541
|
-
* Channel and Talk protocol schemas.
|
|
11542
|
-
*
|
|
11543
|
-
* Talk schemas are consumed by browser realtime clients, gateway relay sessions,
|
|
11544
|
-
* and channel adapters, so the mode/transport/brain unions below are shared
|
|
11545
|
-
* API vocabulary rather than provider-local implementation details.
|
|
11546
|
-
*/
|
|
11547
|
-
/** Toggles Talk mode for the gateway, with an optional rollout phase marker. */
|
|
11548
11960
|
const TalkModeParamsSchema = closedObject({
|
|
11549
11961
|
enabled: Type.Boolean(),
|
|
11550
11962
|
phase: Type.Optional(Type.String())
|
|
11551
11963
|
});
|
|
11552
11964
|
/** Reads Talk configuration; secrets are included only for trusted callers. */
|
|
11553
11965
|
const TalkConfigParamsSchema = closedObject({ includeSecrets: Type.Optional(Type.Boolean()) });
|
|
11554
|
-
/** One-shot text-to-speech request with provider-specific voice tuning knobs. */
|
|
11555
11966
|
const TalkSpeakParamsSchema = closedObject({
|
|
11556
11967
|
text: NonEmptyString,
|
|
11557
11968
|
voiceId: Type.Optional(Type.String()),
|
|
@@ -11573,7 +11984,6 @@ const TalkSpeakParamsSchema = closedObject({
|
|
|
11573
11984
|
* chain (unlike `talk.speak`, which pins the Talk-mode provider).
|
|
11574
11985
|
*/
|
|
11575
11986
|
const TtsSpeakParamsSchema = closedObject({ text: NonEmptyString });
|
|
11576
|
-
/** Supported Talk session shapes exposed to clients and providers. */
|
|
11577
11987
|
const TalkModeSchema = Type.Union([
|
|
11578
11988
|
Type.Literal("realtime"),
|
|
11579
11989
|
Type.Literal("stt-tts"),
|
|
@@ -11586,20 +11996,17 @@ const TalkTransportSchema = Type.Union([
|
|
|
11586
11996
|
Type.Literal("gateway-relay"),
|
|
11587
11997
|
Type.Literal("managed-room")
|
|
11588
11998
|
]);
|
|
11589
|
-
/** How a Talk session delegates reasoning/tool use to the agent runtime. */
|
|
11590
11999
|
const TalkBrainSchema = Type.Union([
|
|
11591
12000
|
Type.Literal("agent-consult"),
|
|
11592
12001
|
Type.Literal("direct-tools"),
|
|
11593
12002
|
Type.Literal("none")
|
|
11594
12003
|
]);
|
|
11595
|
-
/** Agent control actions accepted from Talk clients and managed rooms. */
|
|
11596
12004
|
const TalkAgentControlModeSchema = Type.Union([
|
|
11597
12005
|
Type.Literal("status"),
|
|
11598
12006
|
Type.Literal("steer"),
|
|
11599
12007
|
Type.Literal("cancel"),
|
|
11600
12008
|
Type.Literal("followup")
|
|
11601
12009
|
]);
|
|
11602
|
-
/** Stable event names emitted by Talk sessions across providers/transports. */
|
|
11603
12010
|
const TalkEventTypeSchema = Type.Union([
|
|
11604
12011
|
Type.Literal("session.started"),
|
|
11605
12012
|
Type.Literal("session.ready"),
|
|
@@ -11696,7 +12103,6 @@ const TalkEventSchema = Type.Object({
|
|
|
11696
12103
|
}]
|
|
11697
12104
|
});
|
|
11698
12105
|
const VoiceIdString = Type.String({ pattern: "^[A-Za-z0-9_-]{1,128}$" });
|
|
11699
|
-
/** Creates a browser-facing Talk client session. */
|
|
11700
12106
|
const TalkClientCreateParamsSchema = closedObject({
|
|
11701
12107
|
sessionKey: Type.Optional(NonEmptyString),
|
|
11702
12108
|
voiceSessionId: Type.Optional(VoiceIdString),
|
|
@@ -11718,7 +12124,6 @@ const TalkClientCreateParamsSchema = closedObject({
|
|
|
11718
12124
|
Type.Literal("voice-selection")
|
|
11719
12125
|
]), { uniqueItems: true }))
|
|
11720
12126
|
});
|
|
11721
|
-
/** Tool-call request from a browser/client session back into the agent runtime. */
|
|
11722
12127
|
const TalkClientToolCallParamsSchema = closedObject({
|
|
11723
12128
|
sessionKey: NonEmptyString,
|
|
11724
12129
|
voiceSessionId: Type.Optional(VoiceIdString),
|
|
@@ -11736,27 +12141,23 @@ const TalkClientTranscriptParamsSchema = closedObject({
|
|
|
11736
12141
|
text: NonEmptyString,
|
|
11737
12142
|
timestamp: Type.Optional(Type.Number())
|
|
11738
12143
|
});
|
|
11739
|
-
/** Logical close for a client-owned Talk session. */
|
|
11740
12144
|
const TalkClientCloseParamsSchema = closedObject({
|
|
11741
12145
|
sessionKey: NonEmptyString,
|
|
11742
12146
|
voiceSessionId: VoiceIdString
|
|
11743
12147
|
});
|
|
11744
12148
|
/** Result for client-owned transcript and close mutations. */
|
|
11745
12149
|
const TalkClientMutationResultSchema = closedObject({ ok: Type.Literal(true) });
|
|
11746
|
-
/** Agent run identity returned after accepting a Talk client tool call. */
|
|
11747
12150
|
const TalkClientToolCallResultSchema = closedObject({
|
|
11748
12151
|
runId: NonEmptyString,
|
|
11749
12152
|
idempotencyKey: NonEmptyString,
|
|
11750
12153
|
agentId: NonEmptyString,
|
|
11751
12154
|
agentSessionKey: NonEmptyString
|
|
11752
12155
|
});
|
|
11753
|
-
/** Text steering request for a Talk session bound to an agent turn. */
|
|
11754
12156
|
const TalkClientSteerParamsSchema = closedObject({
|
|
11755
12157
|
sessionKey: NonEmptyString,
|
|
11756
12158
|
text: NonEmptyString,
|
|
11757
12159
|
mode: Type.Optional(TalkAgentControlModeSchema)
|
|
11758
12160
|
});
|
|
11759
|
-
/** Result of applying agent control to an embedded or reply-backed Talk run. */
|
|
11760
12161
|
const TalkAgentControlResultSchema = closedObject({
|
|
11761
12162
|
ok: Type.Boolean(),
|
|
11762
12163
|
mode: TalkAgentControlModeSchema,
|
|
@@ -11778,7 +12179,6 @@ const TalkAgentControlResultSchema = closedObject({
|
|
|
11778
12179
|
enqueuedAtMs: Type.Optional(Type.Number()),
|
|
11779
12180
|
deliveredAtMs: Type.Optional(Type.Number())
|
|
11780
12181
|
});
|
|
11781
|
-
/** Creates a gateway-managed Talk session for realtime, transcription, or relay use. */
|
|
11782
12182
|
const TalkSessionCreateParamsSchema = closedObject({
|
|
11783
12183
|
sessionKey: Type.Optional(Type.String()),
|
|
11784
12184
|
voiceChangeId: Type.Optional(NonEmptyString),
|
|
@@ -11800,7 +12200,6 @@ const TalkSessionCreateParamsSchema = closedObject({
|
|
|
11800
12200
|
maximum: 36e5
|
|
11801
12201
|
}))
|
|
11802
12202
|
});
|
|
11803
|
-
/** Appends base64 audio to an active Talk session. */
|
|
11804
12203
|
const TalkSessionAppendAudioParamsSchema = closedObject({
|
|
11805
12204
|
sessionId: NonEmptyString,
|
|
11806
12205
|
audioBase64: NonEmptyString,
|
|
@@ -11822,7 +12221,6 @@ const TalkSessionCancelOutputResultSchema = closedObject({
|
|
|
11822
12221
|
])),
|
|
11823
12222
|
turnId: Type.Optional(NonEmptyString)
|
|
11824
12223
|
});
|
|
11825
|
-
/** Submits a tool result back to a Talk provider session. */
|
|
11826
12224
|
const TalkSessionSubmitToolResultParamsSchema = closedObject({
|
|
11827
12225
|
sessionId: NonEmptyString,
|
|
11828
12226
|
callId: NonEmptyString,
|
|
@@ -11832,16 +12230,13 @@ const TalkSessionSubmitToolResultParamsSchema = closedObject({
|
|
|
11832
12230
|
willContinue: Type.Optional(Type.Boolean())
|
|
11833
12231
|
}))
|
|
11834
12232
|
});
|
|
11835
|
-
/** Steers a managed Talk session by session id rather than transcript key. */
|
|
11836
12233
|
const TalkSessionSteerParamsSchema = closedObject({
|
|
11837
12234
|
sessionId: NonEmptyString,
|
|
11838
12235
|
sessionKey: Type.Optional(NonEmptyString),
|
|
11839
12236
|
text: NonEmptyString,
|
|
11840
12237
|
mode: Type.Optional(TalkAgentControlModeSchema)
|
|
11841
12238
|
});
|
|
11842
|
-
/** Closes a gateway-managed Talk session. */
|
|
11843
12239
|
const TalkSessionCloseParamsSchema = closedObject({ sessionId: NonEmptyString });
|
|
11844
|
-
/** Reads Talk provider capabilities with optional realtime launch overrides. */
|
|
11845
12240
|
const TalkCatalogParamsSchema = closedObject({
|
|
11846
12241
|
provider: Type.Optional(NonEmptyString),
|
|
11847
12242
|
model: Type.Optional(NonEmptyString)
|
|
@@ -11851,7 +12246,6 @@ const TalkCatalogAudioFormatProperties = {
|
|
|
11851
12246
|
sampleRateHz: Type.Integer({ minimum: 1 }),
|
|
11852
12247
|
channels: Type.Integer({ minimum: 1 })
|
|
11853
12248
|
};
|
|
11854
|
-
/** One provider entry in the Talk capability catalog. */
|
|
11855
12249
|
const TalkCatalogProviderSchema = closedObject({
|
|
11856
12250
|
id: NonEmptyString,
|
|
11857
12251
|
label: NonEmptyString,
|
|
@@ -11874,13 +12268,11 @@ const TalkCatalogProviderSchema = closedObject({
|
|
|
11874
12268
|
supportsVideoFrames: Type.Optional(Type.Boolean()),
|
|
11875
12269
|
supportsSessionResumption: Type.Optional(Type.Boolean())
|
|
11876
12270
|
});
|
|
11877
|
-
/** Active provider plus all candidates for a Talk capability family. */
|
|
11878
12271
|
const TalkCatalogProviderGroupSchema = closedObject({
|
|
11879
12272
|
ready: Type.Optional(Type.Boolean()),
|
|
11880
12273
|
activeProvider: Type.Optional(Type.String()),
|
|
11881
12274
|
providers: Type.Array(TalkCatalogProviderSchema)
|
|
11882
12275
|
});
|
|
11883
|
-
/** Provider, mode, transport, and audio-format catalog returned to clients. */
|
|
11884
12276
|
const TalkCatalogResultSchema = closedObject({
|
|
11885
12277
|
modes: Type.Array(TalkModeSchema),
|
|
11886
12278
|
transports: Type.Array(TalkTransportSchema),
|
|
@@ -11889,14 +12281,12 @@ const TalkCatalogResultSchema = closedObject({
|
|
|
11889
12281
|
transcription: TalkCatalogProviderGroupSchema,
|
|
11890
12282
|
realtime: TalkCatalogProviderGroupSchema
|
|
11891
12283
|
});
|
|
11892
|
-
/** Audio format contract for realtime browser sessions. */
|
|
11893
12284
|
const BrowserRealtimeAudioContractSchema = closedObject({
|
|
11894
12285
|
inputEncoding: Type.Union([Type.Literal("pcm16"), Type.Literal("g711_ulaw")]),
|
|
11895
12286
|
inputSampleRateHz: Type.Integer({ minimum: 1 }),
|
|
11896
12287
|
outputEncoding: Type.Union([Type.Literal("pcm16"), Type.Literal("g711_ulaw")]),
|
|
11897
12288
|
outputSampleRateHz: Type.Integer({ minimum: 1 })
|
|
11898
12289
|
});
|
|
11899
|
-
/** Session creation result with transport-specific ids and credentials. */
|
|
11900
12290
|
const TalkSessionCreateResultSchema = closedObject({
|
|
11901
12291
|
sessionId: NonEmptyString,
|
|
11902
12292
|
provider: Type.Optional(Type.String()),
|
|
@@ -11916,7 +12306,6 @@ const TalkSessionCreateResultSchema = closedObject({
|
|
|
11916
12306
|
});
|
|
11917
12307
|
/** Generic success result for Talk session lifecycle calls. */
|
|
11918
12308
|
const TalkSessionOkResultSchema = closedObject({ ok: Type.Boolean() });
|
|
11919
|
-
/** Browser WebRTC setup payload using provider SDP exchange. */
|
|
11920
12309
|
const BrowserRealtimeWebRtcSdpSessionSchema = closedObject({
|
|
11921
12310
|
provider: NonEmptyString,
|
|
11922
12311
|
transport: Type.Literal("webrtc"),
|
|
@@ -11929,7 +12318,6 @@ const BrowserRealtimeWebRtcSdpSessionSchema = closedObject({
|
|
|
11929
12318
|
expiresAt: Type.Optional(Type.Number()),
|
|
11930
12319
|
clientControl: Type.Optional(closedObject({ owner: Type.Literal("gateway") }))
|
|
11931
12320
|
});
|
|
11932
|
-
/** Browser websocket setup payload with JSON/PCM audio contract. */
|
|
11933
12321
|
const BrowserRealtimeJsonPcmWebSocketSessionSchema = closedObject({
|
|
11934
12322
|
provider: NonEmptyString,
|
|
11935
12323
|
transport: Type.Literal("provider-websocket"),
|
|
@@ -11943,7 +12331,6 @@ const BrowserRealtimeJsonPcmWebSocketSessionSchema = closedObject({
|
|
|
11943
12331
|
voice: Type.Optional(Type.String()),
|
|
11944
12332
|
expiresAt: Type.Optional(Type.Number())
|
|
11945
12333
|
});
|
|
11946
|
-
/** Browser setup payload for gateway-relayed realtime audio. */
|
|
11947
12334
|
const BrowserRealtimeGatewayRelaySessionSchema = closedObject({
|
|
11948
12335
|
provider: NonEmptyString,
|
|
11949
12336
|
transport: Type.Literal("gateway-relay"),
|
|
@@ -11954,7 +12341,6 @@ const BrowserRealtimeGatewayRelaySessionSchema = closedObject({
|
|
|
11954
12341
|
voice: Type.Optional(Type.String()),
|
|
11955
12342
|
expiresAt: Type.Optional(Type.Number())
|
|
11956
12343
|
});
|
|
11957
|
-
/** Browser setup payload for managed-room Talk sessions. */
|
|
11958
12344
|
const BrowserRealtimeManagedRoomSessionSchema = closedObject({
|
|
11959
12345
|
provider: NonEmptyString,
|
|
11960
12346
|
transport: Type.Literal("managed-room"),
|
|
@@ -11965,7 +12351,6 @@ const BrowserRealtimeManagedRoomSessionSchema = closedObject({
|
|
|
11965
12351
|
voice: Type.Optional(Type.String()),
|
|
11966
12352
|
expiresAt: Type.Optional(Type.Number())
|
|
11967
12353
|
});
|
|
11968
|
-
/** Union of all browser Talk session setup payloads. */
|
|
11969
12354
|
const TalkClientCreateResultSchema = Type.Union([
|
|
11970
12355
|
BrowserRealtimeWebRtcSdpSessionSchema,
|
|
11971
12356
|
BrowserRealtimeJsonPcmWebSocketSessionSchema,
|
|
@@ -11974,7 +12359,6 @@ const TalkClientCreateResultSchema = Type.Union([
|
|
|
11974
12359
|
]);
|
|
11975
12360
|
/** Secret-bearing provider fields; extra provider options remain provider-owned. */
|
|
11976
12361
|
const TalkProviderConfigSchema = Type.Object({ apiKey: Type.Optional(SecretInputSchema) }, { additionalProperties: true });
|
|
11977
|
-
/** Realtime Talk defaults and provider selection stored in config. */
|
|
11978
12362
|
const TalkRealtimeConfigSchema = closedObject({
|
|
11979
12363
|
provider: Type.Optional(Type.String()),
|
|
11980
12364
|
providers: Type.Optional(Type.Record(Type.String(), TalkProviderConfigSchema)),
|
|
@@ -11995,12 +12379,10 @@ const TalkRealtimeConfigSchema = closedObject({
|
|
|
11995
12379
|
brain: Type.Optional(TalkBrainSchema),
|
|
11996
12380
|
consultRouting: Type.Optional(Type.Union([Type.Literal("provider-direct"), Type.Literal("force-agent-consult")]))
|
|
11997
12381
|
});
|
|
11998
|
-
/** Resolved active Talk provider plus its normalized provider config. */
|
|
11999
12382
|
const ResolvedTalkConfigSchema = closedObject({
|
|
12000
12383
|
provider: Type.String(),
|
|
12001
12384
|
config: TalkProviderConfigSchema
|
|
12002
12385
|
});
|
|
12003
|
-
/** Talk config subtree returned through gateway config APIs. */
|
|
12004
12386
|
const TalkConfigSchema = closedObject({
|
|
12005
12387
|
provider: Type.Optional(Type.String()),
|
|
12006
12388
|
providers: Type.Optional(Type.Record(Type.String(), TalkProviderConfigSchema)),
|
|
@@ -12012,7 +12394,6 @@ const TalkConfigSchema = closedObject({
|
|
|
12012
12394
|
interruptOnSpeech: Type.Optional(Type.Boolean()),
|
|
12013
12395
|
silenceTimeoutMs: Type.Optional(Type.Integer({ minimum: 1 }))
|
|
12014
12396
|
});
|
|
12015
|
-
/** Full Talk config read result, including related session/UI context. */
|
|
12016
12397
|
const TalkConfigResultSchema = closedObject({ config: closedObject({
|
|
12017
12398
|
talk: Type.Optional(TalkConfigSchema),
|
|
12018
12399
|
session: Type.Optional(closedObject({ mainKey: Type.Optional(Type.String()) })),
|
|
@@ -12022,7 +12403,6 @@ const TalkConfigResultSchema = closedObject({ config: closedObject({
|
|
|
12022
12403
|
gatewayRelaySupported: Type.Optional(Type.Boolean())
|
|
12023
12404
|
})) }))
|
|
12024
12405
|
}) });
|
|
12025
|
-
/** Text-to-speech result with encoded audio and provider output metadata. */
|
|
12026
12406
|
const TalkSpeakResultSchema = closedObject({
|
|
12027
12407
|
audioBase64: NonEmptyString,
|
|
12028
12408
|
provider: NonEmptyString,
|
|
@@ -12031,7 +12411,6 @@ const TalkSpeakResultSchema = closedObject({
|
|
|
12031
12411
|
mimeType: Type.Optional(Type.String()),
|
|
12032
12412
|
fileExtension: Type.Optional(Type.String())
|
|
12033
12413
|
});
|
|
12034
|
-
/** Text-to-speech result for `tts.speak` with encoded audio and provider metadata. */
|
|
12035
12414
|
const TtsSpeakResultSchema = closedObject({
|
|
12036
12415
|
audioBase64: NonEmptyString,
|
|
12037
12416
|
provider: NonEmptyString,
|
|
@@ -12039,7 +12418,6 @@ const TtsSpeakResultSchema = closedObject({
|
|
|
12039
12418
|
mimeType: Type.Optional(Type.String()),
|
|
12040
12419
|
fileExtension: Type.Optional(Type.String())
|
|
12041
12420
|
});
|
|
12042
|
-
/** Channel status request, optionally probing one channel before returning. */
|
|
12043
12421
|
const ChannelsStatusParamsSchema = closedObject({
|
|
12044
12422
|
probe: Type.Optional(Type.Boolean()),
|
|
12045
12423
|
timeoutMs: Type.Optional(Type.Integer({ minimum: 0 })),
|
|
@@ -12093,19 +12471,16 @@ const ChannelAccountSnapshotSchema = Type.Object({
|
|
|
12093
12471
|
audit: Type.Optional(Type.Unknown()),
|
|
12094
12472
|
application: Type.Optional(Type.Unknown())
|
|
12095
12473
|
}, { additionalProperties: true });
|
|
12096
|
-
/** UI label and icon metadata for one channel. */
|
|
12097
12474
|
const ChannelUiMetaSchema = closedObject({
|
|
12098
12475
|
id: NonEmptyString,
|
|
12099
12476
|
label: NonEmptyString,
|
|
12100
12477
|
detailLabel: NonEmptyString,
|
|
12101
12478
|
systemImage: Type.Optional(Type.String())
|
|
12102
12479
|
});
|
|
12103
|
-
/** Event-loop health snapshot included with channel status responses. */
|
|
12104
12480
|
const ChannelEventLoopHealthSchema = closedObject({
|
|
12105
12481
|
...GatewayEventLoopHealthSchema.properties,
|
|
12106
12482
|
intervalMs: Type.Integer({ minimum: 0 })
|
|
12107
12483
|
});
|
|
12108
|
-
/** Full channel status result for dashboard and operator diagnostics. */
|
|
12109
12484
|
const ChannelsStatusResultSchema = closedObject({
|
|
12110
12485
|
ts: Type.Integer({ minimum: 0 }),
|
|
12111
12486
|
channelOrder: Type.Array(NonEmptyString),
|
|
@@ -12133,16 +12508,12 @@ const ChannelsStatusResultSchema = closedObject({
|
|
|
12133
12508
|
fix: Type.Optional(Type.String())
|
|
12134
12509
|
}), { maxItems: 50 }))
|
|
12135
12510
|
});
|
|
12136
|
-
/** Logs out one channel account. */
|
|
12137
12511
|
const ChannelsLogoutParamsSchema = closedObject({
|
|
12138
12512
|
channel: NonEmptyString,
|
|
12139
12513
|
accountId: Type.Optional(Type.String())
|
|
12140
12514
|
});
|
|
12141
|
-
/** Stops one channel account runtime. */
|
|
12142
12515
|
const ChannelsStopParamsSchema = closedObject(ChannelsLogoutParamsSchema.properties);
|
|
12143
|
-
/** Starts one channel account runtime. */
|
|
12144
12516
|
const ChannelsStartParamsSchema = closedObject(ChannelsLogoutParamsSchema.properties);
|
|
12145
|
-
/** Starts browser/web login for a channel account. */
|
|
12146
12517
|
const WebLoginStartParamsSchema = closedObject({
|
|
12147
12518
|
channel: Type.Optional(NonEmptyString),
|
|
12148
12519
|
force: Type.Optional(Type.Boolean()),
|
|
@@ -12164,6 +12535,10 @@ const WebLoginWaitParamsSchema = closedObject({
|
|
|
12164
12535
|
});
|
|
12165
12536
|
//#endregion
|
|
12166
12537
|
//#region packages/gateway-protocol/src/schema/channel-pairing.ts
|
|
12538
|
+
const CliPairingAccountIdSchema = Type.String({
|
|
12539
|
+
minLength: 1,
|
|
12540
|
+
pattern: "\\S"
|
|
12541
|
+
});
|
|
12167
12542
|
const ChannelPairingAccountSchema = closedObject({
|
|
12168
12543
|
channel: NonEmptyString,
|
|
12169
12544
|
channelLabel: NonEmptyString,
|
|
@@ -12186,10 +12561,28 @@ const ChannelPairingRequestSchema = closedObject({
|
|
|
12186
12561
|
notifySupported: Type.Boolean()
|
|
12187
12562
|
});
|
|
12188
12563
|
/** Lists pending DM sender access requests for pairing-policy channel accounts. */
|
|
12189
|
-
const ChannelsPairingListParamsSchema = closedObject({
|
|
12564
|
+
const ChannelsPairingListParamsSchema = Type.Union([closedObject({
|
|
12190
12565
|
channel: Type.Optional(NonEmptyString),
|
|
12191
12566
|
accountId: Type.Optional(NonEmptyString)
|
|
12567
|
+
}), closedObject({
|
|
12568
|
+
format: Type.Literal("cli"),
|
|
12569
|
+
channel: NonEmptyString,
|
|
12570
|
+
accountId: Type.Optional(CliPairingAccountIdSchema),
|
|
12571
|
+
expectedOwnerId: NonEmptyString
|
|
12572
|
+
})]);
|
|
12573
|
+
const ChannelPairingCliRequestSchema = closedObject({
|
|
12574
|
+
id: NonEmptyString,
|
|
12575
|
+
code: NonEmptyString,
|
|
12576
|
+
createdAt: NonEmptyString,
|
|
12577
|
+
lastSeenAt: NonEmptyString,
|
|
12578
|
+
meta: Type.Optional(Type.Record(Type.String(), Type.String()))
|
|
12192
12579
|
});
|
|
12580
|
+
/** Capability-qualified CLI results retain codes; ordinary UI results never expose them. */
|
|
12581
|
+
const ChannelsPairingCliListResultSchema = Type.Array(ChannelPairingCliRequestSchema);
|
|
12582
|
+
const ChannelsPairingCodeApproveResultSchema = Type.Union([closedObject({
|
|
12583
|
+
id: NonEmptyString,
|
|
12584
|
+
entry: ChannelPairingCliRequestSchema
|
|
12585
|
+
}), Type.Null()]);
|
|
12193
12586
|
const ChannelsPairingListResultSchema = closedObject({
|
|
12194
12587
|
accounts: Type.Array(ChannelPairingAccountSchema),
|
|
12195
12588
|
requests: Type.Array(ChannelPairingRequestSchema),
|
|
@@ -12200,13 +12593,18 @@ const ChannelsPairingListResultSchema = closedObject({
|
|
|
12200
12593
|
})
|
|
12201
12594
|
});
|
|
12202
12595
|
/** Approves one pending DM sender request. */
|
|
12203
|
-
const ChannelsPairingApproveParamsSchema = closedObject({
|
|
12596
|
+
const ChannelsPairingApproveParamsSchema = Type.Union([closedObject({
|
|
12204
12597
|
channel: NonEmptyString,
|
|
12205
12598
|
accountId: NonEmptyString,
|
|
12206
12599
|
requestId: NonEmptyString,
|
|
12207
12600
|
notify: Type.Optional(Type.Boolean()),
|
|
12208
12601
|
bootstrapCommandOwner: Type.Optional(Type.Boolean())
|
|
12209
|
-
})
|
|
12602
|
+
}), closedObject({
|
|
12603
|
+
channel: NonEmptyString,
|
|
12604
|
+
accountId: Type.Optional(CliPairingAccountIdSchema),
|
|
12605
|
+
code: NonEmptyString,
|
|
12606
|
+
expectedOwnerId: NonEmptyString
|
|
12607
|
+
})]);
|
|
12210
12608
|
const ChannelsPairingApproveResultSchema = closedObject({
|
|
12211
12609
|
requestId: NonEmptyString,
|
|
12212
12610
|
senderId: NonEmptyString,
|
|
@@ -13004,13 +13402,7 @@ const CronPayloadSchema = Type.Union([
|
|
|
13004
13402
|
CronScriptPayloadSchema
|
|
13005
13403
|
]);
|
|
13006
13404
|
/** Reported payloads include the Gateway-owned heartbeat monitor. */
|
|
13007
|
-
const CronReportedPayloadSchema = Type.Union([
|
|
13008
|
-
CronSystemEventPayloadSchema,
|
|
13009
|
-
CronAgentTurnPayloadSchema,
|
|
13010
|
-
CronCommandPayloadSchema,
|
|
13011
|
-
CronScriptPayloadSchema,
|
|
13012
|
-
closedObject({ kind: Type.Literal("heartbeat") })
|
|
13013
|
-
]);
|
|
13405
|
+
const CronReportedPayloadSchema = Type.Union([...CronPayloadSchema.anyOf, closedObject({ kind: Type.Literal("heartbeat") })]);
|
|
13014
13406
|
/** Partial cron payload for job updates. */
|
|
13015
13407
|
const CronPayloadPatchSchema = Type.Union([
|
|
13016
13408
|
closedObject({
|
|
@@ -13320,9 +13712,7 @@ const CronScratchSetParamsSchema = cronIdOrJobIdParams({
|
|
|
13320
13712
|
});
|
|
13321
13713
|
const CronScratchSetResultSchema = Type.Union([closedObject({
|
|
13322
13714
|
ok: Type.Literal(true),
|
|
13323
|
-
|
|
13324
|
-
currentRevision: Type.Integer({ minimum: 0 }),
|
|
13325
|
-
maxBytes: Type.Integer({ minimum: 1 })
|
|
13715
|
+
...CronScratchGetResultSchema.properties
|
|
13326
13716
|
}), closedObject({
|
|
13327
13717
|
ok: Type.Literal(false),
|
|
13328
13718
|
reason: Type.Literal("revision-conflict"),
|
|
@@ -13396,7 +13786,12 @@ const CronRunParamsSchema = cronIdOrJobIdParams({
|
|
|
13396
13786
|
Type.Literal("if-enabled")
|
|
13397
13787
|
])),
|
|
13398
13788
|
/** Rejects the mutation if the Gateway restarted after the caller's preflight. */
|
|
13399
|
-
expectedProcessInstanceId: Type.Optional(NonEmptyString)
|
|
13789
|
+
expectedProcessInstanceId: Type.Optional(NonEmptyString),
|
|
13790
|
+
/** Holds the response until the queued run records its outcome or this many ms pass. */
|
|
13791
|
+
waitTimeoutMs: Type.Optional(Type.Integer({
|
|
13792
|
+
minimum: 0,
|
|
13793
|
+
maximum: 2147483647
|
|
13794
|
+
}))
|
|
13400
13795
|
});
|
|
13401
13796
|
/** Query params for cron run history. */
|
|
13402
13797
|
const CronRunsParamsSchema = closedObject({
|
|
@@ -13643,12 +14038,13 @@ const ExecApprovalsNodeSnapshotSchema = Type.Object({
|
|
|
13643
14038
|
}
|
|
13644
14039
|
]
|
|
13645
14040
|
});
|
|
13646
|
-
/**
|
|
13647
|
-
const ExecApprovalsGetParamsSchema = closedObject({});
|
|
14041
|
+
/** Read local exec approval policy, optionally bound to its serving state owner. */
|
|
14042
|
+
const ExecApprovalsGetParamsSchema = closedObject({ expectedOwnerId: Type.Optional(NonEmptyString) });
|
|
13648
14043
|
/** Local exec approval policy write request with optional base hash guard. */
|
|
13649
14044
|
const ExecApprovalsSetParamsSchema = closedObject({
|
|
13650
14045
|
file: ExecApprovalsFileSchema,
|
|
13651
|
-
baseHash: Type.Optional(NonEmptyString)
|
|
14046
|
+
baseHash: Type.Optional(NonEmptyString),
|
|
14047
|
+
expectedOwnerId: Type.Optional(NonEmptyString)
|
|
13652
14048
|
});
|
|
13653
14049
|
/** Node-scoped request payload for reading exec approval policy. */
|
|
13654
14050
|
const ExecApprovalsNodeGetParamsSchema = closedObject({ nodeId: NonEmptyString });
|
|
@@ -13797,21 +14193,10 @@ const ExecApprovalGrantsRevokeResultSchema = closedObject({ outcome: Type.Union(
|
|
|
13797
14193
|
]) });
|
|
13798
14194
|
//#endregion
|
|
13799
14195
|
//#region packages/gateway-protocol/src/schema/devices.ts
|
|
13800
|
-
/**
|
|
13801
|
-
* Device pairing and token-management protocol schemas.
|
|
13802
|
-
*
|
|
13803
|
-
* These payloads cross the gateway approval boundary, so request ids and device
|
|
13804
|
-
* ids stay explicit and feature handlers own the authorization checks.
|
|
13805
|
-
*/
|
|
13806
|
-
/** Lists pending and approved device pairing records. */
|
|
13807
14196
|
const DevicePairListParamsSchema = closedObject({});
|
|
13808
|
-
/** Approves a pending pairing request by request id. */
|
|
13809
14197
|
const DevicePairApproveParamsSchema = closedObject({ requestId: NonEmptyString });
|
|
13810
|
-
/** Rejects a pending pairing request by request id. */
|
|
13811
14198
|
const DevicePairRejectParamsSchema = closedObject({ requestId: NonEmptyString });
|
|
13812
|
-
/** Removes an approved or remembered device by device id. */
|
|
13813
14199
|
const DevicePairRemoveParamsSchema = closedObject({ deviceId: NonEmptyString });
|
|
13814
|
-
/** Renames a paired device while preserving its stable device id. */
|
|
13815
14200
|
const DevicePairRenameParamsSchema = closedObject({
|
|
13816
14201
|
deviceId: NonEmptyString,
|
|
13817
14202
|
label: Type.String({
|
|
@@ -13819,7 +14204,6 @@ const DevicePairRenameParamsSchema = closedObject({
|
|
|
13819
14204
|
maxLength: 64
|
|
13820
14205
|
})
|
|
13821
14206
|
});
|
|
13822
|
-
/** Rotates or issues a device token for a specific role/scope grant. */
|
|
13823
14207
|
const DeviceTokenRotateParamsSchema = closedObject({
|
|
13824
14208
|
deviceId: NonEmptyString,
|
|
13825
14209
|
role: NonEmptyString,
|
|
@@ -13851,22 +14235,17 @@ const DeviceTokenRotateResultSchema = Type.Object({
|
|
|
13851
14235
|
withoutDeviceTokenRotateResultField("tokenDelivery")
|
|
13852
14236
|
])]
|
|
13853
14237
|
});
|
|
13854
|
-
/** Revokes one role-bound device token grant. */
|
|
13855
14238
|
const DeviceTokenRevokeParamsSchema = closedObject({
|
|
13856
14239
|
deviceId: NonEmptyString,
|
|
13857
14240
|
role: NonEmptyString
|
|
13858
14241
|
});
|
|
13859
|
-
/** Requests an approval-bound operator scope upgrade for the calling device. */
|
|
13860
14242
|
const ScopeUpgradeRequestSchema = closedObject({ scopes: Type.Array(NonEmptyString, {
|
|
13861
14243
|
minItems: 1,
|
|
13862
14244
|
maxItems: 8,
|
|
13863
14245
|
uniqueItems: true
|
|
13864
14246
|
}) });
|
|
13865
|
-
/** Identifies the pending scope upgrade observed by the calling device. */
|
|
13866
14247
|
const ScopeUpgradeWaitSchema = closedObject({ requestId: NonEmptyString });
|
|
13867
|
-
/** Registers a pending scope upgrade without exposing device credentials. */
|
|
13868
14248
|
const ScopeUpgradeRegistrationSchema = closedObject({ requestId: NonEmptyString });
|
|
13869
|
-
/** Returns an approved scope upgrade with the freshly rotated credential. */
|
|
13870
14249
|
const ScopeUpgradeApprovedSchema = closedObject({
|
|
13871
14250
|
status: Type.Literal("approved"),
|
|
13872
14251
|
requestId: NonEmptyString,
|
|
@@ -13877,23 +14256,19 @@ const ScopeUpgradeApprovedSchema = closedObject({
|
|
|
13877
14256
|
uniqueItems: true
|
|
13878
14257
|
})
|
|
13879
14258
|
});
|
|
13880
|
-
/** Reports that an administrator rejected the pending scope upgrade. */
|
|
13881
14259
|
const ScopeUpgradeRejectedSchema = closedObject({
|
|
13882
14260
|
status: Type.Literal("rejected"),
|
|
13883
14261
|
requestId: NonEmptyString
|
|
13884
14262
|
});
|
|
13885
|
-
/** Reports that the pending scope upgrade expired before approval. */
|
|
13886
14263
|
const ScopeUpgradeExpiredSchema = closedObject({
|
|
13887
14264
|
status: Type.Literal("expired"),
|
|
13888
14265
|
requestId: NonEmptyString
|
|
13889
14266
|
});
|
|
13890
|
-
/** Returns the terminal scope-upgrade state to the identity-bound waiter. */
|
|
13891
14267
|
const ScopeUpgradeResultSchema = Type.Union([
|
|
13892
14268
|
ScopeUpgradeApprovedSchema,
|
|
13893
14269
|
ScopeUpgradeRejectedSchema,
|
|
13894
14270
|
ScopeUpgradeExpiredSchema
|
|
13895
14271
|
]);
|
|
13896
|
-
/** Event emitted when a client opens or refreshes a pairing request. */
|
|
13897
14272
|
const DevicePairRequestedEventSchema = closedObject({
|
|
13898
14273
|
requestId: NonEmptyString,
|
|
13899
14274
|
deviceId: NonEmptyString,
|
|
@@ -13917,7 +14292,6 @@ const SetupIdSchema = Type.String({
|
|
|
13917
14292
|
minLength: 1,
|
|
13918
14293
|
maxLength: 128
|
|
13919
14294
|
});
|
|
13920
|
-
/** Event emitted after a pairing request is approved, rejected, or otherwise resolved. */
|
|
13921
14295
|
const DevicePairResolvedEventSchema = closedObject({
|
|
13922
14296
|
requestId: NonEmptyString,
|
|
13923
14297
|
deviceId: NonEmptyString,
|
|
@@ -14486,9 +14860,45 @@ const QuestionSecretStoreAllowedHostsSchema = Type.Array(Type.String({
|
|
|
14486
14860
|
maxItems: 128,
|
|
14487
14861
|
uniqueItems: true
|
|
14488
14862
|
});
|
|
14863
|
+
const QuestionResourcePreviewSchema = Type.Union([closedObject({
|
|
14864
|
+
type: Type.Literal("mcp_app_tool"),
|
|
14865
|
+
name: NonEmptyString,
|
|
14866
|
+
arguments: Type.Optional(Type.Record(Type.String(), Type.Unknown()))
|
|
14867
|
+
}), closedObject({
|
|
14868
|
+
type: Type.Literal("resource_link"),
|
|
14869
|
+
uri: NonEmptyString,
|
|
14870
|
+
name: NonEmptyString,
|
|
14871
|
+
title: Type.Optional(Type.String()),
|
|
14872
|
+
description: Type.Optional(Type.String()),
|
|
14873
|
+
mimeType: Type.Optional(Type.String())
|
|
14874
|
+
})]);
|
|
14875
|
+
const QuestionResourceInputSchema = closedObject({
|
|
14876
|
+
viewId: Type.Optional(Type.String({
|
|
14877
|
+
minLength: 1,
|
|
14878
|
+
maxLength: 128
|
|
14879
|
+
})),
|
|
14880
|
+
selection: Type.Union([Type.Literal("explicit"), Type.Literal("implicit")]),
|
|
14881
|
+
userOptions: Type.Optional(closedObject({
|
|
14882
|
+
kind: Type.Union([Type.Literal("file"), Type.Literal("directory")]),
|
|
14883
|
+
accept: Type.Optional(Type.Array(Type.String({ maxLength: 128 }), { maxItems: 32 }))
|
|
14884
|
+
}))
|
|
14885
|
+
});
|
|
14489
14886
|
const QuestionOptionSchema = closedObject({
|
|
14490
14887
|
label: NonEmptyString,
|
|
14491
|
-
description: Type.Optional(Type.String())
|
|
14888
|
+
description: Type.Optional(Type.String()),
|
|
14889
|
+
value: Type.Optional(withSince("2026.9", Type.String({
|
|
14890
|
+
minLength: 1,
|
|
14891
|
+
maxLength: 4096
|
|
14892
|
+
}))),
|
|
14893
|
+
thumbnail: Type.Optional(Type.String({
|
|
14894
|
+
minLength: 1,
|
|
14895
|
+
maxLength: 65536
|
|
14896
|
+
})),
|
|
14897
|
+
resourceUri: Type.Optional(Type.String({
|
|
14898
|
+
minLength: 1,
|
|
14899
|
+
maxLength: 2048
|
|
14900
|
+
})),
|
|
14901
|
+
preview: Type.Optional(QuestionResourcePreviewSchema)
|
|
14492
14902
|
});
|
|
14493
14903
|
const QuestionSecretStoreBindingSchema = closedObject({
|
|
14494
14904
|
name: Type.String({
|
|
@@ -14512,8 +14922,13 @@ const QuestionInputFields = {
|
|
|
14512
14922
|
minLength: 1,
|
|
14513
14923
|
maxLength: 2048
|
|
14514
14924
|
}))),
|
|
14515
|
-
options: Type.Array(QuestionOptionSchema, { maxItems:
|
|
14925
|
+
options: Type.Array(QuestionOptionSchema, { maxItems: 64 }),
|
|
14926
|
+
presentation: Type.Optional(Type.Literal("form")),
|
|
14927
|
+
resource: Type.Optional(QuestionResourceInputSchema),
|
|
14516
14928
|
multiSelect: Type.Optional(Type.Boolean()),
|
|
14929
|
+
answerFormat: Type.Optional(Type.Literal("lines")),
|
|
14930
|
+
allowEmpty: Type.Optional(Type.Boolean()),
|
|
14931
|
+
defaultAnswers: Type.Optional(Type.Array(Type.String({ maxLength: 4096 }), { maxItems: 64 })),
|
|
14517
14932
|
isOther: Type.Optional(Type.Boolean()),
|
|
14518
14933
|
isSecret: Type.Optional(Type.Boolean()),
|
|
14519
14934
|
secretStore: Type.Optional(withSince("2026.8", QuestionSecretStoreBindingSchema))
|
|
@@ -14923,23 +15338,23 @@ const SessionsDispatchResultSchema = closedObject({
|
|
|
14923
15338
|
placement: ActiveWorkerSessionPlacementSchema
|
|
14924
15339
|
});
|
|
14925
15340
|
/** Stops a worker or explicitly recovers one failed placement onto the Gateway. */
|
|
14926
|
-
const SessionsReclaimParamsSchema =
|
|
15341
|
+
const SessionsReclaimParamsSchema = closedObject({
|
|
14927
15342
|
key: NonEmptyString,
|
|
14928
15343
|
agentId: Type.Optional(NonEmptyString),
|
|
14929
15344
|
recoverToGateway: Type.Optional(closedObject({ expectedGeneration: Type.Integer({
|
|
14930
15345
|
minimum: 0,
|
|
14931
15346
|
maximum: Number.MAX_SAFE_INTEGER
|
|
14932
15347
|
}) }))
|
|
14933
|
-
}
|
|
15348
|
+
});
|
|
14934
15349
|
/** Terminal placement returned after a worker reclaim operation. */
|
|
14935
15350
|
const SessionsReclaimResultPlacementSchema = Type.Union([LocalSessionPlacementSchema, ReclaimedSessionPlacementSchema]);
|
|
14936
15351
|
/** Result returned once worker ownership is reclaimed or a failed placement is cleared. */
|
|
14937
|
-
const SessionsReclaimResultSchema =
|
|
15352
|
+
const SessionsReclaimResultSchema = closedObject({
|
|
14938
15353
|
ok: Type.Literal(true),
|
|
14939
15354
|
key: NonEmptyString,
|
|
14940
15355
|
sessionId: NonEmptyString,
|
|
14941
15356
|
placement: SessionsReclaimResultPlacementSchema
|
|
14942
|
-
}
|
|
15357
|
+
});
|
|
14943
15358
|
/** Exact active source observed before a session placement move. */
|
|
14944
15359
|
const SessionMoveExpectedSourceSchema = closedObject({
|
|
14945
15360
|
generation: Type.Integer({
|
|
@@ -15117,14 +15532,18 @@ const SessionsViewerPresenceSetResultSchema = closedObject({ sessionKeys: Type.A
|
|
|
15117
15532
|
//#region packages/gateway-protocol/src/schema/system-info.ts
|
|
15118
15533
|
/** Empty request payload for Gateway host system information. */
|
|
15119
15534
|
const SystemInfoParamsSchema = closedObject({});
|
|
15535
|
+
/** Where utility completions execute; absent when no owner can serve them. */
|
|
15536
|
+
const UtilityModelRuntimeSchema = Type.Optional(GatewayCompletionRouteSchema);
|
|
15120
15537
|
const UtilityModelStatusSchema = Type.Union([
|
|
15121
15538
|
closedObject({
|
|
15122
15539
|
status: Type.Literal("auto"),
|
|
15123
|
-
model: Type.String({ minLength: 1 })
|
|
15540
|
+
model: Type.String({ minLength: 1 }),
|
|
15541
|
+
runtime: UtilityModelRuntimeSchema
|
|
15124
15542
|
}),
|
|
15125
15543
|
closedObject({
|
|
15126
15544
|
status: Type.Literal("configured"),
|
|
15127
|
-
model: Type.String({ minLength: 1 })
|
|
15545
|
+
model: Type.String({ minLength: 1 }),
|
|
15546
|
+
runtime: UtilityModelRuntimeSchema
|
|
15128
15547
|
}),
|
|
15129
15548
|
closedObject({ status: Type.Literal("disabled") }),
|
|
15130
15549
|
closedObject({ status: Type.Literal("unavailable") })
|
|
@@ -15434,6 +15853,20 @@ const PortalChangedEventSchema = closedObject({ portals: Type.Array(PortalSummar
|
|
|
15434
15853
|
//#endregion
|
|
15435
15854
|
//#region packages/gateway-protocol/src/schema/worktrees.ts
|
|
15436
15855
|
const WorktreeNameSchema = Type.String({ pattern: "^[a-z0-9][a-z0-9-]{0,63}$" });
|
|
15856
|
+
const WorktreeOidSchema = Type.String({ pattern: "^[a-f0-9]{40}(?:[a-f0-9]{24})?$" });
|
|
15857
|
+
const WorktreeExactStateSchema = closedObject({
|
|
15858
|
+
ownerKind: Type.Union([
|
|
15859
|
+
Type.Literal("manual"),
|
|
15860
|
+
Type.Literal("session"),
|
|
15861
|
+
Type.Literal("workboard")
|
|
15862
|
+
]),
|
|
15863
|
+
ownerId: Type.Optional(Type.String()),
|
|
15864
|
+
createdAt: Type.Number(),
|
|
15865
|
+
lastActiveAt: Type.Number(),
|
|
15866
|
+
head: WorktreeOidSchema,
|
|
15867
|
+
branchHead: WorktreeOidSchema,
|
|
15868
|
+
indexSha256: Type.String({ pattern: "^[a-f0-9]{64}$" })
|
|
15869
|
+
});
|
|
15437
15870
|
const WorktreeRunEndCleanupSchema = Type.Union([closedObject({
|
|
15438
15871
|
outcome: Type.String({ enum: [
|
|
15439
15872
|
"removed-lossless",
|
|
@@ -15469,24 +15902,34 @@ const WorktreeRecordSchema = closedObject({
|
|
|
15469
15902
|
createdAt: Type.Integer({ minimum: 0 }),
|
|
15470
15903
|
lastActiveAt: Type.Integer({ minimum: 0 }),
|
|
15471
15904
|
removedAt: Type.Optional(Type.Integer({ minimum: 0 })),
|
|
15472
|
-
runEndCleanup: Type.Optional(WorktreeRunEndCleanupSchema)
|
|
15905
|
+
runEndCleanup: Type.Optional(WorktreeRunEndCleanupSchema),
|
|
15906
|
+
gcProtection: Type.Optional(NonEmptyString)
|
|
15473
15907
|
});
|
|
15474
15908
|
const WorktreesListParamsSchema = closedObject({});
|
|
15475
15909
|
const WorktreesListResultSchema = closedObject({ worktrees: Type.Array(WorktreeRecordSchema) });
|
|
15476
15910
|
const WorktreesCreateParamsSchema = closedObject({
|
|
15477
15911
|
repoRoot: NonEmptyString,
|
|
15478
15912
|
name: Type.Optional(WorktreeNameSchema),
|
|
15479
|
-
baseRef: Type.Optional(NonEmptyString)
|
|
15913
|
+
baseRef: Type.Optional(NonEmptyString),
|
|
15914
|
+
profiles: Type.Optional(Type.Array(NonEmptyString)),
|
|
15915
|
+
expectedOwnerId: Type.Optional(NonEmptyString),
|
|
15916
|
+
expectedRepoIdentity: Type.Optional(NonEmptyString)
|
|
15480
15917
|
});
|
|
15481
15918
|
const WorktreesRemoveParamsSchema = closedObject({
|
|
15482
15919
|
id: NonEmptyString,
|
|
15483
|
-
force: Type.Optional(Type.Boolean())
|
|
15920
|
+
force: Type.Optional(Type.Boolean()),
|
|
15921
|
+
ifLossless: Type.Optional(Type.Boolean()),
|
|
15922
|
+
exactState: Type.Optional(WorktreeExactStateSchema),
|
|
15923
|
+
expectedOwnerId: Type.Optional(NonEmptyString)
|
|
15484
15924
|
});
|
|
15485
15925
|
const WorktreesRemoveResultSchema = closedObject({
|
|
15486
15926
|
removed: Type.Boolean(),
|
|
15487
15927
|
snapshotRef: Type.Optional(NonEmptyString),
|
|
15488
15928
|
/** Why the pre-removal snapshot failed; removal may have stopped or continued without one. */
|
|
15489
|
-
snapshotError: Type.Optional(NonEmptyString)
|
|
15929
|
+
snapshotError: Type.Optional(NonEmptyString),
|
|
15930
|
+
recoveryPath: Type.Optional(NonEmptyString),
|
|
15931
|
+
recoveryRetainedUntil: Type.Optional(Type.Integer({ minimum: 0 })),
|
|
15932
|
+
cleanup: Type.Optional(WorktreeRunEndCleanupSchema)
|
|
15490
15933
|
});
|
|
15491
15934
|
const WorktreeRepositoryStatusSchema = Type.String({ enum: [...[
|
|
15492
15935
|
"git",
|
|
@@ -15508,12 +15951,69 @@ const WorktreesBranchesResultSchema = closedObject({
|
|
|
15508
15951
|
repositoryStatus: Type.Optional(WorktreeRepositoryStatusSchema),
|
|
15509
15952
|
branchesUnavailable: Type.Optional(Type.Boolean())
|
|
15510
15953
|
});
|
|
15511
|
-
const WorktreesRestoreParamsSchema = closedObject({
|
|
15512
|
-
|
|
15954
|
+
const WorktreesRestoreParamsSchema = closedObject({
|
|
15955
|
+
id: NonEmptyString,
|
|
15956
|
+
recoverExactState: Type.Optional(WorktreeExactStateSchema),
|
|
15957
|
+
expectedOwnerId: Type.Optional(NonEmptyString)
|
|
15958
|
+
});
|
|
15959
|
+
const WorktreesGcParamsSchema = closedObject({ expectedOwnerId: Type.Optional(NonEmptyString) });
|
|
15513
15960
|
const WorktreesGcResultSchema = closedObject({
|
|
15514
15961
|
removed: Type.Array(NonEmptyString),
|
|
15515
15962
|
orphansDeleted: Type.Integer({ minimum: 0 }),
|
|
15516
|
-
snapshotsPruned: Type.Integer({ minimum: 0 })
|
|
15963
|
+
snapshotsPruned: Type.Integer({ minimum: 0 }),
|
|
15964
|
+
orphansRetired: Type.Optional(Type.Integer({ minimum: 0 })),
|
|
15965
|
+
retiredCheckoutPaths: Type.Optional(Type.Array(NonEmptyString)),
|
|
15966
|
+
outcome: Type.Optional(Type.String({ enum: [
|
|
15967
|
+
"completed",
|
|
15968
|
+
"deferred",
|
|
15969
|
+
"partial"
|
|
15970
|
+
] })),
|
|
15971
|
+
issues: Type.Optional(Type.Array(closedObject({
|
|
15972
|
+
id: Type.Optional(NonEmptyString),
|
|
15973
|
+
stage: Type.String({ enum: [
|
|
15974
|
+
"idle",
|
|
15975
|
+
"templates",
|
|
15976
|
+
"limits",
|
|
15977
|
+
"size",
|
|
15978
|
+
"orphans",
|
|
15979
|
+
"snapshots"
|
|
15980
|
+
] }),
|
|
15981
|
+
outcome: Type.String({ enum: [
|
|
15982
|
+
"failed",
|
|
15983
|
+
"deferred",
|
|
15984
|
+
"retired"
|
|
15985
|
+
] }),
|
|
15986
|
+
reason: Type.String()
|
|
15987
|
+
}))),
|
|
15988
|
+
issueCount: Type.Optional(Type.Integer({ minimum: 0 })),
|
|
15989
|
+
protectedCount: Type.Optional(Type.Integer({ minimum: 0 })),
|
|
15990
|
+
protectionReasons: Type.Optional(Type.Record(Type.String(), Type.Integer({ minimum: 0 }))),
|
|
15991
|
+
limitsSatisfied: Type.Optional(Type.Union([Type.Boolean(), Type.Null()]))
|
|
15992
|
+
});
|
|
15993
|
+
const WorktreesRecoverRemovalParamsSchema = closedObject({
|
|
15994
|
+
id: NonEmptyString,
|
|
15995
|
+
snapshot: WorktreeOidSchema,
|
|
15996
|
+
expectedOwnerId: NonEmptyString
|
|
15997
|
+
});
|
|
15998
|
+
const WorktreesRecoverRemovalResultSchema = closedObject({
|
|
15999
|
+
removed: Type.Literal(true),
|
|
16000
|
+
snapshotRef: Type.Optional(NonEmptyString)
|
|
16001
|
+
});
|
|
16002
|
+
const WorktreesRetireSnapshotParamsSchema = closedObject({
|
|
16003
|
+
id: NonEmptyString,
|
|
16004
|
+
expectedSnapshotRef: NonEmptyString,
|
|
16005
|
+
expectedSnapshotOid: WorktreeOidSchema,
|
|
16006
|
+
expectedRemovedAt: Type.Integer({
|
|
16007
|
+
minimum: 0,
|
|
16008
|
+
maximum: Number.MAX_SAFE_INTEGER
|
|
16009
|
+
}),
|
|
16010
|
+
retainedSourceRef: Type.String({ pattern: "^refs/(?:heads|remotes)/.+" }),
|
|
16011
|
+
expectedRetainedSourceOid: WorktreeOidSchema,
|
|
16012
|
+
expectedOwnerId: NonEmptyString
|
|
16013
|
+
});
|
|
16014
|
+
const WorktreesRetireSnapshotResultSchema = closedObject({
|
|
16015
|
+
retired: Type.Literal(true),
|
|
16016
|
+
id: NonEmptyString
|
|
15517
16017
|
});
|
|
15518
16018
|
//#endregion
|
|
15519
16019
|
//#region packages/gateway-protocol/src/schema/tools-catalog.ts
|
|
@@ -15666,4 +16166,4 @@ const ToolsEffectiveResultSchema = closedObject({
|
|
|
15666
16166
|
toolAccess: Type.Optional(ToolAccessDiagnosticsSchema)
|
|
15667
16167
|
});
|
|
15668
16168
|
//#endregion
|
|
15669
|
-
export { SessionsViewerPresenceSetResultSchema as $, UserProfileIdSchema as $C, EnvironmentsSessionExecParamsSchema as $S, PluginsSessionActionParamsSchema as $_, ArtifactsDownloadResultSchema as $a, SkillsDetailResultSchema as $b, SessionsRewindParamsSchema as $c, BOARD_CRON_JOB_ID_MAX_LENGTH as $d, BoardWidgetSchema as $f, SessionsCatalogReadResultSchema as $g, ApprovalScopeSchema as $h, TalkClientCreateParamsSchema as $i, ChatSendIntentSchema as $l, WorkerLiveEventSchema as $m, DevicePairRenameParamsSchema as $n, ProjectsListResultSchema as $o, ComputerInvokeParamsSchema as $p, CronScratchSetResultSchema as $r, SessionGroupSchema as $s, PushTestResultSchema as $t, ConfigSchemaLookupResultSchema as $u, UserChannelIdentityLinkSchema as $v, SkillCuratorLiveEntrySchema as $x, UsersSelfResultSchema as $y, PortalOpenParamsSchema as A, SessionVisibilitySchema as AC, EnvironmentsDestroyResultSchema as AS, PluginsCatalogGetParamsSchema as A_, AuditRunIdentityUnknownV1Schema as Aa, AgentsListResultSchema as Ab, SessionsFilesRevealResultSchema as Ac, TranscriptUtteranceSchema as Ad, BoardViewTicketSchema as Af, TerminalOpenParamsSchema as Ag, PresenceLocationSchema as Ah, COMMAND_CHOICE_VALUE_MAX_LENGTH as Ai, SessionsRecoverResultSchema as Al, WORKER_PROTOCOL_MAX_FEATURE_LENGTH as Am, NodePluginToolDescriptorSchema as An, ConversationTurnReplySchema as Ao, SKILL_LIBRARY_MAX_FILE_BYTES as Ap, ExecApprovalsSetParamsSchema as Ar, SessionPublicShareSetParamsSchema as As, SessionsReclaimResultSchema as At, PresenceEntrySchema as Au, SESSION_ICON_SVG_DATA_URL_PREFIX as Av, SkillsWorkshopReadResultSchema as Ax, UsersLinkEmailResultSchema as Ay, TaskSuggestionSchema as B, SessionPersonSchema as BC, WorkerDesktopAppIdSchema as BS, PluginsInspectParamsSchema as B_, AUDIT_ACTIVITY_KINDS as Ba, ModelsAuthOrderSetParamsSchema as Bb, SessionsGroupsMutationResultSchema as Bc, PROGRESS_CARD_MAX_STEPS as Bd, BoardWidgetMcpAppPutContentSchema as Bf, SessionCatalogPullRequestSummarySchema as Bg, ApprovalCancelledReasonSchema as Bh, ChannelsPairingDismissParamsSchema as Bi, ChatHistoryActivitySchema as Bl, WORKER_TRANSCRIPT_MAX_JSON_DEPTH as Bm, FsDirEntrySchema as Bn, PROJECTS_LIST_DEFAULT_LIMIT as Bo, SkillsLibraryUploadParamsSchema as Bp, CronHistoryResultSchema as Br, SessionCompanionExchangeSchema as Bs, QuestionRequestQuestionSchema as Bt, GatewaySuspendPrepareResultSchema as Bu, SessionGitHubOptionsResultSchema as Bv, ToolsGitHubAuthorizePollResultSchema as Bx, UsersMergeResultSchema as By, WorktreesRemoveResultSchema as C, SessionEventAncestorsSchema as CC, SecretsStoreSetParamsSchema as CS, PluginSearchPackageSchema as C_, WebLoginStartParamsSchema as Ca, AgentOwnershipSchema as Cb, SessionsDiffParamsSchema as Cc, TRANSCRIPTS_LEGACY_MAX_UTTERANCES as Cd, BoardTabDeleteOpSchema as Cf, TerminalAttachResultSchema as Cg, WORKER_PROTOCOL_MAX_FRAME_ID_LENGTH as Ch, SystemChangesListResultSchema as Ci, SessionsStorageParamsSchema as Cl, WORKER_LAUNCH_V2_PROTOCOL_FEATURE as Cm, NodePairRejectParamsSchema as Cn, ConversationListParamsSchema as Co, UiFocusCommandSchema as Cp, ExecApprovalRequestParamsSchema as Cr, SessionMemberMutationResultSchema as Cs, SessionPlacementWorkerRuntimeInstallSchema as Ct, EventFrameSchema as Cu, ControlUiLinkReaderMetadataSchema as Cv, SkillsSkillCardResultSchema as Cx, UsersGitHubStatusParamsSchema as Cy, PortalCloseResultSchema as D, SessionToolOverridesSchema as DC, EnvironmentsCreateParamsSchema as DS, PluginsCatalogBrowseResultSchema as D_, AuditListResultSchema as Da, AgentsDeleteParamsSchema as Db, SessionsFilesListParamsSchema as Dc, TRANSCRIPTS_PAGE_MAX as Dd, BoardTabsReorderOpSchema as Df, TerminalExitEventSchema as Dg, WorkerAdmissionFailureReasonSchema as Dh, COMMAND_ARG_DESCRIPTION_MAX_LENGTH as Di, SESSION_CREATE_RETRY_WINDOW_MS as Dl, WORKER_PRESENCE_PROTOCOL_FEATURE as Dm, NodePendingDrainResultSchema as Dn, ConversationTurnCancelParamsSchema as Do, UiSplitCommandSchema as Dp, ExecApprovalsNodeGetParamsSchema as Dr, SessionMembersListParamsSchema as Ds, SessionsMoveResultSchema as Dt, ResponseFrameSchema as Du, SESSION_AGENT_ATTENTION_ICON_IDS as Dv, SkillsUploadChunkParamsSchema as Dx, UsersLinkChannelIdentityParamsSchema as Dy, PortalCloseParamsSchema as E, SessionRowSchema as EC, EnvironmentSummarySchema as ES, PluginsCatalogBrowseParamsSchema as E_, AuditListParamsSchema as Ea, AgentsCreateResultSchema as Eb, SessionsFilesGetResultSchema as Ec, TRANSCRIPTS_PAGE_DEFAULT as Ed, BoardTabUpdateOpSchema as Ef, TerminalEventSchema as Eg, WORKER_PUBLIC_INGRESS_PATH as Eh, COMMAND_ARG_CHOICES_MAX_ITEMS as Ei, SESSION_CREATE_IDEMPOTENCY_RETENTION_MS as El, WORKER_PORTAL_PROTOCOL_FEATURE as Em, NodePendingDrainParamsSchema as En, ConversationSendResultSchema as Eo, UiSidebarCommandSchema as Ep, ExecApprovalsGetParamsSchema as Er, SessionMembersListEvidenceResultSchema as Es, SessionsMoveParamsSchema as Et, RequestFrameSchema as Eu, lazyCompile as Ev, SkillsUploadBeginParamsSchema as Ex, UsersLinkAuthProfileResultSchema as Ey, SessionPortalOpenParamsSchema as F, SessionsActivitySummaryEnsureResultSchema as FC, EnvironmentsStatusParamsSchema as FS, PluginsControlUiListParamsSchema as F_, DecisionReceiptDisplayV1Schema as Fa, GitHubIdentityFactsSchema as Fb, SessionsGroupsDefaultsParamsSchema as Fc, TranscriptsListParamsSchema as Fd, BoardWidgetGeneratedIdentitySchema as Ff, TerminalUploadResultSchema as Fg, checkProtocolJson as Fh, CommandsListParamsSchema as Fi, ChatAttachmentsSchema as Fl, WORKER_SESSION_TOOLS_PROTOCOL_FEATURE as Fm, NodeRenameParamsSchema as Fn, WakeParamsSchema as Fo, SkillsLibraryImportParamsSchema as Fp, CronDeclarativeAddResultSchema as Fr, SessionSharingIdentitySchema as Fs, QuestionListParamsSchema as Ft, GatewaySuspendHandoffResultSchema as Fu, GitHubPublicationPublisherSchema as Fv, ToolsGitHubAuthorizeFailedResultSchema as Fx, UsersListModelAccountsParamsSchema as Fy, TaskSuggestionsDismissParamsSchema as G, GatewayClientIdSchema as GC, WorkerEnvironmentMetadataSchema as GS, PluginsListResultSchema as G_, AuditActivityInboundMessageV1Schema as Ga, ModelsProbeParamsSchema as Gb, SessionsMessagesSubscribeParamsSchema as Gc, ProgressCardGetResultSchema as Gd, BoardWidgetPluginPropsSchema as Gf, SessionsCatalogArchiveParamsSchema as Gg, ApprovalGetParamsSchema as Gh, ChannelsStartParamsSchema as Gi, ChatInjectParamsSchema as Gl, WorkerHeartbeatRequestFrameSchema as Gm, DesktopObserveResultSchema as Gn, ProjectRecentProjectSchema as Go, validateSkillsLibraryReadParams as Gp, CronRemoveParamsSchema as Gr, SessionFileBrowserEntrySchema as Gs, QuestionResolvedEventSchema as Gt, GatewaySuspendStatusReadyResultSchema as Gu, SessionGitHubPublicationRequestedSchema as Gv, ToolsGitHubConfigureParamsSchema as Gx, UsersPrefsChangedEventSchema as Gy, TaskSuggestionsAcceptResultSchema as H, SessionPeerKindSchema as HC, WorkerDesktopLaunchResultSchema as HS, PluginsInstallParamsSchema as H_, AUDIT_ACTIVITY_STATUSES as Ha, ModelsAuthSetApiKeyParamsSchema as Hb, SessionsGroupsRenameParamsSchema as Hc, PROGRESS_CARD_MAX_UTF8_BYTES as Hd, BoardWidgetNameSchema as Hf, SessionCatalogSessionSchema as Hg, ApprovalDecisionSchema as Hh, ChannelsPairingListParamsSchema as Hi, ChatHistoryDeltaResultSchema as Hl, WorkerAdmissionResponseFrameSchema as Hm, FsListDirResultSchema as Hn, PROJECTS_LIST_MAX_IDENTITY_PROBES as Ho, validateSkillsLibraryImportParams as Hp, CronJobStateSchema as Hr, SessionDiffFileSchema as Hs, QuestionRequestedEventSchema as Ht, GatewaySuspendResumeResultSchema as Hu, SessionGitHubPublicationNeedsConfirmationSchema as Hv, ToolsGitHubAuthorizeStartParamsSchema as Hx, UsersPersonalFileGetResultSchema as Hy, PluginApprovalRequestParamsSchema as I, SESSION_EXPANDED_PARTICIPANT_LIMIT as IC, EnvironmentsStatusResultSchema as IS, PluginsControlUiReloadParamsSchema as I_, DecisionReceiptV1Schema as Ia, GitHubIdentityScopeSchema as Ib, SessionsGroupsDefaultsResultSchema as Ic, TranscriptsListResultSchema as Id, BoardWidgetGrantParamsSchema as If, SessionCatalogCapabilitiesSchema as Ig, formatValidationErrors as Ih, CommandsListResultSchema as Ii, ChatDeltaEventSchema as Il, WORKER_SESSION_TOOL_MAX_TEXT_LENGTH as Im, NodeSkillDescriptorSchema as In, MAX_MEMORY_MIGRATION_ITEMS as Io, SkillsLibraryListParamsSchema as Ip, CronDeliveryPreviewSchema as Ir, SessionVisibilitySetParamsSchema as Is, QuestionListResultSchema as It, GatewaySuspendPrepareBusyResultSchema as Iu, GitHubPublicationSelectionSchema as Iv, ToolsGitHubAuthorizeIncorrectDeviceCodeResultSchema as Ix, UsersListModelAccountsResultSchema as Iy, TaskSuggestionsListResultSchema as J, NonEmptyString as JC, WorkerMachineOptionSchema as JS, PluginsReloadParamsSchema as J_, AuditActivityOutboundMessageV1Schema as Ja, SkillProposalEvaluationSchema as Jb, SessionsObserverVisibilityResultSchema as Jc, ProgressCardRefreshParamsSchema as Jd, BoardWidgetPutParamsSchema as Jf, SessionsCatalogContinueResultSchema as Jg, ApprovalHistoryResultSchema as Jh, ChannelsStopParamsSchema as Ji, ChatMessageGetParamsSchema as Jl, WorkerLiveEventErrorShapeSchema as Jm, DesktopSourceSchema as Jn, ProjectRecordSchema as Jo, SkillsProposalHistoryScanParamsSchema as Jp, CronRunsParamsSchema as Jr, SessionFileEntrySchema as Js, QuestionSecretStoreExistingSchema as Jt, GatewaySuspensionSchema as Ju, SessionGitHubStatusParamsSchema as Jv, ToolsGitHubStatusParamsSchema as Jx, UsersPrefsSetParamsSchema as Jy, TaskSuggestionsDismissResultSchema as K, GatewayClientModeSchema as KC, WorkerEnvironmentStateSchema as KS, PluginsRefreshParamsSchema as K_, AuditActivityListParamsSchema as Ka, ModelsProbeResultSchema as Kb, SessionsMessagesUnsubscribeParamsSchema as Kc, ProgressCardPutParamsSchema as Kd, BoardWidgetPresentationSchema as Kf, SessionsCatalogArchiveResultSchema as Kg, ApprovalGetResultSchema as Kh, ChannelsStatusParamsSchema as Ki, ChatInputConsumptionsSchema as Kl, WorkerHeartbeatResponseFrameSchema as Km, DesktopReleaseParamsSchema as Kn, ProjectRecentRepositorySchema as Ko, validateSkillsLibrarySaveParams as Kp, CronRunLogEntrySchema as Kr, SessionFileBrowserResultSchema as Ks, QuestionSchema as Kt, GatewaySuspendStatusResultSchema as Ku, SessionGitHubPublicationResultSchema as Kv, ToolsGitHubInheritConfigureParamsSchema as Kx, UsersPrefsGetParamsSchema as Ky, PluginApprovalResolveParamsSchema as L, SESSION_PARTICIPANT_LIMIT as LC, RequiredNodeCommandSchema as LS, PluginsControlUiReportParamsSchema as L_, ExecutionIdentityContextV1Schema as La, GitHubIdentitySourceSchema as Lb, SessionsGroupsDeleteParamsSchema as Lc, TranscriptsStatusParamsSchema as Ld, BoardWidgetHeightModeSchema as Lf, SessionCatalogDescriptorSchema as Lg, AllowedApprovalSnapshotSchema as Lh, TalkSessionAcknowledgeMarkParamsSchema as Li, ChatErrorEventSchema as Ll, WORKER_TRANSCRIPT_COMMIT_PROTOCOL_FEATURE as Lm, NodeSkillsUpdateParamsSchema as Ln, MigrationProtocolSchemas as Lo, SkillsLibraryMutateParamsSchema as Lp, CronDeliverySchema as Lr, SessionVisibilitySetResultSchema as Ls, QuestionOptionSchema as Lt, GatewaySuspendPrepareDrainingResultSchema as Lu, GitHubPublicationTitleSchema as Lv, ToolsGitHubAuthorizeNetworkErrorResultSchema as Lx, UsersListParamsSchema as Ly, PortalSummarySchema as M, SessionsProviderReviewContinueParamsSchema as MC, EnvironmentsListResultSchema as MS, PluginsChangedEventSchema as M_, AuditRunIdentityV1Schema as Ma, AgentsUpdateResultSchema as Mb, SessionsFilesSetResultSchema as Mc, TranscriptsExportResultSchema as Md, BoardWidgetAppViewResultSchema as Mf, TerminalResizeParamsSchema as Mg, PresenceQueryParamsSchema as Mh, COMMAND_LIST_MAX_ITEMS as Mi, ChatAbortParamsSchema as Ml, WORKER_PROTOCOL_METHODS as Mm, NodePresenceActivityPayloadSchema as Mn, MessageActionParamsSchema as Mo, SkillLibraryFileSchema as Mp, CronAddJobResultSchema as Mr, SessionSharingActionSchema as Ms, QuestionAnswersSchema as Mt, StateVersionSchema as Mu, normalizeSessionColorValue as Mv, ToolsGitHubAuthorizeCancelParamsSchema as Mx, UsersListAuthLinksResultSchema as My, SessionPortalCloseParamsSchema as N, SessionActivitySummarySchema as NC, EnvironmentsPrepareParamsSchema as NS, PluginsControlUiCatalogSchema as N_, AuditRunInspectParamsSchema as Na, AuthProbeStatusSchema as Nb, SessionsForkParamsSchema as Nc, TranscriptsGetParamsSchema as Nd, BoardWidgetContentSchema as Nf, TerminalSessionInfoSchema as Ng, PresenceQueryResultSchema as Nh, COMMAND_NAME_MAX_LENGTH as Ni, ChatAbortedEventSchema as Nl, WORKER_PROVIDER_REPLAY_MAX_DATA_BYTES as Nm, NodePresenceAlivePayloadSchema as Nn, PollParamsSchema as No, SkillLibrarySelectionSchema as Np, CronAddParamsSchema as Nr, SessionSharingEventSchema as Ns, QuestionGetParamsSchema as Nt, GatewaySuspendBlockerSchema as Nu, normalizeSessionIconValue as Nv, ToolsGitHubAuthorizeCancelResultSchema as Nx, UsersListChannelIdentitiesParamsSchema as Ny, PortalListParamsSchema as O, SESSION_VISIBILITY_VALUES as OC, EnvironmentsCreateResultSchema as OS, PluginsCatalogCategoriesParamsSchema as O_, AuditRunIdentityAmbiguousV1Schema as Oa, AgentsDeleteResultSchema as Ob, SessionsFilesListResultSchema as Oc, TRANSCRIPTS_RESULT_MAX_BYTES as Od, BoardTicketEventParamsSchema as Of, TerminalInputParamsSchema as Og, WorkerProtocolCloseReasonSchema as Oh, COMMAND_ARG_NAME_MAX_LENGTH as Oi, SessionsCreateParamsSchema as Ol, WORKER_PROTOCOL_FEATURES as Om, NodePendingEnqueueParamsSchema as On, ConversationTurnCancelResultSchema as Oo, SKILL_LIBRARY_MAX_BUNDLE_BYTES as Op, ExecApprovalsNodeSetParamsSchema as Or, SessionMembersListResultSchema as Os, SessionsReclaimParamsSchema as Ot, ShutdownEventSchema as Ou, SESSION_COLOR_IDS as Ov, SkillsUploadCommitParamsSchema as Ox, UsersLinkChannelIdentityResultSchema as Oy, SessionPortalListParamsSchema as P, SessionsActivitySummaryEnsureParamsSchema as PC, EnvironmentsPrepareResultSchema as PS, PluginsControlUiChangedEventSchema as P_, AuditRunInspectResultSchema as Pa, GitHubAuthorSchema as Pb, SessionsForkResultSchema as Pc, TranscriptsGetResultSchema as Pd, BoardWidgetDeclaredSchema as Pf, TerminalUploadParamsSchema as Pg, validatePresenceActivityParams as Ph, CommandEntrySchema as Pi, ChatAttachmentSchema as Pl, WORKER_RPC_SET_VERSION as Pm, NodePresenceAliveReasonSchema as Pn, SendParamsSchema as Po, SkillsLibraryActivateParamsSchema as Pp, CronAddResultSchema as Pr, SessionSharingEvidenceEventSchema as Ps, QuestionGetResultSchema as Pt, GatewaySuspendHandoffParamsSchema as Pu, GitHubPublicationBodySchema as Pv, ToolsGitHubAuthorizeExpiredResultSchema as Px, UsersListChannelIdentitiesResultSchema as Py, SessionsViewerPresenceSetParamsSchema as Q, Sha256String as QC, WorkerTunnelStatusSchema as QS, PluginsSessionActionFailureResultSchema as Q_, ArtifactsDownloadParamsSchema as Qa, SkillsDetailParamsSchema as Qb, SessionsResetParamsSchema as Qc, ProgressCardStepStatusSchema as Qd, BoardWidgetResizeOpSchema as Qf, SessionsCatalogReadParamsSchema as Qg, ApprovalResolveResultSchema as Qh, TalkClientCloseParamsSchema as Qi, ChatRunStartupPhaseSchema as Ql, WorkerLiveEventResultSchema as Qm, DevicePairRemoveParamsSchema as Qn, ProjectsListParamsSchema as Qo, validateSkillsProposalHistoryStatusParams as Qp, CronScratchSetParamsSchema as Qr, SessionGroupDefaultsSchema as Qs, PushTestParamsSchema as Qt, ConfigSchemaLookupParamsSchema as Qu, PersonalGitHubStatusSchema as Qv, ToolsInvokeResultSchema as Qx, UsersSelfParamsSchema as Qy, TaskSuggestionEventSchema as R, SessionParticipantIdentitySchema as RC, RequiredNodeCommandStateSchema as RS, PluginsControlUiStatusParamsSchema as R_, PrincipalRefV1Schema as Ra, GitHubSelectedIdentitySchema as Rb, SessionsGroupsListParamsSchema as Rc, TranscriptsStatusResultSchema as Rd, BoardWidgetHtmlContentSchema as Rf, SessionCatalogHostSchema as Rg, ApprovalAllowDecisionSchema as Rh, ChannelsPairingApproveParamsSchema as Ri, ChatEventSchema as Rl, WORKER_TRANSCRIPT_MAX_BATCH_MESSAGES as Rm, NODE_PRESENCE_ALIVE_REASONS as Rn, MigrationsMemoryApplyParamsSchema as Ro, SkillsLibraryReadParamsSchema as Rp, CronGetParamsSchema as Rr, SESSION_OBSERVER_HEALTH_VALUES as Rs, QuestionRecordSchema as Rt, GatewaySuspendPrepareParamsSchema as Ru, SessionGitHubConfirmParamsSchema as Rv, ToolsGitHubAuthorizePendingResultSchema as Rx, UsersListResultSchema as Ry, WorktreesRemoveParamsSchema as S, SessionEntryArchiveReasonSchema as SC, SecretsStoreMutationResultSchema as SS, PluginRuntimeStatusSchema as S_, TtsSpeakResultSchema as Sa, AgentKindSchema as Sb, SessionsDescribeParamsSchema as Sc, TRANSCRIPTS_LEGACY_MAX_TEXT_LENGTH as Sd, BoardTabCreateOpSchema as Sf, TerminalAttachParamsSchema as Sg, WorkerComputerResultSchema as Sh, SystemChangesListParamsSchema as Si, SessionsTitlePrepareResultSchema as Sl, WORKER_HEARTBEAT_INTERVAL_MS as Sm, NodePairListParamsSchema as Sn, ConversationListItemSchema as So, UiCommandSchema as Sp, ExecApprovalGrantsRevokeResultSchema as Sr, SessionMemberEvidenceSchema as Ss, SessionPlacementStateSchema as St, ErrorShapeSchema as Su, ControlUiLinkReaderDescriptorSchema as Sv, SkillsSkillCardParamsSchema as Sx, UsersGitHubDisconnectResultSchema as Sy, PortalChangedEventSchema as T, SessionPermissionModeSchema as TC, EnvironmentStatusSchema as TS, PluginUiCapabilitySchema as T_, AuditEventSchema as Ta, AgentsCreateParamsSchema as Tb, SessionsFilesGetParamsSchema as Tc, TRANSCRIPTS_LIST_MAX as Td, BoardTabSchema as Tf, TerminalDataEventSchema as Tg, WORKER_PROTOCOL_MAX_PAYLOAD_BYTES as Th, COMMAND_ARGS_MAX_ITEMS as Ti, SessionsSetInvolvementParamsSchema as Tl, WORKER_LIVE_EVENT_PROTOCOL_FEATURE as Tm, NodePendingAckParamsSchema as Tn, ConversationSendParamsSchema as To, UiPanelCommandSchema as Tp, ExecApprovalStandingGrantSchema as Tr, SessionMemberSchema as Ts, SessionsDispatchResultSchema as Tt, HelloOkSchema as Tu, validatePluginUiCapabilities as Tv, SkillsUpdateParamsSchema as Tx, UsersLinkAuthProfileParamsSchema as Ty, TaskSuggestionsCreateParamsSchema as U, CHAT_SEND_SESSION_KEY_MAX_LENGTH as UC, WorkerDesktopObserveParamsSchema as US, PluginsInstallResultSchema as U_, AuditActivityAgentRunV1Schema as Ua, ModelsAuthSetApiKeyResultSchema as Ub, SessionsGroupsUpdateParamsSchema as Uc, ProgressCardChangedEventSchema as Ud, BoardWidgetPluginContentSchema as Uf, SessionCatalogShareRouteSchema as Ug, ApprovalDeniedReasonSchema as Uh, ChannelsPairingListResultSchema as Ui, ChatHistoryParamsSchema as Ul, WorkerConnectRequestFrameSchema as Um, DesktopLaunchParamsSchema as Un, ProjectCheckoutSchema as Uo, validateSkillsLibraryListParams as Up, CronListParamsSchema as Ur, SessionDiffFileStatusSchema as Us, QuestionResolveParamsSchema as Ut, GatewaySuspendStatusDrainingResultSchema as Uu, SessionGitHubPublicationPublishedSchema as Uv, ToolsGitHubAuthorizeStartResultSchema as Ux, UsersPersonalFileSetParamsSchema as Uy, TaskSuggestionsAcceptParamsSchema as V, SessionClassificationSchema as VC, WorkerDesktopLaunchParamsSchema as VS, PluginsInspectResultSchema as V_, AUDIT_ACTIVITY_MESSAGE_KIND as Va, ModelsAuthRefreshParamsSchema as Vb, SessionsGroupsPutParamsSchema as Vc, PROGRESS_CARD_MAX_STEP_UTF8_BYTES as Vd, BoardWidgetMoveOpSchema as Vf, SessionCatalogSchema as Vg, ApprovalChannelReviewerSchema as Vh, ChannelsPairingDismissResultSchema as Vi, ChatHistoryCursorResultSchema as Vl, WorkerAdmissionHandshakeSchema as Vm, FsListDirParamsSchema as Vn, PROJECTS_LIST_MAX_CHECKOUTS_PER_PROJECT as Vo, validateSkillsLibraryActivateParams as Vp, CronJobSchema as Vr, SessionDiffCommitSchema as Vs, QuestionRequestResultSchema as Vt, GatewaySuspendResumeParamsSchema as Vu, SessionGitHubPublicationFailedSchema as Vv, ToolsGitHubAuthorizeSlowDownResultSchema as Vx, UsersPersonalFileGetParamsSchema as Vy, TaskSuggestionsCreateResultSchema as W, ChatSendSessionKeyString as WC, WorkerDesktopObserveResultSchema as WS, PluginsListParamsSchema as W_, AuditActivityEventV1Schema as Wa, ModelsAuthStatusParamsSchema as Wb, SessionsGroupsUpdateResultSchema as Wc, ProgressCardGetParamsSchema as Wd, BoardWidgetPluginKindSchema as Wf, SessionCatalogTranscriptItemSchema as Wg, ApprovalExpiredReasonSchema as Wh, ChannelsLogoutParamsSchema as Wi, ChatHistoryResetResultSchema as Wl, WorkerHeartbeatParamsSchema as Wm, DesktopObserveParamsSchema as Wn, ProjectRecentFolderSchema as Wo, validateSkillsLibraryMutateParams as Wp, CronPacingSchema as Wr, SessionDiffScopeSchema as Ws, QuestionResolveResultSchema as Wt, GatewaySuspendStatusParamsSchema as Wu, SessionGitHubPublicationPublishingSchema as Wv, ToolsGitHubAuthorizeSuccessResultSchema as Wx, UsersPersonalFileSetResultSchema as Wy, SystemInfoResultSchema as X, SecretRefSchema as XC, WorkerOperatingSystemSchema as XS, PluginsSearchParamsSchema as X_, findAuditActivityFilterConflict as Xa, SkillsBinsParamsSchema as Xb, SessionsPluginPatchResultSchema as Xc, ProgressCardSchema as Xd, BoardWidgetRegisteredContentSchema as Xf, SessionsCatalogListParamsSchema as Xg, ApprovalPresentationSchema as Xh, TalkCatalogParamsSchema as Xi, ChatMetadataParamsSchema as Xl, WorkerLiveEventRequestFrameSchema as Xm, DevicePairListParamsSchema as Xn, ProjectsAddParamsSchema as Xo, SkillsProposalHistoryStatusParamsSchema as Xp, CronScratchGetResultSchema as Xr, SessionFilePreviewKindSchema as Xs, QuestionWaitAnswerParamsSchema as Xt, ConfigGetParamsSchema as Xu, PersonalGitHubAccountSchema as Xv, ToolsInvokeErrorSchema as Xx, UsersSelectModelAccountParamsSchema as Xy, SystemInfoParamsSchema as Y, SecretInputSchema as YC, WorkerMachineOptionsSchema as YS, PluginsReloadResultSchema as Y_, AuditActivityToolActionV1Schema as Ya, SkillProposalLifecycleEventSchema as Yb, SessionsPluginPatchParamsSchema as Yc, ProgressCardRefreshResultSchema as Yd, BoardWidgetPutResultSchema as Yf, SessionsCatalogHostEventSchema as Yg, ApprovalKindSchema as Yh, TalkAgentControlResultSchema as Yi, ChatMessageGetResultSchema as Yl, WorkerLiveEventParamsSchema as Ym, DevicePairApproveParamsSchema as Yn, ProjectSummarySchema as Yo, SkillsProposalHistoryScanResultSchema as Yp, CronScratchGetParamsSchema as Yr, SessionFileKindSchema as Ys, QuestionStatusSchema as Yt, ConfigApplyParamsSchema as Yu, SessionGitHubStatusResultSchema as Yv, ToolsGitHubStatusResultSchema as Yx, UsersPrefsSetResultSchema as Yy, SESSION_VIEWER_PRESENCE_MAX_KEYS as Z, SessionLabelString as ZC, WorkerSlotSummarySchema as ZS, PluginsSearchResultSchema as Z_, ArtifactSummarySchema as Za, SkillsBinsResultSchema as Zb, SessionsPreviewParamsSchema as Zc, ProgressCardStepSchema as Zd, BoardWidgetRemoveOpSchema as Zf, SessionsCatalogListResultSchema as Zg, ApprovalResolveParamsSchema as Zh, TalkCatalogResultSchema as Zi, ChatPendingInputsPageSchema as Zl, WorkerLiveEventResponseFrameSchema as Zm, DevicePairRejectParamsSchema as Zn, ProjectsAddResultSchema as Zo, validateSkillsProposalHistoryScanParams as Zp, CronScratchSchema as Zr, SessionFileRelevanceSchema as Zs, QuestionWaitAnswerResultSchema as Zt, ConfigPatchParamsSchema as Zu, PersonalGitHubGenerationSchema as Zv, ToolsInvokeParamsSchema as Zx, UsersSelectModelAccountResultSchema as Zy, WorktreesCreateParamsSchema as _, buildMissingScopeErrorDetails as _C, SecretsResolveParamsSchema as _S, PluginDiscoveryEntrySchema as __, TalkSessionSteerParamsSchema as _a, WizardStartParamsSchema as _b, SessionsCompanionResetParamsSchema as _c, UpdateRunsListParamsSchema as _d, BoardPluginActionParamsSchema as _f, SystemAgentApprovalPresentationSchema as _g, WorkerTranscriptMessageSchema as _h, SystemAgentSetupVerifyResultSchema as _i, SessionGoalSchema as _l, validateWorkerInferenceTerminalOutcome as _m, NodeInvokeProgressParamsSchema as _n, AgentEventSchema as _o, ThemesListParamsSchema as _p, ScopeUpgradeWaitSchema as _r, SessionSuggestionsResolveResultSchema as _s, SessionPlacementMachineSchema as _t, MentionsListParamsSchema as _u, PluginCredentialDescriptorSchema as _v, SkillsProposalsListResultSchema as _x, UsersGitHubAuthorizePollParamsSchema as _y, ToolsCatalogParamsSchema as a, GitHubPublicationSelectionRejectedErrorDetailsSchema as aC, ModelCatalogProviderOutcomeSchema as aS, MAX_PLUGIN_RELOAD_TARGETS as a_, TalkClientTranscriptParamsSchema as aa, UsersSetRoleResultSchema as ab, SessionWorktreeInfoSchema as ac, UpdateHoldResultSchema as ad, BoardChangedEventSchema as af, ExpiredApprovalSnapshotSchema as ag, WorkerSessionToolResponseFrameSchema as ah, SystemAgentChatParamsSchema as ai, SessionsSearchResultSchema as al, WORKER_PROTOCOL_MAX_INFERENCE_PAYLOAD_BYTES as am, WebPushPreferencesSetParamsSchema as an, AgentsWorkspaceFileSchema as ao, TALK_VOICE_CHANGE_TIMEOUT_MS as ap, DevicePairSetupDeliveryUncertainEventSchema as ar, ProjectsSearchRemoteResultSchema as as, SessionDiscussionInfoSchema as at, LogsTailParamsSchema as au, PluginsUiDescriptorsResultSchema as av, isGitCoauthorCreditEnabled as aw, SkillsProposalEvaluateParamsSchema as ax, UserProfileSchema as ay, WorktreesListParamsSchema as b, SessionAncestorRefSchema as bC, SecretsStoreListParamsSchema as bS, PluginReloadTargetSchema as b_, TalkSpeakResultSchema as ba, WizardStatusResultSchema as bb, SessionsCompanionStateResultSchema as bc, SessionsListParamsSchema as bd, BoardSizeSchema as bf, isWellFormedApprovalId as bg, WorkerComputerParamsSchema as bh, SystemChangeKindSchema as bi, SessionsGoalUpdateParamsSchema as bl, WORKER_EXECUTION_AUTHORITY_PROTOCOL_FEATURE as bm, NodeListParamsSchema as bn, AgentParamsSchema as bo, UiCommandParamsSchema as bp, ExecApprovalGrantsListResultSchema as br, SessionTypingResultSchema as bs, SessionPlacementRunnerSchema as bt, UsersMentionableResultSchema as bu, PluginsCredentialsInspectResultSchema as bv, SkillsSecurityVerdictsParamsSchema as bx, UsersGitHubAuthorizeStartResultSchema as by, ToolsEffectiveGroupSchema as c, OutboundDeliveryQueuedErrorDetailsSchema as cC, ModelsListParamsSchema as cS, PluginCatalogInstallActionSchema as c_, TalkEventSchema as ca, UsersUnlinkChannelIdentityParamsSchema as cb, SessionsAssignOwnerResultSchema as cc, UpdateRunParamsSchema as cd, BoardCommandSchema as cf, PaymentApprovalScopeSchema as cg, WorkerSessionsSendResponseFrameSchema as ch, SystemAgentSetupActivateParamsSchema as ci, SessionsPatchManyResultSchema as cl, WorkerInferenceImageContentSchema as cm, WebPushUnsubscribeParamsSchema as cn, AgentsWorkspaceListParamsSchema as co, TalkVoiceGetParamsSchema as cp, DeviceTokenRevokeParamsSchema as cr, SessionSuggestionEventSchema as cs, SessionDiscussionStateSchema as ct, HumanMentionSchema as cu, PluginInstallActivitySchema as cv, SkillsProposalEventsListResultSchema as cx, UsersAuthConnectCatalogParamsSchema as cy, ToolsEffectiveResultSchema as d, SetupAdmissionBusyErrorDetailsSchema as dC, GitHubSetupHandleSchema as dS, PluginControlUiDiagnosticSchema as d_, TalkSessionCancelOutputParamsSchema as da, normalizeUiAppearancePreference as db, SessionsBranchesSwitchParamsSchema as dc, UpdateStatusResultSchema as dd, BoardEventParamsSchema as df, PluginApprovalExternalResolutionSchema as dg, WorkerTranscriptCommitErrorReasonSchema as dh, SystemAgentSetupActivateStartResultSchema as di, SessionsPatchParamsSchema as dl, WorkerInferenceStartRequestFrameSchema as dm, NodeEventParamsSchema as dn, AgentsFilesGetParamsSchema as do, TalkVoiceSetResultSchema as dp, ScopeUpgradeApprovedSchema as dr, SessionSuggestionStateSchema as ds, SessionMoveGatewayTargetSchema as dt, MAX_MENTIONABLE_USERS as du, PluginDeclaredSurfaceSchema as dv, SkillsProposalRecordResultSchema as dx, UsersAuthConnectStartParamsSchema as dy, EnvironmentsSessionCreateParamsSchema as eC, SkillsCuratorActionParamsSchema as eS, SessionsCatalogStartTerminalParamsSchema as e_, TalkClientCreateResultSchema as ea, UsersSetAvatarParamsSchema as eb, SessionNarrationEventSchema as ec, ConfigSchemaParamsSchema as ed, BOARD_CRON_TRIGGER_PREFIX as ef, ApprovalSnapshotSchema as eg, WorkerPortalParamsSchema as eh, CronStatusParamsSchema as ei, SessionsRewindResultSchema as el, ComputerStatusParamsSchema as em, WebPushDetailLevelSchema as en, ArtifactsGetParamsSchema as eo, CANVAS_DOCUMENT_PREVIEW_MAX_BYTES as ep, DevicePairRequestedEventSchema as er, ProjectsRegisterParamsSchema as es, SessionsResolveCandidateSchema as et, ChatSendParamsSchema as eu, PluginsSessionActionResultSchema as ev, GATEWAY_OWNER_PROFILE_ID as ew, SkillsInstallParamsSchema as ex, UserChannelIdentitySchema as ey, WorktreeBranchSchema as f, SkillProposalRevisionChangedErrorDetailsSchema as fC, SecretStoreEntrySchema as fS, PluginControlUiModuleSchema as f_, TalkSessionCancelOutputResultSchema as fa, McpAuthLoginParamsSchema as fb, SessionsBranchesSwitchResultSchema as fc, UpdateRunChangedEventSchema as fd, BoardFocusTabCommandSchema as ff, PluginApprovalPresentationSchema as fg, WorkerTranscriptCommitErrorShapeSchema as fh, SystemAgentSetupAuthStartParamsSchema as fi, PreservedSessionWorktreeSchema as fl, WorkerInferenceStartResponseFrameSchema as fm, NodeEventResultSchema as fn, AgentsFilesGetResultSchema as fo, ThemeDefinitionSchema as fp, ScopeUpgradeExpiredSchema as fr, SessionSuggestionsAddParamsSchema as fs, SessionMovePlacementSchema as ft, MENTION_INBOX_MAX_ITEMS as fu, PluginHookGrantSchema as fv, SkillsProposalRequestRevisionParamsSchema as fx, UsersAuthConnectStartResultSchema as fy, WorktreesBranchesResultSchema as g, WizardNotFoundErrorDetailsSchema as gC, SecretsResolveAssignmentSchema as gS, PluginDiscoveryDetailSchema as g_, TalkSessionOkResultSchema as ga, WizardNextResultSchema as gb, SessionsCompanionAskResultSchema as gc, UpdateRunsGetResultSchema as gd, BoardOpSchema as gf, StandingGrantApprovalScopeSchema as gg, WorkerTranscriptCommitResultSchema as gh, SystemAgentSetupVerifyParamsSchema as gi, WorktreePreservationReasonSchema as gl, validateWorkerInferenceTerminalFrame as gm, NodeInvokeParamsSchema as gn, AgentsFilesSetResultSchema as go, ThemesImportParamsSchema as gp, ScopeUpgradeResultSchema as gr, SessionSuggestionsResolveParamsSchema as gs, SessionPlacementDiskSpaceSchema as gt, MentionsDismissParamsSchema as gu, PluginOperatorGrantsSchema as gv, SkillsProposalsListParamsSchema as gx, UsersGitHubAuthorizeCancelResultSchema as gy, WorktreesBranchesParamsSchema as h, UserPrefsLimitExceededErrorDetailsSchema as hC, SecretsReloadParamsSchema as hS, PluginDiscoveryCategorySchema as h_, TalkSessionCreateResultSchema as ha, WizardNextParamsSchema as hb, SessionsCompanionAskParamsSchema as hc, UpdateRunsGetParamsSchema as hd, BoardMcpAppDescriptorSchema as hf, SessionApprovalReplaySchema as hg, WorkerTranscriptCommitResponseFrameSchema as hh, SystemAgentSetupDetectResultSchema as hi, WORKTREE_PRESERVATION_REASONS as hl, validateWorkerInferenceStartParams as hm, NodeInvokeInputEventSchema as hn, AgentsFilesSetParamsSchema as ho, ThemesGetParamsSchema as hp, ScopeUpgradeRequestSchema as hr, SessionSuggestionsListResultSchema as hs, SessionMoveTargetSchema as ht, MentionsChangedEventSchema as hu, PluginInstalledComponentsSchema as hv, SkillsProposalUpdateParamsSchema as hx, UsersGitHubAuthorizeCancelParamsSchema as hy, ToolCatalogProfileSchema as i, GatewayErrorDetailsSchema as iC, SkillsCuratorStatusResultSchema as iS, ControlUiPluginWidgetKindSchema as i_, TalkClientToolCallResultSchema as ia, UsersSetRoleParamsSchema as ib, SessionOperationEventSchema as ic, UpdateHoldParamsSchema as id, BoardCanvasDocumentSourceSchema as if, ExecApprovalPresentationSchema as ig, WorkerProviderReplayStateSchema as ih, SystemAgentChatHistoryTurnSchema as ii, SessionsSearchParamsSchema as il, WORKER_INFERENCE_PROTOCOL_FEATURE as im, WebPushPreferencesGetParamsSchema as in, AgentsWorkspaceEntrySchema as io, WIDGET_HTML_MAX_UTF8_BYTES as ip, DevicePairSetupCompletedEventSchema as ir, ProjectsSearchRemoteParamsSchema as is, SessionDiscussionInfoResultSchema as it, ChatToolTitlesResultSchema as iu, PluginsUiDescriptorsParamsSchema as iv, USER_PREFS_VALUE_BYTES as iw, SkillsProposalDecisionParamsSchema as ix, UserProfileGitHubIdentitySchema as iy, PortalOpenResultSchema as j, SessionProviderReviewProjectionSchema as jC, EnvironmentsListParamsSchema as jS, PluginsCatalogGetResultSchema as j_, AuditRunIdentityUnsupportedV1Schema as ja, AgentsUpdateParamsSchema as jb, SessionsFilesSetParamsSchema as jc, TranscriptsExportParamsSchema as jd, BoardWidgetAppViewParamsSchema as jf, TerminalOpenResultSchema as jg, PresencePersonSchema as jh, COMMAND_DESCRIPTION_MAX_LENGTH as ji, AgentActivityItemSchema as jl, WORKER_PROTOCOL_MAX_METHOD_LENGTH as jm, NodePluginToolsUpdateParamsSchema as jn, ConversationTurnResultSchema as jo, SKILL_LIBRARY_MAX_SELECTIONS as jp, ExecApprovalsSnapshotSchema as jr, SessionPublicShareSetResultSchema as js, isCloudWorkerPlacementState as jt, SnapshotSchema as ju, SESSION_ICON_SVG_MAX_BYTES as jv, ToolsGitHubAuthorizeAccessDeniedResultSchema as jx, UsersListAuthLinksParamsSchema as jy, PortalListResultSchema as k, SessionSharingRoleSchema as kC, EnvironmentsDestroyParamsSchema as kS, PluginsCatalogCategoriesResultSchema as k_, AuditRunIdentityPresentV1Schema as ka, AgentsListParamsSchema as kb, SessionsFilesRevealParamsSchema as kc, TranscriptSessionSummarySchema as kd, BoardUpdateParamsSchema as kf, TerminalListResultSchema as kg, PresenceDeviceSchema as kh, COMMAND_CHOICE_LABEL_MAX_LENGTH as ki, SessionsRecoverParamsSchema as kl, WORKER_PROTOCOL_MAX_FEATURES as km, NodePendingEnqueueResultSchema as kn, ConversationTurnParamsSchema as ko, SKILL_LIBRARY_MAX_FILES as kp, ExecApprovalsNodeSnapshotSchema as kr, SessionPublicShareSchema as ks, SessionsReclaimResultPlacementSchema as kt, TickEventSchema as ku, SESSION_ICON_GLYPH_IDS as kv, SkillsWorkshopReadParamsSchema as kx, UsersLinkEmailParamsSchema as ky, ToolsEffectiveNoticeSchema as l, ProjectCloneErrorDetailsSchema as lC, ModelsListResultSchema as lS, PluginCatalogOfficialInstallSchema as l_, TalkModeParamsSchema as la, UsersUnlinkChannelIdentityResultSchema as lb, SessionsBranchesListParamsSchema as lc, UpdateScheduleStateSchema as ld, BoardCronActionParamsSchema as lf, PendingApprovalSnapshotSchema as lg, WorkerSessionsSpawnParamsSchema as lh, SystemAgentSetupActivateResultSchema as li, SessionsPatchManyTargetSchema as ll, WorkerInferenceModelRefSchema as lm, WebPushVapidPublicKeyParamsSchema as ln, AgentsWorkspaceListResultSchema as lo, TalkVoiceSelectionSchema as lp, DeviceTokenRotateParamsSchema as lr, SessionSuggestionResolutionSchema as ls, SessionMoveDeviceTargetSchema as lt, HumanMentionsSchema as lu, PluginsInstallProgressEventSchema as lv, SkillsProposalInspectParamsSchema as lx, UsersAuthConnectCatalogResultSchema as ly, WorktreeRepositoryStatusSchema as m, UnknownAgentIdErrorDetailsSchema as mC, SecretStoreSecretEntrySchema as mS, PluginDiscoveryCatalogFactsSchema as m_, TalkSessionCreateParamsSchema as ma, WizardCancelParamsSchema as mb, SessionsCompactParamsSchema as mc, UpdateRunResultSchema as md, BoardLegacyEventParamsSchema as mf, SessionApprovalEventSchema as mg, WorkerTranscriptCommitRequestFrameSchema as mh, SystemAgentSetupDetectParamsSchema as mi, SessionsDeleteResultSchema as ml, validateWorkerInferenceEventFrame as mm, NodeInvokeCancelEventSchema as mn, AgentsFilesListResultSchema as mo, ThemePaletteSchema as mp, ScopeUpgradeRejectedSchema as mr, SessionSuggestionsListParamsSchema as ms, SessionMoveProfileTargetSchema as mt, MentionableUserSchema as mu, PluginInstallTrustSchema as mv, SkillsProposalReviseParamsSchema as mx, UsersAuthConnectStatusResultSchema as my, ToolCatalogEntrySchema as n, EnvironmentsSessionStatusParamsSchema as nC, SkillsCuratorLiveStatusResultSchema as nS, CapabilityConsentErrorDetailsSchema as n_, TalkClientSteerParamsSchema as na, UsersSetDisplayNameParamsSchema as nb, SessionObserverHealthSchema as nc, ConfigSetParamsSchema as nd, BOARD_WIDGET_TOOL_MAX_LENGTH as nf, CancelledApprovalSnapshotSchema as ng, WorkerPresenceParamsSchema as nh, SystemAgentChatHistoryParamsSchema as ni, SessionsUsageParamsSchema as nl, WORKER_INFERENCE_MAX_OUTPUT_TOKENS as nm, WebPushNotificationCategorySchema as nn, ArtifactsListParamsSchema as no, CanvasDocumentViewParamsSchema as np, DevicePairSetupCodeParamsSchema as nr, ProjectsRemoveParamsSchema as ns, SessionsResolveResultSchema as nt, ChatStatusEventSchema as nu, PluginsSetEnabledParamsSchema as nv, USER_PREFS_ENTRY_LIMIT as nw, SkillsProposalApplyResultSchema as nx, UserProfileAuthLinkSchema as ny, ToolsCatalogResultSchema as o, McpAppViewExpiredErrorDetailsSchema as oC, ModelChoiceSchema as oS, PluginCatalogClawHubInstallSchema as o_, TalkConfigParamsSchema as oa, UsersUnlinkAuthProfileParamsSchema as ob, SessionsAbortParamsSchema as oc, UpdateReportParamsSchema as od, BoardChatDockSchema as of, ExternalPostApprovalScopeSchema as og, WorkerSessionToolResultSchema as oh, SystemAgentChatQuestionSchema as oi, SESSIONS_PATCH_MANY_MAX_TARGETS as ol, WorkerInferenceCancelRequestFrameSchema as om, WebPushSubscribeParamsSchema as on, AgentsWorkspaceGetParamsSchema as oo, TalkVoiceChangeEventSchema as op, DevicePairSetupStatusParamsSchema as or, RemoteProjectSchema as os, SessionDiscussionOpenParamsSchema as ot, LogsTailResultSchema as ou, PluginsUninstallParamsSchema as ov, closedObject as ow, SkillsProposalEvaluateResultSchema as ox, UsersAuthConnectAnswerParamsSchema as oy, WorktreeRecordSchema as p, TaskWorktreeSourceRequiredErrorDetailsSchema as pC, SecretStoreEnvEntrySchema as pS, PluginDeclaredSurfaceWideningSchema as p_, TalkSessionCloseParamsSchema as pa, WizardAnswerSchema as pb, SessionsCleanupParamsSchema as pc, UpdateRunRecordSchema as pd, BoardGetParamsSchema as pf, PluginApprovalSeveritySchema as pg, WorkerTranscriptCommitParamsSchema as ph, SystemAgentSetupAuthStartResultSchema as pi, SessionsDeleteParamsSchema as pl, validateWorkerInferenceCancelParams as pm, NodeHostStatsPayloadSchema as pn, AgentsFilesListParamsSchema as po, ThemeModeSchema as pp, ScopeUpgradeRegistrationSchema as pr, SessionSuggestionsAddResultSchema as ps, SessionMovePlacementStateSchema as pt, MentionInboxItemSchema as pu, PluginInspectSourceSchema as pv, SkillsProposalRequestRevisionResultSchema as px, UsersAuthConnectStatusParamsSchema as py, TaskSuggestionsListParamsSchema as q, InputProvenanceSchema as qC, WorkerExecutionModeSchema as qS, PluginsRefreshResultSchema as q_, AuditActivityListResultSchema as qa, ModelsProbeTargetResultSchema as qb, SessionsObserverVisibilityParamsSchema as qc, ProgressCardPutResultSchema as qd, BoardWidgetPutContentSchema as qf, SessionsCatalogContinueParamsSchema as qg, ApprovalHistoryParamsSchema as qh, ChannelsStatusResultSchema as qi, ChatInputReceiptsSchema as ql, WorkerLiveEventErrorDetailsSchema as qm, DesktopReleaseResultSchema as qn, ProjectRecentSchema as qo, validateSkillsLibraryUploadParams as qp, CronRunParamsSchema as qr, SessionFileContentEncodingSchema as qs, QuestionSecretStoreBindingSchema as qt, GatewaySuspendStatusRunningResultSchema as qu, SessionGitHubPublishParamsSchema as qv, ToolsGitHubManagedConfigureParamsSchema as qx, UsersPrefsGetResultSchema as qy, ToolCatalogGroupSchema as r, CronJobNotFoundErrorDetailsSchema as rC, SkillsCuratorStatusParamsSchema as rS, ControlUiPluginTabSchema as r_, TalkClientToolCallParamsSchema as ra, UsersSetDisplayNameResultSchema as rb, SessionObserverPlanProgressSchema as rc, UpdateAvailableSchema as rd, BoardActionParamsSchema as rf, DeniedApprovalSnapshotSchema as rg, WorkerPresenceResponseFrameSchema as rh, SystemAgentChatHistoryResultSchema as ri, SessionsSearchHitSchema as rl, WORKER_INFERENCE_METHODS as rm, WebPushNotificationPreferencesSchema as rn, ArtifactsListResultSchema as ro, CanvasDocumentViewResultSchema as rp, DevicePairSetupCodeResultSchema as rr, ProjectsRemoveResultSchema as rs, SessionDiscussionInfoParamsSchema as rt, ChatToolTitlesParamsSchema as ru, PluginsSetEnabledResultSchema as rv, USER_PREFS_PROFILE_KEY_LIMIT as rw, SkillsProposalCreateParamsSchema as rx, UserProfileAvatarMimeSchema as ry, ToolsEffectiveEntrySchema as s, MissingScopeErrorDetailsSchema as sC, ModelRuntimeChoiceSchema as sS, PluginCatalogEntrySchema as s_, TalkConfigResultSchema as sa, UsersUnlinkAuthProfileResultSchema as sb, SessionsAssignOwnerParamsSchema as sc, UpdateReportResultSchema as sd, BoardCommandEventSchema as sf, MessageSendApprovalScopeSchema as sg, WorkerSessionsSendParamsSchema as sh, SystemAgentChatResultSchema as si, SessionsPatchManyParamsSchema as sl, WorkerInferenceCancelResponseFrameSchema as sm, WebPushTestParamsSchema as sn, AgentsWorkspaceGetResultSchema as so, TalkVoiceCompleteParamsSchema as sp, DevicePairSetupStatusResultSchema as sr, SessionSuggestionActionSchema as ss, SessionDiscussionOpenResultSchema as st, projectChatErrorDetail as su, PluginsUninstallResultSchema as sv, SkillsProposalEventsListParamsSchema as sx, UsersAuthConnectCancelParamsSchema as sy, ToolAccessDiagnosticsSchema as t, EnvironmentsSessionDestroyParamsSchema as tC, SkillsCuratorActionResultSchema as tS, SessionsCatalogStartTerminalResultSchema as t_, TalkClientMutationResultSchema as ta, UsersSetAvatarResultSchema as tb, SessionObserverDigestSchema as tc, ConfigSchemaResponseSchema as td, BOARD_DATA_BINDING_ID_MAX_LENGTH as tf, ApprovalTerminalReasonSchema as tg, WorkerPortalResponseFrameSchema as th, CronUpdateParamsSchema as ti, SessionsSendParamsSchema as tl, WORKER_INFERENCE_MAX_CONTEXT_MESSAGES as tm, WebPushDevicePreferencesSchema as tn, ArtifactsGetResultSchema as to, CanvasDocumentPreviewParamsSchema as tp, DevicePairResolvedEventSchema as tr, ProjectsRegisterResultSchema as ts, SessionsResolveParamsSchema as tt, ChatStartupParamsSchema as tu, PluginsSessionActionSuccessResultSchema as tv, GIT_COAUTHOR_PREFERENCE_KEY as tw, SkillsProposalActionParamsSchema as tx, UserModelAccountSchema as ty, ToolsEffectiveParamsSchema as u, SessionWorkspaceRecoveryRequiredErrorDetailsSchema as uC, ChatAccountSelectionSchema as uS, PluginControlUiDescriptorSchema as u_, TalkSessionAppendAudioParamsSchema as ua, UI_APPEARANCE_PREFERENCE_KEYS as ub, SessionsBranchesListResultSchema as uc, UpdateStatusParamsSchema as ud, BoardDataReadParamsSchema as uf, PendingSessionApprovalEventSchema as ug, WorkerSessionsSpawnResponseFrameSchema as uh, SystemAgentSetupActivateStartParamsSchema as ui, SessionsPatchMutationSchema as ul, WorkerInferenceOptionsSchema as um, NodeDescribeParamsSchema as un, AgentsFileEntrySchema as uo, TalkVoiceSetParamsSchema as up, DeviceTokenRotateResultSchema as ur, SessionSuggestionSchema as us, SessionMoveExpectedSourceSchema as ut, MAX_HUMAN_MENTIONS as uu, PluginDecisionProviderStatusSchema as uv, SkillsProposalInspectResultSchema as ux, UsersAuthConnectResultSchema as uy, WorktreesGcParamsSchema as v, errorShape as vC, SecretsResolveResultSchema as vS, PluginDiscoveryLocalFactsSchema as v_, TalkSessionSubmitToolResultParamsSchema as va, WizardStartResultSchema as vb, SessionsCompanionResetResultSchema as vc, UpdateRunsListResultSchema as vd, BoardPromptAuthorizeParamsSchema as vf, TerminalApprovalSnapshotSchema as vg, WorkerTranscriptUserMessageSchema as vh, SystemAgentWizardCancelSchema as vi, SessionsGoalClearParamsSchema as vl, NODE_WORKER_IDLE_RETENTION_PROTOCOL_FEATURE as vm, NodeInvokeRequestEventSchema as vn, AgentIdentityParamsSchema as vo, ThemesSetParamsSchema as vp, ExecApprovalGetParamsSchema as vr, SessionTypingEventSchema as vs, SessionPlacementMoveSchema as vt, MentionsListResultSchema as vu, PluginCredentialInspectionSchema as vv, SkillsSearchParamsSchema as vx, UsersGitHubAuthorizePollResultSchema as vy, WorktreesRestoreParamsSchema as w, SessionOwnerSchema as wC, DesktopAvailabilitySchema as wS, PluginSearchResultEntrySchema as w_, WebLoginWaitParamsSchema as wa, AgentSummarySchema as wb, SessionsDiffResultSchema as wc, TRANSCRIPTS_LEGACY_RESULT_MAX_BYTES as wd, BoardTabIdSchema as wf, TerminalCloseParamsSchema as wg, WORKER_PROTOCOL_MAX_IDENTIFIER_LENGTH as wh, COMMAND_ALIAS_MAX_ITEMS as wi, SessionsStorageStatusResultSchema as wl, WORKER_LINEAGE_START_PROTOCOL_FEATURE as wm, NodePairRemoveParamsSchema as wn, ConversationListResultSchema as wo, UiNavigateCommandSchema as wp, ExecApprovalResolveParamsSchema as wr, SessionMemberRemoveParamsSchema as ws, SessionsDispatchParamsSchema as wt, GatewayFrameSchema as wu, PLUGIN_UI_CAPABILITIES as wv, SkillsStatusParamsSchema as wx, UsersGitHubStatusResultSchema as wy, WorktreesListResultSchema as x, SessionCreatedActorSchema as xC, SecretsStoreListResultSchema as xS, PluginRuntimeApplicationSchema as x_, TtsSpeakParamsSchema as xa, WizardStepSchema as xb, SessionsCreateResultSchema as xc, TRANSCRIPTS_EXPORT_MAX_BYTES as xd, BoardSnapshotSchema as xf, TerminalAckResultSchema as xg, WorkerComputerResponseFrameSchema as xh, SystemChangeSourceSchema as xi, SessionsTitlePrepareParamsSchema as xl, WORKER_EXECUTION_CONTEXT_PROTOCOL_FEATURE as xm, NodePairApproveParamsSchema as xn, AgentWaitParamsSchema as xo, UiCommandResultSchema as xp, ExecApprovalGrantsRevokeParamsSchema as xr, SessionMemberAddParamsSchema as xs, SessionPlacementSchema as xt, ConnectParamsSchema as xu, validatePluginsCredentialsInspectParams as xv, SkillsSecurityVerdictsResultSchema as xx, UsersGitHubDisconnectParamsSchema as xy, WorktreesGcResultSchema as y, missingScopeErrorShape as yC, SecretsStoreDeleteParamsSchema as yS, PluginJsonValueSchema as y_, TalkSpeakParamsSchema as ya, WizardStatusParamsSchema as yb, SessionsCompanionStateParamsSchema as yc, SessionOwnerSessionCountSchema as yd, BoardSetChatDockCommandSchema as yf, TerminalSessionApprovalEventSchema as yg, WORKER_COMPUTER_PROTOCOL_FEATURE as yh, SystemChangeEntrySchema as yi, SessionsGoalMutationResultSchema as yl, WORKER_BUNDLE_PREWARM_VERSION as ym, NodeInvokeResultParamsSchema as yn, AgentIdentityResultSchema as yo, UiClosePaneCommandSchema as yp, ExecApprovalGrantsListParamsSchema as yr, SessionTypingParamsSchema as ys, SessionPlacementProtocolSchemas as yt, UsersMentionableParamsSchema as yu, PluginsCredentialsInspectParamsSchema as yv, SkillsSearchResultSchema as yx, UsersGitHubAuthorizeStartParamsSchema as yy, TaskSuggestionResolutionSchema as z, SessionParticipantSchema as zC, RuntimeTargetIssueSchema as zS, PluginsControlUiStatusResultSchema as z_, AUDIT_ACTIVITY_DIRECTIONS as za, ModelsAuthLogoutParamsSchema as zb, SessionsGroupsListResultSchema as zc, TranscriptsSummarizeParamsSchema as zd, BoardWidgetMcpAppContentSchema as zf, SessionCatalogLocatorSchema as zg, ApprovalAllowedReasonSchema as zh, ChannelsPairingApproveResultSchema as zi, ChatFinalEventSchema as zl, WORKER_TRANSCRIPT_MAX_CONTENT_PARTS as zm, HooksStatusParamsSchema as zn, MigrationsMemoryPlanParamsSchema as zo, SkillsLibrarySaveParamsSchema as zp, CronHistoryParamsSchema as zr, SessionBranchSchema as zs, QuestionRequestParamsSchema as zt, GatewaySuspendPrepareReadyResultSchema as zu, SessionGitHubOptionsParamsSchema as zv, ToolsGitHubAuthorizePollParamsSchema as zx, UsersMergeParamsSchema as zy };
|
|
16169
|
+
export { SystemInfoParamsSchema as $, GatewayErrorDetailsSchema as $C, ModelCatalogProviderOutcomeSchema as $S, ControlUiPluginWidgetKindSchema as $_, AuditActivityListResultSchema as $a, UsersSetRoleParamsSchema as $b, SessionsFilesAssetsResultSchema as $c, WorkerSessionToolResponseFrameSchema as $d, UpdateRunsListResultSchema as $f, ExternalPostApprovalScopeSchema as $g, validateWorkerGatewayToolInvokeParams as $h, ChannelsStatusResultSchema as $i, SessionsStorageStatusResultSchema as $l, ThemesSetParamsSchema as $m, DevicePairApproveParamsSchema as $n, MigrationsMemoryApplyParamsSchema as $o, BoardPromptAuthorizeParamsSchema as $p, CronScratchGetParamsSchema as $r, SessionPublicShareSchema as $s, QuestionStatusSchema as $t, GatewayFrameSchema as $u, PluginsUiDescriptorsParamsSchema as $v, USER_PREFS_PROFILE_KEY_LIMIT as $w, SkillsProposalEvaluateParamsSchema as $x, UserProfileGitHubIdentitySchema as $y, PortalCloseParamsSchema as A, EnvironmentsStatusParamsSchema as AC, ToolsGitHubAuthorizeIncorrectDeviceCodeResultSchema as AS, SessionCatalogDescriptorSchema as A_, WebLoginWaitParamsSchema as Aa, UsersListModelAccountsParamsSchema as Ab, SessionObserverPlanProgressSchema as Ac, WorkerLiveEventParamsSchema as Ad, ConfigApplyParamsSchema as Af, AllowedApprovalSnapshotSchema as Ag, SkillsProposalHistoryScanResultSchema as Ah, COMMAND_ARG_CHOICES_MAX_ITEMS as Ai, SessionsSendParamsSchema as Al, BoardWidgetPutResultSchema as Am, NodePendingDrainParamsSchema as An, ConversationListResultSchema as Ao, ProgressCardRefreshResultSchema as Ap, ExecApprovalsGetParamsSchema as Ar, isReactionEmoji as As, SessionsMoveParamsSchema as At, ChatStartupParamsSchema as Au, PluginsControlUiListParamsSchema as Av, SessionsActivitySummaryEnsureParamsSchema as Aw, GitHubIdentityFactsSchema as Ax, GitHubPublicationPublisherSchema as Ay, PluginApprovalRequestParamsSchema as B, WorkerEnvironmentMetadataSchema as BC, ToolsGitHubInheritConfigureParamsSchema as BS, SessionsCatalogContinueParamsSchema as B_, AuditRunInspectResultSchema as Ba, UsersPrefsChangedEventSchema as Bb, SessionsCleanupParamsSchema as Bc, WorkerTranscriptCommitResultSchema as Bd, UpdateHoldResultSchema as Bf, ApprovalHistoryParamsSchema as Bg, AgentToolSurfacePresentationSchema as Bh, CommandsListResultSchema as Bi, SessionsPatchParamsSchema as Bl, TALK_VOICE_CHANGE_TIMEOUT_MS as Bm, NodeSkillDescriptorSchema as Bn, SendParamsSchema as Bo, BoardChangedEventSchema as Bp, CronDeliveryPreviewSchema as Br, SessionSuggestionsResolveParamsSchema as Bs, QuestionListResultSchema as Bt, MAX_MENTIONABLE_USERS as Bu, PluginsListResultSchema as Bv, ChatSendSessionKeyString as Bw, ModelsProbeParamsSchema as Bx, SessionGitHubPublicationRequestedSchema as By, WorktreesRecoverRemovalResultSchema as C, EnvironmentsCreateResultSchema as CC, SkillsWorkshopReadParamsSchema as CS, TerminalOpenParamsSchema as C_, TalkSessionSteerParamsSchema as Ca, UsersLinkChannelIdentityResultSchema as Cb, SessionFilePreviewKindSchema as Cc, WorkerAdmissionResponseFrameSchema as Cd, GatewaySuspendResumeResultSchema as Cf, WORKER_TRANSCRIPT_MAX_CONTENT_PARTS as Cg, validateSkillsLibraryImportParams as Ch, SystemChangeEntrySchema as Ci, SessionsObserverVisibilityResultSchema as Cl, BoardWidgetNameSchema as Cm, NodeInvokeResultParamsSchema as Cn, AgentEventSchema as Co, PROGRESS_CARD_MAX_UTF8_BYTES as Cp, ExecApprovalGrantsListParamsSchema as Cr, MessageReactionSummarySchema as Cs, SessionPlacementProtocolSchemas as Ct, ChatMessageGetParamsSchema as Cu, PluginsCatalogCategoriesParamsSchema as Cv, SessionToolOverridesSchema as Cw, AgentsDeleteResultSchema as Cx, SESSION_COLOR_IDS as Cy, WorktreesRetireSnapshotParamsSchema as D, EnvironmentsListResultSchema as DC, ToolsGitHubAuthorizeCancelResultSchema as DS, TerminalUploadParamsSchema as D_, TtsSpeakParamsSchema as Da, UsersListAuthLinksResultSchema as Db, SessionNarrationEventSchema as Dc, WorkerHeartbeatResponseFrameSchema as Dd, GatewaySuspendStatusResultSchema as Df, WorkerProviderReplayStateSchema as Dg, validateSkillsLibrarySaveParams as Dh, SystemChangesListResultSchema as Di, SessionsResetParamsSchema as Dl, BoardWidgetPresentationSchema as Dm, NodePairRejectParamsSchema as Dn, AgentWaitParamsSchema as Do, ProgressCardPutParamsSchema as Dp, ExecApprovalRequestParamsSchema as Dr, SessionReactionsListResultSchema as Ds, SessionPlacementWorkerRuntimeInstallSchema as Dt, ChatRunStartupPhaseSchema as Du, PluginsChangedEventSchema as Dv, SessionProviderReviewProjectionSchema as Dw, AgentsUpdateResultSchema as Dx, normalizeSessionColorValue as Dy, WorktreesRestoreParamsSchema as E, EnvironmentsListParamsSchema as EC, ToolsGitHubAuthorizeCancelParamsSchema as ES, TerminalSessionInfoSchema as E_, TalkSpeakResultSchema as Ea, UsersListAuthLinksParamsSchema as Eb, SessionGroupSchema as Ec, WorkerHeartbeatRequestFrameSchema as Ed, GatewaySuspendStatusReadyResultSchema as Ef, WorkerProtocolCloseReasonSchema as Eg, validateSkillsLibraryReadParams as Eh, SystemChangesListParamsSchema as Ei, SessionsPreviewParamsSchema as El, BoardWidgetPluginPropsSchema as Em, NodePairListParamsSchema as En, AgentParamsSchema as Eo, ProgressCardGetResultSchema as Ep, ExecApprovalGrantsRevokeResultSchema as Er, SessionReactionsListParamsSchema as Es, SessionPlacementStateSchema as Et, ChatPendingInputsPageSchema as Eu, PluginsCatalogGetResultSchema as Ev, SessionVisibilitySchema as Ew, AgentsUpdateParamsSchema as Ex, SESSION_ICON_SVG_MAX_BYTES as Ey, PortalOpenResultSchema as F, WorkerDesktopAppIdSchema as FC, ToolsGitHubAuthorizeSlowDownResultSchema as FS, SessionCatalogSessionSchema as F_, AuditRunIdentityPresentV1Schema as Fa, UsersMergeResultSchema as Fb, SessionsAssignOwnerResultSchema as Fc, WorkerTranscriptCommitErrorReasonSchema as Fd, ConfigSchemaParamsSchema as Ff, ApprovalDecisionSchema as Fg, ComputerStatusParamsSchema as Fh, COMMAND_DESCRIPTION_MAX_LENGTH as Fi, SESSIONS_PATCH_MANY_MAX_TARGETS as Fl, CANVAS_DOCUMENT_PREVIEW_MAX_BYTES as Fm, NodePluginToolsUpdateParamsSchema as Fn, ConversationTurnParamsSchema as Fo, BOARD_CRON_TRIGGER_PREFIX as Fp, ExecApprovalsSnapshotSchema as Fr, SessionSuggestionStateSchema as Fs, isCloudWorkerPlacementState as Ft, LogsTailResultSchema as Fu, PluginsInspectParamsSchema as Fv, SessionParticipantSchema as Fw, ModelsAuthOrderSetParamsSchema as Fx, SessionGitHubOptionsResultSchema as Fy, TaskSuggestionsAcceptParamsSchema as G, WorkerOperatingSystemSchema as GC, ToolsInvokeParamsSchema as GS, SessionsCatalogListParamsSchema as G_, AUDIT_ACTIVITY_DIRECTIONS as Ga, UsersSelectModelAccountParamsSchema as Gb, SessionsCompanionResetResultSchema as Gc, WORKER_PORTAL_PROTOCOL_FEATURE as Gd, UpdateStatusParamsSchema as Gf, ApprovalResolveResultSchema as Gg, WorkerGatewayToolCancelResultSchema as Gh, ChannelsPairingCodeApproveResultSchema as Gi, WorktreePreservationReasonSchema as Gl, TalkVoiceSetParamsSchema as Gm, FsListDirParamsSchema as Gn, BackupStatusParamsSchema as Go, BoardDataReadParamsSchema as Gp, CronJobSchema as Gr, SessionMemberAddParamsSchema as Gs, QuestionRequestResultSchema as Gt, MentionsDismissParamsSchema as Gu, PluginsSearchParamsSchema as Gv, SecretInputSchema as Gw, SkillsBinsParamsSchema as Gx, PersonalGitHubAccountSchema as Gy, TaskSuggestionEventSchema as H, WorkerExecutionModeSchema as HC, ToolsGitHubStatusParamsSchema as HS, SessionsCatalogHostEventSchema as H_, DecisionReceiptV1Schema as Ha, UsersPrefsGetResultSchema as Hb, SessionsCompanionAskParamsSchema as Hc, WorkerTranscriptUserMessageSchema as Hd, UpdateReportResultSchema as Hf, ApprovalKindSchema as Hg, WORKER_GATEWAY_TOOL_METHODS as Hh, ChannelsPairingApproveParamsSchema as Hi, SessionsDeleteParamsSchema as Hl, TalkVoiceCompleteParamsSchema as Hm, NODE_PRESENCE_ALIVE_REASONS as Hn, BackupRunLocationSchema as Ho, BoardCommandEventSchema as Hp, CronGetParamsSchema as Hr, SessionTypingEventSchema as Hs, QuestionRecordSchema as Ht, MentionInboxItemSchema as Hu, PluginsRefreshResultSchema as Hv, GatewayClientModeSchema as Hw, ModelsProbeTargetResultSchema as Hx, SessionGitHubPublishParamsSchema as Hy, PortalSummarySchema as I, WorkerDesktopLaunchParamsSchema as IC, ToolsGitHubAuthorizeStartParamsSchema as IS, SessionCatalogShareRouteSchema as I_, AuditRunIdentityUnknownV1Schema as Ia, UsersPersonalFileGetParamsSchema as Ib, SessionsBranchesListParamsSchema as Ic, WorkerTranscriptCommitErrorShapeSchema as Id, ConfigSchemaResponseSchema as If, ApprovalDeniedReasonSchema as Ig, WORKER_COMPUTER_PROTOCOL_FEATURE as Ih, COMMAND_LIST_MAX_ITEMS as Ii, SessionsPatchManyParamsSchema as Il, CanvasDocumentPreviewParamsSchema as Im, NodePresenceActivityPayloadSchema as In, ConversationTurnReplySchema as Io, BOARD_DATA_BINDING_ID_MAX_LENGTH as Ip, CronAddJobResultSchema as Ir, SessionSuggestionsAddParamsSchema as Is, QuestionAnswersSchema as It, projectChatErrorDetail as Iu, PluginsInspectResultSchema as Iv, SessionPersonSchema as Iw, ModelsAuthRefreshParamsSchema as Ix, SessionGitHubPublicationFailedSchema as Iy, TaskSuggestionsCreateResultSchema as J, EnvironmentsSessionExecParamsSchema as JC, SkillsCuratorActionParamsSchema as JS, SessionsCatalogReadResultSchema as J_, AUDIT_ACTIVITY_STATUSES as Ja, UsersSelfResultSchema as Jb, SessionsCreateResultSchema as Jc, WORKER_SESSION_TOOL_MAX_TEXT_LENGTH as Jd, UpdateRunRecordSchema as Jf, ApprovalTerminalReasonSchema as Jg, WorkerGatewayToolResultSchema as Jh, ChannelsPairingListParamsSchema as Ji, SessionsGoalMutationResultSchema as Jl, ThemeModeSchema as Jm, DesktopObserveParamsSchema as Jn, StorageLocationsListResultSchema as Jo, BoardGetParamsSchema as Jp, CronPacingSchema as Jr, SessionMemberRemoveParamsSchema as Js, QuestionResolveResultSchema as Jt, UsersMentionableParamsSchema as Ju, PluginsSessionActionParamsSchema as Jv, Sha256String as Jw, SkillsInstallParamsSchema as Jx, UserChannelIdentityLinkSchema as Jy, TaskSuggestionsAcceptResultSchema as K, WorkerSlotSummarySchema as KC, ToolsInvokeResultSchema as KS, SessionsCatalogListResultSchema as K_, AUDIT_ACTIVITY_KINDS as Ka, UsersSelectModelAccountResultSchema as Kb, SessionsCompanionStateParamsSchema as Kc, WORKER_PRESENCE_PROTOCOL_FEATURE as Kd, UpdateStatusResultSchema as Kf, ApprovalScopeSchema as Kg, WorkerGatewayToolInvokeParamsSchema as Kh, ChannelsPairingDismissParamsSchema as Ki, SessionGoalSchema as Kl, TalkVoiceSetResultSchema as Km, FsListDirResultSchema as Kn, BackupStatusResultSchema as Ko, BoardEventParamsSchema as Kp, CronJobStateSchema as Kr, SessionMemberEvidenceSchema as Ks, QuestionRequestedEventSchema as Kt, MentionsListParamsSchema as Ku, PluginsSearchResultSchema as Kv, SecretRefSchema as Kw, SkillsBinsResultSchema as Kx, PersonalGitHubGenerationSchema as Ky, SessionPortalCloseParamsSchema as L, WorkerDesktopLaunchResultSchema as LC, ToolsGitHubAuthorizeStartResultSchema as LS, SessionCatalogTranscriptItemSchema as L_, AuditRunIdentityUnsupportedV1Schema as La, UsersPersonalFileGetResultSchema as Lb, SessionsBranchesListResultSchema as Lc, WorkerTranscriptCommitParamsSchema as Ld, ConfigSetParamsSchema as Lf, ApprovalExpiredReasonSchema as Lg, WorkerComputerParamsSchema as Lh, COMMAND_NAME_MAX_LENGTH as Li, SessionsPatchManyResultSchema as Ll, CanvasDocumentViewParamsSchema as Lm, NodePresenceAlivePayloadSchema as Ln, ConversationTurnResultSchema as Lo, BOARD_WIDGET_TOOL_MAX_LENGTH as Lp, CronAddParamsSchema as Lr, SessionSuggestionsAddResultSchema as Ls, QuestionGetParamsSchema as Lt, HumanMentionSchema as Lu, PluginsInstallParamsSchema as Lv, SessionClassificationSchema as Lw, ModelsAuthSetApiKeyParamsSchema as Lx, SessionGitHubPublicationNeedsConfirmationSchema as Ly, PortalListParamsSchema as M, RequiredNodeCommandSchema as MC, ToolsGitHubAuthorizePendingResultSchema as MS, SessionCatalogLocatorSchema as M_, AuditListParamsSchema as Ma, UsersListParamsSchema as Mb, SessionWorktreeInfoSchema as Mc, WorkerLiveEventResponseFrameSchema as Md, ConfigPatchParamsSchema as Mf, ApprovalAllowedReasonSchema as Mg, validateSkillsProposalHistoryScanParams as Mh, COMMAND_ARG_NAME_MAX_LENGTH as Mi, SessionsSearchHitSchema as Ml, BoardWidgetRemoveOpSchema as Mm, NodePendingEnqueueParamsSchema as Mn, ConversationSendResultSchema as Mo, ProgressCardStepSchema as Mp, ExecApprovalsNodeSetParamsSchema as Mr, SessionSuggestionEventSchema as Ms, SessionsReclaimParamsSchema as Mt, ChatToolTitlesParamsSchema as Mu, PluginsControlUiReportParamsSchema as Mv, SESSION_EXPANDED_PARTICIPANT_LIMIT as Mw, GitHubIdentitySourceSchema as Mx, GitHubPublicationTitleSchema as My, PortalListResultSchema as N, RequiredNodeCommandStateSchema as NC, ToolsGitHubAuthorizePollParamsSchema as NS, SessionCatalogPullRequestSummarySchema as N_, AuditListResultSchema as Na, UsersListResultSchema as Nb, SessionsAbortParamsSchema as Nc, WorkerLiveEventResultSchema as Nd, ConfigSchemaLookupParamsSchema as Nf, ApprovalCancelledReasonSchema as Ng, validateSkillsProposalHistoryStatusParams as Nh, COMMAND_CHOICE_LABEL_MAX_LENGTH as Ni, SessionsSearchParamsSchema as Nl, BoardWidgetResizeOpSchema as Nm, NodePendingEnqueueResultSchema as Nn, ConversationTurnCancelParamsSchema as No, ProgressCardStepStatusSchema as Np, ExecApprovalsNodeSnapshotSchema as Nr, SessionSuggestionResolutionSchema as Ns, SessionsReclaimResultPlacementSchema as Nt, ChatToolTitlesResultSchema as Nu, PluginsControlUiStatusParamsSchema as Nv, SESSION_PARTICIPANT_LIMIT as Nw, GitHubSelectedIdentitySchema as Nx, SessionGitHubConfirmParamsSchema as Ny, WorktreesRetireSnapshotResultSchema as O, EnvironmentsPrepareParamsSchema as OC, ToolsGitHubAuthorizeExpiredResultSchema as OS, TerminalUploadResultSchema as O_, TtsSpeakResultSchema as Oa, UsersListChannelIdentitiesParamsSchema as Ob, SessionObserverDigestSchema as Oc, WorkerLiveEventErrorDetailsSchema as Od, GatewaySuspendStatusRunningResultSchema as Of, checkWorkerProtocolJson as Og, validateSkillsLibraryUploadParams as Oh, COMMAND_ALIAS_MAX_ITEMS as Oi, SessionsRewindParamsSchema as Ol, BoardWidgetPutContentSchema as Om, NodePairRemoveParamsSchema as On, ConversationListItemSchema as Oo, ProgressCardPutResultSchema as Op, ExecApprovalResolveParamsSchema as Or, SessionReactionsSetParamsSchema as Os, SessionsDispatchParamsSchema as Ot, ChatSendIntentSchema as Ou, PluginsControlUiCatalogSchema as Ov, SessionsProviderReviewContinueParamsSchema as Ow, AuthProbeStatusSchema as Ox, normalizeSessionIconValue as Oy, PortalOpenParamsSchema as P, RuntimeTargetIssueSchema as PC, ToolsGitHubAuthorizePollResultSchema as PS, SessionCatalogSchema as P_, AuditRunIdentityAmbiguousV1Schema as Pa, UsersMergeParamsSchema as Pb, SessionsAssignOwnerParamsSchema as Pc, WorkerLiveEventSchema as Pd, ConfigSchemaLookupResultSchema as Pf, ApprovalChannelReviewerSchema as Pg, ComputerInvokeParamsSchema as Ph, COMMAND_CHOICE_VALUE_MAX_LENGTH as Pi, SessionsSearchResultSchema as Pl, BoardWidgetSchema as Pm, NodePluginToolDescriptorSchema as Pn, ConversationTurnCancelResultSchema as Po, BOARD_CRON_JOB_ID_MAX_LENGTH as Pp, ExecApprovalsSetParamsSchema as Pr, SessionSuggestionSchema as Ps, SessionsReclaimResultSchema as Pt, LogsTailParamsSchema as Pu, PluginsControlUiStatusResultSchema as Pv, SessionParticipantIdentitySchema as Pw, ModelsAuthLogoutParamsSchema as Px, SessionGitHubOptionsParamsSchema as Py, TaskSuggestionsListResultSchema as Q, CronJobNotFoundErrorDetailsSchema as QC, SkillsCuratorStatusResultSchema as QS, ControlUiPluginTabSchema as Q_, AuditActivityListParamsSchema as Qa, UsersSetDisplayNameResultSchema as Qb, SessionsFilesAssetsParamsSchema as Qc, WorkerPresenceResponseFrameSchema as Qd, UpdateRunsListParamsSchema as Qf, ExpiredApprovalSnapshotSchema as Qg, validateWorkerGatewayToolCancelParams as Qh, ChannelsStatusParamsSchema as Qi, SessionsStorageParamsSchema as Ql, ThemesListParamsSchema as Qm, DesktopSourceSchema as Qn, MigrationProtocolSchemas as Qo, BoardPluginActionParamsSchema as Qp, CronRunsParamsSchema as Qr, SessionMembersListResultSchema as Qs, QuestionSecretStoreExistingSchema as Qt, EventFrameSchema as Qu, PluginsSetEnabledResultSchema as Qv, USER_PREFS_ENTRY_LIMIT as Qw, SkillsProposalDecisionParamsSchema as Qx, UserProfileAvatarMimeSchema as Qy, SessionPortalListParamsSchema as R, WorkerDesktopObserveParamsSchema as RC, ToolsGitHubAuthorizeSuccessResultSchema as RS, SessionsCatalogArchiveParamsSchema as R_, AuditRunIdentityV1Schema as Ra, UsersPersonalFileSetParamsSchema as Rb, SessionsBranchesSwitchParamsSchema as Rc, WorkerTranscriptCommitRequestFrameSchema as Rd, UpdateAvailableSchema as Rf, ApprovalGetParamsSchema as Rg, WorkerComputerResponseFrameSchema as Rh, CommandEntrySchema as Ri, SessionsPatchManyTargetSchema as Rl, CanvasDocumentViewResultSchema as Rm, NodePresenceAliveReasonSchema as Rn, MessageActionParamsSchema as Ro, BoardActionParamsSchema as Rp, CronAddResultSchema as Rr, SessionSuggestionsListParamsSchema as Rs, QuestionGetResultSchema as Rt, HumanMentionsSchema as Ru, PluginsInstallResultSchema as Rv, SessionPeerKindSchema as Rw, ModelsAuthSetApiKeyResultSchema as Rx, SessionGitHubPublicationPublishedSchema as Ry, WorktreesRecoverRemovalParamsSchema as S, EnvironmentsCreateParamsSchema as SC, SkillsUploadCommitParamsSchema as SS, TerminalListResultSchema as S_, TalkSessionOkResultSchema as Sa, UsersLinkChannelIdentityParamsSchema as Sb, SessionFileKindSchema as Sc, WorkerAdmissionHandshakeSchema as Sd, GatewaySuspendResumeParamsSchema as Sf, WORKER_PUBLIC_INGRESS_PATH as Sg, validateSkillsLibraryActivateParams as Sh, SystemAgentWizardCancelSchema as Si, SessionsObserverVisibilityParamsSchema as Sl, BoardWidgetMoveOpSchema as Sm, NodeInvokeRequestEventSchema as Sn, AgentsFilesSetResultSchema as So, PROGRESS_CARD_MAX_STEP_UTF8_BYTES as Sp, ExecApprovalGetParamsSchema as Sr, RemoteProjectSchema as Ss, SessionPlacementMoveSchema as St, ChatInputReceiptsSchema as Su, PluginsCatalogBrowseResultSchema as Sv, SessionRowSchema as Sw, AgentsDeleteParamsSchema as Sx, SESSION_AGENT_ATTENTION_ICON_IDS as Sy, WorktreesRemoveResultSchema as T, EnvironmentsDestroyResultSchema as TC, ToolsGitHubAuthorizeAccessDeniedResultSchema as TS, TerminalResizeParamsSchema as T_, TalkSpeakParamsSchema as Ta, UsersLinkEmailResultSchema as Tb, SessionGroupDefaultsSchema as Tc, WorkerHeartbeatParamsSchema as Td, GatewaySuspendStatusParamsSchema as Tf, WorkerAdmissionFailureReasonSchema as Tg, validateSkillsLibraryMutateParams as Th, SystemChangeSourceSchema as Ti, SessionsPluginPatchResultSchema as Tl, BoardWidgetPluginKindSchema as Tm, NodePairApproveParamsSchema as Tn, AgentIdentityResultSchema as To, ProgressCardGetParamsSchema as Tp, ExecApprovalGrantsRevokeParamsSchema as Tr, SessionReactionMirrorSchema as Ts, SessionPlacementSchema as Tt, ChatMetadataParamsSchema as Tu, PluginsCatalogGetParamsSchema as Tv, SessionSharingRoleSchema as Tw, AgentsListResultSchema as Tx, SESSION_ICON_SVG_DATA_URL_PREFIX as Ty, TaskSuggestionResolutionSchema as U, WorkerMachineOptionSchema as UC, ToolsGitHubStatusResultSchema as US, SessionsCatalogImportParamsSchema as U_, ExecutionIdentityContextV1Schema as Ua, UsersPrefsSetParamsSchema as Ub, SessionsCompanionAskResultSchema as Uc, PlacedSessionsSendSchema as Ud, UpdateRunParamsSchema as Uf, ApprovalPresentationSchema as Ug, WorkerGatewayToolCancelParamsSchema as Uh, ChannelsPairingApproveResultSchema as Ui, SessionsDeleteResultSchema as Ul, TalkVoiceGetParamsSchema as Um, HooksStatusParamsSchema as Un, BackupRunRecordSchema as Uo, BoardCommandSchema as Up, CronHistoryParamsSchema as Ur, SessionTypingParamsSchema as Us, QuestionRequestParamsSchema as Ut, MentionableUserSchema as Uu, PluginsReloadParamsSchema as Uv, InputProvenanceSchema as Uw, SkillProposalEvaluationSchema as Ux, SessionGitHubStatusParamsSchema as Uy, PluginApprovalResolveParamsSchema as V, WorkerEnvironmentStateSchema as VC, ToolsGitHubManagedConfigureParamsSchema as VS, SessionsCatalogContinueResultSchema as V_, DecisionReceiptDisplayV1Schema as Va, UsersPrefsGetParamsSchema as Vb, SessionsCompactParamsSchema as Vc, WorkerTranscriptMessageSchema as Vd, UpdateReportParamsSchema as Vf, ApprovalHistoryResultSchema as Vg, WORKER_GATEWAY_TOOLS_PROTOCOL_FEATURE as Vh, TalkSessionAcknowledgeMarkParamsSchema as Vi, PreservedSessionWorktreeSchema as Vl, TalkVoiceChangeEventSchema as Vm, NodeSkillsUpdateParamsSchema as Vn, WakeParamsSchema as Vo, BoardChatDockSchema as Vp, CronDeliverySchema as Vr, SessionSuggestionsResolveResultSchema as Vs, QuestionOptionSchema as Vt, MENTION_INBOX_MAX_ITEMS as Vu, PluginsRefreshParamsSchema as Vv, GatewayClientIdSchema as Vw, ModelsProbeResultSchema as Vx, SessionGitHubPublicationResultSchema as Vy, TaskSuggestionSchema as W, WorkerMachineOptionsSchema as WC, ToolsInvokeErrorSchema as WS, SessionsCatalogImportResultSchema as W_, PrincipalRefV1Schema as Wa, UsersPrefsSetResultSchema as Wb, SessionsCompanionResetParamsSchema as Wc, PlacedSessionsSpawnSchema as Wd, UpdateScheduleStateSchema as Wf, ApprovalResolveParamsSchema as Wg, WorkerGatewayToolCancelResponseFrameSchema as Wh, ChannelsPairingCliListResultSchema as Wi, WORKTREE_PRESERVATION_REASONS as Wl, TalkVoiceSelectionSchema as Wm, FsDirEntrySchema as Wn, BackupRunRetentionSchema as Wo, BoardCronActionParamsSchema as Wp, CronHistoryResultSchema as Wr, SessionTypingResultSchema as Ws, QuestionRequestQuestionSchema as Wt, MentionsChangedEventSchema as Wu, PluginsReloadResultSchema as Wv, NonEmptyString as Ww, SkillProposalLifecycleEventSchema as Wx, SessionGitHubStatusResultSchema as Wy, TaskSuggestionsDismissResultSchema as X, EnvironmentsSessionDestroyParamsSchema as XC, SkillsCuratorLiveStatusResultSchema as XS, SessionsCatalogStartTerminalResultSchema as X_, AuditActivityEventV1Schema as Xa, UsersSetAvatarResultSchema as Xb, SessionsDiffParamsSchema as Xc, WorkerPortalResponseFrameSchema as Xd, UpdateRunsGetParamsSchema as Xf, DeniedApprovalSnapshotSchema as Xg, WorkerToolSurfaceSchema as Xh, ChannelsLogoutParamsSchema as Xi, SessionsTitlePrepareParamsSchema as Xl, ThemesGetParamsSchema as Xm, DesktopReleaseParamsSchema as Xn, StorageLocationsProbeResultSchema as Xo, BoardMcpAppDescriptorSchema as Xp, CronRunLogEntrySchema as Xr, SessionMembersListEvidenceResultSchema as Xs, QuestionSchema as Xt, ConnectParamsSchema as Xu, PluginsSessionActionSuccessResultSchema as Xv, GATEWAY_OWNER_PROFILE_ID as Xw, SkillsProposalApplyResultSchema as Xx, UserModelAccountSchema as Xy, TaskSuggestionsDismissParamsSchema as Y, EnvironmentsSessionCreateParamsSchema as YC, SkillsCuratorActionResultSchema as YS, SessionsCatalogStartTerminalParamsSchema as Y_, AuditActivityAgentRunV1Schema as Ya, UsersSetAvatarParamsSchema as Yb, SessionsDescribeParamsSchema as Yc, WorkerPortalParamsSchema as Yd, UpdateRunResultSchema as Yf, CancelledApprovalSnapshotSchema as Yg, WorkerGatewayToolUpdateFrameSchema as Yh, ChannelsPairingListResultSchema as Yi, SessionsGoalUpdateParamsSchema as Yl, ThemePaletteSchema as Ym, DesktopObserveResultSchema as Yn, StorageLocationsProbeParamsSchema as Yo, BoardLegacyEventParamsSchema as Yp, CronRemoveParamsSchema as Yr, SessionMemberSchema as Ys, QuestionResolvedEventSchema as Yt, UsersMentionableResultSchema as Yu, PluginsSessionActionResultSchema as Yv, UserProfileIdSchema as Yw, SkillsProposalActionParamsSchema as Yx, UserChannelIdentitySchema as Yy, TaskSuggestionsListParamsSchema as Z, EnvironmentsSessionStatusParamsSchema as ZC, SkillsCuratorStatusParamsSchema as ZS, CapabilityConsentErrorDetailsSchema as Z_, AuditActivityInboundMessageV1Schema as Za, UsersSetDisplayNameParamsSchema as Zb, SessionsDiffResultSchema as Zc, WorkerPresenceParamsSchema as Zd, UpdateRunsGetResultSchema as Zf, ExecApprovalPresentationSchema as Zg, isWorkerGatewayToolFrameWithinBudget as Zh, ChannelsStartParamsSchema as Zi, SessionsTitlePrepareResultSchema as Zl, ThemesImportParamsSchema as Zm, DesktopReleaseResultSchema as Zn, MAX_MEMORY_MIGRATION_ITEMS as Zo, BoardOpSchema as Zp, CronRunParamsSchema as Zr, SessionMembersListParamsSchema as Zs, QuestionSecretStoreBindingSchema as Zt, ErrorShapeSchema as Zu, PluginsSetEnabledParamsSchema as Zv, GIT_COAUTHOR_PREFERENCE_KEY as Zw, SkillsProposalCreateParamsSchema as Zx, UserProfileAuthLinkSchema as Zy, WorktreesCreateParamsSchema as _, SecretsStoreMutationResultSchema as _C, SkillsSkillCardResultSchema as _S, TerminalCloseParamsSchema as __, TalkSessionCancelOutputParamsSchema as _a, UsersGitHubDisconnectResultSchema as _b, SessionDiffScopeSchema as _c, WORKER_PROTOCOL_MAX_METHOD_LENGTH as _d, GatewaySuspendPrepareBusyResultSchema as _f, validateWorkerInferenceTerminalOutcome as _g, SkillsLibraryListParamsSchema as _h, SystemAgentSetupAuthStartResultSchema as _i, SessionsGroupsRenameParamsSchema as _l, BoardWidgetGrantParamsSchema as _m, NodeHostStatsPayloadSchema as _n, AgentsFilesGetParamsSchema as _o, TranscriptsListResultSchema as _p, ScopeUpgradeRegistrationSchema as _r, ProjectsRegisterResultSchema as _s, SessionMovePlacementStateSchema as _t, ChatHistoryDeltaResultSchema as _u, PluginRuntimeStatusSchema as _v, SessionCreatedActorSchema as _w, AgentKindSchema as _x, ControlUiLinkReaderDescriptorSchema as _y, ToolsCatalogParamsSchema as a, SkillsDetailResultSchema as aC, SkillsProposalRecordResultSchema as aS, PluginApprovalPresentationSchema as a_, TalkClientCreateParamsSchema as aa, UsersAuthConnectResultSchema as ab, SessionSharingIdentitySchema as ac, NODE_WORKER_IDLE_RETENTION_PROTOCOL_FEATURE as ad, PresenceDeviceSchema as af, WORKER_PROTOCOL_MAX_INFERENCE_PAYLOAD_BYTES as ag, UiNavigateCommandSchema as ah, CronUpdateParamsSchema as ai, SessionsFilesRevealResultSchema as al, BoardTabIdSchema as am, WebPushDevicePreferencesSchema as an, ArtifactsDownloadResultSchema as ao, TRANSCRIPTS_LEGACY_RESULT_MAX_BYTES as ap, DevicePairResolvedEventSchema as ar, ProjectDefaultRepositorySchema as as, SessionsResolveParamsSchema as at, SessionsRecoverResultSchema as au, PluginControlUiDescriptorSchema as av, SessionWorkspaceRecoveryRequiredErrorDetailsSchema as aw, UI_APPEARANCE_PREFERENCE_KEYS as ax, PluginDecisionProviderStatusSchema as ay, WorktreesListParamsSchema as b, EnvironmentStatusSchema as bC, SkillsUploadBeginParamsSchema as bS, TerminalExitEventSchema as b_, TalkSessionCreateParamsSchema as ba, UsersLinkAuthProfileParamsSchema as bb, SessionFileContentEncodingSchema as bc, WORKER_TRANSCRIPT_COMMIT_PROTOCOL_FEATURE as bd, GatewaySuspendPrepareReadyResultSchema as bf, WORKER_PROTOCOL_MAX_PAYLOAD_BYTES as bg, SkillsLibrarySaveParamsSchema as bh, SystemAgentSetupVerifyParamsSchema as bi, SessionsMessagesSubscribeParamsSchema as bl, BoardWidgetMcpAppContentSchema as bm, NodeInvokeParamsSchema as bn, AgentsFilesListResultSchema as bo, TranscriptsSummarizeParamsSchema as bp, ScopeUpgradeResultSchema as br, ProjectsSearchRemoteParamsSchema as bs, SessionPlacementDiskSpaceSchema as bt, ChatInjectParamsSchema as bu, PluginUiCapabilitySchema as bv, SessionOwnerSchema as bw, AgentsCreateParamsSchema as bx, validatePluginUiCapabilities as by, ToolsEffectiveGroupSchema as c, SecretStoreEnvEntrySchema as cC, SkillsProposalReviseParamsSchema as cS, SessionApprovalReplaySchema as c_, TalkClientSteerParamsSchema as ca, UsersAuthConnectStatusParamsSchema as cb, SESSIONS_FILES_ASSETS_MAX_REFS as cc, WORKER_EXECUTION_CONTEXT_PROTOCOL_FEATURE as cd, PresenceQueryParamsSchema as cf, WorkerInferenceImageContentSchema as cg, UiSplitCommandSchema as ch, SystemAgentChatHistoryTurnSchema as ci, SessionsForkParamsSchema as cl, BoardTabsReorderOpSchema as cm, WebPushPreferencesGetParamsSchema as cn, ArtifactsListParamsSchema as co, TRANSCRIPTS_PAGE_MAX as cp, DevicePairSetupCompletedEventSchema as cr, ProjectRecentRepositorySchema as cs, SessionDiscussionInfoResultSchema as ct, ChatAbortedEventSchema as cu, PluginDeclaredSurfaceWideningSchema as cv, TaskWorktreeSourceRequiredErrorDetailsSchema as cw, WizardAnswerSchema as cx, PluginInspectSourceSchema as cy, ToolsEffectiveResultSchema as d, SecretsResolveAssignmentSchema as dC, SkillsProposalsListResultSchema as dS, TerminalApprovalSnapshotSchema as d_, TalkClientTranscriptParamsSchema as da, UsersGitHubAuthorizeCancelResultSchema as db, SESSION_OBSERVER_HEALTH_VALUES as dc, WORKER_LINEAGE_START_PROTOCOL_FEATURE as dd, PresenceEntrySchema as df, WorkerInferenceStartRequestFrameSchema as dg, SKILL_LIBRARY_MAX_FILE_BYTES as dh, SystemAgentChatResultSchema as di, SessionsGroupsDefaultsResultSchema as dl, BoardViewTicketSchema as dm, WebPushTestParamsSchema as dn, AgentsWorkspaceFileSchema as do, TranscriptUtteranceSchema as dp, DevicePairSetupStatusResultSchema as dr, ProjectSummarySchema as ds, SessionDiscussionOpenResultSchema as dt, ChatDeltaEventSchema as du, PluginDiscoveryDetailSchema as dv, WizardNotFoundErrorDetailsSchema as dw, WizardNextResultSchema as dx, PluginOperatorGrantsSchema as dy, ModelChoiceSchema as eC, SkillsProposalEvaluateResultSchema as eS, USER_PREFS_VALUE_BYTES as eT, MessageSendApprovalScopeSchema as e_, ChannelsStopParamsSchema as ea, UserProfileSchema as eb, SessionPublicShareSetParamsSchema as ec, HelloOkSchema as ed, WorkerSessionToolResultSchema as ef, validateWorkerGatewayToolUpdateFrame as eg, UiClosePaneCommandSchema as eh, CronScratchGetResultSchema as ei, SessionsFilesGetParamsSchema as el, BoardSetChatDockCommandSchema as em, QuestionWaitAnswerParamsSchema as en, AuditActivityOutboundMessageV1Schema as eo, SessionOwnerSessionCountSchema as ep, DevicePairListParamsSchema as er, MigrationsMemoryPlanParamsSchema as es, SystemInfoResultSchema as et, SessionsSetInvolvementParamsSchema as eu, MAX_PLUGIN_RELOAD_TARGETS as ev, GitHubPublicationSelectionRejectedErrorDetailsSchema as ew, UsersSetRoleResultSchema as ex, PluginsUiDescriptorsResultSchema as ey, WorktreeBranchSchema as f, SecretsResolveParamsSchema as fC, SkillsSearchParamsSchema as fS, TerminalSessionApprovalEventSchema as f_, TalkConfigParamsSchema as fa, UsersGitHubAuthorizePollParamsSchema as fb, SessionBranchSchema as fc, WORKER_LIVE_EVENT_PROTOCOL_FEATURE as fd, SnapshotSchema as ff, WorkerInferenceStartResponseFrameSchema as fg, SKILL_LIBRARY_MAX_SELECTIONS as fh, SystemAgentSetupActivateParamsSchema as fi, SessionsGroupsDeleteParamsSchema as fl, BoardWidgetAppViewParamsSchema as fm, WebPushUnsubscribeParamsSchema as fn, AgentsWorkspaceGetParamsSchema as fo, TranscriptsExportParamsSchema as fp, DeviceTokenRevokeParamsSchema as fr, ProjectsAddParamsSchema as fs, SessionDiscussionStateSchema as ft, ChatErrorEventSchema as fu, PluginDiscoveryEntrySchema as fv, buildMissingScopeErrorDetails as fw, WizardStartParamsSchema as fx, PluginCredentialDescriptorSchema as fy, WorktreesBranchesResultSchema as g, SecretsStoreListResultSchema as gC, SkillsSkillCardParamsSchema as gS, TerminalAttachResultSchema as g_, TalkSessionAppendAudioParamsSchema as ga, UsersGitHubDisconnectParamsSchema as gb, SessionDiffFileStatusSchema as gc, WORKER_PROTOCOL_MAX_FEATURE_LENGTH as gd, GatewaySuspendHandoffResultSchema as gf, validateWorkerInferenceTerminalFrame as gg, SkillsLibraryImportParamsSchema as gh, SystemAgentSetupAuthStartParamsSchema as gi, SessionsGroupsPutParamsSchema as gl, BoardWidgetGeneratedIdentitySchema as gm, NodeEventResultSchema as gn, AgentsFileEntrySchema as go, TranscriptsListParamsSchema as gp, ScopeUpgradeExpiredSchema as gr, ProjectsRegisterParamsSchema as gs, SessionMovePlacementSchema as gt, ChatHistoryCursorResultSchema as gu, PluginRuntimeApplicationSchema as gv, SessionConversationLinkSchema as gw, WizardStepSchema as gx, validatePluginsCredentialsInspectParams as gy, WorktreesBranchesParamsSchema as h, SecretsStoreListParamsSchema as hC, SkillsSecurityVerdictsResultSchema as hS, TerminalAttachParamsSchema as h_, TalkModeParamsSchema as ha, UsersGitHubAuthorizeStartResultSchema as hb, SessionDiffFileSchema as hc, WORKER_PROTOCOL_MAX_FEATURES as hd, GatewaySuspendHandoffParamsSchema as hf, validateWorkerInferenceStartParams as hg, SkillsLibraryActivateParamsSchema as hh, SystemAgentSetupActivateStartResultSchema as hi, SessionsGroupsMutationResultSchema as hl, BoardWidgetDeclaredSchema as hm, NodeEventParamsSchema as hn, AgentsWorkspaceListResultSchema as ho, TranscriptsGetResultSchema as hp, ScopeUpgradeApprovedSchema as hr, ProjectsListResultSchema as hs, SessionMoveGatewayTargetSchema as ht, ChatHistoryActivitySchema as hu, PluginReloadTargetSchema as hv, SessionAncestorRefSchema as hw, WizardStatusResultSchema as hx, PluginsCredentialsInspectResultSchema as hy, ToolCatalogProfileSchema as i, ChatAccountSelectionSchema as iC, SkillsProposalInspectResultSchema as iS, PluginApprovalExternalResolutionSchema as i_, TalkClientCloseParamsSchema as ia, UsersAuthConnectCatalogResultSchema as ib, SessionSharingEvidenceEventSchema as ic, TickEventSchema as id, WorkerSessionsSpawnResponseFrameSchema as if, WORKER_INFERENCE_PROTOCOL_FEATURE as ig, UiFocusCommandSchema as ih, CronStatusParamsSchema as ii, SessionsFilesRevealParamsSchema as il, BoardTabDeleteOpSchema as im, WebPushDetailLevelSchema as in, ArtifactsDownloadParamsSchema as io, TRANSCRIPTS_LEGACY_MAX_UTTERANCES as ip, DevicePairRequestedEventSchema as ir, ProjectCheckoutSchema as is, SessionsResolveCandidateSchema as it, SessionsRecoverParamsSchema as iu, PluginCatalogOfficialInstallSchema as iv, ProjectCloneErrorDetailsSchema as iw, UsersUnlinkChannelIdentityResultSchema as ix, PluginsInstallProgressEventSchema as iy, PortalCloseResultSchema as j, EnvironmentsStatusResultSchema as jC, ToolsGitHubAuthorizeNetworkErrorResultSchema as jS, SessionCatalogHostSchema as j_, AuditEventSchema as ja, UsersListModelAccountsResultSchema as jb, SessionOperationEventSchema as jc, WorkerLiveEventRequestFrameSchema as jd, ConfigGetParamsSchema as jf, ApprovalAllowDecisionSchema as jg, SkillsProposalHistoryStatusParamsSchema as jh, COMMAND_ARG_DESCRIPTION_MAX_LENGTH as ji, SessionsUsageParamsSchema as jl, BoardWidgetRegisteredContentSchema as jm, NodePendingDrainResultSchema as jn, ConversationSendParamsSchema as jo, ProgressCardSchema as jp, ExecApprovalsNodeGetParamsSchema as jr, SessionSuggestionActionSchema as js, SessionsMoveResultSchema as jt, ChatStatusEventSchema as ju, PluginsControlUiReloadParamsSchema as jv, SessionsActivitySummaryEnsureResultSchema as jw, GitHubIdentityScopeSchema as jx, GitHubPublicationSelectionSchema as jy, PortalChangedEventSchema as k, EnvironmentsPrepareResultSchema as kC, ToolsGitHubAuthorizeFailedResultSchema as kS, SessionCatalogCapabilitiesSchema as k_, WebLoginStartParamsSchema as ka, UsersListChannelIdentitiesResultSchema as kb, SessionObserverHealthSchema as kc, WorkerLiveEventErrorShapeSchema as kd, GatewaySuspensionSchema as kf, formatValidationErrors as kg, SkillsProposalHistoryScanParamsSchema as kh, COMMAND_ARGS_MAX_ITEMS as ki, SessionsRewindResultSchema as kl, BoardWidgetPutParamsSchema as km, NodePendingAckParamsSchema as kn, ConversationListParamsSchema as ko, ProgressCardRefreshParamsSchema as kp, ExecApprovalStandingGrantSchema as kr, SessionReactionsSetResultSchema as ks, SessionsDispatchResultSchema as kt, ChatSendParamsSchema as ku, PluginsControlUiChangedEventSchema as kv, SessionActivitySummarySchema as kw, GitHubAuthorSchema as kx, GitHubPublicationBodySchema as ky, ToolsEffectiveNoticeSchema as l, SecretStoreSecretEntrySchema as lC, SkillsProposalUpdateParamsSchema as lS, StandingGrantApprovalScopeSchema as l_, TalkClientToolCallParamsSchema as la, UsersAuthConnectStatusResultSchema as lb, SESSIONS_FILES_ASSETS_MAX_TOTAL_BYTES as lc, WORKER_HEARTBEAT_INTERVAL_MS as ld, PresenceQueryResultSchema as lf, WorkerInferenceModelRefSchema as lg, SKILL_LIBRARY_MAX_BUNDLE_BYTES as lh, SystemAgentChatParamsSchema as li, SessionsForkResultSchema as ll, BoardTicketEventParamsSchema as lm, WebPushPreferencesSetParamsSchema as ln, ArtifactsListResultSchema as lo, TRANSCRIPTS_RESULT_MAX_BYTES as lp, DevicePairSetupDeliveryUncertainEventSchema as lr, ProjectRecentSchema as ls, SessionDiscussionInfoSchema as lt, ChatAttachmentSchema as lu, PluginDiscoveryCatalogFactsSchema as lv, UnknownAgentIdErrorDetailsSchema as lw, WizardCancelParamsSchema as lx, PluginInstallTrustSchema as ly, WorktreeRepositoryStatusSchema as m, SecretsStoreDeleteParamsSchema as mC, SkillsSecurityVerdictsParamsSchema as mS, TerminalAckResultSchema as m_, TalkEventSchema as ma, UsersGitHubAuthorizeStartParamsSchema as mb, SessionDiffCommitSchema as mc, WORKER_PROTOCOL_FEATURES as md, GatewaySuspendBlockerSchema as mf, validateWorkerInferenceEventFrame as mg, SkillLibrarySelectionSchema as mh, SystemAgentSetupActivateStartParamsSchema as mi, SessionsGroupsListResultSchema as ml, BoardWidgetContentSchema as mm, NodeDescribeParamsSchema as mn, AgentsWorkspaceListParamsSchema as mo, TranscriptsGetParamsSchema as mp, DeviceTokenRotateResultSchema as mr, ProjectsListParamsSchema as ms, SessionMoveExpectedSourceSchema as mt, ChatFinalEventSchema as mu, PluginJsonValueSchema as mv, missingScopeErrorShape as mw, WizardStatusParamsSchema as mx, PluginsCredentialsInspectParamsSchema as my, ToolCatalogEntrySchema as n, ModelsListParamsSchema as nC, SkillsProposalEventsListResultSchema as nS, closedObject as nT, PendingApprovalSnapshotSchema as n_, TalkCatalogParamsSchema as na, UsersAuthConnectCancelParamsSchema as nb, SessionSharingActionSchema as nc, ResponseFrameSchema as nd, WorkerSessionsSendResponseFrameSchema as nf, WORKER_INFERENCE_MAX_OUTPUT_TOKENS as ng, UiCommandResultSchema as nh, CronScratchSetParamsSchema as ni, SessionsFilesListParamsSchema as nl, BoardSnapshotSchema as nm, PushTestParamsSchema as nn, findAuditActivityFilterConflict as no, TRANSCRIPTS_EXPORT_MAX_BYTES as np, DevicePairRemoveParamsSchema as nr, PROJECTS_LIST_MAX_CHECKOUTS_PER_PROJECT as ns, SessionsViewerPresenceSetParamsSchema as nt, SESSION_CREATE_RETRY_WINDOW_MS as nu, PluginCatalogEntrySchema as nv, MissingScopeErrorDetailsSchema as nw, UsersUnlinkAuthProfileResultSchema as nx, PluginsUninstallResultSchema as ny, ToolsCatalogResultSchema as o, GitHubSetupHandleSchema as oC, SkillsProposalRequestRevisionParamsSchema as oS, PluginApprovalSeveritySchema as o_, TalkClientCreateResultSchema as oa, UsersAuthConnectStartParamsSchema as ob, SessionVisibilitySetParamsSchema as oc, WORKER_BUNDLE_PREWARM_VERSION as od, PresenceLocationSchema as of, WorkerInferenceCancelRequestFrameSchema as og, UiPanelCommandSchema as oh, SystemAgentChatHistoryParamsSchema as oi, SessionsFilesSetParamsSchema as ol, BoardTabSchema as om, WebPushNotificationCategorySchema as on, ArtifactsGetParamsSchema as oo, TRANSCRIPTS_LIST_MAX as op, DevicePairSetupCodeParamsSchema as or, ProjectRecentFolderSchema as os, SessionsResolveResultSchema as ot, AgentActivityItemSchema as ou, PluginControlUiDiagnosticSchema as ov, SetupAdmissionBusyErrorDetailsSchema as ow, normalizeUiAppearancePreference as ox, PluginDeclaredSurfaceSchema as oy, WorktreeRecordSchema as p, SecretsResolveResultSchema as pC, SkillsSearchResultSchema as pS, isWellFormedApprovalId as p_, TalkConfigResultSchema as pa, UsersGitHubAuthorizePollResultSchema as pb, SessionCompanionExchangeSchema as pc, WORKER_NATIVE_PROCESS_OWNER_PROTOCOL_FEATURE as pd, StateVersionSchema as pf, validateWorkerInferenceCancelParams as pg, SkillLibraryFileSchema as ph, SystemAgentSetupActivateResultSchema as pi, SessionsGroupsListParamsSchema as pl, BoardWidgetAppViewResultSchema as pm, WebPushVapidPublicKeyParamsSchema as pn, AgentsWorkspaceGetResultSchema as po, TranscriptsExportResultSchema as pp, DeviceTokenRotateParamsSchema as pr, ProjectsAddResultSchema as ps, SessionMoveDeviceTargetSchema as pt, ChatEventSchema as pu, PluginDiscoveryLocalFactsSchema as pv, errorShape as pw, WizardStartResultSchema as px, PluginCredentialInspectionSchema as py, TaskSuggestionsCreateParamsSchema as q, WorkerTunnelStatusSchema as qC, SkillCuratorLiveEntrySchema as qS, SessionsCatalogReadParamsSchema as q_, AUDIT_ACTIVITY_MESSAGE_KIND as qa, UsersSelfParamsSchema as qb, SessionsCompanionStateResultSchema as qc, WORKER_SESSION_TOOLS_PROTOCOL_FEATURE as qd, UpdateRunChangedEventSchema as qf, ApprovalSnapshotSchema as qg, WorkerGatewayToolResponseFrameSchema as qh, ChannelsPairingDismissResultSchema as qi, SessionsGoalClearParamsSchema as ql, ThemeDefinitionSchema as qm, DesktopLaunchParamsSchema as qn, StorageLocationsListParamsSchema as qo, BoardFocusTabCommandSchema as qp, CronListParamsSchema as qr, SessionMemberMutationResultSchema as qs, QuestionResolveParamsSchema as qt, MentionsListResultSchema as qu, PluginsSessionActionFailureResultSchema as qv, SessionLabelString as qw, SkillsDetailParamsSchema as qx, PersonalGitHubStatusSchema as qy, ToolCatalogGroupSchema as r, ModelsListResultSchema as rC, SkillsProposalInspectParamsSchema as rS, PendingSessionApprovalEventSchema as r_, TalkCatalogResultSchema as ra, UsersAuthConnectCatalogParamsSchema as rb, SessionSharingEventSchema as rc, ShutdownEventSchema as rd, WorkerSessionsSpawnParamsSchema as rf, WORKER_INFERENCE_METHODS as rg, UiCommandSchema as rh, CronScratchSetResultSchema as ri, SessionsFilesListResultSchema as rl, BoardTabCreateOpSchema as rm, PushTestResultSchema as rn, ArtifactSummarySchema as ro, TRANSCRIPTS_LEGACY_MAX_TEXT_LENGTH as rp, DevicePairRenameParamsSchema as rr, PROJECTS_LIST_MAX_IDENTITY_PROBES as rs, SessionsViewerPresenceSetResultSchema as rt, SessionsCreateParamsSchema as ru, PluginCatalogInstallActionSchema as rv, OutboundDeliveryQueuedErrorDetailsSchema as rw, UsersUnlinkChannelIdentityParamsSchema as rx, PluginInstallActivitySchema as ry, ToolsEffectiveEntrySchema as s, SecretStoreEntrySchema as sC, SkillsProposalRequestRevisionResultSchema as sS, SessionApprovalEventSchema as s_, TalkClientMutationResultSchema as sa, UsersAuthConnectStartResultSchema as sb, SessionVisibilitySetResultSchema as sc, WORKER_EXECUTION_AUTHORITY_PROTOCOL_FEATURE as sd, PresencePersonSchema as sf, WorkerInferenceCancelResponseFrameSchema as sg, UiSidebarCommandSchema as sh, SystemAgentChatHistoryResultSchema as si, SessionsFilesSetResultSchema as sl, BoardTabUpdateOpSchema as sm, WebPushNotificationPreferencesSchema as sn, ArtifactsGetResultSchema as so, TRANSCRIPTS_PAGE_DEFAULT as sp, DevicePairSetupCodeResultSchema as sr, ProjectRecentProjectSchema as ss, SessionDiscussionInfoParamsSchema as st, ChatAbortParamsSchema as su, PluginControlUiModuleSchema as sv, SkillProposalRevisionChangedErrorDetailsSchema as sw, McpAuthLoginParamsSchema as sx, PluginHookGrantSchema as sy, ToolAccessDiagnosticsSchema as t, ModelRuntimeChoiceSchema as tC, SkillsProposalEventsListParamsSchema as tS, isGitCoauthorCreditEnabled as tT, PaymentApprovalScopeSchema as t_, TalkAgentControlResultSchema as ta, UsersAuthConnectAnswerParamsSchema as tb, SessionPublicShareSetResultSchema as tc, RequestFrameSchema as td, WorkerSessionsSendParamsSchema as tf, WORKER_INFERENCE_MAX_CONTEXT_MESSAGES as tg, UiCommandParamsSchema as th, CronScratchSchema as ti, SessionsFilesGetResultSchema as tl, BoardSizeSchema as tm, QuestionWaitAnswerResultSchema as tn, AuditActivityToolActionV1Schema as to, SessionsListParamsSchema as tp, DevicePairRejectParamsSchema as tr, PROJECTS_LIST_DEFAULT_LIMIT as ts, SESSION_VIEWER_PRESENCE_MAX_KEYS as tt, SESSION_CREATE_IDEMPOTENCY_RETENTION_MS as tu, PluginCatalogClawHubInstallSchema as tv, McpAppViewExpiredErrorDetailsSchema as tw, UsersUnlinkAuthProfileParamsSchema as tx, PluginsUninstallParamsSchema as ty, ToolsEffectiveParamsSchema as u, SecretsReloadParamsSchema as uC, SkillsProposalsListParamsSchema as uS, SystemAgentApprovalPresentationSchema as u_, TalkClientToolCallResultSchema as ua, UsersGitHubAuthorizeCancelParamsSchema as ub, SESSIONS_FILES_ASSET_MAX_BYTES as uc, WORKER_LAUNCH_V2_PROTOCOL_FEATURE as ud, validatePresenceActivityParams as uf, WorkerInferenceOptionsSchema as ug, SKILL_LIBRARY_MAX_FILES as uh, SystemAgentChatQuestionSchema as ui, SessionsGroupsDefaultsParamsSchema as ul, BoardUpdateParamsSchema as um, WebPushSubscribeParamsSchema as un, AgentsWorkspaceEntrySchema as uo, TranscriptSessionSummarySchema as up, DevicePairSetupStatusParamsSchema as ur, ProjectRecordSchema as us, SessionDiscussionOpenParamsSchema as ut, ChatAttachmentsSchema as uu, PluginDiscoveryCategorySchema as uv, UserPrefsLimitExceededErrorDetailsSchema as uw, WizardNextParamsSchema as ux, PluginInstalledComponentsSchema as uy, WorktreesGcParamsSchema as v, SecretsStoreSetParamsSchema as vC, SkillsStatusParamsSchema as vS, TerminalDataEventSchema as v_, TalkSessionCancelOutputResultSchema as va, UsersGitHubStatusParamsSchema as vb, SessionFileBrowserEntrySchema as vc, WORKER_PROTOCOL_METHODS as vd, GatewaySuspendPrepareDrainingResultSchema as vf, WORKER_PROTOCOL_MAX_FRAME_ID_LENGTH as vg, SkillsLibraryMutateParamsSchema as vh, SystemAgentSetupDetectParamsSchema as vi, SessionsGroupsUpdateParamsSchema as vl, BoardWidgetHeightModeSchema as vm, NodeInvokeCancelEventSchema as vn, AgentsFilesGetResultSchema as vo, TranscriptsStatusParamsSchema as vp, ScopeUpgradeRejectedSchema as vr, ProjectsRemoveParamsSchema as vs, SessionMoveProfileTargetSchema as vt, ChatHistoryParamsSchema as vu, PluginSearchPackageSchema as vv, SessionEntryArchiveReasonSchema as vw, AgentOwnershipSchema as vx, ControlUiLinkReaderMetadataSchema as vy, WorktreesRemoveParamsSchema as w, EnvironmentsDestroyParamsSchema as wC, SkillsWorkshopReadResultSchema as wS, TerminalOpenResultSchema as w_, TalkSessionSubmitToolResultParamsSchema as wa, UsersLinkEmailParamsSchema as wb, SessionFileRelevanceSchema as wc, WorkerConnectRequestFrameSchema as wd, GatewaySuspendStatusDrainingResultSchema as wf, WORKER_TRANSCRIPT_MAX_JSON_DEPTH as wg, validateSkillsLibraryListParams as wh, SystemChangeKindSchema as wi, SessionsPluginPatchParamsSchema as wl, BoardWidgetPluginContentSchema as wm, NodeListParamsSchema as wn, AgentIdentityParamsSchema as wo, ProgressCardChangedEventSchema as wp, ExecApprovalGrantsListResultSchema as wr, SessionReactionEventSchema as ws, SessionPlacementRunnerSchema as wt, ChatMessageGetResultSchema as wu, PluginsCatalogCategoriesResultSchema as wv, SESSION_VISIBILITY_VALUES as ww, AgentsListParamsSchema as wx, SESSION_ICON_GLYPH_IDS as wy, WorktreesListResultSchema as x, EnvironmentSummarySchema as xC, SkillsUploadChunkParamsSchema as xS, TerminalInputParamsSchema as x_, TalkSessionCreateResultSchema as xa, UsersLinkAuthProfileResultSchema as xb, SessionFileEntrySchema as xc, WORKER_TRANSCRIPT_MAX_BATCH_MESSAGES as xd, GatewaySuspendPrepareResultSchema as xf, WORKER_PROVIDER_REPLAY_MAX_DATA_BYTES as xg, SkillsLibraryUploadParamsSchema as xh, SystemAgentSetupVerifyResultSchema as xi, SessionsMessagesUnsubscribeParamsSchema as xl, BoardWidgetMcpAppPutContentSchema as xm, NodeInvokeProgressParamsSchema as xn, AgentsFilesSetParamsSchema as xo, PROGRESS_CARD_MAX_STEPS as xp, ScopeUpgradeWaitSchema as xr, ProjectsSearchRemoteResultSchema as xs, SessionPlacementMachineSchema as xt, ChatInputConsumptionsSchema as xu, PluginsCatalogBrowseParamsSchema as xv, SessionPermissionModeSchema as xw, AgentsCreateResultSchema as xx, lazyCompile as xy, WorktreesGcResultSchema as y, DesktopAvailabilitySchema as yC, SkillsUpdateParamsSchema as yS, TerminalEventSchema as y_, TalkSessionCloseParamsSchema as ya, UsersGitHubStatusResultSchema as yb, SessionFileBrowserResultSchema as yc, WORKER_RPC_SET_VERSION as yd, GatewaySuspendPrepareParamsSchema as yf, WORKER_PROTOCOL_MAX_IDENTIFIER_LENGTH as yg, SkillsLibraryReadParamsSchema as yh, SystemAgentSetupDetectResultSchema as yi, SessionsGroupsUpdateResultSchema as yl, BoardWidgetHtmlContentSchema as ym, NodeInvokeInputEventSchema as yn, AgentsFilesListParamsSchema as yo, TranscriptsStatusResultSchema as yp, ScopeUpgradeRequestSchema as yr, ProjectsRemoveResultSchema as ys, SessionMoveTargetSchema as yt, ChatHistoryResetResultSchema as yu, PluginSearchResultEntrySchema as yv, SessionEventAncestorsSchema as yw, AgentSummarySchema as yx, PLUGIN_UI_CAPABILITIES as yy, SessionPortalOpenParamsSchema as z, WorkerDesktopObserveResultSchema as zC, ToolsGitHubConfigureParamsSchema as zS, SessionsCatalogArchiveResultSchema as z_, AuditRunInspectParamsSchema as za, UsersPersonalFileSetResultSchema as zb, SessionsBranchesSwitchResultSchema as zc, WorkerTranscriptCommitResponseFrameSchema as zd, UpdateHoldParamsSchema as zf, ApprovalGetResultSchema as zg, WorkerComputerResultSchema as zh, CommandsListParamsSchema as zi, SessionsPatchMutationSchema as zl, WIDGET_HTML_MAX_UTF8_BYTES as zm, NodeRenameParamsSchema as zn, PollParamsSchema as zo, BoardCanvasDocumentSourceSchema as zp, CronDeclarativeAddResultSchema as zr, SessionSuggestionsListResultSchema as zs, QuestionListParamsSchema as zt, MAX_HUMAN_MENTIONS as zu, PluginsListParamsSchema as zv, CHAT_SEND_SESSION_KEY_MAX_LENGTH as zw, ModelsAuthStatusParamsSchema as zx, SessionGitHubPublicationPublishingSchema as zy };
|