@openclaw/gateway-protocol 2026.9.4 → 2026.9.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/client-info.d.mts +2 -0
- package/dist/client-info.mjs +2 -0
- package/dist/frame-guards.d.mts +2 -2
- package/dist/frame-guards.mjs +2 -1
- package/dist/{frames-B3ABtpZk.d.mts → frames-X2k-UkK8.d.mts} +40 -1
- package/dist/gateway-error-details-Djlwga0B.d.mts +1341 -0
- package/dist/gateway-error-details.d.mts +2 -2
- package/dist/gateway-error-details.mjs +2 -1
- package/dist/index.d.mts +1780 -929
- package/dist/index.mjs +83 -2
- package/dist/rolldown-runtime-D7D4PA-g.mjs +13 -0
- package/dist/{schema-modules-Cs1brqQv.d.mts → schema-modules-CsQIRdwb.d.mts} +18632 -18403
- package/dist/schema.d.mts +37 -19261
- package/dist/schema.mjs +1403 -999
- package/dist/server-capabilities-Gfkxm7Ho.mjs +26 -0
- package/dist/system-agent-context.d.mts +18 -0
- package/dist/system-agent-context.mjs +29 -0
- package/dist/{worktrees-CRLE3hce.mjs → tools-catalog-CF4aqT9l.mjs} +987 -280
- package/package.json +8 -3
- package/protocol.schema.json +114128 -107375
- package/dist/gateway-error-details-DVeCF9AS.d.mts +0 -111
|
@@ -1,7 +1,10 @@
|
|
|
1
1
|
import { n as asOptionalRecord } from "./record-coerce-BVp8Dr-B.mjs";
|
|
2
2
|
import { ErrorCodes, GatewayErrorDetailCodes } from "./gateway-error-details.mjs";
|
|
3
3
|
import { GATEWAY_CLIENT_IDS, GATEWAY_CLIENT_MODES } from "./client-info.mjs";
|
|
4
|
+
import "./system-agent-context.mjs";
|
|
4
5
|
import { Type } from "typebox";
|
|
6
|
+
import "typebox/guard";
|
|
7
|
+
import "typebox/schema";
|
|
5
8
|
import { Compile } from "typebox/compile";
|
|
6
9
|
import { Value } from "typebox/value";
|
|
7
10
|
//#region src/schema/closed-object.ts
|
|
@@ -22,6 +25,16 @@ const FILE_SECRET_REF_ID_INVALID_ESCAPE_JSON_SCHEMA_PATTERN = "~(?:[^01]|$)";
|
|
|
22
25
|
/** JSON-schema pattern for exec secret ref ids, excluding dot-path traversal. */
|
|
23
26
|
const EXEC_SECRET_REF_ID_JSON_SCHEMA_PATTERN = "^(?!.*(?:^|/)\\.{1,2}(?:/|$))[A-Za-z0-9][A-Za-z0-9._:/#-]{0,255}$";
|
|
24
27
|
//#endregion
|
|
28
|
+
//#region src/schema/user-profile-constants.ts
|
|
29
|
+
const GATEWAY_OWNER_PROFILE_ID = "gateway-owner";
|
|
30
|
+
const USER_PREFS_ENTRY_LIMIT = 32;
|
|
31
|
+
const USER_PREFS_PROFILE_KEY_LIMIT = 128;
|
|
32
|
+
const USER_PREFS_VALUE_BYTES = 4096;
|
|
33
|
+
const GIT_COAUTHOR_PREFERENCE_KEY = "git.coauthor.enabled";
|
|
34
|
+
function isGitCoauthorCreditEnabled(value) {
|
|
35
|
+
return value === void 0 || value === true;
|
|
36
|
+
}
|
|
37
|
+
//#endregion
|
|
25
38
|
//#region src/schema/primitives.ts
|
|
26
39
|
/**
|
|
27
40
|
* Shared schema primitives reused by gateway protocol request/result schemas.
|
|
@@ -38,6 +51,10 @@ const INPUT_PROVENANCE_KIND_VALUES = [
|
|
|
38
51
|
const SESSION_LABEL_MAX_LENGTH = 512;
|
|
39
52
|
/** Non-empty string primitive for protocol fields that reject blank values. */
|
|
40
53
|
const NonEmptyString = Type.String({ minLength: 1 });
|
|
54
|
+
const UserProfileIdSchema = Type.String({
|
|
55
|
+
minLength: 1,
|
|
56
|
+
maxLength: 128
|
|
57
|
+
});
|
|
41
58
|
/** Maximum stable session key length accepted by chat-send protocol requests. */
|
|
42
59
|
const CHAT_SEND_SESSION_KEY_MAX_LENGTH = 512;
|
|
43
60
|
/** Chat-send session key string primitive with bounded length. */
|
|
@@ -56,7 +73,11 @@ const InputProvenanceSchema = closedObject({
|
|
|
56
73
|
originSessionId: Type.Optional(Type.String()),
|
|
57
74
|
sourceSessionKey: Type.Optional(Type.String()),
|
|
58
75
|
sourceChannel: Type.Optional(Type.String()),
|
|
59
|
-
sourceTool: Type.Optional(Type.String())
|
|
76
|
+
sourceTool: Type.Optional(Type.String()),
|
|
77
|
+
sourceRole: Type.Optional(Type.Literal("subagent")),
|
|
78
|
+
sourcePromptPrefix: Type.Optional(Type.String()),
|
|
79
|
+
jobId: Type.Optional(Type.String()),
|
|
80
|
+
runId: Type.Optional(Type.String())
|
|
60
81
|
});
|
|
61
82
|
/** Closed gateway client id schema aligned with `GATEWAY_CLIENT_IDS`. */
|
|
62
83
|
const GatewayClientIdSchema = Type.Enum(GATEWAY_CLIENT_IDS);
|
|
@@ -142,6 +163,17 @@ const SkillProposalRevisionChangedErrorDetailsSchema = closedObject({
|
|
|
142
163
|
expectedRevisionHash: RevisionHashSchema,
|
|
143
164
|
currentRevisionHash: RevisionHashSchema
|
|
144
165
|
});
|
|
166
|
+
const SessionWorkspaceRecoveryRequiredErrorDetailsSchema = closedObject({
|
|
167
|
+
code: Type.Literal(GatewayErrorDetailCodes.SESSION_WORKSPACE_RECOVERY_REQUIRED),
|
|
168
|
+
cause: Type.Literal("device_offline"),
|
|
169
|
+
recoveryAction: Type.Literal("continue_on_gateway"),
|
|
170
|
+
sessionId: NonEmptyString,
|
|
171
|
+
source: closedObject({
|
|
172
|
+
generation: Type.Integer({ minimum: 0 }),
|
|
173
|
+
environmentId: NonEmptyString,
|
|
174
|
+
ownerEpoch: Type.Integer({ minimum: 1 })
|
|
175
|
+
})
|
|
176
|
+
});
|
|
145
177
|
/** Structured details emitted by method-level failures. */
|
|
146
178
|
const GatewayErrorDetailsSchema = Type.Union([
|
|
147
179
|
CronJobNotFoundErrorDetailsSchema,
|
|
@@ -154,7 +186,8 @@ const GatewayErrorDetailsSchema = Type.Union([
|
|
|
154
186
|
UnknownAgentIdErrorDetailsSchema,
|
|
155
187
|
WizardNotFoundErrorDetailsSchema,
|
|
156
188
|
SetupAdmissionBusyErrorDetailsSchema,
|
|
157
|
-
GitHubPublicationSelectionRejectedErrorDetailsSchema
|
|
189
|
+
GitHubPublicationSelectionRejectedErrorDetailsSchema,
|
|
190
|
+
SessionWorkspaceRecoveryRequiredErrorDetailsSchema
|
|
158
191
|
]);
|
|
159
192
|
/** Builds the canonical gateway error payload while preserving optional retry metadata. */
|
|
160
193
|
function errorShape(code, message, opts) {
|
|
@@ -179,6 +212,56 @@ function missingScopeErrorShape(params) {
|
|
|
179
212
|
return errorShape(ErrorCodes.FORBIDDEN, `missing scope: ${params.missingScope}`, { details });
|
|
180
213
|
}
|
|
181
214
|
//#endregion
|
|
215
|
+
//#region src/schema/agent-database-admission.ts
|
|
216
|
+
const AgentDatabaseAdmissionRefusalProperties = {
|
|
217
|
+
agentId: NonEmptyString,
|
|
218
|
+
paths: Type.Array(NonEmptyString),
|
|
219
|
+
reason: NonEmptyString,
|
|
220
|
+
repairHint: NonEmptyString
|
|
221
|
+
};
|
|
222
|
+
const AgentDatabaseAdmissionRefusalSchema = Type.Union([closedObject({
|
|
223
|
+
...AgentDatabaseAdmissionRefusalProperties,
|
|
224
|
+
embeddedOwnerId: NonEmptyString,
|
|
225
|
+
code: Type.Literal("agent-database-ownership-mismatch")
|
|
226
|
+
}), closedObject({
|
|
227
|
+
...AgentDatabaseAdmissionRefusalProperties,
|
|
228
|
+
code: Type.Union([Type.Literal("agent-database-inspection-pending"), Type.Literal("agent-database-inspection-failed")])
|
|
229
|
+
})]);
|
|
230
|
+
//#endregion
|
|
231
|
+
//#region src/schema/model-account-selection.ts
|
|
232
|
+
const ModelAuthProfileIdSchema = Type.String({
|
|
233
|
+
minLength: 1,
|
|
234
|
+
maxLength: 256
|
|
235
|
+
});
|
|
236
|
+
const ChatAccountSelectionSourceSchema = Type.Optional(Type.Union([
|
|
237
|
+
Type.Literal("auto"),
|
|
238
|
+
Type.Literal("user"),
|
|
239
|
+
Type.Literal("user-link")
|
|
240
|
+
]));
|
|
241
|
+
const ChatAccountSelectionLabelSchema = Type.String({
|
|
242
|
+
minLength: 1,
|
|
243
|
+
maxLength: 256
|
|
244
|
+
});
|
|
245
|
+
/** Configured preference only; provider failover can use a different account. */
|
|
246
|
+
const ChatAccountSelectionSchema = Type.Union([
|
|
247
|
+
closedObject({
|
|
248
|
+
kind: Type.Literal("automatic"),
|
|
249
|
+
label: ChatAccountSelectionLabelSchema
|
|
250
|
+
}),
|
|
251
|
+
closedObject({
|
|
252
|
+
kind: Type.Literal("personal"),
|
|
253
|
+
label: ChatAccountSelectionLabelSchema,
|
|
254
|
+
authProfileId: Type.Optional(ModelAuthProfileIdSchema),
|
|
255
|
+
source: ChatAccountSelectionSourceSchema
|
|
256
|
+
}),
|
|
257
|
+
closedObject({
|
|
258
|
+
kind: Type.Literal("shared"),
|
|
259
|
+
label: ChatAccountSelectionLabelSchema,
|
|
260
|
+
authProfileId: ModelAuthProfileIdSchema,
|
|
261
|
+
source: ChatAccountSelectionSourceSchema
|
|
262
|
+
})
|
|
263
|
+
]);
|
|
264
|
+
//#endregion
|
|
182
265
|
//#region src/schema/environments.ts
|
|
183
266
|
/**
|
|
184
267
|
* Environment inventory protocol schemas.
|
|
@@ -195,6 +278,12 @@ const EnvironmentStatusSchema = Type.String({ enum: [
|
|
|
195
278
|
"error"
|
|
196
279
|
] });
|
|
197
280
|
const EnvironmentTrustSchema = Type.String({ enum: ["persistent", "disposable"] });
|
|
281
|
+
/** Operational desktop state reported by the current native node connection. */
|
|
282
|
+
const DesktopAvailabilitySchema = closedObject({ state: Type.Union([
|
|
283
|
+
Type.Literal("locked"),
|
|
284
|
+
Type.Literal("unlocked"),
|
|
285
|
+
Type.Literal("unknown")
|
|
286
|
+
]) });
|
|
198
287
|
/** Durable lifecycle states for plugin-provisioned worker environments. */
|
|
199
288
|
const WorkerEnvironmentStateSchema = Type.Union([
|
|
200
289
|
Type.Literal("requested"),
|
|
@@ -295,6 +384,7 @@ function createEnvironmentSummaryProperties() {
|
|
|
295
384
|
uniqueItems: true
|
|
296
385
|
})),
|
|
297
386
|
desktop: Type.Optional(Type.Boolean()),
|
|
387
|
+
desktopAvailability: Type.Optional(DesktopAvailabilitySchema),
|
|
298
388
|
issues: Type.Optional(Type.Array(RuntimeTargetIssueSchema, {
|
|
299
389
|
minItems: 1,
|
|
300
390
|
maxItems: 8
|
|
@@ -420,6 +510,7 @@ const WorkerDesktopObserveResultSchema = closedObject({
|
|
|
420
510
|
wsPath: NonEmptyString,
|
|
421
511
|
expiresAtMs: Type.Integer({ minimum: 0 }),
|
|
422
512
|
control: Type.Boolean(),
|
|
513
|
+
canResize: Type.Optional(Type.Boolean()),
|
|
423
514
|
vncPassword: Type.Optional(NonEmptyString)
|
|
424
515
|
});
|
|
425
516
|
const WorkerDesktopLaunchParamsSchema = closedObject({
|
|
@@ -431,39 +522,44 @@ const WorkerDesktopLaunchResultSchema = closedObject({
|
|
|
431
522
|
status: Type.Literal("ready")
|
|
432
523
|
});
|
|
433
524
|
//#endregion
|
|
434
|
-
//#region src/schema/model-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
525
|
+
//#region src/schema/model-runtime-options.ts
|
|
526
|
+
/** Model option shown in selectors and model catalog results. */
|
|
527
|
+
const GatewayAgentRuntimeSchema = closedObject({
|
|
528
|
+
id: NonEmptyString,
|
|
529
|
+
fallback: Type.Optional(Type.Union([Type.Literal("openclaw"), Type.Literal("none")])),
|
|
530
|
+
cloudPlacementSupported: Type.Optional(Type.Boolean()),
|
|
531
|
+
cloudPlacementExecutionMode: Type.Optional(WorkerExecutionModeSchema),
|
|
532
|
+
devicePlacement: Type.Optional(closedObject({
|
|
533
|
+
requiredNodeCommands: Type.Array(Type.String({
|
|
534
|
+
minLength: 1,
|
|
535
|
+
maxLength: 128
|
|
536
|
+
}), {
|
|
537
|
+
maxItems: 32,
|
|
538
|
+
uniqueItems: true
|
|
539
|
+
}),
|
|
540
|
+
consumesWorkerSlot: Type.Boolean()
|
|
541
|
+
})),
|
|
542
|
+
devicePlacementSupported: Type.Optional(Type.Boolean()),
|
|
543
|
+
source: Type.Union([
|
|
544
|
+
Type.Literal("env"),
|
|
545
|
+
Type.Literal("agent"),
|
|
546
|
+
Type.Literal("defaults"),
|
|
547
|
+
Type.Literal("model"),
|
|
548
|
+
Type.Literal("provider"),
|
|
549
|
+
Type.Literal("implicit"),
|
|
550
|
+
Type.Literal("session"),
|
|
551
|
+
Type.Literal("session-key")
|
|
552
|
+
])
|
|
438
553
|
});
|
|
439
|
-
const
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
554
|
+
const GatewayThinkingLevelOptionSchema = closedObject({
|
|
555
|
+
id: NonEmptyString,
|
|
556
|
+
label: NonEmptyString
|
|
557
|
+
});
|
|
558
|
+
const GatewayContextWindowOptionSchema = closedObject({
|
|
559
|
+
id: NonEmptyString,
|
|
560
|
+
label: NonEmptyString,
|
|
561
|
+
contextWindow: Type.Integer({ minimum: 1 })
|
|
447
562
|
});
|
|
448
|
-
/** Configured preference only; provider failover can use a different account. */
|
|
449
|
-
const ChatAccountSelectionSchema = Type.Union([
|
|
450
|
-
closedObject({
|
|
451
|
-
kind: Type.Literal("automatic"),
|
|
452
|
-
label: ChatAccountSelectionLabelSchema
|
|
453
|
-
}),
|
|
454
|
-
closedObject({
|
|
455
|
-
kind: Type.Literal("personal"),
|
|
456
|
-
label: ChatAccountSelectionLabelSchema,
|
|
457
|
-
authProfileId: Type.Optional(ModelAuthProfileIdSchema),
|
|
458
|
-
source: ChatAccountSelectionSourceSchema
|
|
459
|
-
}),
|
|
460
|
-
closedObject({
|
|
461
|
-
kind: Type.Literal("shared"),
|
|
462
|
-
label: ChatAccountSelectionLabelSchema,
|
|
463
|
-
authProfileId: ModelAuthProfileIdSchema,
|
|
464
|
-
source: ChatAccountSelectionSourceSchema
|
|
465
|
-
})
|
|
466
|
-
]);
|
|
467
563
|
//#endregion
|
|
468
564
|
//#region src/schema/since.ts
|
|
469
565
|
/** Adds protocol-vintage metadata without changing the schema's validated value shape. */
|
|
@@ -632,6 +728,32 @@ const SessionPersonSchema = closedObject({
|
|
|
632
728
|
sessionCount: Type.Integer({ minimum: 1 })
|
|
633
729
|
});
|
|
634
730
|
//#endregion
|
|
731
|
+
//#region src/schema/sessions-activity-summary.ts
|
|
732
|
+
const SessionActivitySummarySchema = closedObject({
|
|
733
|
+
/** Caller-specific participation permission; operator.write is required separately. */
|
|
734
|
+
canEnsure: Type.Optional(Type.Boolean()),
|
|
735
|
+
text: Type.Optional(Type.String({ maxLength: 900 })),
|
|
736
|
+
updatedAt: Type.Optional(Type.Integer({ minimum: 0 })),
|
|
737
|
+
state: Type.Union([
|
|
738
|
+
Type.Literal("current"),
|
|
739
|
+
Type.Literal("stale"),
|
|
740
|
+
Type.Literal("updating"),
|
|
741
|
+
Type.Literal("unavailable")
|
|
742
|
+
])
|
|
743
|
+
});
|
|
744
|
+
const SessionsActivitySummaryEnsureParamsSchema = closedObject({ sessions: Type.Array(closedObject({
|
|
745
|
+
key: NonEmptyString,
|
|
746
|
+
agentId: Type.Optional(NonEmptyString)
|
|
747
|
+
}), {
|
|
748
|
+
minItems: 1,
|
|
749
|
+
maxItems: 20
|
|
750
|
+
}) });
|
|
751
|
+
const SessionsActivitySummaryEnsureResultSchema = closedObject({ sessions: Type.Array(closedObject({
|
|
752
|
+
key: NonEmptyString,
|
|
753
|
+
agentId: NonEmptyString,
|
|
754
|
+
activitySummary: SessionActivitySummarySchema
|
|
755
|
+
}), { maxItems: 20 }) });
|
|
756
|
+
//#endregion
|
|
635
757
|
//#region src/schema/sessions-sharing-values.ts
|
|
636
758
|
const SESSION_VISIBILITY_VALUES = [
|
|
637
759
|
"shared",
|
|
@@ -748,6 +870,8 @@ const SessionRowSchema = Type.Object({
|
|
|
748
870
|
color: Type.Optional(Type.String()),
|
|
749
871
|
channelAvatarUrl: Type.Optional(NonEmptyString),
|
|
750
872
|
boardFace: Type.Optional(Type.Union([Type.Literal("chat"), Type.Literal("dashboard")])),
|
|
873
|
+
/** Shared dashboard default; absent means split. */
|
|
874
|
+
boardPresentation: Type.Optional(Type.Union([Type.Literal("split"), Type.Literal("expanded")])),
|
|
751
875
|
displayName: Type.Optional(Type.String()),
|
|
752
876
|
derivedTitle: Type.Optional(Type.String()),
|
|
753
877
|
lastMessagePreview: Type.Optional(Type.String()),
|
|
@@ -764,7 +888,10 @@ const SessionRowSchema = Type.Object({
|
|
|
764
888
|
Type.Literal("group"),
|
|
765
889
|
Type.Literal("channel")
|
|
766
890
|
])),
|
|
891
|
+
activitySummary: Type.Optional(SessionActivitySummarySchema),
|
|
767
892
|
updatedAt: Type.Optional(Type.Union([Type.Number(), Type.Null()])),
|
|
893
|
+
/** Gateway sampling time, retained when a read reuses a cached projection. */
|
|
894
|
+
snapshotAt: Type.Optional(Type.Number()),
|
|
768
895
|
archived: Type.Optional(Type.Boolean()),
|
|
769
896
|
archivedAt: Type.Optional(Type.Number()),
|
|
770
897
|
archivedBy: Type.Optional(SessionCreatedActorSchema),
|
|
@@ -784,6 +911,7 @@ const SessionRowSchema = Type.Object({
|
|
|
784
911
|
activeLeafEntryId: Type.Optional(Type.Union([NonEmptyString, Type.Null()])),
|
|
785
912
|
spawnedBy: Type.Optional(Type.String()),
|
|
786
913
|
parentSessionKey: Type.Optional(Type.String()),
|
|
914
|
+
parentSessionId: Type.Optional(Type.String()),
|
|
787
915
|
controlOwnerSessionKey: Type.Optional(Type.String()),
|
|
788
916
|
childSessions: Type.Optional(Type.Array(Type.String())),
|
|
789
917
|
forkedFromParent: Type.Optional(Type.Boolean()),
|
|
@@ -807,6 +935,10 @@ const SessionRowSchema = Type.Object({
|
|
|
807
935
|
execCwd: Type.Optional(Type.String()),
|
|
808
936
|
spawnedWorkspaceDir: Type.Optional(Type.String()),
|
|
809
937
|
spawnedCwd: Type.Optional(Type.String()),
|
|
938
|
+
/** Persisted project registry association, distinct from a cloud repository workspace. */
|
|
939
|
+
projectId: Type.Optional(Type.String()),
|
|
940
|
+
/** Persisted task cwd or spawned workspace; no filesystem resolution is implied. */
|
|
941
|
+
workspaceDir: Type.Optional(Type.String()),
|
|
810
942
|
permissionMode: Type.Optional(SessionPermissionModeSchema),
|
|
811
943
|
permissionModePending: Type.Optional(Type.Boolean()),
|
|
812
944
|
sessionRoot: Type.Optional(Type.String()),
|
|
@@ -857,62 +989,23 @@ const SessionRowSchema = Type.Object({
|
|
|
857
989
|
//#endregion
|
|
858
990
|
//#region src/schema/agents-models-skills.ts
|
|
859
991
|
/**
|
|
860
|
-
* Agent, model, skill, and tool
|
|
992
|
+
* Agent, model, skill, and effective tool schemas.
|
|
861
993
|
*
|
|
862
994
|
* These contracts back dashboard selectors, agent management, model catalogs,
|
|
863
995
|
* skill upload/install flows, skill workshop proposals, and effective tool
|
|
864
996
|
* discovery. Keep public request/result schemas documented because they are
|
|
865
997
|
* shared by gateway RPC, CLI, and UI clients.
|
|
866
998
|
*/
|
|
867
|
-
|
|
868
|
-
|
|
869
|
-
|
|
870
|
-
|
|
871
|
-
|
|
872
|
-
|
|
873
|
-
devicePlacement: Type.Optional(closedObject({
|
|
874
|
-
requiredNodeCommands: Type.Array(Type.String({
|
|
875
|
-
minLength: 1,
|
|
876
|
-
maxLength: 128
|
|
877
|
-
}), {
|
|
878
|
-
maxItems: 32,
|
|
879
|
-
uniqueItems: true
|
|
880
|
-
}),
|
|
881
|
-
consumesWorkerSlot: Type.Boolean()
|
|
882
|
-
})),
|
|
883
|
-
devicePlacementSupported: Type.Optional(Type.Boolean()),
|
|
884
|
-
source: Type.Union([
|
|
885
|
-
Type.Literal("env"),
|
|
886
|
-
Type.Literal("agent"),
|
|
887
|
-
Type.Literal("defaults"),
|
|
888
|
-
Type.Literal("model"),
|
|
889
|
-
Type.Literal("provider"),
|
|
890
|
-
Type.Literal("implicit"),
|
|
891
|
-
Type.Literal("session"),
|
|
892
|
-
Type.Literal("session-key")
|
|
893
|
-
])
|
|
894
|
-
});
|
|
895
|
-
const GatewayThinkingLevelOptionSchema = closedObject({
|
|
896
|
-
id: NonEmptyString,
|
|
897
|
-
label: NonEmptyString
|
|
898
|
-
});
|
|
899
|
-
const GatewayContextWindowOptionSchema = closedObject({
|
|
900
|
-
id: NonEmptyString,
|
|
901
|
-
label: NonEmptyString,
|
|
902
|
-
contextWindow: Type.Integer({ minimum: 1 })
|
|
903
|
-
});
|
|
904
|
-
const ModelChoiceSchema = closedObject({
|
|
905
|
-
id: NonEmptyString,
|
|
906
|
-
name: NonEmptyString,
|
|
907
|
-
provider: NonEmptyString,
|
|
908
|
-
alias: Type.Optional(NonEmptyString),
|
|
909
|
-
tags: Type.Optional(Type.Array(NonEmptyString)),
|
|
999
|
+
const ModelUnavailableReasonSchema = Type.Union([
|
|
1000
|
+
Type.Literal("missing-auth"),
|
|
1001
|
+
Type.Literal("auth-failed"),
|
|
1002
|
+
Type.Literal("cooldown")
|
|
1003
|
+
]);
|
|
1004
|
+
const ModelRuntimeProperties = {
|
|
910
1005
|
available: Type.Optional(Type.Boolean()),
|
|
911
|
-
|
|
912
|
-
|
|
913
|
-
|
|
914
|
-
Type.Literal("cooldown")
|
|
915
|
-
])),
|
|
1006
|
+
/** Scoped manual-choice permission; separate from runtime readiness and automatic selection. */
|
|
1007
|
+
manualSelectionAllowed: Type.Optional(Type.Boolean()),
|
|
1008
|
+
unavailableReason: Type.Optional(ModelUnavailableReasonSchema),
|
|
916
1009
|
/** Earliest known retry time in epoch milliseconds, only for unavailable models. */
|
|
917
1010
|
unavailableUntil: Type.Optional(Type.Integer({ minimum: 0 })),
|
|
918
1011
|
contextWindow: Type.Optional(Type.Integer({ minimum: 1 })),
|
|
@@ -927,8 +1020,6 @@ const ModelChoiceSchema = closedObject({
|
|
|
927
1020
|
/** Local selected-request applicability, not preference or upstream fulfillment. */
|
|
928
1021
|
supportsFastMode: Type.Optional(Type.Boolean()),
|
|
929
1022
|
supportsTools: Type.Optional(Type.Boolean()),
|
|
930
|
-
agentRuntime: Type.Optional(GatewayAgentRuntimeSchema),
|
|
931
|
-
apiKeySupported: Type.Optional(Type.Boolean()),
|
|
932
1023
|
input: Type.Optional(Type.Array(Type.Union([
|
|
933
1024
|
Type.Literal("text"),
|
|
934
1025
|
Type.Literal("image"),
|
|
@@ -936,6 +1027,23 @@ const ModelChoiceSchema = closedObject({
|
|
|
936
1027
|
Type.Literal("video"),
|
|
937
1028
|
Type.Literal("document")
|
|
938
1029
|
])))
|
|
1030
|
+
};
|
|
1031
|
+
/** Runtime-specific capabilities for an additional choice of the same canonical model. */
|
|
1032
|
+
const ModelRuntimeChoiceSchema = closedObject({
|
|
1033
|
+
agentRuntime: GatewayAgentRuntimeSchema,
|
|
1034
|
+
...ModelRuntimeProperties,
|
|
1035
|
+
unavailableReason: Type.Optional(Type.Union([ModelUnavailableReasonSchema, Type.Literal("unsupported-runtime")]))
|
|
1036
|
+
});
|
|
1037
|
+
const ModelChoiceSchema = closedObject({
|
|
1038
|
+
id: NonEmptyString,
|
|
1039
|
+
name: NonEmptyString,
|
|
1040
|
+
provider: NonEmptyString,
|
|
1041
|
+
alias: Type.Optional(NonEmptyString),
|
|
1042
|
+
tags: Type.Optional(Type.Array(NonEmptyString)),
|
|
1043
|
+
...ModelRuntimeProperties,
|
|
1044
|
+
agentRuntime: Type.Optional(GatewayAgentRuntimeSchema),
|
|
1045
|
+
apiKeySupported: Type.Optional(Type.Boolean()),
|
|
1046
|
+
runtimeChoices: Type.Optional(Type.Array(ModelRuntimeChoiceSchema, { maxItems: 8 }))
|
|
939
1047
|
});
|
|
940
1048
|
/** Semantic owner of an agent roster entry. */
|
|
941
1049
|
const AgentKindSchema = Type.Union([Type.Literal("agent"), Type.Literal("system")]);
|
|
@@ -947,6 +1055,10 @@ const AgentCreatedViaSchema = Type.Union([
|
|
|
947
1055
|
/** Condensed agent record returned by list APIs. */
|
|
948
1056
|
const AgentSummarySchema = closedObject({
|
|
949
1057
|
id: NonEmptyString,
|
|
1058
|
+
/** Effective explicit utility model; absent for automatic or disabled utility routing. */
|
|
1059
|
+
utilityModel: Type.Optional(NonEmptyString),
|
|
1060
|
+
status: Type.Optional(Type.Literal("degraded")),
|
|
1061
|
+
admissionRefusal: Type.Optional(AgentDatabaseAdmissionRefusalSchema),
|
|
950
1062
|
kind: Type.Optional(AgentKindSchema),
|
|
951
1063
|
createdVia: Type.Optional(AgentCreatedViaSchema),
|
|
952
1064
|
creatorAgentId: Type.Optional(Type.Union([NonEmptyString, Type.Null()])),
|
|
@@ -1093,6 +1205,8 @@ const ModelsListParamsSchema = Type.Object({
|
|
|
1093
1205
|
provider: Type.Optional(NonEmptyString),
|
|
1094
1206
|
includeDetails: Type.Optional(Type.Boolean()),
|
|
1095
1207
|
includeProviderCapabilities: Type.Optional(Type.Boolean()),
|
|
1208
|
+
/** Include global default-model previews, independent of agent/session overrides. */
|
|
1209
|
+
includeDefaultModels: Type.Optional(Type.Boolean()),
|
|
1096
1210
|
/** Reuse prepared/cached facts without starting provider discovery. */
|
|
1097
1211
|
preparedOnly: Type.Optional(Type.Boolean()),
|
|
1098
1212
|
/** Force replacement of a completed full-catalog generation. */
|
|
@@ -1118,10 +1232,31 @@ const ModelsAuthStatusParamsSchema = closedObject({
|
|
|
1118
1232
|
refresh: Type.Optional(Type.Boolean()),
|
|
1119
1233
|
agentId: Type.Optional(Type.String())
|
|
1120
1234
|
});
|
|
1235
|
+
/** Rebuilds Gateway auth state after a credential or selection mutation. */
|
|
1236
|
+
const ModelsAuthRefreshParamsSchema = closedObject({
|
|
1237
|
+
operation: Type.Union([
|
|
1238
|
+
Type.Literal("login"),
|
|
1239
|
+
Type.Literal("logout"),
|
|
1240
|
+
Type.Literal("update")
|
|
1241
|
+
]),
|
|
1242
|
+
agentId: Type.Optional(Type.String())
|
|
1243
|
+
});
|
|
1244
|
+
/** Saves a model-provider API key without changing model selection. */
|
|
1245
|
+
const ModelsAuthSetApiKeyParamsSchema = Type.Object({
|
|
1246
|
+
provider: Type.String({ pattern: "\\S" }),
|
|
1247
|
+
apiKey: Type.String({ pattern: "\\S" }),
|
|
1248
|
+
agentId: Type.Optional(Type.String())
|
|
1249
|
+
}, { additionalProperties: true });
|
|
1250
|
+
const ModelsAuthSetApiKeyResultSchema = closedObject({
|
|
1251
|
+
provider: NonEmptyString,
|
|
1252
|
+
profileId: NonEmptyString,
|
|
1253
|
+
warning: Type.Optional(Type.String())
|
|
1254
|
+
});
|
|
1121
1255
|
/** Removes saved model-provider credentials from one configured agent. */
|
|
1122
1256
|
const ModelsAuthLogoutParamsSchema = closedObject({
|
|
1123
1257
|
provider: NonEmptyString,
|
|
1124
1258
|
profileIds: Type.Optional(Type.Array(NonEmptyString, { minItems: 1 })),
|
|
1259
|
+
credentialType: Type.Optional(Type.Literal("api_key")),
|
|
1125
1260
|
agentId: Type.Optional(Type.String())
|
|
1126
1261
|
});
|
|
1127
1262
|
/** Sets or clears the preferred auth-profile order for one provider and agent. */
|
|
@@ -1145,7 +1280,11 @@ const ModelCatalogProviderOutcomeSchema = closedObject({
|
|
|
1145
1280
|
});
|
|
1146
1281
|
const ModelsListResultSchema = closedObject({
|
|
1147
1282
|
models: Type.Array(ModelChoiceSchema),
|
|
1283
|
+
defaultModels: Type.Optional(closedObject({
|
|
1284
|
+
/** Auto preview from agents.defaults.model, even when utility routing is explicit or disabled. */
|
|
1285
|
+
automaticUtilityModel: Type.Union([NonEmptyString, Type.Null()]) })),
|
|
1148
1286
|
refreshFailed: Type.Optional(Type.Boolean()),
|
|
1287
|
+
pendingProviders: Type.Optional(Type.Array(NonEmptyString)),
|
|
1149
1288
|
accountSelection: Type.Optional(ChatAccountSelectionSchema),
|
|
1150
1289
|
providerOutcomes: Type.Optional(Type.Array(ModelCatalogProviderOutcomeSchema))
|
|
1151
1290
|
});
|
|
@@ -1855,11 +1994,6 @@ const SkillsCuratorStatusResultSchema = closedObject({
|
|
|
1855
1994
|
/** Preserves retired curator action methods so clients receive an actionable error. */
|
|
1856
1995
|
const SkillsCuratorActionParamsSchema = closedObject({ skill: NonEmptyString });
|
|
1857
1996
|
const SkillsCuratorActionResultSchema = SkillCuratorEntrySchema;
|
|
1858
|
-
/** Reads the configured tool catalog for an agent. */
|
|
1859
|
-
const ToolsCatalogParamsSchema = closedObject({
|
|
1860
|
-
agentId: Type.Optional(NonEmptyString),
|
|
1861
|
-
includePlugins: Type.Optional(Type.Boolean())
|
|
1862
|
-
});
|
|
1863
1997
|
const GitHubIdentityScopeSchema = Type.Union([Type.Literal("system"), Type.Literal("agent")]);
|
|
1864
1998
|
const ToolsGitHubStatusParamsSchema = closedObject({
|
|
1865
1999
|
agentId: NonEmptyString,
|
|
@@ -2025,51 +2159,6 @@ const ToolsInvokeParamsSchema = closedObject({
|
|
|
2025
2159
|
*/
|
|
2026
2160
|
conversationReadOrigin: Type.Optional(Type.Literal("direct-operator"))
|
|
2027
2161
|
});
|
|
2028
|
-
/** Tool profile shown in catalog views. */
|
|
2029
|
-
const ToolCatalogProfileSchema = closedObject({
|
|
2030
|
-
id: Type.Union([
|
|
2031
|
-
Type.Literal("minimal"),
|
|
2032
|
-
Type.Literal("coding"),
|
|
2033
|
-
Type.Literal("messaging"),
|
|
2034
|
-
Type.Literal("full")
|
|
2035
|
-
]),
|
|
2036
|
-
label: NonEmptyString
|
|
2037
|
-
});
|
|
2038
|
-
/** Tool catalog entry before session-specific filtering is applied. */
|
|
2039
|
-
const ToolCatalogEntrySchema = closedObject({
|
|
2040
|
-
id: NonEmptyString,
|
|
2041
|
-
label: NonEmptyString,
|
|
2042
|
-
description: Type.String(),
|
|
2043
|
-
source: Type.Union([Type.Literal("core"), Type.Literal("plugin")]),
|
|
2044
|
-
pluginId: Type.Optional(NonEmptyString),
|
|
2045
|
-
optional: Type.Optional(Type.Boolean()),
|
|
2046
|
-
risk: Type.Optional(Type.Union([
|
|
2047
|
-
Type.Literal("low"),
|
|
2048
|
-
Type.Literal("medium"),
|
|
2049
|
-
Type.Literal("high")
|
|
2050
|
-
])),
|
|
2051
|
-
tags: Type.Optional(Type.Array(NonEmptyString)),
|
|
2052
|
-
defaultProfiles: Type.Array(Type.Union([
|
|
2053
|
-
Type.Literal("minimal"),
|
|
2054
|
-
Type.Literal("coding"),
|
|
2055
|
-
Type.Literal("messaging"),
|
|
2056
|
-
Type.Literal("full")
|
|
2057
|
-
]))
|
|
2058
|
-
});
|
|
2059
|
-
/** Group of related catalog tools from core or a plugin. */
|
|
2060
|
-
const ToolCatalogGroupSchema = closedObject({
|
|
2061
|
-
id: NonEmptyString,
|
|
2062
|
-
label: NonEmptyString,
|
|
2063
|
-
source: Type.Union([Type.Literal("core"), Type.Literal("plugin")]),
|
|
2064
|
-
pluginId: Type.Optional(NonEmptyString),
|
|
2065
|
-
tools: Type.Array(ToolCatalogEntrySchema)
|
|
2066
|
-
});
|
|
2067
|
-
/** Tool catalog result for agent configuration UI. */
|
|
2068
|
-
const ToolsCatalogResultSchema = closedObject({
|
|
2069
|
-
agentId: NonEmptyString,
|
|
2070
|
-
profiles: Type.Array(ToolCatalogProfileSchema),
|
|
2071
|
-
groups: Type.Array(ToolCatalogGroupSchema)
|
|
2072
|
-
});
|
|
2073
2162
|
/** Effective tool entry after session/profile/channel/plugin filtering. */
|
|
2074
2163
|
const ToolsEffectiveEntrySchema = closedObject({
|
|
2075
2164
|
id: NonEmptyString,
|
|
@@ -2158,7 +2247,7 @@ const SetupInferenceFailureStatusSchema = Type.Union([
|
|
|
2158
2247
|
Type.Literal("unavailable"),
|
|
2159
2248
|
Type.Literal("unknown")
|
|
2160
2249
|
]);
|
|
2161
|
-
/** Finalized rejection before model
|
|
2250
|
+
/** Finalized rejection before the model config commit; saved credentials may remain. */
|
|
2162
2251
|
const SetupInferenceActivationRejectionSchema = closedObject({
|
|
2163
2252
|
disposition: Type.Literal("rejected-before-promotion"),
|
|
2164
2253
|
status: SetupInferenceFailureStatusSchema
|
|
@@ -2190,10 +2279,13 @@ const WizardNextParamsSchema = closedObject({
|
|
|
2190
2279
|
sessionId: NonEmptyString,
|
|
2191
2280
|
answer: Type.Optional(WizardAnswerSchema)
|
|
2192
2281
|
});
|
|
2193
|
-
/**
|
|
2282
|
+
/** Session-id-only params for status requests. */
|
|
2194
2283
|
const WizardSessionIdParamsSchema = closedObject({ sessionId: NonEmptyString });
|
|
2195
|
-
/** Cancels
|
|
2196
|
-
const WizardCancelParamsSchema =
|
|
2284
|
+
/** Cancels a wizard or closes input when its client view is discarded. */
|
|
2285
|
+
const WizardCancelParamsSchema = closedObject({
|
|
2286
|
+
sessionId: NonEmptyString,
|
|
2287
|
+
closeInput: Type.Optional(Type.Boolean())
|
|
2288
|
+
});
|
|
2197
2289
|
/** Reads status for an active or recently completed wizard session. */
|
|
2198
2290
|
const WizardStatusParamsSchema = WizardSessionIdParamsSchema;
|
|
2199
2291
|
/** Selectable value shown in a choice-based wizard step. */
|
|
@@ -2249,6 +2341,7 @@ const WizardResultFields = {
|
|
|
2249
2341
|
preparedModelRef: Type.Optional(NonEmptyString),
|
|
2250
2342
|
modelActivation: Type.Optional(closedObject({
|
|
2251
2343
|
modelRef: NonEmptyString,
|
|
2344
|
+
modelTarget: Type.Optional(Type.Literal("utility")),
|
|
2252
2345
|
gatewayRestartRequired: Type.Optional(Type.Literal(true))
|
|
2253
2346
|
})),
|
|
2254
2347
|
activationRejection: Type.Optional(SetupInferenceActivationRejectionSchema)
|
|
@@ -2266,9 +2359,6 @@ const WizardStatusResultSchema = closedObject({
|
|
|
2266
2359
|
error: Type.Optional(Type.String())
|
|
2267
2360
|
});
|
|
2268
2361
|
//#endregion
|
|
2269
|
-
//#region src/schema/user-profile-constants.ts
|
|
2270
|
-
const GATEWAY_OWNER_PROFILE_ID = "gateway-owner";
|
|
2271
|
-
//#endregion
|
|
2272
2362
|
//#region src/schema/ui-appearance-preferences.ts
|
|
2273
2363
|
const UI_APPEARANCE_PREFERENCE_KEYS = {
|
|
2274
2364
|
theme: "ui.theme",
|
|
@@ -2317,17 +2407,6 @@ function normalizeUiAppearancePreference(key, value) {
|
|
|
2317
2407
|
}
|
|
2318
2408
|
//#endregion
|
|
2319
2409
|
//#region src/schema/users.ts
|
|
2320
|
-
const USER_PREFS_ENTRY_LIMIT = 32;
|
|
2321
|
-
const USER_PREFS_PROFILE_KEY_LIMIT = 128;
|
|
2322
|
-
const USER_PREFS_VALUE_BYTES = 4096;
|
|
2323
|
-
const GIT_COAUTHOR_PREFERENCE_KEY = "git.coauthor.enabled";
|
|
2324
|
-
function isGitCoauthorCreditEnabled(value) {
|
|
2325
|
-
return value === void 0 || value === true;
|
|
2326
|
-
}
|
|
2327
|
-
const UserProfileIdSchema = Type.String({
|
|
2328
|
-
minLength: 1,
|
|
2329
|
-
maxLength: 128
|
|
2330
|
-
});
|
|
2331
2410
|
const UserProfileDisplayNameSchema = Type.String({ maxLength: 256 });
|
|
2332
2411
|
const UserProfileRoleSchema = Type.String({
|
|
2333
2412
|
minLength: 1,
|
|
@@ -2693,7 +2772,8 @@ const SessionGitHubPublicationResultSchema = Type.Union([
|
|
|
2693
2772
|
]);
|
|
2694
2773
|
const SessionGitHubOptionsParamsSchema = closedObject({
|
|
2695
2774
|
sessionKey: NonEmptyString,
|
|
2696
|
-
agentId: Type.Optional(NonEmptyString)
|
|
2775
|
+
agentId: Type.Optional(NonEmptyString),
|
|
2776
|
+
idempotencyKey: Type.Optional(NonEmptyString)
|
|
2697
2777
|
});
|
|
2698
2778
|
const SessionGitHubStatusParamsSchema = closedObject({
|
|
2699
2779
|
sessionKey: NonEmptyString,
|
|
@@ -2733,9 +2813,54 @@ const SessionGitHubStatusResultSchema = closedObject({
|
|
|
2733
2813
|
const SessionGitHubOptionsResultSchema = closedObject({
|
|
2734
2814
|
personal: Type.Union([PersonalGitHubStatusSchema, Type.Null()]),
|
|
2735
2815
|
shared: Type.Union([SharedGitHubPublicationPublisherSchema, Type.Null()]),
|
|
2736
|
-
pendingPersonal: Type.Union([SessionGitHubStatusResultSchema, Type.Null()])
|
|
2816
|
+
pendingPersonal: Type.Union([SessionGitHubStatusResultSchema, Type.Null()]),
|
|
2817
|
+
latestShared: Type.Union([SessionGitHubStatusResultSchema, Type.Null()])
|
|
2737
2818
|
});
|
|
2738
2819
|
//#endregion
|
|
2820
|
+
//#region src/svg-image.ts
|
|
2821
|
+
const SVG_PROLOGUE_WHITESPACE_RE = /\s*/y;
|
|
2822
|
+
function skipSvgPrologueWhitespace(text, index) {
|
|
2823
|
+
SVG_PROLOGUE_WHITESPACE_RE.lastIndex = index;
|
|
2824
|
+
SVG_PROLOGUE_WHITESPACE_RE.exec(text);
|
|
2825
|
+
return SVG_PROLOGUE_WHITESPACE_RE.lastIndex;
|
|
2826
|
+
}
|
|
2827
|
+
function startsWithToken(text, index, token) {
|
|
2828
|
+
return text.slice(index, index + token.length).toLowerCase() === token;
|
|
2829
|
+
}
|
|
2830
|
+
/**
|
|
2831
|
+
* Recognizes an SVG root element after an optional XML declaration and comments.
|
|
2832
|
+
*
|
|
2833
|
+
* An index scan rather than a regex on purpose: the equivalent
|
|
2834
|
+
* `(?:<!--[\s\S]*?-->\s*)*<svg` backtracks exponentially on comment-like bytes that
|
|
2835
|
+
* never reach a root element, and these bytes arrive from remote icon and
|
|
2836
|
+
* link-favicon responses on the Gateway's single event loop, so one crafted
|
|
2837
|
+
* response would stall every session. A comment ends at its first `-->`, so text
|
|
2838
|
+
* between a closed comment and the root element is rejected, not absorbed.
|
|
2839
|
+
*/
|
|
2840
|
+
function startsWithSvgRootElement(text) {
|
|
2841
|
+
let index = skipSvgPrologueWhitespace(text, 0);
|
|
2842
|
+
if (startsWithToken(text, index, "<?xml")) {
|
|
2843
|
+
const declarationEnd = text.indexOf(">", index);
|
|
2844
|
+
if (declarationEnd < 0) return false;
|
|
2845
|
+
index = skipSvgPrologueWhitespace(text, declarationEnd + 1);
|
|
2846
|
+
}
|
|
2847
|
+
while (startsWithToken(text, index, "<!--")) {
|
|
2848
|
+
const commentEnd = text.indexOf("-->", index + 4);
|
|
2849
|
+
if (commentEnd < 0) return false;
|
|
2850
|
+
index = skipSvgPrologueWhitespace(text, commentEnd + 3);
|
|
2851
|
+
}
|
|
2852
|
+
if (!startsWithToken(text, index, "<svg")) return false;
|
|
2853
|
+
const delimiter = text[index + 4];
|
|
2854
|
+
return delimiter === ">" || delimiter === "/" && text[index + 5] === ">" || delimiter !== void 0 && /\s/u.test(delimiter);
|
|
2855
|
+
}
|
|
2856
|
+
/**
|
|
2857
|
+
* SVG images stay self-contained: no script, document expansion, embedded
|
|
2858
|
+
* documents, or outbound fetches can reach the browser through an image route.
|
|
2859
|
+
*/
|
|
2860
|
+
function isSelfContainedSvg(text) {
|
|
2861
|
+
return !text.includes("\0") && !/<!doctype|<!entity/iu.test(text) && !/<\s*(?:script|foreignObject|image|use|iframe)\b/iu.test(text) && !/\b(?:href|xlink:href|src)\s*=/iu.test(text) && startsWithSvgRootElement(text);
|
|
2862
|
+
}
|
|
2863
|
+
//#endregion
|
|
2739
2864
|
//#region src/session-agent-status.ts
|
|
2740
2865
|
const SESSION_AGENT_ATTENTION_ICON_IDS = [
|
|
2741
2866
|
"hand",
|
|
@@ -2768,6 +2893,25 @@ const SESSION_ICON_GLYPH_IDS = [
|
|
|
2768
2893
|
"coins"
|
|
2769
2894
|
];
|
|
2770
2895
|
const SESSION_ICON_GLYPH_ID_SET = new Set(SESSION_ICON_GLYPH_IDS);
|
|
2896
|
+
const SESSION_ICON_SVG_MAX_BYTES = 16384;
|
|
2897
|
+
const SESSION_ICON_SVG_DATA_URL_PREFIX = "data:image/svg+xml,";
|
|
2898
|
+
const SVG_DATA_URL_RE = /^data:image\/svg\+xml(?:;charset=utf-8)?(;base64)?,/iu;
|
|
2899
|
+
function normalizeSessionSvgIcon(value) {
|
|
2900
|
+
if (value.length > 49216) return null;
|
|
2901
|
+
const dataUrl = SVG_DATA_URL_RE.exec(value);
|
|
2902
|
+
let source = value;
|
|
2903
|
+
try {
|
|
2904
|
+
if (dataUrl) {
|
|
2905
|
+
const payload = value.slice(dataUrl[0].length);
|
|
2906
|
+
source = dataUrl[1] ? new TextDecoder("utf-8", { fatal: true }).decode(Uint8Array.from(atob(payload), (char) => char.charCodeAt(0))) : decodeURIComponent(payload);
|
|
2907
|
+
}
|
|
2908
|
+
source = source.trim();
|
|
2909
|
+
if (new TextEncoder().encode(source).byteLength > 16384 || !isSelfContainedSvg(source)) return null;
|
|
2910
|
+
return `${SESSION_ICON_SVG_DATA_URL_PREFIX}${encodeURIComponent(source)}`;
|
|
2911
|
+
} catch {
|
|
2912
|
+
return null;
|
|
2913
|
+
}
|
|
2914
|
+
}
|
|
2771
2915
|
let sessionIconRe;
|
|
2772
2916
|
function sessionIconPattern() {
|
|
2773
2917
|
if (sessionIconRe === void 0) try {
|
|
@@ -2785,10 +2929,35 @@ function normalizeSessionIconValue(value) {
|
|
|
2785
2929
|
const normalized = value.trim();
|
|
2786
2930
|
if (!normalized) return null;
|
|
2787
2931
|
if (SESSION_ICON_GLYPH_ID_SET.has(normalized)) return normalized;
|
|
2932
|
+
if (normalized.startsWith("<") || /^data:/iu.test(normalized)) return normalizeSessionSvgIcon(normalized);
|
|
2788
2933
|
const pattern = sessionIconPattern();
|
|
2789
2934
|
return (pattern ? pattern.test(normalized) : isSingleNonAsciiGrapheme(normalized)) ? normalized : null;
|
|
2790
2935
|
}
|
|
2791
2936
|
//#endregion
|
|
2937
|
+
//#region ../normalization-core/src/json-schema.ts
|
|
2938
|
+
/** Remove complete false-schema child groups immediately preceding their aggregate. */
|
|
2939
|
+
function normalizeTypeBoxValidationErrors(errors) {
|
|
2940
|
+
const normalized = [];
|
|
2941
|
+
let consecutiveBooleanErrors = 0;
|
|
2942
|
+
for (const error of errors) {
|
|
2943
|
+
if (error.keyword === "boolean") {
|
|
2944
|
+
normalized.push(error);
|
|
2945
|
+
consecutiveBooleanErrors += 1;
|
|
2946
|
+
continue;
|
|
2947
|
+
}
|
|
2948
|
+
const properties = error.params?.additionalProperties;
|
|
2949
|
+
if (error.keyword === "additionalProperties" && typeof error.schemaPath === "string" && typeof error.instancePath === "string" && Array.isArray(properties) && properties.length > 0 && properties.length <= consecutiveBooleanErrors) {
|
|
2950
|
+
if (normalized.slice(-properties.length).every((child, index) => {
|
|
2951
|
+
const property = properties[index];
|
|
2952
|
+
return typeof property === "string" && child.schemaPath === `${error.schemaPath}/additionalProperties` && child.instancePath === `${error.instancePath}/${property}`;
|
|
2953
|
+
})) normalized.length -= properties.length;
|
|
2954
|
+
}
|
|
2955
|
+
normalized.push(error);
|
|
2956
|
+
consecutiveBooleanErrors = 0;
|
|
2957
|
+
}
|
|
2958
|
+
return normalized;
|
|
2959
|
+
}
|
|
2960
|
+
//#endregion
|
|
2792
2961
|
//#region src/protocol-validator.ts
|
|
2793
2962
|
/* @__NO_SIDE_EFFECTS__ */
|
|
2794
2963
|
function lazyCompile(schema, precheck) {
|
|
@@ -2806,7 +2975,7 @@ function lazyCompile(schema, precheck) {
|
|
|
2806
2975
|
}
|
|
2807
2976
|
const current = getCompiled();
|
|
2808
2977
|
const valid = current.Check(data);
|
|
2809
|
-
errors = valid ? null : [...current.Errors(data)];
|
|
2978
|
+
errors = valid ? null : normalizeTypeBoxValidationErrors([...current.Errors(data)]);
|
|
2810
2979
|
return valid;
|
|
2811
2980
|
});
|
|
2812
2981
|
Object.defineProperties(validate, {
|
|
@@ -2827,6 +2996,63 @@ function lazyCompile(schema, precheck) {
|
|
|
2827
2996
|
return validate;
|
|
2828
2997
|
}
|
|
2829
2998
|
//#endregion
|
|
2999
|
+
//#region src/schema/plugin-credentials.ts
|
|
3000
|
+
const closed$1 = { additionalProperties: false };
|
|
3001
|
+
const text$1 = Type.String({
|
|
3002
|
+
minLength: 1,
|
|
3003
|
+
maxLength: 512
|
|
3004
|
+
});
|
|
3005
|
+
const path = Type.Array(Type.Union([text$1, Type.Integer({ minimum: 0 })]), {
|
|
3006
|
+
minItems: 5,
|
|
3007
|
+
maxItems: 32
|
|
3008
|
+
});
|
|
3009
|
+
const PluginCredentialDescriptorSchema = Type.Object({
|
|
3010
|
+
path,
|
|
3011
|
+
label: text$1,
|
|
3012
|
+
envVars: Type.Array(text$1, { maxItems: 32 }),
|
|
3013
|
+
placeholder: Type.Optional(text$1),
|
|
3014
|
+
signupUrl: Type.Optional(text$1),
|
|
3015
|
+
requiresCredential: Type.Optional(Type.Boolean())
|
|
3016
|
+
}, closed$1);
|
|
3017
|
+
const reference = Type.Object({
|
|
3018
|
+
source: Type.Union([
|
|
3019
|
+
Type.Literal("env"),
|
|
3020
|
+
Type.Literal("file"),
|
|
3021
|
+
Type.Literal("exec"),
|
|
3022
|
+
Type.Literal("store")
|
|
3023
|
+
]),
|
|
3024
|
+
provider: text$1,
|
|
3025
|
+
id: Type.String({
|
|
3026
|
+
minLength: 1,
|
|
3027
|
+
maxLength: 4096
|
|
3028
|
+
})
|
|
3029
|
+
}, closed$1);
|
|
3030
|
+
const PluginCredentialInspectionSchema = Type.Union([
|
|
3031
|
+
Type.Object({ kind: Type.Literal("missing") }, closed$1),
|
|
3032
|
+
Type.Object({ kind: Type.Literal("literal") }, closed$1),
|
|
3033
|
+
Type.Object({ kind: Type.Literal("invalid") }, closed$1),
|
|
3034
|
+
Type.Object({
|
|
3035
|
+
kind: Type.Literal("environment"),
|
|
3036
|
+
envVar: text$1
|
|
3037
|
+
}, closed$1),
|
|
3038
|
+
Type.Object({
|
|
3039
|
+
kind: Type.Literal("reference"),
|
|
3040
|
+
ref: reference,
|
|
3041
|
+
unresolved: Type.Boolean()
|
|
3042
|
+
}, closed$1)
|
|
3043
|
+
]);
|
|
3044
|
+
/** An admin can inspect only a credential advertised by this installed plugin, at this revision. */
|
|
3045
|
+
const PluginsCredentialsInspectParamsSchema = Type.Object({
|
|
3046
|
+
pluginId: text$1,
|
|
3047
|
+
path,
|
|
3048
|
+
baseHash: text$1
|
|
3049
|
+
}, closed$1);
|
|
3050
|
+
const PluginsCredentialsInspectResultSchema = Type.Object({
|
|
3051
|
+
baseHash: text$1,
|
|
3052
|
+
credential: PluginCredentialInspectionSchema
|
|
3053
|
+
}, closed$1);
|
|
3054
|
+
const validatePluginsCredentialsInspectParams = /* @__PURE__ */ lazyCompile(PluginsCredentialsInspectParamsSchema);
|
|
3055
|
+
//#endregion
|
|
2830
3056
|
//#region src/schema/plugins.ts
|
|
2831
3057
|
/**
|
|
2832
3058
|
* Plugin control-surface protocol schemas.
|
|
@@ -2851,16 +3077,46 @@ const PluginControlUiDescriptorSchema = closedObject({
|
|
|
2851
3077
|
]),
|
|
2852
3078
|
label: NonEmptyString,
|
|
2853
3079
|
description: Type.Optional(Type.String()),
|
|
3080
|
+
icon: Type.Optional(Type.String()),
|
|
3081
|
+
path: Type.Optional(Type.String()),
|
|
3082
|
+
placement: Type.Optional(Type.String()),
|
|
3083
|
+
group: Type.Optional(Type.Union([Type.Literal("control"), Type.Literal("agent")])),
|
|
3084
|
+
order: Type.Optional(Type.Number()),
|
|
3085
|
+
schema: Type.Optional(PluginJsonValueSchema),
|
|
3086
|
+
requiredScopes: Type.Optional(Type.Array(NonEmptyString))
|
|
3087
|
+
});
|
|
3088
|
+
/** Empty request payload for listing plugin UI descriptors. */
|
|
3089
|
+
const PluginsUiDescriptorsParamsSchema = closedObject({});
|
|
3090
|
+
const ControlUiPluginTabSchema = closedObject({
|
|
3091
|
+
pluginId: NonEmptyString,
|
|
3092
|
+
id: NonEmptyString,
|
|
3093
|
+
label: NonEmptyString,
|
|
3094
|
+
description: Type.Optional(Type.String()),
|
|
3095
|
+
icon: Type.Optional(Type.String()),
|
|
3096
|
+
path: Type.Optional(Type.String()),
|
|
2854
3097
|
placement: Type.Optional(Type.String()),
|
|
2855
|
-
|
|
2856
|
-
|
|
3098
|
+
slug: Type.Optional(Type.String({
|
|
3099
|
+
pattern: "^[a-z0-9]+(?:-[a-z0-9]+)*$",
|
|
3100
|
+
maxLength: 64
|
|
3101
|
+
})),
|
|
3102
|
+
requiresGatewayAuth: Type.Optional(Type.Boolean()),
|
|
3103
|
+
group: Type.Optional(Type.Union([Type.Literal("control"), Type.Literal("agent")])),
|
|
3104
|
+
order: Type.Optional(Type.Number())
|
|
3105
|
+
});
|
|
3106
|
+
const ControlUiPluginWidgetKindSchema = closedObject({
|
|
3107
|
+
pluginId: NonEmptyString,
|
|
3108
|
+
kind: NonEmptyString,
|
|
3109
|
+
label: NonEmptyString
|
|
2857
3110
|
});
|
|
2858
|
-
/** Empty request payload for listing plugin UI descriptors. */
|
|
2859
|
-
const PluginsUiDescriptorsParamsSchema = closedObject({});
|
|
2860
3111
|
/** Response payload containing all plugin UI descriptors visible to the client. */
|
|
2861
3112
|
const PluginsUiDescriptorsResultSchema = closedObject({
|
|
2862
3113
|
ok: Type.Literal(true),
|
|
2863
|
-
descriptors: Type.Array(PluginControlUiDescriptorSchema)
|
|
3114
|
+
descriptors: Type.Array(PluginControlUiDescriptorSchema),
|
|
3115
|
+
generation: Type.Optional(Type.Integer({ minimum: 0 })),
|
|
3116
|
+
methods: Type.Optional(Type.Array(NonEmptyString)),
|
|
3117
|
+
controlUiTabs: Type.Optional(Type.Array(ControlUiPluginTabSchema)),
|
|
3118
|
+
controlUiWidgetKinds: Type.Optional(Type.Array(ControlUiPluginWidgetKindSchema)),
|
|
3119
|
+
pluginSurfaceUrls: Type.Optional(Type.Record(NonEmptyString, NonEmptyString))
|
|
2864
3120
|
});
|
|
2865
3121
|
/** One immutable browser build owned by an active native plugin. */
|
|
2866
3122
|
const PluginControlUiModuleSchema = closedObject({
|
|
@@ -2930,7 +3186,17 @@ const PluginCatalogOfficialInstallSchema = closedObject({
|
|
|
2930
3186
|
pluginId: NonEmptyString
|
|
2931
3187
|
});
|
|
2932
3188
|
const PluginCatalogInstallActionSchema = Type.Union([PluginCatalogClawHubInstallSchema, PluginCatalogOfficialInstallSchema]);
|
|
2933
|
-
/**
|
|
3189
|
+
/** Observed state of the plugin in the current Gateway runtime generation. */
|
|
3190
|
+
const PluginRuntimeStatusSchema = closedObject({
|
|
3191
|
+
state: Type.Union([
|
|
3192
|
+
Type.Literal("unloaded"),
|
|
3193
|
+
Type.Literal("disabled"),
|
|
3194
|
+
Type.Literal("active"),
|
|
3195
|
+
Type.Literal("service-failed")
|
|
3196
|
+
]),
|
|
3197
|
+
error: Type.Optional(Type.String())
|
|
3198
|
+
});
|
|
3199
|
+
/** Catalog metadata and desired enablement, with optional observed runtime state. */
|
|
2934
3200
|
const PluginCatalogEntrySchema = closedObject({
|
|
2935
3201
|
id: NonEmptyString,
|
|
2936
3202
|
name: NonEmptyString,
|
|
@@ -2957,8 +3223,19 @@ const PluginCatalogEntrySchema = closedObject({
|
|
|
2957
3223
|
order: Type.Optional(Type.Number()),
|
|
2958
3224
|
/** True when the gateway can resolve a manifest or catalog icon for this plugin identity. */
|
|
2959
3225
|
hasIcon: Type.Optional(Type.Boolean()),
|
|
3226
|
+
/** True when the installed package supplies a default compact activity glyph. */
|
|
3227
|
+
hasActivityIcon: Type.Optional(Type.Boolean()),
|
|
3228
|
+
/** Exact effective tool IDs with package-owned activity glyph overrides. */
|
|
3229
|
+
activityIconTools: Type.Optional(Type.Array(Type.String({
|
|
3230
|
+
minLength: 1,
|
|
3231
|
+
maxLength: 128,
|
|
3232
|
+
pattern: "^[A-Za-z0-9_][A-Za-z0-9_.-]*$"
|
|
3233
|
+
}), { maxItems: 128 })),
|
|
3234
|
+
/** Channel identities declared by this installed plugin. */
|
|
3235
|
+
channelIds: Type.Optional(Type.Array(NonEmptyString)),
|
|
2960
3236
|
install: Type.Optional(PluginCatalogInstallActionSchema),
|
|
2961
3237
|
error: Type.Optional(Type.String()),
|
|
3238
|
+
runtime: Type.Optional(PluginRuntimeStatusSchema),
|
|
2962
3239
|
/** Ordered package or registry categories; the first category is primary. */
|
|
2963
3240
|
categories: Type.Optional(Type.Array(NonEmptyString, {
|
|
2964
3241
|
minItems: 1,
|
|
@@ -2973,6 +3250,7 @@ const PluginCatalogEntrySchema = closedObject({
|
|
|
2973
3250
|
const PluginsListParamsSchema = closedObject({});
|
|
2974
3251
|
/** Installed and curated plugin catalog visible to the current gateway client. */
|
|
2975
3252
|
const PluginsListResultSchema = closedObject({
|
|
3253
|
+
generation: Type.Optional(Type.Integer({ minimum: 0 })),
|
|
2976
3254
|
plugins: Type.Array(PluginCatalogEntrySchema),
|
|
2977
3255
|
diagnostics: Type.Array(Type.Unknown()),
|
|
2978
3256
|
mutationAllowed: Type.Boolean()
|
|
@@ -3132,6 +3410,10 @@ const PluginDiscoveryCatalogFactsSchema = closedObject({
|
|
|
3132
3410
|
downloads: Type.Optional(Type.Number({ minimum: 0 })),
|
|
3133
3411
|
installs: Type.Optional(Type.Number({ minimum: 0 })),
|
|
3134
3412
|
verificationTier: Type.Optional(NonEmptyString),
|
|
3413
|
+
featured: Type.Optional(Type.Boolean()),
|
|
3414
|
+
trending: Type.Optional(Type.Boolean()),
|
|
3415
|
+
featuredRank: Type.Optional(Type.Integer({ minimum: 0 })),
|
|
3416
|
+
trendingRank: Type.Optional(Type.Integer({ minimum: 0 })),
|
|
3135
3417
|
publishedToClawHub: Type.Optional(Type.Boolean())
|
|
3136
3418
|
});
|
|
3137
3419
|
const PluginDiscoveryLocalFactsSchema = closedObject({
|
|
@@ -3164,6 +3446,7 @@ const PluginDiscoveryEntrySchema = closedObject({
|
|
|
3164
3446
|
});
|
|
3165
3447
|
const PluginsCatalogBrowseParamsSchema = closedObject({
|
|
3166
3448
|
query: Type.Optional(Type.String({ maxLength: 200 })),
|
|
3449
|
+
searchSource: Type.Optional(Type.Literal("openclaw-control-ui")),
|
|
3167
3450
|
intent: Type.Optional(PluginDiscoveryIntentSchema),
|
|
3168
3451
|
category: Type.Optional(Type.String({
|
|
3169
3452
|
minLength: 1,
|
|
@@ -3181,6 +3464,7 @@ const PluginsCatalogBrowseParamsSchema = closedObject({
|
|
|
3181
3464
|
});
|
|
3182
3465
|
const PluginsCatalogBrowseResultSchema = closedObject({
|
|
3183
3466
|
items: Type.Array(PluginDiscoveryEntrySchema),
|
|
3467
|
+
categories: Type.Optional(Type.Array(PluginDiscoveryCategorySchema)),
|
|
3184
3468
|
nextCursor: Type.Optional(Type.String({
|
|
3185
3469
|
minLength: 1,
|
|
3186
3470
|
maxLength: 4096
|
|
@@ -3221,12 +3505,15 @@ const PluginDiscoveryDetailSchema = closedObject({
|
|
|
3221
3505
|
author: Type.Optional(closedObject({
|
|
3222
3506
|
handle: Type.Optional(NonEmptyString),
|
|
3223
3507
|
displayName: Type.Optional(NonEmptyString),
|
|
3224
|
-
imageUrl: Type.Optional(NonEmptyString)
|
|
3508
|
+
imageUrl: Type.Optional(NonEmptyString),
|
|
3509
|
+
official: Type.Optional(Type.Boolean())
|
|
3225
3510
|
})),
|
|
3226
3511
|
topics: Type.Array(NonEmptyString),
|
|
3227
3512
|
createdAt: Type.Optional(Type.Integer({ minimum: 0 })),
|
|
3228
3513
|
updatedAt: Type.Optional(Type.Integer({ minimum: 0 })),
|
|
3229
3514
|
readme: Type.Optional(Type.String({ maxLength: 524288 })),
|
|
3515
|
+
repositoryUrl: Type.Optional(NonEmptyString),
|
|
3516
|
+
documentationUrl: Type.Optional(NonEmptyString),
|
|
3230
3517
|
compatibility: Type.Optional(PluginDiscoveryCompatibilitySchema),
|
|
3231
3518
|
configuration: Type.Array(PluginDiscoveryConfigFieldSchema),
|
|
3232
3519
|
mcpServers: Type.Array(NonEmptyString),
|
|
@@ -3261,6 +3548,10 @@ const PluginInstalledComponentsSchema = closedObject({
|
|
|
3261
3548
|
/** Runtime-supported capability families; item arrays may be empty when names are unavailable. */
|
|
3262
3549
|
mapped: Type.Array(NonEmptyString),
|
|
3263
3550
|
skills: Type.Array(NonEmptyString),
|
|
3551
|
+
skillDetails: Type.Optional(Type.Array(closedObject({
|
|
3552
|
+
name: NonEmptyString,
|
|
3553
|
+
description: Type.Optional(Type.String())
|
|
3554
|
+
}))),
|
|
3264
3555
|
mcpServers: Type.Array(NonEmptyString),
|
|
3265
3556
|
commands: Type.Array(NonEmptyString),
|
|
3266
3557
|
hooks: Type.Array(NonEmptyString),
|
|
@@ -3274,6 +3565,13 @@ const PluginInstalledComponentsSchema = closedObject({
|
|
|
3274
3565
|
/** Consent snapshot plus the installed-version presentation projection used by Control UI. */
|
|
3275
3566
|
const PluginsInspectResultSchema = closedObject({
|
|
3276
3567
|
ok: Type.Literal(true),
|
|
3568
|
+
overview: Type.Optional(closedObject({
|
|
3569
|
+
readme: Type.Optional(Type.String({ maxLength: 524288 })),
|
|
3570
|
+
repositoryUrl: Type.Optional(NonEmptyString),
|
|
3571
|
+
documentationUrl: Type.Optional(NonEmptyString),
|
|
3572
|
+
publisherName: Type.Optional(NonEmptyString)
|
|
3573
|
+
})),
|
|
3574
|
+
credentials: Type.Optional(Type.Array(PluginCredentialDescriptorSchema)),
|
|
3277
3575
|
plugin: closedObject({
|
|
3278
3576
|
id: NonEmptyString,
|
|
3279
3577
|
name: NonEmptyString,
|
|
@@ -3292,37 +3590,126 @@ const PluginsInspectResultSchema = closedObject({
|
|
|
3292
3590
|
/** Exact installed-version ClawHub metadata when a canonical package match exists. */
|
|
3293
3591
|
catalog: Type.Optional(PluginsCatalogGetResultSchema)
|
|
3294
3592
|
});
|
|
3295
|
-
|
|
3296
|
-
|
|
3297
|
-
source: Type.Literal("clawhub"),
|
|
3298
|
-
packageName: NonEmptyString,
|
|
3299
|
-
version: Type.Optional(NonEmptyString),
|
|
3593
|
+
const PluginInstallOptions = {
|
|
3594
|
+
mode: Type.Optional(Type.Union([Type.Literal("install"), Type.Literal("update")])),
|
|
3300
3595
|
acknowledgeInstallPolicyWarning: Type.Optional(Type.Literal(true)),
|
|
3301
3596
|
acknowledgeCapabilities: Type.Optional(PluginCapabilityAcknowledgmentSchema)
|
|
3302
|
-
}
|
|
3303
|
-
|
|
3304
|
-
|
|
3305
|
-
|
|
3306
|
-
|
|
3307
|
-
|
|
3597
|
+
};
|
|
3598
|
+
/** Source intent only; install provenance and capability review remain host-owned. */
|
|
3599
|
+
const PluginsInstallParamsSchema = Type.Union([
|
|
3600
|
+
closedObject({
|
|
3601
|
+
...PluginInstallOptions,
|
|
3602
|
+
source: Type.Literal("clawhub"),
|
|
3603
|
+
packageName: NonEmptyString,
|
|
3604
|
+
version: Type.Optional(NonEmptyString),
|
|
3605
|
+
expectedPluginId: Type.Optional(NonEmptyString),
|
|
3606
|
+
expectedIntegrity: Type.Optional(NonEmptyString)
|
|
3607
|
+
}),
|
|
3608
|
+
closedObject({
|
|
3609
|
+
...PluginInstallOptions,
|
|
3610
|
+
source: Type.Literal("official"),
|
|
3611
|
+
pluginId: NonEmptyString,
|
|
3612
|
+
version: Type.Optional(Type.Literal("latest")),
|
|
3613
|
+
pin: Type.Optional(Type.Boolean())
|
|
3614
|
+
}),
|
|
3615
|
+
closedObject({
|
|
3616
|
+
...PluginInstallOptions,
|
|
3617
|
+
source: Type.Literal("npm"),
|
|
3618
|
+
spec: NonEmptyString,
|
|
3619
|
+
pin: Type.Optional(Type.Boolean()),
|
|
3620
|
+
expectedPluginId: Type.Optional(NonEmptyString),
|
|
3621
|
+
expectedIntegrity: Type.Optional(NonEmptyString)
|
|
3622
|
+
}),
|
|
3623
|
+
closedObject({
|
|
3624
|
+
...PluginInstallOptions,
|
|
3625
|
+
source: Type.Literal("git"),
|
|
3626
|
+
spec: NonEmptyString
|
|
3627
|
+
}),
|
|
3628
|
+
closedObject({
|
|
3629
|
+
...PluginInstallOptions,
|
|
3630
|
+
source: Type.Literal("local"),
|
|
3631
|
+
path: NonEmptyString,
|
|
3632
|
+
link: Type.Optional(Type.Boolean())
|
|
3633
|
+
}),
|
|
3634
|
+
closedObject({
|
|
3635
|
+
...PluginInstallOptions,
|
|
3636
|
+
source: Type.Literal("npm-pack"),
|
|
3637
|
+
archivePath: NonEmptyString
|
|
3638
|
+
}),
|
|
3639
|
+
closedObject({
|
|
3640
|
+
...PluginInstallOptions,
|
|
3641
|
+
source: Type.Literal("marketplace"),
|
|
3642
|
+
marketplace: NonEmptyString,
|
|
3643
|
+
plugin: NonEmptyString
|
|
3644
|
+
}),
|
|
3645
|
+
closedObject({
|
|
3646
|
+
...PluginInstallOptions,
|
|
3647
|
+
source: Type.Literal("bundled"),
|
|
3648
|
+
pluginId: NonEmptyString,
|
|
3649
|
+
spec: Type.Optional(NonEmptyString)
|
|
3650
|
+
})
|
|
3651
|
+
]);
|
|
3652
|
+
/** Receipt emitted only after the requested runtime generation was applied. */
|
|
3653
|
+
const PluginRuntimeApplicationSchema = closedObject({
|
|
3654
|
+
operationId: NonEmptyString,
|
|
3655
|
+
generation: Type.Integer({ minimum: 0 }),
|
|
3656
|
+
pluginIds: Type.Array(NonEmptyString),
|
|
3657
|
+
sourceDigests: Type.Optional(Type.Record(NonEmptyString, NonEmptyString))
|
|
3658
|
+
});
|
|
3659
|
+
const PluginsChangedEventSchema = closedObject({ generation: Type.Integer({ minimum: 0 }) });
|
|
3308
3660
|
/** Successful plugin installation result. */
|
|
3309
3661
|
const PluginsInstallResultSchema = closedObject({
|
|
3310
3662
|
ok: Type.Literal(true),
|
|
3311
3663
|
plugin: PluginCatalogEntrySchema,
|
|
3312
|
-
restartRequired: Type.
|
|
3664
|
+
restartRequired: Type.Boolean(),
|
|
3665
|
+
runtime: Type.Optional(PluginRuntimeApplicationSchema),
|
|
3313
3666
|
warnings: Type.Optional(Type.Array(Type.String()))
|
|
3314
3667
|
});
|
|
3315
3668
|
/** Internal signal that persisted plugin metadata changed outside the Gateway process. */
|
|
3316
3669
|
const PluginsRefreshParamsSchema = closedObject({});
|
|
3317
3670
|
/** Successful plugin metadata refresh admission. */
|
|
3318
|
-
const PluginsRefreshResultSchema = closedObject({
|
|
3671
|
+
const PluginsRefreshResultSchema = closedObject({
|
|
3672
|
+
ok: Type.Literal(true),
|
|
3673
|
+
restartRequired: Type.Optional(Type.Boolean()),
|
|
3674
|
+
runtime: Type.Optional(PluginRuntimeApplicationSchema),
|
|
3675
|
+
warnings: Type.Optional(Type.Array(Type.String()))
|
|
3676
|
+
});
|
|
3677
|
+
/** Reload installed sources without changing their enabled policy. */
|
|
3678
|
+
const MAX_PLUGIN_RELOAD_TARGETS = 64;
|
|
3679
|
+
const PluginReloadTargetSchema = closedObject({
|
|
3680
|
+
pluginId: NonEmptyString,
|
|
3681
|
+
installHash: Type.Optional(Type.String({ pattern: "^[a-f0-9]{64}$" })),
|
|
3682
|
+
sourceDigests: Type.Optional(Type.Record(NonEmptyString, Type.String({ pattern: "^[a-f0-9]{64}$" })))
|
|
3683
|
+
});
|
|
3684
|
+
const PluginsReloadParamsSchema = closedObject({
|
|
3685
|
+
plugins: Type.Array(PluginReloadTargetSchema, {
|
|
3686
|
+
minItems: 1,
|
|
3687
|
+
maxItems: 64,
|
|
3688
|
+
uniqueItems: true
|
|
3689
|
+
}),
|
|
3690
|
+
acknowledgeCapabilities: Type.Optional(PluginCapabilityAcknowledgmentSchema)
|
|
3691
|
+
});
|
|
3692
|
+
const PluginsReloadResultSchema = closedObject({
|
|
3693
|
+
ok: Type.Literal(true),
|
|
3694
|
+
pluginIds: Type.Array(NonEmptyString, {
|
|
3695
|
+
minItems: 1,
|
|
3696
|
+
maxItems: 64
|
|
3697
|
+
}),
|
|
3698
|
+
restartRequired: Type.Literal(false),
|
|
3699
|
+
runtime: PluginRuntimeApplicationSchema,
|
|
3700
|
+
warnings: Type.Optional(Type.Array(Type.String()))
|
|
3701
|
+
});
|
|
3319
3702
|
/** Request payload for removing one installed plugin and its managed files. */
|
|
3320
|
-
const PluginsUninstallParamsSchema = closedObject({
|
|
3703
|
+
const PluginsUninstallParamsSchema = closedObject({
|
|
3704
|
+
pluginId: NonEmptyString,
|
|
3705
|
+
keepFiles: Type.Optional(Type.Boolean())
|
|
3706
|
+
});
|
|
3321
3707
|
/** Successful plugin removal result listing the cleanup actions that ran. */
|
|
3322
3708
|
const PluginsUninstallResultSchema = closedObject({
|
|
3323
3709
|
ok: Type.Literal(true),
|
|
3324
3710
|
pluginId: NonEmptyString,
|
|
3325
|
-
restartRequired: Type.
|
|
3711
|
+
restartRequired: Type.Boolean(),
|
|
3712
|
+
runtime: Type.Optional(PluginRuntimeApplicationSchema),
|
|
3326
3713
|
removed: Type.Array(Type.String()),
|
|
3327
3714
|
warnings: Type.Optional(Type.Array(Type.String()))
|
|
3328
3715
|
});
|
|
@@ -3330,6 +3717,7 @@ const PluginsUninstallResultSchema = closedObject({
|
|
|
3330
3717
|
const PluginsSetEnabledParamsSchema = closedObject({
|
|
3331
3718
|
pluginId: NonEmptyString,
|
|
3332
3719
|
enabled: Type.Boolean(),
|
|
3720
|
+
allowlistPolicy: Type.Optional(Type.Literal("preserve")),
|
|
3333
3721
|
acknowledgeCapabilities: Type.Optional(PluginCapabilityAcknowledgmentSchema)
|
|
3334
3722
|
});
|
|
3335
3723
|
/** Successful plugin enablement policy update. */
|
|
@@ -3337,6 +3725,7 @@ const PluginsSetEnabledResultSchema = closedObject({
|
|
|
3337
3725
|
ok: Type.Literal(true),
|
|
3338
3726
|
plugin: PluginCatalogEntrySchema,
|
|
3339
3727
|
restartRequired: Type.Boolean(),
|
|
3728
|
+
runtime: Type.Optional(PluginRuntimeApplicationSchema),
|
|
3340
3729
|
warnings: Type.Optional(Type.Array(Type.String()))
|
|
3341
3730
|
});
|
|
3342
3731
|
//#endregion
|
|
@@ -4178,6 +4567,7 @@ const WORKER_TRANSCRIPT_COMMIT_PROTOCOL_FEATURE = "worker-transcript-commit-v1";
|
|
|
4178
4567
|
const WORKER_LIVE_EVENT_PROTOCOL_FEATURE = "worker-live-event-v1";
|
|
4179
4568
|
const WORKER_LAUNCH_V2_PROTOCOL_FEATURE = "worker-launch-v2";
|
|
4180
4569
|
const WORKER_EXECUTION_CONTEXT_PROTOCOL_FEATURE = "worker-execution-context-v2";
|
|
4570
|
+
const WORKER_EXECUTION_AUTHORITY_PROTOCOL_FEATURE = "worker-execution-authority-v1";
|
|
4181
4571
|
const WORKER_SESSION_TOOLS_PROTOCOL_FEATURE = "worker-session-tools-v1";
|
|
4182
4572
|
const WORKER_PORTAL_PROTOCOL_FEATURE = "worker-portal-v1";
|
|
4183
4573
|
const WORKER_PROTOCOL_FEATURES = [
|
|
@@ -4187,6 +4577,7 @@ const WORKER_PROTOCOL_FEATURES = [
|
|
|
4187
4577
|
WORKER_TRANSCRIPT_COMMIT_PROTOCOL_FEATURE,
|
|
4188
4578
|
WORKER_LIVE_EVENT_PROTOCOL_FEATURE,
|
|
4189
4579
|
WORKER_EXECUTION_CONTEXT_PROTOCOL_FEATURE,
|
|
4580
|
+
WORKER_EXECUTION_AUTHORITY_PROTOCOL_FEATURE,
|
|
4190
4581
|
WORKER_SESSION_TOOLS_PROTOCOL_FEATURE,
|
|
4191
4582
|
WORKER_PORTAL_PROTOCOL_FEATURE,
|
|
4192
4583
|
WORKER_COMPUTER_PROTOCOL_FEATURE,
|
|
@@ -5188,6 +5579,16 @@ function validateWorkerInferenceTerminalFrame(data) {
|
|
|
5188
5579
|
return isSafeWorkerInferenceJson(data) && Value.Check(WorkerInferenceTerminalFrameSchema, data);
|
|
5189
5580
|
}
|
|
5190
5581
|
//#endregion
|
|
5582
|
+
//#region src/schema/computer.ts
|
|
5583
|
+
const ComputerStatusParamsSchema = closedObject({});
|
|
5584
|
+
const ComputerInvokeParamsSchema = closedObject({
|
|
5585
|
+
command: Type.Enum(["screen.snapshot", "computer.act"]),
|
|
5586
|
+
params: Type.Record(Type.String(), Type.Unknown()),
|
|
5587
|
+
generation: NonEmptyString,
|
|
5588
|
+
timeoutMs: Type.Optional(Type.Integer({ minimum: 1 })),
|
|
5589
|
+
idempotencyKey: NonEmptyString
|
|
5590
|
+
});
|
|
5591
|
+
//#endregion
|
|
5191
5592
|
//#region src/schema/skill-history.ts
|
|
5192
5593
|
const SkillsProposalHistoryStatusParamsSchema = Type.Object({ agentId: Type.Optional(NonEmptyString) }, { additionalProperties: false });
|
|
5193
5594
|
const SkillsProposalHistoryScanParamsSchema = Type.Object({
|
|
@@ -5375,6 +5776,45 @@ const UiCommandParamsSchema = closedObject({
|
|
|
5375
5776
|
});
|
|
5376
5777
|
const UiCommandResultSchema = closedObject({ ok: Type.Boolean() });
|
|
5377
5778
|
//#endregion
|
|
5779
|
+
//#region src/schema/talk-voice.ts
|
|
5780
|
+
const TALK_VOICE_CHANGE_TIMEOUT_MS = 6e4;
|
|
5781
|
+
const target = {
|
|
5782
|
+
sessionKey: Type.Optional(NonEmptyString),
|
|
5783
|
+
voiceSessionId: Type.Optional(NonEmptyString)
|
|
5784
|
+
};
|
|
5785
|
+
const selection = {
|
|
5786
|
+
voiceSessionId: NonEmptyString,
|
|
5787
|
+
sessionKey: NonEmptyString,
|
|
5788
|
+
provider: NonEmptyString,
|
|
5789
|
+
model: Type.Optional(NonEmptyString),
|
|
5790
|
+
voice: Type.Optional(NonEmptyString),
|
|
5791
|
+
voices: Type.Array(NonEmptyString),
|
|
5792
|
+
canChange: Type.Boolean()
|
|
5793
|
+
};
|
|
5794
|
+
const TalkVoiceGetParamsSchema = closedObject(target);
|
|
5795
|
+
const TalkVoiceSetParamsSchema = closedObject({
|
|
5796
|
+
...target,
|
|
5797
|
+
voice: NonEmptyString
|
|
5798
|
+
});
|
|
5799
|
+
const TalkVoiceSelectionSchema = closedObject(selection);
|
|
5800
|
+
const TalkVoiceSetResultSchema = closedObject({
|
|
5801
|
+
...selection,
|
|
5802
|
+
status: Type.Literal("applied")
|
|
5803
|
+
});
|
|
5804
|
+
const TalkVoiceCompleteParamsSchema = closedObject({
|
|
5805
|
+
changeId: NonEmptyString,
|
|
5806
|
+
voiceSessionId: Type.Optional(NonEmptyString),
|
|
5807
|
+
outcome: Type.Union([Type.Literal("ready"), Type.Literal("failed")]),
|
|
5808
|
+
error: Type.Optional(Type.String({ maxLength: 1e3 }))
|
|
5809
|
+
});
|
|
5810
|
+
const TalkVoiceChangeEventSchema = closedObject({
|
|
5811
|
+
changeId: NonEmptyString,
|
|
5812
|
+
voiceSessionId: NonEmptyString,
|
|
5813
|
+
sessionKey: NonEmptyString,
|
|
5814
|
+
voice: NonEmptyString,
|
|
5815
|
+
phase: Type.Union([Type.Literal("requested"), Type.Literal("cancelled")])
|
|
5816
|
+
});
|
|
5817
|
+
//#endregion
|
|
5378
5818
|
//#region src/schema/board.ts
|
|
5379
5819
|
const BoardTabIdSchema = Type.String({ pattern: "^[a-z0-9-]{1,40}$" });
|
|
5380
5820
|
const BoardWidgetNameSchema = Type.String({ pattern: "^[a-z0-9][a-z0-9._-]{0,63}$" });
|
|
@@ -5708,6 +6148,11 @@ const BoardCommandEventSchema = closedObject({
|
|
|
5708
6148
|
});
|
|
5709
6149
|
//#endregion
|
|
5710
6150
|
//#region src/schema/canvas.ts
|
|
6151
|
+
const CANVAS_DOCUMENT_PREVIEW_MAX_BYTES = 262144;
|
|
6152
|
+
const CanvasDocumentPreviewParamsSchema = closedObject({ html: Type.String({
|
|
6153
|
+
maxLength: CANVAS_DOCUMENT_PREVIEW_MAX_BYTES,
|
|
6154
|
+
description: "Caller-owned HTML, limited to 256 KiB of UTF-8 data by the Gateway."
|
|
6155
|
+
}) });
|
|
5711
6156
|
const CanvasDocumentViewParamsSchema = closedObject({ docId: Type.String({
|
|
5712
6157
|
minLength: 1,
|
|
5713
6158
|
maxLength: 256,
|
|
@@ -6013,6 +6458,18 @@ const driver = closedObject({
|
|
|
6013
6458
|
maxLength: 128
|
|
6014
6459
|
})
|
|
6015
6460
|
});
|
|
6461
|
+
const snapshotLocation = closedObject({
|
|
6462
|
+
kind: Type.Enum([
|
|
6463
|
+
"explicit-tmpdir",
|
|
6464
|
+
"state-volume",
|
|
6465
|
+
"system-tmpdir"
|
|
6466
|
+
]),
|
|
6467
|
+
directory: text
|
|
6468
|
+
});
|
|
6469
|
+
const snapshotBytes = Type.Integer({
|
|
6470
|
+
minimum: 0,
|
|
6471
|
+
maximum: Number.MAX_SAFE_INTEGER
|
|
6472
|
+
});
|
|
6016
6473
|
/** Wire projection of the canonical update ledger record. */
|
|
6017
6474
|
const UpdateRunRecordSchema = closedObject({
|
|
6018
6475
|
runId,
|
|
@@ -6055,7 +6512,45 @@ const UpdateRunRecordSchema = closedObject({
|
|
|
6055
6512
|
status: Type.Enum(UPDATE_RUN_STEP_STATUSES),
|
|
6056
6513
|
startedAtMs: Type.Optional(timestamp),
|
|
6057
6514
|
endedAtMs: Type.Optional(timestamp),
|
|
6058
|
-
|
|
6515
|
+
exitCode: Type.Optional(Type.Union([Type.Integer(), Type.Null()])),
|
|
6516
|
+
detail: Type.Optional(text),
|
|
6517
|
+
failureFacts: Type.Optional(Type.Array(closedObject({
|
|
6518
|
+
check: Type.String({ maxLength: 128 }),
|
|
6519
|
+
code: Type.String({ maxLength: 80 }),
|
|
6520
|
+
message: Type.Optional(Type.String({ maxLength: 200 })),
|
|
6521
|
+
affectedKey: Type.Optional(Type.String({ maxLength: 128 })),
|
|
6522
|
+
pluginId: Type.Optional(Type.String({ maxLength: 80 }))
|
|
6523
|
+
}), { maxItems: 5 })),
|
|
6524
|
+
configChange: Type.Optional(Type.Union([closedObject({
|
|
6525
|
+
kind: Type.Literal("key"),
|
|
6526
|
+
key: text
|
|
6527
|
+
}), closedObject({
|
|
6528
|
+
kind: Type.Literal("migration"),
|
|
6529
|
+
message: text
|
|
6530
|
+
})])),
|
|
6531
|
+
configWriteRefusal: Type.Optional(closedObject({
|
|
6532
|
+
reason: text,
|
|
6533
|
+
message: text,
|
|
6534
|
+
keys: Type.Array(text, { maxItems: 32 })
|
|
6535
|
+
})),
|
|
6536
|
+
snapshotCapacity: Type.Optional(closedObject({
|
|
6537
|
+
sqliteBytes: snapshotBytes,
|
|
6538
|
+
pluginBytes: Type.Union([snapshotBytes, Type.Null()]),
|
|
6539
|
+
requiredBytes: snapshotBytes,
|
|
6540
|
+
reason: Type.Enum([
|
|
6541
|
+
"explicit-tmpdir",
|
|
6542
|
+
"state-volume",
|
|
6543
|
+
"system-tmpdir",
|
|
6544
|
+
"snapshot-capacity-insufficient",
|
|
6545
|
+
"snapshot-location-unavailable"
|
|
6546
|
+
]),
|
|
6547
|
+
candidates: Type.Array(closedObject({
|
|
6548
|
+
...snapshotLocation.properties,
|
|
6549
|
+
availableBytes: Type.Union([snapshotBytes, Type.Null()]),
|
|
6550
|
+
allocationError: Type.Optional(text)
|
|
6551
|
+
}), { maxItems: 3 }),
|
|
6552
|
+
selection: Type.Union([snapshotLocation, Type.Null()])
|
|
6553
|
+
}))
|
|
6059
6554
|
}), { maxItems: 128 }),
|
|
6060
6555
|
verification: closedObject({
|
|
6061
6556
|
booted: Type.Optional(Type.Boolean()),
|
|
@@ -6364,6 +6859,12 @@ const ConfigUiHintSchema = closedObject({
|
|
|
6364
6859
|
docsUrl: Type.Optional(Type.String()),
|
|
6365
6860
|
tags: Type.Optional(Type.Array(Type.String())),
|
|
6366
6861
|
group: Type.Optional(Type.String()),
|
|
6862
|
+
groups: Type.Optional(Type.Array(closedObject({
|
|
6863
|
+
id: NonEmptyString,
|
|
6864
|
+
title: NonEmptyString,
|
|
6865
|
+
order: Type.Optional(Type.Integer()),
|
|
6866
|
+
properties: Type.Array(NonEmptyString)
|
|
6867
|
+
}))),
|
|
6367
6868
|
order: Type.Optional(Type.Integer()),
|
|
6368
6869
|
advanced: Type.Optional(Type.Boolean()),
|
|
6369
6870
|
sensitive: Type.Optional(Type.Boolean()),
|
|
@@ -6524,6 +7025,31 @@ const GatewaySuspendHandoffResultSchema = closedObject({
|
|
|
6524
7025
|
expiresAtMs: CountSchema
|
|
6525
7026
|
});
|
|
6526
7027
|
//#endregion
|
|
7028
|
+
//#region src/schema/runtime-vitals.ts
|
|
7029
|
+
/** Process observations shared by health snapshots and host resource polling. */
|
|
7030
|
+
const GatewayEventLoopHealthSchema = closedObject({
|
|
7031
|
+
degraded: Type.Boolean(),
|
|
7032
|
+
degradedSinceMs: Type.Optional(Type.Union([Type.Integer({ minimum: 0 }), Type.Null()])),
|
|
7033
|
+
reasons: Type.Array(Type.Union([
|
|
7034
|
+
Type.Literal("event_loop_delay"),
|
|
7035
|
+
Type.Literal("event_loop_utilization"),
|
|
7036
|
+
Type.Literal("cpu")
|
|
7037
|
+
])),
|
|
7038
|
+
intervalMs: Type.Number({ minimum: 0 }),
|
|
7039
|
+
delayP99Ms: Type.Number({ minimum: 0 }),
|
|
7040
|
+
delayMaxMs: Type.Number({ minimum: 0 }),
|
|
7041
|
+
utilization: Type.Number({ minimum: 0 }),
|
|
7042
|
+
cpuCoreRatio: Type.Number({ minimum: 0 })
|
|
7043
|
+
});
|
|
7044
|
+
const GatewayProcessMemorySchema = closedObject({
|
|
7045
|
+
rssBytes: Type.Integer({ minimum: 0 }),
|
|
7046
|
+
heapUsedBytes: Type.Integer({ minimum: 0 }),
|
|
7047
|
+
heapTotalBytes: Type.Integer({ minimum: 0 }),
|
|
7048
|
+
externalBytes: Type.Optional(Type.Integer({ minimum: 0 })),
|
|
7049
|
+
/** Included in externalBytes, not an additional memory category. */
|
|
7050
|
+
arrayBuffersBytes: Type.Optional(Type.Integer({ minimum: 0 }))
|
|
7051
|
+
});
|
|
7052
|
+
//#endregion
|
|
6527
7053
|
//#region src/schema/snapshot.ts
|
|
6528
7054
|
/**
|
|
6529
7055
|
* Gateway state snapshot schemas.
|
|
@@ -6534,6 +7060,7 @@ const GatewaySuspendHandoffResultSchema = closedObject({
|
|
|
6534
7060
|
/** One gateway-visible presence record for a node/client/runtime. */
|
|
6535
7061
|
const PresenceEntrySchema = closedObject({
|
|
6536
7062
|
host: Type.Optional(NonEmptyString),
|
|
7063
|
+
clientId: Type.Optional(NonEmptyString),
|
|
6537
7064
|
ip: Type.Optional(NonEmptyString),
|
|
6538
7065
|
version: Type.Optional(NonEmptyString),
|
|
6539
7066
|
platform: Type.Optional(NonEmptyString),
|
|
@@ -6578,20 +7105,7 @@ const HealthSnapshotSchema = closedObject({
|
|
|
6578
7105
|
ok: Type.Optional(Type.Literal(true)),
|
|
6579
7106
|
ts: Type.Optional(Type.Integer({ minimum: 0 })),
|
|
6580
7107
|
durationMs: Type.Optional(Type.Integer({ minimum: 0 })),
|
|
6581
|
-
eventLoop: Type.Optional(
|
|
6582
|
-
degraded: Type.Boolean(),
|
|
6583
|
-
degradedSinceMs: Type.Optional(Type.Union([Type.Integer({ minimum: 0 }), Type.Null()])),
|
|
6584
|
-
reasons: Type.Array(Type.Union([
|
|
6585
|
-
Type.Literal("event_loop_delay"),
|
|
6586
|
-
Type.Literal("event_loop_utilization"),
|
|
6587
|
-
Type.Literal("cpu")
|
|
6588
|
-
])),
|
|
6589
|
-
intervalMs: Type.Number({ minimum: 0 }),
|
|
6590
|
-
delayP99Ms: Type.Number({ minimum: 0 }),
|
|
6591
|
-
delayMaxMs: Type.Number({ minimum: 0 }),
|
|
6592
|
-
utilization: Type.Number({ minimum: 0 }),
|
|
6593
|
-
cpuCoreRatio: Type.Number({ minimum: 0 })
|
|
6594
|
-
})),
|
|
7108
|
+
eventLoop: Type.Optional(GatewayEventLoopHealthSchema),
|
|
6595
7109
|
plugins: Type.Optional(closedObject({
|
|
6596
7110
|
loaded: Type.Array(Type.String()),
|
|
6597
7111
|
errors: Type.Array(closedObject({
|
|
@@ -6725,29 +7239,6 @@ const SnapshotSchema = closedObject({
|
|
|
6725
7239
|
updateSchedule: Type.Optional(UpdateScheduleStateSchema)
|
|
6726
7240
|
});
|
|
6727
7241
|
//#endregion
|
|
6728
|
-
//#region src/server-capabilities.ts
|
|
6729
|
-
/** Stable feature names advertised in Gateway hello responses. */
|
|
6730
|
-
const GATEWAY_SERVER_CAPS = {
|
|
6731
|
-
BOARD_WIDGET_PUT_CANVAS_DOC: "board-widget-put-canvas-doc",
|
|
6732
|
-
CHAT_SEND_ROUTING_CONTRACT: "chat-send-routing-contract",
|
|
6733
|
-
GATEWAY_RESTART_TARGET_SAFE: "gateway-restart-target-safe-v1",
|
|
6734
|
-
NODE_WORKER_BUNDLE_RETENTION: "node-worker-bundle-retention-v1",
|
|
6735
|
-
NODE_WORKER_BUNDLE_STATUS: "node-worker-bundle-status-v1",
|
|
6736
|
-
NODE_WORKER_ENVIRONMENT_SESSION: "node-worker-environment-session-v1",
|
|
6737
|
-
NODE_WORKER_PORTAL_STREAM: "node-worker-portal-stream-v1",
|
|
6738
|
-
PUBLISHED_MODEL_CATALOG: "published-model-catalog",
|
|
6739
|
-
PROGRESS_CARD_AGENT_SCOPE: "progress-card-agent-scope-v1",
|
|
6740
|
-
SESSION_SCOPED_CHAT_METADATA: "session-scoped-chat-metadata",
|
|
6741
|
-
SESSION_SCOPED_MODEL_CATALOG: "session-scoped-model-catalog",
|
|
6742
|
-
SESSION_UNREAD_ACK_CONTRACT: "session-unread-ack-contract",
|
|
6743
|
-
SESSION_GOAL_START: "session-goal-start-v1",
|
|
6744
|
-
SESSION_SETTINGS_CONTRACT: "session-settings-contract",
|
|
6745
|
-
SESSION_SETTINGS_CAS: "session-settings-cas-v1",
|
|
6746
|
-
SYSTEM_AGENT_WIZARD_CANCEL: "openclaw-chat-wizard-cancel",
|
|
6747
|
-
SYSTEM_AGENT_SETUP_MODEL_REF: "openclaw-setup-model-ref",
|
|
6748
|
-
TASK_SUGGESTIONS_ACCEPT_MODES: "taskSuggestions.acceptModes"
|
|
6749
|
-
};
|
|
6750
|
-
//#endregion
|
|
6751
7242
|
//#region src/schema/frames.ts
|
|
6752
7243
|
/**
|
|
6753
7244
|
* Top-level gateway frame schemas.
|
|
@@ -6795,6 +7286,15 @@ const ConnectParamsSchema = closedObject({
|
|
|
6795
7286
|
pathEnv: Type.Optional(Type.String()),
|
|
6796
7287
|
role: Type.Optional(NonEmptyString),
|
|
6797
7288
|
scopes: Type.Optional(Type.Array(NonEmptyString)),
|
|
7289
|
+
/** Initial catalog read scope; method authorization still owns access. */
|
|
7290
|
+
modelCatalog: Type.Optional(Type.Union([closedObject({
|
|
7291
|
+
agentId: Type.Optional(NonEmptyString),
|
|
7292
|
+
sessionKey: Type.Optional(NonEmptyString)
|
|
7293
|
+
}), closedObject({
|
|
7294
|
+
agentId: Type.Optional(NonEmptyString),
|
|
7295
|
+
shortId: NonEmptyString,
|
|
7296
|
+
slugHint: Type.Optional(NonEmptyString)
|
|
7297
|
+
})])),
|
|
6798
7298
|
device: Type.Optional(closedObject({
|
|
6799
7299
|
id: NonEmptyString,
|
|
6800
7300
|
publicKey: NonEmptyString,
|
|
@@ -6837,27 +7337,8 @@ const HelloOkSchema = closedObject({
|
|
|
6837
7337
|
}),
|
|
6838
7338
|
snapshot: SnapshotSchema,
|
|
6839
7339
|
controlUiUrl: Type.Optional(NonEmptyString),
|
|
6840
|
-
controlUiTabs: Type.Optional(Type.Array(
|
|
6841
|
-
|
|
6842
|
-
id: NonEmptyString,
|
|
6843
|
-
label: NonEmptyString,
|
|
6844
|
-
description: Type.Optional(Type.String()),
|
|
6845
|
-
icon: Type.Optional(Type.String()),
|
|
6846
|
-
path: Type.Optional(Type.String()),
|
|
6847
|
-
placement: Type.Optional(Type.String()),
|
|
6848
|
-
slug: Type.Optional(Type.String({
|
|
6849
|
-
pattern: "^[a-z0-9]+(?:-[a-z0-9]+)*$",
|
|
6850
|
-
maxLength: 64
|
|
6851
|
-
})),
|
|
6852
|
-
requiresGatewayAuth: Type.Optional(Type.Boolean()),
|
|
6853
|
-
group: Type.Optional(Type.Union([Type.Literal("control"), Type.Literal("agent")])),
|
|
6854
|
-
order: Type.Optional(Type.Number())
|
|
6855
|
-
}))),
|
|
6856
|
-
controlUiWidgetKinds: Type.Optional(Type.Array(closedObject({
|
|
6857
|
-
pluginId: NonEmptyString,
|
|
6858
|
-
kind: NonEmptyString,
|
|
6859
|
-
label: NonEmptyString
|
|
6860
|
-
}))),
|
|
7340
|
+
controlUiTabs: Type.Optional(Type.Array(ControlUiPluginTabSchema)),
|
|
7341
|
+
controlUiWidgetKinds: Type.Optional(Type.Array(ControlUiPluginWidgetKindSchema)),
|
|
6861
7342
|
pluginSurfaceUrls: Type.Optional(Type.Record(NonEmptyString, NonEmptyString)),
|
|
6862
7343
|
auth: closedObject({
|
|
6863
7344
|
method: Type.Optional(Type.Union([
|
|
@@ -6908,7 +7389,8 @@ const RequestFrameSchema = closedObject({
|
|
|
6908
7389
|
id: NonEmptyString,
|
|
6909
7390
|
method: NonEmptyString,
|
|
6910
7391
|
params: Type.Optional(Type.Unknown()),
|
|
6911
|
-
traceparent: Type.Optional(Type.String({ maxLength: 128 }))
|
|
7392
|
+
traceparent: Type.Optional(Type.String({ maxLength: 128 })),
|
|
7393
|
+
expectedProfileId: Type.Optional(UserProfileIdSchema)
|
|
6912
7394
|
});
|
|
6913
7395
|
/** Server response frame envelope paired with a prior request id. */
|
|
6914
7396
|
const ResponseFrameSchema = closedObject({
|
|
@@ -6924,7 +7406,8 @@ const EventFrameSchema = closedObject({
|
|
|
6924
7406
|
event: NonEmptyString,
|
|
6925
7407
|
payload: Type.Optional(Type.Unknown()),
|
|
6926
7408
|
seq: Type.Optional(Type.Integer({ minimum: 0 })),
|
|
6927
|
-
stateVersion: Type.Optional(StateVersionSchema)
|
|
7409
|
+
stateVersion: Type.Optional(StateVersionSchema),
|
|
7410
|
+
recipientProfileId: Type.Optional(UserProfileIdSchema)
|
|
6928
7411
|
});
|
|
6929
7412
|
const GatewayFrameSchema = Type.Union([
|
|
6930
7413
|
RequestFrameSchema,
|
|
@@ -7333,6 +7816,7 @@ const ChatRunStartupPhaseSchema = Type.Union([
|
|
|
7333
7816
|
Type.Literal("running_setup"),
|
|
7334
7817
|
Type.Literal("provisioning_environment"),
|
|
7335
7818
|
Type.Literal("preparing_context"),
|
|
7819
|
+
Type.Literal("memory_flushing"),
|
|
7336
7820
|
Type.Literal("starting_model")
|
|
7337
7821
|
]);
|
|
7338
7822
|
/** Transient working status; only the run owner publishes terminal failures. */
|
|
@@ -7449,6 +7933,7 @@ const SessionsCreateParamsSchema = closedObject({
|
|
|
7449
7933
|
})),
|
|
7450
7934
|
category: Type.Optional(SessionLabelString),
|
|
7451
7935
|
model: Type.Optional(NonEmptyString),
|
|
7936
|
+
agentRuntime: Type.Optional(NonEmptyString),
|
|
7452
7937
|
contextWindow: Type.Optional(NonEmptyString),
|
|
7453
7938
|
thinkingLevel: Type.Optional(NonEmptyString),
|
|
7454
7939
|
fastMode: Type.Optional(Type.Union([Type.Boolean(), Type.Literal("auto")])),
|
|
@@ -7483,6 +7968,7 @@ const SessionsCreateParamsSchema = closedObject({
|
|
|
7483
7968
|
/** Remote-owned source; create, dispatch, then send the initial turn. */
|
|
7484
7969
|
repository: Type.Optional(SessionRepositorySourceSchema),
|
|
7485
7970
|
worktree: Type.Optional(Type.Boolean()),
|
|
7971
|
+
worktreeSource: Type.Optional(Type.Literal("empty", { description: "Start a fresh isolated workspace without copying a repository or agent workspace. Requires worktree=true; cannot be combined with cwd, project, repository, catalog, execNode, or worktreeBaseRef." })),
|
|
7486
7972
|
worktreeBaseRef: Type.Optional(Type.String({
|
|
7487
7973
|
minLength: 1,
|
|
7488
7974
|
description: "Base ref for the new managed worktree branch. Requires worktree=true."
|
|
@@ -7521,6 +8007,29 @@ const SessionsRecoverResultSchema = closedObject({
|
|
|
7521
8007
|
continuation: SessionRecoveryContinuationOutcomeSchema
|
|
7522
8008
|
});
|
|
7523
8009
|
//#endregion
|
|
8010
|
+
//#region src/schema/sessions-storage.ts
|
|
8011
|
+
const SessionsStorageParamsSchema = closedObject({});
|
|
8012
|
+
const SessionsStorageStatusResultSchema = closedObject({
|
|
8013
|
+
agents: Type.Array(closedObject({
|
|
8014
|
+
agentId: NonEmptyString,
|
|
8015
|
+
storePath: NonEmptyString,
|
|
8016
|
+
hotTranscripts: Type.Integer({ minimum: 0 }),
|
|
8017
|
+
coldTranscripts: Type.Integer({ minimum: 0 }),
|
|
8018
|
+
databaseBytes: Type.Integer({ minimum: 0 }),
|
|
8019
|
+
walBytes: Type.Integer({ minimum: 0 }),
|
|
8020
|
+
archiveBytes: Type.Integer({ minimum: 0 }),
|
|
8021
|
+
embeddedArchiveBytes: Type.Integer({ minimum: 0 })
|
|
8022
|
+
})),
|
|
8023
|
+
maintenance: closedObject({
|
|
8024
|
+
running: Type.Boolean(),
|
|
8025
|
+
lastStartedAt: Type.Union([Type.Integer({ minimum: 0 }), Type.Null()]),
|
|
8026
|
+
lastCompletedAt: Type.Union([Type.Integer({ minimum: 0 }), Type.Null()]),
|
|
8027
|
+
lastError: Type.Union([Type.String(), Type.Null()]),
|
|
8028
|
+
archivedTranscripts: Type.Integer({ minimum: 0 }),
|
|
8029
|
+
externalizedTranscripts: Type.Integer({ minimum: 0 })
|
|
8030
|
+
})
|
|
8031
|
+
});
|
|
8032
|
+
//#endregion
|
|
7524
8033
|
//#region src/schema/sessions-title.ts
|
|
7525
8034
|
/** Optional creation-only inference; never creates or renames a session. */
|
|
7526
8035
|
const SessionsTitlePrepareParamsSchema = closedObject({
|
|
@@ -7619,14 +8128,21 @@ const SessionsListParamsSchema = closedObject({
|
|
|
7619
8128
|
/** Maximum rows to return; omitted Gateway RPC calls use a bounded default. */
|
|
7620
8129
|
limit: Type.Optional(Type.Integer({ minimum: 1 })),
|
|
7621
8130
|
offset: Type.Optional(Type.Integer({ minimum: 0 })),
|
|
8131
|
+
/** Activity age for sortBy: "activity"; otherwise metadata update age. */
|
|
7622
8132
|
activeMinutes: Type.Optional(Type.Integer({ minimum: 1 })),
|
|
7623
8133
|
/** Select sessions with current direct running or queued work before pagination. */
|
|
7624
8134
|
activeOnly: Type.Optional(Type.Boolean()),
|
|
7625
8135
|
/** Require a real user/channel interaction; excludes synthetic isolated heartbeat rows. */
|
|
7626
8136
|
requireLastInteraction: Type.Optional(Type.Boolean()),
|
|
7627
|
-
sortBy: Type.Optional(Type.Union([
|
|
8137
|
+
sortBy: Type.Optional(Type.Union([
|
|
8138
|
+
Type.Literal("updatedAt"),
|
|
8139
|
+
Type.Literal("lastInteractionAt"),
|
|
8140
|
+
Type.Literal("activity")
|
|
8141
|
+
])),
|
|
7628
8142
|
includeGlobal: Type.Optional(Type.Boolean()),
|
|
7629
8143
|
includeUnknown: Type.Optional(Type.Boolean()),
|
|
8144
|
+
/** Exclude subagent sessions before facets and pagination. */
|
|
8145
|
+
excludeSubagents: Type.Optional(Type.Boolean()),
|
|
7630
8146
|
/** Limit agent-scoped rows to agents currently present in config. */
|
|
7631
8147
|
configuredAgentsOnly: Type.Optional(Type.Boolean()),
|
|
7632
8148
|
/**
|
|
@@ -7639,7 +8155,17 @@ const SessionsListParamsSchema = closedObject({
|
|
|
7639
8155
|
* The returned short preview excludes tool, system, reasoning, and silent rows.
|
|
7640
8156
|
*/
|
|
7641
8157
|
includeLastMessage: Type.Optional(Type.Boolean()),
|
|
8158
|
+
/** Include the durable Activity recap and its canonical transcript freshness. */
|
|
8159
|
+
includeActivitySummary: Type.Optional(Type.Boolean()),
|
|
7642
8160
|
label: Type.Optional(SessionLabelString),
|
|
8161
|
+
/** Exact project registry association stored on the session, not its repository workspace ID. */
|
|
8162
|
+
projectId: Type.Optional(NonEmptyString),
|
|
8163
|
+
/** Exact stored task cwd, falling back to the stored spawned workspace; never resolves paths. */
|
|
8164
|
+
workspaceDir: Type.Optional(NonEmptyString),
|
|
8165
|
+
/** Exact custom sidebar category; an empty string selects ungrouped sessions. */
|
|
8166
|
+
group: Type.Optional(Type.String()),
|
|
8167
|
+
/** Filter by the canonical root-session pin state. */
|
|
8168
|
+
pinned: Type.Optional(Type.Boolean()),
|
|
7643
8169
|
/** Limit rows to sessions with an explicitly stored Control UI face preference. */
|
|
7644
8170
|
boardFace: Type.Optional(Type.Union([Type.Literal("chat"), Type.Literal("dashboard")])),
|
|
7645
8171
|
/** Limit rows by whether a persisted session dashboard exists. */
|
|
@@ -7652,6 +8178,15 @@ const SessionsListParamsSchema = closedObject({
|
|
|
7652
8178
|
ownerFirst: Type.Optional(Type.Boolean()),
|
|
7653
8179
|
/** Limit rows to sessions owned by or previously prompted by the authenticated viewer. */
|
|
7654
8180
|
involvingMe: Type.Optional(Type.Boolean()),
|
|
8181
|
+
/** Qualified human-profile relationship, independent of id-only actor filters. */
|
|
8182
|
+
profileRelation: Type.Optional(closedObject({
|
|
8183
|
+
profileId: NonEmptyString,
|
|
8184
|
+
relationship: Type.Union([
|
|
8185
|
+
Type.Literal("owned"),
|
|
8186
|
+
Type.Literal("created"),
|
|
8187
|
+
Type.Literal("involving")
|
|
8188
|
+
])
|
|
8189
|
+
})),
|
|
7655
8190
|
/** Profile association filter, applied to visible retained identities before pagination. */
|
|
7656
8191
|
involvingProfileId: Type.Optional(NonEmptyString),
|
|
7657
8192
|
/** Include a bounded people facet over visible matching sessions before the profile filter. */
|
|
@@ -7719,6 +8254,12 @@ const SessionsPatchMutationProperties = {
|
|
|
7719
8254
|
/** User-defined organization bucket ("category", not chat-group); null clears it. */
|
|
7720
8255
|
category: Type.Optional(Type.Union([SessionLabelString, Type.Null()])),
|
|
7721
8256
|
boardFace: Type.Optional(Type.Union([Type.Literal("chat"), Type.Literal("dashboard")])),
|
|
8257
|
+
/** Shared dashboard default; null restores the built-in split view. */
|
|
8258
|
+
boardPresentation: Type.Optional(Type.Union([
|
|
8259
|
+
Type.Literal("split"),
|
|
8260
|
+
Type.Literal("expanded"),
|
|
8261
|
+
Type.Null()
|
|
8262
|
+
])),
|
|
7722
8263
|
statusNote: Type.Optional(Type.Union([Type.String({ maxLength: 120 }), Type.Null()], { description: "Short expiring sidebar status note; null clears it and any declared attention." })),
|
|
7723
8264
|
attention: Type.Optional(Type.Union([Type.String({ enum: [...SESSION_AGENT_ATTENTION_ICON_IDS] }), Type.Null()])),
|
|
7724
8265
|
ttlMinutes: Type.Optional(Type.Integer({
|
|
@@ -7753,6 +8294,8 @@ const SessionsPatchMutationProperties = {
|
|
|
7753
8294
|
execNode: Type.Optional(Type.Union([NonEmptyString, Type.Null()])),
|
|
7754
8295
|
permissionMode: Type.Optional(Type.Union([SessionPermissionModeSchema, Type.Null()])),
|
|
7755
8296
|
model: Type.Optional(Type.Union([NonEmptyString, Type.Null()])),
|
|
8297
|
+
/** Explicit runtime for the selected model; null follows configured routing. */
|
|
8298
|
+
agentRuntime: Type.Optional(Type.Union([NonEmptyString, Type.Null()])),
|
|
7756
8299
|
completionOwnerSessionKey: Type.Optional(Type.Union([NonEmptyString, Type.Null()])),
|
|
7757
8300
|
inheritedToolPolicyVersion: Type.Optional(Type.Union([Type.Literal(1), Type.Null()])),
|
|
7758
8301
|
inheritedToolAllow: Type.Optional(Type.Union([Type.Array(NonEmptyString), Type.Null()])),
|
|
@@ -8147,6 +8690,7 @@ const SessionsSearchHitSchema = closedObject({
|
|
|
8147
8690
|
const SessionsSearchResultSchema = closedObject({
|
|
8148
8691
|
results: Type.Array(SessionsSearchHitSchema),
|
|
8149
8692
|
indexing: Type.Optional(Type.Boolean()),
|
|
8693
|
+
archivedTranscriptsExcluded: Type.Optional(Type.Integer({ minimum: 0 })),
|
|
8150
8694
|
truncated: Type.Optional(Type.Boolean())
|
|
8151
8695
|
});
|
|
8152
8696
|
/** Repairs or removes invalid session records from the selected agent scope. */
|
|
@@ -8238,7 +8782,8 @@ const SessionsPluginPatchResultSchema = closedObject({
|
|
|
8238
8782
|
const SessionsResetParamsSchema = closedObject({
|
|
8239
8783
|
key: NonEmptyString,
|
|
8240
8784
|
agentId: Type.Optional(NonEmptyString),
|
|
8241
|
-
reason: Type.Optional(Type.Union([Type.Literal("new"), Type.Literal("reset")]))
|
|
8785
|
+
reason: Type.Optional(Type.Union([Type.Literal("new"), Type.Literal("reset")])),
|
|
8786
|
+
expectedSessionId: Type.Optional(NonEmptyString)
|
|
8242
8787
|
});
|
|
8243
8788
|
/** Reassigns mutable session responsibility without changing provenance or sharing authority. */
|
|
8244
8789
|
const SessionsAssignOwnerParamsSchema = closedObject({
|
|
@@ -8659,6 +9204,36 @@ const TaskDeliveryStatusSchema = Type.Union([
|
|
|
8659
9204
|
Type.Literal("not_applicable")
|
|
8660
9205
|
]);
|
|
8661
9206
|
const TaskTerminalOutcomeSchema = Type.Union([Type.Literal("succeeded"), Type.Literal("blocked")]);
|
|
9207
|
+
const TaskExecutionSchema = closedObject({
|
|
9208
|
+
state: Type.Union([
|
|
9209
|
+
Type.Literal("queued"),
|
|
9210
|
+
Type.Literal("running"),
|
|
9211
|
+
Type.Literal("waiting"),
|
|
9212
|
+
Type.Literal("finished"),
|
|
9213
|
+
Type.Literal("unknown")
|
|
9214
|
+
]),
|
|
9215
|
+
currentTool: Type.Optional(closedObject({
|
|
9216
|
+
name: Type.String(),
|
|
9217
|
+
startedAt: TimestampSchema
|
|
9218
|
+
})),
|
|
9219
|
+
lastActivityAt: Type.Optional(TimestampSchema),
|
|
9220
|
+
wait: Type.Optional(closedObject({
|
|
9221
|
+
kind: Type.Union([
|
|
9222
|
+
Type.Literal("children"),
|
|
9223
|
+
Type.Literal("external"),
|
|
9224
|
+
Type.Literal("agent_messages"),
|
|
9225
|
+
Type.Literal("approval"),
|
|
9226
|
+
Type.Literal("user_input")
|
|
9227
|
+
]),
|
|
9228
|
+
dependencies: Type.Optional(Type.Array(closedObject({
|
|
9229
|
+
runId: NonEmptyString,
|
|
9230
|
+
sessionKey: Type.Optional(Type.String()),
|
|
9231
|
+
taskId: Type.Optional(Type.String()),
|
|
9232
|
+
label: Type.Optional(Type.String())
|
|
9233
|
+
}), { maxItems: 100 })),
|
|
9234
|
+
pendingCount: Type.Optional(Type.Integer({ minimum: 0 }))
|
|
9235
|
+
}))
|
|
9236
|
+
});
|
|
8662
9237
|
const TaskListSortBySchema = Type.Unsafe({
|
|
8663
9238
|
type: "string",
|
|
8664
9239
|
enum: ["updatedAt", "endedAt"]
|
|
@@ -8691,6 +9266,7 @@ const TaskSummarySchema = closedObject({
|
|
|
8691
9266
|
endedAt: Type.Optional(TimestampSchema),
|
|
8692
9267
|
toolUseCount: Type.Optional(Type.Integer({ minimum: 0 })),
|
|
8693
9268
|
lastToolName: Type.Optional(Type.String()),
|
|
9269
|
+
execution: Type.Optional(withSince("2026.9", TaskExecutionSchema)),
|
|
8694
9270
|
lastActivity: Type.Optional(withSince("2026.8", Type.String({ maxLength: 200 }))),
|
|
8695
9271
|
diffStat: Type.Optional(TaskDiffStatSchema),
|
|
8696
9272
|
progressSummary: Type.Optional(Type.String()),
|
|
@@ -9046,6 +9622,7 @@ const AgentInternalEventSchema = closedObject({
|
|
|
9046
9622
|
status: Type.String({ enum: [...AGENT_INTERNAL_EVENT_STATUSES] }),
|
|
9047
9623
|
statusLabel: Type.String(),
|
|
9048
9624
|
result: Type.String(),
|
|
9625
|
+
noVisibleResult: Type.Optional(Type.Boolean()),
|
|
9049
9626
|
modelRouteChange: Type.Optional(Type.String()),
|
|
9050
9627
|
attachments: Type.Optional(Type.Array(AgentGeneratedAttachmentSchema)),
|
|
9051
9628
|
mediaUrls: Type.Optional(Type.Array(Type.String())),
|
|
@@ -9443,10 +10020,10 @@ const ArtifactQueryParamsProperties = {
|
|
|
9443
10020
|
sessionKey: Type.Optional(NonEmptyString),
|
|
9444
10021
|
runId: Type.Optional(NonEmptyString),
|
|
9445
10022
|
taskId: Type.Optional(NonEmptyString),
|
|
9446
|
-
agentId: Type.Optional(NonEmptyString)
|
|
10023
|
+
agentId: Type.Optional(NonEmptyString),
|
|
10024
|
+
/** Assistant-delivered artifacts only; omit to include uploaded inputs and tool observations. */
|
|
10025
|
+
messageRole: Type.Optional(Type.Literal("assistant"))
|
|
9447
10026
|
};
|
|
9448
|
-
/** Shared artifact filter payload used by list-style requests. */
|
|
9449
|
-
const ArtifactQueryParamsSchema = closedObject(ArtifactQueryParamsProperties);
|
|
9450
10027
|
/** Artifact lookup payload with a required artifact id plus optional scope filters. */
|
|
9451
10028
|
const ArtifactGetParamsSchema = closedObject({
|
|
9452
10029
|
...ArtifactQueryParamsProperties,
|
|
@@ -9464,6 +10041,7 @@ const ArtifactSummarySchema = closedObject({
|
|
|
9464
10041
|
taskId: Type.Optional(NonEmptyString),
|
|
9465
10042
|
messageSeq: Type.Optional(Type.Integer({ minimum: 1 })),
|
|
9466
10043
|
source: Type.Optional(NonEmptyString),
|
|
10044
|
+
image: Type.Optional(closedObject({ url: NonEmptyString })),
|
|
9467
10045
|
download: closedObject({ mode: Type.Union([
|
|
9468
10046
|
Type.Literal("bytes"),
|
|
9469
10047
|
Type.Literal("url"),
|
|
@@ -9471,9 +10049,24 @@ const ArtifactSummarySchema = closedObject({
|
|
|
9471
10049
|
]) })
|
|
9472
10050
|
});
|
|
9473
10051
|
/** List request payload for artifacts visible in the selected scope. */
|
|
9474
|
-
const ArtifactsListParamsSchema =
|
|
10052
|
+
const ArtifactsListParamsSchema = closedObject({
|
|
10053
|
+
...ArtifactQueryParamsProperties,
|
|
10054
|
+
type: Type.Optional(Type.Literal("image")),
|
|
10055
|
+
limit: Type.Optional(Type.Integer({
|
|
10056
|
+
minimum: 1,
|
|
10057
|
+
maximum: 4
|
|
10058
|
+
})),
|
|
10059
|
+
cursor: Type.Optional(Type.String({
|
|
10060
|
+
minLength: 1,
|
|
10061
|
+
maxLength: 256
|
|
10062
|
+
}))
|
|
10063
|
+
});
|
|
9475
10064
|
/** List response containing artifact summaries only. */
|
|
9476
|
-
const ArtifactsListResultSchema = closedObject({
|
|
10065
|
+
const ArtifactsListResultSchema = closedObject({
|
|
10066
|
+
artifacts: Type.Array(ArtifactSummarySchema),
|
|
10067
|
+
nextCursor: Type.Optional(NonEmptyString),
|
|
10068
|
+
omittedOversized: Type.Optional(Type.Boolean())
|
|
10069
|
+
});
|
|
9477
10070
|
/** Get request payload for one artifact summary. */
|
|
9478
10071
|
const ArtifactsGetParamsSchema = ArtifactGetParamsSchema;
|
|
9479
10072
|
/** Get response containing one artifact summary. */
|
|
@@ -10424,6 +11017,7 @@ const VoiceIdString = Type.String({ pattern: "^[A-Za-z0-9_-]{1,128}$" });
|
|
|
10424
11017
|
const TalkClientCreateParamsSchema = closedObject({
|
|
10425
11018
|
sessionKey: Type.Optional(NonEmptyString),
|
|
10426
11019
|
voiceSessionId: Type.Optional(VoiceIdString),
|
|
11020
|
+
voiceChangeId: Type.Optional(NonEmptyString),
|
|
10427
11021
|
provider: Type.Optional(Type.String()),
|
|
10428
11022
|
model: Type.Optional(Type.String()),
|
|
10429
11023
|
voice: Type.Optional(Type.String()),
|
|
@@ -10437,7 +11031,8 @@ const TalkClientCreateParamsSchema = closedObject({
|
|
|
10437
11031
|
capabilities: Type.Optional(Type.Array(Type.Union([
|
|
10438
11032
|
Type.Literal("camera-frame"),
|
|
10439
11033
|
Type.Literal("voice-transcript"),
|
|
10440
|
-
Type.Literal("gateway-control-v1")
|
|
11034
|
+
Type.Literal("gateway-control-v1"),
|
|
11035
|
+
Type.Literal("voice-selection")
|
|
10441
11036
|
]), { uniqueItems: true }))
|
|
10442
11037
|
});
|
|
10443
11038
|
/** Tool-call request from a browser/client session back into the agent runtime. */
|
|
@@ -10503,6 +11098,8 @@ const TalkAgentControlResultSchema = closedObject({
|
|
|
10503
11098
|
/** Creates a gateway-managed Talk session for realtime, transcription, or relay use. */
|
|
10504
11099
|
const TalkSessionCreateParamsSchema = closedObject({
|
|
10505
11100
|
sessionKey: Type.Optional(Type.String()),
|
|
11101
|
+
voiceChangeId: Type.Optional(NonEmptyString),
|
|
11102
|
+
capabilities: Type.Optional(Type.Array(Type.Literal("voice-selection"), { uniqueItems: true })),
|
|
10506
11103
|
spawnedBy: Type.Optional(NonEmptyString),
|
|
10507
11104
|
provider: Type.Optional(Type.String()),
|
|
10508
11105
|
model: Type.Optional(Type.String()),
|
|
@@ -10561,8 +11158,11 @@ const TalkSessionSteerParamsSchema = closedObject({
|
|
|
10561
11158
|
});
|
|
10562
11159
|
/** Closes a gateway-managed Talk session. */
|
|
10563
11160
|
const TalkSessionCloseParamsSchema = closedObject({ sessionId: NonEmptyString });
|
|
10564
|
-
/**
|
|
10565
|
-
const TalkCatalogParamsSchema = closedObject({
|
|
11161
|
+
/** Reads Talk provider capabilities with optional realtime launch overrides. */
|
|
11162
|
+
const TalkCatalogParamsSchema = closedObject({
|
|
11163
|
+
provider: Type.Optional(NonEmptyString),
|
|
11164
|
+
model: Type.Optional(NonEmptyString)
|
|
11165
|
+
});
|
|
10566
11166
|
/** One provider entry in the Talk capability catalog. */
|
|
10567
11167
|
const TalkCatalogProviderSchema = closedObject({
|
|
10568
11168
|
id: NonEmptyString,
|
|
@@ -10824,18 +11424,8 @@ const ChannelUiMetaSchema = closedObject({
|
|
|
10824
11424
|
});
|
|
10825
11425
|
/** Event-loop health snapshot included with channel status responses. */
|
|
10826
11426
|
const ChannelEventLoopHealthSchema = closedObject({
|
|
10827
|
-
|
|
10828
|
-
|
|
10829
|
-
reasons: Type.Array(Type.Union([
|
|
10830
|
-
Type.Literal("event_loop_delay"),
|
|
10831
|
-
Type.Literal("event_loop_utilization"),
|
|
10832
|
-
Type.Literal("cpu")
|
|
10833
|
-
])),
|
|
10834
|
-
intervalMs: Type.Integer({ minimum: 0 }),
|
|
10835
|
-
delayP99Ms: Type.Number({ minimum: 0 }),
|
|
10836
|
-
delayMaxMs: Type.Number({ minimum: 0 }),
|
|
10837
|
-
utilization: Type.Number({ minimum: 0 }),
|
|
10838
|
-
cpuCoreRatio: Type.Number({ minimum: 0 })
|
|
11427
|
+
...GatewayEventLoopHealthSchema.properties,
|
|
11428
|
+
intervalMs: Type.Integer({ minimum: 0 })
|
|
10839
11429
|
});
|
|
10840
11430
|
/** Full channel status result for dashboard and operator diagnostics. */
|
|
10841
11431
|
const ChannelsStatusResultSchema = closedObject({
|
|
@@ -11105,11 +11695,38 @@ const SystemAgentChatParamsSchema = closedObject({
|
|
|
11105
11695
|
/** Drop any in-flight approval/wizard state and start the session over. */
|
|
11106
11696
|
reset: Type.Optional(Type.Boolean()),
|
|
11107
11697
|
/** Ephemeral Control UI location hint for interpreting the current user turn. */
|
|
11108
|
-
context: Type.Optional(closedObject({
|
|
11109
|
-
|
|
11110
|
-
|
|
11111
|
-
|
|
11112
|
-
|
|
11698
|
+
context: Type.Optional(closedObject({
|
|
11699
|
+
page: Type.String({
|
|
11700
|
+
minLength: 1,
|
|
11701
|
+
maxLength: 64,
|
|
11702
|
+
pattern: "^[A-Za-z0-9/_-]{1,64}$"
|
|
11703
|
+
}),
|
|
11704
|
+
plugin: Type.Optional(closedObject({
|
|
11705
|
+
id: Type.String({
|
|
11706
|
+
minLength: 1,
|
|
11707
|
+
maxLength: 128,
|
|
11708
|
+
pattern: "^[A-Za-z0-9@][A-Za-z0-9@._/-]{0,127}$"
|
|
11709
|
+
}),
|
|
11710
|
+
name: Type.String({
|
|
11711
|
+
minLength: 1,
|
|
11712
|
+
maxLength: 96
|
|
11713
|
+
}),
|
|
11714
|
+
installed: Type.Optional(Type.Boolean()),
|
|
11715
|
+
setting: Type.Optional(closedObject({
|
|
11716
|
+
path: Type.Array(Type.String({
|
|
11717
|
+
minLength: 1,
|
|
11718
|
+
maxLength: 64
|
|
11719
|
+
}), {
|
|
11720
|
+
minItems: 1,
|
|
11721
|
+
maxItems: 16
|
|
11722
|
+
}),
|
|
11723
|
+
label: Type.String({
|
|
11724
|
+
minLength: 1,
|
|
11725
|
+
maxLength: 96
|
|
11726
|
+
})
|
|
11727
|
+
}))
|
|
11728
|
+
}))
|
|
11729
|
+
})),
|
|
11113
11730
|
/** Host-only regular-agent delegation context. Never model-authored. */
|
|
11114
11731
|
delegation: Type.Optional(closedObject({
|
|
11115
11732
|
agentId: Type.Optional(NonEmptyString),
|
|
@@ -11230,6 +11847,7 @@ const SystemAgentSetupDetectParamsSchema = closedObject({
|
|
|
11230
11847
|
/** Agent whose model, credentials, and workspace are being inspected. */
|
|
11231
11848
|
agentId: Type.Optional(NonEmptyString) });
|
|
11232
11849
|
const ProviderAutoSetupInferenceKind = Type.TemplateLiteral("provider-auto:${string}", { pattern: "^provider-auto:.+$" });
|
|
11850
|
+
const SavedAuthSetupInferenceKind = Type.TemplateLiteral("saved-auth:${string}", { pattern: "^saved-auth:.+$" });
|
|
11233
11851
|
const SetupInferenceHttpsUrl = Type.String({
|
|
11234
11852
|
minLength: 1,
|
|
11235
11853
|
maxLength: 2048,
|
|
@@ -11242,7 +11860,8 @@ const SetupInferenceKind = Type.Union([
|
|
|
11242
11860
|
Type.Literal("claude-cli"),
|
|
11243
11861
|
Type.Literal("codex-cli"),
|
|
11244
11862
|
Type.Literal("gemini-cli"),
|
|
11245
|
-
ProviderAutoSetupInferenceKind
|
|
11863
|
+
ProviderAutoSetupInferenceKind,
|
|
11864
|
+
SavedAuthSetupInferenceKind
|
|
11246
11865
|
]);
|
|
11247
11866
|
const SetupInferenceStatus = Type.Union([Type.Literal("ok"), ...SetupInferenceFailureStatusSchema.anyOf]);
|
|
11248
11867
|
const SystemAgentSetupDetectResultSchema = closedObject({
|
|
@@ -11253,6 +11872,7 @@ const SystemAgentSetupDetectResultSchema = closedObject({
|
|
|
11253
11872
|
label: NonEmptyString,
|
|
11254
11873
|
detail: Type.String(),
|
|
11255
11874
|
modelRef: NonEmptyString,
|
|
11875
|
+
modelTarget: Type.Optional(Type.Literal("utility")),
|
|
11256
11876
|
recommended: Type.Boolean(),
|
|
11257
11877
|
/** true: verified; false: definitively logged out; absent: unknown. */
|
|
11258
11878
|
credentials: Type.Optional(Type.Boolean()),
|
|
@@ -11275,6 +11895,7 @@ const SystemAgentSetupDetectResultSchema = closedObject({
|
|
|
11275
11895
|
manualProviders: Type.Array(closedObject({
|
|
11276
11896
|
/** Opaque provider-auth choice sent back during activation. */
|
|
11277
11897
|
id: NonEmptyString,
|
|
11898
|
+
modelTarget: Type.Optional(Type.Literal("utility")),
|
|
11278
11899
|
/** Canonical provider identity for clients with bundled brand artwork. */
|
|
11279
11900
|
brandId: Type.Optional(NonEmptyString),
|
|
11280
11901
|
/** Provider family shown above the specific credential method. */
|
|
@@ -11287,6 +11908,7 @@ const SystemAgentSetupDetectResultSchema = closedObject({
|
|
|
11287
11908
|
/** Provider-owned auth, managed-install, and custom-endpoint setup methods. */
|
|
11288
11909
|
authOptions: Type.Optional(Type.Array(closedObject({
|
|
11289
11910
|
id: NonEmptyString,
|
|
11911
|
+
modelTarget: Type.Optional(Type.Literal("utility")),
|
|
11290
11912
|
/** Canonical provider identity for clients with bundled brand artwork. */
|
|
11291
11913
|
brandId: Type.Optional(NonEmptyString),
|
|
11292
11914
|
label: NonEmptyString,
|
|
@@ -11305,6 +11927,7 @@ const SystemAgentSetupDetectResultSchema = closedObject({
|
|
|
11305
11927
|
/** Provider-owned app-guided local model setup methods. */
|
|
11306
11928
|
prepareOptions: Type.Optional(Type.Array(closedObject({
|
|
11307
11929
|
id: NonEmptyString,
|
|
11930
|
+
modelTarget: Type.Optional(Type.Literal("utility")),
|
|
11308
11931
|
/** Canonical provider identity for clients with bundled brand artwork. */
|
|
11309
11932
|
brandId: Type.Optional(NonEmptyString),
|
|
11310
11933
|
label: NonEmptyString,
|
|
@@ -11333,15 +11956,20 @@ const SystemAgentSetupDetectResultSchema = closedObject({
|
|
|
11333
11956
|
workspace: NonEmptyString,
|
|
11334
11957
|
codexAppServerDetected: Type.Optional(Type.Boolean()),
|
|
11335
11958
|
configuredModel: Type.Optional(Type.String()),
|
|
11959
|
+
setupModel: Type.Optional(Type.String()),
|
|
11960
|
+
utilityModel: Type.Optional(Type.String()),
|
|
11336
11961
|
setupComplete: Type.Boolean()
|
|
11337
11962
|
});
|
|
11338
11963
|
/** Live verification of the Gateway's current default-agent inference route. */
|
|
11339
|
-
const SystemAgentSetupVerifyParamsSchema = closedObject({
|
|
11340
|
-
|
|
11341
|
-
|
|
11964
|
+
const SystemAgentSetupVerifyParamsSchema = closedObject({
|
|
11965
|
+
modelTarget: Type.Optional(Type.Literal("utility")),
|
|
11966
|
+
/** Agent whose configured inference route is being verified. */
|
|
11967
|
+
agentId: Type.Optional(NonEmptyString)
|
|
11968
|
+
});
|
|
11342
11969
|
const SystemAgentSetupVerifyResultSchema = Type.Union([closedObject({
|
|
11343
11970
|
ok: Type.Literal(true),
|
|
11344
11971
|
modelRef: NonEmptyString,
|
|
11972
|
+
modelTarget: Type.Optional(Type.Literal("utility")),
|
|
11345
11973
|
latencyMs: Type.Number()
|
|
11346
11974
|
}), closedObject({
|
|
11347
11975
|
ok: Type.Literal(false),
|
|
@@ -11349,6 +11977,7 @@ const SystemAgentSetupVerifyResultSchema = Type.Union([closedObject({
|
|
|
11349
11977
|
error: NonEmptyString
|
|
11350
11978
|
})]);
|
|
11351
11979
|
const SystemAgentSetupActivateParamsSchema = closedObject({
|
|
11980
|
+
modelTarget: Type.Optional(Type.Literal("utility")),
|
|
11352
11981
|
/** Agent that owns the verified and persisted inference route. */
|
|
11353
11982
|
agentId: Type.Optional(NonEmptyString),
|
|
11354
11983
|
kind: Type.Union([
|
|
@@ -11359,6 +11988,7 @@ const SystemAgentSetupActivateParamsSchema = closedObject({
|
|
|
11359
11988
|
Type.Literal("codex-cli"),
|
|
11360
11989
|
Type.Literal("gemini-cli"),
|
|
11361
11990
|
ProviderAutoSetupInferenceKind,
|
|
11991
|
+
SavedAuthSetupInferenceKind,
|
|
11362
11992
|
Type.Literal("api-key")
|
|
11363
11993
|
]),
|
|
11364
11994
|
/** Exact detected model for this route; prevents detect/activate drift. */
|
|
@@ -11382,6 +12012,7 @@ const SystemAgentSetupActivateResultSchema = closedObject({
|
|
|
11382
12012
|
ok: Type.Boolean(),
|
|
11383
12013
|
/** Present on success: the model ref that answered the live test. */
|
|
11384
12014
|
modelRef: Type.Optional(Type.String()),
|
|
12015
|
+
modelTarget: Type.Optional(Type.Literal("utility")),
|
|
11385
12016
|
latencyMs: Type.Optional(Type.Number()),
|
|
11386
12017
|
/** Human-readable setup summary lines (workspace, model, gateway). */
|
|
11387
12018
|
lines: Type.Optional(Type.Array(Type.String())),
|
|
@@ -11395,6 +12026,7 @@ const SystemAgentSetupActivateResultSchema = closedObject({
|
|
|
11395
12026
|
});
|
|
11396
12027
|
/** Starts one provider-owned interactive login as a gateway wizard session. */
|
|
11397
12028
|
const SystemAgentSetupAuthStartParamsSchema = closedObject({
|
|
12029
|
+
modelTarget: Type.Optional(Type.Literal("utility")),
|
|
11398
12030
|
/** Client-generated so cancellation remains possible if the start reply is lost. */
|
|
11399
12031
|
sessionId: NonEmptyString,
|
|
11400
12032
|
/** Agent that owns credentials and model selection created by this setup flow. */
|
|
@@ -11420,7 +12052,7 @@ function cronAgentTurnPayloadSchema(params) {
|
|
|
11420
12052
|
model: Type.Optional(params.model),
|
|
11421
12053
|
fallbacks: Type.Optional(params.fallbacks),
|
|
11422
12054
|
thinking: Type.Optional(params.thinking),
|
|
11423
|
-
timeoutSeconds: Type.Optional(
|
|
12055
|
+
timeoutSeconds: Type.Optional(params.timeoutSeconds),
|
|
11424
12056
|
allowUnsafeExternalContent: Type.Optional(Type.Boolean()),
|
|
11425
12057
|
lightContext: Type.Optional(Type.Boolean()),
|
|
11426
12058
|
toolsAllow: Type.Optional(params.toolsAllow),
|
|
@@ -11435,7 +12067,7 @@ function cronCommandPayloadSchema(params) {
|
|
|
11435
12067
|
cwd: Type.Optional(Type.String({ minLength: 1 })),
|
|
11436
12068
|
env: Type.Optional(Type.Record(Type.String({ minLength: 1 }), Type.String())),
|
|
11437
12069
|
input: Type.Optional(Type.String()),
|
|
11438
|
-
timeoutSeconds: Type.Optional(
|
|
12070
|
+
timeoutSeconds: Type.Optional(params.timeoutSeconds),
|
|
11439
12071
|
noOutputTimeoutSeconds: Type.Optional(Type.Number({ minimum: 0 })),
|
|
11440
12072
|
outputMaxBytes: Type.Optional(Type.Integer({ minimum: 1 })),
|
|
11441
12073
|
toolsAllow: Type.Optional(params.toolsAllow),
|
|
@@ -11446,7 +12078,7 @@ function cronScriptPayloadSchema(params) {
|
|
|
11446
12078
|
return closedObject({
|
|
11447
12079
|
kind: Type.Literal("script"),
|
|
11448
12080
|
script: params.script,
|
|
11449
|
-
timeoutSeconds: Type.Optional(
|
|
12081
|
+
timeoutSeconds: Type.Optional(params.timeoutSeconds),
|
|
11450
12082
|
toolBudget: Type.Optional(Type.Integer({ minimum: 1 })),
|
|
11451
12083
|
toolsAllow: Type.Optional(params.toolsAllow),
|
|
11452
12084
|
toolsAllowIsDefault: Type.Optional(Type.Boolean())
|
|
@@ -11683,10 +12315,12 @@ const CronAgentTurnPayloadSchema = cronAgentTurnPayloadSchema({
|
|
|
11683
12315
|
model: Type.String(),
|
|
11684
12316
|
fallbacks: Type.Array(Type.String()),
|
|
11685
12317
|
toolsAllow: Type.Array(Type.String()),
|
|
11686
|
-
thinking: Type.String()
|
|
12318
|
+
thinking: Type.String(),
|
|
12319
|
+
timeoutSeconds: Type.Number({ minimum: 0 })
|
|
11687
12320
|
});
|
|
11688
12321
|
const CronCommandPayloadSchema = cronCommandPayloadSchema({
|
|
11689
12322
|
argv: Type.Array(NonEmptyString, { minItems: 1 }),
|
|
12323
|
+
timeoutSeconds: Type.Number({ minimum: 0 }),
|
|
11690
12324
|
toolsAllow: Type.Array(Type.String())
|
|
11691
12325
|
});
|
|
11692
12326
|
const CronScriptPayloadSchema = cronScriptPayloadSchema({
|
|
@@ -11694,6 +12328,7 @@ const CronScriptPayloadSchema = cronScriptPayloadSchema({
|
|
|
11694
12328
|
minLength: 1,
|
|
11695
12329
|
maxLength: 65536
|
|
11696
12330
|
}),
|
|
12331
|
+
timeoutSeconds: Type.Number({ minimum: 1 }),
|
|
11697
12332
|
toolsAllow: Type.Array(Type.String())
|
|
11698
12333
|
});
|
|
11699
12334
|
/** Full cron payload for new jobs. */
|
|
@@ -11724,10 +12359,12 @@ const CronPayloadPatchSchema = Type.Union([
|
|
|
11724
12359
|
model: Type.Union([Type.String(), Type.Null()]),
|
|
11725
12360
|
fallbacks: Type.Union([Type.Array(Type.String()), Type.Null()]),
|
|
11726
12361
|
toolsAllow: Type.Union([Type.Array(Type.String()), Type.Null()]),
|
|
11727
|
-
thinking: Type.Union([Type.String(), Type.Null()])
|
|
12362
|
+
thinking: Type.Union([Type.String(), Type.Null()]),
|
|
12363
|
+
timeoutSeconds: Type.Union([Type.Number({ minimum: 0 }), Type.Null()])
|
|
11728
12364
|
}),
|
|
11729
12365
|
cronCommandPayloadSchema({
|
|
11730
12366
|
argv: Type.Optional(Type.Array(NonEmptyString, { minItems: 1 })),
|
|
12367
|
+
timeoutSeconds: Type.Union([Type.Number({ minimum: 0 }), Type.Null()]),
|
|
11731
12368
|
toolsAllow: Type.Union([Type.Array(Type.String()), Type.Null()])
|
|
11732
12369
|
}),
|
|
11733
12370
|
cronScriptPayloadSchema({
|
|
@@ -11735,6 +12372,7 @@ const CronPayloadPatchSchema = Type.Union([
|
|
|
11735
12372
|
minLength: 1,
|
|
11736
12373
|
maxLength: 65536
|
|
11737
12374
|
})),
|
|
12375
|
+
timeoutSeconds: Type.Union([Type.Number({ minimum: 1 }), Type.Null()]),
|
|
11738
12376
|
toolsAllow: Type.Union([Type.Array(Type.String()), Type.Null()])
|
|
11739
12377
|
})
|
|
11740
12378
|
]);
|
|
@@ -11974,6 +12612,8 @@ const CronJobSchema = closedObject({
|
|
|
11974
12612
|
});
|
|
11975
12613
|
/** Query params for listing cron jobs with filters and pagination. */
|
|
11976
12614
|
const CronListParamsSchema = closedObject({
|
|
12615
|
+
sessionKey: Type.Optional(NonEmptyString),
|
|
12616
|
+
sessionAgentId: Type.Optional(NonEmptyString),
|
|
11977
12617
|
includeDisabled: Type.Optional(Type.Boolean()),
|
|
11978
12618
|
limit: Type.Optional(Type.Integer({
|
|
11979
12619
|
minimum: 1,
|
|
@@ -12671,7 +13311,7 @@ const DevicePairSetupCodeParamsSchema = closedObject({
|
|
|
12671
13311
|
* Setup code plus non-secret connection metadata. `setupId` is an opaque
|
|
12672
13312
|
* correlation id independent from the embedded bearer, while `expiresAtMs`
|
|
12673
13313
|
* is the authoritative setup expiry. `auth` is a label only ("token" |
|
|
12674
|
-
* "password"); the gateway credential itself is never returned.
|
|
13314
|
+
* "password" | "trusted-proxy"); the gateway credential itself is never returned.
|
|
12675
13315
|
* `accessDowngraded` reports the plaintext-LAN safety fallback from full to
|
|
12676
13316
|
* limited access so the presenting client can explain how to upgrade.
|
|
12677
13317
|
*/
|
|
@@ -12686,7 +13326,11 @@ const DevicePairSetupCodeResultSchema = closedObject({
|
|
|
12686
13326
|
maxItems: 8,
|
|
12687
13327
|
uniqueItems: true
|
|
12688
13328
|
})),
|
|
12689
|
-
auth: Type.Union([
|
|
13329
|
+
auth: Type.Union([
|
|
13330
|
+
Type.Literal("token"),
|
|
13331
|
+
Type.Literal("password"),
|
|
13332
|
+
Type.Literal("trusted-proxy")
|
|
13333
|
+
]),
|
|
12690
13334
|
urlSource: NonEmptyString,
|
|
12691
13335
|
access: Type.Optional(Type.Union([
|
|
12692
13336
|
Type.Literal("full"),
|
|
@@ -12740,6 +13384,7 @@ const DesktopObserveResultSchema = closedObject({
|
|
|
12740
13384
|
wsPath: NonEmptyString,
|
|
12741
13385
|
expiresAtMs: Type.Integer({ minimum: 0 }),
|
|
12742
13386
|
control: Type.Boolean(),
|
|
13387
|
+
canResize: Type.Optional(Type.Boolean()),
|
|
12743
13388
|
vncPassword: Type.Optional(NonEmptyString),
|
|
12744
13389
|
auth: Type.Optional(Type.String({ enum: [
|
|
12745
13390
|
"none",
|
|
@@ -12755,6 +13400,8 @@ const DesktopLaunchParamsSchema = closedObject({
|
|
|
12755
13400
|
}),
|
|
12756
13401
|
app: WorkerDesktopAppIdSchema
|
|
12757
13402
|
});
|
|
13403
|
+
const DesktopReleaseParamsSchema = closedObject({ wsPath: NonEmptyString });
|
|
13404
|
+
const DesktopReleaseResultSchema = closedObject({ released: Type.Boolean() });
|
|
12758
13405
|
//#endregion
|
|
12759
13406
|
//#region src/schema/fs.ts
|
|
12760
13407
|
const FsListDirParamsSchema = closedObject({
|
|
@@ -13570,10 +14217,14 @@ const SessionsDispatchResultSchema = closedObject({
|
|
|
13570
14217
|
sessionId: NonEmptyString,
|
|
13571
14218
|
placement: ActiveWorkerSessionPlacementSchema
|
|
13572
14219
|
});
|
|
13573
|
-
/**
|
|
14220
|
+
/** Stops a worker or explicitly recovers one failed placement onto the Gateway. */
|
|
13574
14221
|
const SessionsReclaimParamsSchema = Type.Object({
|
|
13575
14222
|
key: NonEmptyString,
|
|
13576
|
-
agentId: Type.Optional(NonEmptyString)
|
|
14223
|
+
agentId: Type.Optional(NonEmptyString),
|
|
14224
|
+
recoverToGateway: Type.Optional(closedObject({ expectedGeneration: Type.Integer({
|
|
14225
|
+
minimum: 0,
|
|
14226
|
+
maximum: Number.MAX_SAFE_INTEGER
|
|
14227
|
+
}) }))
|
|
13577
14228
|
}, { additionalProperties: false });
|
|
13578
14229
|
/** Terminal placement returned after a worker reclaim operation. */
|
|
13579
14230
|
const SessionsReclaimResultPlacementSchema = Type.Union([LocalSessionPlacementSchema, ReclaimedSessionPlacementSchema]);
|
|
@@ -13735,7 +14386,8 @@ const SessionsResolveCandidateSchema = closedObject({
|
|
|
13735
14386
|
key: NonEmptyString,
|
|
13736
14387
|
agentId: NonEmptyString,
|
|
13737
14388
|
displayName: Type.Optional(Type.String()),
|
|
13738
|
-
boardFace: Type.Optional(Type.Union([Type.Literal("chat"), Type.Literal("dashboard")]))
|
|
14389
|
+
boardFace: Type.Optional(Type.Union([Type.Literal("chat"), Type.Literal("dashboard")])),
|
|
14390
|
+
boardPresentation: Type.Optional(Type.Union([Type.Literal("split"), Type.Literal("expanded")]))
|
|
13739
14391
|
});
|
|
13740
14392
|
const SessionsResolveResultSchema = Type.Union([closedObject({
|
|
13741
14393
|
ok: Type.Literal(true),
|
|
@@ -13795,6 +14447,8 @@ const SystemInfoResultSchema = closedObject({
|
|
|
13795
14447
|
])),
|
|
13796
14448
|
memoryTotalBytes: Type.Integer(),
|
|
13797
14449
|
memoryFreeBytes: Type.Integer(),
|
|
14450
|
+
eventLoop: Type.Optional(GatewayEventLoopHealthSchema),
|
|
14451
|
+
processMemory: Type.Optional(GatewayProcessMemorySchema),
|
|
13798
14452
|
diskTotalBytes: Type.Optional(Type.Integer()),
|
|
13799
14453
|
diskAvailableBytes: Type.Optional(Type.Integer()),
|
|
13800
14454
|
diskPath: Type.Optional(Type.String()),
|
|
@@ -14131,4 +14785,57 @@ const WorktreesGcResultSchema = closedObject({
|
|
|
14131
14785
|
snapshotsPruned: Type.Integer({ minimum: 0 })
|
|
14132
14786
|
});
|
|
14133
14787
|
//#endregion
|
|
14134
|
-
export { SessionMovePlacementStateSchema as $, UsersGitHubAuthorizeCancelResultSchema as $_, ConversationSendResultSchema as $a, SESSION_VISIBILITY_VALUES as $b, SessionsPatchManyResultSchema as $c, BoardGetParamsSchema as $d, SkillLibraryFileSchema as $f, PluginsSessionActionFailureResultSchema as $g, SessionsCatalogContinueResultSchema as $h, TalkSpeakParamsSchema as $i, MENTION_INBOX_MAX_ITEMS as $l, ApprovalHistoryResultSchema as $m, ScopeUpgradeWaitSchema as $n, SessionSuggestionsListParamsSchema as $o, WORKER_TRANSCRIPT_MAX_BATCH_MESSAGES as $p, SystemChangeEntrySchema as $r, SessionsCompactParamsSchema as $s, NodeInvokeInputEventSchema as $t, UpdateStatusParamsSchema as $u, AgentsDeleteParamsSchema as $v, GitHubPublicationSelectionRejectedErrorDetailsSchema as $x, SkillsProposalUpdateParamsSchema as $y, TaskSuggestionsCreateResultSchema as A, SessionGitHubStatusResultSchema as A_, findAuditActivityFilterConflict as Aa, ToolsGitHubAuthorizeIncorrectDeviceCodeResultSchema as Ab, SessionsGroupsListResultSchema as Ac, ProgressCardGetParamsSchema as Ad, BoardWidgetPluginKindSchema as Af, PluginsCatalogBrowseParamsSchema as Ag, TerminalDataEventSchema as Ah, TalkCatalogParamsSchema as Ai, ChatHistoryParamsSchema as Al, WorkerTranscriptMessageSchema as Am, DesktopSourceSchema as An, ProjectsRemoveResultSchema as Ao, WorkerInferenceStartRequestFrameSchema as Ap, CronScratchGetResultSchema as Ar, SessionDiffScopeSchema as As, QuestionResolvedEventSchema as At, GatewaySuspendResumeResultSchema as Au, UsersSetDisplayNameResultSchema as Av, EnvironmentsListResultSchema as Ax, SkillsBinsParamsSchema as Ay, SessionsResolveCandidateSchema as B, UserProfileAvatarMimeSchema as B_, AgentsWorkspaceGetParamsSchema as Ba, ToolsGitHubInheritConfigureParamsSchema as Bb, SessionsPluginPatchParamsSchema as Bc, BOARD_CRON_TRIGGER_PREFIX as Bd, UiClosePaneCommandSchema as Bf, PluginsControlUiReportParamsSchema as Bg, TerminalUploadResultSchema as Bh, TalkConfigParamsSchema as Bi, ChatSendIntentSchema as Bl, WorkerAdmissionFailureReasonSchema as Bm, DevicePairSetupCompletedEventSchema as Bn, TasksHistoryParamsSchema as Bo, WORKER_LAUNCH_V2_PROTOCOL_FEATURE as Bp, SystemAgentChatQuestionSchema as Br, SessionObserverDigestSchema as Bs, WebPushDevicePreferencesSchema as Bt, ConfigPatchParamsSchema as Bu, WizardCancelParamsSchema as Bv, WorkerDesktopLaunchResultSchema as Bx, SkillsProposalApplyResultSchema as By, PluginApprovalResolveParamsSchema as C, SessionGitHubPublicationNeedsConfirmationSchema as C_, AuditActivityAgentRunV1Schema as Ca, ToolsEffectiveParamsSchema as Cb, SessionsFilesSetResultSchema as Cc, TranscriptsListResultSchema as Cd, BoardWidgetHeightModeSchema as Cf, PluginInspectSourceSchema as Cg, TerminalApprovalSnapshotSchema as Ch, ChannelsPairingListResultSchema as Ci, ChatAttachmentsSchema as Cl, WorkerSessionsSpawnResponseFrameSchema as Cm, HooksStatusParamsSchema as Cn, ProjectsAddParamsSchema as Co, WORKER_INFERENCE_PROTOCOL_FEATURE as Cp, CronListParamsSchema as Cr, SESSION_OBSERVER_HEALTH_VALUES as Cs, QuestionRecordSchema as Ct, GatewaySuspendHandoffResultSchema as Cu, UsersSelectModelAccountParamsSchema as Cv, EnvironmentStatusSchema as Cx, ModelsListParamsSchema as Cy, TaskSuggestionsAcceptParamsSchema as D, SessionGitHubPublicationResultSchema as D_, AuditActivityListResultSchema as Da, ToolsGitHubAuthorizeCancelResultSchema as Db, SessionsGroupsDefaultsResultSchema as Dc, PROGRESS_CARD_MAX_STEP_UTF8_BYTES as Dd, BoardWidgetMoveOpSchema as Df, PluginOperatorGrantsSchema as Dg, TerminalAttachParamsSchema as Dh, ChannelsStatusResultSchema as Di, ChatFinalEventSchema as Dl, WorkerTranscriptCommitRequestFrameSchema as Dm, DesktopLaunchParamsSchema as Dn, ProjectsRegisterParamsSchema as Do, WorkerInferenceImageContentSchema as Dp, CronRunParamsSchema as Dr, SessionDiffCommitSchema as Ds, QuestionRequestedEventSchema as Dt, GatewaySuspendPrepareReadyResultSchema as Du, UsersSetAvatarParamsSchema as Dv, EnvironmentsDestroyParamsSchema as Dx, ModelsProbeTargetResultSchema as Dy, TaskSuggestionSchema as E, SessionGitHubPublicationRequestedSchema as E_, AuditActivityListParamsSchema as Ea, ToolsGitHubAuthorizeCancelParamsSchema as Eb, SessionsGroupsDefaultsParamsSchema as Ec, PROGRESS_CARD_MAX_STEPS as Ed, BoardWidgetMcpAppPutContentSchema as Ef, PluginJsonValueSchema as Eg, TerminalAckResultSchema as Eh, ChannelsStatusParamsSchema as Ei, ChatEventSchema as El, WorkerTranscriptCommitParamsSchema as Em, FsListDirResultSchema as En, ProjectsListResultSchema as Eo, WorkerInferenceCancelResponseFrameSchema as Ep, CronRunLogEntrySchema as Er, SessionCompanionExchangeSchema as Es, QuestionRequestResultSchema as Et, GatewaySuspendPrepareParamsSchema as Eu, UsersSelfResultSchema as Ev, EnvironmentsCreateResultSchema as Ex, ModelsProbeResultSchema as Ey, SystemInfoParamsSchema as F, USER_PREFS_ENTRY_LIMIT as F_, ArtifactsGetResultSchema as Fa, ToolsGitHubAuthorizeSlowDownResultSchema as Fb, SessionsGroupsUpdateResultSchema as Fc, ProgressCardStepSchema as Fd, BoardWidgetPutResultSchema as Ff, PluginsCatalogGetResultSchema as Fg, TerminalOpenParamsSchema as Fh, TalkClientMutationResultSchema as Fi, ChatMessageGetParamsSchema as Fl, WorkerComputerResultSchema as Fm, DevicePairRenameParamsSchema as Fn, TaskSummarySchema as Fo, validateWorkerInferenceTerminalFrame as Fp, CronUpdateParamsSchema as Fr, SessionFileKindSchema as Fs, QuestionWaitAnswerParamsSchema as Ft, GatewaySuspendStatusRunningResultSchema as Fu, isGitCoauthorCreditEnabled as Fv, RequiredNodeCommandSchema as Fx, SkillsCuratorStatusResultSchema as Fy, SessionDiscussionInfoSchema as G, UsersAuthConnectCatalogParamsSchema as G_, AgentIdentityParamsSchema as Ga, ToolsInvokeParamsSchema as Gb, SessionsRewindResultSchema as Gc, BoardChangedEventSchema as Gd, UiNavigateCommandSchema as Gf, PluginsInstallParamsSchema as Gg, SessionCatalogPullRequestSummarySchema as Gh, TalkSessionCancelOutputParamsSchema as Gi, ChatToolTitlesResultSchema as Gl, ApprovalCancelledReasonSchema as Gm, DeviceTokenRotateParamsSchema as Gn, TasksRecoveryResultSchema as Go, WORKER_PROTOCOL_MAX_FEATURE_LENGTH as Gp, SystemAgentSetupActivateStartResultSchema as Gr, SessionsAbortParamsSchema as Gs, WebPushSubscribeParamsSchema as Gt, ConfigSetParamsSchema as Gu, WizardStatusParamsSchema as Gv, WorkerExecutionModeSchema as Gx, SkillsProposalEventsListParamsSchema as Gy, SessionsResolveResultSchema as H, UserProfileSchema as H_, AgentsWorkspaceListParamsSchema as Ha, ToolsGitHubStatusParamsSchema as Hb, SessionsPreviewParamsSchema as Hc, BOARD_WIDGET_TOOL_MAX_LENGTH as Hd, UiCommandResultSchema as Hf, PluginsControlUiStatusResultSchema as Hg, SessionCatalogDescriptorSchema as Hh, TalkEventSchema as Hi, ChatStartupParamsSchema as Hl, AllowedApprovalSnapshotSchema as Hm, DevicePairSetupStatusParamsSchema as Hn, TasksListParamsSchema as Ho, WORKER_PORTAL_PROTOCOL_FEATURE as Hp, SystemAgentSetupActivateParamsSchema as Hr, SessionObserverPlanProgressSchema as Hs, WebPushNotificationPreferencesSchema as Ht, ConfigSchemaLookupResultSchema as Hu, WizardNextResultSchema as Hv, WorkerDesktopObserveResultSchema as Hx, SkillsProposalDecisionParamsSchema as Hy, SystemInfoResultSchema as I, USER_PREFS_PROFILE_KEY_LIMIT as I_, ArtifactsListParamsSchema as Ia, ToolsGitHubAuthorizeStartParamsSchema as Ib, SessionsMessagesSubscribeParamsSchema as Ic, ProgressCardStepStatusSchema as Id, BoardWidgetRegisteredContentSchema as If, PluginsControlUiCatalogSchema as Ig, TerminalOpenResultSchema as Ih, TalkClientSteerParamsSchema as Ii, ChatMessageGetResultSchema as Il, WORKER_PROTOCOL_MAX_FRAME_ID_LENGTH as Im, DevicePairRequestedEventSchema as In, TasksCancelParamsSchema as Io, validateWorkerInferenceTerminalOutcome as Ip, SystemAgentChatHistoryParamsSchema as Ir, SessionFilePreviewKindSchema as Is, QuestionWaitAnswerResultSchema as It, GatewaySuspendTaskBlockerSchema as Iu, UI_APPEARANCE_PREFERENCE_KEYS as Iv, RequiredNodeCommandStateSchema as Ix, SkillsDetailParamsSchema as Iy, SessionDiscussionStateSchema as J, UsersAuthConnectStartParamsSchema as J_, AgentWaitParamsSchema as Ja, SessionEntryArchiveReasonSchema as Jb, SessionsSearchResultSchema as Jc, BoardCommandSchema as Jd, UiSplitCommandSchema as Jf, PluginsListResultSchema as Jg, SessionCatalogShareRouteSchema as Jh, TalkSessionCreateParamsSchema as Ji, projectChatErrorDetail as Jl, ApprovalDeniedReasonSchema as Jm, ScopeUpgradeExpiredSchema as Jn, SessionSuggestionResolutionSchema as Jo, WORKER_PROVIDER_REPLAY_MAX_DATA_BYTES as Jp, SystemAgentSetupDetectParamsSchema as Jr, SessionsBranchesListParamsSchema as Js, WebPushVapidPublicKeyParamsSchema as Jt, UpdateHoldResultSchema as Ju, AgentKindSchema as Jv, WorkerOperatingSystemSchema as Jx, SkillsProposalInspectResultSchema as Jy, SessionDiscussionOpenParamsSchema as K, UsersAuthConnectCatalogResultSchema as K_, AgentIdentityResultSchema as Ka, ToolsInvokeResultSchema as Kb, SessionsSearchHitSchema as Kc, BoardChatDockSchema as Kd, UiPanelCommandSchema as Kf, PluginsInstallResultSchema as Kg, SessionCatalogSchema as Kh, TalkSessionCancelOutputResultSchema as Ki, LogsTailParamsSchema as Kl, ApprovalChannelReviewerSchema as Km, DeviceTokenRotateResultSchema as Kn, SessionSuggestionActionSchema as Ko, WORKER_PROTOCOL_MAX_METHOD_LENGTH as Kp, SystemAgentSetupAuthStartParamsSchema as Kr, SessionsAssignOwnerParamsSchema as Ks, WebPushTestParamsSchema as Kt, UpdateAvailableSchema as Ku, WizardStatusResultSchema as Kv, WorkerMachineOptionSchema as Kx, SkillsProposalEventsListResultSchema as Ky, SESSION_VIEWER_PRESENCE_MAX_KEYS as L, USER_PREFS_VALUE_BYTES as L_, ArtifactsListResultSchema as La, ToolsGitHubAuthorizeStartResultSchema as Lb, SessionsMessagesUnsubscribeParamsSchema as Lc, CanvasDocumentViewParamsSchema as Ld, BoardWidgetRemoveOpSchema as Lf, PluginsControlUiChangedEventSchema as Lg, TerminalResizeParamsSchema as Lh, TalkClientToolCallParamsSchema as Li, ChatMetadataParamsSchema as Ll, WORKER_PROTOCOL_MAX_IDENTIFIER_LENGTH as Lm, DevicePairResolvedEventSchema as Ln, TasksCancelResultSchema as Lo, WORKER_BUNDLE_PREWARM_VERSION as Lp, SystemAgentChatHistoryResultSchema as Lr, SessionFileRelevanceSchema as Ls, PushTestParamsSchema as Lt, GatewaySuspensionSchema as Lu, normalizeUiAppearancePreference as Lv, RuntimeTargetIssueSchema as Lx, SkillsDetailResultSchema as Ly, TaskSuggestionsDismissResultSchema as M, PersonalGitHubAccountSchema as M_, ArtifactsDownloadParamsSchema as Ma, ToolsGitHubAuthorizePendingResultSchema as Mb, SessionsGroupsPutParamsSchema as Mc, ProgressCardPutParamsSchema as Md, BoardWidgetPresentationSchema as Mf, PluginsCatalogCategoriesParamsSchema as Mg, TerminalExitEventSchema as Mh, TalkClientCloseParamsSchema as Mi, ChatInjectParamsSchema as Ml, WORKER_COMPUTER_PROTOCOL_FEATURE as Mm, DevicePairListParamsSchema as Mn, ProjectsSearchRemoteResultSchema as Mo, validateWorkerInferenceCancelParams as Mp, CronScratchSetParamsSchema as Mr, SessionFileBrowserResultSchema as Ms, QuestionSecretStoreBindingSchema as Mt, GatewaySuspendStatusParamsSchema as Mu, UsersSetRoleResultSchema as Mv, EnvironmentsPrepareResultSchema as Mx, SkillsCuratorActionParamsSchema as My, TaskSuggestionsListParamsSchema as N, PersonalGitHubGenerationSchema as N_, ArtifactsDownloadResultSchema as Na, ToolsGitHubAuthorizePollParamsSchema as Nb, SessionsGroupsRenameParamsSchema as Nc, ProgressCardPutResultSchema as Nd, BoardWidgetPutContentSchema as Nf, PluginsCatalogCategoriesResultSchema as Ng, TerminalInputParamsSchema as Nh, TalkClientCreateParamsSchema as Ni, ChatInputConsumptionsSchema as Nl, WorkerComputerParamsSchema as Nm, DevicePairRejectParamsSchema as Nn, RemoteProjectSchema as No, validateWorkerInferenceEventFrame as Np, CronScratchSetResultSchema as Nr, SessionFileContentEncodingSchema as Ns, QuestionSecretStoreExistingSchema as Nt, GatewaySuspendStatusReadyResultSchema as Nu, UsersUnlinkAuthProfileParamsSchema as Nv, EnvironmentsStatusParamsSchema as Nx, SkillsCuratorActionResultSchema as Ny, TaskSuggestionsAcceptResultSchema as O, SessionGitHubPublishParamsSchema as O_, AuditActivityOutboundMessageV1Schema as Oa, ToolsGitHubAuthorizeExpiredResultSchema as Ob, SessionsGroupsDeleteParamsSchema as Oc, PROGRESS_CARD_MAX_UTF8_BYTES as Od, BoardWidgetNameSchema as Of, PluginSearchPackageSchema as Og, TerminalAttachResultSchema as Oh, ChannelsStopParamsSchema as Oi, ChatHistoryCursorResultSchema as Ol, WorkerTranscriptCommitResponseFrameSchema as Om, DesktopObserveParamsSchema as On, ProjectsRegisterResultSchema as Oo, WorkerInferenceModelRefSchema as Op, CronRunsParamsSchema as Or, SessionDiffFileSchema as Os, QuestionResolveParamsSchema as Ot, GatewaySuspendPrepareResultSchema as Ou, UsersSetAvatarResultSchema as Ov, EnvironmentsDestroyResultSchema as Ox, SkillProposalEvaluationSchema as Oy, TaskSuggestionsListResultSchema as P, PersonalGitHubStatusSchema as P_, ArtifactsGetParamsSchema as Pa, ToolsGitHubAuthorizePollResultSchema as Pb, SessionsGroupsUpdateParamsSchema as Pc, ProgressCardSchema as Pd, BoardWidgetPutParamsSchema as Pf, PluginsCatalogGetParamsSchema as Pg, TerminalListResultSchema as Ph, TalkClientCreateResultSchema as Pi, ChatInputReceiptsSchema as Pl, WorkerComputerResponseFrameSchema as Pm, DevicePairRemoveParamsSchema as Pn, TASKS_LIST_CURSOR_MAX_LENGTH as Po, validateWorkerInferenceStartParams as Pp, CronStatusParamsSchema as Pr, SessionFileEntrySchema as Ps, QuestionStatusSchema as Pt, GatewaySuspendStatusResultSchema as Pu, UsersUnlinkAuthProfileResultSchema as Pv, EnvironmentsStatusResultSchema as Px, SkillsCuratorStatusParamsSchema as Py, SessionMovePlacementSchema as Q, UsersGitHubAuthorizeCancelParamsSchema as Q_, ConversationSendParamsSchema as Qa, SessionToolOverridesSchema as Qb, SessionsPatchManyParamsSchema as Qc, BoardFocusTabCommandSchema as Qd, SKILL_LIBRARY_MAX_SELECTIONS as Qf, PluginsSearchResultSchema as Qg, SessionsCatalogContinueParamsSchema as Qh, TalkSessionSubmitToolResultParamsSchema as Qi, MAX_MENTIONABLE_USERS as Ql, ApprovalHistoryParamsSchema as Qm, ScopeUpgradeResultSchema as Qn, SessionSuggestionsAddResultSchema as Qo, WORKER_TRANSCRIPT_COMMIT_PROTOCOL_FEATURE as Qp, SystemAgentWizardCancelSchema as Qr, SessionsCleanupParamsSchema as Qs, NodeHostStatsPayloadSchema as Qt, UpdateScheduleStateSchema as Qu, AgentsCreateResultSchema as Qv, GatewayErrorDetailsSchema as Qx, SkillsProposalReviseParamsSchema as Qy, SessionsViewerPresenceSetParamsSchema as R, UserModelAccountSchema as R_, AgentsWorkspaceEntrySchema as Ra, ToolsGitHubAuthorizeSuccessResultSchema as Rb, SessionsObserverVisibilityParamsSchema as Rc, CanvasDocumentViewResultSchema as Rd, BoardWidgetResizeOpSchema as Rf, PluginsControlUiListParamsSchema as Rg, TerminalSessionInfoSchema as Rh, TalkClientToolCallResultSchema as Ri, ChatPendingInputsPageSchema as Rl, WORKER_PROTOCOL_MAX_PAYLOAD_BYTES as Rm, DevicePairSetupCodeParamsSchema as Rn, TasksGetParamsSchema as Ro, WORKER_EXECUTION_CONTEXT_PROTOCOL_FEATURE as Rp, SystemAgentChatHistoryTurnSchema as Rr, SessionGroupDefaultsSchema as Rs, PushTestResultSchema as Rt, ConfigApplyParamsSchema as Ru, GATEWAY_OWNER_PROFILE_ID as Rv, WorkerDesktopAppIdSchema as Rx, SkillsInstallParamsSchema as Ry, PluginApprovalRequestParamsSchema as S, SessionGitHubPublicationFailedSchema as S_, AUDIT_ACTIVITY_STATUSES as Sa, ToolsEffectiveNoticeSchema as Sb, SessionsFilesSetParamsSchema as Sc, TranscriptsListParamsSchema as Sd, BoardWidgetGrantParamsSchema as Sf, PluginHookGrantSchema as Sg, SystemAgentApprovalPresentationSchema as Sh, ChannelsPairingListParamsSchema as Si, ChatAttachmentSchema as Sl, WorkerSessionsSpawnParamsSchema as Sm, NODE_PRESENCE_ALIVE_REASONS as Sn, ProjectSummarySchema as So, WORKER_INFERENCE_METHODS as Sp, CronJobStateSchema as Sr, SessionVisibilitySetResultSchema as Ss, QuestionOptionSchema as St, GatewaySuspendHandoffParamsSchema as Su, UsersPrefsSetResultSchema as Sv, ChatAccountSelectionSchema as Sx, ModelsAuthStatusParamsSchema as Sy, TaskSuggestionResolutionSchema as T, SessionGitHubPublicationPublishingSchema as T_, AuditActivityInboundMessageV1Schema as Ta, ToolsGitHubAuthorizeAccessDeniedResultSchema as Tb, SessionsForkResultSchema as Tc, TranscriptsStatusResultSchema as Td, BoardWidgetMcpAppContentSchema as Tf, PluginInstalledComponentsSchema as Tg, isWellFormedApprovalId as Th, ChannelsStartParamsSchema as Ti, ChatErrorEventSchema as Tl, WorkerTranscriptCommitErrorShapeSchema as Tm, FsListDirParamsSchema as Tn, ProjectsListParamsSchema as To, WorkerInferenceCancelRequestFrameSchema as Tp, CronRemoveParamsSchema as Tr, SessionCompactionCheckpointSchema as Ts, QuestionRequestQuestionSchema as Tt, GatewaySuspendPrepareDrainingResultSchema as Tu, UsersSelfParamsSchema as Tv, EnvironmentsCreateParamsSchema as Tx, ModelsProbeParamsSchema as Ty, SessionDiscussionInfoParamsSchema as U, UsersAuthConnectAnswerParamsSchema as U_, AgentsWorkspaceListResultSchema as Ua, ToolsGitHubStatusResultSchema as Ub, SessionsResetParamsSchema as Uc, BoardActionParamsSchema as Ud, UiCommandSchema as Uf, PluginsInspectParamsSchema as Ug, SessionCatalogHostSchema as Uh, TalkModeParamsSchema as Ui, ChatStatusEventSchema as Ul, ApprovalAllowDecisionSchema as Um, DevicePairSetupStatusResultSchema as Un, TasksListResultSchema as Uo, WORKER_PROTOCOL_FEATURES as Up, SystemAgentSetupActivateResultSchema as Ur, SessionOperationEventSchema as Us, WebPushPreferencesGetParamsSchema as Ut, ConfigSchemaParamsSchema as Uu, WizardStartParamsSchema as Uv, WorkerEnvironmentMetadataSchema as Ux, SkillsProposalEvaluateParamsSchema as Uy, SessionsResolveParamsSchema as V, UserProfileGitHubIdentitySchema as V_, AgentsWorkspaceGetResultSchema as Va, ToolsGitHubManagedConfigureParamsSchema as Vb, SessionsPluginPatchResultSchema as Vc, BOARD_DATA_BINDING_ID_MAX_LENGTH as Vd, UiCommandParamsSchema as Vf, PluginsControlUiStatusParamsSchema as Vg, SessionCatalogCapabilitiesSchema as Vh, TalkConfigResultSchema as Vi, ChatSendParamsSchema as Vl, WorkerProtocolCloseReasonSchema as Vm, DevicePairSetupDeliveryUncertainEventSchema as Vn, TasksHistoryResultSchema as Vo, WORKER_LIVE_EVENT_PROTOCOL_FEATURE as Vp, SystemAgentChatResultSchema as Vr, SessionObserverHealthSchema as Vs, WebPushNotificationCategorySchema as Vt, ConfigSchemaLookupParamsSchema as Vu, WizardNextParamsSchema as Vv, WorkerDesktopObserveParamsSchema as Vx, SkillsProposalCreateParamsSchema as Vy, SessionDiscussionInfoResultSchema as W, UsersAuthConnectCancelParamsSchema as W_, AgentEventSchema as Wa, ToolsInvokeErrorSchema as Wb, SessionsRewindParamsSchema as Wc, BoardCanvasDocumentSourceSchema as Wd, UiFocusCommandSchema as Wf, PluginsInspectResultSchema as Wg, SessionCatalogLocatorSchema as Wh, TalkSessionAppendAudioParamsSchema as Wi, ChatToolTitlesParamsSchema as Wl, ApprovalAllowedReasonSchema as Wm, DeviceTokenRevokeParamsSchema as Wn, TasksRecoveryParamsSchema as Wo, WORKER_PROTOCOL_MAX_FEATURES as Wp, SystemAgentSetupActivateStartParamsSchema as Wr, SessionWorktreeInfoSchema as Ws, WebPushPreferencesSetParamsSchema as Wt, ConfigSchemaResponseSchema as Wu, WizardStartResultSchema as Wv, WorkerEnvironmentStateSchema as Wx, SkillsProposalEvaluateResultSchema as Wy, SessionMoveExpectedSourceSchema as X, UsersAuthConnectStatusParamsSchema as X_, ConversationListParamsSchema as Xa, SessionPermissionModeSchema as Xb, SessionsUsageParamsSchema as Xc, BoardDataReadParamsSchema as Xd, SKILL_LIBRARY_MAX_FILES as Xf, PluginsRefreshResultSchema as Xg, SessionsCatalogArchiveParamsSchema as Xh, TalkSessionOkResultSchema as Xi, HumanMentionsSchema as Xl, ApprovalGetParamsSchema as Xm, ScopeUpgradeRejectedSchema as Xn, SessionSuggestionStateSchema as Xo, WORKER_SESSION_TOOLS_PROTOCOL_FEATURE as Xp, SystemAgentSetupVerifyParamsSchema as Xr, SessionsBranchesSwitchParamsSchema as Xs, NodeEventParamsSchema as Xt, UpdateReportResultSchema as Xu, AgentSummarySchema as Xv, WorkerTunnelStatusSchema as Xx, SkillsProposalRequestRevisionParamsSchema as Xy, SessionMoveDeviceTargetSchema as Y, UsersAuthConnectStartResultSchema as Y_, ConversationListItemSchema as Ya, SessionOwnerSchema as Yb, SessionsSendParamsSchema as Yc, BoardCronActionParamsSchema as Yd, SKILL_LIBRARY_MAX_BUNDLE_BYTES as Yf, PluginsRefreshParamsSchema as Yg, SessionCatalogTranscriptItemSchema as Yh, TalkSessionCreateResultSchema as Yi, HumanMentionSchema as Yl, ApprovalExpiredReasonSchema as Ym, ScopeUpgradeRegistrationSchema as Yn, SessionSuggestionSchema as Yo, WORKER_RPC_SET_VERSION as Yp, SystemAgentSetupDetectResultSchema as Yr, SessionsBranchesListResultSchema as Ys, NodeDescribeParamsSchema as Yt, UpdateReportParamsSchema as Yu, AgentOwnershipSchema as Yv, WorkerSlotSummarySchema as Yx, SkillsProposalRecordResultSchema as Yy, SessionMoveGatewayTargetSchema as Z, UsersAuthConnectStatusResultSchema as Z_, ConversationListResultSchema as Za, SessionRowSchema as Zb, SESSIONS_PATCH_MANY_MAX_TARGETS as Zc, BoardEventParamsSchema as Zd, SKILL_LIBRARY_MAX_FILE_BYTES as Zf, PluginsSearchParamsSchema as Zg, SessionsCatalogArchiveResultSchema as Zh, TalkSessionSteerParamsSchema as Zi, MAX_HUMAN_MENTIONS as Zl, ApprovalGetResultSchema as Zm, ScopeUpgradeRequestSchema as Zn, SessionSuggestionsAddParamsSchema as Zo, WORKER_SESSION_TOOL_MAX_TEXT_LENGTH as Zp, SystemAgentSetupVerifyResultSchema as Zr, SessionsBranchesSwitchResultSchema as Zs, NodeEventResultSchema as Zt, UpdateRunParamsSchema as Zu, AgentsCreateParamsSchema as Zv, CronJobNotFoundErrorDetailsSchema as Zx, SkillsProposalRequestRevisionResultSchema as Zy, PortalListParamsSchema as _, NonEmptyString as _S, GitHubPublicationSelectionSchema as __, ExecutionIdentityContextV1Schema as _a, ToolCatalogProfileSchema as _b, SessionsFilesGetResultSchema as _c, TranscriptUtteranceSchema as _d, BoardWidgetAppViewParamsSchema as _f, PluginDiscoveryCatalogFactsSchema as _g, PluginApprovalPresentationSchema as _h, TalkSessionAcknowledgeMarkParamsSchema as _i, SESSION_CREATE_IDEMPOTENCY_RETENTION_MS as _l, WorkerProviderReplayStateSchema as _m, NodePresenceAlivePayloadSchema as _n, ProjectRecentFolderSchema as _o, SkillsProposalHistoryStatusParamsSchema as _p, CronDeclarativeAddResultSchema as _r, SessionSharingActionSchema as _s, QuestionAnswersSchema as _t, GATEWAY_SERVER_CAPS as _u, UsersListResultSchema as _v, SecretsStoreDeleteParamsSchema as _x, GitHubSelectedIdentitySchema as _y, WorktreesBranchesResultSchema as a, SkillProposalRevisionChangedErrorDetailsSchema as aS, PluginsUiDescriptorsParamsSchema as a_, AuditEventSchema as aa, SkillsSecurityVerdictsResultSchema as ab, SessionsCompactionRestoreResultSchema as ac, UpdateRunsGetResultSchema as ad, BoardSetChatDockCommandSchema as af, SessionsCatalogStartTerminalParamsSchema as ag, ApprovalSnapshotSchema as ah, COMMAND_ARGS_MAX_ITEMS as ai, SessionsDeleteResultSchema as al, WorkerHeartbeatParamsSchema as am, NodePairApproveParamsSchema as an, MessageActionParamsSchema as ao, SkillsLibraryReadParamsSchema as ap, ExecApprovalRequestParamsSchema as ar, SessionTypingResultSchema as as, SessionPlacementProtocolSchemas as at, MentionsListResultSchema as au, UsersGitHubDisconnectResultSchema as av, SessionParticipantSchema as ax, AgentsFilesListResultSchema as ay, PortalOpenResultSchema as b, SessionLabelString as bS, SessionGitHubOptionsParamsSchema as b_, AUDIT_ACTIVITY_KINDS as ba, ToolsEffectiveEntrySchema as bb, SessionsFilesRevealParamsSchema as bc, TranscriptsGetParamsSchema as bd, BoardWidgetDeclaredSchema as bf, PluginDiscoveryEntrySchema as bg, SessionApprovalReplaySchema as bh, ChannelsPairingDismissParamsSchema as bi, ChatAbortParamsSchema as bl, WorkerSessionsSendParamsSchema as bm, NodeSkillDescriptorSchema as bn, ProjectRecentSchema as bo, WORKER_INFERENCE_MAX_CONTEXT_MESSAGES as bp, CronGetParamsSchema as br, SessionSharingIdentitySchema as bs, QuestionListParamsSchema as bt, StateVersionSchema as bu, UsersPrefsGetResultSchema as bv, SecretsStoreMutationResultSchema as bx, ModelsAuthLogoutParamsSchema as by, WorktreesGcResultSchema as c, WizardNotFoundErrorDetailsSchema as cS, PluginsUninstallResultSchema as c_, AuditRunIdentityAmbiguousV1Schema as ca, SkillsStatusParamsSchema as cb, SessionsCompanionResetParamsSchema as cc, TRANSCRIPTS_EXPORT_MAX_BYTES as cd, BoardTabCreateOpSchema as cf, PluginCatalogClawHubInstallSchema as cg, DeniedApprovalSnapshotSchema as ch, COMMAND_ARG_NAME_MAX_LENGTH as ci, SessionsListParamsSchema as cl, WorkerLiveEventErrorDetailsSchema as cm, NodePairRemoveParamsSchema as cn, WakeParamsSchema as co, validateSkillsLibraryActivateParams as cp, ExecApprovalsGetParamsSchema as cr, SessionMemberMutationResultSchema as cs, SessionPlacementStateSchema as ct, ConnectParamsSchema as cu, UsersLinkAuthProfileParamsSchema as cv, SessionPeerKindSchema as cx, AgentsListParamsSchema as cy, WorktreesRemoveParamsSchema as d, missingScopeErrorShape as dS, SESSION_COLOR_IDS as d_, AuditRunIdentityUnsupportedV1Schema as da, SkillsUploadChunkParamsSchema as db, SessionsCompanionStateResultSchema as dc, TRANSCRIPTS_LEGACY_RESULT_MAX_BYTES as dd, BoardTabSchema as df, PluginCatalogOfficialInstallSchema as dg, ExternalPostApprovalScopeSchema as dh, COMMAND_DESCRIPTION_MAX_LENGTH as di, SessionsGoalMutationResultSchema as dl, WorkerLiveEventRequestFrameSchema as dm, NodePendingDrainResultSchema as dn, MigrationsMemoryApplyParamsSchema as do, validateSkillsLibraryMutateParams as dp, ExecApprovalsNodeSnapshotSchema as dr, SessionMembersListEvidenceResultSchema as ds, SessionsMoveParamsSchema as dt, GatewayFrameSchema as du, UsersLinkEmailResultSchema as dv, SecretStoreEnvEntrySchema as dx, AgentsUpdateResultSchema as dy, McpAppViewExpiredErrorDetailsSchema as eS, PluginsSessionActionParamsSchema as e_, TalkSpeakResultSchema as ea, SkillsProposalsListParamsSchema as eb, SessionsCompactionBranchParamsSchema as ec, UpdateStatusResultSchema as ed, BoardLegacyEventParamsSchema as ef, SessionsCatalogHostEventSchema as eg, ApprovalKindSchema as eh, SystemChangeKindSchema as ei, SessionsPatchManyTargetSchema as el, WORKER_TRANSCRIPT_MAX_CONTENT_PARTS as em, NodeInvokeParamsSchema as en, ConversationTurnCancelParamsSchema as eo, SkillLibrarySelectionSchema as ep, ExecApprovalGetParamsSchema as er, SessionSuggestionsListResultSchema as es, SessionMoveProfileTargetSchema as et, MentionInboxItemSchema as eu, UsersGitHubAuthorizePollParamsSchema as ev, SessionSharingRoleSchema as ex, AgentsDeleteResultSchema as ey, WorktreesRemoveResultSchema as f, CHAT_SEND_SESSION_KEY_MAX_LENGTH as fS, SESSION_ICON_GLYPH_IDS as f_, AuditRunIdentityV1Schema as fa, SkillsUploadCommitParamsSchema as fb, SessionsCreateResultSchema as fc, TRANSCRIPTS_LIST_MAX as fd, BoardTabUpdateOpSchema as ff, PluginControlUiDescriptorSchema as fg, MessageSendApprovalScopeSchema as fh, COMMAND_LIST_MAX_ITEMS as fi, SessionsGoalUpdateParamsSchema as fl, WorkerLiveEventResponseFrameSchema as fm, NodePendingEnqueueParamsSchema as fn, MigrationsMemoryPlanParamsSchema as fo, validateSkillsLibraryReadParams as fp, ExecApprovalsSetParamsSchema as fr, SessionMembersListParamsSchema as fs, SessionsMoveResultSchema as ft, HelloOkSchema as fu, UsersListAuthLinksParamsSchema as fv, SecretStoreSecretEntrySchema as fx, AuthProbeStatusSchema as fy, PortalCloseResultSchema as g, InputProvenanceSchema as gS, GitHubPublicationPublisherSchema as g_, DecisionReceiptV1Schema as ga, ToolCatalogGroupSchema as gb, SessionsFilesGetParamsSchema as gc, TranscriptSessionSummarySchema as gd, BoardViewTicketSchema as gf, PluginDeclaredSurfaceWideningSchema as gg, PluginApprovalExternalResolutionSchema as gh, CommandsListResultSchema as gi, SessionsRecoverResultSchema as gl, WorkerPortalResponseFrameSchema as gm, NodePresenceActivityPayloadSchema as gn, ProjectCheckoutSchema as go, SkillsProposalHistoryScanResultSchema as gp, CronAddResultSchema as gr, SessionPublicShareSetResultSchema as gs, isCloudWorkerPlacementState as gt, TickEventSchema as gu, UsersListParamsSchema as gv, SecretsResolveResultSchema as gx, GitHubIdentitySourceSchema as gy, PortalCloseParamsSchema as h, GatewayClientModeSchema as hS, GitHubPublicationBodySchema as h_, DecisionReceiptDisplayV1Schema as ha, ToolCatalogEntrySchema as hb, SessionsDiffResultSchema as hc, TRANSCRIPTS_RESULT_MAX_BYTES as hd, BoardUpdateParamsSchema as hf, PluginDeclaredSurfaceSchema as hg, PendingSessionApprovalEventSchema as hh, CommandsListParamsSchema as hi, SessionsRecoverParamsSchema as hl, WorkerPortalParamsSchema as hm, NodePluginToolsUpdateParamsSchema as hn, PROJECTS_LIST_MAX_IDENTITY_PROBES as ho, SkillsProposalHistoryScanParamsSchema as hp, CronAddParamsSchema as hr, SessionPublicShareSetParamsSchema as hs, SessionsReclaimResultSchema as ht, ShutdownEventSchema as hu, UsersListModelAccountsResultSchema as hv, SecretsResolveParamsSchema as hx, GitHubIdentityScopeSchema as hy, WorktreesBranchesParamsSchema as i, SetupAdmissionBusyErrorDetailsSchema as iS, PluginsSetEnabledResultSchema as i_, WebLoginWaitParamsSchema as ia, SkillsSecurityVerdictsParamsSchema as ib, SessionsCompactionRestoreParamsSchema as ic, UpdateRunsGetParamsSchema as id, BoardPromptAuthorizeParamsSchema as if, SessionsCatalogReadResultSchema as ig, ApprovalScopeSchema as ih, COMMAND_ALIAS_MAX_ITEMS as ii, SessionsDeleteParamsSchema as il, WorkerConnectRequestFrameSchema as im, NodeListParamsSchema as in, ConversationTurnResultSchema as io, SkillsLibraryMutateParamsSchema as ip, ExecApprovalGrantsRevokeResultSchema as ir, SessionTypingParamsSchema as is, SessionPlacementMoveSchema as it, MentionsListParamsSchema as iu, UsersGitHubDisconnectParamsSchema as iv, SessionParticipantIdentitySchema as ix, AgentsFilesListParamsSchema as iy, TaskSuggestionsDismissParamsSchema as j, GIT_COAUTHOR_PREFERENCE_KEY as j_, ArtifactSummarySchema as ja, ToolsGitHubAuthorizeNetworkErrorResultSchema as jb, SessionsGroupsMutationResultSchema as jc, ProgressCardGetResultSchema as jd, BoardWidgetPluginPropsSchema as jf, PluginsCatalogBrowseResultSchema as jg, TerminalEventSchema as jh, TalkCatalogResultSchema as ji, ChatHistoryResetResultSchema as jl, WorkerTranscriptUserMessageSchema as jm, DevicePairApproveParamsSchema as jn, ProjectsSearchRemoteParamsSchema as jo, WorkerInferenceStartResponseFrameSchema as jp, CronScratchSchema as jr, SessionFileBrowserEntrySchema as js, QuestionSchema as jt, GatewaySuspendStatusDrainingResultSchema as ju, UsersSetRoleParamsSchema as jv, EnvironmentsPrepareParamsSchema as jx, SkillsBinsResultSchema as jy, TaskSuggestionsCreateParamsSchema as k, SessionGitHubStatusParamsSchema as k_, AuditActivityToolActionV1Schema as ka, ToolsGitHubAuthorizeFailedResultSchema as kb, SessionsGroupsListParamsSchema as kc, ProgressCardChangedEventSchema as kd, BoardWidgetPluginContentSchema as kf, PluginSearchResultEntrySchema as kg, TerminalCloseParamsSchema as kh, TalkAgentControlResultSchema as ki, ChatHistoryDeltaResultSchema as kl, WorkerTranscriptCommitResultSchema as km, DesktopObserveResultSchema as kn, ProjectsRemoveParamsSchema as ko, WorkerInferenceOptionsSchema as kp, CronScratchGetParamsSchema as kr, SessionDiffFileStatusSchema as ks, QuestionResolveResultSchema as kt, GatewaySuspendResumeParamsSchema as ku, UsersSetDisplayNameParamsSchema as kv, EnvironmentsListParamsSchema as kx, SkillProposalLifecycleEventSchema as ky, WorktreesListParamsSchema as l, buildMissingScopeErrorDetails as lS, lazyCompile as l_, AuditRunIdentityPresentV1Schema as la, SkillsUpdateParamsSchema as lb, SessionsCompanionResetResultSchema as lc, TRANSCRIPTS_LEGACY_MAX_TEXT_LENGTH as ld, BoardTabDeleteOpSchema as lf, PluginCatalogEntrySchema as lg, ExecApprovalPresentationSchema as lh, COMMAND_CHOICE_LABEL_MAX_LENGTH as li, SessionGoalSchema as ll, WorkerLiveEventErrorShapeSchema as lm, NodePendingAckParamsSchema as ln, MAX_MEMORY_MIGRATION_ITEMS as lo, validateSkillsLibraryImportParams as lp, ExecApprovalsNodeGetParamsSchema as lr, SessionMemberRemoveParamsSchema as ls, SessionsDispatchParamsSchema as lt, ErrorShapeSchema as lu, UsersLinkAuthProfileResultSchema as lv, GitHubSetupHandleSchema as lx, AgentsListResultSchema as ly, PortalChangedEventSchema as m, GatewayClientIdSchema as mS, normalizeSessionIconValue as m_, AuditRunInspectResultSchema as ma, SkillsWorkshopReadResultSchema as mb, SessionsDiffParamsSchema as mc, TRANSCRIPTS_PAGE_MAX as md, BoardTicketEventParamsSchema as mf, PluginControlUiModuleSchema as mg, PendingApprovalSnapshotSchema as mh, CommandEntrySchema as mi, SessionsTitlePrepareResultSchema as ml, WorkerLiveEventSchema as mm, NodePluginToolDescriptorSchema as mn, PROJECTS_LIST_MAX_CHECKOUTS_PER_PROJECT as mo, validateSkillsLibraryUploadParams as mp, CronAddJobResultSchema as mr, SessionPublicShareSchema as ms, SessionsReclaimResultPlacementSchema as mt, ResponseFrameSchema as mu, UsersListModelAccountsParamsSchema as mv, SecretsResolveAssignmentSchema as mx, GitHubIdentityFactsSchema as my, WorktreeRecordSchema as n, OutboundDeliveryQueuedErrorDetailsSchema as nS, PluginsSessionActionSuccessResultSchema as n_, TtsSpeakResultSchema as na, SkillsSearchParamsSchema as nb, SessionsCompactionListParamsSchema as nc, UpdateRunRecordSchema as nd, BoardOpSchema as nf, SessionsCatalogListResultSchema as ng, ApprovalResolveParamsSchema as nh, SystemChangesListParamsSchema as ni, SessionsPatchParamsSchema as nl, WorkerAdmissionHandshakeSchema as nm, NodeInvokeRequestEventSchema as nn, ConversationTurnParamsSchema as no, SkillsLibraryImportParamsSchema as np, ExecApprovalGrantsListResultSchema as nr, SessionSuggestionsResolveResultSchema as ns, SessionPlacementDiskSpaceSchema as nt, MentionsChangedEventSchema as nu, UsersGitHubAuthorizeStartParamsSchema as nv, SESSION_EXPANDED_PARTICIPANT_LIMIT as nx, AgentsFilesGetParamsSchema as ny, WorktreesCreateParamsSchema as o, UnknownAgentIdErrorDetailsSchema as oS, PluginsUiDescriptorsResultSchema as o_, AuditListParamsSchema as oa, SkillsSkillCardParamsSchema as ob, SessionsCompanionAskParamsSchema as oc, UpdateRunsListParamsSchema as od, BoardSizeSchema as of, SessionsCatalogStartTerminalResultSchema as og, ApprovalTerminalReasonSchema as oh, COMMAND_ARG_CHOICES_MAX_ITEMS as oi, WORKTREE_PRESERVATION_REASONS as ol, WorkerHeartbeatRequestFrameSchema as om, NodePairListParamsSchema as on, PollParamsSchema as oo, SkillsLibrarySaveParamsSchema as op, ExecApprovalResolveParamsSchema as or, SessionMemberAddParamsSchema as os, SessionPlacementRunnerSchema as ot, UsersMentionableParamsSchema as ou, UsersGitHubStatusParamsSchema as ov, SessionPersonSchema as ox, AgentsFilesSetParamsSchema as oy, WorktreesRestoreParamsSchema as p, ChatSendSessionKeyString as pS, normalizeSessionColorValue as p_, AuditRunInspectParamsSchema as pa, SkillsWorkshopReadParamsSchema as pb, SessionsDescribeParamsSchema as pc, TRANSCRIPTS_PAGE_DEFAULT as pd, BoardTabsReorderOpSchema as pf, PluginControlUiDiagnosticSchema as pg, PaymentApprovalScopeSchema as ph, COMMAND_NAME_MAX_LENGTH as pi, SessionsTitlePrepareParamsSchema as pl, WorkerLiveEventResultSchema as pm, NodePendingEnqueueResultSchema as pn, PROJECTS_LIST_DEFAULT_LIMIT as po, validateSkillsLibrarySaveParams as pp, ExecApprovalsSnapshotSchema as pr, SessionMembersListResultSchema as ps, SessionsReclaimParamsSchema as pt, RequestFrameSchema as pu, UsersListAuthLinksResultSchema as pv, SecretsReloadParamsSchema as px, GitHubAuthorSchema as py, SessionDiscussionOpenResultSchema as q, UsersAuthConnectResultSchema as q_, AgentParamsSchema as qa, SessionCreatedActorSchema as qb, SessionsSearchParamsSchema as qc, BoardCommandEventSchema as qd, UiSidebarCommandSchema as qf, PluginsListParamsSchema as qg, SessionCatalogSessionSchema as qh, TalkSessionCloseParamsSchema as qi, LogsTailResultSchema as ql, ApprovalDecisionSchema as qm, ScopeUpgradeApprovedSchema as qn, SessionSuggestionEventSchema as qo, WORKER_PROTOCOL_METHODS as qp, SystemAgentSetupAuthStartResultSchema as qr, SessionsAssignOwnerResultSchema as qs, WebPushUnsubscribeParamsSchema as qt, UpdateHoldParamsSchema as qu, WizardStepSchema as qv, WorkerMachineOptionsSchema as qx, SkillsProposalInspectParamsSchema as qy, WorktreeRepositoryStatusSchema as r, ProjectCloneErrorDetailsSchema as rS, PluginsSetEnabledParamsSchema as r_, WebLoginStartParamsSchema as ra, SkillsSearchResultSchema as rb, SessionsCompactionListResultSchema as rc, UpdateRunResultSchema as rd, BoardPluginActionParamsSchema as rf, SessionsCatalogReadParamsSchema as rg, ApprovalResolveResultSchema as rh, SystemChangesListResultSchema as ri, PreservedSessionWorktreeSchema as rl, WorkerAdmissionResponseFrameSchema as rm, NodeInvokeResultParamsSchema as rn, ConversationTurnReplySchema as ro, SkillsLibraryListParamsSchema as rp, ExecApprovalGrantsRevokeParamsSchema as rr, SessionTypingEventSchema as rs, SessionPlacementMachineSchema as rt, MentionsDismissParamsSchema as ru, UsersGitHubAuthorizeStartResultSchema as rv, SESSION_PARTICIPANT_LIMIT as rx, AgentsFilesGetResultSchema as ry, WorktreesGcParamsSchema as s, UserPrefsLimitExceededErrorDetailsSchema as sS, PluginsUninstallParamsSchema as s_, AuditListResultSchema as sa, SkillsSkillCardResultSchema as sb, SessionsCompanionAskResultSchema as sc, UpdateRunsListResultSchema as sd, BoardSnapshotSchema as sf, CapabilityConsentErrorDetailsSchema as sg, CancelledApprovalSnapshotSchema as sh, COMMAND_ARG_DESCRIPTION_MAX_LENGTH as si, WorktreePreservationReasonSchema as sl, WorkerHeartbeatResponseFrameSchema as sm, NodePairRejectParamsSchema as sn, SendParamsSchema as so, SkillsLibraryUploadParamsSchema as sp, ExecApprovalStandingGrantSchema as sr, SessionMemberEvidenceSchema as ss, SessionPlacementSchema as st, UsersMentionableResultSchema as su, UsersGitHubStatusResultSchema as sv, SessionClassificationSchema as sx, AgentsFilesSetResultSchema as sy, WorktreeBranchSchema as t, MissingScopeErrorDetailsSchema as tS, PluginsSessionActionResultSchema as t_, TtsSpeakParamsSchema as ta, SkillsProposalsListResultSchema as tb, SessionsCompactionBranchResultSchema as tc, UpdateRunChangedEventSchema as td, BoardMcpAppDescriptorSchema as tf, SessionsCatalogListParamsSchema as tg, ApprovalPresentationSchema as th, SystemChangeSourceSchema as ti, SessionsPatchMutationSchema as tl, WORKER_TRANSCRIPT_MAX_JSON_DEPTH as tm, NodeInvokeProgressParamsSchema as tn, ConversationTurnCancelResultSchema as to, SkillsLibraryActivateParamsSchema as tp, ExecApprovalGrantsListParamsSchema as tr, SessionSuggestionsResolveParamsSchema as ts, SessionMoveTargetSchema as tt, MentionableUserSchema as tu, UsersGitHubAuthorizePollResultSchema as tv, SessionVisibilitySchema as tx, AgentsFileEntrySchema as ty, WorktreesListResultSchema as u, errorShape as uS, SESSION_AGENT_ATTENTION_ICON_IDS as u_, AuditRunIdentityUnknownV1Schema as ua, SkillsUploadBeginParamsSchema as ub, SessionsCompanionStateParamsSchema as uc, TRANSCRIPTS_LEGACY_MAX_UTTERANCES as ud, BoardTabIdSchema as uf, PluginCatalogInstallActionSchema as ug, ExpiredApprovalSnapshotSchema as uh, COMMAND_CHOICE_VALUE_MAX_LENGTH as ui, SessionsGoalClearParamsSchema as ul, WorkerLiveEventParamsSchema as um, NodePendingDrainParamsSchema as un, MigrationProtocolSchemas as uo, validateSkillsLibraryListParams as up, ExecApprovalsNodeSetParamsSchema as ur, SessionMemberSchema as us, SessionsDispatchResultSchema as ut, EventFrameSchema as uu, UsersLinkEmailParamsSchema as uv, SecretStoreEntrySchema as ux, AgentsUpdateParamsSchema as uy, PortalListResultSchema as v, SecretInputSchema as vS, GitHubPublicationTitleSchema as v_, PrincipalRefV1Schema as va, ToolsCatalogParamsSchema as vb, SessionsFilesListParamsSchema as vc, TranscriptsExportParamsSchema as vd, BoardWidgetAppViewResultSchema as vf, PluginDiscoveryCategorySchema as vg, PluginApprovalSeveritySchema as vh, ChannelsPairingApproveParamsSchema as vi, SESSION_CREATE_RETRY_WINDOW_MS as vl, WorkerSessionToolResponseFrameSchema as vm, NodePresenceAliveReasonSchema as vn, ProjectRecentProjectSchema as vo, validateSkillsProposalHistoryScanParams as vp, CronDeliveryPreviewSchema as vr, SessionSharingEventSchema as vs, QuestionGetParamsSchema as vt, PresenceEntrySchema as vu, UsersPrefsChangedEventSchema as vv, SecretsStoreListParamsSchema as vx, ModelCatalogProviderOutcomeSchema as vy, TaskSuggestionEventSchema as w, SessionGitHubPublicationPublishedSchema as w_, AuditActivityEventV1Schema as wa, ToolsEffectiveResultSchema as wb, SessionsForkParamsSchema as wc, TranscriptsStatusParamsSchema as wd, BoardWidgetHtmlContentSchema as wf, PluginInstallTrustSchema as wg, TerminalSessionApprovalEventSchema as wh, ChannelsLogoutParamsSchema as wi, ChatDeltaEventSchema as wl, WorkerTranscriptCommitErrorReasonSchema as wm, FsDirEntrySchema as wn, ProjectsAddResultSchema as wo, WORKER_PROTOCOL_MAX_INFERENCE_PAYLOAD_BYTES as wp, CronPacingSchema as wr, SessionBranchSchema as ws, QuestionRequestParamsSchema as wt, GatewaySuspendPrepareBusyResultSchema as wu, UsersSelectModelAccountResultSchema as wv, EnvironmentSummarySchema as wx, ModelsListResultSchema as wy, PortalSummarySchema as x, closedObject as xS, SessionGitHubOptionsResultSchema as x_, AUDIT_ACTIVITY_MESSAGE_KIND as xa, ToolsEffectiveGroupSchema as xb, SessionsFilesRevealResultSchema as xc, TranscriptsGetResultSchema as xd, BoardWidgetGeneratedIdentitySchema as xf, PluginDiscoveryLocalFactsSchema as xg, StandingGrantApprovalScopeSchema as xh, ChannelsPairingDismissResultSchema as xi, ChatAbortedEventSchema as xl, WorkerSessionsSendResponseFrameSchema as xm, NodeSkillsUpdateParamsSchema as xn, ProjectRecordSchema as xo, WORKER_INFERENCE_MAX_OUTPUT_TOKENS as xp, CronJobSchema as xr, SessionVisibilitySetParamsSchema as xs, QuestionListResultSchema as xt, GatewaySuspendBlockerSchema as xu, UsersPrefsSetParamsSchema as xv, SecretsStoreSetParamsSchema as xx, ModelsAuthOrderSetParamsSchema as xy, PortalOpenParamsSchema as y, SecretRefSchema as yS, SessionGitHubConfirmParamsSchema as y_, AUDIT_ACTIVITY_DIRECTIONS as ya, ToolsCatalogResultSchema as yb, SessionsFilesListResultSchema as yc, TranscriptsExportResultSchema as yd, BoardWidgetContentSchema as yf, PluginDiscoveryDetailSchema as yg, SessionApprovalEventSchema as yh, ChannelsPairingApproveResultSchema as yi, SessionsCreateParamsSchema as yl, WorkerSessionToolResultSchema as ym, NodeRenameParamsSchema as yn, ProjectRecentRepositorySchema as yo, validateSkillsProposalHistoryStatusParams as yp, CronDeliverySchema as yr, SessionSharingEvidenceEventSchema as ys, QuestionGetResultSchema as yt, SnapshotSchema as yu, UsersPrefsGetParamsSchema as yv, SecretsStoreListResultSchema as yx, ModelChoiceSchema as yy, SessionsViewerPresenceSetResultSchema as z, UserProfileAuthLinkSchema as z_, AgentsWorkspaceFileSchema as za, ToolsGitHubConfigureParamsSchema as zb, SessionsObserverVisibilityResultSchema as zc, BOARD_CRON_JOB_ID_MAX_LENGTH as zd, BoardWidgetSchema as zf, PluginsControlUiReloadParamsSchema as zg, TerminalUploadParamsSchema as zh, TalkClientTranscriptParamsSchema as zi, ChatRunStartupPhaseSchema as zl, WORKER_PUBLIC_INGRESS_PATH as zm, DevicePairSetupCodeResultSchema as zn, TasksGetResultSchema as zo, WORKER_HEARTBEAT_INTERVAL_MS as zp, SystemAgentChatParamsSchema as zr, SessionGroupSchema as zs, WebPushDetailLevelSchema as zt, ConfigGetParamsSchema as zu, WizardAnswerSchema as zv, WorkerDesktopLaunchParamsSchema as zx, SkillsProposalActionParamsSchema as zy };
|
|
14788
|
+
//#region src/schema/tools-catalog.ts
|
|
14789
|
+
/** Reads the configured tool catalog for an agent. */
|
|
14790
|
+
const ToolsCatalogParamsSchema = closedObject({
|
|
14791
|
+
agentId: Type.Optional(NonEmptyString),
|
|
14792
|
+
includePlugins: Type.Optional(Type.Boolean())
|
|
14793
|
+
});
|
|
14794
|
+
/** Tool profile shown in catalog views. */
|
|
14795
|
+
const ToolCatalogProfileSchema = closedObject({
|
|
14796
|
+
id: Type.Union([
|
|
14797
|
+
Type.Literal("minimal"),
|
|
14798
|
+
Type.Literal("coding"),
|
|
14799
|
+
Type.Literal("messaging"),
|
|
14800
|
+
Type.Literal("full")
|
|
14801
|
+
]),
|
|
14802
|
+
label: NonEmptyString
|
|
14803
|
+
});
|
|
14804
|
+
/** Tool catalog entry before session-specific filtering is applied. */
|
|
14805
|
+
const ToolCatalogEntrySchema = closedObject({
|
|
14806
|
+
id: NonEmptyString,
|
|
14807
|
+
label: NonEmptyString,
|
|
14808
|
+
description: Type.String(),
|
|
14809
|
+
source: Type.Union([Type.Literal("core"), Type.Literal("plugin")]),
|
|
14810
|
+
pluginId: Type.Optional(NonEmptyString),
|
|
14811
|
+
optional: Type.Optional(Type.Boolean()),
|
|
14812
|
+
risk: Type.Optional(Type.Union([
|
|
14813
|
+
Type.Literal("low"),
|
|
14814
|
+
Type.Literal("medium"),
|
|
14815
|
+
Type.Literal("high")
|
|
14816
|
+
])),
|
|
14817
|
+
tags: Type.Optional(Type.Array(NonEmptyString)),
|
|
14818
|
+
fullDescription: Type.Optional(Type.String()),
|
|
14819
|
+
defaultProfiles: Type.Array(Type.Union([
|
|
14820
|
+
Type.Literal("minimal"),
|
|
14821
|
+
Type.Literal("coding"),
|
|
14822
|
+
Type.Literal("messaging"),
|
|
14823
|
+
Type.Literal("full")
|
|
14824
|
+
]))
|
|
14825
|
+
});
|
|
14826
|
+
/** Group of related catalog tools from core or a plugin. */
|
|
14827
|
+
const ToolCatalogGroupSchema = closedObject({
|
|
14828
|
+
id: NonEmptyString,
|
|
14829
|
+
label: NonEmptyString,
|
|
14830
|
+
source: Type.Union([Type.Literal("core"), Type.Literal("plugin")]),
|
|
14831
|
+
pluginId: Type.Optional(NonEmptyString),
|
|
14832
|
+
tools: Type.Array(ToolCatalogEntrySchema)
|
|
14833
|
+
});
|
|
14834
|
+
/** Tool catalog result for agent configuration UI. */
|
|
14835
|
+
const ToolsCatalogResultSchema = closedObject({
|
|
14836
|
+
agentId: NonEmptyString,
|
|
14837
|
+
profiles: Type.Array(ToolCatalogProfileSchema),
|
|
14838
|
+
groups: Type.Array(ToolCatalogGroupSchema)
|
|
14839
|
+
});
|
|
14840
|
+
//#endregion
|
|
14841
|
+
export { SessionDiscussionStateSchema as $, SecretRefSchema as $S, GitHubPublicationSelectionSchema as $_, AgentIdentityResultSchema as $a, ToolsEffectiveResultSchema as $b, SessionsSearchHitSchema as $c, BoardActionParamsSchema as $d, TalkVoiceGetParamsSchema as $f, PluginRuntimeStatusSchema as $g, TerminalInputParamsSchema as $h, TalkSessionCancelOutputResultSchema as $i, ChatToolTitlesParamsSchema as $l, WorkerComputerParamsSchema as $m, DeviceTokenRotateResultSchema as $n, SessionSuggestionActionSchema as $o, validateWorkerInferenceStartParams as $p, SystemAgentSetupAuthStartParamsSchema as $r, SessionsAssignOwnerParamsSchema as $s, WebPushVapidPublicKeyParamsSchema as $t, ConfigSetParamsSchema as $u, UsersPrefsSetParamsSchema as $v, SecretsStoreSetParamsSchema as $x, ModelsAuthRefreshParamsSchema as $y, TaskSuggestionResolutionSchema as A, CronJobNotFoundErrorDetailsSchema as AS, PluginsSessionActionResultSchema as A_, AuditActivityAgentRunV1Schema as Aa, SkillsProposalRequestRevisionParamsSchema as Ab, SessionsFilesSetResultSchema as Ac, TranscriptsListParamsSchema as Ad, BoardWidgetDeclaredSchema as Af, MAX_PLUGIN_RELOAD_TARGETS as Ag, ExpiredApprovalSnapshotSchema as Ah, ChannelsPairingListResultSchema as Ai, ChatAbortedEventSchema as Al, WorkerLiveEventParamsSchema as Am, FsListDirParamsSchema as An, ProjectsAddParamsSchema as Ao, validateSkillsLibrarySaveParams as Ap, CronListParamsSchema as Ar, SESSION_OBSERVER_HEALTH_VALUES as As, QuestionRequestQuestionSchema as At, GatewaySuspendHandoffParamsSchema as Au, UsersGitHubAuthorizeCancelParamsSchema as Av, SessionVisibilitySchema as Ax, AgentsDeleteResultSchema as Ay, SystemInfoParamsSchema as B, UnknownAgentIdErrorDetailsSchema as BS, PluginsCredentialsInspectParamsSchema as B_, ArtifactsDownloadResultSchema as Ba, SkillsSkillCardParamsSchema as Bb, SessionsGroupsRenameParamsSchema as Bc, ProgressCardPutParamsSchema as Bd, BoardWidgetPluginKindSchema as Bf, PluginDiscoveryCatalogFactsSchema as Bg, SessionApprovalReplaySchema as Bh, TalkClientCreateParamsSchema as Bi, ChatHistoryResetResultSchema as Bl, WorkerSessionsSendParamsSchema as Bm, DevicePairRejectParamsSchema as Bn, RemoteProjectSchema as Bo, WORKER_INFERENCE_MAX_OUTPUT_TOKENS as Bp, CronScratchSetResultSchema as Br, SessionFileContentEncodingSchema as Bs, QuestionWaitAnswerParamsSchema as Bt, GatewaySuspendStatusParamsSchema as Bu, UsersLinkAuthProfileParamsSchema as Bv, SessionPeerKindSchema as Bx, AgentsUpdateParamsSchema as By, PortalListResultSchema as C, WorkerExecutionModeSchema as CS, PluginsRefreshResultSchema as C_, DecisionReceiptV1Schema as Ca, SkillsProposalEvaluateParamsSchema as Cb, SessionsFilesGetParamsSchema as Cc, TRANSCRIPTS_RESULT_MAX_BYTES as Cd, BoardTabsReorderOpSchema as Cf, SessionsCatalogReadParamsSchema as Cg, ApprovalResolveResultSchema as Ch, CommandsListResultSchema as Ci, SessionsStorageStatusResultSchema as Cl, WorkerAdmissionResponseFrameSchema as Cm, NodePresenceAliveReasonSchema as Cn, ProjectCheckoutSchema as Co, SkillsLibrarySaveParamsSchema as Cp, CronAddResultSchema as Cr, SessionPublicShareSetResultSchema as Cs, QuestionGetParamsSchema as Ct, ResponseFrameSchema as Cu, UsersAuthConnectCatalogParamsSchema as Cv, SessionEntryArchiveReasonSchema as Cx, WizardStepSchema as Cy, PluginApprovalRequestParamsSchema as D, WorkerSlotSummarySchema as DS, PluginsSearchResultSchema as D_, AUDIT_ACTIVITY_KINDS as Da, SkillsProposalInspectParamsSchema as Db, SessionsFilesRevealParamsSchema as Dc, TranscriptsExportResultSchema as Dd, BoardWidgetAppViewParamsSchema as Df, CapabilityConsentErrorDetailsSchema as Dg, CancelledApprovalSnapshotSchema as Dh, ChannelsPairingDismissParamsSchema as Di, SESSION_CREATE_RETRY_WINDOW_MS as Dl, WorkerHeartbeatResponseFrameSchema as Dm, NODE_PRESENCE_ALIVE_REASONS as Dn, ProjectRecentSchema as Do, validateSkillsLibraryListParams as Dp, CronGetParamsSchema as Dr, SessionSharingIdentitySchema as Ds, QuestionOptionSchema as Dt, SnapshotSchema as Du, UsersAuthConnectStartResultSchema as Dv, SessionToolOverridesSchema as Dx, AgentsCreateParamsSchema as Dy, PortalSummarySchema as E, WorkerOperatingSystemSchema as ES, PluginsSearchParamsSchema as E_, AUDIT_ACTIVITY_DIRECTIONS as Ea, SkillsProposalEventsListResultSchema as Eb, SessionsFilesListResultSchema as Ec, TranscriptsExportParamsSchema as Ed, BoardViewTicketSchema as Ef, SessionsCatalogStartTerminalResultSchema as Eg, ApprovalTerminalReasonSchema as Eh, ChannelsPairingApproveResultSchema as Ei, SESSION_CREATE_IDEMPOTENCY_RETENTION_MS as El, WorkerHeartbeatRequestFrameSchema as Em, NodeSkillsUpdateParamsSchema as En, ProjectRecentRepositorySchema as Eo, validateSkillsLibraryImportParams as Ep, CronDeliverySchema as Er, SessionSharingEvidenceEventSchema as Es, QuestionListResultSchema as Et, PresenceEntrySchema as Eu, UsersAuthConnectStartParamsSchema as Ev, SessionRowSchema as Ex, AgentSummarySchema as Ey, TaskSuggestionsCreateResultSchema as F, OutboundDeliveryQueuedErrorDetailsSchema as FS, PluginsUiDescriptorsResultSchema as F_, AuditActivityOutboundMessageV1Schema as Fa, SkillsProposalsListResultSchema as Fb, SessionsGroupsDeleteParamsSchema as Fc, PROGRESS_CARD_MAX_STEP_UTF8_BYTES as Fd, BoardWidgetMcpAppContentSchema as Ff, PluginControlUiDescriptorSchema as Fg, PendingSessionApprovalEventSchema as Fh, ChannelsStopParamsSchema as Fi, ChatEventSchema as Fl, WorkerPortalParamsSchema as Fm, DesktopReleaseParamsSchema as Fn, ProjectsRegisterResultSchema as Fo, validateSkillsProposalHistoryScanParams as Fp, CronRunsParamsSchema as Fr, SessionDiffFileSchema as Fs, QuestionResolvedEventSchema as Ft, GatewaySuspendPrepareReadyResultSchema as Fu, UsersGitHubAuthorizeStartResultSchema as Fv, SESSION_PARTICIPANT_LIMIT as Fx, AgentsFilesListResultSchema as Fy, SessionsResolveCandidateSchema as G, missingScopeErrorShape as GS, SESSION_COLOR_IDS as G_, AgentsWorkspaceEntrySchema as Ga, SkillsUploadChunkParamsSchema as Gb, SessionsObserverVisibilityParamsSchema as Gc, CANVAS_DOCUMENT_PREVIEW_MAX_BYTES as Gd, BoardWidgetPutResultSchema as Gf, PluginHookGrantSchema as Gg, isWellFormedApprovalId as Gh, TalkClientToolCallResultSchema as Gi, ChatMessageGetResultSchema as Gl, WorkerTranscriptCommitErrorShapeSchema as Gm, DevicePairSetupCodeParamsSchema as Gn, TasksGetParamsSchema as Go, WorkerInferenceCancelResponseFrameSchema as Gp, SystemAgentChatHistoryTurnSchema as Gr, SessionGroupDefaultsSchema as Gs, WebPushDevicePreferencesSchema as Gt, GatewaySuspensionSchema as Gu, UsersListAuthLinksResultSchema as Gv, SecretsReloadParamsSchema as Gx, GitHubIdentityScopeSchema as Gy, SESSION_VIEWER_PRESENCE_MAX_KEYS as H, WizardNotFoundErrorDetailsSchema as HS, validatePluginsCredentialsInspectParams as H_, ArtifactsGetResultSchema as Ha, SkillsStatusParamsSchema as Hb, SessionsGroupsUpdateResultSchema as Hc, ProgressCardSchema as Hd, BoardWidgetPresentationSchema as Hf, PluginDiscoveryDetailSchema as Hg, SystemAgentApprovalPresentationSchema as Hh, TalkClientMutationResultSchema as Hi, ChatInputConsumptionsSchema as Hl, WorkerSessionsSpawnParamsSchema as Hm, DevicePairRenameParamsSchema as Hn, TaskSummarySchema as Ho, WORKER_INFERENCE_PROTOCOL_FEATURE as Hp, CronUpdateParamsSchema as Hr, SessionFileKindSchema as Hs, PushTestParamsSchema as Ht, GatewaySuspendStatusResultSchema as Hu, UsersLinkEmailParamsSchema as Hv, SecretStoreEntrySchema as Hx, AuthProbeStatusSchema as Hy, TaskSuggestionsDismissParamsSchema as I, ProjectCloneErrorDetailsSchema as IS, PluginsUninstallParamsSchema as I_, AuditActivityToolActionV1Schema as Ia, SkillsSearchParamsSchema as Ib, SessionsGroupsListParamsSchema as Ic, PROGRESS_CARD_MAX_UTF8_BYTES as Id, BoardWidgetMcpAppPutContentSchema as If, PluginControlUiDiagnosticSchema as Ig, PluginApprovalExternalResolutionSchema as Ih, TalkAgentControlResultSchema as Ii, ChatFinalEventSchema as Il, WorkerPortalResponseFrameSchema as Im, DesktopReleaseResultSchema as In, ProjectsRemoveParamsSchema as Io, validateSkillsProposalHistoryStatusParams as Ip, CronScratchGetParamsSchema as Ir, SessionDiffFileStatusSchema as Is, QuestionSchema as It, GatewaySuspendPrepareResultSchema as Iu, UsersGitHubDisconnectParamsSchema as Iv, SessionParticipantIdentitySchema as Ix, AgentsFilesSetParamsSchema as Iy, SessionDiscussionInfoParamsSchema as J, GatewayClientIdSchema as JS, SESSION_ICON_SVG_MAX_BYTES as J_, AgentsWorkspaceGetResultSchema as Ja, SkillsWorkshopReadResultSchema as Jb, SessionsPluginPatchResultSchema as Jc, CanvasDocumentViewResultSchema as Jd, BoardWidgetResizeOpSchema as Jf, PluginInstalledComponentsSchema as Jg, TerminalAttachResultSchema as Jh, TalkConfigResultSchema as Ji, ChatRunStartupPhaseSchema as Jl, WorkerTranscriptCommitResponseFrameSchema as Jm, DevicePairSetupDeliveryUncertainEventSchema as Jn, TasksHistoryResultSchema as Jo, WorkerInferenceOptionsSchema as Jp, SystemAgentChatResultSchema as Jr, SessionObserverHealthSchema as Js, WebPushPreferencesGetParamsSchema as Jt, ConfigPatchParamsSchema as Ju, UsersListParamsSchema as Jv, SecretsResolveResultSchema as Jx, ModelCatalogProviderOutcomeSchema as Jy, SessionsResolveParamsSchema as K, CHAT_SEND_SESSION_KEY_MAX_LENGTH as KS, SESSION_ICON_GLYPH_IDS as K_, AgentsWorkspaceFileSchema as Ka, SkillsUploadCommitParamsSchema as Kb, SessionsObserverVisibilityResultSchema as Kc, CanvasDocumentPreviewParamsSchema as Kd, BoardWidgetRegisteredContentSchema as Kf, PluginInspectSourceSchema as Kg, TerminalAckResultSchema as Kh, TalkClientTranscriptParamsSchema as Ki, ChatMetadataParamsSchema as Kl, WorkerTranscriptCommitParamsSchema as Km, DevicePairSetupCodeResultSchema as Kn, TasksGetResultSchema as Ko, WorkerInferenceImageContentSchema as Kp, SystemAgentChatParamsSchema as Kr, SessionGroupSchema as Ks, WebPushNotificationCategorySchema as Kt, ConfigApplyParamsSchema as Ku, UsersListModelAccountsParamsSchema as Kv, SecretsResolveAssignmentSchema as Kx, GitHubIdentitySourceSchema as Ky, TaskSuggestionsDismissResultSchema as L, SessionWorkspaceRecoveryRequiredErrorDetailsSchema as LS, PluginsUninstallResultSchema as L_, findAuditActivityFilterConflict as La, SkillsSearchResultSchema as Lb, SessionsGroupsListResultSchema as Lc, ProgressCardChangedEventSchema as Ld, BoardWidgetMoveOpSchema as Lf, PluginControlUiModuleSchema as Lg, PluginApprovalPresentationSchema as Lh, TalkCatalogParamsSchema as Li, ChatHistoryCursorResultSchema as Ll, WorkerProviderReplayStateSchema as Lm, DesktopSourceSchema as Ln, ProjectsRemoveResultSchema as Lo, ComputerInvokeParamsSchema as Lp, CronScratchGetResultSchema as Lr, SessionDiffScopeSchema as Ls, QuestionSecretStoreBindingSchema as Lt, GatewaySuspendResumeParamsSchema as Lu, UsersGitHubDisconnectResultSchema as Lv, SessionParticipantSchema as Lx, AgentsFilesSetResultSchema as Ly, TaskSuggestionsAcceptParamsSchema as M, GitHubPublicationSelectionRejectedErrorDetailsSchema as MS, PluginsSetEnabledParamsSchema as M_, AuditActivityInboundMessageV1Schema as Ma, SkillsProposalReviseParamsSchema as Mb, SessionsForkResultSchema as Mc, TranscriptsStatusParamsSchema as Md, BoardWidgetGrantParamsSchema as Mf, PluginCatalogEntrySchema as Mg, MessageSendApprovalScopeSchema as Mh, ChannelsStartParamsSchema as Mi, ChatAttachmentsSchema as Ml, WorkerLiveEventResponseFrameSchema as Mm, DesktopLaunchParamsSchema as Mn, ProjectsListParamsSchema as Mo, SkillsProposalHistoryScanParamsSchema as Mp, CronRemoveParamsSchema as Mr, SessionCompactionCheckpointSchema as Ms, QuestionRequestedEventSchema as Mt, GatewaySuspendPrepareBusyResultSchema as Mu, UsersGitHubAuthorizePollParamsSchema as Mv, SessionsActivitySummaryEnsureParamsSchema as Mx, AgentsFilesGetParamsSchema as My, TaskSuggestionsAcceptResultSchema as N, McpAppViewExpiredErrorDetailsSchema as NS, PluginsSetEnabledResultSchema as N_, AuditActivityListParamsSchema as Na, SkillsProposalUpdateParamsSchema as Nb, SessionsGroupsDefaultsParamsSchema as Nc, TranscriptsStatusResultSchema as Nd, BoardWidgetHeightModeSchema as Nf, PluginCatalogInstallActionSchema as Ng, PaymentApprovalScopeSchema as Nh, ChannelsStatusParamsSchema as Ni, ChatDeltaEventSchema as Nl, WorkerLiveEventResultSchema as Nm, DesktopObserveParamsSchema as Nn, ProjectsListResultSchema as No, SkillsProposalHistoryScanResultSchema as Np, CronRunLogEntrySchema as Nr, SessionCompanionExchangeSchema as Ns, QuestionResolveParamsSchema as Nt, GatewaySuspendPrepareDrainingResultSchema as Nu, UsersGitHubAuthorizePollResultSchema as Nv, SessionsActivitySummaryEnsureResultSchema as Nx, AgentsFilesGetResultSchema as Ny, PluginApprovalResolveParamsSchema as O, WorkerTunnelStatusSchema as OS, PluginsSessionActionFailureResultSchema as O_, AUDIT_ACTIVITY_MESSAGE_KIND as Oa, SkillsProposalInspectResultSchema as Ob, SessionsFilesRevealResultSchema as Oc, TranscriptsGetParamsSchema as Od, BoardWidgetAppViewResultSchema as Of, ControlUiPluginTabSchema as Og, DeniedApprovalSnapshotSchema as Oh, ChannelsPairingDismissResultSchema as Oi, SessionsCreateParamsSchema as Ol, WorkerLiveEventErrorDetailsSchema as Om, HooksStatusParamsSchema as On, ProjectRecordSchema as Oo, validateSkillsLibraryMutateParams as Op, CronJobSchema as Or, SessionVisibilitySetParamsSchema as Os, QuestionRecordSchema as Ot, StateVersionSchema as Ou, UsersAuthConnectStatusParamsSchema as Ov, SESSION_VISIBILITY_VALUES as Ox, AgentsCreateResultSchema as Oy, TaskSuggestionsCreateParamsSchema as P, MissingScopeErrorDetailsSchema as PS, PluginsUiDescriptorsParamsSchema as P_, AuditActivityListResultSchema as Pa, SkillsProposalsListParamsSchema as Pb, SessionsGroupsDefaultsResultSchema as Pc, PROGRESS_CARD_MAX_STEPS as Pd, BoardWidgetHtmlContentSchema as Pf, PluginCatalogOfficialInstallSchema as Pg, PendingApprovalSnapshotSchema as Ph, ChannelsStatusResultSchema as Pi, ChatErrorEventSchema as Pl, WorkerLiveEventSchema as Pm, DesktopObserveResultSchema as Pn, ProjectsRegisterParamsSchema as Po, SkillsProposalHistoryStatusParamsSchema as Pp, CronRunParamsSchema as Pr, SessionDiffCommitSchema as Ps, QuestionResolveResultSchema as Pt, GatewaySuspendPrepareParamsSchema as Pu, UsersGitHubAuthorizeStartParamsSchema as Pv, SESSION_EXPANDED_PARTICIPANT_LIMIT as Px, AgentsFilesListParamsSchema as Py, SessionDiscussionOpenResultSchema as Q, SecretInputSchema as QS, GitHubPublicationPublisherSchema as Q_, AgentIdentityParamsSchema as Qa, ToolsEffectiveParamsSchema as Qb, SessionsRewindResultSchema as Qc, BOARD_WIDGET_TOOL_MAX_LENGTH as Qd, TalkVoiceCompleteParamsSchema as Qf, PluginRuntimeApplicationSchema as Qg, TerminalExitEventSchema as Qh, TalkSessionCancelOutputParamsSchema as Qi, ChatStatusEventSchema as Ql, WORKER_COMPUTER_PROTOCOL_FEATURE as Qm, DeviceTokenRotateParamsSchema as Qn, TasksRecoveryResultSchema as Qo, validateWorkerInferenceEventFrame as Qp, SystemAgentSetupActivateStartResultSchema as Qr, SessionsAbortParamsSchema as Qs, WebPushUnsubscribeParamsSchema as Qt, ConfigSchemaResponseSchema as Qu, UsersPrefsGetResultSchema as Qv, SecretsStoreMutationResultSchema as Qx, ModelsAuthOrderSetParamsSchema as Qy, TaskSuggestionsListParamsSchema as R, SetupAdmissionBusyErrorDetailsSchema as RS, PluginCredentialDescriptorSchema as R_, ArtifactSummarySchema as Ra, SkillsSecurityVerdictsParamsSchema as Rb, SessionsGroupsMutationResultSchema as Rc, ProgressCardGetParamsSchema as Rd, BoardWidgetNameSchema as Rf, PluginDeclaredSurfaceSchema as Rg, PluginApprovalSeveritySchema as Rh, TalkCatalogResultSchema as Ri, ChatHistoryDeltaResultSchema as Rl, WorkerSessionToolResponseFrameSchema as Rm, DevicePairApproveParamsSchema as Rn, ProjectsSearchRemoteParamsSchema as Ro, ComputerStatusParamsSchema as Rp, CronScratchSchema as Rr, SessionFileBrowserEntrySchema as Rs, QuestionSecretStoreExistingSchema as Rt, GatewaySuspendResumeResultSchema as Ru, UsersGitHubStatusParamsSchema as Rv, SessionPersonSchema as Rx, AgentsListParamsSchema as Ry, PortalListParamsSchema as S, WorkerEnvironmentStateSchema as SS, PluginsRefreshParamsSchema as S_, DecisionReceiptDisplayV1Schema as Sa, SkillsProposalDecisionParamsSchema as Sb, SessionsDiffResultSchema as Sc, TRANSCRIPTS_PAGE_MAX as Sd, BoardTabUpdateOpSchema as Sf, SessionsCatalogListResultSchema as Sg, ApprovalResolveParamsSchema as Sh, CommandsListParamsSchema as Si, SessionsStorageParamsSchema as Sl, WorkerAdmissionHandshakeSchema as Sm, NodePresenceAlivePayloadSchema as Sn, PROJECTS_LIST_MAX_IDENTITY_PROBES as So, SkillsLibraryReadParamsSchema as Sp, CronAddParamsSchema as Sr, SessionPublicShareSetParamsSchema as Ss, QuestionAnswersSchema as St, RequestFrameSchema as Su, UsersAuthConnectCancelParamsSchema as Sv, SessionCreatedActorSchema as Sx, WizardStatusResultSchema as Sy, PortalOpenResultSchema as T, WorkerMachineOptionsSchema as TS, PluginsReloadResultSchema as T_, PrincipalRefV1Schema as Ta, SkillsProposalEventsListParamsSchema as Tb, SessionsFilesListParamsSchema as Tc, TranscriptUtteranceSchema as Td, BoardUpdateParamsSchema as Tf, SessionsCatalogStartTerminalParamsSchema as Tg, ApprovalSnapshotSchema as Th, ChannelsPairingApproveParamsSchema as Ti, SessionsRecoverResultSchema as Tl, WorkerHeartbeatParamsSchema as Tm, NodeSkillDescriptorSchema as Tn, ProjectRecentProjectSchema as To, validateSkillsLibraryActivateParams as Tp, CronDeliveryPreviewSchema as Tr, SessionSharingEventSchema as Ts, QuestionListParamsSchema as Tt, TickEventSchema as Tu, UsersAuthConnectResultSchema as Tv, SessionPermissionModeSchema as Tx, AgentOwnershipSchema as Ty, SessionsViewerPresenceSetParamsSchema as U, buildMissingScopeErrorDetails as US, lazyCompile as U_, ArtifactsListParamsSchema as Ua, SkillsUpdateParamsSchema as Ub, SessionsMessagesSubscribeParamsSchema as Uc, ProgressCardStepSchema as Ud, BoardWidgetPutContentSchema as Uf, PluginDiscoveryEntrySchema as Ug, TerminalApprovalSnapshotSchema as Uh, TalkClientSteerParamsSchema as Ui, ChatInputReceiptsSchema as Ul, WorkerSessionsSpawnResponseFrameSchema as Um, DevicePairRequestedEventSchema as Un, TasksCancelParamsSchema as Uo, WORKER_PROTOCOL_MAX_INFERENCE_PAYLOAD_BYTES as Up, SystemAgentChatHistoryParamsSchema as Ur, SessionFilePreviewKindSchema as Us, PushTestResultSchema as Ut, GatewaySuspendStatusRunningResultSchema as Uu, UsersLinkEmailResultSchema as Uv, SecretStoreEnvEntrySchema as Ux, GitHubAuthorSchema as Uy, SystemInfoResultSchema as V, UserPrefsLimitExceededErrorDetailsSchema as VS, PluginsCredentialsInspectResultSchema as V_, ArtifactsGetParamsSchema as Va, SkillsSkillCardResultSchema as Vb, SessionsGroupsUpdateParamsSchema as Vc, ProgressCardPutResultSchema as Vd, BoardWidgetPluginPropsSchema as Vf, PluginDiscoveryCategorySchema as Vg, StandingGrantApprovalScopeSchema as Vh, TalkClientCreateResultSchema as Vi, ChatInjectParamsSchema as Vl, WorkerSessionsSendResponseFrameSchema as Vm, DevicePairRemoveParamsSchema as Vn, TASKS_LIST_CURSOR_MAX_LENGTH as Vo, WORKER_INFERENCE_METHODS as Vp, CronStatusParamsSchema as Vr, SessionFileEntrySchema as Vs, QuestionWaitAnswerResultSchema as Vt, GatewaySuspendStatusReadyResultSchema as Vu, UsersLinkAuthProfileResultSchema as Vv, GitHubSetupHandleSchema as Vx, AgentsUpdateResultSchema as Vy, SessionsViewerPresenceSetResultSchema as W, errorShape as WS, SESSION_AGENT_ATTENTION_ICON_IDS as W_, ArtifactsListResultSchema as Wa, SkillsUploadBeginParamsSchema as Wb, SessionsMessagesUnsubscribeParamsSchema as Wc, ProgressCardStepStatusSchema as Wd, BoardWidgetPutParamsSchema as Wf, PluginDiscoveryLocalFactsSchema as Wg, TerminalSessionApprovalEventSchema as Wh, TalkClientToolCallParamsSchema as Wi, ChatMessageGetParamsSchema as Wl, WorkerTranscriptCommitErrorReasonSchema as Wm, DevicePairResolvedEventSchema as Wn, TasksCancelResultSchema as Wo, WorkerInferenceCancelRequestFrameSchema as Wp, SystemAgentChatHistoryResultSchema as Wr, SessionFileRelevanceSchema as Ws, WebPushDetailLevelSchema as Wt, GatewaySuspendTaskBlockerSchema as Wu, UsersListAuthLinksParamsSchema as Wv, SecretStoreSecretEntrySchema as Wx, GitHubIdentityFactsSchema as Wy, SessionDiscussionInfoSchema as X, InputProvenanceSchema as XS, normalizeSessionIconValue as X_, AgentsWorkspaceListResultSchema as Xa, ToolsEffectiveGroupSchema as Xb, SessionsResetParamsSchema as Xc, BOARD_CRON_TRIGGER_PREFIX as Xd, TALK_VOICE_CHANGE_TIMEOUT_MS as Xf, PluginOperatorGrantsSchema as Xg, TerminalDataEventSchema as Xh, TalkModeParamsSchema as Xi, ChatSendParamsSchema as Xl, WorkerTranscriptMessageSchema as Xm, DevicePairSetupStatusResultSchema as Xn, TasksListResultSchema as Xo, WorkerInferenceStartResponseFrameSchema as Xp, SystemAgentSetupActivateResultSchema as Xr, SessionOperationEventSchema as Xs, WebPushSubscribeParamsSchema as Xt, ConfigSchemaLookupResultSchema as Xu, UsersPrefsChangedEventSchema as Xv, SecretsStoreListParamsSchema as Xx, ModelRuntimeChoiceSchema as Xy, SessionDiscussionInfoResultSchema as Y, GatewayClientModeSchema as YS, normalizeSessionColorValue as Y_, AgentsWorkspaceListParamsSchema as Ya, ToolsEffectiveEntrySchema as Yb, SessionsPreviewParamsSchema as Yc, BOARD_CRON_JOB_ID_MAX_LENGTH as Yd, BoardWidgetSchema as Yf, PluginJsonValueSchema as Yg, TerminalCloseParamsSchema as Yh, TalkEventSchema as Yi, ChatSendIntentSchema as Yl, WorkerTranscriptCommitResultSchema as Ym, DevicePairSetupStatusParamsSchema as Yn, TasksListParamsSchema as Yo, WorkerInferenceStartRequestFrameSchema as Yp, SystemAgentSetupActivateParamsSchema as Yr, SessionObserverPlanProgressSchema as Ys, WebPushPreferencesSetParamsSchema as Yt, ConfigSchemaLookupParamsSchema as Yu, UsersListResultSchema as Yv, SecretsStoreDeleteParamsSchema as Yx, ModelChoiceSchema as Yy, SessionDiscussionOpenParamsSchema as Z, NonEmptyString as ZS, GitHubPublicationBodySchema as Z_, AgentEventSchema as Za, ToolsEffectiveNoticeSchema as Zb, SessionsRewindParamsSchema as Zc, BOARD_DATA_BINDING_ID_MAX_LENGTH as Zd, TalkVoiceChangeEventSchema as Zf, PluginReloadTargetSchema as Zg, TerminalEventSchema as Zh, TalkSessionAppendAudioParamsSchema as Zi, ChatStartupParamsSchema as Zl, WorkerTranscriptUserMessageSchema as Zm, DeviceTokenRevokeParamsSchema as Zn, TasksRecoveryParamsSchema as Zo, validateWorkerInferenceCancelParams as Zp, SystemAgentSetupActivateStartParamsSchema as Zr, SessionWorktreeInfoSchema as Zs, WebPushTestParamsSchema as Zt, ConfigSchemaParamsSchema as Zu, UsersPrefsGetParamsSchema as Zv, SecretsStoreListResultSchema as Zx, ModelsAuthLogoutParamsSchema as Zy, WorktreesRemoveResultSchema as _, WorkerDesktopLaunchParamsSchema as _S, PluginsInspectResultSchema as __, AuditRunIdentityUnknownV1Schema as _a, SkillsDetailResultSchema as _b, SessionsCompanionStateParamsSchema as _c, TRANSCRIPTS_LEGACY_MAX_TEXT_LENGTH as _d, BoardSnapshotSchema as _f, SessionsCatalogArchiveResultSchema as _g, ApprovalGetResultSchema as _h, COMMAND_CHOICE_VALUE_MAX_LENGTH as _i, SessionsGoalClearParamsSchema as _l, WORKER_SESSION_TOOL_MAX_TEXT_LENGTH as _m, NodePendingEnqueueParamsSchema as _n, MigrationProtocolSchemas as _o, SkillLibrarySelectionSchema as _p, ExecApprovalsNodeSetParamsSchema as _r, SessionMemberSchema as _s, SessionsMoveResultSchema as _t, ConnectParamsSchema as _u, UserProfileAuthLinkSchema as _v, ToolsGitHubStatusParamsSchema as _x, WizardNextParamsSchema as _y, ToolsCatalogResultSchema as a, USER_PREFS_PROFILE_KEY_LIMIT as aC, EnvironmentsDestroyParamsSchema as aS, PluginsCatalogCategoriesResultSchema as a_, TalkSessionSubmitToolResultParamsSchema as aa, ModelsProbeParamsSchema as ab, SessionsCleanupParamsSchema as ac, UpdateRunParamsSchema as ad, BoardCronActionParamsSchema as af, TerminalUploadParamsSchema as ag, WORKER_PUBLIC_INGRESS_PATH as ah, SystemAgentWizardCancelSchema as ai, SessionsPatchManyParamsSchema as al, WORKER_HEARTBEAT_INTERVAL_MS as am, NodeInvokeParamsSchema as an, ConversationSendParamsSchema as ao, UiCommandResultSchema as ap, ScopeUpgradeResultSchema as ar, SessionSuggestionsAddResultSchema as as, SessionMoveProfileTargetSchema as at, HumanMentionsSchema as au, SessionGitHubPublicationNeedsConfirmationSchema as av, ToolsGitHubAuthorizeIncorrectDeviceCodeResultSchema as ax, UsersSetAvatarParamsSchema as ay, PortalCloseParamsSchema as b, WorkerDesktopObserveResultSchema as bS, PluginsListParamsSchema as b_, AuditRunInspectParamsSchema as ba, SkillsProposalApplyResultSchema as bb, SessionsDescribeParamsSchema as bc, TRANSCRIPTS_LIST_MAX as bd, BoardTabIdSchema as bf, SessionsCatalogHostEventSchema as bg, ApprovalKindSchema as bh, COMMAND_NAME_MAX_LENGTH as bi, SessionsTitlePrepareParamsSchema as bl, WORKER_TRANSCRIPT_MAX_CONTENT_PARTS as bm, NodePluginToolsUpdateParamsSchema as bn, PROJECTS_LIST_DEFAULT_LIMIT as bo, SkillsLibraryListParamsSchema as bp, ExecApprovalsSnapshotSchema as br, SessionMembersListResultSchema as bs, SessionsReclaimResultSchema as bt, GatewayFrameSchema as bu, UserProfileSchema as bv, ToolsInvokeParamsSchema as bx, WizardStartResultSchema as by, WorktreeRepositoryStatusSchema as c, closedObject as cC, EnvironmentsListResultSchema as cS, PluginsChangedEventSchema as c_, TtsSpeakParamsSchema as ca, SkillProposalEvaluationSchema as cb, SessionsCompactionBranchResultSchema as cc, UpdateStatusResultSchema as cd, BoardFocusTabCommandSchema as cf, SessionCatalogDescriptorSchema as cg, AllowedApprovalSnapshotSchema as ch, SystemChangeSourceSchema as ci, SessionsPatchMutationSchema as cl, WORKER_PORTAL_PROTOCOL_FEATURE as cm, NodeInvokeResultParamsSchema as cn, ConversationTurnCancelResultSchema as co, UiNavigateCommandSchema as cp, ExecApprovalGrantsListParamsSchema as cr, SessionSuggestionsResolveParamsSchema as cs, SessionPlacementMachineSchema as ct, MENTION_INBOX_MAX_ITEMS as cu, SessionGitHubPublicationRequestedSchema as cv, ToolsGitHubAuthorizePollParamsSchema as cx, UsersSetDisplayNameResultSchema as cy, WorktreesCreateParamsSchema as d, EnvironmentsStatusParamsSchema as dS, PluginsControlUiListParamsSchema as d_, WebLoginWaitParamsSchema as da, SkillsBinsResultSchema as db, SessionsCompactionRestoreParamsSchema as dc, UpdateRunResultSchema as dd, BoardMcpAppDescriptorSchema as df, SessionCatalogPullRequestSummarySchema as dg, ApprovalCancelledReasonSchema as dh, COMMAND_ALIAS_MAX_ITEMS as di, SessionsDeleteParamsSchema as dl, WORKER_PROTOCOL_MAX_FEATURE_LENGTH as dm, NodePairListParamsSchema as dn, ConversationTurnResultSchema as do, UiSplitCommandSchema as dp, ExecApprovalGrantsRevokeResultSchema as dr, SessionTypingParamsSchema as ds, SessionPlacementRunnerSchema as dt, MentionsChangedEventSchema as du, SessionGitHubStatusParamsSchema as dv, ToolsGitHubAuthorizeStartParamsSchema as dx, UsersUnlinkAuthProfileParamsSchema as dy, SessionLabelString as eC, DesktopAvailabilitySchema as eS, PluginSearchPackageSchema as e_, TalkSessionCloseParamsSchema as ea, ModelsAuthSetApiKeyParamsSchema as eb, SessionsAssignOwnerResultSchema as ec, UpdateAvailableSchema as ed, BoardCanvasDocumentSourceSchema as ef, TerminalListResultSchema as eg, WorkerComputerResponseFrameSchema as eh, SystemAgentSetupAuthStartResultSchema as ei, SessionsSearchParamsSchema as el, validateWorkerInferenceTerminalFrame as em, NodeDescribeParamsSchema as en, AgentParamsSchema as eo, TalkVoiceSelectionSchema as ep, ScopeUpgradeApprovedSchema as er, SessionSuggestionEventSchema as es, SessionMoveDeviceTargetSchema as et, ChatToolTitlesResultSchema as eu, GitHubPublicationTitleSchema as ev, ToolsGitHubAuthorizeAccessDeniedResultSchema as ex, UsersPrefsSetResultSchema as ey, WorktreesGcParamsSchema as f, EnvironmentsStatusResultSchema as fS, PluginsControlUiReloadParamsSchema as f_, AuditEventSchema as fa, SkillsCuratorActionParamsSchema as fb, SessionsCompactionRestoreResultSchema as fc, UpdateRunsGetParamsSchema as fd, BoardOpSchema as ff, SessionCatalogSchema as fg, ApprovalChannelReviewerSchema as fh, COMMAND_ARGS_MAX_ITEMS as fi, SessionsDeleteResultSchema as fl, WORKER_PROTOCOL_MAX_METHOD_LENGTH as fm, NodePairRejectParamsSchema as fn, MessageActionParamsSchema as fo, SKILL_LIBRARY_MAX_BUNDLE_BYTES as fp, ExecApprovalRequestParamsSchema as fr, SessionTypingResultSchema as fs, SessionPlacementSchema as ft, MentionsDismissParamsSchema as fu, SessionGitHubStatusResultSchema as fv, ToolsGitHubAuthorizeStartResultSchema as fx, UsersUnlinkAuthProfileResultSchema as fy, WorktreesRemoveParamsSchema as g, WorkerDesktopAppIdSchema as gS, PluginsInspectParamsSchema as g_, AuditRunIdentityPresentV1Schema as ga, SkillsDetailParamsSchema as gb, SessionsCompanionResetResultSchema as gc, TRANSCRIPTS_EXPORT_MAX_BYTES as gd, BoardSizeSchema as gf, SessionsCatalogArchiveParamsSchema as gg, ApprovalGetParamsSchema as gh, COMMAND_CHOICE_LABEL_MAX_LENGTH as gi, SessionGoalSchema as gl, WORKER_SESSION_TOOLS_PROTOCOL_FEATURE as gm, NodePendingDrainResultSchema as gn, MAX_MEMORY_MIGRATION_ITEMS as go, SkillLibraryFileSchema as gp, ExecApprovalsNodeGetParamsSchema as gr, SessionMemberRemoveParamsSchema as gs, SessionsMoveParamsSchema as gt, UsersMentionableResultSchema as gu, UserModelAccountSchema as gv, ToolsGitHubManagedConfigureParamsSchema as gx, WizardCancelParamsSchema as gy, WorktreesListResultSchema as h, RuntimeTargetIssueSchema as hS, PluginsControlUiStatusResultSchema as h_, AuditRunIdentityAmbiguousV1Schema as ha, SkillsCuratorStatusResultSchema as hb, SessionsCompanionResetParamsSchema as hc, UpdateRunsListResultSchema as hd, BoardSetChatDockCommandSchema as hf, SessionCatalogTranscriptItemSchema as hg, ApprovalExpiredReasonSchema as hh, COMMAND_ARG_NAME_MAX_LENGTH as hi, SessionsListParamsSchema as hl, WORKER_RPC_SET_VERSION as hm, NodePendingDrainParamsSchema as hn, WakeParamsSchema as ho, SKILL_LIBRARY_MAX_SELECTIONS as hp, ExecApprovalsGetParamsSchema as hr, SessionMemberMutationResultSchema as hs, SessionsDispatchResultSchema as ht, UsersMentionableParamsSchema as hu, PersonalGitHubStatusSchema as hv, ToolsGitHubInheritConfigureParamsSchema as hx, WizardAnswerSchema as hy, ToolsCatalogParamsSchema as i, USER_PREFS_ENTRY_LIMIT as iC, EnvironmentsCreateResultSchema as iS, PluginsCatalogCategoriesParamsSchema as i_, TalkSessionSteerParamsSchema as ia, ModelsListResultSchema as ib, SessionsBranchesSwitchResultSchema as ic, UpdateReportResultSchema as id, BoardCommandSchema as if, TerminalSessionInfoSchema as ig, WORKER_PROTOCOL_MAX_PAYLOAD_BYTES as ih, SystemAgentSetupVerifyResultSchema as ii, SESSIONS_PATCH_MANY_MAX_TARGETS as il, WORKER_EXECUTION_CONTEXT_PROTOCOL_FEATURE as im, NodeInvokeInputEventSchema as in, ConversationListResultSchema as io, UiCommandParamsSchema as ip, ScopeUpgradeRequestSchema as ir, SessionSuggestionsAddParamsSchema as is, SessionMovePlacementStateSchema as it, HumanMentionSchema as iu, SessionGitHubPublicationFailedSchema as iv, ToolsGitHubAuthorizeFailedResultSchema as ix, UsersSelfResultSchema as iy, TaskSuggestionSchema as j, GatewayErrorDetailsSchema as jS, PluginsSessionActionSuccessResultSchema as j_, AuditActivityEventV1Schema as ja, SkillsProposalRequestRevisionResultSchema as jb, SessionsForkParamsSchema as jc, TranscriptsListResultSchema as jd, BoardWidgetGeneratedIdentitySchema as jf, PluginCatalogClawHubInstallSchema as jg, ExternalPostApprovalScopeSchema as jh, ChannelsLogoutParamsSchema as ji, ChatAttachmentSchema as jl, WorkerLiveEventRequestFrameSchema as jm, FsListDirResultSchema as jn, ProjectsAddResultSchema as jo, validateSkillsLibraryUploadParams as jp, CronPacingSchema as jr, SessionBranchSchema as js, QuestionRequestResultSchema as jt, GatewaySuspendHandoffResultSchema as ju, UsersGitHubAuthorizeCancelResultSchema as jv, SessionActivitySummarySchema as jx, AgentsFileEntrySchema as jy, TaskSuggestionEventSchema as k, ChatAccountSelectionSchema as kS, PluginsSessionActionParamsSchema as k_, AUDIT_ACTIVITY_STATUSES as ka, SkillsProposalRecordResultSchema as kb, SessionsFilesSetParamsSchema as kc, TranscriptsGetResultSchema as kd, BoardWidgetContentSchema as kf, ControlUiPluginWidgetKindSchema as kg, ExecApprovalPresentationSchema as kh, ChannelsPairingListParamsSchema as ki, ChatAbortParamsSchema as kl, WorkerLiveEventErrorShapeSchema as km, FsDirEntrySchema as kn, ProjectSummarySchema as ko, validateSkillsLibraryReadParams as kp, CronJobStateSchema as kr, SessionVisibilitySetResultSchema as ks, QuestionRequestParamsSchema as kt, GatewaySuspendBlockerSchema as ku, UsersAuthConnectStatusResultSchema as kv, SessionSharingRoleSchema as kx, AgentsDeleteParamsSchema as ky, WorktreesBranchesParamsSchema as l, EnvironmentsPrepareParamsSchema as lS, PluginsControlUiCatalogSchema as l_, TtsSpeakResultSchema as la, SkillProposalLifecycleEventSchema as lb, SessionsCompactionListParamsSchema as lc, UpdateRunChangedEventSchema as ld, BoardGetParamsSchema as lf, SessionCatalogHostSchema as lg, ApprovalAllowDecisionSchema as lh, SystemChangesListParamsSchema as li, SessionsPatchParamsSchema as ll, WORKER_PROTOCOL_FEATURES as lm, NodeListParamsSchema as ln, ConversationTurnParamsSchema as lo, UiPanelCommandSchema as lp, ExecApprovalGrantsListResultSchema as lr, SessionSuggestionsResolveResultSchema as ls, SessionPlacementMoveSchema as lt, MentionInboxItemSchema as lu, SessionGitHubPublicationResultSchema as lv, ToolsGitHubAuthorizePollResultSchema as lx, UsersSetRoleParamsSchema as ly, WorktreesListParamsSchema as m, RequiredNodeCommandStateSchema as mS, PluginsControlUiStatusParamsSchema as m_, AuditListResultSchema as ma, SkillsCuratorStatusParamsSchema as mb, SessionsCompanionAskResultSchema as mc, UpdateRunsListParamsSchema as md, BoardPromptAuthorizeParamsSchema as mf, SessionCatalogShareRouteSchema as mg, ApprovalDeniedReasonSchema as mh, COMMAND_ARG_DESCRIPTION_MAX_LENGTH as mi, WorktreePreservationReasonSchema as ml, WORKER_PROVIDER_REPLAY_MAX_DATA_BYTES as mm, NodePendingAckParamsSchema as mn, SendParamsSchema as mo, SKILL_LIBRARY_MAX_FILE_BYTES as mp, ExecApprovalStandingGrantSchema as mr, SessionMemberEvidenceSchema as ms, SessionsDispatchParamsSchema as mt, MentionsListResultSchema as mu, PersonalGitHubGenerationSchema as mv, ToolsGitHubConfigureParamsSchema as mx, normalizeUiAppearancePreference as my, ToolCatalogGroupSchema as n, GATEWAY_OWNER_PROFILE_ID as nC, EnvironmentSummarySchema as nS, PluginsCatalogBrowseParamsSchema as n_, TalkSessionCreateResultSchema as na, ModelsAuthStatusParamsSchema as nb, SessionsBranchesListResultSchema as nc, UpdateHoldResultSchema as nd, BoardChatDockSchema as nf, TerminalOpenResultSchema as ng, WORKER_PROTOCOL_MAX_FRAME_ID_LENGTH as nh, SystemAgentSetupDetectResultSchema as ni, SessionsSendParamsSchema as nl, WORKER_BUNDLE_PREWARM_VERSION as nm, NodeEventResultSchema as nn, ConversationListItemSchema as no, TalkVoiceSetResultSchema as np, ScopeUpgradeRegistrationSchema as nr, SessionSuggestionSchema as ns, SessionMoveGatewayTargetSchema as nt, LogsTailResultSchema as nu, SessionGitHubOptionsParamsSchema as nv, ToolsGitHubAuthorizeCancelResultSchema as nx, UsersSelectModelAccountResultSchema as ny, WorktreeBranchSchema as o, USER_PREFS_VALUE_BYTES as oC, EnvironmentsDestroyResultSchema as oS, PluginsCatalogGetParamsSchema as o_, TalkSpeakParamsSchema as oa, ModelsProbeResultSchema as ob, SessionsCompactParamsSchema as oc, UpdateScheduleStateSchema as od, BoardDataReadParamsSchema as of, TerminalUploadResultSchema as og, WorkerAdmissionFailureReasonSchema as oh, SystemChangeEntrySchema as oi, SessionsPatchManyResultSchema as ol, WORKER_LAUNCH_V2_PROTOCOL_FEATURE as om, NodeInvokeProgressParamsSchema as on, ConversationSendResultSchema as oo, UiCommandSchema as op, ScopeUpgradeWaitSchema as or, SessionSuggestionsListParamsSchema as os, SessionMoveTargetSchema as ot, MAX_HUMAN_MENTIONS as ou, SessionGitHubPublicationPublishedSchema as ov, ToolsGitHubAuthorizeNetworkErrorResultSchema as ox, UsersSetAvatarResultSchema as oy, WorktreesGcResultSchema as p, RequiredNodeCommandSchema as pS, PluginsControlUiReportParamsSchema as p_, AuditListParamsSchema as pa, SkillsCuratorActionResultSchema as pb, SessionsCompanionAskParamsSchema as pc, UpdateRunsGetResultSchema as pd, BoardPluginActionParamsSchema as pf, SessionCatalogSessionSchema as pg, ApprovalDecisionSchema as ph, COMMAND_ARG_CHOICES_MAX_ITEMS as pi, WORKTREE_PRESERVATION_REASONS as pl, WORKER_PROTOCOL_METHODS as pm, NodePairRemoveParamsSchema as pn, PollParamsSchema as po, SKILL_LIBRARY_MAX_FILES as pp, ExecApprovalResolveParamsSchema as pr, SessionMemberAddParamsSchema as ps, SessionPlacementStateSchema as pt, MentionsListParamsSchema as pu, PersonalGitHubAccountSchema as pv, ToolsGitHubAuthorizeSuccessResultSchema as px, UI_APPEARANCE_PREFERENCE_KEYS as py, SessionsResolveResultSchema as q, ChatSendSessionKeyString as qS, SESSION_ICON_SVG_DATA_URL_PREFIX as q_, AgentsWorkspaceGetParamsSchema as qa, SkillsWorkshopReadParamsSchema as qb, SessionsPluginPatchParamsSchema as qc, CanvasDocumentViewParamsSchema as qd, BoardWidgetRemoveOpSchema as qf, PluginInstallTrustSchema as qg, TerminalAttachParamsSchema as qh, TalkConfigParamsSchema as qi, ChatPendingInputsPageSchema as ql, WorkerTranscriptCommitRequestFrameSchema as qm, DevicePairSetupCompletedEventSchema as qn, TasksHistoryParamsSchema as qo, WorkerInferenceModelRefSchema as qp, SystemAgentChatQuestionSchema as qr, SessionObserverDigestSchema as qs, WebPushNotificationPreferencesSchema as qt, ConfigGetParamsSchema as qu, UsersListModelAccountsResultSchema as qv, SecretsResolveParamsSchema as qx, GitHubSelectedIdentitySchema as qy, ToolCatalogProfileSchema as r, GIT_COAUTHOR_PREFERENCE_KEY as rC, EnvironmentsCreateParamsSchema as rS, PluginsCatalogBrowseResultSchema as r_, TalkSessionOkResultSchema as ra, ModelsListParamsSchema as rb, SessionsBranchesSwitchParamsSchema as rc, UpdateReportParamsSchema as rd, BoardCommandEventSchema as rf, TerminalResizeParamsSchema as rg, WORKER_PROTOCOL_MAX_IDENTIFIER_LENGTH as rh, SystemAgentSetupVerifyParamsSchema as ri, SessionsUsageParamsSchema as rl, WORKER_EXECUTION_AUTHORITY_PROTOCOL_FEATURE as rm, NodeHostStatsPayloadSchema as rn, ConversationListParamsSchema as ro, UiClosePaneCommandSchema as rp, ScopeUpgradeRejectedSchema as rr, SessionSuggestionStateSchema as rs, SessionMovePlacementSchema as rt, projectChatErrorDetail as ru, SessionGitHubOptionsResultSchema as rv, ToolsGitHubAuthorizeExpiredResultSchema as rx, UsersSelfParamsSchema as ry, WorktreeRecordSchema as s, isGitCoauthorCreditEnabled as sC, EnvironmentsListParamsSchema as sS, PluginsCatalogGetResultSchema as s_, TalkSpeakResultSchema as sa, ModelsProbeTargetResultSchema as sb, SessionsCompactionBranchParamsSchema as sc, UpdateStatusParamsSchema as sd, BoardEventParamsSchema as sf, SessionCatalogCapabilitiesSchema as sg, WorkerProtocolCloseReasonSchema as sh, SystemChangeKindSchema as si, SessionsPatchManyTargetSchema as sl, WORKER_LIVE_EVENT_PROTOCOL_FEATURE as sm, NodeInvokeRequestEventSchema as sn, ConversationTurnCancelParamsSchema as so, UiFocusCommandSchema as sp, ExecApprovalGetParamsSchema as sr, SessionSuggestionsListResultSchema as ss, SessionPlacementDiskSpaceSchema as st, MAX_MENTIONABLE_USERS as su, SessionGitHubPublicationPublishingSchema as sv, ToolsGitHubAuthorizePendingResultSchema as sx, UsersSetDisplayNameParamsSchema as sy, ToolCatalogEntrySchema as t, UserProfileIdSchema as tC, EnvironmentStatusSchema as tS, PluginSearchResultEntrySchema as t_, TalkSessionCreateParamsSchema as ta, ModelsAuthSetApiKeyResultSchema as tb, SessionsBranchesListParamsSchema as tc, UpdateHoldParamsSchema as td, BoardChangedEventSchema as tf, TerminalOpenParamsSchema as tg, WorkerComputerResultSchema as th, SystemAgentSetupDetectParamsSchema as ti, SessionsSearchResultSchema as tl, validateWorkerInferenceTerminalOutcome as tm, NodeEventParamsSchema as tn, AgentWaitParamsSchema as to, TalkVoiceSetParamsSchema as tp, ScopeUpgradeExpiredSchema as tr, SessionSuggestionResolutionSchema as ts, SessionMoveExpectedSourceSchema as tt, LogsTailParamsSchema as tu, SessionGitHubConfirmParamsSchema as tv, ToolsGitHubAuthorizeCancelParamsSchema as tx, UsersSelectModelAccountParamsSchema as ty, WorktreesBranchesResultSchema as u, EnvironmentsPrepareResultSchema as uS, PluginsControlUiChangedEventSchema as u_, WebLoginStartParamsSchema as ua, SkillsBinsParamsSchema as ub, SessionsCompactionListResultSchema as uc, UpdateRunRecordSchema as ud, BoardLegacyEventParamsSchema as uf, SessionCatalogLocatorSchema as ug, ApprovalAllowedReasonSchema as uh, SystemChangesListResultSchema as ui, PreservedSessionWorktreeSchema as ul, WORKER_PROTOCOL_MAX_FEATURES as um, NodePairApproveParamsSchema as un, ConversationTurnReplySchema as uo, UiSidebarCommandSchema as up, ExecApprovalGrantsRevokeParamsSchema as ur, SessionTypingEventSchema as us, SessionPlacementProtocolSchemas as ut, MentionableUserSchema as uu, SessionGitHubPublishParamsSchema as uv, ToolsGitHubAuthorizeSlowDownResultSchema as ux, UsersSetRoleResultSchema as uy, WorktreesRestoreParamsSchema as v, WorkerDesktopLaunchResultSchema as vS, PluginsInstallParamsSchema as v_, AuditRunIdentityUnsupportedV1Schema as va, SkillsInstallParamsSchema as vb, SessionsCompanionStateResultSchema as vc, TRANSCRIPTS_LEGACY_MAX_UTTERANCES as vd, BoardTabCreateOpSchema as vf, SessionsCatalogContinueParamsSchema as vg, ApprovalHistoryParamsSchema as vh, COMMAND_DESCRIPTION_MAX_LENGTH as vi, SessionsGoalMutationResultSchema as vl, WORKER_TRANSCRIPT_COMMIT_PROTOCOL_FEATURE as vm, NodePendingEnqueueResultSchema as vn, MigrationsMemoryApplyParamsSchema as vo, SkillsLibraryActivateParamsSchema as vp, ExecApprovalsNodeSnapshotSchema as vr, SessionMembersListEvidenceResultSchema as vs, SessionsReclaimParamsSchema as vt, ErrorShapeSchema as vu, UserProfileAvatarMimeSchema as vv, ToolsGitHubStatusResultSchema as vx, WizardNextResultSchema as vy, PortalOpenParamsSchema as w, WorkerMachineOptionSchema as wS, PluginsReloadParamsSchema as w_, ExecutionIdentityContextV1Schema as wa, SkillsProposalEvaluateResultSchema as wb, SessionsFilesGetResultSchema as wc, TranscriptSessionSummarySchema as wd, BoardTicketEventParamsSchema as wf, SessionsCatalogReadResultSchema as wg, ApprovalScopeSchema as wh, TalkSessionAcknowledgeMarkParamsSchema as wi, SessionsRecoverParamsSchema as wl, WorkerConnectRequestFrameSchema as wm, NodeRenameParamsSchema as wn, ProjectRecentFolderSchema as wo, SkillsLibraryUploadParamsSchema as wp, CronDeclarativeAddResultSchema as wr, SessionSharingActionSchema as ws, QuestionGetResultSchema as wt, ShutdownEventSchema as wu, UsersAuthConnectCatalogResultSchema as wv, SessionOwnerSchema as wx, AgentKindSchema as wy, PortalCloseResultSchema as x, WorkerEnvironmentMetadataSchema as xS, PluginsListResultSchema as x_, AuditRunInspectResultSchema as xa, SkillsProposalCreateParamsSchema as xb, SessionsDiffParamsSchema as xc, TRANSCRIPTS_PAGE_DEFAULT as xd, BoardTabSchema as xf, SessionsCatalogListParamsSchema as xg, ApprovalPresentationSchema as xh, CommandEntrySchema as xi, SessionsTitlePrepareResultSchema as xl, WORKER_TRANSCRIPT_MAX_JSON_DEPTH as xm, NodePresenceActivityPayloadSchema as xn, PROJECTS_LIST_MAX_CHECKOUTS_PER_PROJECT as xo, SkillsLibraryMutateParamsSchema as xp, CronAddJobResultSchema as xr, SessionPublicShareSchema as xs, isCloudWorkerPlacementState as xt, HelloOkSchema as xu, UsersAuthConnectAnswerParamsSchema as xv, ToolsInvokeResultSchema as xx, WizardStatusParamsSchema as xy, PortalChangedEventSchema as y, WorkerDesktopObserveParamsSchema as yS, PluginsInstallResultSchema as y_, AuditRunIdentityV1Schema as ya, SkillsProposalActionParamsSchema as yb, SessionsCreateResultSchema as yc, TRANSCRIPTS_LEGACY_RESULT_MAX_BYTES as yd, BoardTabDeleteOpSchema as yf, SessionsCatalogContinueResultSchema as yg, ApprovalHistoryResultSchema as yh, COMMAND_LIST_MAX_ITEMS as yi, SessionsGoalUpdateParamsSchema as yl, WORKER_TRANSCRIPT_MAX_BATCH_MESSAGES as ym, NodePluginToolDescriptorSchema as yn, MigrationsMemoryPlanParamsSchema as yo, SkillsLibraryImportParamsSchema as yp, ExecApprovalsSetParamsSchema as yr, SessionMembersListParamsSchema as ys, SessionsReclaimResultPlacementSchema as yt, EventFrameSchema as yu, UserProfileGitHubIdentitySchema as yv, ToolsInvokeErrorSchema as yx, WizardStartParamsSchema as yy, TaskSuggestionsListResultSchema as z, SkillProposalRevisionChangedErrorDetailsSchema as zS, PluginCredentialInspectionSchema as z_, ArtifactsDownloadParamsSchema as za, SkillsSecurityVerdictsResultSchema as zb, SessionsGroupsPutParamsSchema as zc, ProgressCardGetResultSchema as zd, BoardWidgetPluginContentSchema as zf, PluginDeclaredSurfaceWideningSchema as zg, SessionApprovalEventSchema as zh, TalkClientCloseParamsSchema as zi, ChatHistoryParamsSchema as zl, WorkerSessionToolResultSchema as zm, DevicePairListParamsSchema as zn, ProjectsSearchRemoteResultSchema as zo, WORKER_INFERENCE_MAX_CONTEXT_MESSAGES as zp, CronScratchSetParamsSchema as zr, SessionFileBrowserResultSchema as zs, QuestionStatusSchema as zt, GatewaySuspendStatusDrainingResultSchema as zu, UsersGitHubStatusResultSchema as zv, SessionClassificationSchema as zx, AgentsListResultSchema as zy };
|