@openclaw/gateway-protocol 2026.9.6 → 2026.9.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +4 -0
- package/dist/client-info.d.mts +2 -1
- package/dist/client-info.mjs +3 -2
- package/dist/connect-error-details.d.mts +4 -3
- package/dist/connect-error-details.mjs +13 -16
- package/dist/frame-guards.d.mts +2 -2
- package/dist/frame-guards.mjs +4 -4
- package/dist/{frames-DrA9fYYy.d.mts → frames-ICrB58JF.d.mts} +32 -11
- package/dist/{gateway-error-details-B0Ms-xqB.d.mts → gateway-error-details-BH1DM8mu.d.mts} +462 -385
- package/dist/gateway-error-details.d.mts +1 -1
- package/dist/gateway-error-details.mjs +6 -6
- package/dist/index.d.mts +3210 -2803
- package/dist/index.mjs +40 -110
- package/dist/{protocol-value-normalization-DfM01tqg.mjs → protocol-value-normalization-Oati9UF1.mjs} +1 -1
- package/dist/{record-coerce-BVp8Dr-B.mjs → record-coerce-DVQGe6I0.mjs} +1 -1
- package/dist/restart-unavailable.d.mts +3 -1
- package/dist/restart-unavailable.mjs +4 -2
- package/dist/{schema-modules-CClcdadz.d.mts → schema-modules-CRgBq9O3.d.mts} +2759 -1911
- package/dist/schema.d.mts +10 -9
- package/dist/schema.mjs +50 -21
- package/dist/{server-capabilities-CBMEqI9z.mjs → server-capabilities-BnyAklc1.mjs} +6 -1
- package/dist/startup-unavailable.d.mts +1 -1
- package/dist/startup-unavailable.mjs +1 -1
- package/dist/{string-coerce-BJ6bjzdv.mjs → string-coerce-BSD-wsXs.mjs} +1 -1
- package/dist/system-agent-context.d.mts +1 -1
- package/dist/system-agent-context.mjs +8 -7
- package/dist/{theme-DEbDprgp.mjs → theme-_hQKgfH-.mjs} +2 -2
- package/dist/{theme-C4mhgADx.d.mts → theme-s6T9Ck6Z.d.mts} +2 -2
- package/dist/theme.d.mts +1 -1
- package/dist/theme.mjs +1 -1
- package/dist/{tools-catalog-CRxZFldZ.mjs → tools-catalog-pKZZLiUu.mjs} +1046 -768
- package/dist/{version-COV9CEyr.d.mts → version-BL42XeI-.d.mts} +1 -1
- package/dist/version.d.mts +1 -1
- package/dist/version.mjs +1 -1
- package/package.json +3 -3
- package/protocol.schema.json +8776 -4444
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { GATEWAY_CLIENT_IDS, GATEWAY_CLIENT_MODES } from "./client-info.mjs";
|
|
2
|
-
import { n as asOptionalRecord } from "./record-coerce-
|
|
2
|
+
import { n as asOptionalRecord } from "./record-coerce-DVQGe6I0.mjs";
|
|
3
3
|
import { ErrorCodes, GatewayErrorDetailCodes } from "./gateway-error-details.mjs";
|
|
4
|
-
import { C as isThemeId, r as THEME_ARTWORK_ID_PATTERN, w as normalizeThemeMode } from "./theme-
|
|
4
|
+
import { C as isThemeId, r as THEME_ARTWORK_ID_PATTERN, w as normalizeThemeMode } from "./theme-_hQKgfH-.mjs";
|
|
5
5
|
import "./system-agent-context.mjs";
|
|
6
6
|
import { Type } from "typebox";
|
|
7
7
|
import { Value } from "typebox/value";
|
|
8
8
|
import "typebox/guard";
|
|
9
9
|
import "typebox/schema";
|
|
10
10
|
import { Compile } from "typebox/compile";
|
|
11
|
-
//#region src/schema/closed-object.ts
|
|
11
|
+
//#region packages/gateway-protocol/src/schema/closed-object.ts
|
|
12
12
|
const identityKey = "~openclawClosedObjectIdentity";
|
|
13
13
|
function closedObject(properties) {
|
|
14
14
|
const schema = Type.Object(properties, { additionalProperties: false });
|
|
@@ -16,7 +16,7 @@ function closedObject(properties) {
|
|
|
16
16
|
return schema;
|
|
17
17
|
}
|
|
18
18
|
//#endregion
|
|
19
|
-
//#region src/secret-ref-contract.ts
|
|
19
|
+
//#region packages/gateway-protocol/src/secret-ref-contract.ts
|
|
20
20
|
/** Canonical id for file secret providers that expose exactly one value. */
|
|
21
21
|
const SINGLE_VALUE_FILE_REF_ID = "value";
|
|
22
22
|
/** Shared alias grammar for env/file/exec/store secret provider names. */
|
|
@@ -26,7 +26,7 @@ const FILE_SECRET_REF_ID_INVALID_ESCAPE_JSON_SCHEMA_PATTERN = "~(?:[^01]|$)";
|
|
|
26
26
|
/** JSON-schema pattern for exec secret ref ids, excluding dot-path traversal. */
|
|
27
27
|
const EXEC_SECRET_REF_ID_JSON_SCHEMA_PATTERN = "^(?!.*(?:^|/)\\.{1,2}(?:/|$))[A-Za-z0-9][A-Za-z0-9._:/#-]{0,255}$";
|
|
28
28
|
//#endregion
|
|
29
|
-
//#region src/schema/user-profile-constants.ts
|
|
29
|
+
//#region packages/gateway-protocol/src/schema/user-profile-constants.ts
|
|
30
30
|
const GATEWAY_OWNER_PROFILE_ID = "gateway-owner";
|
|
31
31
|
const USER_PREFS_ENTRY_LIMIT = 32;
|
|
32
32
|
const USER_PREFS_PROFILE_KEY_LIMIT = 128;
|
|
@@ -36,7 +36,7 @@ function isGitCoauthorCreditEnabled(value) {
|
|
|
36
36
|
return value === void 0 || value === true;
|
|
37
37
|
}
|
|
38
38
|
//#endregion
|
|
39
|
-
//#region src/schema/primitives.ts
|
|
39
|
+
//#region packages/gateway-protocol/src/schema/primitives.ts
|
|
40
40
|
/**
|
|
41
41
|
* Shared schema primitives reused by gateway protocol request/result schemas.
|
|
42
42
|
*
|
|
@@ -52,6 +52,12 @@ const INPUT_PROVENANCE_KIND_VALUES = [
|
|
|
52
52
|
const SESSION_LABEL_MAX_LENGTH = 512;
|
|
53
53
|
/** Non-empty string primitive for protocol fields that reject blank values. */
|
|
54
54
|
const NonEmptyString = Type.String({ minLength: 1 });
|
|
55
|
+
/** SHA-256 hex content version accepted by workspace and skill file operations. */
|
|
56
|
+
const Sha256String = Type.String({
|
|
57
|
+
minLength: 64,
|
|
58
|
+
maxLength: 64,
|
|
59
|
+
pattern: "^[a-fA-F0-9]{64}$"
|
|
60
|
+
});
|
|
55
61
|
const UserProfileIdSchema = Type.String({
|
|
56
62
|
minLength: 1,
|
|
57
63
|
maxLength: 128
|
|
@@ -119,7 +125,7 @@ const SecretRefSchema = Type.Union([
|
|
|
119
125
|
/** Secret input value: either an inline string or a structured SecretRef. */
|
|
120
126
|
const SecretInputSchema = Type.Union([Type.String(), SecretRefSchema]);
|
|
121
127
|
//#endregion
|
|
122
|
-
//#region src/schema/session-classification.ts
|
|
128
|
+
//#region packages/gateway-protocol/src/schema/session-classification.ts
|
|
123
129
|
/**
|
|
124
130
|
* Stable, non-sensitive classification for a session row.
|
|
125
131
|
*
|
|
@@ -130,7 +136,7 @@ const SessionClassificationSchema = NonEmptyString;
|
|
|
130
136
|
/** Non-sensitive peer category derived from the session route, when known. */
|
|
131
137
|
const SessionPeerKindSchema = NonEmptyString;
|
|
132
138
|
//#endregion
|
|
133
|
-
//#region src/schema/session-participant.ts
|
|
139
|
+
//#region packages/gateway-protocol/src/schema/session-participant.ts
|
|
134
140
|
/** Released v4 wire bound for the compact session-row participant summary. */
|
|
135
141
|
const SESSION_PARTICIPANT_LIMIT = 4;
|
|
136
142
|
/** Storage and expanded-projection bound for one session's retained participant identities. */
|
|
@@ -185,7 +191,7 @@ const SessionPersonSchema = closedObject({
|
|
|
185
191
|
sessionCount: Type.Integer({ minimum: 1 })
|
|
186
192
|
});
|
|
187
193
|
//#endregion
|
|
188
|
-
//#region src/schema/sessions-activity-summary.ts
|
|
194
|
+
//#region packages/gateway-protocol/src/schema/sessions-activity-summary.ts
|
|
189
195
|
const SessionActivitySummarySchema = closedObject({
|
|
190
196
|
/** Caller-specific participation permission; operator.write is required separately. */
|
|
191
197
|
canEnsure: Type.Optional(Type.Boolean()),
|
|
@@ -211,7 +217,7 @@ const SessionsActivitySummaryEnsureResultSchema = closedObject({ sessions: Type.
|
|
|
211
217
|
activitySummary: SessionActivitySummarySchema
|
|
212
218
|
}), { maxItems: 20 }) });
|
|
213
219
|
//#endregion
|
|
214
|
-
//#region src/schema/sessions-provider-review.ts
|
|
220
|
+
//#region packages/gateway-protocol/src/schema/sessions-provider-review.ts
|
|
215
221
|
const SessionProviderReviewProjectionSchema = closedObject({
|
|
216
222
|
id: NonEmptyString,
|
|
217
223
|
runId: NonEmptyString,
|
|
@@ -230,7 +236,7 @@ const SessionsProviderReviewContinueParamsSchema = closedObject({
|
|
|
230
236
|
})
|
|
231
237
|
});
|
|
232
238
|
//#endregion
|
|
233
|
-
//#region src/schema/sessions-sharing-values.ts
|
|
239
|
+
//#region packages/gateway-protocol/src/schema/sessions-sharing-values.ts
|
|
234
240
|
const SESSION_VISIBILITY_VALUES = [
|
|
235
241
|
"shared",
|
|
236
242
|
"read-only",
|
|
@@ -250,7 +256,7 @@ const SessionSharingRoleSchema = Type.Union([
|
|
|
250
256
|
Type.Literal("viewer")
|
|
251
257
|
]);
|
|
252
258
|
//#endregion
|
|
253
|
-
//#region src/schema/sessions-row.ts
|
|
259
|
+
//#region packages/gateway-protocol/src/schema/sessions-row.ts
|
|
254
260
|
const SessionPermissionModeSchema = Type.Union([
|
|
255
261
|
Type.Literal("read-only"),
|
|
256
262
|
Type.Literal("guarded"),
|
|
@@ -272,6 +278,7 @@ const SessionRunStatusSchema = Type.Union([
|
|
|
272
278
|
Type.Literal("running"),
|
|
273
279
|
Type.Literal("done"),
|
|
274
280
|
Type.Literal("failed"),
|
|
281
|
+
Type.Literal("interrupted"),
|
|
275
282
|
Type.Literal("killed"),
|
|
276
283
|
Type.Literal("timeout")
|
|
277
284
|
]);
|
|
@@ -368,6 +375,8 @@ const SessionRowSchema = Type.Object({
|
|
|
368
375
|
updatedAt: Type.Optional(Type.Union([Type.Number(), Type.Null()])),
|
|
369
376
|
/** Gateway sampling time, retained when a read reuses a cached projection. */
|
|
370
377
|
snapshotAt: Type.Optional(Type.Number()),
|
|
378
|
+
/** Connection-scoped presentation identity on full event ancestor rows. */
|
|
379
|
+
ancestorRevision: Type.Optional(NonEmptyString),
|
|
371
380
|
/** Personal list preference for the authenticated viewer; not session visibility. */
|
|
372
381
|
hiddenFromInvolvingMe: Type.Optional(Type.Boolean()),
|
|
373
382
|
archived: Type.Optional(Type.Boolean()),
|
|
@@ -469,8 +478,21 @@ const SessionRowSchema = Type.Object({
|
|
|
469
478
|
])),
|
|
470
479
|
toolOverrides: Type.Optional(SessionToolOverridesSchema)
|
|
471
480
|
}, { additionalProperties: true });
|
|
481
|
+
/** Unchanged presentation of an ancestor previously delivered on this connection. */
|
|
482
|
+
const SessionAncestorRefSchema = closedObject({
|
|
483
|
+
key: NonEmptyString,
|
|
484
|
+
sessionId: Type.Optional(Type.String()),
|
|
485
|
+
agentId: Type.Optional(NonEmptyString),
|
|
486
|
+
revision: NonEmptyString,
|
|
487
|
+
snapshotAt: Type.Number()
|
|
488
|
+
});
|
|
489
|
+
/** Complete visible ancestor coverage shared by sessions.changed and session.message. */
|
|
490
|
+
const SessionEventAncestorsSchema = closedObject({
|
|
491
|
+
ancestorSessions: Type.Array(SessionRowSchema, { maxItems: 64 }),
|
|
492
|
+
ancestorSessionRefs: Type.Optional(Type.Array(SessionAncestorRefSchema, { maxItems: 64 }))
|
|
493
|
+
});
|
|
472
494
|
//#endregion
|
|
473
|
-
//#region src/schema/error-codes.ts
|
|
495
|
+
//#region packages/gateway-protocol/src/schema/error-codes.ts
|
|
474
496
|
const CronJobNotFoundErrorDetailsSchema = closedObject({
|
|
475
497
|
code: Type.Literal(GatewayErrorDetailCodes.CRON_JOB_NOT_FOUND),
|
|
476
498
|
jobId: NonEmptyString
|
|
@@ -545,7 +567,8 @@ const GatewayErrorDetailsSchema = Type.Union([
|
|
|
545
567
|
SetupAdmissionBusyErrorDetailsSchema,
|
|
546
568
|
GitHubPublicationSelectionRejectedErrorDetailsSchema,
|
|
547
569
|
SessionWorkspaceRecoveryRequiredErrorDetailsSchema,
|
|
548
|
-
TaskWorktreeSourceRequiredErrorDetailsSchema
|
|
570
|
+
TaskWorktreeSourceRequiredErrorDetailsSchema,
|
|
571
|
+
closedObject({ code: Type.Literal(GatewayErrorDetailCodes.TASK_HISTORY_PREVIEW_CAPACITY) })
|
|
549
572
|
]);
|
|
550
573
|
/** Builds the canonical gateway error payload while preserving optional retry metadata. */
|
|
551
574
|
function errorShape(code, message, opts) {
|
|
@@ -570,7 +593,7 @@ function missingScopeErrorShape(params) {
|
|
|
570
593
|
return errorShape(ErrorCodes.FORBIDDEN, `missing scope: ${params.missingScope}`, { details });
|
|
571
594
|
}
|
|
572
595
|
//#endregion
|
|
573
|
-
//#region src/schema/agent-database-admission.ts
|
|
596
|
+
//#region packages/gateway-protocol/src/schema/agent-database-admission.ts
|
|
574
597
|
const AgentDatabaseAdmissionRefusalProperties = {
|
|
575
598
|
agentId: NonEmptyString,
|
|
576
599
|
paths: Type.Array(NonEmptyString),
|
|
@@ -586,7 +609,10 @@ const AgentDatabaseAdmissionRefusalSchema = Type.Union([closedObject({
|
|
|
586
609
|
code: Type.Union([Type.Literal("agent-database-inspection-pending"), Type.Literal("agent-database-inspection-failed")])
|
|
587
610
|
})]);
|
|
588
611
|
//#endregion
|
|
589
|
-
//#region src/
|
|
612
|
+
//#region packages/gateway-protocol/src/worker-capacity.ts
|
|
613
|
+
const NODE_WORKER_CAPACITY_MAX = 1024;
|
|
614
|
+
//#endregion
|
|
615
|
+
//#region packages/gateway-protocol/src/schema/environments-session.ts
|
|
590
616
|
const sessionTarget = {
|
|
591
617
|
sessionKey: Type.Optional(NonEmptyString),
|
|
592
618
|
agentId: Type.Optional(NonEmptyString)
|
|
@@ -617,7 +643,7 @@ const EnvironmentsSessionDestroyParamsSchema = closedObject({
|
|
|
617
643
|
environmentId: Type.Optional(NonEmptyString)
|
|
618
644
|
});
|
|
619
645
|
//#endregion
|
|
620
|
-
//#region src/schema/environments-session-exec.ts
|
|
646
|
+
//#region packages/gateway-protocol/src/schema/environments-session-exec.ts
|
|
621
647
|
/** Commands always run in the environment attached to the authenticated conversation. */
|
|
622
648
|
const EnvironmentsSessionExecParamsSchema = Type.Refine(closedObject({
|
|
623
649
|
sessionKey: Type.Optional(Type.String({
|
|
@@ -660,7 +686,7 @@ const EnvironmentsSessionExecParamsSchema = Type.Refine(closedObject({
|
|
|
660
686
|
return action === "run" ? value.argv !== void 0 && value.processId === void 0 : action === "start" ? value.argv !== void 0 && value.processId !== void 0 : value.processId !== void 0 && value.argv === void 0 && value.input === void 0 && value.timeoutMs === void 0;
|
|
661
687
|
}, () => "run/start require argv; start/status/stop require processId; status/stop accept no command");
|
|
662
688
|
//#endregion
|
|
663
|
-
//#region src/schema/environments.ts
|
|
689
|
+
//#region packages/gateway-protocol/src/schema/environments.ts
|
|
664
690
|
/**
|
|
665
691
|
* Environment inventory protocol schemas.
|
|
666
692
|
*
|
|
@@ -706,12 +732,18 @@ const WorkerTunnelStatusSchema = Type.Union([
|
|
|
706
732
|
/** Closed app ids a worker desktop may advertise and launch. */
|
|
707
733
|
const WorkerDesktopAppIdSchema = Type.Union([Type.Literal("browser"), Type.Literal("terminal")]);
|
|
708
734
|
/** Actionable issue attached only to runtime targets that need operator intervention. */
|
|
709
|
-
const RuntimeTargetIssueSchema = closedObject({
|
|
735
|
+
const RuntimeTargetIssueSchema = Type.Union([closedObject({
|
|
710
736
|
code: Type.Literal("update-required"),
|
|
711
737
|
action: Type.Literal("update-and-reconnect"),
|
|
712
738
|
updateCommand: Type.Literal("openclaw update"),
|
|
713
739
|
headlessReconnectCommand: Type.Literal("openclaw node restart")
|
|
714
|
-
})
|
|
740
|
+
}), closedObject({
|
|
741
|
+
code: Type.Literal("worker-host-unavailable"),
|
|
742
|
+
message: Type.String({
|
|
743
|
+
minLength: 1,
|
|
744
|
+
maxLength: 1024
|
|
745
|
+
})
|
|
746
|
+
})]);
|
|
715
747
|
const NodeWorkerBundleStatusSchema = Type.Union([closedObject({
|
|
716
748
|
status: Type.Literal("installed"),
|
|
717
749
|
version: NonEmptyString
|
|
@@ -720,13 +752,17 @@ const NodeWorkerBundleStatusSchema = Type.Union([closedObject({
|
|
|
720
752
|
const WorkerSlotSummarySchema = Type.Refine(closedObject({
|
|
721
753
|
total: Type.Integer({
|
|
722
754
|
minimum: 1,
|
|
723
|
-
maximum:
|
|
755
|
+
maximum: NODE_WORKER_CAPACITY_MAX
|
|
724
756
|
}),
|
|
725
757
|
available: Type.Integer({
|
|
726
758
|
minimum: 0,
|
|
727
|
-
maximum:
|
|
728
|
-
})
|
|
729
|
-
|
|
759
|
+
maximum: NODE_WORKER_CAPACITY_MAX
|
|
760
|
+
}),
|
|
761
|
+
reclaimableIdle: Type.Optional(Type.Integer({
|
|
762
|
+
minimum: 0,
|
|
763
|
+
maximum: 2
|
|
764
|
+
}))
|
|
765
|
+
}), (slots) => slots.available + (slots.reclaimableIdle ?? 0) <= slots.total, (slots) => `available worker slots ${slots.available} exceed total ${slots.total}`);
|
|
730
766
|
/** Gateway-owned authority state for one runtime-required node command. */
|
|
731
767
|
const RequiredNodeCommandStateSchema = Type.Union([
|
|
732
768
|
Type.Literal("invocable"),
|
|
@@ -739,7 +775,8 @@ const RequiredNodeCommandSchema = closedObject({
|
|
|
739
775
|
minLength: 1,
|
|
740
776
|
maxLength: 128
|
|
741
777
|
}),
|
|
742
|
-
state: RequiredNodeCommandStateSchema
|
|
778
|
+
state: RequiredNodeCommandStateSchema,
|
|
779
|
+
message: Type.Optional(NonEmptyString)
|
|
743
780
|
});
|
|
744
781
|
/** Worker-only lifecycle metadata layered onto the existing environment projection. */
|
|
745
782
|
const WorkerEnvironmentMetadataSchema = closedObject({
|
|
@@ -749,6 +786,7 @@ const WorkerEnvironmentMetadataSchema = closedObject({
|
|
|
749
786
|
state: WorkerEnvironmentStateSchema,
|
|
750
787
|
ageMs: Type.Integer({ minimum: 0 }),
|
|
751
788
|
idleMs: Type.Optional(Type.Integer({ minimum: 0 })),
|
|
789
|
+
destroyRequestedAtMs: Type.Optional(Type.Integer({ minimum: 0 })),
|
|
752
790
|
attachedSessionIds: Type.Array(NonEmptyString),
|
|
753
791
|
tunnelStatus: WorkerTunnelStatusSchema,
|
|
754
792
|
error: Type.Optional(NonEmptyString),
|
|
@@ -790,13 +828,19 @@ function createEnvironmentSummaryProperties() {
|
|
|
790
828
|
worker: Type.Optional(WorkerEnvironmentMetadataSchema),
|
|
791
829
|
preparation: Type.Optional(closedObject({
|
|
792
830
|
purpose: Type.Union([Type.Literal("reserve"), Type.Literal("build")]),
|
|
793
|
-
key: NonEmptyString
|
|
831
|
+
key: NonEmptyString,
|
|
832
|
+
details: Type.Optional(closedObject({
|
|
833
|
+
demandAtMs: Type.Integer({ minimum: 0 }),
|
|
834
|
+
expiresAtMs: Type.Integer({ minimum: 0 }),
|
|
835
|
+
consumedAtMs: Type.Union([Type.Integer({ minimum: 0 }), Type.Null()]),
|
|
836
|
+
project: Type.Optional(closedObject({
|
|
837
|
+
label: Type.Optional(NonEmptyString),
|
|
838
|
+
baseCommit: NonEmptyString
|
|
839
|
+
}))
|
|
840
|
+
}))
|
|
794
841
|
}))
|
|
795
842
|
};
|
|
796
843
|
}
|
|
797
|
-
function createEnvironmentSummarySchema() {
|
|
798
|
-
return closedObject(createEnvironmentSummaryProperties());
|
|
799
|
-
}
|
|
800
844
|
/** Public environment summary shown in listings and status responses. */
|
|
801
845
|
const EnvironmentSummarySchema = closedObject({
|
|
802
846
|
...createEnvironmentSummaryProperties(),
|
|
@@ -818,7 +862,8 @@ const EnvironmentsListParamsSchema = closedObject({
|
|
|
818
862
|
maxLength: 128
|
|
819
863
|
})),
|
|
820
864
|
projection: Type.Optional(Type.Literal("profiles")),
|
|
821
|
-
includeDesktopSetup: Type.Optional(Type.Boolean())
|
|
865
|
+
includeDesktopSetup: Type.Optional(Type.Boolean()),
|
|
866
|
+
includePreparedDetails: Type.Optional(Type.Boolean())
|
|
822
867
|
});
|
|
823
868
|
/** Provider-authored machine choice for one configured worker profile. */
|
|
824
869
|
const WorkerMachineOptionSchema = closedObject({
|
|
@@ -870,6 +915,7 @@ const WorkerExecutionModeSchema = Type.Union([Type.Literal("worker-turn"), Type.
|
|
|
870
915
|
const WorkerEnvironmentProfileSummarySchema = closedObject({
|
|
871
916
|
id: NonEmptyString,
|
|
872
917
|
providerId: NonEmptyString,
|
|
918
|
+
readyWorkers: Type.Optional(Type.Integer({ minimum: 0 })),
|
|
873
919
|
providerDisplayId: Type.Optional(Type.String({
|
|
874
920
|
pattern: "^[a-z][a-z0-9-]{0,63}(?![\\s\\S])",
|
|
875
921
|
maxLength: 64
|
|
@@ -886,19 +932,26 @@ const WorkerEnvironmentProfileSummarySchema = closedObject({
|
|
|
886
932
|
/** Profile-only requests leave environments empty without reading inventory. */
|
|
887
933
|
const EnvironmentsListResultSchema = closedObject({
|
|
888
934
|
environments: Type.Array(EnvironmentSummarySchema),
|
|
889
|
-
profiles: Type.Optional(Type.Array(WorkerEnvironmentProfileSummarySchema))
|
|
935
|
+
profiles: Type.Optional(Type.Array(WorkerEnvironmentProfileSummarySchema)),
|
|
936
|
+
preparedPool: Type.Optional(closedObject({
|
|
937
|
+
maxTotal: Type.Integer({ minimum: 0 }),
|
|
938
|
+
reservedEnvironmentIds: Type.Array(NonEmptyString, { uniqueItems: true })
|
|
939
|
+
}))
|
|
890
940
|
});
|
|
891
941
|
/** Status lookup request for one environment id. */
|
|
892
|
-
const EnvironmentsStatusParamsSchema = closedObject({
|
|
942
|
+
const EnvironmentsStatusParamsSchema = closedObject({
|
|
943
|
+
environmentId: NonEmptyString,
|
|
944
|
+
includePreparedDetails: Type.Optional(Type.Boolean())
|
|
945
|
+
});
|
|
893
946
|
/** Status lookup result for one environment id. */
|
|
894
|
-
const EnvironmentsStatusResultSchema =
|
|
947
|
+
const EnvironmentsStatusResultSchema = closedObject(createEnvironmentSummaryProperties());
|
|
895
948
|
/** Creates a worker environment from one configured provider profile. */
|
|
896
949
|
const EnvironmentsCreateParamsSchema = closedObject({
|
|
897
950
|
profileId: NonEmptyString,
|
|
898
951
|
idempotencyKey: NonEmptyString
|
|
899
952
|
});
|
|
900
953
|
/** Create result uses the same public summary shape as list and status. */
|
|
901
|
-
const EnvironmentsCreateResultSchema =
|
|
954
|
+
const EnvironmentsCreateResultSchema = closedObject(createEnvironmentSummaryProperties());
|
|
902
955
|
/** Prepares a configured profile's local Git project without dispatching a session. */
|
|
903
956
|
const EnvironmentsPrepareParamsSchema = closedObject({
|
|
904
957
|
profileId: NonEmptyString,
|
|
@@ -915,7 +968,7 @@ const EnvironmentsDestroyParamsSchema = closedObject({
|
|
|
915
968
|
force: Type.Optional(Type.Boolean())
|
|
916
969
|
});
|
|
917
970
|
/** Destroy result exposes the terminal worker lifecycle state. */
|
|
918
|
-
const EnvironmentsDestroyResultSchema =
|
|
971
|
+
const EnvironmentsDestroyResultSchema = closedObject(createEnvironmentSummaryProperties());
|
|
919
972
|
const WorkerDesktopObserveParamsSchema = closedObject({
|
|
920
973
|
environmentId: NonEmptyString,
|
|
921
974
|
control: Type.Optional(Type.Boolean())
|
|
@@ -937,7 +990,7 @@ const WorkerDesktopLaunchResultSchema = closedObject({
|
|
|
937
990
|
status: Type.Literal("ready")
|
|
938
991
|
});
|
|
939
992
|
//#endregion
|
|
940
|
-
//#region src/schema/model-runtime-options.ts
|
|
993
|
+
//#region packages/gateway-protocol/src/schema/model-runtime-options.ts
|
|
941
994
|
const GatewayAgentRuntimeSchema = closedObject({
|
|
942
995
|
id: NonEmptyString,
|
|
943
996
|
fallback: Type.Optional(Type.Union([Type.Literal("openclaw"), Type.Literal("none")])),
|
|
@@ -975,14 +1028,14 @@ const GatewayContextWindowOptionSchema = closedObject({
|
|
|
975
1028
|
contextWindow: Type.Integer({ minimum: 1 })
|
|
976
1029
|
});
|
|
977
1030
|
//#endregion
|
|
978
|
-
//#region src/schema/since.ts
|
|
1031
|
+
//#region packages/gateway-protocol/src/schema/since.ts
|
|
979
1032
|
/** Adds protocol-vintage metadata without changing the schema's validated value shape. */
|
|
980
1033
|
function withSince(train, schema) {
|
|
981
1034
|
Object.assign(schema, { "x-openclaw-since": train });
|
|
982
1035
|
return schema;
|
|
983
1036
|
}
|
|
984
1037
|
//#endregion
|
|
985
|
-
//#region src/schema/secrets.ts
|
|
1038
|
+
//#region packages/gateway-protocol/src/schema/secrets.ts
|
|
986
1039
|
/**
|
|
987
1040
|
* Secret-provider protocol schemas.
|
|
988
1041
|
*
|
|
@@ -1076,7 +1129,7 @@ const SecretsResolveResultSchema = closedObject({
|
|
|
1076
1129
|
inactiveRefPaths: Type.Optional(Type.Array(NonEmptyString))
|
|
1077
1130
|
});
|
|
1078
1131
|
//#endregion
|
|
1079
|
-
//#region src/schema/model-account-selection.ts
|
|
1132
|
+
//#region packages/gateway-protocol/src/schema/model-account-selection.ts
|
|
1080
1133
|
const ModelAuthProfileIdSchema = Type.String({
|
|
1081
1134
|
minLength: 1,
|
|
1082
1135
|
maxLength: 256
|
|
@@ -1110,7 +1163,7 @@ const ChatAccountSelectionSchema = Type.Union([
|
|
|
1110
1163
|
})
|
|
1111
1164
|
]);
|
|
1112
1165
|
//#endregion
|
|
1113
|
-
//#region src/schema/model-catalog.ts
|
|
1166
|
+
//#region packages/gateway-protocol/src/schema/model-catalog.ts
|
|
1114
1167
|
/** Model catalog request with optional visibility scope. */
|
|
1115
1168
|
const ModelsListParamsSchema = Type.Object({
|
|
1116
1169
|
agentId: Type.Optional(NonEmptyString),
|
|
@@ -1202,12 +1255,47 @@ const ModelCatalogProviderOutcomeSchema = closedObject({
|
|
|
1202
1255
|
});
|
|
1203
1256
|
const ModelsListResultSchema = closedObject({
|
|
1204
1257
|
models: Type.Array(ModelChoiceSchema),
|
|
1258
|
+
/** The Gateway owns role restrictions and the effective permitted reset target. */
|
|
1259
|
+
modelSelectionPolicy: Type.Optional(closedObject({
|
|
1260
|
+
restricted: Type.Literal(true),
|
|
1261
|
+
defaultModel: Type.Union([NonEmptyString, Type.Null()])
|
|
1262
|
+
})),
|
|
1205
1263
|
/** Manifest-owned decision choices, separate from conversational model routing. */
|
|
1206
1264
|
decisionModels: Type.Optional(Type.Array(closedObject({
|
|
1207
1265
|
id: NonEmptyString,
|
|
1208
1266
|
provider: NonEmptyString,
|
|
1209
1267
|
name: NonEmptyString,
|
|
1210
|
-
pluginId: NonEmptyString
|
|
1268
|
+
pluginId: NonEmptyString,
|
|
1269
|
+
capabilities: Type.Optional(closedObject({
|
|
1270
|
+
questionTypes: Type.Array(Type.Union([
|
|
1271
|
+
Type.Literal("boolean"),
|
|
1272
|
+
Type.Literal("choice"),
|
|
1273
|
+
Type.Literal("score")
|
|
1274
|
+
]), {
|
|
1275
|
+
minItems: 1,
|
|
1276
|
+
maxItems: 3,
|
|
1277
|
+
uniqueItems: true
|
|
1278
|
+
}),
|
|
1279
|
+
maxQuestions: Type.Optional(Type.Integer({
|
|
1280
|
+
minimum: 1,
|
|
1281
|
+
maximum: Number.MAX_SAFE_INTEGER
|
|
1282
|
+
})),
|
|
1283
|
+
maxChoiceAlternatives: Type.Optional(Type.Integer({
|
|
1284
|
+
minimum: 1,
|
|
1285
|
+
maximum: Number.MAX_SAFE_INTEGER
|
|
1286
|
+
})),
|
|
1287
|
+
maxScoreLevels: Type.Optional(Type.Integer({
|
|
1288
|
+
minimum: 1,
|
|
1289
|
+
maximum: Number.MAX_SAFE_INTEGER
|
|
1290
|
+
})),
|
|
1291
|
+
maxInputTokens: Type.Optional(Type.Integer({
|
|
1292
|
+
minimum: 1,
|
|
1293
|
+
maximum: Number.MAX_SAFE_INTEGER
|
|
1294
|
+
})),
|
|
1295
|
+
inputTokenScope: Type.Optional(Type.Union([Type.Literal("encoded-question"), Type.Literal("state-plus-each-criterion")])),
|
|
1296
|
+
requiresBooleanCriteria: Type.Optional(Type.Boolean()),
|
|
1297
|
+
confidence: Type.Optional(Type.Union([Type.Literal("provider-specific"), Type.Literal("none")]))
|
|
1298
|
+
}))
|
|
1211
1299
|
}))),
|
|
1212
1300
|
defaultModels: Type.Optional(closedObject({
|
|
1213
1301
|
/** Auto preview from agents.defaults.model, even when utility routing is explicit or disabled. */
|
|
@@ -1290,7 +1378,7 @@ const SkillsCuratorLiveStatusResultSchema = closedObject({
|
|
|
1290
1378
|
skills: Type.Array(SkillCuratorLiveEntrySchema)
|
|
1291
1379
|
});
|
|
1292
1380
|
//#endregion
|
|
1293
|
-
//#region src/schema/agents-models-skills.ts
|
|
1381
|
+
//#region packages/gateway-protocol/src/schema/agents-models-skills.ts
|
|
1294
1382
|
/**
|
|
1295
1383
|
* Agent, model, skill, and effective tool schemas.
|
|
1296
1384
|
*
|
|
@@ -1404,55 +1492,6 @@ const AgentsDeleteResultSchema = closedObject({
|
|
|
1404
1492
|
}))),
|
|
1405
1493
|
purgeFailed: Type.Optional(Type.Literal(true))
|
|
1406
1494
|
});
|
|
1407
|
-
const Sha256String = Type.String({
|
|
1408
|
-
minLength: 64,
|
|
1409
|
-
maxLength: 64,
|
|
1410
|
-
pattern: "^[a-fA-F0-9]{64}$"
|
|
1411
|
-
});
|
|
1412
|
-
/** File metadata and optional content for agent-local editable files. */
|
|
1413
|
-
const AgentsFileEntrySchema = closedObject({
|
|
1414
|
-
name: NonEmptyString,
|
|
1415
|
-
path: NonEmptyString,
|
|
1416
|
-
missing: Type.Boolean(),
|
|
1417
|
-
expectedAbsent: Type.Optional(Type.Boolean()),
|
|
1418
|
-
size: Type.Optional(Type.Integer({ minimum: 0 })),
|
|
1419
|
-
updatedAtMs: Type.Optional(Type.Integer({ minimum: 0 })),
|
|
1420
|
-
hash: Type.Optional(Sha256String),
|
|
1421
|
-
content: Type.Optional(Type.String())
|
|
1422
|
-
});
|
|
1423
|
-
/** Lists editable files for one agent. */
|
|
1424
|
-
const AgentsFilesListParamsSchema = closedObject({ agentId: NonEmptyString });
|
|
1425
|
-
/** Editable file list for an agent workspace. */
|
|
1426
|
-
const AgentsFilesListResultSchema = closedObject({
|
|
1427
|
-
agentId: NonEmptyString,
|
|
1428
|
-
workspace: NonEmptyString,
|
|
1429
|
-
files: Type.Array(AgentsFileEntrySchema)
|
|
1430
|
-
});
|
|
1431
|
-
/** Reads one editable agent file by name. */
|
|
1432
|
-
const AgentsFilesGetParamsSchema = closedObject({
|
|
1433
|
-
agentId: NonEmptyString,
|
|
1434
|
-
name: NonEmptyString
|
|
1435
|
-
});
|
|
1436
|
-
/** Result for reading one editable agent file. */
|
|
1437
|
-
const AgentsFilesGetResultSchema = closedObject({
|
|
1438
|
-
agentId: NonEmptyString,
|
|
1439
|
-
workspace: NonEmptyString,
|
|
1440
|
-
file: AgentsFileEntrySchema
|
|
1441
|
-
});
|
|
1442
|
-
/** Writes one editable agent file. */
|
|
1443
|
-
const AgentsFilesSetParamsSchema = closedObject({
|
|
1444
|
-
agentId: NonEmptyString,
|
|
1445
|
-
name: NonEmptyString,
|
|
1446
|
-
content: Type.String(),
|
|
1447
|
-
expectedHash: Type.Optional(Sha256String)
|
|
1448
|
-
});
|
|
1449
|
-
/** Result returned after writing an editable agent file. */
|
|
1450
|
-
const AgentsFilesSetResultSchema = closedObject({
|
|
1451
|
-
ok: Type.Literal(true),
|
|
1452
|
-
agentId: NonEmptyString,
|
|
1453
|
-
workspace: NonEmptyString,
|
|
1454
|
-
file: AgentsFileEntrySchema
|
|
1455
|
-
});
|
|
1456
1495
|
/** Reads model-provider credential health for one configured agent. */
|
|
1457
1496
|
const ModelsAuthStatusParamsSchema = closedObject({
|
|
1458
1497
|
refresh: Type.Optional(Type.Boolean()),
|
|
@@ -2284,11 +2323,6 @@ const ToolsGitHubAuthorizePollResultSchema = Type.Union([
|
|
|
2284
2323
|
]);
|
|
2285
2324
|
const ToolsGitHubAuthorizeCancelParamsSchema = closedObject({ requestId: GitHubDeviceRequestIdSchema });
|
|
2286
2325
|
const ToolsGitHubAuthorizeCancelResultSchema = closedObject({ cancelled: Type.Boolean() });
|
|
2287
|
-
/** Reads the effective tool set for one session. */
|
|
2288
|
-
const ToolsEffectiveParamsSchema = closedObject({
|
|
2289
|
-
agentId: Type.Optional(NonEmptyString),
|
|
2290
|
-
sessionKey: NonEmptyString
|
|
2291
|
-
});
|
|
2292
2326
|
/** Invokes one tool through the gateway tool dispatcher. */
|
|
2293
2327
|
const ToolsInvokeParamsSchema = closedObject({
|
|
2294
2328
|
name: NonEmptyString,
|
|
@@ -2303,61 +2337,6 @@ const ToolsInvokeParamsSchema = closedObject({
|
|
|
2303
2337
|
*/
|
|
2304
2338
|
conversationReadOrigin: Type.Optional(Type.Literal("direct-operator"))
|
|
2305
2339
|
});
|
|
2306
|
-
/** Effective tool entry after session/profile/channel/plugin filtering. */
|
|
2307
|
-
const ToolsEffectiveEntrySchema = closedObject({
|
|
2308
|
-
id: NonEmptyString,
|
|
2309
|
-
label: NonEmptyString,
|
|
2310
|
-
description: Type.String(),
|
|
2311
|
-
rawDescription: Type.String(),
|
|
2312
|
-
source: Type.Union([
|
|
2313
|
-
Type.Literal("core"),
|
|
2314
|
-
Type.Literal("plugin"),
|
|
2315
|
-
Type.Literal("channel"),
|
|
2316
|
-
Type.Literal("mcp")
|
|
2317
|
-
]),
|
|
2318
|
-
pluginId: Type.Optional(NonEmptyString),
|
|
2319
|
-
channelId: Type.Optional(NonEmptyString),
|
|
2320
|
-
mcpServer: Type.Optional(NonEmptyString),
|
|
2321
|
-
mcpToolName: Type.Optional(NonEmptyString),
|
|
2322
|
-
deniedBySession: Type.Optional(Type.Literal(true)),
|
|
2323
|
-
risk: Type.Optional(Type.Union([
|
|
2324
|
-
Type.Literal("low"),
|
|
2325
|
-
Type.Literal("medium"),
|
|
2326
|
-
Type.Literal("high")
|
|
2327
|
-
])),
|
|
2328
|
-
tags: Type.Optional(Type.Array(NonEmptyString))
|
|
2329
|
-
});
|
|
2330
|
-
/** Effective tool group shown to runtime/session callers. */
|
|
2331
|
-
const ToolsEffectiveGroupSchema = closedObject({
|
|
2332
|
-
id: Type.Union([
|
|
2333
|
-
Type.Literal("core"),
|
|
2334
|
-
Type.Literal("plugin"),
|
|
2335
|
-
Type.Literal("channel"),
|
|
2336
|
-
Type.Literal("mcp")
|
|
2337
|
-
]),
|
|
2338
|
-
label: NonEmptyString,
|
|
2339
|
-
source: Type.Union([
|
|
2340
|
-
Type.Literal("core"),
|
|
2341
|
-
Type.Literal("plugin"),
|
|
2342
|
-
Type.Literal("channel"),
|
|
2343
|
-
Type.Literal("mcp")
|
|
2344
|
-
]),
|
|
2345
|
-
tools: Type.Array(ToolsEffectiveEntrySchema)
|
|
2346
|
-
});
|
|
2347
|
-
/** Notice explaining runtime filtering such as quarantined tool schemas. */
|
|
2348
|
-
const ToolsEffectiveNoticeSchema = closedObject({
|
|
2349
|
-
id: NonEmptyString,
|
|
2350
|
-
severity: Type.Union([Type.Literal("info"), Type.Literal("warning")]),
|
|
2351
|
-
message: Type.String(),
|
|
2352
|
-
servers: Type.Optional(Type.Array(NonEmptyString))
|
|
2353
|
-
});
|
|
2354
|
-
/** Effective tool set for a session, including profile and filtering notices. */
|
|
2355
|
-
const ToolsEffectiveResultSchema = closedObject({
|
|
2356
|
-
agentId: NonEmptyString,
|
|
2357
|
-
profile: NonEmptyString,
|
|
2358
|
-
groups: Type.Array(ToolsEffectiveGroupSchema),
|
|
2359
|
-
notices: Type.Optional(Type.Array(ToolsEffectiveNoticeSchema))
|
|
2360
|
-
});
|
|
2361
2340
|
/** Normalized error shape for tool invocation failures. */
|
|
2362
2341
|
const ToolsInvokeErrorSchema = closedObject({
|
|
2363
2342
|
code: NonEmptyString,
|
|
@@ -2381,7 +2360,7 @@ const ToolsInvokeResultSchema = closedObject({
|
|
|
2381
2360
|
error: Type.Optional(ToolsInvokeErrorSchema)
|
|
2382
2361
|
});
|
|
2383
2362
|
//#endregion
|
|
2384
|
-
//#region src/schema/setup-inference.ts
|
|
2363
|
+
//#region packages/gateway-protocol/src/schema/setup-inference.ts
|
|
2385
2364
|
const SetupInferenceFailureStatusSchema = Type.Union([
|
|
2386
2365
|
Type.Literal("auth"),
|
|
2387
2366
|
Type.Literal("rate_limit"),
|
|
@@ -2397,7 +2376,7 @@ const SetupInferenceActivationRejectionSchema = closedObject({
|
|
|
2397
2376
|
status: SetupInferenceFailureStatusSchema
|
|
2398
2377
|
});
|
|
2399
2378
|
//#endregion
|
|
2400
|
-
//#region src/schema/wizard.ts
|
|
2379
|
+
//#region packages/gateway-protocol/src/schema/wizard.ts
|
|
2401
2380
|
/** Runtime state reported for gateway-driven setup wizard sessions. */
|
|
2402
2381
|
const WizardRunStatusSchema = Type.Union([
|
|
2403
2382
|
Type.Literal("running"),
|
|
@@ -2507,7 +2486,7 @@ const WizardStatusResultSchema = closedObject({
|
|
|
2507
2486
|
error: Type.Optional(Type.String())
|
|
2508
2487
|
});
|
|
2509
2488
|
//#endregion
|
|
2510
|
-
//#region src/schema/ui-appearance-typefaces.ts
|
|
2489
|
+
//#region packages/gateway-protocol/src/schema/ui-appearance-typefaces.ts
|
|
2511
2490
|
const UI_APPEARANCE_TYPEFACE_VALUES = [
|
|
2512
2491
|
"instrument-sans",
|
|
2513
2492
|
"geist",
|
|
@@ -2521,7 +2500,7 @@ const UI_APPEARANCE_TYPEFACE_VALUES = [
|
|
|
2521
2500
|
"system"
|
|
2522
2501
|
];
|
|
2523
2502
|
//#endregion
|
|
2524
|
-
//#region src/schema/ui-appearance-preferences.ts
|
|
2503
|
+
//#region packages/gateway-protocol/src/schema/ui-appearance-preferences.ts
|
|
2525
2504
|
const UI_APPEARANCE_PREFERENCE_KEYS = {
|
|
2526
2505
|
theme: "ui.theme",
|
|
2527
2506
|
themeMode: "ui.themeMode",
|
|
@@ -2538,7 +2517,7 @@ function normalizeUiAppearancePreference(key, value) {
|
|
|
2538
2517
|
return normalizeThemeMode(value);
|
|
2539
2518
|
}
|
|
2540
2519
|
//#endregion
|
|
2541
|
-
//#region src/schema/users.ts
|
|
2520
|
+
//#region packages/gateway-protocol/src/schema/users.ts
|
|
2542
2521
|
const UserProfileDisplayNameSchema = Type.String({ maxLength: 256 });
|
|
2543
2522
|
const UserProfileRoleSchema = Type.String({
|
|
2544
2523
|
minLength: 1,
|
|
@@ -2575,6 +2554,20 @@ const UserProfileSchema = closedObject({
|
|
|
2575
2554
|
});
|
|
2576
2555
|
const UsersListParamsSchema = closedObject({});
|
|
2577
2556
|
const UsersListResultSchema = closedObject({ profiles: Type.Array(UserProfileSchema) });
|
|
2557
|
+
const UsersPersonalFileGetParamsSchema = closedObject({ agentId: NonEmptyString });
|
|
2558
|
+
const UsersPersonalFileSetParamsSchema = closedObject({
|
|
2559
|
+
agentId: NonEmptyString,
|
|
2560
|
+
content: Type.String({ maxLength: 4e3 }),
|
|
2561
|
+
expectedHash: Type.Union([Type.String({ pattern: "^[a-f0-9]{64}$" }), Type.Null()])
|
|
2562
|
+
});
|
|
2563
|
+
const UsersPersonalFileGetResultSchema = closedObject({
|
|
2564
|
+
agentId: NonEmptyString,
|
|
2565
|
+
profileId: UserProfileIdSchema,
|
|
2566
|
+
content: Type.String(),
|
|
2567
|
+
hash: Type.Union([Type.String({ pattern: "^[a-f0-9]{64}$" }), Type.Null()]),
|
|
2568
|
+
missing: Type.Boolean()
|
|
2569
|
+
});
|
|
2570
|
+
const UsersPersonalFileSetResultSchema = UsersPersonalFileGetResultSchema;
|
|
2578
2571
|
const UsersSelfParamsSchema = closedObject({});
|
|
2579
2572
|
const UsersSelfResultSchema = closedObject({ profile: UserProfileSchema });
|
|
2580
2573
|
const UsersLinkEmailParamsSchema = closedObject({
|
|
@@ -2585,6 +2578,21 @@ const UsersLinkEmailParamsSchema = closedObject({
|
|
|
2585
2578
|
targetProfileId: UserProfileIdSchema
|
|
2586
2579
|
});
|
|
2587
2580
|
const UsersLinkEmailResultSchema = closedObject({ profile: UserProfileSchema });
|
|
2581
|
+
const UsersMergeParamsSchema = closedObject({
|
|
2582
|
+
sourceProfileId: UserProfileIdSchema,
|
|
2583
|
+
targetProfileId: UserProfileIdSchema
|
|
2584
|
+
});
|
|
2585
|
+
const UsersMergeResultSchema = closedObject({
|
|
2586
|
+
profile: UserProfileSchema,
|
|
2587
|
+
movedAliasKinds: Type.Array(Type.Union([
|
|
2588
|
+
Type.Literal("email"),
|
|
2589
|
+
Type.Literal("provider"),
|
|
2590
|
+
Type.Literal("channel")
|
|
2591
|
+
]), {
|
|
2592
|
+
maxItems: 3,
|
|
2593
|
+
uniqueItems: true
|
|
2594
|
+
})
|
|
2595
|
+
});
|
|
2588
2596
|
const ChannelIdentityPartSchema = Type.String({
|
|
2589
2597
|
minLength: 1,
|
|
2590
2598
|
maxLength: 512,
|
|
@@ -2832,7 +2840,7 @@ const UsersGitHubAuthorizePollResultSchema = Type.Union([
|
|
|
2832
2840
|
})
|
|
2833
2841
|
]);
|
|
2834
2842
|
//#endregion
|
|
2835
|
-
//#region src/schema/session-github-publication.ts
|
|
2843
|
+
//#region packages/gateway-protocol/src/schema/session-github-publication.ts
|
|
2836
2844
|
const SharedGitHubPublicationSourceSchema = Type.Union([
|
|
2837
2845
|
Type.Literal("system-detected"),
|
|
2838
2846
|
Type.Literal("system-configured"),
|
|
@@ -2976,7 +2984,7 @@ const SessionGitHubOptionsResultSchema = closedObject({
|
|
|
2976
2984
|
latestShared: Type.Union([SessionGitHubStatusResultSchema, Type.Null()])
|
|
2977
2985
|
});
|
|
2978
2986
|
//#endregion
|
|
2979
|
-
//#region src/svg-image.ts
|
|
2987
|
+
//#region packages/gateway-protocol/src/svg-image.ts
|
|
2980
2988
|
const SVG_PROLOGUE_WHITESPACE_RE = /\s*/y;
|
|
2981
2989
|
function skipSvgPrologueWhitespace(text, index) {
|
|
2982
2990
|
SVG_PROLOGUE_WHITESPACE_RE.lastIndex = index;
|
|
@@ -3020,7 +3028,7 @@ function isSelfContainedSvg(text) {
|
|
|
3020
3028
|
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);
|
|
3021
3029
|
}
|
|
3022
3030
|
//#endregion
|
|
3023
|
-
//#region src/session-agent-status.ts
|
|
3031
|
+
//#region packages/gateway-protocol/src/session-agent-status.ts
|
|
3024
3032
|
const SESSION_AGENT_ATTENTION_ICON_IDS = [
|
|
3025
3033
|
"hand",
|
|
3026
3034
|
"key",
|
|
@@ -3093,7 +3101,7 @@ function normalizeSessionIconValue(value) {
|
|
|
3093
3101
|
return (pattern ? pattern.test(normalized) : isSingleNonAsciiGrapheme(normalized)) ? normalized : null;
|
|
3094
3102
|
}
|
|
3095
3103
|
//#endregion
|
|
3096
|
-
//#region
|
|
3104
|
+
//#region packages/normalization-core/src/json-schema.ts
|
|
3097
3105
|
/** Remove complete false-schema child groups immediately preceding their aggregate. */
|
|
3098
3106
|
function normalizeTypeBoxValidationErrors(errors) {
|
|
3099
3107
|
const normalized = [];
|
|
@@ -3108,7 +3116,7 @@ function normalizeTypeBoxValidationErrors(errors) {
|
|
|
3108
3116
|
if (error.keyword === "additionalProperties" && typeof error.schemaPath === "string" && typeof error.instancePath === "string" && Array.isArray(properties) && properties.length > 0 && properties.length <= consecutiveBooleanErrors) {
|
|
3109
3117
|
if (normalized.slice(-properties.length).every((child, index) => {
|
|
3110
3118
|
const property = properties[index];
|
|
3111
|
-
return typeof property === "string" && child.schemaPath === `${error.schemaPath}/additionalProperties` && child.instancePath === `${error.instancePath}/${property}`;
|
|
3119
|
+
return typeof property === "string" && child.schemaPath === `${error.schemaPath}/additionalProperties` && child.instancePath === `${error.instancePath}/${property.replace(/~/g, "~0").replace(/\//g, "~1")}`;
|
|
3112
3120
|
})) normalized.length -= properties.length;
|
|
3113
3121
|
}
|
|
3114
3122
|
normalized.push(error);
|
|
@@ -3117,22 +3125,18 @@ function normalizeTypeBoxValidationErrors(errors) {
|
|
|
3117
3125
|
return normalized;
|
|
3118
3126
|
}
|
|
3119
3127
|
//#endregion
|
|
3120
|
-
//#region src/protocol-validator.ts
|
|
3128
|
+
//#region packages/gateway-protocol/src/protocol-validator.ts
|
|
3121
3129
|
/* @__NO_SIDE_EFFECTS__ */
|
|
3122
3130
|
function lazyCompile(schema, precheck) {
|
|
3123
3131
|
let compiled;
|
|
3124
3132
|
let errors = null;
|
|
3125
|
-
const getCompiled = () => {
|
|
3126
|
-
compiled ??= Compile(schema);
|
|
3127
|
-
return compiled;
|
|
3128
|
-
};
|
|
3129
3133
|
const validate = ((data) => {
|
|
3130
3134
|
const precheckError = precheck?.(data);
|
|
3131
3135
|
if (precheckError) {
|
|
3132
3136
|
errors = [precheckError];
|
|
3133
3137
|
return false;
|
|
3134
3138
|
}
|
|
3135
|
-
const current =
|
|
3139
|
+
const current = compiled ??= Compile(schema);
|
|
3136
3140
|
const valid = current.Check(data);
|
|
3137
3141
|
errors = valid ? null : normalizeTypeBoxValidationErrors([...current.Errors(data)]);
|
|
3138
3142
|
return valid;
|
|
@@ -3155,7 +3159,36 @@ function lazyCompile(schema, precheck) {
|
|
|
3155
3159
|
return validate;
|
|
3156
3160
|
}
|
|
3157
3161
|
//#endregion
|
|
3158
|
-
//#region src/
|
|
3162
|
+
//#region packages/gateway-protocol/src/plugin-ui-capabilities.ts
|
|
3163
|
+
/** Static UI contribution kinds, in canonical presentation order. */
|
|
3164
|
+
const PLUGIN_UI_CAPABILITIES = [
|
|
3165
|
+
"page",
|
|
3166
|
+
"navigation",
|
|
3167
|
+
"panel",
|
|
3168
|
+
"action",
|
|
3169
|
+
"accessory",
|
|
3170
|
+
"widget",
|
|
3171
|
+
"replacement",
|
|
3172
|
+
"link-reader"
|
|
3173
|
+
];
|
|
3174
|
+
/** Omission is unspecified; an empty declaration explicitly advertises no UI. */
|
|
3175
|
+
function validatePluginUiCapabilities(value) {
|
|
3176
|
+
if (value === void 0) return { ok: true };
|
|
3177
|
+
if (!Array.isArray(value)) return {
|
|
3178
|
+
ok: false,
|
|
3179
|
+
error: "must be an array"
|
|
3180
|
+
};
|
|
3181
|
+
for (const entry of value) if (!PLUGIN_UI_CAPABILITIES.some((candidate) => candidate === entry)) return {
|
|
3182
|
+
ok: false,
|
|
3183
|
+
error: `contains unknown UI capability ${JSON.stringify(entry)}`
|
|
3184
|
+
};
|
|
3185
|
+
return {
|
|
3186
|
+
ok: true,
|
|
3187
|
+
capabilities: PLUGIN_UI_CAPABILITIES.filter((capability) => value.includes(capability))
|
|
3188
|
+
};
|
|
3189
|
+
}
|
|
3190
|
+
//#endregion
|
|
3191
|
+
//#region packages/gateway-protocol/src/schema/control-ui-link-reader.ts
|
|
3159
3192
|
const ControlUiLinkReaderMetadataSchema = closedObject({
|
|
3160
3193
|
hosts: Type.Array(Type.String({
|
|
3161
3194
|
minLength: 1,
|
|
@@ -3189,7 +3222,7 @@ const ControlUiLinkReaderDescriptorSchema = closedObject({
|
|
|
3189
3222
|
linkReader: ControlUiLinkReaderMetadataSchema
|
|
3190
3223
|
});
|
|
3191
3224
|
//#endregion
|
|
3192
|
-
//#region src/schema/plugin-credentials.ts
|
|
3225
|
+
//#region packages/gateway-protocol/src/schema/plugin-credentials.ts
|
|
3193
3226
|
const closed$1 = { additionalProperties: false };
|
|
3194
3227
|
const text$1 = Type.String({
|
|
3195
3228
|
minLength: 1,
|
|
@@ -3250,7 +3283,7 @@ const PluginsCredentialsInspectResultSchema = Type.Object({
|
|
|
3250
3283
|
}, closed$1);
|
|
3251
3284
|
const validatePluginsCredentialsInspectParams = /* @__PURE__ */ lazyCompile(PluginsCredentialsInspectParamsSchema);
|
|
3252
3285
|
//#endregion
|
|
3253
|
-
//#region src/schema/plugin-inspection.ts
|
|
3286
|
+
//#region packages/gateway-protocol/src/schema/plugin-inspection.ts
|
|
3254
3287
|
/** Effective operator hook-policy grant with optional explicit config value. */
|
|
3255
3288
|
const PluginHookGrantSchema = closedObject({
|
|
3256
3289
|
/** Effective policy after origin defaults and operator config. */
|
|
@@ -3379,7 +3412,7 @@ const PluginDecisionProviderStatusSchema = closedObject({
|
|
|
3379
3412
|
}), { additionalProperties: false })
|
|
3380
3413
|
});
|
|
3381
3414
|
//#endregion
|
|
3382
|
-
//#region src/schema/plugin-install-progress.ts
|
|
3415
|
+
//#region packages/gateway-protocol/src/schema/plugin-install-progress.ts
|
|
3383
3416
|
/** Request-scoped installer facts; no package output or local paths cross this boundary. */
|
|
3384
3417
|
const PluginInstallActivitySchema = closedObject({
|
|
3385
3418
|
activityId: NonEmptyString,
|
|
@@ -3402,7 +3435,7 @@ const PluginsInstallProgressEventSchema = closedObject({
|
|
|
3402
3435
|
requestId: NonEmptyString
|
|
3403
3436
|
});
|
|
3404
3437
|
//#endregion
|
|
3405
|
-
//#region src/schema/plugins.ts
|
|
3438
|
+
//#region packages/gateway-protocol/src/schema/plugins.ts
|
|
3406
3439
|
/**
|
|
3407
3440
|
* Plugin control-surface protocol schemas.
|
|
3408
3441
|
*
|
|
@@ -3470,12 +3503,18 @@ const PluginsUiDescriptorsResultSchema = closedObject({
|
|
|
3470
3503
|
controlUiLinkReaders: Type.Optional(Type.Array(ControlUiLinkReaderDescriptorSchema)),
|
|
3471
3504
|
pluginSurfaceUrls: Type.Optional(Type.Record(NonEmptyString, NonEmptyString))
|
|
3472
3505
|
});
|
|
3506
|
+
const PluginUiCapabilitySchema = Type.Enum(PLUGIN_UI_CAPABILITIES, { type: "string" });
|
|
3507
|
+
const PluginUiCapabilitiesSchema = Type.Array(PluginUiCapabilitySchema, {
|
|
3508
|
+
maxItems: PLUGIN_UI_CAPABILITIES.length,
|
|
3509
|
+
uniqueItems: true
|
|
3510
|
+
});
|
|
3473
3511
|
/** One immutable browser build owned by an active native plugin. */
|
|
3474
3512
|
const PluginControlUiModuleSchema = closedObject({
|
|
3475
3513
|
pluginId: NonEmptyString,
|
|
3476
3514
|
name: NonEmptyString,
|
|
3477
3515
|
revision: NonEmptyString,
|
|
3478
3516
|
entryUrl: NonEmptyString,
|
|
3517
|
+
uiCapabilities: Type.Optional(PluginUiCapabilitiesSchema),
|
|
3479
3518
|
styles: Type.Array(NonEmptyString, { maxItems: 16 })
|
|
3480
3519
|
});
|
|
3481
3520
|
const PluginControlUiDiagnosticSchema = closedObject({
|
|
@@ -3555,7 +3594,7 @@ const PluginCatalogEntrySchema = closedObject({
|
|
|
3555
3594
|
packageName: Type.Optional(NonEmptyString),
|
|
3556
3595
|
/** Canonical ClawHub identity proven by install provenance or the official catalog. */
|
|
3557
3596
|
clawhubPackage: Type.Optional(NonEmptyString),
|
|
3558
|
-
/** Opaque discovery identity for loading
|
|
3597
|
+
/** Opaque discovery identity for loading local or ClawHub presentation metadata. */
|
|
3559
3598
|
catalogId: Type.Optional(NonEmptyString),
|
|
3560
3599
|
description: Type.Optional(Type.String()),
|
|
3561
3600
|
version: Type.Optional(NonEmptyString),
|
|
@@ -3593,6 +3632,8 @@ const PluginCatalogEntrySchema = closedObject({
|
|
|
3593
3632
|
minItems: 1,
|
|
3594
3633
|
maxItems: 3
|
|
3595
3634
|
})),
|
|
3635
|
+
/** Additional browse memberships derived from enabled plugins' declared capabilities. */
|
|
3636
|
+
capabilityCategories: Type.Optional(Type.Array(NonEmptyString, { uniqueItems: true })),
|
|
3596
3637
|
/** Compatibility projection of the primary category. */
|
|
3597
3638
|
category: Type.Optional(NonEmptyString),
|
|
3598
3639
|
/** True when the plugin has an install record and can be removed via plugins.uninstall. */
|
|
@@ -3669,7 +3710,8 @@ const PluginDiscoveryCategorySchema = closedObject({
|
|
|
3669
3710
|
label: NonEmptyString,
|
|
3670
3711
|
description: NonEmptyString,
|
|
3671
3712
|
icon: PluginDiscoveryIconKeySchema,
|
|
3672
|
-
order: Type.Integer({ minimum: 0 })
|
|
3713
|
+
order: Type.Integer({ minimum: 0 }),
|
|
3714
|
+
pinnedPackages: Type.Optional(Type.Array(NonEmptyString, { uniqueItems: true }))
|
|
3673
3715
|
});
|
|
3674
3716
|
const PluginDiscoveryCatalogFactsSchema = closedObject({
|
|
3675
3717
|
name: NonEmptyString,
|
|
@@ -3689,6 +3731,7 @@ const PluginDiscoveryCatalogFactsSchema = closedObject({
|
|
|
3689
3731
|
trending: Type.Optional(Type.Boolean()),
|
|
3690
3732
|
featuredRank: Type.Optional(Type.Integer({ minimum: 0 })),
|
|
3691
3733
|
trendingRank: Type.Optional(Type.Integer({ minimum: 0 })),
|
|
3734
|
+
categoryRanks: Type.Optional(Type.Record(NonEmptyString, Type.Integer({ minimum: 0 }))),
|
|
3692
3735
|
publishedToClawHub: Type.Optional(Type.Boolean())
|
|
3693
3736
|
});
|
|
3694
3737
|
const PluginDiscoveryLocalFactsSchema = closedObject({
|
|
@@ -3793,6 +3836,7 @@ const PluginDiscoveryDetailSchema = closedObject({
|
|
|
3793
3836
|
contracts: Type.Optional(Type.Record(NonEmptyString, Type.Array(NonEmptyString))),
|
|
3794
3837
|
providers: Type.Optional(Type.Array(NonEmptyString)),
|
|
3795
3838
|
channels: Type.Optional(Type.Array(NonEmptyString)),
|
|
3839
|
+
uiCapabilities: Type.Optional(PluginUiCapabilitiesSchema),
|
|
3796
3840
|
configuration: Type.Array(PluginDiscoveryConfigFieldSchema),
|
|
3797
3841
|
mcpServers: Type.Array(NonEmptyString),
|
|
3798
3842
|
skills: Type.Array(closedObject({
|
|
@@ -3821,6 +3865,12 @@ const PluginsCatalogGetResultSchema = closedObject({
|
|
|
3821
3865
|
plugin: PluginDiscoveryEntrySchema,
|
|
3822
3866
|
detail: PluginDiscoveryDetailSchema
|
|
3823
3867
|
});
|
|
3868
|
+
const PluginOverviewCapabilitiesSchema = closedObject({
|
|
3869
|
+
ui: Type.Optional(PluginUiCapabilitiesSchema),
|
|
3870
|
+
providers: Type.Array(NonEmptyString),
|
|
3871
|
+
channels: Type.Array(NonEmptyString),
|
|
3872
|
+
contracts: Type.Record(NonEmptyString, Type.Array(NonEmptyString))
|
|
3873
|
+
});
|
|
3824
3874
|
/** Consent snapshot plus the installed-version presentation projection used by Control UI. */
|
|
3825
3875
|
const PluginsInspectResultSchema = closedObject({
|
|
3826
3876
|
ok: Type.Literal(true),
|
|
@@ -3828,9 +3878,30 @@ const PluginsInspectResultSchema = closedObject({
|
|
|
3828
3878
|
readme: Type.Optional(Type.String({ maxLength: 524288 })),
|
|
3829
3879
|
repositoryUrl: Type.Optional(NonEmptyString),
|
|
3830
3880
|
documentationUrl: Type.Optional(NonEmptyString),
|
|
3831
|
-
publisherName: Type.Optional(NonEmptyString)
|
|
3881
|
+
publisherName: Type.Optional(NonEmptyString),
|
|
3882
|
+
/** Selected plugin metadata; declared below remains the package-wide consent surface. */
|
|
3883
|
+
capabilities: Type.Optional(PluginOverviewCapabilitiesSchema)
|
|
3832
3884
|
})),
|
|
3833
|
-
credentials: Type.Optional(Type.Array(
|
|
3885
|
+
credentials: Type.Optional(Type.Array(closedObject({
|
|
3886
|
+
...PluginCredentialDescriptorSchema.properties,
|
|
3887
|
+
/** Presence/configuration only; never secret values or service-health validation. */
|
|
3888
|
+
status: Type.Union([
|
|
3889
|
+
Type.Literal("configured"),
|
|
3890
|
+
Type.Literal("missing"),
|
|
3891
|
+
Type.Literal("invalid"),
|
|
3892
|
+
Type.Literal("unresolved")
|
|
3893
|
+
])
|
|
3894
|
+
}))),
|
|
3895
|
+
/** Stored shared OAuth state for matching plugin-owned, operator-configured HTTP servers. */
|
|
3896
|
+
mcpAuth: Type.Optional(Type.Array(closedObject({
|
|
3897
|
+
serverName: NonEmptyString,
|
|
3898
|
+
state: Type.Union([
|
|
3899
|
+
Type.Literal("authorized"),
|
|
3900
|
+
Type.Literal("requires-authorization"),
|
|
3901
|
+
Type.Literal("pending-authorization"),
|
|
3902
|
+
Type.Literal("unauthenticated")
|
|
3903
|
+
])
|
|
3904
|
+
}))),
|
|
3834
3905
|
decisions: Type.Optional(Type.Array(PluginDecisionProviderStatusSchema)),
|
|
3835
3906
|
plugin: closedObject({
|
|
3836
3907
|
id: NonEmptyString,
|
|
@@ -3851,6 +3922,8 @@ const PluginsInspectResultSchema = closedObject({
|
|
|
3851
3922
|
catalog: Type.Optional(PluginsCatalogGetResultSchema)
|
|
3852
3923
|
});
|
|
3853
3924
|
const PluginInstallOptions = {
|
|
3925
|
+
/** False preserves existing enablement policy while installing the source. */
|
|
3926
|
+
enable: Type.Optional(Type.Boolean()),
|
|
3854
3927
|
mode: Type.Optional(Type.Union([Type.Literal("install"), Type.Literal("update")])),
|
|
3855
3928
|
acknowledgeInstallPolicyWarning: Type.Optional(Type.Literal(true)),
|
|
3856
3929
|
acknowledgeCapabilities: Type.Optional(PluginCapabilityAcknowledgmentSchema)
|
|
@@ -3914,7 +3987,8 @@ const PluginRuntimeApplicationSchema = closedObject({
|
|
|
3914
3987
|
operationId: NonEmptyString,
|
|
3915
3988
|
generation: Type.Integer({ minimum: 0 }),
|
|
3916
3989
|
pluginIds: Type.Array(NonEmptyString),
|
|
3917
|
-
sourceDigests: Type.Optional(Type.Record(NonEmptyString, NonEmptyString))
|
|
3990
|
+
sourceDigests: Type.Optional(Type.Record(NonEmptyString, NonEmptyString)),
|
|
3991
|
+
selectedEntries: Type.Optional(Type.Record(NonEmptyString, NonEmptyString))
|
|
3918
3992
|
});
|
|
3919
3993
|
const PluginsChangedEventSchema = closedObject({ generation: Type.Integer({ minimum: 0 }) });
|
|
3920
3994
|
/** Successful plugin installation result. */
|
|
@@ -3947,6 +4021,7 @@ const PluginsReloadParamsSchema = closedObject({
|
|
|
3947
4021
|
maxItems: 64,
|
|
3948
4022
|
uniqueItems: true
|
|
3949
4023
|
}),
|
|
4024
|
+
waitForDrain: Type.Optional(Type.Boolean()),
|
|
3950
4025
|
acknowledgeCapabilities: Type.Optional(PluginCapabilityAcknowledgmentSchema)
|
|
3951
4026
|
});
|
|
3952
4027
|
const PluginsReloadResultSchema = closedObject({
|
|
@@ -3955,7 +4030,7 @@ const PluginsReloadResultSchema = closedObject({
|
|
|
3955
4030
|
minItems: 1,
|
|
3956
4031
|
maxItems: 64
|
|
3957
4032
|
}),
|
|
3958
|
-
restartRequired: Type.
|
|
4033
|
+
restartRequired: Type.Boolean(),
|
|
3959
4034
|
runtime: PluginRuntimeApplicationSchema,
|
|
3960
4035
|
warnings: Type.Optional(Type.Array(Type.String()))
|
|
3961
4036
|
});
|
|
@@ -3989,7 +4064,7 @@ const PluginsSetEnabledResultSchema = closedObject({
|
|
|
3989
4064
|
warnings: Type.Optional(Type.Array(Type.String()))
|
|
3990
4065
|
});
|
|
3991
4066
|
//#endregion
|
|
3992
|
-
//#region src/schema/sessions-catalog.ts
|
|
4067
|
+
//#region packages/gateway-protocol/src/schema/sessions-catalog.ts
|
|
3993
4068
|
const SessionCatalogErrorSchema = closedObject({
|
|
3994
4069
|
code: NonEmptyString,
|
|
3995
4070
|
message: NonEmptyString
|
|
@@ -4077,9 +4152,7 @@ const SessionCatalogHostSchema = closedObject({
|
|
|
4077
4152
|
error: Type.Optional(SessionCatalogErrorSchema)
|
|
4078
4153
|
});
|
|
4079
4154
|
const SessionCatalogSchema = closedObject({
|
|
4080
|
-
|
|
4081
|
-
label: NonEmptyString,
|
|
4082
|
-
capabilities: SessionCatalogCapabilitiesSchema,
|
|
4155
|
+
...SessionCatalogDescriptorSchema.properties,
|
|
4083
4156
|
shareRoute: Type.Optional(SessionCatalogShareRouteSchema),
|
|
4084
4157
|
hosts: Type.Array(SessionCatalogHostSchema),
|
|
4085
4158
|
error: Type.Optional(SessionCatalogErrorSchema)
|
|
@@ -4175,13 +4248,13 @@ const SessionsCatalogStartTerminalResultSchema = closedObject({
|
|
|
4175
4248
|
title: Type.Optional(NonEmptyString)
|
|
4176
4249
|
});
|
|
4177
4250
|
//#endregion
|
|
4178
|
-
//#region src/schema/terminal-constants.ts
|
|
4251
|
+
//#region packages/gateway-protocol/src/schema/terminal-constants.ts
|
|
4179
4252
|
/** Maximum size of one file staged through the operator terminal. */
|
|
4180
4253
|
const MAX_TERMINAL_UPLOAD_BYTES = 16777216;
|
|
4181
4254
|
/** Base64 expansion of MAX_TERMINAL_UPLOAD_BYTES. */
|
|
4182
4255
|
const MAX_TERMINAL_UPLOAD_BASE64_LENGTH = Math.ceil(MAX_TERMINAL_UPLOAD_BYTES / 3) * 4;
|
|
4183
4256
|
//#endregion
|
|
4184
|
-
//#region src/schema/terminal.ts
|
|
4257
|
+
//#region packages/gateway-protocol/src/schema/terminal.ts
|
|
4185
4258
|
const TerminalDimension = Type.Integer({
|
|
4186
4259
|
minimum: 1,
|
|
4187
4260
|
maximum: 2e3
|
|
@@ -4297,7 +4370,7 @@ const TerminalExitEventSchema = withSince("2026.7", closedObject({
|
|
|
4297
4370
|
/** Union of every event a terminal session can emit. */
|
|
4298
4371
|
const TerminalEventSchema = withSince("2026.7", Type.Union([TerminalDataEventSchema, TerminalExitEventSchema]));
|
|
4299
4372
|
//#endregion
|
|
4300
|
-
//#region src/schema/approval-id.ts
|
|
4373
|
+
//#region packages/gateway-protocol/src/schema/approval-id.ts
|
|
4301
4374
|
const APPROVAL_ID_WELL_FORMED_UNICODE_PATTERN = "^(?!\\.{1,2}$)(?:[^\\uD800-\\uDFFF]|[\\uD800-\\uDBFF][\\uDC00-\\uDFFF])+$";
|
|
4302
4375
|
/** Whether an approval id is non-empty, path-stable, and contains no unpaired UTF-16 surrogate. */
|
|
4303
4376
|
function isWellFormedApprovalId(value) {
|
|
@@ -4314,7 +4387,7 @@ function isWellFormedApprovalId(value) {
|
|
|
4314
4387
|
return true;
|
|
4315
4388
|
}
|
|
4316
4389
|
//#endregion
|
|
4317
|
-
//#region src/schema/approvals.ts
|
|
4390
|
+
//#region packages/gateway-protocol/src/schema/approvals.ts
|
|
4318
4391
|
const ApprovalIdSchema = Type.String({
|
|
4319
4392
|
minLength: 1,
|
|
4320
4393
|
pattern: APPROVAL_ID_WELL_FORMED_UNICODE_PATTERN,
|
|
@@ -4665,7 +4738,82 @@ const SessionApprovalReplaySchema = withSince("2026.7", closedObject({
|
|
|
4665
4738
|
truncated: Type.Boolean()
|
|
4666
4739
|
}));
|
|
4667
4740
|
//#endregion
|
|
4668
|
-
//#region src/
|
|
4741
|
+
//#region packages/gateway-protocol/src/validation-errors.ts
|
|
4742
|
+
function checkProtocolJson(data, maxDepth) {
|
|
4743
|
+
const stack = [{
|
|
4744
|
+
depth: 0,
|
|
4745
|
+
value: data
|
|
4746
|
+
}];
|
|
4747
|
+
const seen = /* @__PURE__ */ new WeakSet();
|
|
4748
|
+
while (stack.length > 0) {
|
|
4749
|
+
const current = stack.pop();
|
|
4750
|
+
if (!current) break;
|
|
4751
|
+
if (current.depth > maxDepth) return {
|
|
4752
|
+
keyword: "maxDepth",
|
|
4753
|
+
params: { limit: maxDepth },
|
|
4754
|
+
message: `must not exceed JSON nesting depth ${maxDepth}`
|
|
4755
|
+
};
|
|
4756
|
+
if (current.value === null || typeof current.value === "string" || typeof current.value === "boolean") continue;
|
|
4757
|
+
if (typeof current.value === "number") {
|
|
4758
|
+
if (!Number.isFinite(current.value)) return {
|
|
4759
|
+
keyword: "finite",
|
|
4760
|
+
message: "must contain only finite JSON numbers"
|
|
4761
|
+
};
|
|
4762
|
+
continue;
|
|
4763
|
+
}
|
|
4764
|
+
if (typeof current.value !== "object") return {
|
|
4765
|
+
keyword: "jsonValue",
|
|
4766
|
+
message: "must contain only JSON values"
|
|
4767
|
+
};
|
|
4768
|
+
if (seen.has(current.value)) return {
|
|
4769
|
+
keyword: "acyclic",
|
|
4770
|
+
message: "must be an acyclic JSON value"
|
|
4771
|
+
};
|
|
4772
|
+
seen.add(current.value);
|
|
4773
|
+
const values = Array.isArray(current.value) ? current.value : Object.values(current.value);
|
|
4774
|
+
for (const value of values) stack.push({
|
|
4775
|
+
depth: current.depth + 1,
|
|
4776
|
+
value
|
|
4777
|
+
});
|
|
4778
|
+
}
|
|
4779
|
+
}
|
|
4780
|
+
function firstStringParam(value) {
|
|
4781
|
+
if (typeof value === "string" && value.trim()) return value;
|
|
4782
|
+
if (Array.isArray(value)) return value.find((entry) => typeof entry === "string" && entry.trim().length > 0);
|
|
4783
|
+
}
|
|
4784
|
+
/** Convert validator errors into compact operator-facing failure text. */
|
|
4785
|
+
function formatValidationErrors(errors) {
|
|
4786
|
+
if (!errors?.length) return "unknown validation error";
|
|
4787
|
+
const parts = [];
|
|
4788
|
+
for (const err of errors) {
|
|
4789
|
+
const keyword = typeof err?.keyword === "string" ? err.keyword : "";
|
|
4790
|
+
const instancePath = typeof err?.instancePath === "string" ? err.instancePath : "";
|
|
4791
|
+
if (keyword === "additionalProperties") {
|
|
4792
|
+
const additionalProperty = firstStringParam(err?.params?.additionalProperty) ?? firstStringParam(err?.params?.additionalProperties);
|
|
4793
|
+
if (additionalProperty) {
|
|
4794
|
+
const where = instancePath ? `at ${instancePath}` : "at root";
|
|
4795
|
+
parts.push(`${where}: unexpected property '${additionalProperty}'`);
|
|
4796
|
+
continue;
|
|
4797
|
+
}
|
|
4798
|
+
}
|
|
4799
|
+
if (keyword === "required") {
|
|
4800
|
+
const missingProperty = firstStringParam(err?.params?.missingProperty) ?? firstStringParam(err?.params?.requiredProperties);
|
|
4801
|
+
if (missingProperty) {
|
|
4802
|
+
const where = instancePath ? `at ${instancePath}: ` : "";
|
|
4803
|
+
parts.push(`${where}must have required property '${missingProperty}'`);
|
|
4804
|
+
continue;
|
|
4805
|
+
}
|
|
4806
|
+
}
|
|
4807
|
+
const failingKeyword = typeof err?.params?.failingKeyword === "string" ? err.params.failingKeyword : "";
|
|
4808
|
+
const message = keyword === "then" || keyword === "if" && failingKeyword === "then" ? "must have required conditional properties" : typeof err?.message === "string" && err.message.trim() ? err.message : "validation error";
|
|
4809
|
+
const where = instancePath ? `at ${instancePath}: ` : "";
|
|
4810
|
+
parts.push(`${where}${message}`);
|
|
4811
|
+
}
|
|
4812
|
+
const unique = [...new Set(parts.filter((part) => part.trim()))];
|
|
4813
|
+
return unique.length > 0 ? unique.join("; ") : "unknown validation error";
|
|
4814
|
+
}
|
|
4815
|
+
//#endregion
|
|
4816
|
+
//#region packages/gateway-protocol/src/schema/failover-reason.ts
|
|
4669
4817
|
const failoverReasonLiteralSchemas = [
|
|
4670
4818
|
"auth",
|
|
4671
4819
|
"auth_permanent",
|
|
@@ -4686,8 +4834,106 @@ const failoverReasonLiteralSchemas = [
|
|
|
4686
4834
|
].map((reason) => Type.Literal(reason));
|
|
4687
4835
|
/** Closed failure reasons shared by model fallback producers and protocol consumers. */
|
|
4688
4836
|
const FailoverReasonSchema = Type.Union(failoverReasonLiteralSchemas);
|
|
4837
|
+
const validatePresenceActivityParams = /* @__PURE__ */ lazyCompile(closedObject({}));
|
|
4838
|
+
const PresenceQueryParamsSchema = closedObject({
|
|
4839
|
+
action: Type.Optional(Type.Union([
|
|
4840
|
+
Type.Literal("list"),
|
|
4841
|
+
Type.Literal("person"),
|
|
4842
|
+
Type.Literal("device")
|
|
4843
|
+
], { description: "List connected people (default), inspect a person, or inspect a connected device." })),
|
|
4844
|
+
person: Type.Optional(Type.String({
|
|
4845
|
+
minLength: 1,
|
|
4846
|
+
maxLength: 320,
|
|
4847
|
+
description: "For person: me, a returned person/profile ID, or an exact unambiguous display name."
|
|
4848
|
+
})),
|
|
4849
|
+
deviceId: Type.Optional(Type.String({
|
|
4850
|
+
minLength: 1,
|
|
4851
|
+
description: "For device: the exact presence device ID returned by this tool."
|
|
4852
|
+
})),
|
|
4853
|
+
include: Type.Optional(Type.Array(Type.Union([
|
|
4854
|
+
Type.Literal("devices"),
|
|
4855
|
+
Type.Literal("network"),
|
|
4856
|
+
Type.Literal("location")
|
|
4857
|
+
]), {
|
|
4858
|
+
uniqueItems: true,
|
|
4859
|
+
maxItems: 3,
|
|
4860
|
+
description: "Optional device details. Network includes IP; location includes approximate IP location without requesting GPS. Each option includes devices."
|
|
4861
|
+
})),
|
|
4862
|
+
limit: Type.Optional(Type.Integer({
|
|
4863
|
+
minimum: 1,
|
|
4864
|
+
maximum: 100,
|
|
4865
|
+
description: "Maximum people returned (default 50, maximum 100); truncation is reported."
|
|
4866
|
+
}))
|
|
4867
|
+
});
|
|
4868
|
+
const PresenceActivitySchema = closedObject({
|
|
4869
|
+
at: Type.Integer({ minimum: 0 }),
|
|
4870
|
+
source: Type.Union([
|
|
4871
|
+
Type.Literal("openclaw-interaction"),
|
|
4872
|
+
Type.Literal("app-input"),
|
|
4873
|
+
Type.Literal("system-input")
|
|
4874
|
+
]),
|
|
4875
|
+
deviceId: NonEmptyString
|
|
4876
|
+
});
|
|
4877
|
+
const PresenceLocationSchema = closedObject({
|
|
4878
|
+
source: Type.Literal("ip"),
|
|
4879
|
+
status: Type.Union([
|
|
4880
|
+
Type.Literal("found"),
|
|
4881
|
+
Type.Literal("not-found"),
|
|
4882
|
+
Type.Literal("unavailable")
|
|
4883
|
+
]),
|
|
4884
|
+
city: Type.Optional(NonEmptyString),
|
|
4885
|
+
region: Type.Optional(NonEmptyString),
|
|
4886
|
+
country: Type.Optional(NonEmptyString),
|
|
4887
|
+
countryCode: Type.Optional(NonEmptyString),
|
|
4888
|
+
attribution: Type.Optional(closedObject({
|
|
4889
|
+
text: NonEmptyString,
|
|
4890
|
+
url: NonEmptyString
|
|
4891
|
+
}))
|
|
4892
|
+
});
|
|
4893
|
+
const PresenceDeviceSchema = closedObject({
|
|
4894
|
+
id: NonEmptyString,
|
|
4895
|
+
nodeId: Type.Optional(NonEmptyString),
|
|
4896
|
+
name: NonEmptyString,
|
|
4897
|
+
kind: Type.Union([Type.Literal("node"), Type.Literal("client")]),
|
|
4898
|
+
personIds: Type.Array(NonEmptyString),
|
|
4899
|
+
online: Type.Literal(true),
|
|
4900
|
+
activity: Type.Union([PresenceActivitySchema, Type.Null()]),
|
|
4901
|
+
connections: Type.Array(closedObject({
|
|
4902
|
+
id: NonEmptyString,
|
|
4903
|
+
clientId: Type.Optional(NonEmptyString),
|
|
4904
|
+
platform: Type.Optional(NonEmptyString),
|
|
4905
|
+
deviceFamily: Type.Optional(NonEmptyString),
|
|
4906
|
+
timeZone: Type.Optional(NonEmptyString),
|
|
4907
|
+
network: Type.Optional(closedObject({ ip: Type.Union([NonEmptyString, Type.Null()]) })),
|
|
4908
|
+
location: Type.Optional(PresenceLocationSchema)
|
|
4909
|
+
}))
|
|
4910
|
+
});
|
|
4911
|
+
const PresencePersonSchema = closedObject({
|
|
4912
|
+
id: NonEmptyString,
|
|
4913
|
+
profileId: Type.Optional(NonEmptyString),
|
|
4914
|
+
name: NonEmptyString,
|
|
4915
|
+
online: Type.Literal(true),
|
|
4916
|
+
onlineSince: Type.Optional(Type.Integer({ minimum: 0 })),
|
|
4917
|
+
activity: Type.Union([PresenceActivitySchema, Type.Null()]),
|
|
4918
|
+
deviceCount: Type.Integer({ minimum: 0 }),
|
|
4919
|
+
devices: Type.Optional(Type.Array(PresenceDeviceSchema))
|
|
4920
|
+
});
|
|
4921
|
+
const PresenceQueryResultSchema = closedObject({
|
|
4922
|
+
observedAt: Type.Integer({ minimum: 0 }),
|
|
4923
|
+
status: Type.Union([
|
|
4924
|
+
Type.Literal("ok"),
|
|
4925
|
+
Type.Literal("ambiguous"),
|
|
4926
|
+
Type.Literal("not-found"),
|
|
4927
|
+
Type.Literal("identity-unavailable")
|
|
4928
|
+
]),
|
|
4929
|
+
people: Type.Array(PresencePersonSchema),
|
|
4930
|
+
devices: Type.Optional(Type.Array(PresenceDeviceSchema)),
|
|
4931
|
+
totalPeople: Type.Integer({ minimum: 0 }),
|
|
4932
|
+
truncated: Type.Boolean(),
|
|
4933
|
+
message: Type.Optional(NonEmptyString)
|
|
4934
|
+
});
|
|
4689
4935
|
//#endregion
|
|
4690
|
-
//#region src/schema/worker-protocol-primitives.ts
|
|
4936
|
+
//#region packages/gateway-protocol/src/schema/worker-protocol-primitives.ts
|
|
4691
4937
|
const WORKER_PUBLIC_INGRESS_PATH = "/__openclaw__/worker";
|
|
4692
4938
|
const WORKER_PROTOCOL_MAX_IDENTIFIER_LENGTH = 256;
|
|
4693
4939
|
const WORKER_PROTOCOL_MAX_FRAME_ID_LENGTH = 128;
|
|
@@ -4790,7 +5036,7 @@ const LiveSequenceSchema = Type.Integer({
|
|
|
4790
5036
|
maximum: Number.MAX_SAFE_INTEGER
|
|
4791
5037
|
});
|
|
4792
5038
|
//#endregion
|
|
4793
|
-
//#region src/schema/worker-computer.ts
|
|
5039
|
+
//#region packages/gateway-protocol/src/schema/worker-computer.ts
|
|
4794
5040
|
const WORKER_COMPUTER_PROTOCOL_FEATURE = "worker-computer-v1";
|
|
4795
5041
|
const WorkerComputerParamsSchema = closedObject({
|
|
4796
5042
|
command: Type.Enum(["screen.snapshot", "computer.act"], { type: "string" }),
|
|
@@ -4815,7 +5061,7 @@ const WorkerComputerResponseFrameSchema = Type.Union([closedObject({
|
|
|
4815
5061
|
payload: WorkerComputerResultSchema
|
|
4816
5062
|
}), WorkerErrorResponseFrameSchema]);
|
|
4817
5063
|
//#endregion
|
|
4818
|
-
//#region src/schema/worker-admission.ts
|
|
5064
|
+
//#region packages/gateway-protocol/src/schema/worker-admission.ts
|
|
4819
5065
|
const WORKER_RPC_SET_VERSION = 1;
|
|
4820
5066
|
const WORKER_BUNDLE_PREWARM_VERSION = 1;
|
|
4821
5067
|
const WORKER_HEARTBEAT_INTERVAL_MS = 15e3;
|
|
@@ -4827,7 +5073,8 @@ const WORKER_PROTOCOL_METHODS = [
|
|
|
4827
5073
|
"worker.sessions.send",
|
|
4828
5074
|
"worker.portal",
|
|
4829
5075
|
"worker.computer",
|
|
4830
|
-
"worker.skill-workshop"
|
|
5076
|
+
"worker.skill-workshop",
|
|
5077
|
+
"worker.presence"
|
|
4831
5078
|
];
|
|
4832
5079
|
const WORKER_TRANSCRIPT_COMMIT_PROTOCOL_FEATURE = "worker-transcript-commit-v1";
|
|
4833
5080
|
const WORKER_LIVE_EVENT_PROTOCOL_FEATURE = "worker-live-event-v1";
|
|
@@ -4835,8 +5082,10 @@ const WORKER_LAUNCH_V2_PROTOCOL_FEATURE = "worker-launch-v2";
|
|
|
4835
5082
|
const WORKER_EXECUTION_CONTEXT_PROTOCOL_FEATURE = "worker-execution-context-v2";
|
|
4836
5083
|
const WORKER_EXECUTION_AUTHORITY_PROTOCOL_FEATURE = "worker-execution-authority-v1";
|
|
4837
5084
|
const WORKER_LINEAGE_START_PROTOCOL_FEATURE = "worker-lineage-start-v1";
|
|
5085
|
+
const NODE_WORKER_IDLE_RETENTION_PROTOCOL_FEATURE = "node-worker-idle-retention-v1";
|
|
4838
5086
|
const WORKER_SESSION_TOOLS_PROTOCOL_FEATURE = "worker-session-tools-v1";
|
|
4839
5087
|
const WORKER_PORTAL_PROTOCOL_FEATURE = "worker-portal-v1";
|
|
5088
|
+
const WORKER_PRESENCE_PROTOCOL_FEATURE = "worker-presence-v1";
|
|
4840
5089
|
const WORKER_PROTOCOL_FEATURES = [
|
|
4841
5090
|
"skill-resources-v1",
|
|
4842
5091
|
"worker-skill-workshop-v1",
|
|
@@ -4846,8 +5095,10 @@ const WORKER_PROTOCOL_FEATURES = [
|
|
|
4846
5095
|
WORKER_EXECUTION_CONTEXT_PROTOCOL_FEATURE,
|
|
4847
5096
|
WORKER_EXECUTION_AUTHORITY_PROTOCOL_FEATURE,
|
|
4848
5097
|
WORKER_LINEAGE_START_PROTOCOL_FEATURE,
|
|
5098
|
+
NODE_WORKER_IDLE_RETENTION_PROTOCOL_FEATURE,
|
|
4849
5099
|
WORKER_SESSION_TOOLS_PROTOCOL_FEATURE,
|
|
4850
5100
|
WORKER_PORTAL_PROTOCOL_FEATURE,
|
|
5101
|
+
WORKER_PRESENCE_PROTOCOL_FEATURE,
|
|
4851
5102
|
WORKER_COMPUTER_PROTOCOL_FEATURE,
|
|
4852
5103
|
"worker-inference-v1"
|
|
4853
5104
|
];
|
|
@@ -5058,6 +5309,10 @@ const WorkerPortalParamsSchema = closedObject({
|
|
|
5058
5309
|
maxLength: 256
|
|
5059
5310
|
}))
|
|
5060
5311
|
});
|
|
5312
|
+
const WorkerPresenceParamsSchema = closedObject({
|
|
5313
|
+
toolCallId: WorkerSessionToolCallIdSchema,
|
|
5314
|
+
...PresenceQueryParamsSchema.properties
|
|
5315
|
+
});
|
|
5061
5316
|
const WorkerSessionToolResultSchema = closedObject({ resultJson: Type.String({
|
|
5062
5317
|
minLength: 2,
|
|
5063
5318
|
maxLength: WORKER_PROTOCOL_MAX_PAYLOAD_BYTES
|
|
@@ -5071,6 +5326,7 @@ const WorkerSessionToolResponseFrameSchema = Type.Union([closedObject({
|
|
|
5071
5326
|
const WorkerSessionsSpawnResponseFrameSchema = WorkerSessionToolResponseFrameSchema;
|
|
5072
5327
|
const WorkerSessionsSendResponseFrameSchema = WorkerSessionToolResponseFrameSchema;
|
|
5073
5328
|
const WorkerPortalResponseFrameSchema = WorkerSessionToolResponseFrameSchema;
|
|
5329
|
+
const WorkerPresenceResponseFrameSchema = WorkerSessionToolResponseFrameSchema;
|
|
5074
5330
|
const WorkerTranscriptTextContentSchema = closedObject({
|
|
5075
5331
|
type: Type.Literal("text"),
|
|
5076
5332
|
text: Type.String({ maxLength: WORKER_PROTOCOL_MAX_PAYLOAD_BYTES }),
|
|
@@ -5493,7 +5749,7 @@ const WorkerLiveEventResponseFrameSchema = Type.Union([
|
|
|
5493
5749
|
WorkerErrorResponseFrameSchema
|
|
5494
5750
|
]);
|
|
5495
5751
|
//#endregion
|
|
5496
|
-
//#region src/schema/worker-inference.ts
|
|
5752
|
+
//#region packages/gateway-protocol/src/schema/worker-inference.ts
|
|
5497
5753
|
const WORKER_INFERENCE_PROTOCOL_FEATURE = "worker-inference-v1";
|
|
5498
5754
|
const WORKER_INFERENCE_METHODS = ["worker.inference.start", "worker.inference.cancel"];
|
|
5499
5755
|
const WORKER_PROTOCOL_MAX_INFERENCE_PAYLOAD_BYTES = WORKER_PROTOCOL_MAX_MEDIA_PAYLOAD_BYTES;
|
|
@@ -5808,28 +6064,7 @@ const WorkerInferenceTerminalFrameSchema = workerInferenceObject({
|
|
|
5808
6064
|
payload: WorkerInferenceTerminalParamsSchema
|
|
5809
6065
|
});
|
|
5810
6066
|
function isSafeWorkerInferenceJson(data) {
|
|
5811
|
-
|
|
5812
|
-
depth: 0,
|
|
5813
|
-
value: data
|
|
5814
|
-
}];
|
|
5815
|
-
const seen = /* @__PURE__ */ new WeakSet();
|
|
5816
|
-
while (stack.length > 0) {
|
|
5817
|
-
const current = stack.pop();
|
|
5818
|
-
if (!current || current.depth > 32) return false;
|
|
5819
|
-
if (current.value === null || typeof current.value === "string" || typeof current.value === "boolean") continue;
|
|
5820
|
-
if (typeof current.value === "number") {
|
|
5821
|
-
if (!Number.isFinite(current.value)) return false;
|
|
5822
|
-
continue;
|
|
5823
|
-
}
|
|
5824
|
-
if (typeof current.value !== "object" || seen.has(current.value)) return false;
|
|
5825
|
-
seen.add(current.value);
|
|
5826
|
-
const values = Array.isArray(current.value) ? current.value : Object.values(current.value);
|
|
5827
|
-
for (const value of values) stack.push({
|
|
5828
|
-
depth: current.depth + 1,
|
|
5829
|
-
value
|
|
5830
|
-
});
|
|
5831
|
-
}
|
|
5832
|
-
return true;
|
|
6067
|
+
return checkProtocolJson(data, 32) === void 0;
|
|
5833
6068
|
}
|
|
5834
6069
|
function validateWorkerInferenceStartParams(data) {
|
|
5835
6070
|
return isSafeWorkerInferenceJson(data) && Value.Check(WorkerInferenceStartParamsSchema, data);
|
|
@@ -5847,7 +6082,7 @@ function validateWorkerInferenceTerminalFrame(data) {
|
|
|
5847
6082
|
return isSafeWorkerInferenceJson(data) && Value.Check(WorkerInferenceTerminalFrameSchema, data);
|
|
5848
6083
|
}
|
|
5849
6084
|
//#endregion
|
|
5850
|
-
//#region src/schema/computer.ts
|
|
6085
|
+
//#region packages/gateway-protocol/src/schema/computer.ts
|
|
5851
6086
|
const ComputerStatusParamsSchema = closedObject({});
|
|
5852
6087
|
const ComputerInvokeParamsSchema = closedObject({
|
|
5853
6088
|
command: Type.Enum(["screen.snapshot", "computer.act"]),
|
|
@@ -5857,7 +6092,7 @@ const ComputerInvokeParamsSchema = closedObject({
|
|
|
5857
6092
|
idempotencyKey: NonEmptyString
|
|
5858
6093
|
});
|
|
5859
6094
|
//#endregion
|
|
5860
|
-
//#region src/schema/skill-history.ts
|
|
6095
|
+
//#region packages/gateway-protocol/src/schema/skill-history.ts
|
|
5861
6096
|
const SkillsProposalHistoryStatusParamsSchema = Type.Object({ agentId: Type.Optional(NonEmptyString) }, { additionalProperties: false });
|
|
5862
6097
|
const SkillsProposalHistoryScanParamsSchema = Type.Object({
|
|
5863
6098
|
agentId: Type.Optional(NonEmptyString),
|
|
@@ -5878,7 +6113,7 @@ const SkillsProposalHistoryScanResultSchema = Type.Object({
|
|
|
5878
6113
|
const validateSkillsProposalHistoryStatusParams = /* @__PURE__ */ lazyCompile(SkillsProposalHistoryStatusParamsSchema);
|
|
5879
6114
|
const validateSkillsProposalHistoryScanParams = /* @__PURE__ */ lazyCompile(SkillsProposalHistoryScanParamsSchema);
|
|
5880
6115
|
//#endregion
|
|
5881
|
-
//#region src/schema/skill-library.ts
|
|
6116
|
+
//#region packages/gateway-protocol/src/schema/skill-library.ts
|
|
5882
6117
|
const SKILL_LIBRARY_MAX_FILES = 256;
|
|
5883
6118
|
const SKILL_LIBRARY_MAX_FILE_BYTES = 1048576;
|
|
5884
6119
|
const SKILL_LIBRARY_MAX_BUNDLE_BYTES = 8388608;
|
|
@@ -5931,7 +6166,12 @@ const SkillsLibrarySaveParamsSchema = Type.Object({
|
|
|
5931
6166
|
minLength: 1,
|
|
5932
6167
|
maxLength: SKILL_LIBRARY_MAX_FILE_BYTES
|
|
5933
6168
|
}),
|
|
5934
|
-
files: Type.Optional(Type.Array(SkillLibraryFileSchema, { maxItems: 255 }))
|
|
6169
|
+
files: Type.Optional(Type.Array(SkillLibraryFileSchema, { maxItems: 255 })),
|
|
6170
|
+
/** Existing support files from this skill's exact expectedRevision; no uploaded bytes. */
|
|
6171
|
+
retainFiles: Type.Optional(Type.Array(Type.String({
|
|
6172
|
+
minLength: 1,
|
|
6173
|
+
maxLength: 512
|
|
6174
|
+
}), { maxItems: 255 }))
|
|
5935
6175
|
}, closed);
|
|
5936
6176
|
const SkillsLibraryMutateParamsSchema = Type.Object({
|
|
5937
6177
|
skillId: id,
|
|
@@ -6000,7 +6240,7 @@ const validateSkillsLibraryActivateParams = /* @__PURE__ */ lazyCompile(SkillsLi
|
|
|
6000
6240
|
const validateSkillsLibraryImportParams = /* @__PURE__ */ lazyCompile(SkillsLibraryImportParamsSchema);
|
|
6001
6241
|
const validateSkillsLibraryUploadParams = /* @__PURE__ */ lazyCompile(SkillsLibraryUploadParamsSchema);
|
|
6002
6242
|
//#endregion
|
|
6003
|
-
//#region src/schema/ui-command.ts
|
|
6243
|
+
//#region packages/gateway-protocol/src/schema/ui-command.ts
|
|
6004
6244
|
const UiSplitCommandSchema = closedObject({
|
|
6005
6245
|
kind: Type.Literal("split"),
|
|
6006
6246
|
direction: Type.Union([Type.Literal("right"), Type.Literal("down")]),
|
|
@@ -6068,7 +6308,7 @@ const UiCommandParamsSchema = closedObject({
|
|
|
6068
6308
|
});
|
|
6069
6309
|
const UiCommandResultSchema = closedObject({ ok: Type.Boolean() });
|
|
6070
6310
|
//#endregion
|
|
6071
|
-
//#region src/schema/themes.ts
|
|
6311
|
+
//#region packages/gateway-protocol/src/schema/themes.ts
|
|
6072
6312
|
const ThemeValue = Type.String({
|
|
6073
6313
|
minLength: 1,
|
|
6074
6314
|
maxLength: 120
|
|
@@ -6150,7 +6390,7 @@ const ThemesImportParamsSchema = closedObject({
|
|
|
6150
6390
|
mode: Type.Optional(ThemeModeSchema)
|
|
6151
6391
|
});
|
|
6152
6392
|
//#endregion
|
|
6153
|
-
//#region src/schema/talk-voice.ts
|
|
6393
|
+
//#region packages/gateway-protocol/src/schema/talk-voice.ts
|
|
6154
6394
|
const TALK_VOICE_CHANGE_TIMEOUT_MS = 6e4;
|
|
6155
6395
|
const target = {
|
|
6156
6396
|
sessionKey: Type.Optional(NonEmptyString),
|
|
@@ -6189,7 +6429,29 @@ const TalkVoiceChangeEventSchema = closedObject({
|
|
|
6189
6429
|
phase: Type.Union([Type.Literal("requested"), Type.Literal("cancelled")])
|
|
6190
6430
|
});
|
|
6191
6431
|
//#endregion
|
|
6192
|
-
//#region src/schema/
|
|
6432
|
+
//#region packages/gateway-protocol/src/schema/canvas.ts
|
|
6433
|
+
const CANVAS_DOCUMENT_PREVIEW_MAX_BYTES = 2097152;
|
|
6434
|
+
const WIDGET_HTML_MAX_UTF8_BYTES = 10485760;
|
|
6435
|
+
const CanvasDocumentPreviewParamsSchema = closedObject({ html: Type.String({
|
|
6436
|
+
maxLength: CANVAS_DOCUMENT_PREVIEW_MAX_BYTES,
|
|
6437
|
+
description: "Caller-owned HTML, limited to 2 MiB of UTF-8 data by the Gateway."
|
|
6438
|
+
}) });
|
|
6439
|
+
const CanvasDocumentViewParamsSchema = closedObject({ docId: Type.String({
|
|
6440
|
+
minLength: 1,
|
|
6441
|
+
maxLength: 256,
|
|
6442
|
+
pattern: "^(?!\\.{1,2}$)[A-Za-z0-9._-]+$"
|
|
6443
|
+
}) });
|
|
6444
|
+
const CanvasDocumentViewResultSchema = closedObject({
|
|
6445
|
+
html: Type.String({ maxLength: WIDGET_HTML_MAX_UTF8_BYTES }),
|
|
6446
|
+
sandboxUrl: Type.String(),
|
|
6447
|
+
sandboxPort: Type.Integer({
|
|
6448
|
+
minimum: 1,
|
|
6449
|
+
maximum: 65535
|
|
6450
|
+
}),
|
|
6451
|
+
sandboxOrigin: Type.Optional(Type.String())
|
|
6452
|
+
});
|
|
6453
|
+
//#endregion
|
|
6454
|
+
//#region packages/gateway-protocol/src/schema/board.ts
|
|
6193
6455
|
const BoardTabIdSchema = Type.String({ pattern: "^[a-z0-9-]{1,40}$" });
|
|
6194
6456
|
const BoardWidgetNameSchema = Type.String({ pattern: "^[a-z0-9][a-z0-9._-]{0,63}$" });
|
|
6195
6457
|
const BoardWidgetGeneratedIdentitySchema = closedObject({
|
|
@@ -6376,7 +6638,7 @@ const BoardMcpAppDescriptorSchema = closedObject({
|
|
|
6376
6638
|
});
|
|
6377
6639
|
const BoardWidgetHtmlContentSchema = closedObject({
|
|
6378
6640
|
kind: Type.Literal("html"),
|
|
6379
|
-
html: Type.String({ maxLength:
|
|
6641
|
+
html: Type.String({ maxLength: WIDGET_HTML_MAX_UTF8_BYTES })
|
|
6380
6642
|
});
|
|
6381
6643
|
const BoardWidgetMcpAppContentSchema = closedObject({
|
|
6382
6644
|
kind: Type.Literal("mcp-app"),
|
|
@@ -6521,28 +6783,7 @@ const BoardCommandEventSchema = closedObject({
|
|
|
6521
6783
|
command: BoardCommandSchema
|
|
6522
6784
|
});
|
|
6523
6785
|
//#endregion
|
|
6524
|
-
//#region src/schema/
|
|
6525
|
-
const CANVAS_DOCUMENT_PREVIEW_MAX_BYTES = 2097152;
|
|
6526
|
-
const CanvasDocumentPreviewParamsSchema = closedObject({ html: Type.String({
|
|
6527
|
-
maxLength: CANVAS_DOCUMENT_PREVIEW_MAX_BYTES,
|
|
6528
|
-
description: "Caller-owned HTML, limited to 2 MiB of UTF-8 data by the Gateway."
|
|
6529
|
-
}) });
|
|
6530
|
-
const CanvasDocumentViewParamsSchema = closedObject({ docId: Type.String({
|
|
6531
|
-
minLength: 1,
|
|
6532
|
-
maxLength: 256,
|
|
6533
|
-
pattern: "^(?!\\.{1,2}$)[A-Za-z0-9._-]+$"
|
|
6534
|
-
}) });
|
|
6535
|
-
const CanvasDocumentViewResultSchema = closedObject({
|
|
6536
|
-
html: Type.String({ maxLength: 2097152 }),
|
|
6537
|
-
sandboxUrl: Type.String(),
|
|
6538
|
-
sandboxPort: Type.Integer({
|
|
6539
|
-
minimum: 1,
|
|
6540
|
-
maximum: 65535
|
|
6541
|
-
}),
|
|
6542
|
-
sandboxOrigin: Type.Optional(Type.String())
|
|
6543
|
-
});
|
|
6544
|
-
//#endregion
|
|
6545
|
-
//#region src/schema/progress-card.ts
|
|
6786
|
+
//#region packages/gateway-protocol/src/schema/progress-card.ts
|
|
6546
6787
|
const PROGRESS_CARD_MAX_UTF8_BYTES = 8192;
|
|
6547
6788
|
const PROGRESS_CARD_MAX_STEPS = 50;
|
|
6548
6789
|
const PROGRESS_CARD_MAX_STEP_UTF8_BYTES = 512;
|
|
@@ -6590,7 +6831,7 @@ const ProgressCardChangedEventSchema = closedObject({
|
|
|
6590
6831
|
revision: Type.Union([Type.Number(), Type.Null()])
|
|
6591
6832
|
});
|
|
6592
6833
|
//#endregion
|
|
6593
|
-
//#region src/schema/transcripts.ts
|
|
6834
|
+
//#region packages/gateway-protocol/src/schema/transcripts.ts
|
|
6594
6835
|
const TRANSCRIPTS_PAGE_DEFAULT = 50;
|
|
6595
6836
|
const TRANSCRIPTS_PAGE_MAX = 100;
|
|
6596
6837
|
const TRANSCRIPTS_LIST_MAX = 200;
|
|
@@ -6781,7 +7022,109 @@ const TranscriptsStatusResultSchema = closedObject({
|
|
|
6781
7022
|
})
|
|
6782
7023
|
});
|
|
6783
7024
|
//#endregion
|
|
6784
|
-
//#region src/
|
|
7025
|
+
//#region packages/gateway-protocol/src/schema/sessions-list.ts
|
|
7026
|
+
const SessionsListParamsSchema = closedObject({
|
|
7027
|
+
/** Maximum rows to return; omitted Gateway RPC calls use a bounded default. */
|
|
7028
|
+
limit: Type.Optional(Type.Integer({ minimum: 1 })),
|
|
7029
|
+
offset: Type.Optional(Type.Integer({ minimum: 0 })),
|
|
7030
|
+
/** Activity age for sortBy: "activity"; otherwise metadata update age. */
|
|
7031
|
+
activeMinutes: Type.Optional(Type.Integer({ minimum: 1 })),
|
|
7032
|
+
/** Epoch ms of the caller's local midnight; returns an hourly activity pulse from that instant. */
|
|
7033
|
+
activityPulseSince: Type.Optional(Type.Number({ minimum: 0 })),
|
|
7034
|
+
/** Epoch ms of the caller's next local midnight; bounds `activityPulse` to the civil day. */
|
|
7035
|
+
activityPulseUntil: Type.Optional(Type.Number({ minimum: 0 })),
|
|
7036
|
+
/** Select sessions with current direct running or queued work before pagination. */
|
|
7037
|
+
activeOnly: Type.Optional(Type.Boolean()),
|
|
7038
|
+
/** Require a real user/channel interaction; excludes synthetic isolated heartbeat rows. */
|
|
7039
|
+
requireLastInteraction: Type.Optional(Type.Boolean()),
|
|
7040
|
+
sortBy: Type.Optional(Type.Union([
|
|
7041
|
+
Type.Literal("updatedAt"),
|
|
7042
|
+
Type.Literal("lastInteractionAt"),
|
|
7043
|
+
Type.Literal("activity")
|
|
7044
|
+
])),
|
|
7045
|
+
includeGlobal: Type.Optional(Type.Boolean()),
|
|
7046
|
+
includeUnknown: Type.Optional(Type.Boolean()),
|
|
7047
|
+
/** Exclude subagent sessions before facets and pagination. */
|
|
7048
|
+
excludeSubagents: Type.Optional(Type.Boolean()),
|
|
7049
|
+
/** Exclude automation roots as well as individual cron runs. */
|
|
7050
|
+
excludeCron: Type.Optional(Type.Boolean()),
|
|
7051
|
+
/** Exclude machine-created probe/system sessions using recorded provenance. */
|
|
7052
|
+
excludeSystem: Type.Optional(Type.Boolean()),
|
|
7053
|
+
/** Limit agent-scoped rows to agents currently present in config. */
|
|
7054
|
+
configuredAgentsOnly: Type.Optional(Type.Boolean()),
|
|
7055
|
+
/**
|
|
7056
|
+
* Read a bounded transcript head projection to derive a title from the first user message.
|
|
7057
|
+
* Use `limit` to bound projection work on large stores.
|
|
7058
|
+
*/
|
|
7059
|
+
includeDerivedTitles: Type.Optional(Type.Boolean()),
|
|
7060
|
+
/**
|
|
7061
|
+
* Read a bounded transcript tail projection for the latest visible user or assistant text.
|
|
7062
|
+
* The returned short preview excludes tool, system, reasoning, and silent rows.
|
|
7063
|
+
*/
|
|
7064
|
+
includeLastMessage: Type.Optional(Type.Boolean()),
|
|
7065
|
+
/** Include the durable Activity recap and its canonical transcript freshness. */
|
|
7066
|
+
includeActivitySummary: Type.Optional(Type.Boolean()),
|
|
7067
|
+
label: Type.Optional(SessionLabelString),
|
|
7068
|
+
/** Exact project registry association stored on the session, not its repository workspace ID. */
|
|
7069
|
+
projectId: Type.Optional(NonEmptyString),
|
|
7070
|
+
/** Exact stored task cwd, falling back to the stored spawned workspace; never resolves paths. */
|
|
7071
|
+
workspaceDir: Type.Optional(NonEmptyString),
|
|
7072
|
+
/** Exact custom sidebar category; an empty string selects ungrouped sessions. */
|
|
7073
|
+
group: Type.Optional(Type.String()),
|
|
7074
|
+
/** Filter by the canonical root-session pin state. */
|
|
7075
|
+
pinned: Type.Optional(Type.Boolean()),
|
|
7076
|
+
/** Limit rows to sessions with an explicitly stored Control UI face preference. */
|
|
7077
|
+
boardFace: Type.Optional(Type.Union([Type.Literal("chat"), Type.Literal("dashboard")])),
|
|
7078
|
+
/** Limit rows by whether a persisted session dashboard exists. */
|
|
7079
|
+
hasBoard: Type.Optional(Type.Boolean()),
|
|
7080
|
+
/** Filter rows by their immutable creator provenance. */
|
|
7081
|
+
creatorId: Type.Optional(NonEmptyString),
|
|
7082
|
+
/** Filter rows by their current assignable owner identity. */
|
|
7083
|
+
ownerId: Type.Optional(NonEmptyString),
|
|
7084
|
+
/** Prepend the authenticated viewer's owned rows to the normal first page. */
|
|
7085
|
+
ownerFirst: Type.Optional(Type.Boolean()),
|
|
7086
|
+
/** Limit rows to sessions owned by or previously prompted by the authenticated viewer. */
|
|
7087
|
+
involvingMe: Type.Optional(Type.Boolean()),
|
|
7088
|
+
/** Qualified human-profile relationship, independent of id-only actor filters. */
|
|
7089
|
+
profileRelation: Type.Optional(closedObject({
|
|
7090
|
+
profileId: NonEmptyString,
|
|
7091
|
+
relationship: Type.Union([
|
|
7092
|
+
Type.Literal("owned"),
|
|
7093
|
+
Type.Literal("created"),
|
|
7094
|
+
Type.Literal("involving")
|
|
7095
|
+
])
|
|
7096
|
+
})),
|
|
7097
|
+
/** Profile association filter, applied to visible retained identities before pagination. */
|
|
7098
|
+
involvingProfileId: Type.Optional(NonEmptyString),
|
|
7099
|
+
/** Include a bounded people facet over visible matching sessions before the profile filter. */
|
|
7100
|
+
includePeople: Type.Optional(Type.Boolean()),
|
|
7101
|
+
/**
|
|
7102
|
+
* Include complete per-profile ownership counts over caller-visible matching sessions before
|
|
7103
|
+
* pagination. Open counts only unarchived sessions; running excludes queued and descendant work.
|
|
7104
|
+
* All list filters still apply; omit agentId for a cross-agent summary.
|
|
7105
|
+
*/
|
|
7106
|
+
includeOwnerSessionCounts: Type.Optional(Type.Boolean()),
|
|
7107
|
+
spawnedBy: Type.Optional(NonEmptyString),
|
|
7108
|
+
agentId: Type.Optional(NonEmptyString),
|
|
7109
|
+
search: Type.Optional(Type.String()),
|
|
7110
|
+
/**
|
|
7111
|
+
* True lists archived sessions; "all" lists archived and active;
|
|
7112
|
+
* false or omitted lists active sessions.
|
|
7113
|
+
*/
|
|
7114
|
+
archived: Type.Optional(Type.Union([Type.Boolean(), Type.Literal("all")]))
|
|
7115
|
+
});
|
|
7116
|
+
/** One canonical profile owner with at least one visible, matching unarchived session. */
|
|
7117
|
+
const SessionOwnerSessionCountSchema = closedObject({
|
|
7118
|
+
profileId: NonEmptyString,
|
|
7119
|
+
open: Type.Integer({ minimum: 1 }),
|
|
7120
|
+
running: Type.Integer({ minimum: 0 })
|
|
7121
|
+
});
|
|
7122
|
+
//#endregion
|
|
7123
|
+
//#region packages/gateway-protocol/src/session-companion-contract.ts
|
|
7124
|
+
/** Ephemeral selected-text context sent with a Side chat question. */
|
|
7125
|
+
const SESSION_COMPANION_SELECTION_CONTEXT_MAX_CHARS = 16e3;
|
|
7126
|
+
//#endregion
|
|
7127
|
+
//#region packages/gateway-protocol/src/update-run-vocabulary.ts
|
|
6785
7128
|
const UPDATE_RUN_PHASES = [
|
|
6786
7129
|
"requested",
|
|
6787
7130
|
"staging",
|
|
@@ -6815,13 +7158,13 @@ const UPDATE_RUN_STEP_STATUSES = [
|
|
|
6815
7158
|
"skipped"
|
|
6816
7159
|
];
|
|
6817
7160
|
//#endregion
|
|
6818
|
-
//#region src/schema/update-runs.ts
|
|
7161
|
+
//#region packages/gateway-protocol/src/schema/update-runs.ts
|
|
6819
7162
|
const text = Type.String({ maxLength: 1024 });
|
|
6820
7163
|
const timestamp = Type.Integer({
|
|
6821
7164
|
minimum: 0,
|
|
6822
7165
|
maximum: Number.MAX_SAFE_INTEGER
|
|
6823
7166
|
});
|
|
6824
|
-
const runId = Type.String({ pattern: "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$" });
|
|
7167
|
+
const runId = Type.String({ pattern: "^(ocm:[a-zA-Z0-9][a-zA-Z0-9._-]{0,127}|[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$" });
|
|
6825
7168
|
const phase = Type.Enum(UPDATE_RUN_PHASES);
|
|
6826
7169
|
const status = Type.Enum(UPDATE_RUN_STATUSES);
|
|
6827
7170
|
const version = closedObject({
|
|
@@ -6855,6 +7198,42 @@ const snapshotBytes = Type.Integer({
|
|
|
6855
7198
|
minimum: 0,
|
|
6856
7199
|
maximum: Number.MAX_SAFE_INTEGER
|
|
6857
7200
|
});
|
|
7201
|
+
const admissionCheck = closedObject({
|
|
7202
|
+
name: text,
|
|
7203
|
+
status: Type.Enum([
|
|
7204
|
+
"ok",
|
|
7205
|
+
"warn",
|
|
7206
|
+
"refuse"
|
|
7207
|
+
]),
|
|
7208
|
+
detail: Type.Optional(text)
|
|
7209
|
+
});
|
|
7210
|
+
const admissionChecks = Type.Array(admissionCheck, { maxItems: 32 });
|
|
7211
|
+
const admission = closedObject({
|
|
7212
|
+
owner: Type.Enum(["candidate", "installed"]),
|
|
7213
|
+
protocol: Type.Optional(Type.Literal(1)),
|
|
7214
|
+
candidateVersion: Type.Optional(text),
|
|
7215
|
+
checks: Type.Optional(admissionChecks),
|
|
7216
|
+
fallbackReason: Type.Optional(text)
|
|
7217
|
+
});
|
|
7218
|
+
const candidateAdmission = closedObject({
|
|
7219
|
+
protocol: Type.Literal(1),
|
|
7220
|
+
verdict: Type.Enum(["admit", "refuse"]),
|
|
7221
|
+
reasons: Type.Array(closedObject({
|
|
7222
|
+
code: text,
|
|
7223
|
+
message: text,
|
|
7224
|
+
nextAction: Type.Optional(text)
|
|
7225
|
+
}), { maxItems: 32 }),
|
|
7226
|
+
warnings: Type.Array(closedObject({
|
|
7227
|
+
code: text,
|
|
7228
|
+
message: text
|
|
7229
|
+
}), { maxItems: 32 }),
|
|
7230
|
+
facts: closedObject({
|
|
7231
|
+
candidateVersion: text,
|
|
7232
|
+
installedVersion: Type.Union([text, Type.Null()]),
|
|
7233
|
+
nodeEngines: Type.Optional(text),
|
|
7234
|
+
checks: admissionChecks
|
|
7235
|
+
})
|
|
7236
|
+
});
|
|
6858
7237
|
const destinationPath = Type.String({ maxLength: 240 });
|
|
6859
7238
|
const nullableDestinationPath = Type.Union([destinationPath, Type.Null()]);
|
|
6860
7239
|
/** Wire projection of the canonical update ledger record. */
|
|
@@ -6866,7 +7245,10 @@ const UpdateRunRecordSchema = closedObject({
|
|
|
6866
7245
|
phase,
|
|
6867
7246
|
status,
|
|
6868
7247
|
reason: Type.Union([text, Type.Null()]),
|
|
7248
|
+
admission: Type.Optional(admission),
|
|
6869
7249
|
origin: closedObject({
|
|
7250
|
+
admission: Type.Optional(admission),
|
|
7251
|
+
candidateAdmission: Type.Optional(candidateAdmission),
|
|
6870
7252
|
driver: Type.Optional(driver),
|
|
6871
7253
|
previousDrivers: Type.Optional(Type.Array(driver, { maxItems: 7 })),
|
|
6872
7254
|
requester: Type.Optional(closedObject({
|
|
@@ -6897,7 +7279,8 @@ const UpdateRunRecordSchema = closedObject({
|
|
|
6897
7279
|
"npm-global",
|
|
6898
7280
|
"pnpm-global",
|
|
6899
7281
|
"bun-global",
|
|
6900
|
-
"managed-service"
|
|
7282
|
+
"managed-service",
|
|
7283
|
+
"ocm"
|
|
6901
7284
|
]), Type.Null()]))
|
|
6902
7285
|
}),
|
|
6903
7286
|
before: version,
|
|
@@ -7067,7 +7450,7 @@ const UpdateRunResultSchema = closedObject({
|
|
|
7067
7450
|
sentinel: Type.Optional(Type.Unknown())
|
|
7068
7451
|
});
|
|
7069
7452
|
//#endregion
|
|
7070
|
-
//#region src/schema/config.ts
|
|
7453
|
+
//#region packages/gateway-protocol/src/schema/config.ts
|
|
7071
7454
|
/**
|
|
7072
7455
|
* Gateway config and update protocol schemas.
|
|
7073
7456
|
*
|
|
@@ -7132,6 +7515,8 @@ const UpdateAvailableSchema = closedObject({
|
|
|
7132
7515
|
});
|
|
7133
7516
|
const GitInstallMetadataProperties = {
|
|
7134
7517
|
currentSha: Type.Optional(NonEmptyString),
|
|
7518
|
+
upstreamSha: Type.Optional(NonEmptyString),
|
|
7519
|
+
repositoryUrl: Type.Optional(NonEmptyString),
|
|
7135
7520
|
commitAtMs: Type.Optional(Type.Integer({ minimum: 0 })),
|
|
7136
7521
|
installedAtMs: Type.Optional(Type.Integer({ minimum: 0 }))
|
|
7137
7522
|
};
|
|
@@ -7361,7 +7746,7 @@ const ConfigSchemaLookupResultSchema = closedObject({
|
|
|
7361
7746
|
children: Type.Array(ConfigSchemaLookupChildSchema)
|
|
7362
7747
|
});
|
|
7363
7748
|
//#endregion
|
|
7364
|
-
//#region src/schema/gateway-suspend.ts
|
|
7749
|
+
//#region packages/gateway-protocol/src/schema/gateway-suspend.ts
|
|
7365
7750
|
const SuspensionTokenSchema = Type.String({
|
|
7366
7751
|
minLength: 1,
|
|
7367
7752
|
maxLength: 128,
|
|
@@ -7380,19 +7765,6 @@ const GatewaySuspensionSchema = closedObject({ phase: Type.Union([
|
|
|
7380
7765
|
Type.Literal("draining"),
|
|
7381
7766
|
Type.Literal("prepared")
|
|
7382
7767
|
]) });
|
|
7383
|
-
const GatewaySuspendTaskBlockerSchema = closedObject({
|
|
7384
|
-
taskId: Type.String(),
|
|
7385
|
-
status: Type.Literal("running"),
|
|
7386
|
-
runtime: Type.Union([
|
|
7387
|
-
Type.Literal("subagent"),
|
|
7388
|
-
Type.Literal("acp"),
|
|
7389
|
-
Type.Literal("cli"),
|
|
7390
|
-
Type.Literal("cron")
|
|
7391
|
-
]),
|
|
7392
|
-
runId: Type.Optional(Type.String()),
|
|
7393
|
-
label: Type.Optional(Type.String()),
|
|
7394
|
-
title: Type.Optional(Type.String())
|
|
7395
|
-
});
|
|
7396
7768
|
const GatewaySuspendBlockerSchema = closedObject({
|
|
7397
7769
|
kind: Type.Union([
|
|
7398
7770
|
Type.Literal("queue"),
|
|
@@ -7400,7 +7772,9 @@ const GatewaySuspendBlockerSchema = closedObject({
|
|
|
7400
7772
|
Type.Literal("embedded-run"),
|
|
7401
7773
|
Type.Literal("background-exec"),
|
|
7402
7774
|
Type.Literal("cron-run"),
|
|
7403
|
-
Type.Literal("
|
|
7775
|
+
Type.Literal("agent-run"),
|
|
7776
|
+
Type.Literal("acp-run"),
|
|
7777
|
+
Type.Literal("media-generation"),
|
|
7404
7778
|
Type.Literal("root-request"),
|
|
7405
7779
|
Type.Literal("session-admission"),
|
|
7406
7780
|
Type.Literal("session-mutation"),
|
|
@@ -7410,8 +7784,7 @@ const GatewaySuspendBlockerSchema = closedObject({
|
|
|
7410
7784
|
Type.Literal("terminal-session")
|
|
7411
7785
|
]),
|
|
7412
7786
|
count: CountSchema,
|
|
7413
|
-
message: Type.String()
|
|
7414
|
-
task: Type.Optional(GatewaySuspendTaskBlockerSchema)
|
|
7787
|
+
message: Type.String()
|
|
7415
7788
|
});
|
|
7416
7789
|
const GatewaySuspendPrepareParamsSchema = closedObject({
|
|
7417
7790
|
requestId: SuspensionTokenSchema,
|
|
@@ -7448,10 +7821,19 @@ const GatewaySuspendPrepareResultSchema = Type.Union([
|
|
|
7448
7821
|
GatewaySuspendPrepareDrainingResultSchema,
|
|
7449
7822
|
GatewaySuspendPrepareReadyResultSchema
|
|
7450
7823
|
]);
|
|
7451
|
-
const GatewaySuspendStatusParamsSchema = closedObject({
|
|
7824
|
+
const GatewaySuspendStatusParamsSchema = closedObject({
|
|
7825
|
+
suspensionId: SuspensionTokenSchema,
|
|
7826
|
+
includeLifecycle: Type.Optional(Type.Boolean())
|
|
7827
|
+
});
|
|
7452
7828
|
const GatewaySuspendStatusRunningResultSchema = closedObject({ status: Type.Literal("running") });
|
|
7453
7829
|
const GatewaySuspendStatusDrainingResultSchema = closedObject({
|
|
7454
7830
|
status: Type.Literal("draining"),
|
|
7831
|
+
ownerId: Type.Optional(SuspensionTokenSchema),
|
|
7832
|
+
phase: Type.Optional(Type.Union([
|
|
7833
|
+
Type.Literal("draining"),
|
|
7834
|
+
Type.Literal("interrupting"),
|
|
7835
|
+
Type.Literal("exiting")
|
|
7836
|
+
])),
|
|
7455
7837
|
expiresAtMs: CountSchema,
|
|
7456
7838
|
retryAfterMs: CountSchema,
|
|
7457
7839
|
activeCount: CountSchema,
|
|
@@ -7460,6 +7842,7 @@ const GatewaySuspendStatusDrainingResultSchema = closedObject({
|
|
|
7460
7842
|
});
|
|
7461
7843
|
const GatewaySuspendStatusReadyResultSchema = closedObject({
|
|
7462
7844
|
status: Type.Literal("ready"),
|
|
7845
|
+
ownerId: Type.Optional(SuspensionTokenSchema),
|
|
7463
7846
|
expiresAtMs: CountSchema,
|
|
7464
7847
|
writeCustody: Type.Optional(GatewayWriteCustodySchema)
|
|
7465
7848
|
});
|
|
@@ -7468,7 +7851,7 @@ const GatewaySuspendStatusResultSchema = Type.Union([
|
|
|
7468
7851
|
GatewaySuspendStatusDrainingResultSchema,
|
|
7469
7852
|
GatewaySuspendStatusReadyResultSchema
|
|
7470
7853
|
]);
|
|
7471
|
-
const GatewaySuspendResumeParamsSchema =
|
|
7854
|
+
const GatewaySuspendResumeParamsSchema = closedObject({ suspensionId: SuspensionTokenSchema });
|
|
7472
7855
|
const GatewaySuspendResumeResultSchema = closedObject({
|
|
7473
7856
|
ok: Type.Literal(true),
|
|
7474
7857
|
status: Type.Literal("running"),
|
|
@@ -7488,7 +7871,7 @@ const GatewaySuspendHandoffResultSchema = closedObject({
|
|
|
7488
7871
|
expiresAtMs: CountSchema
|
|
7489
7872
|
});
|
|
7490
7873
|
//#endregion
|
|
7491
|
-
//#region src/schema/runtime-vitals.ts
|
|
7874
|
+
//#region packages/gateway-protocol/src/schema/runtime-vitals.ts
|
|
7492
7875
|
/** Process observations shared by health snapshots and host resource polling. */
|
|
7493
7876
|
const GatewayEventLoopHealthSchema = closedObject({
|
|
7494
7877
|
degraded: Type.Boolean(),
|
|
@@ -7524,7 +7907,7 @@ const GatewayProcessMemorySchema = closedObject({
|
|
|
7524
7907
|
arrayBuffersBytes: Type.Optional(Type.Integer({ minimum: 0 }))
|
|
7525
7908
|
});
|
|
7526
7909
|
//#endregion
|
|
7527
|
-
//#region src/schema/snapshot.ts
|
|
7910
|
+
//#region packages/gateway-protocol/src/schema/snapshot.ts
|
|
7528
7911
|
/**
|
|
7529
7912
|
* Gateway state snapshot schemas.
|
|
7530
7913
|
*
|
|
@@ -7533,6 +7916,8 @@ const GatewayProcessMemorySchema = closedObject({
|
|
|
7533
7916
|
*/
|
|
7534
7917
|
/** One gateway-visible presence record for a node/client/runtime. */
|
|
7535
7918
|
const PresenceEntrySchema = closedObject({
|
|
7919
|
+
/** Gateway-assigned id for this connection; changes after reconnect. */
|
|
7920
|
+
connectionId: Type.Optional(NonEmptyString),
|
|
7536
7921
|
host: Type.Optional(NonEmptyString),
|
|
7537
7922
|
clientId: Type.Optional(NonEmptyString),
|
|
7538
7923
|
ip: Type.Optional(NonEmptyString),
|
|
@@ -7551,6 +7936,8 @@ const PresenceEntrySchema = closedObject({
|
|
|
7551
7936
|
/** Server timestamps for the person's continuous online interval and last accepted activity. */
|
|
7552
7937
|
onlineSince: Type.Optional(Type.Integer({ minimum: 0 })),
|
|
7553
7938
|
lastActivityAt: Type.Optional(Type.Integer({ minimum: 0 })),
|
|
7939
|
+
/** Latest accepted OpenClaw interaction on this connection, independent of person timing. */
|
|
7940
|
+
connectionLastActivityAt: Type.Optional(Type.Integer({ minimum: 0 })),
|
|
7554
7941
|
deviceId: Type.Optional(NonEmptyString),
|
|
7555
7942
|
roles: Type.Optional(Type.Array(NonEmptyString)),
|
|
7556
7943
|
scopes: Type.Optional(Type.Array(NonEmptyString)),
|
|
@@ -7651,6 +8038,10 @@ const HealthSnapshotSchema = closedObject({
|
|
|
7651
8038
|
detail: Type.Optional(Type.String())
|
|
7652
8039
|
})),
|
|
7653
8040
|
configReload: Type.Optional(closedObject({ hotReloadStatus: Type.Union([Type.Literal("active"), Type.Literal("disabled")]) })),
|
|
8041
|
+
childRuntime: Type.Optional(closedObject({
|
|
8042
|
+
execPath: Type.String(),
|
|
8043
|
+
available: Type.Boolean()
|
|
8044
|
+
})),
|
|
7654
8045
|
channels: Type.Optional(Type.Record(Type.String(), Type.Unknown())),
|
|
7655
8046
|
channelOrder: Type.Optional(Type.Array(Type.String())),
|
|
7656
8047
|
channelLabels: Type.Optional(Type.Record(Type.String(), Type.String())),
|
|
@@ -7713,7 +8104,7 @@ const SnapshotSchema = closedObject({
|
|
|
7713
8104
|
updateSchedule: Type.Optional(UpdateScheduleStateSchema)
|
|
7714
8105
|
});
|
|
7715
8106
|
//#endregion
|
|
7716
|
-
//#region src/schema/frames.ts
|
|
8107
|
+
//#region packages/gateway-protocol/src/schema/frames.ts
|
|
7717
8108
|
/**
|
|
7718
8109
|
* Top-level gateway frame schemas.
|
|
7719
8110
|
*
|
|
@@ -7890,7 +8281,7 @@ const GatewayFrameSchema = Type.Union([
|
|
|
7890
8281
|
EventFrameSchema
|
|
7891
8282
|
], { discriminator: "type" });
|
|
7892
8283
|
//#endregion
|
|
7893
|
-
//#region src/schema/human-mentions.ts
|
|
8284
|
+
//#region packages/gateway-protocol/src/schema/human-mentions.ts
|
|
7894
8285
|
const MAX_HUMAN_MENTIONS = 10;
|
|
7895
8286
|
const MAX_MENTIONABLE_USERS = 100;
|
|
7896
8287
|
const MENTION_INBOX_MAX_ITEMS = 100;
|
|
@@ -7977,7 +8368,7 @@ const MentionsListResultSchema = closedObject({
|
|
|
7977
8368
|
});
|
|
7978
8369
|
const MentionsChangedEventSchema = closedObject(MentionInboxVersionProperties);
|
|
7979
8370
|
//#endregion
|
|
7980
|
-
//#region
|
|
8371
|
+
//#region packages/normalization-core/src/utf16-slice.ts
|
|
7981
8372
|
function isHighSurrogate(codeUnit) {
|
|
7982
8373
|
return codeUnit >= 55296 && codeUnit <= 56319;
|
|
7983
8374
|
}
|
|
@@ -8005,7 +8396,7 @@ function truncateUtf16Safe(input, maxLen) {
|
|
|
8005
8396
|
return sliceUtf16Safe(input, 0, limit);
|
|
8006
8397
|
}
|
|
8007
8398
|
//#endregion
|
|
8008
|
-
//#region src/chat-work-context.ts
|
|
8399
|
+
//#region packages/gateway-protocol/src/chat-work-context.ts
|
|
8009
8400
|
/** Bounded, untrusted send-time reference data; never routing or authorization. */
|
|
8010
8401
|
const CHAT_WORK_CONTEXT_LIMITS = {
|
|
8011
8402
|
page: 64,
|
|
@@ -8018,11 +8409,11 @@ const CHAT_WORK_CONTEXT_LIMITS = {
|
|
|
8018
8409
|
selection: 640
|
|
8019
8410
|
};
|
|
8020
8411
|
//#endregion
|
|
8021
|
-
//#region src/schema/chat-history-constants.ts
|
|
8412
|
+
//#region packages/gateway-protocol/src/schema/chat-history-constants.ts
|
|
8022
8413
|
/** Largest history page accepted by the Gateway wire contract. */
|
|
8023
8414
|
const CHAT_HISTORY_MAX_ENTRIES = 1e3;
|
|
8024
8415
|
//#endregion
|
|
8025
|
-
//#region src/schema/logs-chat.ts
|
|
8416
|
+
//#region packages/gateway-protocol/src/schema/logs-chat.ts
|
|
8026
8417
|
/** Cursor-based request for the gateway log tail endpoint. */
|
|
8027
8418
|
const LogsTailParamsSchema = closedObject({
|
|
8028
8419
|
cursor: Type.Optional(Type.Integer({ minimum: 0 })),
|
|
@@ -8094,9 +8485,11 @@ const ChatPendingInputsPageSchema = closedObject({
|
|
|
8094
8485
|
"queued",
|
|
8095
8486
|
"cancelled",
|
|
8096
8487
|
"interrupted"
|
|
8097
|
-
] })
|
|
8488
|
+
] }),
|
|
8489
|
+
queued: Type.Optional(Type.Literal(true))
|
|
8098
8490
|
}), { maxItems: 20 }),
|
|
8099
8491
|
total: Type.Integer({ minimum: 0 }),
|
|
8492
|
+
queuedCount: Type.Optional(Type.Integer({ minimum: 0 })),
|
|
8100
8493
|
nextBefore: Type.Optional(Type.Integer({ minimum: 1 }))
|
|
8101
8494
|
});
|
|
8102
8495
|
/** Exact accepted-input custody, independent of display pagination and message identity. */
|
|
@@ -8105,7 +8498,9 @@ const ChatInputReceiptsSchema = Type.Array(Type.Union([closedObject({
|
|
|
8105
8498
|
minLength: 1,
|
|
8106
8499
|
maxLength: 256
|
|
8107
8500
|
}),
|
|
8108
|
-
state: Type.Literal("pending")
|
|
8501
|
+
state: Type.Literal("pending"),
|
|
8502
|
+
queued: Type.Optional(Type.Literal(true)),
|
|
8503
|
+
cancelled: Type.Optional(Type.Literal(true))
|
|
8109
8504
|
}), closedObject({
|
|
8110
8505
|
runId: Type.String({
|
|
8111
8506
|
minLength: 1,
|
|
@@ -8135,7 +8530,8 @@ const AgentActivityItemSchema = closedObject({
|
|
|
8135
8530
|
Type.Literal("running"),
|
|
8136
8531
|
Type.Literal("completed"),
|
|
8137
8532
|
Type.Literal("failed"),
|
|
8138
|
-
Type.Literal("blocked")
|
|
8533
|
+
Type.Literal("blocked"),
|
|
8534
|
+
Type.Literal("skipped")
|
|
8139
8535
|
])),
|
|
8140
8536
|
name: Type.Optional(Type.String()),
|
|
8141
8537
|
meta: Type.Optional(Type.String()),
|
|
@@ -8320,7 +8716,8 @@ const ChatAbortParamsSchema = closedObject({
|
|
|
8320
8716
|
sessionKey: NonEmptyString,
|
|
8321
8717
|
agentId: Type.Optional(NonEmptyString),
|
|
8322
8718
|
runId: Type.Optional(NonEmptyString),
|
|
8323
|
-
preserveSideRuns: Type.Optional(Type.Boolean())
|
|
8719
|
+
preserveSideRuns: Type.Optional(Type.Boolean()),
|
|
8720
|
+
discardPendingInput: Type.Optional(Type.Boolean())
|
|
8324
8721
|
});
|
|
8325
8722
|
/** Inserts an operator-visible synthetic message into an existing chat transcript. */
|
|
8326
8723
|
const ChatInjectParamsSchema = closedObject({
|
|
@@ -8343,10 +8740,12 @@ const ChatEventErrorKindSchema = Type.Union([
|
|
|
8343
8740
|
Type.Literal("timeout"),
|
|
8344
8741
|
Type.Literal("rate_limit"),
|
|
8345
8742
|
Type.Literal("context_length"),
|
|
8743
|
+
Type.Literal("state_contention"),
|
|
8346
8744
|
Type.Literal("unknown")
|
|
8347
8745
|
]);
|
|
8348
8746
|
/** Coarse startup stages shown while a run has not produced visible activity yet. */
|
|
8349
8747
|
const ChatRunStartupPhaseSchema = Type.Union([
|
|
8748
|
+
Type.Literal("waiting_for_state"),
|
|
8350
8749
|
Type.Literal("preparing_workspace"),
|
|
8351
8750
|
Type.Literal("naming_worktree"),
|
|
8352
8751
|
Type.Literal("creating_worktree"),
|
|
@@ -8450,7 +8849,7 @@ const ChatEventSchema = Type.Union([
|
|
|
8450
8849
|
ChatErrorEventSchema
|
|
8451
8850
|
]);
|
|
8452
8851
|
//#endregion
|
|
8453
|
-
//#region src/schema/sessions-recover.ts
|
|
8852
|
+
//#region packages/gateway-protocol/src/schema/sessions-recover.ts
|
|
8454
8853
|
/** Recovers one restart-tombstoned session into a fresh same-agent session. */
|
|
8455
8854
|
const SessionsRecoverParamsSchema = closedObject({
|
|
8456
8855
|
key: NonEmptyString,
|
|
@@ -8470,7 +8869,7 @@ const SessionsRecoverResultSchema = closedObject({
|
|
|
8470
8869
|
continuation: SessionRecoveryContinuationOutcomeSchema
|
|
8471
8870
|
});
|
|
8472
8871
|
//#endregion
|
|
8473
|
-
//#region src/schema/sessions-create.ts
|
|
8872
|
+
//#region packages/gateway-protocol/src/schema/sessions-create.ts
|
|
8474
8873
|
const SESSION_CREATE_RETRY_WINDOW_MS = 24e4;
|
|
8475
8874
|
const SESSION_CREATE_IDEMPOTENCY_RETENTION_MS = 3e5;
|
|
8476
8875
|
/** Creates or adopts a session with optional model, thinking, fast mode, label, and parent linkage. */
|
|
@@ -8544,7 +8943,7 @@ const SessionsCreateParamsSchema = closedObject({
|
|
|
8544
8943
|
}))
|
|
8545
8944
|
});
|
|
8546
8945
|
//#endregion
|
|
8547
|
-
//#region src/schema/sessions-involvement.ts
|
|
8946
|
+
//#region packages/gateway-protocol/src/schema/sessions-involvement.ts
|
|
8548
8947
|
/** Changes only the signed-in person's Involving me list, never session access. */
|
|
8549
8948
|
const SessionsSetInvolvementParamsSchema = closedObject({
|
|
8550
8949
|
key: NonEmptyString,
|
|
@@ -8553,7 +8952,7 @@ const SessionsSetInvolvementParamsSchema = closedObject({
|
|
|
8553
8952
|
hidden: Type.Boolean()
|
|
8554
8953
|
});
|
|
8555
8954
|
//#endregion
|
|
8556
|
-
//#region src/schema/sessions-storage.ts
|
|
8955
|
+
//#region packages/gateway-protocol/src/schema/sessions-storage.ts
|
|
8557
8956
|
const SessionsStorageParamsSchema = closedObject({});
|
|
8558
8957
|
const SessionsStorageStatusResultSchema = closedObject({
|
|
8559
8958
|
agents: Type.Array(closedObject({
|
|
@@ -8576,7 +8975,7 @@ const SessionsStorageStatusResultSchema = closedObject({
|
|
|
8576
8975
|
})
|
|
8577
8976
|
});
|
|
8578
8977
|
//#endregion
|
|
8579
|
-
//#region src/schema/sessions-title.ts
|
|
8978
|
+
//#region packages/gateway-protocol/src/schema/sessions-title.ts
|
|
8580
8979
|
/** Optional creation-only inference; never creates or renames a session. */
|
|
8581
8980
|
const SessionsTitlePrepareParamsSchema = closedObject({
|
|
8582
8981
|
agentId: NonEmptyString,
|
|
@@ -8590,7 +8989,7 @@ const SessionsTitlePrepareResultSchema = closedObject({ title: Type.Union([Type.
|
|
|
8590
8989
|
maxLength: 60
|
|
8591
8990
|
}), Type.Null()]) });
|
|
8592
8991
|
//#endregion
|
|
8593
|
-
//#region src/schema/sessions-goal.ts
|
|
8992
|
+
//#region packages/gateway-protocol/src/schema/sessions-goal.ts
|
|
8594
8993
|
const SessionGoalSchema = closedObject({
|
|
8595
8994
|
schemaVersion: Type.Literal(1),
|
|
8596
8995
|
id: NonEmptyString,
|
|
@@ -8669,89 +9068,7 @@ const SessionsGoalMutationResultSchema = closedObject({
|
|
|
8669
9068
|
])
|
|
8670
9069
|
});
|
|
8671
9070
|
//#endregion
|
|
8672
|
-
//#region src/schema/sessions-
|
|
8673
|
-
const SessionsListParamsSchema = closedObject({
|
|
8674
|
-
/** Maximum rows to return; omitted Gateway RPC calls use a bounded default. */
|
|
8675
|
-
limit: Type.Optional(Type.Integer({ minimum: 1 })),
|
|
8676
|
-
offset: Type.Optional(Type.Integer({ minimum: 0 })),
|
|
8677
|
-
/** Activity age for sortBy: "activity"; otherwise metadata update age. */
|
|
8678
|
-
activeMinutes: Type.Optional(Type.Integer({ minimum: 1 })),
|
|
8679
|
-
/** Select sessions with current direct running or queued work before pagination. */
|
|
8680
|
-
activeOnly: Type.Optional(Type.Boolean()),
|
|
8681
|
-
/** Require a real user/channel interaction; excludes synthetic isolated heartbeat rows. */
|
|
8682
|
-
requireLastInteraction: Type.Optional(Type.Boolean()),
|
|
8683
|
-
sortBy: Type.Optional(Type.Union([
|
|
8684
|
-
Type.Literal("updatedAt"),
|
|
8685
|
-
Type.Literal("lastInteractionAt"),
|
|
8686
|
-
Type.Literal("activity")
|
|
8687
|
-
])),
|
|
8688
|
-
includeGlobal: Type.Optional(Type.Boolean()),
|
|
8689
|
-
includeUnknown: Type.Optional(Type.Boolean()),
|
|
8690
|
-
/** Exclude subagent sessions before facets and pagination. */
|
|
8691
|
-
excludeSubagents: Type.Optional(Type.Boolean()),
|
|
8692
|
-
/** Exclude automation roots as well as individual cron runs. */
|
|
8693
|
-
excludeCron: Type.Optional(Type.Boolean()),
|
|
8694
|
-
/** Exclude machine-created probe/system sessions using recorded provenance. */
|
|
8695
|
-
excludeSystem: Type.Optional(Type.Boolean()),
|
|
8696
|
-
/** Limit agent-scoped rows to agents currently present in config. */
|
|
8697
|
-
configuredAgentsOnly: Type.Optional(Type.Boolean()),
|
|
8698
|
-
/**
|
|
8699
|
-
* Read a bounded transcript head projection to derive a title from the first user message.
|
|
8700
|
-
* Use `limit` to bound projection work on large stores.
|
|
8701
|
-
*/
|
|
8702
|
-
includeDerivedTitles: Type.Optional(Type.Boolean()),
|
|
8703
|
-
/**
|
|
8704
|
-
* Read a bounded transcript tail projection for the latest visible user or assistant text.
|
|
8705
|
-
* The returned short preview excludes tool, system, reasoning, and silent rows.
|
|
8706
|
-
*/
|
|
8707
|
-
includeLastMessage: Type.Optional(Type.Boolean()),
|
|
8708
|
-
/** Include the durable Activity recap and its canonical transcript freshness. */
|
|
8709
|
-
includeActivitySummary: Type.Optional(Type.Boolean()),
|
|
8710
|
-
label: Type.Optional(SessionLabelString),
|
|
8711
|
-
/** Exact project registry association stored on the session, not its repository workspace ID. */
|
|
8712
|
-
projectId: Type.Optional(NonEmptyString),
|
|
8713
|
-
/** Exact stored task cwd, falling back to the stored spawned workspace; never resolves paths. */
|
|
8714
|
-
workspaceDir: Type.Optional(NonEmptyString),
|
|
8715
|
-
/** Exact custom sidebar category; an empty string selects ungrouped sessions. */
|
|
8716
|
-
group: Type.Optional(Type.String()),
|
|
8717
|
-
/** Filter by the canonical root-session pin state. */
|
|
8718
|
-
pinned: Type.Optional(Type.Boolean()),
|
|
8719
|
-
/** Limit rows to sessions with an explicitly stored Control UI face preference. */
|
|
8720
|
-
boardFace: Type.Optional(Type.Union([Type.Literal("chat"), Type.Literal("dashboard")])),
|
|
8721
|
-
/** Limit rows by whether a persisted session dashboard exists. */
|
|
8722
|
-
hasBoard: Type.Optional(Type.Boolean()),
|
|
8723
|
-
/** Filter rows by their immutable creator provenance. */
|
|
8724
|
-
creatorId: Type.Optional(NonEmptyString),
|
|
8725
|
-
/** Filter rows by their current assignable owner identity. */
|
|
8726
|
-
ownerId: Type.Optional(NonEmptyString),
|
|
8727
|
-
/** Prepend the authenticated viewer's owned rows to the normal first page. */
|
|
8728
|
-
ownerFirst: Type.Optional(Type.Boolean()),
|
|
8729
|
-
/** Limit rows to sessions owned by or previously prompted by the authenticated viewer. */
|
|
8730
|
-
involvingMe: Type.Optional(Type.Boolean()),
|
|
8731
|
-
/** Qualified human-profile relationship, independent of id-only actor filters. */
|
|
8732
|
-
profileRelation: Type.Optional(closedObject({
|
|
8733
|
-
profileId: NonEmptyString,
|
|
8734
|
-
relationship: Type.Union([
|
|
8735
|
-
Type.Literal("owned"),
|
|
8736
|
-
Type.Literal("created"),
|
|
8737
|
-
Type.Literal("involving")
|
|
8738
|
-
])
|
|
8739
|
-
})),
|
|
8740
|
-
/** Profile association filter, applied to visible retained identities before pagination. */
|
|
8741
|
-
involvingProfileId: Type.Optional(NonEmptyString),
|
|
8742
|
-
/** Include a bounded people facet over visible matching sessions before the profile filter. */
|
|
8743
|
-
includePeople: Type.Optional(Type.Boolean()),
|
|
8744
|
-
spawnedBy: Type.Optional(NonEmptyString),
|
|
8745
|
-
agentId: Type.Optional(NonEmptyString),
|
|
8746
|
-
search: Type.Optional(Type.String()),
|
|
8747
|
-
/**
|
|
8748
|
-
* True lists archived sessions; "all" lists archived and active;
|
|
8749
|
-
* false or omitted lists active sessions.
|
|
8750
|
-
*/
|
|
8751
|
-
archived: Type.Optional(Type.Union([Type.Boolean(), Type.Literal("all")]))
|
|
8752
|
-
});
|
|
8753
|
-
//#endregion
|
|
8754
|
-
//#region src/schema/sessions-delete.ts
|
|
9071
|
+
//#region packages/gateway-protocol/src/schema/sessions-delete.ts
|
|
8755
9072
|
/** Deletes a session record and optionally its transcript. */
|
|
8756
9073
|
const SessionsDeleteParamsSchema = closedObject({
|
|
8757
9074
|
key: NonEmptyString,
|
|
@@ -8791,7 +9108,7 @@ const SessionsDeleteResultSchema = closedObject({
|
|
|
8791
9108
|
worktreePreserved: Type.Optional(PreservedSessionWorktreeSchema)
|
|
8792
9109
|
});
|
|
8793
9110
|
//#endregion
|
|
8794
|
-
//#region src/schema/sessions-patch.ts
|
|
9111
|
+
//#region packages/gateway-protocol/src/schema/sessions-patch.ts
|
|
8795
9112
|
const SESSIONS_PATCH_MANY_MAX_TARGETS = 100;
|
|
8796
9113
|
const ExpectedMarkedUnreadAt = Type.Optional(Type.Union([Type.Number({ minimum: 0 }), Type.Null()], { description: "Apply an automatic unread=false acknowledgement only if the explicit unread marker still matches; null asserts no marker." }));
|
|
8797
9114
|
const SessionsPatchMutationProperties = {
|
|
@@ -8911,7 +9228,7 @@ const SessionsPatchManyResultSchema = closedObject({ outcomes: Type.Array(Type.U
|
|
|
8911
9228
|
error: ErrorShapeSchema
|
|
8912
9229
|
})])) });
|
|
8913
9230
|
//#endregion
|
|
8914
|
-
//#region src/schema/sessions-search.ts
|
|
9231
|
+
//#region packages/gateway-protocol/src/schema/sessions-search.ts
|
|
8915
9232
|
/** Searches explicit agent keys, or the complete visible roster selected by scope. */
|
|
8916
9233
|
const SessionsSearchParamsSchema = Object.assign(closedObject({
|
|
8917
9234
|
agentId: Type.Optional(NonEmptyString),
|
|
@@ -8980,7 +9297,7 @@ const SessionsSearchResultSchema = closedObject({
|
|
|
8980
9297
|
truncated: Type.Optional(Type.Boolean())
|
|
8981
9298
|
});
|
|
8982
9299
|
//#endregion
|
|
8983
|
-
//#region src/schema/sessions.ts
|
|
9300
|
+
//#region packages/gateway-protocol/src/schema/sessions.ts
|
|
8984
9301
|
const SESSION_OBSERVER_HEALTH_VALUES = [
|
|
8985
9302
|
"on-track",
|
|
8986
9303
|
"grinding",
|
|
@@ -9048,7 +9365,12 @@ const SessionsCompanionAskParamsSchema = closedObject({
|
|
|
9048
9365
|
question: Type.String({
|
|
9049
9366
|
minLength: 1,
|
|
9050
9367
|
maxLength: 400
|
|
9051
|
-
})
|
|
9368
|
+
}),
|
|
9369
|
+
selectionContext: Type.Optional(Type.String({
|
|
9370
|
+
minLength: 1,
|
|
9371
|
+
maxLength: SESSION_COMPANION_SELECTION_CONTEXT_MAX_CHARS
|
|
9372
|
+
})),
|
|
9373
|
+
attachments: Type.Optional(ChatAttachmentsSchema)
|
|
9052
9374
|
});
|
|
9053
9375
|
/** Companion answer returned only to the requesting operator. */
|
|
9054
9376
|
const SessionsCompanionAskResultSchema = closedObject({
|
|
@@ -9066,10 +9388,7 @@ const SessionsCompanionStateParamsSchema = closedObject({
|
|
|
9066
9388
|
/** Current bounded exchanges for one session companion thread. */
|
|
9067
9389
|
const SessionsCompanionStateResultSchema = closedObject({ exchanges: Type.Array(SessionCompanionExchangeSchema, { maxItems: 24 }) });
|
|
9068
9390
|
/** Selects the in-memory companion thread to clear. */
|
|
9069
|
-
const SessionsCompanionResetParamsSchema = closedObject(
|
|
9070
|
-
sessionKey: NonEmptyString,
|
|
9071
|
-
agentId: Type.Optional(NonEmptyString)
|
|
9072
|
-
});
|
|
9391
|
+
const SessionsCompanionResetParamsSchema = closedObject(SessionsCompanionStateParamsSchema.properties);
|
|
9073
9392
|
/** Acknowledges clearing one companion thread. */
|
|
9074
9393
|
const SessionsCompanionResetResultSchema = closedObject({ ok: Type.Literal(true) });
|
|
9075
9394
|
/**
|
|
@@ -9173,18 +9492,12 @@ const SessionsFilesGetResultSchema = closedObject({
|
|
|
9173
9492
|
});
|
|
9174
9493
|
/** Overwrites one existing session workspace file with hash-based CAS. */
|
|
9175
9494
|
const SessionsFilesSetParamsSchema = closedObject({
|
|
9176
|
-
|
|
9177
|
-
path: NonEmptyString,
|
|
9178
|
-
agentId: Type.Optional(NonEmptyString),
|
|
9495
|
+
...SessionsFilesGetParamsSchema.properties,
|
|
9179
9496
|
content: Type.String(),
|
|
9180
9497
|
expectedHash: SessionFileHashSchema
|
|
9181
9498
|
});
|
|
9182
9499
|
/** Result for overwriting one session workspace file. */
|
|
9183
|
-
const SessionsFilesSetResultSchema = closedObject(
|
|
9184
|
-
sessionKey: NonEmptyString,
|
|
9185
|
-
root: Type.Optional(NonEmptyString),
|
|
9186
|
-
file: SessionFileEntrySchema
|
|
9187
|
-
});
|
|
9500
|
+
const SessionsFilesSetResultSchema = closedObject(SessionsFilesGetResultSchema.properties);
|
|
9188
9501
|
/** Opens a session workspace on the Gateway host without accepting a client path. */
|
|
9189
9502
|
const SessionsFilesRevealParamsSchema = closedObject({
|
|
9190
9503
|
key: NonEmptyString,
|
|
@@ -9312,13 +9625,31 @@ const SessionsSendParamsSchema = closedObject({
|
|
|
9312
9625
|
const SessionsMessagesSubscribeParamsSchema = closedObject({
|
|
9313
9626
|
key: NonEmptyString,
|
|
9314
9627
|
agentId: Type.Optional(NonEmptyString),
|
|
9628
|
+
/** Stable connection-local observer identity; omission replaces the legacy observer. */
|
|
9629
|
+
subscriptionId: Type.Optional(Type.String({
|
|
9630
|
+
minLength: 1,
|
|
9631
|
+
maxLength: 128
|
|
9632
|
+
})),
|
|
9633
|
+
/** Background narration receives bounded digests; omission preserves full transcript streams. */
|
|
9634
|
+
mode: Type.Optional(Type.Literal("narration")),
|
|
9315
9635
|
/** Opt in to sanitized durable approval events for this session and its descendants. */
|
|
9316
9636
|
includeApprovals: Type.Optional(Type.Literal(true))
|
|
9317
9637
|
});
|
|
9638
|
+
/** Latest bounded assistant text for a background narration subscriber. */
|
|
9639
|
+
const SessionNarrationEventSchema = closedObject({
|
|
9640
|
+
sessionKey: NonEmptyString,
|
|
9641
|
+
agentId: Type.Optional(NonEmptyString),
|
|
9642
|
+
runId: NonEmptyString,
|
|
9643
|
+
text: Type.String({ maxLength: 16384 })
|
|
9644
|
+
});
|
|
9318
9645
|
/** Removes a live message subscription for one session. */
|
|
9319
9646
|
const SessionsMessagesUnsubscribeParamsSchema = closedObject({
|
|
9320
9647
|
key: NonEmptyString,
|
|
9321
|
-
agentId: Type.Optional(NonEmptyString)
|
|
9648
|
+
agentId: Type.Optional(NonEmptyString),
|
|
9649
|
+
subscriptionId: Type.Optional(Type.String({
|
|
9650
|
+
minLength: 1,
|
|
9651
|
+
maxLength: 128
|
|
9652
|
+
}))
|
|
9322
9653
|
});
|
|
9323
9654
|
/** Aborts the active or named run for a session. */
|
|
9324
9655
|
const SessionsAbortParamsSchema = closedObject({
|
|
@@ -9433,11 +9764,7 @@ const SessionsRewindParamsSchema = closedObject({
|
|
|
9433
9764
|
entryId: NonEmptyString
|
|
9434
9765
|
});
|
|
9435
9766
|
/** Creates a new session from the active-path state before one persisted user message. */
|
|
9436
|
-
const SessionsForkParamsSchema = closedObject(
|
|
9437
|
-
sessionKey: NonEmptyString,
|
|
9438
|
-
agentId: Type.Optional(NonEmptyString),
|
|
9439
|
-
entryId: NonEmptyString
|
|
9440
|
-
});
|
|
9767
|
+
const SessionsForkParamsSchema = closedObject(SessionsRewindParamsSchema.properties);
|
|
9441
9768
|
const SessionEditorAttachmentSchema = closedObject({
|
|
9442
9769
|
mimeType: Type.String(),
|
|
9443
9770
|
data: Type.String()
|
|
@@ -9520,7 +9847,7 @@ const SessionsUsageParamsSchema = closedObject({
|
|
|
9520
9847
|
includeContextWeight: Type.Optional(Type.Boolean())
|
|
9521
9848
|
});
|
|
9522
9849
|
//#endregion
|
|
9523
|
-
//#region src/schema/sessions-sharing.ts
|
|
9850
|
+
//#region packages/gateway-protocol/src/schema/sessions-sharing.ts
|
|
9524
9851
|
/** A selectable sharing identity is a created actor with a durable id. */
|
|
9525
9852
|
const SessionSharingIdentitySchema = closedObject({
|
|
9526
9853
|
...SessionCreatedActorSchema.properties,
|
|
@@ -9626,7 +9953,7 @@ const SessionSharingEvidenceEventSchema = closedObject({
|
|
|
9626
9953
|
...SessionSharingEventChangeFields
|
|
9627
9954
|
});
|
|
9628
9955
|
//#endregion
|
|
9629
|
-
//#region src/schema/sessions-suggestions.ts
|
|
9956
|
+
//#region packages/gateway-protocol/src/schema/sessions-suggestions.ts
|
|
9630
9957
|
const SessionSuggestionTargetParamsSchema = {
|
|
9631
9958
|
sessionKey: NonEmptyString,
|
|
9632
9959
|
agentId: Type.Optional(NonEmptyString)
|
|
@@ -9676,196 +10003,29 @@ const SessionSuggestionsListResultSchema = closedObject({
|
|
|
9676
10003
|
const SessionSuggestionsResolveResultSchema = closedObject({ suggestion: SessionSuggestionSchema });
|
|
9677
10004
|
const SessionSuggestionEventSchema = closedObject({
|
|
9678
10005
|
action: SessionSuggestionActionSchema,
|
|
9679
|
-
suggestion: SessionSuggestionSchema
|
|
9680
|
-
});
|
|
9681
|
-
const SessionTypingParamsSchema = closedObject({
|
|
9682
|
-
...SessionSuggestionTargetParamsSchema,
|
|
9683
|
-
sessionId: NonEmptyString,
|
|
9684
|
-
typing: Type.Boolean(),
|
|
9685
|
-
preview: Type.Optional(Type.String({ maxLength: 400 }))
|
|
9686
|
-
});
|
|
9687
|
-
const SessionTypingResultSchema = closedObject({
|
|
9688
|
-
ok: Type.Literal(true),
|
|
9689
|
-
broadcast: Type.Boolean()
|
|
9690
|
-
});
|
|
9691
|
-
const SessionTypingEventSchema = closedObject({
|
|
9692
|
-
sessionKey: NonEmptyString,
|
|
9693
|
-
sessionId: NonEmptyString,
|
|
9694
|
-
agentId: NonEmptyString,
|
|
9695
|
-
actor: SessionSharingIdentitySchema,
|
|
9696
|
-
typing: Type.Boolean(),
|
|
9697
|
-
preview: Type.Optional(Type.String({ maxLength: 400 })),
|
|
9698
|
-
ts: Type.Integer({ minimum: 0 })
|
|
9699
|
-
});
|
|
9700
|
-
//#endregion
|
|
9701
|
-
//#region src/schema/tasks.ts
|
|
9702
|
-
/**
|
|
9703
|
-
* Task ledger protocol schemas.
|
|
9704
|
-
*
|
|
9705
|
-
* Tasks represent long-running SDK/agent operations exposed through the gateway;
|
|
9706
|
-
* these schemas keep list/get/cancel payloads bounded and status values closed.
|
|
9707
|
-
*/
|
|
9708
|
-
/** Closed task lifecycle statuses visible in the gateway task ledger. */
|
|
9709
|
-
const TaskLedgerStatusSchema = Type.Union([
|
|
9710
|
-
Type.Literal("queued"),
|
|
9711
|
-
Type.Literal("running"),
|
|
9712
|
-
Type.Literal("completed"),
|
|
9713
|
-
Type.Literal("failed"),
|
|
9714
|
-
Type.Literal("cancelled"),
|
|
9715
|
-
Type.Literal("timed_out")
|
|
9716
|
-
]);
|
|
9717
|
-
const TimestampSchema = Type.Union([Type.String(), Type.Integer({ minimum: 0 })]);
|
|
9718
|
-
const TaskDeliveryStatusSchema = Type.Union([
|
|
9719
|
-
Type.Literal("pending"),
|
|
9720
|
-
Type.Literal("delivered"),
|
|
9721
|
-
Type.Literal("session_queued"),
|
|
9722
|
-
Type.Literal("failed"),
|
|
9723
|
-
Type.Literal("dismissed"),
|
|
9724
|
-
Type.Literal("parent_missing"),
|
|
9725
|
-
Type.Literal("not_applicable")
|
|
9726
|
-
]);
|
|
9727
|
-
const TaskTerminalOutcomeSchema = Type.Union([Type.Literal("succeeded"), Type.Literal("blocked")]);
|
|
9728
|
-
const TaskExecutionSchema = closedObject({
|
|
9729
|
-
state: Type.Union([
|
|
9730
|
-
Type.Literal("queued"),
|
|
9731
|
-
Type.Literal("running"),
|
|
9732
|
-
Type.Literal("waiting"),
|
|
9733
|
-
Type.Literal("finished"),
|
|
9734
|
-
Type.Literal("unknown")
|
|
9735
|
-
]),
|
|
9736
|
-
currentTool: Type.Optional(closedObject({
|
|
9737
|
-
name: Type.String(),
|
|
9738
|
-
startedAt: TimestampSchema
|
|
9739
|
-
})),
|
|
9740
|
-
lastActivityAt: Type.Optional(TimestampSchema),
|
|
9741
|
-
wait: Type.Optional(closedObject({
|
|
9742
|
-
kind: Type.Union([
|
|
9743
|
-
Type.Literal("children"),
|
|
9744
|
-
Type.Literal("external"),
|
|
9745
|
-
Type.Literal("agent_messages"),
|
|
9746
|
-
Type.Literal("approval"),
|
|
9747
|
-
Type.Literal("user_input")
|
|
9748
|
-
]),
|
|
9749
|
-
dependencies: Type.Optional(Type.Array(closedObject({
|
|
9750
|
-
runId: NonEmptyString,
|
|
9751
|
-
sessionKey: Type.Optional(Type.String()),
|
|
9752
|
-
taskId: Type.Optional(Type.String()),
|
|
9753
|
-
label: Type.Optional(Type.String())
|
|
9754
|
-
}), { maxItems: 100 })),
|
|
9755
|
-
pendingCount: Type.Optional(Type.Integer({ minimum: 0 }))
|
|
9756
|
-
}))
|
|
9757
|
-
});
|
|
9758
|
-
const TaskListSortBySchema = Type.Unsafe({
|
|
9759
|
-
type: "string",
|
|
9760
|
-
enum: ["updatedAt", "endedAt"]
|
|
9761
|
-
});
|
|
9762
|
-
const TaskDiffStatSchema = withSince("2026.8", closedObject({
|
|
9763
|
-
files: Type.Integer({ minimum: 0 }),
|
|
9764
|
-
added: Type.Integer({ minimum: 0 }),
|
|
9765
|
-
removed: Type.Integer({ minimum: 0 })
|
|
9766
|
-
}));
|
|
9767
|
-
/** Public task summary returned by task list/get/cancel responses. */
|
|
9768
|
-
const TaskSummarySchema = closedObject({
|
|
9769
|
-
id: NonEmptyString,
|
|
9770
|
-
kind: Type.Optional(Type.String()),
|
|
9771
|
-
runtime: Type.Optional(Type.String()),
|
|
9772
|
-
status: TaskLedgerStatusSchema,
|
|
9773
|
-
title: Type.Optional(Type.String()),
|
|
9774
|
-
agentId: Type.Optional(Type.String()),
|
|
9775
|
-
sessionKey: Type.Optional(Type.String()),
|
|
9776
|
-
childSessionKey: Type.Optional(Type.String()),
|
|
9777
|
-
hasTranscript: Type.Optional(Type.Boolean()),
|
|
9778
|
-
ownerKey: Type.Optional(Type.String()),
|
|
9779
|
-
runId: Type.Optional(Type.String()),
|
|
9780
|
-
taskId: Type.Optional(Type.String()),
|
|
9781
|
-
flowId: Type.Optional(Type.String()),
|
|
9782
|
-
parentTaskId: Type.Optional(Type.String()),
|
|
9783
|
-
sourceId: Type.Optional(Type.String()),
|
|
9784
|
-
createdAt: Type.Optional(TimestampSchema),
|
|
9785
|
-
updatedAt: Type.Optional(TimestampSchema),
|
|
9786
|
-
startedAt: Type.Optional(TimestampSchema),
|
|
9787
|
-
endedAt: Type.Optional(TimestampSchema),
|
|
9788
|
-
toolUseCount: Type.Optional(Type.Integer({ minimum: 0 })),
|
|
9789
|
-
lastToolName: Type.Optional(Type.String()),
|
|
9790
|
-
execution: Type.Optional(withSince("2026.9", TaskExecutionSchema)),
|
|
9791
|
-
lastActivity: Type.Optional(withSince("2026.8", Type.String({ maxLength: 200 }))),
|
|
9792
|
-
diffStat: Type.Optional(TaskDiffStatSchema),
|
|
9793
|
-
progressSummary: Type.Optional(Type.String()),
|
|
9794
|
-
terminalSummary: Type.Optional(Type.String()),
|
|
9795
|
-
error: Type.Optional(Type.String()),
|
|
9796
|
-
deliveryStatus: Type.Optional(TaskDeliveryStatusSchema),
|
|
9797
|
-
terminalOutcome: Type.Optional(TaskTerminalOutcomeSchema),
|
|
9798
|
-
/** Bounded canonical completion result. Returned only by tasks.get. */
|
|
9799
|
-
result: Type.Optional(Type.String()),
|
|
9800
|
-
/** Bounded task input. Returned by tasks.get; omitted from list/event summaries. */
|
|
9801
|
-
prompt: Type.Optional(Type.String())
|
|
9802
|
-
});
|
|
9803
|
-
/** Task list filters with bounded pagination. */
|
|
9804
|
-
const TASKS_LIST_CURSOR_MAX_LENGTH = 512;
|
|
9805
|
-
const TasksListParamsSchema = closedObject({
|
|
9806
|
-
status: Type.Optional(Type.Union([TaskLedgerStatusSchema, Type.Array(TaskLedgerStatusSchema)])),
|
|
9807
|
-
agentId: Type.Optional(NonEmptyString),
|
|
9808
|
-
sessionKey: Type.Optional(NonEmptyString),
|
|
9809
|
-
limit: Type.Optional(Type.Integer({
|
|
9810
|
-
minimum: 1,
|
|
9811
|
-
maximum: 500
|
|
9812
|
-
})),
|
|
9813
|
-
cursor: Type.Optional(Type.String({ maxLength: 512 })),
|
|
9814
|
-
sortBy: Type.Optional(withSince("2026.8", TaskListSortBySchema))
|
|
9815
|
-
});
|
|
9816
|
-
/** Task list page response. */
|
|
9817
|
-
const TasksListResultSchema = closedObject({
|
|
9818
|
-
tasks: Type.Array(TaskSummarySchema),
|
|
9819
|
-
nextCursor: Type.Optional(Type.String({ maxLength: 512 }))
|
|
9820
|
-
});
|
|
9821
|
-
/** Lookup request for one task id. */
|
|
9822
|
-
const TasksGetParamsSchema = closedObject({ taskId: NonEmptyString });
|
|
9823
|
-
/** Lookup result for one task summary. */
|
|
9824
|
-
const TasksGetResultSchema = closedObject({ task: TaskSummarySchema });
|
|
9825
|
-
/** Runtime-independent, bounded transcript pages in chronological order. */
|
|
9826
|
-
const TasksHistoryParamsSchema = closedObject({
|
|
9827
|
-
taskId: NonEmptyString,
|
|
9828
|
-
cursor: Type.Optional(Type.String({
|
|
9829
|
-
minLength: 1,
|
|
9830
|
-
maxLength: 8192
|
|
9831
|
-
})),
|
|
9832
|
-
limit: Type.Optional(Type.Integer({
|
|
9833
|
-
minimum: 1,
|
|
9834
|
-
maximum: 200
|
|
9835
|
-
}))
|
|
9836
|
-
});
|
|
9837
|
-
const TasksHistoryResultSchema = closedObject({
|
|
9838
|
-
/** Stable messageId or __openclaw.id anchors refreshes; entry IDs can have sibling rows. */
|
|
9839
|
-
messages: Type.Array(Type.Unknown()),
|
|
9840
|
-
activity: Type.Optional(Type.Array(ChatHistoryActivitySchema)),
|
|
9841
|
-
nextCursor: Type.Optional(Type.String({ maxLength: 8192 }))
|
|
10006
|
+
suggestion: SessionSuggestionSchema
|
|
9842
10007
|
});
|
|
9843
|
-
|
|
9844
|
-
|
|
9845
|
-
|
|
9846
|
-
|
|
10008
|
+
const SessionTypingParamsSchema = closedObject({
|
|
10009
|
+
...SessionSuggestionTargetParamsSchema,
|
|
10010
|
+
sessionId: NonEmptyString,
|
|
10011
|
+
typing: Type.Boolean(),
|
|
10012
|
+
preview: Type.Optional(Type.String({ maxLength: 400 }))
|
|
9847
10013
|
});
|
|
9848
|
-
|
|
9849
|
-
|
|
9850
|
-
|
|
9851
|
-
cancelled: Type.Boolean(),
|
|
9852
|
-
reason: Type.Optional(Type.String()),
|
|
9853
|
-
task: Type.Optional(TaskSummarySchema)
|
|
10014
|
+
const SessionTypingResultSchema = closedObject({
|
|
10015
|
+
ok: Type.Literal(true),
|
|
10016
|
+
broadcast: Type.Boolean()
|
|
9854
10017
|
});
|
|
9855
|
-
const
|
|
9856
|
-
|
|
9857
|
-
|
|
9858
|
-
|
|
9859
|
-
|
|
9860
|
-
|
|
9861
|
-
|
|
9862
|
-
|
|
9863
|
-
duplicateRisk: Type.Optional(Type.Boolean()),
|
|
9864
|
-
task: Type.Optional(TaskSummarySchema)
|
|
10018
|
+
const SessionTypingEventSchema = closedObject({
|
|
10019
|
+
sessionKey: NonEmptyString,
|
|
10020
|
+
sessionId: NonEmptyString,
|
|
10021
|
+
agentId: NonEmptyString,
|
|
10022
|
+
actor: SessionSharingIdentitySchema,
|
|
10023
|
+
typing: Type.Boolean(),
|
|
10024
|
+
preview: Type.Optional(Type.String({ maxLength: 400 })),
|
|
10025
|
+
ts: Type.Integer({ minimum: 0 })
|
|
9865
10026
|
});
|
|
9866
|
-
const TasksRecoveryResultSchema = closedObject({ results: Type.Array(TaskRecoveryItemSchema, { maxItems: 10 }) });
|
|
9867
10027
|
//#endregion
|
|
9868
|
-
//#region src/schema/projects.ts
|
|
10028
|
+
//#region packages/gateway-protocol/src/schema/projects.ts
|
|
9869
10029
|
const StoredProjectIdSchema = Type.String({ pattern: "^[a-z0-9][a-z0-9-]{0,63}$" });
|
|
9870
10030
|
const PROJECTS_LIST_DEFAULT_LIMIT = 50;
|
|
9871
10031
|
const PROJECTS_LIST_MAX_CHECKOUTS_PER_PROJECT = 50;
|
|
@@ -9998,7 +10158,7 @@ const ProjectsRemoveParamsSchema = closedObject({
|
|
|
9998
10158
|
});
|
|
9999
10159
|
const ProjectsRemoveResultSchema = closedObject({ removed: Type.Boolean() });
|
|
10000
10160
|
//#endregion
|
|
10001
|
-
//#region src/schema/migrations.ts
|
|
10161
|
+
//#region packages/gateway-protocol/src/schema/migrations.ts
|
|
10002
10162
|
const MAX_MEMORY_MIGRATION_ITEMS = 2e3;
|
|
10003
10163
|
const MemoryMigrationPlanFingerprintSchema = Type.String({
|
|
10004
10164
|
minLength: 64,
|
|
@@ -10091,7 +10251,7 @@ const MigrationProtocolSchemas = {
|
|
|
10091
10251
|
}, { additionalProperties: false })
|
|
10092
10252
|
};
|
|
10093
10253
|
//#endregion
|
|
10094
|
-
//#region src/schema/agent.ts
|
|
10254
|
+
//#region packages/gateway-protocol/src/schema/agent.ts
|
|
10095
10255
|
/**
|
|
10096
10256
|
* Agent and channel-action gateway schemas.
|
|
10097
10257
|
*
|
|
@@ -10336,12 +10496,7 @@ const ConversationTurnResultSchema = Type.Union([
|
|
|
10336
10496
|
channel: NonEmptyString,
|
|
10337
10497
|
messageId: Type.Optional(NonEmptyString),
|
|
10338
10498
|
correlationPersisted: Type.Boolean(),
|
|
10339
|
-
status:
|
|
10340
|
-
Type.Literal("sent"),
|
|
10341
|
-
Type.Literal("queued"),
|
|
10342
|
-
Type.Literal("suppressed"),
|
|
10343
|
-
Type.Literal("unknown")
|
|
10344
|
-
]),
|
|
10499
|
+
status: ConversationSendResultSchema.properties.status,
|
|
10345
10500
|
error: NonEmptyString
|
|
10346
10501
|
})
|
|
10347
10502
|
]);
|
|
@@ -10384,6 +10539,7 @@ const AgentParamsSchema = closedObject({
|
|
|
10384
10539
|
sessionId: Type.Optional(Type.String()),
|
|
10385
10540
|
sessionKey: Type.Optional(Type.String()),
|
|
10386
10541
|
expectedExistingSessionId: Type.Optional(NonEmptyString),
|
|
10542
|
+
expectedExistingSessionLifecycleRevision: Type.Optional(Type.Union([NonEmptyString, Type.Null()])),
|
|
10387
10543
|
thinking: Type.Optional(Type.String()),
|
|
10388
10544
|
deliver: Type.Optional(Type.Boolean()),
|
|
10389
10545
|
attachments: Type.Optional(Type.Array(Type.Unknown())),
|
|
@@ -10477,7 +10633,54 @@ const WakeParamsSchema = Type.Object({
|
|
|
10477
10633
|
agentId: Type.Optional(NonEmptyString)
|
|
10478
10634
|
}, { additionalProperties: true });
|
|
10479
10635
|
//#endregion
|
|
10480
|
-
//#region src/schema/agents-
|
|
10636
|
+
//#region packages/gateway-protocol/src/schema/agents-files.ts
|
|
10637
|
+
/** File metadata and optional content for agent-local editable files. */
|
|
10638
|
+
const AgentsFileEntrySchema = closedObject({
|
|
10639
|
+
name: NonEmptyString,
|
|
10640
|
+
path: NonEmptyString,
|
|
10641
|
+
missing: Type.Boolean(),
|
|
10642
|
+
expectedAbsent: Type.Optional(Type.Boolean()),
|
|
10643
|
+
size: Type.Optional(Type.Integer({ minimum: 0 })),
|
|
10644
|
+
updatedAtMs: Type.Optional(Type.Integer({ minimum: 0 })),
|
|
10645
|
+
hash: Type.Optional(Sha256String),
|
|
10646
|
+
content: Type.Optional(Type.String())
|
|
10647
|
+
});
|
|
10648
|
+
/** Lists editable files for one agent. */
|
|
10649
|
+
const AgentsFilesListParamsSchema = closedObject({ agentId: NonEmptyString });
|
|
10650
|
+
/** Editable file list for an agent workspace. */
|
|
10651
|
+
const AgentsFilesListResultSchema = closedObject({
|
|
10652
|
+
agentId: NonEmptyString,
|
|
10653
|
+
workspace: NonEmptyString,
|
|
10654
|
+
files: Type.Array(AgentsFileEntrySchema)
|
|
10655
|
+
});
|
|
10656
|
+
/** Reads one editable agent file by name. */
|
|
10657
|
+
const AgentsFilesGetParamsSchema = closedObject({
|
|
10658
|
+
agentId: NonEmptyString,
|
|
10659
|
+
name: NonEmptyString
|
|
10660
|
+
});
|
|
10661
|
+
/** Result for reading one editable agent file. */
|
|
10662
|
+
const AgentsFilesGetResultSchema = closedObject({
|
|
10663
|
+
agentId: NonEmptyString,
|
|
10664
|
+
workspace: NonEmptyString,
|
|
10665
|
+
file: AgentsFileEntrySchema
|
|
10666
|
+
});
|
|
10667
|
+
/** Writes one editable agent file. */
|
|
10668
|
+
const AgentsFilesSetParamsSchema = Object.assign(closedObject({
|
|
10669
|
+
agentId: NonEmptyString,
|
|
10670
|
+
name: NonEmptyString,
|
|
10671
|
+
content: Type.String(),
|
|
10672
|
+
expectedHash: Type.Optional(Sha256String),
|
|
10673
|
+
expectedMissing: Type.Optional(Type.Literal(true))
|
|
10674
|
+
}), { not: { required: ["expectedHash", "expectedMissing"] } });
|
|
10675
|
+
/** Result returned after writing an editable agent file. */
|
|
10676
|
+
const AgentsFilesSetResultSchema = closedObject({
|
|
10677
|
+
ok: Type.Literal(true),
|
|
10678
|
+
agentId: NonEmptyString,
|
|
10679
|
+
workspace: NonEmptyString,
|
|
10680
|
+
file: AgentsFileEntrySchema
|
|
10681
|
+
});
|
|
10682
|
+
//#endregion
|
|
10683
|
+
//#region packages/gateway-protocol/src/schema/agents-workspace.ts
|
|
10481
10684
|
/**
|
|
10482
10685
|
* Read-only agent workspace browsing schemas.
|
|
10483
10686
|
*
|
|
@@ -10531,17 +10734,16 @@ const AgentsWorkspaceGetResultSchema = closedObject({
|
|
|
10531
10734
|
file: AgentsWorkspaceFileSchema
|
|
10532
10735
|
});
|
|
10533
10736
|
//#endregion
|
|
10534
|
-
//#region src/schema/artifacts.ts
|
|
10737
|
+
//#region packages/gateway-protocol/src/schema/artifacts.ts
|
|
10535
10738
|
/**
|
|
10536
10739
|
* Artifact lookup and download protocol schemas.
|
|
10537
10740
|
*
|
|
10538
|
-
* Artifacts are files or payloads produced by sessions, runs,
|
|
10741
|
+
* Artifacts are files or payloads produced by sessions, runs, or agents;
|
|
10539
10742
|
* these schemas keep lookup filters explicit and download results transport-safe.
|
|
10540
10743
|
*/
|
|
10541
10744
|
const ArtifactQueryParamsProperties = {
|
|
10542
10745
|
sessionKey: Type.Optional(NonEmptyString),
|
|
10543
10746
|
runId: Type.Optional(NonEmptyString),
|
|
10544
|
-
taskId: Type.Optional(NonEmptyString),
|
|
10545
10747
|
agentId: Type.Optional(NonEmptyString),
|
|
10546
10748
|
/** Assistant-delivered artifacts only; omit to include uploaded inputs and tool observations. */
|
|
10547
10749
|
messageRole: Type.Optional(Type.Literal("assistant"))
|
|
@@ -10560,7 +10762,6 @@ const ArtifactSummarySchema = closedObject({
|
|
|
10560
10762
|
sizeBytes: Type.Optional(Type.Integer({ minimum: 0 })),
|
|
10561
10763
|
sessionKey: Type.Optional(NonEmptyString),
|
|
10562
10764
|
runId: Type.Optional(NonEmptyString),
|
|
10563
|
-
taskId: Type.Optional(NonEmptyString),
|
|
10564
10765
|
messageSeq: Type.Optional(Type.Integer({ minimum: 1 })),
|
|
10565
10766
|
source: Type.Optional(NonEmptyString),
|
|
10566
10767
|
image: Type.Optional(closedObject({ url: NonEmptyString })),
|
|
@@ -10609,7 +10810,7 @@ const ArtifactsDownloadResultSchema = closedObject({
|
|
|
10609
10810
|
expiresAt: Type.Optional(NonEmptyString)
|
|
10610
10811
|
});
|
|
10611
10812
|
//#endregion
|
|
10612
|
-
//#region src/schema/audit-activity.ts
|
|
10813
|
+
//#region packages/gateway-protocol/src/schema/audit-activity.ts
|
|
10613
10814
|
const AuditActivitySchemaVersionV1Schema = Type.Integer({
|
|
10614
10815
|
minimum: 1,
|
|
10615
10816
|
maximum: 1
|
|
@@ -10715,6 +10916,23 @@ const withoutErrorCode = withoutField("errorCode");
|
|
|
10715
10916
|
const withoutReasonCode = withoutField("reasonCode");
|
|
10716
10917
|
const withoutFailureStage = withoutField("failureStage");
|
|
10717
10918
|
const withoutDeliveryKind = withoutField("deliveryKind");
|
|
10919
|
+
function actionTerminalVariants(action, failures) {
|
|
10920
|
+
return Type.Union([
|
|
10921
|
+
Type.Intersect([Type.Object({
|
|
10922
|
+
action: Type.Literal(`${action}.started`),
|
|
10923
|
+
status: Type.Literal("started")
|
|
10924
|
+
}), withoutErrorCode]),
|
|
10925
|
+
Type.Intersect([Type.Object({
|
|
10926
|
+
action: Type.Literal(`${action}.finished`),
|
|
10927
|
+
status: Type.Literal("succeeded")
|
|
10928
|
+
}), withoutErrorCode]),
|
|
10929
|
+
...failures.map(([status, errorCode]) => Type.Object({
|
|
10930
|
+
action: Type.Literal(`${action}.finished`),
|
|
10931
|
+
status: Type.Literal(status),
|
|
10932
|
+
errorCode: Type.Literal(errorCode)
|
|
10933
|
+
}))
|
|
10934
|
+
]);
|
|
10935
|
+
}
|
|
10718
10936
|
/** V1 agent-run activity record. */
|
|
10719
10937
|
const AuditActivityAgentRunV1Schema = correlatedObject({
|
|
10720
10938
|
eventType: Type.Literal("agent_run"),
|
|
@@ -10736,35 +10954,11 @@ const AuditActivityAgentRunV1Schema = correlatedObject({
|
|
|
10736
10954
|
Type.Literal("run_timed_out"),
|
|
10737
10955
|
Type.Literal("run_blocked")
|
|
10738
10956
|
]))
|
|
10739
|
-
},
|
|
10740
|
-
|
|
10741
|
-
|
|
10742
|
-
|
|
10743
|
-
|
|
10744
|
-
Type.Intersect([Type.Object({
|
|
10745
|
-
action: Type.Literal("agent.run.finished"),
|
|
10746
|
-
status: Type.Literal("succeeded")
|
|
10747
|
-
}), withoutErrorCode]),
|
|
10748
|
-
Type.Object({
|
|
10749
|
-
action: Type.Literal("agent.run.finished"),
|
|
10750
|
-
status: Type.Literal("failed"),
|
|
10751
|
-
errorCode: Type.Literal("run_failed")
|
|
10752
|
-
}),
|
|
10753
|
-
Type.Object({
|
|
10754
|
-
action: Type.Literal("agent.run.finished"),
|
|
10755
|
-
status: Type.Literal("cancelled"),
|
|
10756
|
-
errorCode: Type.Literal("run_cancelled")
|
|
10757
|
-
}),
|
|
10758
|
-
Type.Object({
|
|
10759
|
-
action: Type.Literal("agent.run.finished"),
|
|
10760
|
-
status: Type.Literal("timed_out"),
|
|
10761
|
-
errorCode: Type.Literal("run_timed_out")
|
|
10762
|
-
}),
|
|
10763
|
-
Type.Object({
|
|
10764
|
-
action: Type.Literal("agent.run.finished"),
|
|
10765
|
-
status: Type.Literal("blocked"),
|
|
10766
|
-
errorCode: Type.Literal("run_blocked")
|
|
10767
|
-
})
|
|
10957
|
+
}, actionTerminalVariants("agent.run", [
|
|
10958
|
+
["failed", "run_failed"],
|
|
10959
|
+
["cancelled", "run_cancelled"],
|
|
10960
|
+
["timed_out", "run_timed_out"],
|
|
10961
|
+
["blocked", "run_blocked"]
|
|
10768
10962
|
]));
|
|
10769
10963
|
/** V1 tool-action activity record. */
|
|
10770
10964
|
const AuditActivityToolActionV1Schema = correlatedObject({
|
|
@@ -10783,40 +10977,12 @@ const AuditActivityToolActionV1Schema = correlatedObject({
|
|
|
10783
10977
|
Type.Literal("tool_blocked"),
|
|
10784
10978
|
Type.Literal("tool_outcome_unknown")
|
|
10785
10979
|
]))
|
|
10786
|
-
},
|
|
10787
|
-
|
|
10788
|
-
|
|
10789
|
-
|
|
10790
|
-
|
|
10791
|
-
|
|
10792
|
-
action: Type.Literal("tool.action.finished"),
|
|
10793
|
-
status: Type.Literal("succeeded")
|
|
10794
|
-
}), withoutErrorCode]),
|
|
10795
|
-
Type.Object({
|
|
10796
|
-
action: Type.Literal("tool.action.finished"),
|
|
10797
|
-
status: Type.Literal("failed"),
|
|
10798
|
-
errorCode: Type.Literal("tool_failed")
|
|
10799
|
-
}),
|
|
10800
|
-
Type.Object({
|
|
10801
|
-
action: Type.Literal("tool.action.finished"),
|
|
10802
|
-
status: Type.Literal("cancelled"),
|
|
10803
|
-
errorCode: Type.Literal("tool_cancelled")
|
|
10804
|
-
}),
|
|
10805
|
-
Type.Object({
|
|
10806
|
-
action: Type.Literal("tool.action.finished"),
|
|
10807
|
-
status: Type.Literal("timed_out"),
|
|
10808
|
-
errorCode: Type.Literal("tool_timed_out")
|
|
10809
|
-
}),
|
|
10810
|
-
Type.Object({
|
|
10811
|
-
action: Type.Literal("tool.action.finished"),
|
|
10812
|
-
status: Type.Literal("blocked"),
|
|
10813
|
-
errorCode: Type.Literal("tool_blocked")
|
|
10814
|
-
}),
|
|
10815
|
-
Type.Object({
|
|
10816
|
-
action: Type.Literal("tool.action.finished"),
|
|
10817
|
-
status: Type.Literal("unknown"),
|
|
10818
|
-
errorCode: Type.Literal("tool_outcome_unknown")
|
|
10819
|
-
})
|
|
10980
|
+
}, actionTerminalVariants("tool.action", [
|
|
10981
|
+
["failed", "tool_failed"],
|
|
10982
|
+
["cancelled", "tool_cancelled"],
|
|
10983
|
+
["timed_out", "tool_timed_out"],
|
|
10984
|
+
["blocked", "tool_blocked"],
|
|
10985
|
+
["unknown", "tool_outcome_unknown"]
|
|
10820
10986
|
]));
|
|
10821
10987
|
const inboundMessageProperties = {
|
|
10822
10988
|
eventType: Type.Literal("inbound_message"),
|
|
@@ -10993,7 +11159,7 @@ const AuditActivityListResultSchema = closedObject({
|
|
|
10993
11159
|
nextCursor: Type.Optional(NonEmptyString)
|
|
10994
11160
|
});
|
|
10995
11161
|
//#endregion
|
|
10996
|
-
//#region src/schema/audit-run.ts
|
|
11162
|
+
//#region packages/gateway-protocol/src/schema/audit-run.ts
|
|
10997
11163
|
const ExecutionIdentityRefSchema = Type.String({
|
|
10998
11164
|
minLength: 1,
|
|
10999
11165
|
maxLength: 256
|
|
@@ -11190,9 +11356,7 @@ const DecisionReceiptDisplayProvenanceV1Schema = Type.Union([closedObject({
|
|
|
11190
11356
|
Type.Literal("run-admission"),
|
|
11191
11357
|
Type.Literal("operator-approval"),
|
|
11192
11358
|
Type.Literal("message-delivery"),
|
|
11193
|
-
Type.Literal("cron-lifecycle")
|
|
11194
|
-
Type.Literal("task-lifecycle"),
|
|
11195
|
-
Type.Literal("flow-lifecycle")
|
|
11359
|
+
Type.Literal("cron-lifecycle")
|
|
11196
11360
|
])
|
|
11197
11361
|
}), closedObject({ state: Type.Literal("unverified") })]);
|
|
11198
11362
|
const DecisionReceiptDisplayV1Schema = closedObject({
|
|
@@ -11204,15 +11368,7 @@ const DecisionReceiptDisplayV1Schema = closedObject({
|
|
|
11204
11368
|
operation: ExecutionIdentityRefSchema,
|
|
11205
11369
|
summary: Type.Optional(Type.String({ maxLength: 512 }))
|
|
11206
11370
|
}),
|
|
11207
|
-
decision: closedObject(
|
|
11208
|
-
outcome: Type.Union([
|
|
11209
|
-
Type.Literal("allowed"),
|
|
11210
|
-
Type.Literal("denied"),
|
|
11211
|
-
Type.Literal("not-applicable"),
|
|
11212
|
-
Type.Literal("unknown")
|
|
11213
|
-
]),
|
|
11214
|
-
reasonCode: ExecutionIdentityRefSchema
|
|
11215
|
-
}),
|
|
11371
|
+
decision: closedObject(DecisionReceiptV1Schema.properties.decision.properties),
|
|
11216
11372
|
enforcement: closedObject({
|
|
11217
11373
|
coverageState: ExecutionIdentityDecisionCoverageStateSchema,
|
|
11218
11374
|
policyCount: Type.Integer({
|
|
@@ -11309,7 +11465,7 @@ const AuditRunInspectResultSchema = closedObject({
|
|
|
11309
11465
|
nextExecutionCursor: Type.Optional(ExecutionIdentityRefSchema)
|
|
11310
11466
|
});
|
|
11311
11467
|
//#endregion
|
|
11312
|
-
//#region src/schema/audit.ts
|
|
11468
|
+
//#region packages/gateway-protocol/src/schema/audit.ts
|
|
11313
11469
|
const AuditEventKindSchema = Type.Union([Type.Literal("agent_run"), Type.Literal("tool_action")]);
|
|
11314
11470
|
const AuditEventActionSchema = Type.Union([
|
|
11315
11471
|
Type.Literal("agent.run.started"),
|
|
@@ -11380,7 +11536,7 @@ const AuditListResultSchema = closedObject({
|
|
|
11380
11536
|
nextCursor: Type.Optional(NonEmptyString)
|
|
11381
11537
|
});
|
|
11382
11538
|
//#endregion
|
|
11383
|
-
//#region src/schema/channels.ts
|
|
11539
|
+
//#region packages/gateway-protocol/src/schema/channels.ts
|
|
11384
11540
|
/**
|
|
11385
11541
|
* Channel and Talk protocol schemas.
|
|
11386
11542
|
*
|
|
@@ -11690,6 +11846,11 @@ const TalkCatalogParamsSchema = closedObject({
|
|
|
11690
11846
|
provider: Type.Optional(NonEmptyString),
|
|
11691
11847
|
model: Type.Optional(NonEmptyString)
|
|
11692
11848
|
});
|
|
11849
|
+
const TalkCatalogAudioFormatProperties = {
|
|
11850
|
+
encoding: Type.Union([Type.Literal("pcm16"), Type.Literal("g711_ulaw")]),
|
|
11851
|
+
sampleRateHz: Type.Integer({ minimum: 1 }),
|
|
11852
|
+
channels: Type.Integer({ minimum: 1 })
|
|
11853
|
+
};
|
|
11693
11854
|
/** One provider entry in the Talk capability catalog. */
|
|
11694
11855
|
const TalkCatalogProviderSchema = closedObject({
|
|
11695
11856
|
id: NonEmptyString,
|
|
@@ -11705,16 +11866,8 @@ const TalkCatalogProviderSchema = closedObject({
|
|
|
11705
11866
|
modes: Type.Optional(Type.Array(TalkModeSchema)),
|
|
11706
11867
|
transports: Type.Optional(Type.Array(TalkTransportSchema)),
|
|
11707
11868
|
brains: Type.Optional(Type.Array(TalkBrainSchema)),
|
|
11708
|
-
inputAudioFormats: Type.Optional(Type.Array(closedObject(
|
|
11709
|
-
|
|
11710
|
-
sampleRateHz: Type.Integer({ minimum: 1 }),
|
|
11711
|
-
channels: Type.Integer({ minimum: 1 })
|
|
11712
|
-
}))),
|
|
11713
|
-
outputAudioFormats: Type.Optional(Type.Array(closedObject({
|
|
11714
|
-
encoding: Type.Union([Type.Literal("pcm16"), Type.Literal("g711_ulaw")]),
|
|
11715
|
-
sampleRateHz: Type.Integer({ minimum: 1 }),
|
|
11716
|
-
channels: Type.Integer({ minimum: 1 })
|
|
11717
|
-
}))),
|
|
11869
|
+
inputAudioFormats: Type.Optional(Type.Array(closedObject(TalkCatalogAudioFormatProperties))),
|
|
11870
|
+
outputAudioFormats: Type.Optional(Type.Array(closedObject(TalkCatalogAudioFormatProperties))),
|
|
11718
11871
|
supportsBrowserSession: Type.Optional(Type.Boolean()),
|
|
11719
11872
|
supportsBargeIn: Type.Optional(Type.Boolean()),
|
|
11720
11873
|
supportsToolCalls: Type.Optional(Type.Boolean()),
|
|
@@ -11820,9 +11973,7 @@ const TalkClientCreateResultSchema = Type.Union([
|
|
|
11820
11973
|
BrowserRealtimeManagedRoomSessionSchema
|
|
11821
11974
|
]);
|
|
11822
11975
|
/** Secret-bearing provider fields; extra provider options remain provider-owned. */
|
|
11823
|
-
const
|
|
11824
|
-
/** Per-provider Talk config bag. */
|
|
11825
|
-
const TalkProviderConfigSchema = Type.Object(talkProviderFieldSchemas, { additionalProperties: true });
|
|
11976
|
+
const TalkProviderConfigSchema = Type.Object({ apiKey: Type.Optional(SecretInputSchema) }, { additionalProperties: true });
|
|
11826
11977
|
/** Realtime Talk defaults and provider selection stored in config. */
|
|
11827
11978
|
const TalkRealtimeConfigSchema = closedObject({
|
|
11828
11979
|
provider: Type.Optional(Type.String()),
|
|
@@ -11988,15 +12139,9 @@ const ChannelsLogoutParamsSchema = closedObject({
|
|
|
11988
12139
|
accountId: Type.Optional(Type.String())
|
|
11989
12140
|
});
|
|
11990
12141
|
/** Stops one channel account runtime. */
|
|
11991
|
-
const ChannelsStopParamsSchema = closedObject(
|
|
11992
|
-
channel: NonEmptyString,
|
|
11993
|
-
accountId: Type.Optional(Type.String())
|
|
11994
|
-
});
|
|
12142
|
+
const ChannelsStopParamsSchema = closedObject(ChannelsLogoutParamsSchema.properties);
|
|
11995
12143
|
/** Starts one channel account runtime. */
|
|
11996
|
-
const ChannelsStartParamsSchema = closedObject(
|
|
11997
|
-
channel: NonEmptyString,
|
|
11998
|
-
accountId: Type.Optional(Type.String())
|
|
11999
|
-
});
|
|
12144
|
+
const ChannelsStartParamsSchema = closedObject(ChannelsLogoutParamsSchema.properties);
|
|
12000
12145
|
/** Starts browser/web login for a channel account. */
|
|
12001
12146
|
const WebLoginStartParamsSchema = closedObject({
|
|
12002
12147
|
channel: Type.Optional(NonEmptyString),
|
|
@@ -12018,7 +12163,7 @@ const WebLoginWaitParamsSchema = closedObject({
|
|
|
12018
12163
|
currentQrDataUrl: Type.Optional(QrDataUrlSchema)
|
|
12019
12164
|
});
|
|
12020
12165
|
//#endregion
|
|
12021
|
-
//#region src/schema/channel-pairing.ts
|
|
12166
|
+
//#region packages/gateway-protocol/src/schema/channel-pairing.ts
|
|
12022
12167
|
const ChannelPairingAccountSchema = closedObject({
|
|
12023
12168
|
channel: NonEmptyString,
|
|
12024
12169
|
channelLabel: NonEmptyString,
|
|
@@ -12089,14 +12234,14 @@ const ChannelsPairingDismissResultSchema = closedObject({
|
|
|
12089
12234
|
senderId: NonEmptyString
|
|
12090
12235
|
});
|
|
12091
12236
|
//#endregion
|
|
12092
|
-
//#region src/schema/talk-marks.ts
|
|
12237
|
+
//#region packages/gateway-protocol/src/schema/talk-marks.ts
|
|
12093
12238
|
/** Acknowledges playback through a named realtime provider mark. */
|
|
12094
12239
|
const TalkSessionAcknowledgeMarkParamsSchema = closedObject({
|
|
12095
12240
|
sessionId: NonEmptyString,
|
|
12096
12241
|
markName: NonEmptyString
|
|
12097
12242
|
});
|
|
12098
12243
|
//#endregion
|
|
12099
|
-
//#region src/schema/commands.ts
|
|
12244
|
+
//#region packages/gateway-protocol/src/schema/commands.ts
|
|
12100
12245
|
/**
|
|
12101
12246
|
* Command catalog protocol schemas.
|
|
12102
12247
|
*
|
|
@@ -12199,7 +12344,7 @@ const CommandsListParamsSchema = closedObject({
|
|
|
12199
12344
|
/** Bounded command catalog response. */
|
|
12200
12345
|
const CommandsListResultSchema = closedObject({ commands: Type.Array(CommandEntrySchema, { maxItems: 500 }) });
|
|
12201
12346
|
//#endregion
|
|
12202
|
-
//#region src/schema/openclaw.ts
|
|
12347
|
+
//#region packages/gateway-protocol/src/schema/openclaw.ts
|
|
12203
12348
|
const SystemAgentWizardCancelSchema = closedObject({
|
|
12204
12349
|
/** The visible step this action belongs to; stale controls must not affect a newer step. */
|
|
12205
12350
|
stepId: NonEmptyString });
|
|
@@ -12522,17 +12667,7 @@ const SystemAgentSetupActivateParamsSchema = closedObject({
|
|
|
12522
12667
|
modelTarget: Type.Optional(Type.Literal("utility")),
|
|
12523
12668
|
/** Agent that owns the verified and persisted inference route. */
|
|
12524
12669
|
agentId: Type.Optional(NonEmptyString),
|
|
12525
|
-
kind: Type.Union([
|
|
12526
|
-
Type.Literal("existing-model"),
|
|
12527
|
-
Type.Literal("openai-api-key"),
|
|
12528
|
-
Type.Literal("anthropic-api-key"),
|
|
12529
|
-
Type.Literal("claude-cli"),
|
|
12530
|
-
Type.Literal("codex-cli"),
|
|
12531
|
-
Type.Literal("gemini-cli"),
|
|
12532
|
-
ProviderAutoSetupInferenceKind,
|
|
12533
|
-
SavedAuthSetupInferenceKind,
|
|
12534
|
-
Type.Literal("api-key")
|
|
12535
|
-
]),
|
|
12670
|
+
kind: Type.Union([...SetupInferenceKind.anyOf, Type.Literal("api-key")]),
|
|
12536
12671
|
/** Exact detected model for this route; prevents detect/activate drift. */
|
|
12537
12672
|
modelRef: Type.Optional(NonEmptyString),
|
|
12538
12673
|
/** Manual step only: opaque provider-auth choice returned by detection. */
|
|
@@ -12580,7 +12715,7 @@ const SystemAgentSetupAuthStartParamsSchema = closedObject({
|
|
|
12580
12715
|
});
|
|
12581
12716
|
const SystemAgentSetupAuthStartResultSchema = WizardStartResultSchema;
|
|
12582
12717
|
//#endregion
|
|
12583
|
-
//#region src/schema/cron-shared.ts
|
|
12718
|
+
//#region packages/gateway-protocol/src/schema/cron-shared.ts
|
|
12584
12719
|
const MAX_DATE_TIMESTAMP_MS = 864e13;
|
|
12585
12720
|
const CronDateTimestampMsSchema = Type.Integer({
|
|
12586
12721
|
minimum: 0,
|
|
@@ -12627,7 +12762,7 @@ function cronScriptPayloadSchema(params) {
|
|
|
12627
12762
|
});
|
|
12628
12763
|
}
|
|
12629
12764
|
//#endregion
|
|
12630
|
-
//#region src/schema/cron.ts
|
|
12765
|
+
//#region packages/gateway-protocol/src/schema/cron.ts
|
|
12631
12766
|
/**
|
|
12632
12767
|
* Cron scheduler protocol schemas.
|
|
12633
12768
|
*
|
|
@@ -12681,9 +12816,7 @@ const CronJobsScheduleKindFilterSchema = Type.Union([
|
|
|
12681
12816
|
]);
|
|
12682
12817
|
const CronJobsLastRunStatusFilterSchema = Type.Union([
|
|
12683
12818
|
Type.Literal("all"),
|
|
12684
|
-
|
|
12685
|
-
Type.Literal("error"),
|
|
12686
|
-
Type.Literal("skipped"),
|
|
12819
|
+
...CronRunStatusSchema.anyOf,
|
|
12687
12820
|
Type.Literal("unknown")
|
|
12688
12821
|
]);
|
|
12689
12822
|
const CronJobsTriggerFilterSchema = Type.Union([
|
|
@@ -12696,17 +12829,7 @@ const CronJobsSortBySchema = Type.Union([
|
|
|
12696
12829
|
Type.Literal("updatedAtMs"),
|
|
12697
12830
|
Type.Literal("name")
|
|
12698
12831
|
]);
|
|
12699
|
-
const CronRunsStatusFilterSchema = Type.Union([
|
|
12700
|
-
Type.Literal("all"),
|
|
12701
|
-
Type.Literal("ok"),
|
|
12702
|
-
Type.Literal("error"),
|
|
12703
|
-
Type.Literal("skipped")
|
|
12704
|
-
]);
|
|
12705
|
-
const CronRunsStatusValueSchema = Type.Union([
|
|
12706
|
-
Type.Literal("ok"),
|
|
12707
|
-
Type.Literal("error"),
|
|
12708
|
-
Type.Literal("skipped")
|
|
12709
|
-
]);
|
|
12832
|
+
const CronRunsStatusFilterSchema = Type.Union([Type.Literal("all"), ...CronRunStatusSchema.anyOf]);
|
|
12710
12833
|
const CronDeliveryStatusSchema = Type.Union([
|
|
12711
12834
|
Type.Literal("delivered"),
|
|
12712
12835
|
Type.Literal("not-delivered"),
|
|
@@ -13081,6 +13204,7 @@ const CronJobStateSchema = closedObject({
|
|
|
13081
13204
|
lastErrorReason: Type.Optional(FailoverReasonSchema),
|
|
13082
13205
|
lastDurationMs: Type.Optional(Type.Integer({ minimum: 0 })),
|
|
13083
13206
|
consecutiveErrors: Type.Optional(Type.Integer({ minimum: 0 })),
|
|
13207
|
+
scheduleErrorCount: Type.Optional(Type.Integer({ minimum: 0 })),
|
|
13084
13208
|
autoDisabled: Type.Optional(CronAutoDisabledSchema),
|
|
13085
13209
|
consecutiveSkipped: Type.Optional(Type.Integer({ minimum: 0 })),
|
|
13086
13210
|
lastDelivered: Type.Optional(Type.Boolean()),
|
|
@@ -13286,7 +13410,7 @@ const CronRunsParamsSchema = closedObject({
|
|
|
13286
13410
|
maximum: 200
|
|
13287
13411
|
})),
|
|
13288
13412
|
offset: Type.Optional(Type.Integer({ minimum: 0 })),
|
|
13289
|
-
statuses: Type.Optional(Type.Array(
|
|
13413
|
+
statuses: Type.Optional(Type.Array(CronRunStatusSchema, {
|
|
13290
13414
|
minItems: 1,
|
|
13291
13415
|
maxItems: 3
|
|
13292
13416
|
})),
|
|
@@ -13334,8 +13458,27 @@ const CronRunLogEntrySchema = closedObject({
|
|
|
13334
13458
|
})),
|
|
13335
13459
|
jobName: Type.Optional(Type.String())
|
|
13336
13460
|
});
|
|
13461
|
+
/** Transcript selection is bound to one recorded cron run, never a client-selected session. */
|
|
13462
|
+
const CronHistoryParamsSchema = closedObject({
|
|
13463
|
+
id: NonEmptyString,
|
|
13464
|
+
runId: Type.Optional(NonEmptyString),
|
|
13465
|
+
runAtMs: Type.Optional(CronDateTimestampMsSchema),
|
|
13466
|
+
cursor: Type.Optional(Type.String({
|
|
13467
|
+
minLength: 1,
|
|
13468
|
+
maxLength: 8192
|
|
13469
|
+
})),
|
|
13470
|
+
limit: Type.Optional(Type.Integer({
|
|
13471
|
+
minimum: 1,
|
|
13472
|
+
maximum: 200
|
|
13473
|
+
}))
|
|
13474
|
+
});
|
|
13475
|
+
const CronHistoryResultSchema = closedObject({
|
|
13476
|
+
messages: Type.Array(Type.Unknown()),
|
|
13477
|
+
activity: Type.Optional(Type.Array(ChatHistoryActivitySchema)),
|
|
13478
|
+
nextCursor: Type.Optional(Type.String({ maxLength: 8192 }))
|
|
13479
|
+
});
|
|
13337
13480
|
//#endregion
|
|
13338
|
-
//#region src/schema/exec-approvals.ts
|
|
13481
|
+
//#region packages/gateway-protocol/src/schema/exec-approvals.ts
|
|
13339
13482
|
/**
|
|
13340
13483
|
* Exec approval protocol schemas.
|
|
13341
13484
|
*
|
|
@@ -13532,20 +13675,8 @@ const ExecApprovalsNodeSetParamsSchema = Type.Object({
|
|
|
13532
13675
|
});
|
|
13533
13676
|
/** Lookup request for one pending exec approval by id. */
|
|
13534
13677
|
const ExecApprovalGetParamsSchema = closedObject({ id: NonEmptyString });
|
|
13535
|
-
const ExecApprovalPolicySecuritySchema = Type.Union([
|
|
13536
|
-
Type.Literal("deny"),
|
|
13537
|
-
Type.Literal("allowlist"),
|
|
13538
|
-
Type.Literal("full")
|
|
13539
|
-
]);
|
|
13540
13678
|
const ExecApprovalPolicySnapshotSchema = closedObject({
|
|
13541
|
-
|
|
13542
|
-
ask: Type.Union([
|
|
13543
|
-
Type.Literal("off"),
|
|
13544
|
-
Type.Literal("on-miss"),
|
|
13545
|
-
Type.Literal("always")
|
|
13546
|
-
]),
|
|
13547
|
-
askFallback: ExecApprovalPolicySecuritySchema,
|
|
13548
|
-
autoAllowSkills: Type.Boolean(),
|
|
13679
|
+
...ExecApprovalsResolvedDefaultsSchema.properties,
|
|
13549
13680
|
allowlistRules: Type.Array(closedObject({
|
|
13550
13681
|
pattern: Type.String(),
|
|
13551
13682
|
argPattern: Type.Optional(Type.String()),
|
|
@@ -13665,7 +13796,7 @@ const ExecApprovalGrantsRevokeResultSchema = closedObject({ outcome: Type.Union(
|
|
|
13665
13796
|
Type.Literal("not-found")
|
|
13666
13797
|
]) });
|
|
13667
13798
|
//#endregion
|
|
13668
|
-
//#region src/schema/devices.ts
|
|
13799
|
+
//#region packages/gateway-protocol/src/schema/devices.ts
|
|
13669
13800
|
/**
|
|
13670
13801
|
* Device pairing and token-management protocol schemas.
|
|
13671
13802
|
*
|
|
@@ -13883,7 +14014,7 @@ const DevicePairSetupCodeResultSchema = closedObject({
|
|
|
13883
14014
|
expiresAtMs: Type.Optional(Type.Integer({ minimum: 0 }))
|
|
13884
14015
|
});
|
|
13885
14016
|
//#endregion
|
|
13886
|
-
//#region src/schema/desktop.ts
|
|
14017
|
+
//#region packages/gateway-protocol/src/schema/desktop.ts
|
|
13887
14018
|
const DesktopSourceSchema = Type.Union([
|
|
13888
14019
|
closedObject({ kind: Type.Literal("host") }),
|
|
13889
14020
|
closedObject({
|
|
@@ -13926,6 +14057,13 @@ const DesktopObserveResultSchema = closedObject({
|
|
|
13926
14057
|
wsPath: NonEmptyString,
|
|
13927
14058
|
expiresAtMs: Type.Integer({ minimum: 0 }),
|
|
13928
14059
|
control: Type.Boolean(),
|
|
14060
|
+
audio: Type.Optional(closedObject({
|
|
14061
|
+
wsPath: NonEmptyString,
|
|
14062
|
+
encoding: Type.Literal("pcm-s16le"),
|
|
14063
|
+
sampleRate: Type.Literal(48e3),
|
|
14064
|
+
channels: Type.Literal(2)
|
|
14065
|
+
})),
|
|
14066
|
+
audioUnavailableReason: Type.Optional(Type.Literal("setup-unavailable")),
|
|
13929
14067
|
canResize: Type.Optional(Type.Boolean()),
|
|
13930
14068
|
vncPassword: Type.Optional(NonEmptyString),
|
|
13931
14069
|
auth: Type.Optional(Type.String({ enum: [
|
|
@@ -13945,7 +14083,7 @@ const DesktopLaunchParamsSchema = closedObject({
|
|
|
13945
14083
|
const DesktopReleaseParamsSchema = closedObject({ wsPath: NonEmptyString });
|
|
13946
14084
|
const DesktopReleaseResultSchema = closedObject({ released: Type.Boolean() });
|
|
13947
14085
|
//#endregion
|
|
13948
|
-
//#region src/schema/fs.ts
|
|
14086
|
+
//#region packages/gateway-protocol/src/schema/fs.ts
|
|
13949
14087
|
const FsListDirParamsSchema = closedObject({
|
|
13950
14088
|
/** Absolute directory to list; for non-admin Gateway callers, omission means the first configured agent workspace. */
|
|
13951
14089
|
path: Type.Optional(NonEmptyString),
|
|
@@ -13968,11 +14106,11 @@ const FsListDirResultSchema = closedObject({
|
|
|
13968
14106
|
entries: Type.Array(FsDirEntrySchema)
|
|
13969
14107
|
});
|
|
13970
14108
|
//#endregion
|
|
13971
|
-
//#region src/schema/hooks.ts
|
|
14109
|
+
//#region packages/gateway-protocol/src/schema/hooks.ts
|
|
13972
14110
|
/** Request payload for one agent's live Gateway hook status report. */
|
|
13973
14111
|
const HooksStatusParamsSchema = closedObject({ agentId: Type.Optional(NonEmptyString) });
|
|
13974
14112
|
//#endregion
|
|
13975
|
-
//#region src/node-presence.ts
|
|
14113
|
+
//#region packages/gateway-protocol/src/node-presence.ts
|
|
13976
14114
|
/** Canonical reasons accepted from native/background node presence events. */
|
|
13977
14115
|
const NODE_PRESENCE_ALIVE_REASONS = {
|
|
13978
14116
|
BACKGROUND: "background",
|
|
@@ -13983,7 +14121,7 @@ const NODE_PRESENCE_ALIVE_REASONS = {
|
|
|
13983
14121
|
CONNECT: "connect"
|
|
13984
14122
|
};
|
|
13985
14123
|
//#endregion
|
|
13986
|
-
//#region src/schema/nodes.ts
|
|
14124
|
+
//#region packages/gateway-protocol/src/schema/nodes.ts
|
|
13987
14125
|
const NodePluginToolNameSchema = Type.String({
|
|
13988
14126
|
minLength: 1,
|
|
13989
14127
|
maxLength: 64,
|
|
@@ -14190,8 +14328,13 @@ const NodeInvokeInputEventSchema = closedObject({
|
|
|
14190
14328
|
seq: Type.Integer({ minimum: 0 }),
|
|
14191
14329
|
payloadJSON: Type.String({ maxLength: 16384 })
|
|
14192
14330
|
});
|
|
14331
|
+
/** Event payload used by the gateway to cancel one active node invoke. */
|
|
14332
|
+
const NodeInvokeCancelEventSchema = closedObject({
|
|
14333
|
+
invokeId: NonEmptyString,
|
|
14334
|
+
nodeId: NonEmptyString
|
|
14335
|
+
});
|
|
14193
14336
|
//#endregion
|
|
14194
|
-
//#region src/schema/push.ts
|
|
14337
|
+
//#region packages/gateway-protocol/src/schema/push.ts
|
|
14195
14338
|
/**
|
|
14196
14339
|
* Push-notification protocol schemas.
|
|
14197
14340
|
*
|
|
@@ -14232,8 +14375,7 @@ const WebPushNotificationCategorySchema = Type.String({ enum: [
|
|
|
14232
14375
|
"agent-finished",
|
|
14233
14376
|
"agent-question",
|
|
14234
14377
|
"human-mentioned",
|
|
14235
|
-
"scheduled-task-failed"
|
|
14236
|
-
"background-task-failed"
|
|
14378
|
+
"scheduled-task-failed"
|
|
14237
14379
|
] });
|
|
14238
14380
|
const WebPushDetailLevelSchema = Type.String({ enum: [
|
|
14239
14381
|
"private",
|
|
@@ -14245,8 +14387,7 @@ const WebPushCategoryPreferencesSchema = closedObject({
|
|
|
14245
14387
|
agentFinished: Type.Boolean(),
|
|
14246
14388
|
agentQuestion: Type.Boolean(),
|
|
14247
14389
|
humanMentioned: Type.Optional(Type.Boolean()),
|
|
14248
|
-
scheduledTaskFailed: Type.Boolean()
|
|
14249
|
-
backgroundTaskFailed: Type.Boolean()
|
|
14390
|
+
scheduledTaskFailed: Type.Boolean()
|
|
14250
14391
|
});
|
|
14251
14392
|
const WebPushQuietHoursSchema = closedObject({
|
|
14252
14393
|
enabled: Type.Boolean(),
|
|
@@ -14280,8 +14421,7 @@ const WebPushDevicePreferencesSchema = closedObject({
|
|
|
14280
14421
|
agentFinished: Type.Optional(Type.Boolean()),
|
|
14281
14422
|
agentQuestion: Type.Optional(Type.Boolean()),
|
|
14282
14423
|
humanMentioned: Type.Optional(Type.Boolean()),
|
|
14283
|
-
scheduledTaskFailed: Type.Optional(Type.Boolean())
|
|
14284
|
-
backgroundTaskFailed: Type.Optional(Type.Boolean())
|
|
14424
|
+
scheduledTaskFailed: Type.Optional(Type.Boolean())
|
|
14285
14425
|
})),
|
|
14286
14426
|
detailLevel: Type.Optional(WebPushDetailLevelSchema),
|
|
14287
14427
|
quietHours: Type.Optional(WebPushQuietHoursSchema),
|
|
@@ -14332,7 +14472,7 @@ const WebPushPreferencesSetParamsSchema = Type.Union([closedObject({
|
|
|
14332
14472
|
preferences: WebPushDevicePreferencesSchema
|
|
14333
14473
|
})]);
|
|
14334
14474
|
//#endregion
|
|
14335
|
-
//#region src/schema/questions.ts
|
|
14475
|
+
//#region packages/gateway-protocol/src/schema/questions.ts
|
|
14336
14476
|
const QuestionIdSchema = Type.String({ pattern: "^[a-z][a-z0-9_]*$" });
|
|
14337
14477
|
const QuestionResolutionIdSchema = withSince("2026.8", Type.String({
|
|
14338
14478
|
minLength: 1,
|
|
@@ -14479,12 +14619,12 @@ const QuestionResolvedEventSchema = withSince("2026.7", Type.Union([
|
|
|
14479
14619
|
})
|
|
14480
14620
|
]));
|
|
14481
14621
|
//#endregion
|
|
14482
|
-
//#region src/schema/session-placement-state.ts
|
|
14622
|
+
//#region packages/gateway-protocol/src/schema/session-placement-state.ts
|
|
14483
14623
|
function isCloudWorkerPlacementState(state) {
|
|
14484
14624
|
return state !== void 0 && state !== "local" && state !== "reclaimed";
|
|
14485
14625
|
}
|
|
14486
14626
|
//#endregion
|
|
14487
|
-
//#region src/schema/session-placement.ts
|
|
14627
|
+
//#region packages/gateway-protocol/src/schema/session-placement.ts
|
|
14488
14628
|
/** Durable gateway ownership states for one session execution placement.
|
|
14489
14629
|
* The literal list stays explicit because Type.Union needs a tuple for
|
|
14490
14630
|
* Static inference (a mapped array collapses Static to never); the guard
|
|
@@ -14561,6 +14701,25 @@ const SessionPlacementDiskSpaceSchema = closedObject({
|
|
|
14561
14701
|
maximum: Number.MAX_SAFE_INTEGER
|
|
14562
14702
|
})
|
|
14563
14703
|
});
|
|
14704
|
+
const SessionPlacementWorkerRuntimeInstallSchema = closedObject({
|
|
14705
|
+
phase: Type.Union([Type.Literal("transferring"), Type.Literal("installing")]),
|
|
14706
|
+
transferredBytes: Type.Integer({
|
|
14707
|
+
minimum: 0,
|
|
14708
|
+
maximum: Number.MAX_SAFE_INTEGER
|
|
14709
|
+
}),
|
|
14710
|
+
totalBytes: Type.Integer({
|
|
14711
|
+
minimum: 1,
|
|
14712
|
+
maximum: Number.MAX_SAFE_INTEGER
|
|
14713
|
+
}),
|
|
14714
|
+
startedAtMs: Type.Integer({
|
|
14715
|
+
minimum: 0,
|
|
14716
|
+
maximum: Number.MAX_SAFE_INTEGER
|
|
14717
|
+
}),
|
|
14718
|
+
updatedAtMs: Type.Integer({
|
|
14719
|
+
minimum: 0,
|
|
14720
|
+
maximum: Number.MAX_SAFE_INTEGER
|
|
14721
|
+
})
|
|
14722
|
+
});
|
|
14564
14723
|
const SessionPlacementRunnerSchema = closedObject({
|
|
14565
14724
|
kind: Type.Literal("device"),
|
|
14566
14725
|
status: Type.Union([Type.Literal("available"), Type.Literal("offline")]),
|
|
@@ -14652,7 +14811,8 @@ const ProvisioningSessionPlacementSchema = closedObject({
|
|
|
14652
14811
|
state: Type.Literal("provisioning"),
|
|
14653
14812
|
...SessionPlacementTimingProperties,
|
|
14654
14813
|
...SessionPlacementIdentityProperties,
|
|
14655
|
-
environmentId: Type.Optional(NonEmptyString)
|
|
14814
|
+
environmentId: Type.Optional(NonEmptyString),
|
|
14815
|
+
workerRuntimeInstall: Type.Optional(SessionPlacementWorkerRuntimeInstallSchema)
|
|
14656
14816
|
});
|
|
14657
14817
|
const SyncingSessionPlacementSchema = closedObject({
|
|
14658
14818
|
state: Type.Literal("syncing"),
|
|
@@ -14672,7 +14832,8 @@ const StartingSessionPlacementSchema = closedObject({
|
|
|
14672
14832
|
const ActiveWorkerSessionPlacementSchema = closedObject({
|
|
14673
14833
|
...workerOwnedSessionPlacementProperties("active"),
|
|
14674
14834
|
...SessionPlacementWorkspaceReconciliationProperties,
|
|
14675
|
-
runner: Type.Optional(SessionPlacementRunnerSchema)
|
|
14835
|
+
runner: Type.Optional(SessionPlacementRunnerSchema),
|
|
14836
|
+
workerRuntimeInstall: Type.Optional(SessionPlacementWorkerRuntimeInstallSchema)
|
|
14676
14837
|
});
|
|
14677
14838
|
const DrainingSessionPlacementSchema = closedObject({
|
|
14678
14839
|
...workerOwnedSessionPlacementProperties("draining"),
|
|
@@ -14689,7 +14850,8 @@ const FailedSessionPlacementSchema = closedObject({
|
|
|
14689
14850
|
...SessionPlacementTimingProperties,
|
|
14690
14851
|
...TerminalSessionPlacementProperties,
|
|
14691
14852
|
recoveryError: NonEmptyString,
|
|
14692
|
-
recoveryAction: Type.Optional(Type.Enum(["restart", "stop-first"], { type: "string" }))
|
|
14853
|
+
recoveryAction: Type.Optional(Type.Enum(["restart", "stop-first"], { type: "string" })),
|
|
14854
|
+
retryOnSend: Type.Optional(Type.Literal(true))
|
|
14693
14855
|
});
|
|
14694
14856
|
/** Gateway-visible placement projection; `state` remains the closed discriminator. */
|
|
14695
14857
|
const SessionPlacementSchema = Type.Union([
|
|
@@ -14851,6 +15013,7 @@ const SessionsMoveResultSchema = closedObject({
|
|
|
14851
15013
|
const SessionPlacementProtocolSchemas = {
|
|
14852
15014
|
SessionPlacementState: SessionPlacementStateSchema,
|
|
14853
15015
|
SessionPlacementDiskSpace: SessionPlacementDiskSpaceSchema,
|
|
15016
|
+
SessionPlacementWorkerRuntimeInstall: SessionPlacementWorkerRuntimeInstallSchema,
|
|
14854
15017
|
SessionPlacementRunner: SessionPlacementRunnerSchema,
|
|
14855
15018
|
SessionPlacementMachine: SessionPlacementMachineSchema,
|
|
14856
15019
|
LocalSessionPlacement: LocalSessionPlacementSchema,
|
|
@@ -14881,7 +15044,7 @@ const SessionPlacementProtocolSchemas = {
|
|
|
14881
15044
|
SessionsMoveResult: SessionsMoveResultSchema
|
|
14882
15045
|
};
|
|
14883
15046
|
//#endregion
|
|
14884
|
-
//#region src/schema/session-discussion.ts
|
|
15047
|
+
//#region packages/gateway-protocol/src/schema/session-discussion.ts
|
|
14885
15048
|
const SessionDiscussionStateSchema = Type.Union([
|
|
14886
15049
|
Type.Literal("none"),
|
|
14887
15050
|
Type.Literal("available"),
|
|
@@ -14903,7 +15066,7 @@ const SessionDiscussionOpenParamsSchema = closedObject({
|
|
|
14903
15066
|
const SessionDiscussionInfoResultSchema = SessionDiscussionInfoSchema;
|
|
14904
15067
|
const SessionDiscussionOpenResultSchema = SessionDiscussionInfoSchema;
|
|
14905
15068
|
//#endregion
|
|
14906
|
-
//#region src/schema/sessions-resolve.ts
|
|
15069
|
+
//#region packages/gateway-protocol/src/schema/sessions-resolve.ts
|
|
14907
15070
|
/** Resolves a session by key, raw session id, label, short URL id, or parent/agent scope. */
|
|
14908
15071
|
const SessionsResolveParamsSchema = closedObject({
|
|
14909
15072
|
key: Type.Optional(NonEmptyString),
|
|
@@ -14940,7 +15103,7 @@ const SessionsResolveResultSchema = Type.Union([closedObject({
|
|
|
14940
15103
|
candidates: Type.Optional(Type.Array(SessionsResolveCandidateSchema, { maxItems: 10 }))
|
|
14941
15104
|
})]);
|
|
14942
15105
|
//#endregion
|
|
14943
|
-
//#region src/schema/sessions-viewer-presence.ts
|
|
15106
|
+
//#region packages/gateway-protocol/src/schema/sessions-viewer-presence.ts
|
|
14944
15107
|
/** Maximum sessions one connection may declare as concurrently visible. */
|
|
14945
15108
|
const SESSION_VIEWER_PRESENCE_MAX_KEYS = 32;
|
|
14946
15109
|
/** Replaces the sessions this connection is currently rendering. */
|
|
@@ -14951,7 +15114,7 @@ const SessionsViewerPresenceSetParamsSchema = closedObject({
|
|
|
14951
15114
|
/** Canonical session keys retained for this connection's viewer presence. */
|
|
14952
15115
|
const SessionsViewerPresenceSetResultSchema = closedObject({ sessionKeys: Type.Array(ChatSendSessionKeyString, { maxItems: 32 }) });
|
|
14953
15116
|
//#endregion
|
|
14954
|
-
//#region src/schema/system-info.ts
|
|
15117
|
+
//#region packages/gateway-protocol/src/schema/system-info.ts
|
|
14955
15118
|
/** Empty request payload for Gateway host system information. */
|
|
14956
15119
|
const SystemInfoParamsSchema = closedObject({});
|
|
14957
15120
|
const UtilityModelStatusSchema = Type.Union([
|
|
@@ -15004,7 +15167,7 @@ const SystemInfoResultSchema = closedObject({
|
|
|
15004
15167
|
defaultAgentUtilityModel: Type.Optional(UtilityModelStatusSchema)
|
|
15005
15168
|
});
|
|
15006
15169
|
//#endregion
|
|
15007
|
-
//#region src/schema/task-suggestions.ts
|
|
15170
|
+
//#region packages/gateway-protocol/src/schema/task-suggestions.ts
|
|
15008
15171
|
const TaskIdSchema = Type.String({
|
|
15009
15172
|
minLength: 1,
|
|
15010
15173
|
maxLength: 128
|
|
@@ -15111,7 +15274,7 @@ const TaskSuggestionEventSchema = Type.Union([closedObject({
|
|
|
15111
15274
|
resolution: TaskSuggestionResolutionSchema
|
|
15112
15275
|
})]);
|
|
15113
15276
|
//#endregion
|
|
15114
|
-
//#region src/schema/plugin-approvals.ts
|
|
15277
|
+
//#region packages/gateway-protocol/src/schema/plugin-approvals.ts
|
|
15115
15278
|
/**
|
|
15116
15279
|
* Plugin approval schemas.
|
|
15117
15280
|
*
|
|
@@ -15157,6 +15320,10 @@ const PluginApprovalRequestParamsSchema = closedObject({
|
|
|
15157
15320
|
})),
|
|
15158
15321
|
toolName: Type.Optional(nullableMetadata(Type.String())),
|
|
15159
15322
|
toolCallId: Type.Optional(nullableMetadata(Type.String())),
|
|
15323
|
+
policySubject: Type.Optional(closedObject({
|
|
15324
|
+
pluginKey: NonEmptyString,
|
|
15325
|
+
tool: Type.Optional(NonEmptyString)
|
|
15326
|
+
})),
|
|
15160
15327
|
mcpTool: Type.Optional(closedObject({
|
|
15161
15328
|
server: Type.String({
|
|
15162
15329
|
minLength: 1,
|
|
@@ -15199,7 +15366,7 @@ const PluginApprovalResolveParamsSchema = closedObject({
|
|
|
15199
15366
|
reviewer: Type.Optional(ApprovalChannelReviewerSchema)
|
|
15200
15367
|
});
|
|
15201
15368
|
//#endregion
|
|
15202
|
-
//#region src/schema/portals.ts
|
|
15369
|
+
//#region packages/gateway-protocol/src/schema/portals.ts
|
|
15203
15370
|
const PortalSummaryIdentityFields = {
|
|
15204
15371
|
id: NonEmptyString,
|
|
15205
15372
|
title: NonEmptyString,
|
|
@@ -15249,9 +15416,23 @@ const PortalCloseParamsSchema = closedObject({
|
|
|
15249
15416
|
...PortalEnvironmentFields
|
|
15250
15417
|
});
|
|
15251
15418
|
const PortalCloseResultSchema = closedObject({ closed: Type.Boolean() });
|
|
15419
|
+
const SessionPortalFields = {
|
|
15420
|
+
sessionKey: NonEmptyString,
|
|
15421
|
+
agentId: Type.Optional(NonEmptyString),
|
|
15422
|
+
environmentId: NonEmptyString
|
|
15423
|
+
};
|
|
15424
|
+
const SessionPortalListParamsSchema = closedObject(SessionPortalFields);
|
|
15425
|
+
const SessionPortalOpenParamsSchema = closedObject({
|
|
15426
|
+
...PortalOpenParamsSchema.properties,
|
|
15427
|
+
...SessionPortalFields
|
|
15428
|
+
});
|
|
15429
|
+
const SessionPortalCloseParamsSchema = closedObject({
|
|
15430
|
+
...PortalCloseParamsSchema.properties,
|
|
15431
|
+
...SessionPortalFields
|
|
15432
|
+
});
|
|
15252
15433
|
const PortalChangedEventSchema = closedObject({ portals: Type.Array(PortalSummarySchema) });
|
|
15253
15434
|
//#endregion
|
|
15254
|
-
//#region src/schema/worktrees.ts
|
|
15435
|
+
//#region packages/gateway-protocol/src/schema/worktrees.ts
|
|
15255
15436
|
const WorktreeNameSchema = Type.String({ pattern: "^[a-z0-9][a-z0-9-]{0,63}$" });
|
|
15256
15437
|
const WorktreeRunEndCleanupSchema = Type.Union([closedObject({
|
|
15257
15438
|
outcome: Type.String({ enum: [
|
|
@@ -15335,7 +15516,7 @@ const WorktreesGcResultSchema = closedObject({
|
|
|
15335
15516
|
snapshotsPruned: Type.Integer({ minimum: 0 })
|
|
15336
15517
|
});
|
|
15337
15518
|
//#endregion
|
|
15338
|
-
//#region src/schema/tools-catalog.ts
|
|
15519
|
+
//#region packages/gateway-protocol/src/schema/tools-catalog.ts
|
|
15339
15520
|
/** Reads the configured tool catalog for an agent. */
|
|
15340
15521
|
const ToolsCatalogParamsSchema = closedObject({
|
|
15341
15522
|
agentId: Type.Optional(NonEmptyString),
|
|
@@ -15366,6 +15547,12 @@ const ToolCatalogEntrySchema = closedObject({
|
|
|
15366
15547
|
])),
|
|
15367
15548
|
tags: Type.Optional(Type.Array(NonEmptyString)),
|
|
15368
15549
|
fullDescription: Type.Optional(Type.String()),
|
|
15550
|
+
parameters: Type.Optional(Type.Array(closedObject({
|
|
15551
|
+
name: NonEmptyString,
|
|
15552
|
+
required: Type.Boolean(),
|
|
15553
|
+
type: Type.Optional(NonEmptyString),
|
|
15554
|
+
description: Type.Optional(Type.String())
|
|
15555
|
+
}))),
|
|
15369
15556
|
defaultProfiles: Type.Array(Type.Union([
|
|
15370
15557
|
Type.Literal("minimal"),
|
|
15371
15558
|
Type.Literal("coding"),
|
|
@@ -15387,5 +15574,96 @@ const ToolsCatalogResultSchema = closedObject({
|
|
|
15387
15574
|
profiles: Type.Array(ToolCatalogProfileSchema),
|
|
15388
15575
|
groups: Type.Array(ToolCatalogGroupSchema)
|
|
15389
15576
|
});
|
|
15577
|
+
/** Reads the effective tool set for one session. */
|
|
15578
|
+
const ToolsEffectiveParamsSchema = closedObject({
|
|
15579
|
+
agentId: Type.Optional(NonEmptyString),
|
|
15580
|
+
sessionKey: NonEmptyString
|
|
15581
|
+
});
|
|
15582
|
+
/** Effective tool entry after session/profile/channel/plugin filtering. */
|
|
15583
|
+
const ToolsEffectiveEntrySchema = closedObject({
|
|
15584
|
+
id: NonEmptyString,
|
|
15585
|
+
label: NonEmptyString,
|
|
15586
|
+
description: Type.String(),
|
|
15587
|
+
rawDescription: Type.String(),
|
|
15588
|
+
source: Type.Union([
|
|
15589
|
+
Type.Literal("core"),
|
|
15590
|
+
Type.Literal("plugin"),
|
|
15591
|
+
Type.Literal("channel"),
|
|
15592
|
+
Type.Literal("mcp")
|
|
15593
|
+
]),
|
|
15594
|
+
pluginId: Type.Optional(NonEmptyString),
|
|
15595
|
+
channelId: Type.Optional(NonEmptyString),
|
|
15596
|
+
mcpServer: Type.Optional(NonEmptyString),
|
|
15597
|
+
mcpToolName: Type.Optional(NonEmptyString),
|
|
15598
|
+
deniedBySession: Type.Optional(Type.Literal(true)),
|
|
15599
|
+
risk: Type.Optional(Type.Union([
|
|
15600
|
+
Type.Literal("low"),
|
|
15601
|
+
Type.Literal("medium"),
|
|
15602
|
+
Type.Literal("high")
|
|
15603
|
+
])),
|
|
15604
|
+
tags: Type.Optional(Type.Array(NonEmptyString))
|
|
15605
|
+
});
|
|
15606
|
+
/** Effective tool group shown to runtime/session callers. */
|
|
15607
|
+
const ToolsEffectiveGroupSchema = closedObject({
|
|
15608
|
+
id: Type.Union([
|
|
15609
|
+
Type.Literal("core"),
|
|
15610
|
+
Type.Literal("plugin"),
|
|
15611
|
+
Type.Literal("channel"),
|
|
15612
|
+
Type.Literal("mcp")
|
|
15613
|
+
]),
|
|
15614
|
+
label: NonEmptyString,
|
|
15615
|
+
source: Type.Union([
|
|
15616
|
+
Type.Literal("core"),
|
|
15617
|
+
Type.Literal("plugin"),
|
|
15618
|
+
Type.Literal("channel"),
|
|
15619
|
+
Type.Literal("mcp")
|
|
15620
|
+
]),
|
|
15621
|
+
tools: Type.Array(ToolsEffectiveEntrySchema)
|
|
15622
|
+
});
|
|
15623
|
+
/** Notice explaining runtime filtering such as quarantined tool schemas. */
|
|
15624
|
+
const ToolsEffectiveNoticeSchema = closedObject({
|
|
15625
|
+
id: NonEmptyString,
|
|
15626
|
+
severity: Type.Union([Type.Literal("info"), Type.Literal("warning")]),
|
|
15627
|
+
message: Type.String(),
|
|
15628
|
+
servers: Type.Optional(Type.Array(NonEmptyString))
|
|
15629
|
+
});
|
|
15630
|
+
/** Effective tool set for a session, including profile and filtering notices. */
|
|
15631
|
+
const ToolAccessDiagnosticsSchema = closedObject({
|
|
15632
|
+
checked: Type.Union([Type.Literal("local-config"), Type.Literal("live-session")]),
|
|
15633
|
+
profiles: Type.Array(closedObject({
|
|
15634
|
+
profile: NonEmptyString,
|
|
15635
|
+
source: NonEmptyString,
|
|
15636
|
+
active: Type.Boolean()
|
|
15637
|
+
})),
|
|
15638
|
+
tools: Type.Array(closedObject({
|
|
15639
|
+
id: NonEmptyString,
|
|
15640
|
+
status: Type.Union([
|
|
15641
|
+
Type.Literal("allowed"),
|
|
15642
|
+
Type.Literal("excluded"),
|
|
15643
|
+
Type.Literal("available"),
|
|
15644
|
+
Type.Literal("unavailable")
|
|
15645
|
+
]),
|
|
15646
|
+
reasons: Type.Array(closedObject({
|
|
15647
|
+
kind: Type.Union([
|
|
15648
|
+
Type.Literal("profile"),
|
|
15649
|
+
Type.Literal("deny"),
|
|
15650
|
+
Type.Literal("allowlist"),
|
|
15651
|
+
Type.Literal("session"),
|
|
15652
|
+
Type.Literal("runtime")
|
|
15653
|
+
]),
|
|
15654
|
+
label: NonEmptyString,
|
|
15655
|
+
source: Type.Optional(NonEmptyString),
|
|
15656
|
+
profile: Type.Optional(NonEmptyString)
|
|
15657
|
+
})),
|
|
15658
|
+
alsoAllowPath: Type.Optional(NonEmptyString)
|
|
15659
|
+
}))
|
|
15660
|
+
});
|
|
15661
|
+
const ToolsEffectiveResultSchema = closedObject({
|
|
15662
|
+
agentId: NonEmptyString,
|
|
15663
|
+
profile: NonEmptyString,
|
|
15664
|
+
groups: Type.Array(ToolsEffectiveGroupSchema),
|
|
15665
|
+
notices: Type.Optional(Type.Array(ToolsEffectiveNoticeSchema)),
|
|
15666
|
+
toolAccess: Type.Optional(ToolAccessDiagnosticsSchema)
|
|
15667
|
+
});
|
|
15390
15668
|
//#endregion
|
|
15391
|
-
export { SessionDiscussionStateSchema as $, errorShape as $S, ControlUiLinkReaderDescriptorSchema as $_, AgentIdentityResultSchema as $a, SkillsSkillCardResultSchema as $b, SessionsPatchManyResultSchema as $c, BoardCanvasDocumentSourceSchema as $d, TalkVoiceSelectionSchema as $f, PluginRuntimeApplicationSchema as $g, TerminalAckResultSchema as $h, TalkSessionCancelOutputResultSchema as $i, projectChatErrorDetail as $l, WorkerTranscriptCommitParamsSchema as $m, DeviceTokenRotateResultSchema as $n, SessionSuggestionActionSchema as $o, WorkerInferenceModelRefSchema as $p, SystemAgentSetupAuthStartParamsSchema as $r, SessionsAssignOwnerResultSchema as $s, WebPushVapidPublicKeyParamsSchema as $t, UpdateReportParamsSchema as $u, UsersGitHubStatusResultSchema as $v, SecretsResolveResultSchema as $x, AgentsFilesGetParamsSchema as $y, TaskSuggestionResolutionSchema as A, SessionLabelString as AC, WorkerMachineOptionsSchema as AS, PluginsSessionActionParamsSchema as A_, AuditActivityAgentRunV1Schema as Aa, SkillsInstallParamsSchema as Ab, SessionsGroupsListResultSchema as Ac, TranscriptsSummarizeParamsSchema as Ad, BoardWidgetGeneratedIdentitySchema as Af, SessionsCatalogReadParamsSchema as Ag, ApprovalResolveResultSchema as Ah, ChannelsPairingListResultSchema as Ai, ChatEventSchema as Al, WorkerAdmissionResponseFrameSchema as Am, FsListDirParamsSchema as An, ProjectsAddParamsSchema as Ao, SkillsLibraryUploadParamsSchema as Ap, CronListParamsSchema as Ar, SESSION_OBSERVER_HEALTH_VALUES as As, QuestionRequestQuestionSchema as At, GatewaySuspendPrepareParamsSchema as Au, UserModelAccountSchema as Av, ToolsGitHubStatusResultSchema as Ax, UsersUnlinkAuthProfileResultSchema as Ay, SystemInfoParamsSchema as B, GitHubPublicationSelectionRejectedErrorDetailsSchema as BS, PluginsInstallProgressEventSchema as B_, ArtifactsDownloadResultSchema as Ba, SkillsProposalInspectResultSchema as Bb, SessionsPluginPatchParamsSchema as Bc, ProgressCardRefreshResultSchema as Bd, BoardWidgetPluginPropsSchema as Bf, PluginCatalogInstallActionSchema as Bg, PaymentApprovalScopeSchema as Bh, TalkClientCreateParamsSchema as Bi, ChatMessageGetParamsSchema as Bl, WorkerLiveEventResultSchema as Bm, DevicePairRejectParamsSchema as Bn, RemoteProjectSchema as Bo, SkillsProposalHistoryStatusParamsSchema as Bp, CronScratchSetResultSchema as Br, SessionFileEntrySchema as Bs, QuestionWaitAnswerParamsSchema as Bt, GatewaySuspendTaskBlockerSchema as Bu, UsersAuthConnectStartParamsSchema as Bv, ModelCatalogProviderOutcomeSchema as Bx, WizardStartParamsSchema as By, PortalListResultSchema as C, ChatSendSessionKeyString as CC, WorkerDesktopLaunchResultSchema as CS, PluginsRefreshParamsSchema as C_, DecisionReceiptV1Schema as Ca, ModelsProbeTargetResultSchema as Cb, SessionsFilesSetResultSchema as Cc, TranscriptsExportResultSchema as Cd, BoardTicketEventParamsSchema as Cf, SessionsCatalogArchiveParamsSchema as Cg, ApprovalGetParamsSchema as Ch, CommandsListResultSchema as Ci, AgentActivityItemSchema as Cl, WORKER_SESSION_TOOLS_PROTOCOL_FEATURE as Cm, NodePresenceAliveReasonSchema as Cn, ProjectCheckoutSchema as Co, SkillLibrarySelectionSchema as Cp, CronAddResultSchema as Cr, SessionPublicShareSetResultSchema as Cs, QuestionGetParamsSchema as Ct, SnapshotSchema as Cu, SessionGitHubStatusParamsSchema as Cv, ToolsGitHubAuthorizeStartParamsSchema as Cx, UsersSetAvatarParamsSchema as Cy, PluginApprovalRequestParamsSchema as D, NonEmptyString as DC, WorkerEnvironmentStateSchema as DS, PluginsSearchParamsSchema as D_, AUDIT_ACTIVITY_KINDS as Da, SkillsBinsResultSchema as Db, SessionsGroupsDefaultsResultSchema as Dc, TranscriptsListResultSchema as Dd, BoardWidgetAppViewResultSchema as Df, SessionsCatalogHostEventSchema as Dg, ApprovalKindSchema as Dh, ChannelsPairingDismissParamsSchema as Di, ChatAttachmentsSchema as Dl, WORKER_TRANSCRIPT_MAX_CONTENT_PARTS as Dm, NODE_PRESENCE_ALIVE_REASONS as Dn, ProjectRecentSchema as Do, SkillsLibraryMutateParamsSchema as Dp, CronGetParamsSchema as Dr, SessionSharingIdentitySchema as Ds, QuestionOptionSchema as Dt, GatewaySuspendHandoffResultSchema as Du, PersonalGitHubStatusSchema as Dv, ToolsGitHubInheritConfigureParamsSchema as Dx, UsersSetRoleParamsSchema as Dy, PortalSummarySchema as E, InputProvenanceSchema as EC, WorkerEnvironmentMetadataSchema as ES, PluginsReloadResultSchema as E_, AUDIT_ACTIVITY_DIRECTIONS as Ea, SkillsBinsParamsSchema as Eb, SessionsGroupsDefaultsParamsSchema as Ec, TranscriptsListParamsSchema as Ed, BoardWidgetAppViewParamsSchema as Ef, SessionsCatalogContinueResultSchema as Eg, ApprovalHistoryResultSchema as Eh, ChannelsPairingApproveResultSchema as Ei, ChatAttachmentSchema as El, WORKER_TRANSCRIPT_MAX_BATCH_MESSAGES as Em, NodeSkillsUpdateParamsSchema as En, ProjectRecentRepositorySchema as Eo, SkillsLibraryListParamsSchema as Ep, CronDeliverySchema as Er, SessionSharingEvidenceEventSchema as Es, QuestionListResultSchema as Et, GatewaySuspendHandoffParamsSchema as Eu, PersonalGitHubGenerationSchema as Ev, ToolsGitHubConfigureParamsSchema as Ex, UsersSetDisplayNameResultSchema as Ey, TaskSuggestionsCreateResultSchema as F, USER_PREFS_PROFILE_KEY_LIMIT as FC, EnvironmentsSessionCreateParamsSchema as FS, PluginsUiDescriptorsParamsSchema as F_, AuditActivityOutboundMessageV1Schema as Fa, SkillsProposalEvaluateParamsSchema as Fb, SessionsGroupsUpdateResultSchema as Fc, ProgressCardGetParamsSchema as Fd, BoardWidgetMcpAppPutContentSchema as Ff, ControlUiPluginTabSchema as Fg, DeniedApprovalSnapshotSchema as Fh, ChannelsStopParamsSchema as Fi, ChatHistoryParamsSchema as Fl, WorkerLiveEventErrorDetailsSchema as Fm, DesktopReleaseParamsSchema as Fn, ProjectsRegisterResultSchema as Fo, validateSkillsLibraryReadParams as Fp, CronRunsParamsSchema as Fr, SessionDiffFileStatusSchema as Fs, QuestionResolvedEventSchema as Ft, GatewaySuspendStatusDrainingResultSchema as Fu, UsersAuthConnectAnswerParamsSchema as Fv, SkillsCuratorActionParamsSchema as Fx, McpAuthLoginParamsSchema as Fy, SessionsResolveCandidateSchema as G, SessionWorkspaceRecoveryRequiredErrorDetailsSchema as GS, PluginInstallTrustSchema as G_, AgentsWorkspaceEntrySchema as Ga, SkillsProposalUpdateParamsSchema as Gb, SessionsRewindResultSchema as Gc, CanvasDocumentPreviewParamsSchema as Gd, BoardWidgetRegisteredContentSchema as Gf, PluginDeclaredSurfaceWideningSchema as Gg, PluginApprovalSeveritySchema as Gh, TalkClientToolCallResultSchema as Gi, ChatSendIntentSchema as Gl, WorkerSessionToolResponseFrameSchema as Gm, DevicePairSetupCodeParamsSchema as Gn, TasksGetParamsSchema as Go, WORKER_INFERENCE_MAX_CONTEXT_MESSAGES as Gp, SystemAgentChatHistoryTurnSchema as Gr, SessionGroupSchema as Gs, WebPushDevicePreferencesSchema as Gt, ConfigSchemaLookupParamsSchema as Gu, UsersGitHubAuthorizeCancelResultSchema as Gv, ChatAccountSelectionSchema as Gx, AgentKindSchema as Gy, SESSION_VIEWER_PRESENCE_MAX_KEYS as H, MissingScopeErrorDetailsSchema as HS, PluginDeclaredSurfaceSchema as H_, ArtifactsGetResultSchema as Ha, SkillsProposalRequestRevisionParamsSchema as Hb, SessionsPreviewParamsSchema as Hc, ProgressCardStepSchema as Hd, BoardWidgetPutContentSchema as Hf, PluginControlUiDescriptorSchema as Hg, PendingSessionApprovalEventSchema as Hh, TalkClientMutationResultSchema as Hi, ChatMetadataParamsSchema as Hl, WorkerPortalParamsSchema as Hm, DevicePairRenameParamsSchema as Hn, TaskSummarySchema as Ho, validateSkillsProposalHistoryStatusParams as Hp, CronUpdateParamsSchema as Hr, SessionFilePreviewKindSchema as Hs, PushTestParamsSchema as Ht, ConfigApplyParamsSchema as Hu, UsersAuthConnectStatusParamsSchema as Hv, ModelRuntimeChoiceSchema as Hx, WizardStatusParamsSchema as Hy, TaskSuggestionsDismissParamsSchema as I, USER_PREFS_VALUE_BYTES as IC, EnvironmentsSessionDestroyParamsSchema as IS, PluginsUiDescriptorsResultSchema as I_, AuditActivityToolActionV1Schema as Ia, SkillsProposalEvaluateResultSchema as Ib, SessionsMessagesSubscribeParamsSchema as Ic, ProgressCardGetResultSchema as Id, BoardWidgetMoveOpSchema as If, ControlUiPluginWidgetKindSchema as Ig, ExecApprovalPresentationSchema as Ih, TalkAgentControlResultSchema as Ii, ChatHistoryResetResultSchema as Il, WorkerLiveEventErrorShapeSchema as Im, DesktopReleaseResultSchema as In, ProjectsRemoveParamsSchema as Io, validateSkillsLibrarySaveParams as Ip, CronScratchGetParamsSchema as Ir, SessionDiffScopeSchema as Is, QuestionSchema as It, GatewaySuspendStatusParamsSchema as Iu, UsersAuthConnectCancelParamsSchema as Iv, SkillsCuratorActionResultSchema as Ix, WizardAnswerSchema as Iy, SessionDiscussionInfoParamsSchema as J, TaskWorktreeSourceRequiredErrorDetailsSchema as JS, PluginCredentialDescriptorSchema as J_, AgentsWorkspaceGetResultSchema as Ja, SkillsSearchParamsSchema as Jb, SessionsSearchHitSchema as Jc, BOARD_CRON_JOB_ID_MAX_LENGTH as Jd, BoardWidgetSchema as Jf, PluginDiscoveryDetailSchema as Jg, StandingGrantApprovalScopeSchema as Jh, TalkConfigResultSchema as Ji, ChatStatusEventSchema as Jl, WorkerSessionsSendResponseFrameSchema as Jm, DevicePairSetupDeliveryUncertainEventSchema as Jn, TasksHistoryResultSchema as Jo, WORKER_INFERENCE_PROTOCOL_FEATURE as Jp, SystemAgentChatResultSchema as Jr, SessionObserverPlanProgressSchema as Js, WebPushPreferencesGetParamsSchema as Jt, ConfigSchemaResponseSchema as Ju, UsersGitHubAuthorizeStartParamsSchema as Jv, SecretStoreEnvEntrySchema as Jx, AgentsCreateParamsSchema as Jy, SessionsResolveParamsSchema as K, SetupAdmissionBusyErrorDetailsSchema as KS, PluginInstalledComponentsSchema as K_, AgentsWorkspaceFileSchema as Ka, SkillsProposalsListParamsSchema as Kb, SessionsSendParamsSchema as Kc, CanvasDocumentViewParamsSchema as Kd, BoardWidgetRemoveOpSchema as Kf, PluginDiscoveryCatalogFactsSchema as Kg, SessionApprovalEventSchema as Kh, TalkClientTranscriptParamsSchema as Ki, ChatSendParamsSchema as Kl, WorkerSessionToolResultSchema as Km, DevicePairSetupCodeResultSchema as Kn, TasksGetResultSchema as Ko, WORKER_INFERENCE_MAX_OUTPUT_TOKENS as Kp, SystemAgentChatParamsSchema as Kr, SessionObserverDigestSchema as Ks, WebPushNotificationCategorySchema as Kt, ConfigSchemaLookupResultSchema as Ku, UsersGitHubAuthorizePollParamsSchema as Kv, GitHubSetupHandleSchema as Kx, AgentOwnershipSchema as Ky, TaskSuggestionsDismissResultSchema as L, isGitCoauthorCreditEnabled as LC, EnvironmentsSessionStatusParamsSchema as LS, PluginsUninstallParamsSchema as L_, findAuditActivityFilterConflict as La, SkillsProposalEventsListParamsSchema as Lb, SessionsMessagesUnsubscribeParamsSchema as Lc, ProgressCardPutParamsSchema as Ld, BoardWidgetNameSchema as Lf, MAX_PLUGIN_RELOAD_TARGETS as Lg, ExpiredApprovalSnapshotSchema as Lh, TalkCatalogParamsSchema as Li, ChatInjectParamsSchema as Ll, WorkerLiveEventParamsSchema as Lm, DesktopSourceSchema as Ln, ProjectsRemoveResultSchema as Lo, validateSkillsLibraryUploadParams as Lp, CronScratchGetResultSchema as Lr, SessionFileBrowserEntrySchema as Ls, QuestionSecretStoreBindingSchema as Lt, GatewaySuspendStatusReadyResultSchema as Lu, UsersAuthConnectCatalogParamsSchema as Lv, SkillsCuratorLiveStatusResultSchema as Lx, WizardCancelParamsSchema as Ly, TaskSuggestionsAcceptParamsSchema as M, GATEWAY_OWNER_PROFILE_ID as MC, WorkerSlotSummarySchema as MS, PluginsSessionActionSuccessResultSchema as M_, AuditActivityInboundMessageV1Schema as Ma, SkillsProposalApplyResultSchema as Mb, SessionsGroupsPutParamsSchema as Mc, PROGRESS_CARD_MAX_STEP_UTF8_BYTES as Md, BoardWidgetHeightModeSchema as Mf, SessionsCatalogStartTerminalParamsSchema as Mg, ApprovalSnapshotSchema as Mh, ChannelsStartParamsSchema as Mi, ChatHistoryActivitySchema as Ml, WorkerHeartbeatParamsSchema as Mm, DesktopLaunchParamsSchema as Mn, ProjectsListParamsSchema as Mo, validateSkillsLibraryImportParams as Mp, CronRemoveParamsSchema as Mr, SessionCompanionExchangeSchema as Ms, QuestionRequestedEventSchema as Mt, GatewaySuspendPrepareResultSchema as Mu, UserProfileAvatarMimeSchema as Mv, ToolsInvokeParamsSchema as Mx, UsersUnlinkChannelIdentityResultSchema as My, TaskSuggestionsAcceptResultSchema as N, GIT_COAUTHOR_PREFERENCE_KEY as NC, WorkerTunnelStatusSchema as NS, PluginsSetEnabledParamsSchema as N_, AuditActivityListParamsSchema as Na, SkillsProposalCreateParamsSchema as Nb, SessionsGroupsRenameParamsSchema as Nc, PROGRESS_CARD_MAX_UTF8_BYTES as Nd, BoardWidgetHtmlContentSchema as Nf, SessionsCatalogStartTerminalResultSchema as Ng, ApprovalTerminalReasonSchema as Nh, ChannelsStatusParamsSchema as Ni, ChatHistoryCursorResultSchema as Nl, WorkerHeartbeatRequestFrameSchema as Nm, DesktopObserveParamsSchema as Nn, ProjectsListResultSchema as No, validateSkillsLibraryListParams as Np, CronRunLogEntrySchema as Nr, SessionDiffCommitSchema as Ns, QuestionResolveParamsSchema as Nt, GatewaySuspendResumeParamsSchema as Nu, UserProfileGitHubIdentitySchema as Nv, ToolsInvokeResultSchema as Nx, UI_APPEARANCE_PREFERENCE_KEYS as Ny, PluginApprovalResolveParamsSchema as O, SecretInputSchema as OC, WorkerExecutionModeSchema as OS, PluginsSearchResultSchema as O_, AUDIT_ACTIVITY_MESSAGE_KIND as Oa, SkillsDetailParamsSchema as Ob, SessionsGroupsDeleteParamsSchema as Oc, TranscriptsStatusParamsSchema as Od, BoardWidgetContentSchema as Of, SessionsCatalogListParamsSchema as Og, ApprovalPresentationSchema as Oh, ChannelsPairingDismissResultSchema as Oi, ChatDeltaEventSchema as Ol, WORKER_TRANSCRIPT_MAX_JSON_DEPTH as Om, HooksStatusParamsSchema as On, ProjectRecordSchema as Oo, SkillsLibraryReadParamsSchema as Op, CronJobSchema as Or, SessionVisibilitySetParamsSchema as Os, QuestionRecordSchema as Ot, GatewaySuspendPrepareBusyResultSchema as Ou, UserChannelIdentityLinkSchema as Ov, ToolsGitHubManagedConfigureParamsSchema as Ox, UsersSetRoleResultSchema as Oy, TaskSuggestionsCreateParamsSchema as P, USER_PREFS_ENTRY_LIMIT as PC, EnvironmentsSessionExecParamsSchema as PS, PluginsSetEnabledResultSchema as P_, AuditActivityListResultSchema as Pa, SkillsProposalDecisionParamsSchema as Pb, SessionsGroupsUpdateParamsSchema as Pc, ProgressCardChangedEventSchema as Pd, BoardWidgetMcpAppContentSchema as Pf, CapabilityConsentErrorDetailsSchema as Pg, CancelledApprovalSnapshotSchema as Ph, ChannelsStatusResultSchema as Pi, ChatHistoryDeltaResultSchema as Pl, WorkerHeartbeatResponseFrameSchema as Pm, DesktopObserveResultSchema as Pn, ProjectsRegisterParamsSchema as Po, validateSkillsLibraryMutateParams as Pp, CronRunParamsSchema as Pr, SessionDiffFileSchema as Ps, QuestionResolveResultSchema as Pt, GatewaySuspendResumeResultSchema as Pu, UserProfileSchema as Pv, SkillCuratorLiveEntrySchema as Px, normalizeUiAppearancePreference as Py, SessionDiscussionOpenResultSchema as Q, buildMissingScopeErrorDetails as QS, validatePluginsCredentialsInspectParams as Q_, AgentIdentityParamsSchema as Qa, SkillsSkillCardParamsSchema as Qb, SessionsPatchManyParamsSchema as Qc, BoardActionParamsSchema as Qd, TalkVoiceGetParamsSchema as Qf, PluginReloadTargetSchema as Qg, isWellFormedApprovalId as Qh, TalkSessionCancelOutputParamsSchema as Qi, LogsTailResultSchema as Ql, WorkerTranscriptCommitErrorShapeSchema as Qm, DeviceTokenRotateParamsSchema as Qn, TasksRecoveryResultSchema as Qo, WorkerInferenceImageContentSchema as Qp, SystemAgentSetupActivateStartResultSchema as Qr, SessionsAssignOwnerParamsSchema as Qs, WebPushUnsubscribeParamsSchema as Qt, UpdateHoldResultSchema as Qu, UsersGitHubStatusParamsSchema as Qv, SecretsResolveParamsSchema as Qx, AgentsFileEntrySchema as Qy, TaskSuggestionsListParamsSchema as R, closedObject as RC, CronJobNotFoundErrorDetailsSchema as RS, PluginsUninstallResultSchema as R_, ArtifactSummarySchema as Ra, SkillsProposalEventsListResultSchema as Rb, SessionsObserverVisibilityParamsSchema as Rc, ProgressCardPutResultSchema as Rd, BoardWidgetPluginContentSchema as Rf, PluginCatalogClawHubInstallSchema as Rg, ExternalPostApprovalScopeSchema as Rh, TalkCatalogResultSchema as Ri, ChatInputConsumptionsSchema as Rl, WorkerLiveEventRequestFrameSchema as Rm, DevicePairApproveParamsSchema as Rn, ProjectsSearchRemoteParamsSchema as Ro, SkillsProposalHistoryScanParamsSchema as Rp, CronScratchSchema as Rr, SessionFileBrowserResultSchema as Rs, QuestionSecretStoreExistingSchema as Rt, GatewaySuspendStatusResultSchema as Ru, UsersAuthConnectCatalogResultSchema as Rv, SkillsCuratorStatusParamsSchema as Rx, WizardNextParamsSchema as Ry, PortalListParamsSchema as S, CHAT_SEND_SESSION_KEY_MAX_LENGTH as SC, WorkerDesktopLaunchParamsSchema as SS, PluginsListResultSchema as S_, DecisionReceiptDisplayV1Schema as Sa, ModelsProbeResultSchema as Sb, SessionsFilesSetParamsSchema as Sc, TranscriptsExportParamsSchema as Sd, BoardTabsReorderOpSchema as Sf, SessionCatalogTranscriptItemSchema as Sg, ApprovalExpiredReasonSchema as Sh, CommandsListParamsSchema as Si, SessionsRecoverResultSchema as Sl, WORKER_RPC_SET_VERSION as Sm, NodePresenceAlivePayloadSchema as Sn, PROJECTS_LIST_MAX_IDENTITY_PROBES as So, SkillLibraryFileSchema as Sp, CronAddParamsSchema as Sr, SessionPublicShareSetParamsSchema as Ss, QuestionAnswersSchema as St, PresenceEntrySchema as Su, SessionGitHubPublishParamsSchema as Sv, ToolsGitHubAuthorizeSlowDownResultSchema as Sx, UsersSelfResultSchema as Sy, PortalOpenResultSchema as T, GatewayClientModeSchema as TC, WorkerDesktopObserveResultSchema as TS, PluginsReloadParamsSchema as T_, PrincipalRefV1Schema as Ta, SkillProposalLifecycleEventSchema as Tb, SessionsForkResultSchema as Tc, TranscriptsGetResultSchema as Td, BoardViewTicketSchema as Tf, SessionsCatalogContinueParamsSchema as Tg, ApprovalHistoryParamsSchema as Th, ChannelsPairingApproveParamsSchema as Ti, ChatAbortedEventSchema as Tl, WORKER_TRANSCRIPT_COMMIT_PROTOCOL_FEATURE as Tm, NodeSkillDescriptorSchema as Tn, ProjectRecentProjectSchema as To, SkillsLibraryImportParamsSchema as Tp, CronDeliveryPreviewSchema as Tr, SessionSharingEventSchema as Ts, QuestionListParamsSchema as Tt, GatewaySuspendBlockerSchema as Tu, PersonalGitHubAccountSchema as Tv, ToolsGitHubAuthorizeSuccessResultSchema as Tx, UsersSetDisplayNameParamsSchema as Ty, SessionsViewerPresenceSetParamsSchema as U, OutboundDeliveryQueuedErrorDetailsSchema as US, PluginHookGrantSchema as U_, ArtifactsListParamsSchema as Ua, SkillsProposalRequestRevisionResultSchema as Ub, SessionsResetParamsSchema as Uc, ProgressCardStepStatusSchema as Ud, BoardWidgetPutParamsSchema as Uf, PluginControlUiDiagnosticSchema as Ug, PluginApprovalExternalResolutionSchema as Uh, TalkClientSteerParamsSchema as Ui, ChatPendingInputsPageSchema as Ul, WorkerPortalResponseFrameSchema as Um, DevicePairRequestedEventSchema as Un, TasksCancelParamsSchema as Uo, ComputerInvokeParamsSchema as Up, SystemAgentChatHistoryParamsSchema as Ur, SessionFileRelevanceSchema as Us, PushTestResultSchema as Ut, ConfigGetParamsSchema as Uu, UsersAuthConnectStatusResultSchema as Uv, ModelsListParamsSchema as Ux, WizardStatusResultSchema as Uy, SystemInfoResultSchema as V, McpAppViewExpiredErrorDetailsSchema as VS, PluginDecisionProviderStatusSchema as V_, ArtifactsGetParamsSchema as Va, SkillsProposalRecordResultSchema as Vb, SessionsPluginPatchResultSchema as Vc, ProgressCardSchema as Vd, BoardWidgetPresentationSchema as Vf, PluginCatalogOfficialInstallSchema as Vg, PendingApprovalSnapshotSchema as Vh, TalkClientCreateResultSchema as Vi, ChatMessageGetResultSchema as Vl, WorkerLiveEventSchema as Vm, DevicePairRemoveParamsSchema as Vn, TASKS_LIST_CURSOR_MAX_LENGTH as Vo, validateSkillsProposalHistoryScanParams as Vp, CronStatusParamsSchema as Vr, SessionFileKindSchema as Vs, QuestionWaitAnswerResultSchema as Vt, GatewaySuspensionSchema as Vu, UsersAuthConnectStartResultSchema as Vv, ModelChoiceSchema as Vx, WizardStartResultSchema as Vy, SessionsViewerPresenceSetResultSchema as W, ProjectCloneErrorDetailsSchema as WS, PluginInspectSourceSchema as W_, ArtifactsListResultSchema as Wa, SkillsProposalReviseParamsSchema as Wb, SessionsRewindParamsSchema as Wc, CANVAS_DOCUMENT_PREVIEW_MAX_BYTES as Wd, BoardWidgetPutResultSchema as Wf, PluginControlUiModuleSchema as Wg, PluginApprovalPresentationSchema as Wh, TalkClientToolCallParamsSchema as Wi, ChatRunStartupPhaseSchema as Wl, WorkerProviderReplayStateSchema as Wm, DevicePairResolvedEventSchema as Wn, TasksCancelResultSchema as Wo, ComputerStatusParamsSchema as Wp, SystemAgentChatHistoryResultSchema as Wr, SessionGroupDefaultsSchema as Ws, WebPushDetailLevelSchema as Wt, ConfigPatchParamsSchema as Wu, UsersGitHubAuthorizeCancelParamsSchema as Wv, ModelsListResultSchema as Wx, WizardStepSchema as Wy, SessionDiscussionInfoSchema as X, UserPrefsLimitExceededErrorDetailsSchema as XS, PluginsCredentialsInspectParamsSchema as X_, AgentsWorkspaceListResultSchema as Xa, SkillsSecurityVerdictsParamsSchema as Xb, SessionsSearchResultSchema as Xc, BOARD_DATA_BINDING_ID_MAX_LENGTH as Xd, TalkVoiceChangeEventSchema as Xf, PluginDiscoveryLocalFactsSchema as Xg, TerminalApprovalSnapshotSchema as Xh, TalkModeParamsSchema as Xi, ChatToolTitlesResultSchema as Xl, WorkerSessionsSpawnResponseFrameSchema as Xm, DevicePairSetupStatusResultSchema as Xn, TasksListResultSchema as Xo, WorkerInferenceCancelRequestFrameSchema as Xp, SystemAgentSetupActivateResultSchema as Xr, SessionWorktreeInfoSchema as Xs, WebPushSubscribeParamsSchema as Xt, UpdateAvailableSchema as Xu, UsersGitHubDisconnectParamsSchema as Xv, SecretsReloadParamsSchema as Xx, AgentsDeleteParamsSchema as Xy, SessionDiscussionInfoResultSchema as Y, UnknownAgentIdErrorDetailsSchema as YS, PluginCredentialInspectionSchema as Y_, AgentsWorkspaceListParamsSchema as Ya, SkillsSearchResultSchema as Yb, SessionsSearchParamsSchema as Yc, BOARD_CRON_TRIGGER_PREFIX as Yd, TALK_VOICE_CHANGE_TIMEOUT_MS as Yf, PluginDiscoveryEntrySchema as Yg, SystemAgentApprovalPresentationSchema as Yh, TalkEventSchema as Yi, ChatToolTitlesParamsSchema as Yl, WorkerSessionsSpawnParamsSchema as Ym, DevicePairSetupStatusParamsSchema as Yn, TasksListParamsSchema as Yo, WORKER_PROTOCOL_MAX_INFERENCE_PAYLOAD_BYTES as Yp, SystemAgentSetupActivateParamsSchema as Yr, SessionOperationEventSchema as Ys, WebPushPreferencesSetParamsSchema as Yt, ConfigSetParamsSchema as Yu, UsersGitHubAuthorizeStartResultSchema as Yv, SecretStoreSecretEntrySchema as Yx, AgentsCreateResultSchema as Yy, SessionDiscussionOpenParamsSchema as Z, WizardNotFoundErrorDetailsSchema as ZS, PluginsCredentialsInspectResultSchema as Z_, AgentEventSchema as Za, SkillsSecurityVerdictsResultSchema as Zb, SESSIONS_PATCH_MANY_MAX_TARGETS as Zc, BOARD_WIDGET_TOOL_MAX_LENGTH as Zd, TalkVoiceCompleteParamsSchema as Zf, PluginJsonValueSchema as Zg, TerminalSessionApprovalEventSchema as Zh, TalkSessionAppendAudioParamsSchema as Zi, LogsTailParamsSchema as Zl, WorkerTranscriptCommitErrorReasonSchema as Zm, DeviceTokenRevokeParamsSchema as Zn, TasksRecoveryParamsSchema as Zo, WorkerInferenceCancelResponseFrameSchema as Zp, SystemAgentSetupActivateStartParamsSchema as Zr, SessionsAbortParamsSchema as Zs, WebPushTestParamsSchema as Zt, UpdateHoldParamsSchema as Zu, UsersGitHubDisconnectResultSchema as Zv, SecretsResolveAssignmentSchema as Zx, AgentsDeleteResultSchema as Zy, WorktreesRemoveResultSchema as _, SessionParticipantIdentitySchema as _C, EnvironmentsStatusResultSchema as _S, PluginsInspectParamsSchema as __, AuditRunIdentityUnknownV1Schema as _a, ModelsAuthRefreshParamsSchema as _b, SessionsFilesGetResultSchema as _c, TRANSCRIPTS_PAGE_DEFAULT as _d, BoardTabCreateOpSchema as _f, SessionCatalogLocatorSchema as _g, ApprovalAllowedReasonSchema as _h, COMMAND_CHOICE_VALUE_MAX_LENGTH as _i, SessionsSetInvolvementParamsSchema as _l, WORKER_PROTOCOL_MAX_FEATURES as _m, NodePendingEnqueueParamsSchema as _n, MigrationProtocolSchemas as _o, UiSplitCommandSchema as _p, ExecApprovalsNodeSetParamsSchema as _r, SessionMemberSchema as _s, SessionsMoveResultSchema as _t, HelloOkSchema as _u, SessionGitHubPublicationNeedsConfirmationSchema as _v, ToolsGitHubAuthorizeIncorrectDeviceCodeResultSchema as _x, UsersPrefsSetParamsSchema as _y, ToolsCatalogResultSchema as a, SessionRowSchema as aC, DesktopAvailabilitySchema as aS, PluginsCatalogCategoriesParamsSchema as a_, TalkSessionSubmitToolResultParamsSchema as aa, AgentsListParamsSchema as ab, SessionsCompactParamsSchema as ac, UpdateRunChangedEventSchema as ad, BoardDataReadParamsSchema as af, TerminalExitEventSchema as ag, WORKER_COMPUTER_PROTOCOL_FEATURE as ah, SystemAgentWizardCancelSchema as ai, SessionsDeleteResultSchema as al, validateWorkerInferenceStartParams as am, NodeInvokeParamsSchema as an, ConversationSendParamsSchema as ao, ThemesGetParamsSchema as ap, ScopeUpgradeResultSchema as ar, SessionSuggestionsAddResultSchema as as, SessionMoveProfileTargetSchema as at, MentionInboxItemSchema as au, SESSION_ICON_SVG_DATA_URL_PREFIX as av, SkillsWorkshopReadParamsSchema as ax, UsersLinkEmailResultSchema as ay, PortalCloseParamsSchema as b, SessionClassificationSchema as bC, RuntimeTargetIssueSchema as bS, PluginsInstallResultSchema as b_, AuditRunInspectParamsSchema as ba, ModelsAuthStatusParamsSchema as bb, SessionsFilesRevealParamsSchema as bc, TranscriptSessionSummarySchema as bd, BoardTabSchema as bf, SessionCatalogSessionSchema as bg, ApprovalDecisionSchema as bh, COMMAND_NAME_MAX_LENGTH as bi, SessionsCreateParamsSchema as bl, WORKER_PROTOCOL_METHODS as bm, NodePluginToolsUpdateParamsSchema as bn, PROJECTS_LIST_DEFAULT_LIMIT as bo, SKILL_LIBRARY_MAX_FILE_BYTES as bp, ExecApprovalsSnapshotSchema as br, SessionMembersListResultSchema as bs, SessionsReclaimResultSchema as bt, ShutdownEventSchema as bu, SessionGitHubPublicationRequestedSchema as bv, ToolsGitHubAuthorizePollParamsSchema as bx, UsersSelectModelAccountResultSchema as by, WorktreeRepositoryStatusSchema as c, SessionSharingRoleSchema as cC, EnvironmentsCreateParamsSchema as cS, PluginsCatalogGetResultSchema as c_, TtsSpeakParamsSchema as ca, AgentsUpdateResultSchema as cb, SessionsCompanionResetParamsSchema as cc, UpdateRunsGetParamsSchema as cd, BoardGetParamsSchema as cf, TerminalOpenParamsSchema as cg, WorkerComputerResultSchema as ch, SystemChangeSourceSchema as ci, SessionsListParamsSchema as cl, WORKER_BUNDLE_PREWARM_VERSION as cm, NodeInvokeResultParamsSchema as cn, ConversationTurnCancelResultSchema as co, ThemesSetParamsSchema as cp, ExecApprovalGrantsListParamsSchema as cr, SessionSuggestionsResolveParamsSchema as cs, SessionPlacementMachineSchema as ct, MentionsDismissParamsSchema as cu, normalizeSessionIconValue as cv, ToolsEffectiveGroupSchema as cx, UsersListChannelIdentitiesParamsSchema as cy, WorktreesCreateParamsSchema as d, SessionsProviderReviewContinueParamsSchema as dC, EnvironmentsDestroyResultSchema as dS, PluginsControlUiChangedEventSchema as d_, WebLoginWaitParamsSchema as da, GitHubIdentityFactsSchema as db, SessionsCompanionStateResultSchema as dc, UpdateRunsListResultSchema as dd, BoardOpSchema as df, TerminalSessionInfoSchema as dg, WORKER_PROTOCOL_MAX_PAYLOAD_BYTES as dh, COMMAND_ALIAS_MAX_ITEMS as di, SessionsGoalMutationResultSchema as dl, WORKER_HEARTBEAT_INTERVAL_MS as dm, NodePairListParamsSchema as dn, ConversationTurnResultSchema as do, UiCommandResultSchema as dp, ExecApprovalGrantsRevokeResultSchema as dr, SessionTypingParamsSchema as ds, SessionPlacementRunnerSchema as dt, UsersMentionableParamsSchema as du, GitHubPublicationSelectionSchema as dv, ToolsEffectiveResultSchema as dx, UsersListModelAccountsResultSchema as dy, missingScopeErrorShape as eC, SecretsStoreDeleteParamsSchema as eS, PluginRuntimeStatusSchema as e_, TalkSessionCloseParamsSchema as ea, AgentsFilesGetResultSchema as eb, SessionsBranchesListParamsSchema as ec, UpdateReportResultSchema as ed, BoardChangedEventSchema as ef, TerminalAttachParamsSchema as eg, WorkerTranscriptCommitRequestFrameSchema as eh, SystemAgentSetupAuthStartResultSchema as ei, SessionsPatchManyTargetSchema as el, WorkerInferenceOptionsSchema as em, NodeDescribeParamsSchema as en, AgentParamsSchema as eo, TalkVoiceSetParamsSchema as ep, ScopeUpgradeApprovedSchema as er, SessionSuggestionEventSchema as es, SessionMoveDeviceTargetSchema as et, HumanMentionSchema as eu, ControlUiLinkReaderMetadataSchema as ev, SkillsStatusParamsSchema as ex, UsersLinkAuthProfileParamsSchema as ey, WorktreesGcParamsSchema as f, SessionActivitySummarySchema as fC, EnvironmentsListParamsSchema as fS, PluginsControlUiListParamsSchema as f_, AuditEventSchema as fa, GitHubIdentityScopeSchema as fb, SessionsCreateResultSchema as fc, TRANSCRIPTS_EXPORT_MAX_BYTES as fd, BoardPluginActionParamsSchema as ff, TerminalUploadParamsSchema as fg, WORKER_PUBLIC_INGRESS_PATH as fh, COMMAND_ARGS_MAX_ITEMS as fi, SessionsGoalUpdateParamsSchema as fl, WORKER_LAUNCH_V2_PROTOCOL_FEATURE as fm, NodePairRejectParamsSchema as fn, MessageActionParamsSchema as fo, UiCommandSchema as fp, ExecApprovalRequestParamsSchema as fr, SessionTypingResultSchema as fs, SessionPlacementSchema as ft, UsersMentionableResultSchema as fu, GitHubPublicationTitleSchema as fv, ToolsGitHubAuthorizeAccessDeniedResultSchema as fx, UsersListParamsSchema as fy, WorktreesRemoveParamsSchema as g, SESSION_PARTICIPANT_LIMIT as gC, EnvironmentsStatusParamsSchema as gS, PluginsControlUiStatusResultSchema as g_, AuditRunIdentityPresentV1Schema as ga, ModelsAuthOrderSetParamsSchema as gb, SessionsFilesGetParamsSchema as gc, TRANSCRIPTS_LIST_MAX as gd, BoardSnapshotSchema as gf, SessionCatalogHostSchema as gg, ApprovalAllowDecisionSchema as gh, COMMAND_CHOICE_LABEL_MAX_LENGTH as gi, SessionsStorageStatusResultSchema as gl, WORKER_PROTOCOL_FEATURES as gm, NodePendingDrainResultSchema as gn, MAX_MEMORY_MIGRATION_ITEMS as go, UiSidebarCommandSchema as gp, ExecApprovalsNodeGetParamsSchema as gr, SessionMemberRemoveParamsSchema as gs, SessionsMoveParamsSchema as gt, GatewayFrameSchema as gu, SessionGitHubPublicationFailedSchema as gv, ToolsGitHubAuthorizeFailedResultSchema as gx, UsersPrefsGetResultSchema as gy, WorktreesListResultSchema as h, SESSION_EXPANDED_PARTICIPANT_LIMIT as hC, EnvironmentsPrepareResultSchema as hS, PluginsControlUiStatusParamsSchema as h_, AuditRunIdentityAmbiguousV1Schema as ha, ModelsAuthLogoutParamsSchema as hb, SessionsDiffResultSchema as hc, TRANSCRIPTS_LEGACY_RESULT_MAX_BYTES as hd, BoardSizeSchema as hf, SessionCatalogDescriptorSchema as hg, AllowedApprovalSnapshotSchema as hh, COMMAND_ARG_NAME_MAX_LENGTH as hi, SessionsStorageParamsSchema as hl, WORKER_PORTAL_PROTOCOL_FEATURE as hm, NodePendingDrainParamsSchema as hn, WakeParamsSchema as ho, UiPanelCommandSchema as hp, ExecApprovalsGetParamsSchema as hr, SessionMemberMutationResultSchema as hs, SessionsDispatchResultSchema as ht, EventFrameSchema as hu, SessionGitHubOptionsResultSchema as hv, ToolsGitHubAuthorizeExpiredResultSchema as hx, UsersPrefsGetParamsSchema as hy, ToolsCatalogParamsSchema as i, SessionPermissionModeSchema as iC, SecretsStoreSetParamsSchema as iS, PluginsCatalogBrowseResultSchema as i_, TalkSessionSteerParamsSchema as ia, AgentsFilesSetResultSchema as ib, SessionsCleanupParamsSchema as ic, UpdateStatusResultSchema as id, BoardCronActionParamsSchema as if, TerminalEventSchema as ig, WorkerTranscriptUserMessageSchema as ih, SystemAgentSetupVerifyResultSchema as ii, SessionsDeleteParamsSchema as il, validateWorkerInferenceEventFrame as im, NodeInvokeInputEventSchema as in, ConversationListResultSchema as io, ThemePaletteSchema as ip, ScopeUpgradeRequestSchema as ir, SessionSuggestionsAddParamsSchema as is, SessionMovePlacementStateSchema as it, MENTION_INBOX_MAX_ITEMS as iu, SESSION_ICON_GLYPH_IDS as iv, SkillsUploadCommitParamsSchema as ix, UsersLinkEmailParamsSchema as iy, TaskSuggestionSchema as j, UserProfileIdSchema as jC, WorkerOperatingSystemSchema as jS, PluginsSessionActionResultSchema as j_, AuditActivityEventV1Schema as ja, SkillsProposalActionParamsSchema as jb, SessionsGroupsMutationResultSchema as jc, PROGRESS_CARD_MAX_STEPS as jd, BoardWidgetGrantParamsSchema as jf, SessionsCatalogReadResultSchema as jg, ApprovalScopeSchema as jh, ChannelsLogoutParamsSchema as ji, ChatFinalEventSchema as jl, WorkerConnectRequestFrameSchema as jm, FsListDirResultSchema as jn, ProjectsAddResultSchema as jo, validateSkillsLibraryActivateParams as jp, CronPacingSchema as jr, SessionBranchSchema as js, QuestionRequestResultSchema as jt, GatewaySuspendPrepareReadyResultSchema as ju, UserProfileAuthLinkSchema as jv, ToolsInvokeErrorSchema as jx, UsersUnlinkChannelIdentityParamsSchema as jy, TaskSuggestionEventSchema as k, SecretRefSchema as kC, WorkerMachineOptionSchema as kS, PluginsSessionActionFailureResultSchema as k_, AUDIT_ACTIVITY_STATUSES as ka, SkillsDetailResultSchema as kb, SessionsGroupsListParamsSchema as kc, TranscriptsStatusResultSchema as kd, BoardWidgetDeclaredSchema as kf, SessionsCatalogListResultSchema as kg, ApprovalResolveParamsSchema as kh, ChannelsPairingListParamsSchema as ki, ChatErrorEventSchema as kl, WorkerAdmissionHandshakeSchema as km, FsDirEntrySchema as kn, ProjectSummarySchema as ko, SkillsLibrarySaveParamsSchema as kp, CronJobStateSchema as kr, SessionVisibilitySetResultSchema as ks, QuestionRequestParamsSchema as kt, GatewaySuspendPrepareDrainingResultSchema as ku, UserChannelIdentitySchema as kv, ToolsGitHubStatusParamsSchema as kx, UsersUnlinkAuthProfileParamsSchema as ky, WorktreesBranchesParamsSchema as l, SessionVisibilitySchema as lC, EnvironmentsCreateResultSchema as lS, PluginsChangedEventSchema as l_, TtsSpeakResultSchema as la, AuthProbeStatusSchema as lb, SessionsCompanionResetResultSchema as lc, UpdateRunsGetResultSchema as ld, BoardLegacyEventParamsSchema as lf, TerminalOpenResultSchema as lg, WORKER_PROTOCOL_MAX_FRAME_ID_LENGTH as lh, SystemChangesListParamsSchema as li, SessionGoalSchema as ll, WORKER_EXECUTION_AUTHORITY_PROTOCOL_FEATURE as lm, NodeListParamsSchema as ln, ConversationTurnParamsSchema as lo, UiClosePaneCommandSchema as lp, ExecApprovalGrantsListResultSchema as lr, SessionSuggestionsResolveResultSchema as ls, SessionPlacementMoveSchema as lt, MentionsListParamsSchema as lu, GitHubPublicationBodySchema as lv, ToolsEffectiveNoticeSchema as lx, UsersListChannelIdentitiesResultSchema as ly, WorktreesListParamsSchema as m, SessionsActivitySummaryEnsureResultSchema as mC, EnvironmentsPrepareParamsSchema as mS, PluginsControlUiReportParamsSchema as m_, AuditListResultSchema as ma, GitHubSelectedIdentitySchema as mb, SessionsDiffParamsSchema as mc, TRANSCRIPTS_LEGACY_MAX_UTTERANCES as md, BoardSetChatDockCommandSchema as mf, SessionCatalogCapabilitiesSchema as mg, WorkerProtocolCloseReasonSchema as mh, COMMAND_ARG_DESCRIPTION_MAX_LENGTH as mi, SessionsTitlePrepareResultSchema as ml, WORKER_LIVE_EVENT_PROTOCOL_FEATURE as mm, NodePendingAckParamsSchema as mn, SendParamsSchema as mo, UiNavigateCommandSchema as mp, ExecApprovalStandingGrantSchema as mr, SessionMemberEvidenceSchema as ms, SessionsDispatchParamsSchema as mt, ErrorShapeSchema as mu, SessionGitHubOptionsParamsSchema as mv, ToolsGitHubAuthorizeCancelResultSchema as mx, UsersPrefsChangedEventSchema as my, ToolCatalogGroupSchema as n, SessionEntryArchiveReasonSchema as nC, SecretsStoreListResultSchema as nS, PluginSearchResultEntrySchema as n_, TalkSessionCreateResultSchema as na, AgentsFilesListResultSchema as nb, SessionsBranchesSwitchParamsSchema as nc, UpdateScheduleStateSchema as nd, BoardCommandEventSchema as nf, TerminalCloseParamsSchema as ng, WorkerTranscriptCommitResultSchema as nh, SystemAgentSetupDetectResultSchema as ni, SessionsPatchParamsSchema as nl, WorkerInferenceStartResponseFrameSchema as nm, NodeEventResultSchema as nn, ConversationListItemSchema as no, ThemeDefinitionSchema as np, ScopeUpgradeRegistrationSchema as nr, SessionSuggestionSchema as ns, SessionMoveGatewayTargetSchema as nt, MAX_HUMAN_MENTIONS as nu, SESSION_AGENT_ATTENTION_ICON_IDS as nv, SkillsUploadBeginParamsSchema as nx, UsersLinkChannelIdentityParamsSchema as ny, WorktreeBranchSchema as o, SessionToolOverridesSchema as oC, EnvironmentStatusSchema as oS, PluginsCatalogCategoriesResultSchema as o_, TalkSpeakParamsSchema as oa, AgentsListResultSchema as ob, SessionsCompanionAskParamsSchema as oc, UpdateRunRecordSchema as od, BoardEventParamsSchema as of, TerminalInputParamsSchema as og, WorkerComputerParamsSchema as oh, SystemChangeEntrySchema as oi, WORKTREE_PRESERVATION_REASONS as ol, validateWorkerInferenceTerminalFrame as om, NodeInvokeProgressParamsSchema as on, ConversationSendResultSchema as oo, ThemesImportParamsSchema as op, ScopeUpgradeWaitSchema as or, SessionSuggestionsListParamsSchema as os, SessionMoveTargetSchema as ot, MentionableUserSchema as ou, SESSION_ICON_SVG_MAX_BYTES as ov, SkillsWorkshopReadResultSchema as ox, UsersListAuthLinksParamsSchema as oy, WorktreesGcResultSchema as p, SessionsActivitySummaryEnsureParamsSchema as pC, EnvironmentsListResultSchema as pS, PluginsControlUiReloadParamsSchema as p_, AuditListParamsSchema as pa, GitHubIdentitySourceSchema as pb, SessionsDescribeParamsSchema as pc, TRANSCRIPTS_LEGACY_MAX_TEXT_LENGTH as pd, BoardPromptAuthorizeParamsSchema as pf, TerminalUploadResultSchema as pg, WorkerAdmissionFailureReasonSchema as ph, COMMAND_ARG_CHOICES_MAX_ITEMS as pi, SessionsTitlePrepareParamsSchema as pl, WORKER_LINEAGE_START_PROTOCOL_FEATURE as pm, NodePairRemoveParamsSchema as pn, PollParamsSchema as po, UiFocusCommandSchema as pp, ExecApprovalResolveParamsSchema as pr, SessionMemberAddParamsSchema as ps, SessionPlacementStateSchema as pt, ConnectParamsSchema as pu, SessionGitHubConfirmParamsSchema as pv, ToolsGitHubAuthorizeCancelParamsSchema as px, UsersListResultSchema as py, SessionsResolveResultSchema as q, SkillProposalRevisionChangedErrorDetailsSchema as qS, PluginOperatorGrantsSchema as q_, AgentsWorkspaceGetParamsSchema as qa, SkillsProposalsListResultSchema as qb, SessionsUsageParamsSchema as qc, CanvasDocumentViewResultSchema as qd, BoardWidgetResizeOpSchema as qf, PluginDiscoveryCategorySchema as qg, SessionApprovalReplaySchema as qh, TalkConfigParamsSchema as qi, ChatStartupParamsSchema as ql, WorkerSessionsSendParamsSchema as qm, DevicePairSetupCompletedEventSchema as qn, TasksHistoryParamsSchema as qo, WORKER_INFERENCE_METHODS as qp, SystemAgentChatQuestionSchema as qr, SessionObserverHealthSchema as qs, WebPushNotificationPreferencesSchema as qt, ConfigSchemaParamsSchema as qu, UsersGitHubAuthorizePollResultSchema as qv, SecretStoreEntrySchema as qx, AgentSummarySchema as qy, ToolCatalogProfileSchema as r, SessionOwnerSchema as rC, SecretsStoreMutationResultSchema as rS, PluginsCatalogBrowseParamsSchema as r_, TalkSessionOkResultSchema as ra, AgentsFilesSetParamsSchema as rb, SessionsBranchesSwitchResultSchema as rc, UpdateStatusParamsSchema as rd, BoardCommandSchema as rf, TerminalDataEventSchema as rg, WorkerTranscriptMessageSchema as rh, SystemAgentSetupVerifyParamsSchema as ri, PreservedSessionWorktreeSchema as rl, validateWorkerInferenceCancelParams as rm, NodeHostStatsPayloadSchema as rn, ConversationListParamsSchema as ro, ThemeModeSchema as rp, ScopeUpgradeRejectedSchema as rr, SessionSuggestionStateSchema as rs, SessionMovePlacementSchema as rt, MAX_MENTIONABLE_USERS as ru, SESSION_COLOR_IDS as rv, SkillsUploadChunkParamsSchema as rx, UsersLinkChannelIdentityResultSchema as ry, WorktreeRecordSchema as s, SESSION_VISIBILITY_VALUES as sC, EnvironmentSummarySchema as sS, PluginsCatalogGetParamsSchema as s_, TalkSpeakResultSchema as sa, AgentsUpdateParamsSchema as sb, SessionsCompanionAskResultSchema as sc, UpdateRunResultSchema as sd, BoardFocusTabCommandSchema as sf, TerminalListResultSchema as sg, WorkerComputerResponseFrameSchema as sh, SystemChangeKindSchema as si, WorktreePreservationReasonSchema as sl, validateWorkerInferenceTerminalOutcome as sm, NodeInvokeRequestEventSchema as sn, ConversationTurnCancelParamsSchema as so, ThemesListParamsSchema as sp, ExecApprovalGetParamsSchema as sr, SessionSuggestionsListResultSchema as ss, SessionPlacementDiskSpaceSchema as st, MentionsChangedEventSchema as su, normalizeSessionColorValue as sv, ToolsEffectiveEntrySchema as sx, UsersListAuthLinksResultSchema as sy, ToolCatalogEntrySchema as t, SessionCreatedActorSchema as tC, SecretsStoreListParamsSchema as tS, PluginSearchPackageSchema as t_, TalkSessionCreateParamsSchema as ta, AgentsFilesListParamsSchema as tb, SessionsBranchesListResultSchema as tc, UpdateRunParamsSchema as td, BoardChatDockSchema as tf, TerminalAttachResultSchema as tg, WorkerTranscriptCommitResponseFrameSchema as th, SystemAgentSetupDetectParamsSchema as ti, SessionsPatchMutationSchema as tl, WorkerInferenceStartRequestFrameSchema as tm, NodeEventParamsSchema as tn, AgentWaitParamsSchema as to, TalkVoiceSetResultSchema as tp, ScopeUpgradeExpiredSchema as tr, SessionSuggestionResolutionSchema as ts, SessionMoveExpectedSourceSchema as tt, HumanMentionsSchema as tu, lazyCompile as tv, SkillsUpdateParamsSchema as tx, UsersLinkAuthProfileResultSchema as ty, WorktreesBranchesResultSchema as u, SessionProviderReviewProjectionSchema as uC, EnvironmentsDestroyParamsSchema as uS, PluginsControlUiCatalogSchema as u_, WebLoginStartParamsSchema as ua, GitHubAuthorSchema as ub, SessionsCompanionStateParamsSchema as uc, UpdateRunsListParamsSchema as ud, BoardMcpAppDescriptorSchema as uf, TerminalResizeParamsSchema as ug, WORKER_PROTOCOL_MAX_IDENTIFIER_LENGTH as uh, SystemChangesListResultSchema as ui, SessionsGoalClearParamsSchema as ul, WORKER_EXECUTION_CONTEXT_PROTOCOL_FEATURE as um, NodePairApproveParamsSchema as un, ConversationTurnReplySchema as uo, UiCommandParamsSchema as up, ExecApprovalGrantsRevokeParamsSchema as ur, SessionTypingEventSchema as us, SessionPlacementProtocolSchemas as ut, MentionsListResultSchema as uu, GitHubPublicationPublisherSchema as uv, ToolsEffectiveParamsSchema as ux, UsersListModelAccountsParamsSchema as uy, WorktreesRestoreParamsSchema as v, SessionParticipantSchema as vC, RequiredNodeCommandSchema as vS, PluginsInspectResultSchema as v_, AuditRunIdentityUnsupportedV1Schema as va, ModelsAuthSetApiKeyParamsSchema as vb, SessionsFilesListParamsSchema as vc, TRANSCRIPTS_PAGE_MAX as vd, BoardTabDeleteOpSchema as vf, SessionCatalogPullRequestSummarySchema as vg, ApprovalCancelledReasonSchema as vh, COMMAND_DESCRIPTION_MAX_LENGTH as vi, SESSION_CREATE_IDEMPOTENCY_RETENTION_MS as vl, WORKER_PROTOCOL_MAX_FEATURE_LENGTH as vm, NodePendingEnqueueResultSchema as vn, MigrationsMemoryApplyParamsSchema as vo, SKILL_LIBRARY_MAX_BUNDLE_BYTES as vp, ExecApprovalsNodeSnapshotSchema as vr, SessionMembersListEvidenceResultSchema as vs, SessionsReclaimParamsSchema as vt, RequestFrameSchema as vu, SessionGitHubPublicationPublishedSchema as vv, ToolsGitHubAuthorizeNetworkErrorResultSchema as vx, UsersPrefsSetResultSchema as vy, PortalOpenParamsSchema as w, GatewayClientIdSchema as wC, WorkerDesktopObserveParamsSchema as wS, PluginsRefreshResultSchema as w_, ExecutionIdentityContextV1Schema as wa, SkillProposalEvaluationSchema as wb, SessionsForkParamsSchema as wc, TranscriptsGetParamsSchema as wd, BoardUpdateParamsSchema as wf, SessionsCatalogArchiveResultSchema as wg, ApprovalGetResultSchema as wh, TalkSessionAcknowledgeMarkParamsSchema as wi, ChatAbortParamsSchema as wl, WORKER_SESSION_TOOL_MAX_TEXT_LENGTH as wm, NodeRenameParamsSchema as wn, ProjectRecentFolderSchema as wo, SkillsLibraryActivateParamsSchema as wp, CronDeclarativeAddResultSchema as wr, SessionSharingActionSchema as ws, QuestionGetResultSchema as wt, StateVersionSchema as wu, SessionGitHubStatusResultSchema as wv, ToolsGitHubAuthorizeStartResultSchema as wx, UsersSetAvatarResultSchema as wy, PortalCloseResultSchema as x, SessionPeerKindSchema as xC, WorkerDesktopAppIdSchema as xS, PluginsListParamsSchema as x_, AuditRunInspectResultSchema as xa, ModelsProbeParamsSchema as xb, SessionsFilesRevealResultSchema as xc, TranscriptUtteranceSchema as xd, BoardTabUpdateOpSchema as xf, SessionCatalogShareRouteSchema as xg, ApprovalDeniedReasonSchema as xh, CommandEntrySchema as xi, SessionsRecoverParamsSchema as xl, WORKER_PROVIDER_REPLAY_MAX_DATA_BYTES as xm, NodePresenceActivityPayloadSchema as xn, PROJECTS_LIST_MAX_CHECKOUTS_PER_PROJECT as xo, SKILL_LIBRARY_MAX_SELECTIONS as xp, CronAddJobResultSchema as xr, SessionPublicShareSchema as xs, isCloudWorkerPlacementState as xt, TickEventSchema as xu, SessionGitHubPublicationResultSchema as xv, ToolsGitHubAuthorizePollResultSchema as xx, UsersSelfParamsSchema as xy, PortalChangedEventSchema as y, SessionPersonSchema as yC, RequiredNodeCommandStateSchema as yS, PluginsInstallParamsSchema as y_, AuditRunIdentityV1Schema as ya, ModelsAuthSetApiKeyResultSchema as yb, SessionsFilesListResultSchema as yc, TRANSCRIPTS_RESULT_MAX_BYTES as yd, BoardTabIdSchema as yf, SessionCatalogSchema as yg, ApprovalChannelReviewerSchema as yh, COMMAND_LIST_MAX_ITEMS as yi, SESSION_CREATE_RETRY_WINDOW_MS as yl, WORKER_PROTOCOL_MAX_METHOD_LENGTH as ym, NodePluginToolDescriptorSchema as yn, MigrationsMemoryPlanParamsSchema as yo, SKILL_LIBRARY_MAX_FILES as yp, ExecApprovalsSetParamsSchema as yr, SessionMembersListParamsSchema as ys, SessionsReclaimResultPlacementSchema as yt, ResponseFrameSchema as yu, SessionGitHubPublicationPublishingSchema as yv, ToolsGitHubAuthorizePendingResultSchema as yx, UsersSelectModelAccountParamsSchema as yy, TaskSuggestionsListResultSchema as z, GatewayErrorDetailsSchema as zS, PluginInstallActivitySchema as z_, ArtifactsDownloadParamsSchema as za, SkillsProposalInspectParamsSchema as zb, SessionsObserverVisibilityResultSchema as zc, ProgressCardRefreshParamsSchema as zd, BoardWidgetPluginKindSchema as zf, PluginCatalogEntrySchema as zg, MessageSendApprovalScopeSchema as zh, TalkClientCloseParamsSchema as zi, ChatInputReceiptsSchema as zl, WorkerLiveEventResponseFrameSchema as zm, DevicePairListParamsSchema as zn, ProjectsSearchRemoteResultSchema as zo, SkillsProposalHistoryScanResultSchema as zp, CronScratchSetParamsSchema as zr, SessionFileContentEncodingSchema as zs, QuestionStatusSchema as zt, GatewaySuspendStatusRunningResultSchema as zu, UsersAuthConnectResultSchema as zv, SkillsCuratorStatusResultSchema as zx, WizardNextResultSchema as zy };
|
|
15669
|
+
export { SessionsViewerPresenceSetResultSchema as $, UserProfileIdSchema as $C, EnvironmentsSessionExecParamsSchema as $S, PluginsSessionActionParamsSchema as $_, ArtifactsDownloadResultSchema as $a, SkillsDetailResultSchema as $b, SessionsRewindParamsSchema as $c, BOARD_CRON_JOB_ID_MAX_LENGTH as $d, BoardWidgetSchema as $f, SessionsCatalogReadResultSchema as $g, ApprovalScopeSchema as $h, TalkClientCreateParamsSchema as $i, ChatSendIntentSchema as $l, WorkerLiveEventSchema as $m, DevicePairRenameParamsSchema as $n, ProjectsListResultSchema as $o, ComputerInvokeParamsSchema as $p, CronScratchSetResultSchema as $r, SessionGroupSchema as $s, PushTestResultSchema as $t, ConfigSchemaLookupResultSchema as $u, UserChannelIdentityLinkSchema as $v, SkillCuratorLiveEntrySchema as $x, UsersSelfResultSchema as $y, PortalOpenParamsSchema as A, SessionVisibilitySchema as AC, EnvironmentsDestroyResultSchema as AS, PluginsCatalogGetParamsSchema as A_, AuditRunIdentityUnknownV1Schema as Aa, AgentsListResultSchema as Ab, SessionsFilesRevealResultSchema as Ac, TranscriptUtteranceSchema as Ad, BoardViewTicketSchema as Af, TerminalOpenParamsSchema as Ag, PresenceLocationSchema as Ah, COMMAND_CHOICE_VALUE_MAX_LENGTH as Ai, SessionsRecoverResultSchema as Al, WORKER_PROTOCOL_MAX_FEATURE_LENGTH as Am, NodePluginToolDescriptorSchema as An, ConversationTurnReplySchema as Ao, SKILL_LIBRARY_MAX_FILE_BYTES as Ap, ExecApprovalsSetParamsSchema as Ar, SessionPublicShareSetParamsSchema as As, SessionsReclaimResultSchema as At, PresenceEntrySchema as Au, SESSION_ICON_SVG_DATA_URL_PREFIX as Av, SkillsWorkshopReadResultSchema as Ax, UsersLinkEmailResultSchema as Ay, TaskSuggestionSchema as B, SessionPersonSchema as BC, WorkerDesktopAppIdSchema as BS, PluginsInspectParamsSchema as B_, AUDIT_ACTIVITY_KINDS as Ba, ModelsAuthOrderSetParamsSchema as Bb, SessionsGroupsMutationResultSchema as Bc, PROGRESS_CARD_MAX_STEPS as Bd, BoardWidgetMcpAppPutContentSchema as Bf, SessionCatalogPullRequestSummarySchema as Bg, ApprovalCancelledReasonSchema as Bh, ChannelsPairingDismissParamsSchema as Bi, ChatHistoryActivitySchema as Bl, WORKER_TRANSCRIPT_MAX_JSON_DEPTH as Bm, FsDirEntrySchema as Bn, PROJECTS_LIST_DEFAULT_LIMIT as Bo, SkillsLibraryUploadParamsSchema as Bp, CronHistoryResultSchema as Br, SessionCompanionExchangeSchema as Bs, QuestionRequestQuestionSchema as Bt, GatewaySuspendPrepareResultSchema as Bu, SessionGitHubOptionsResultSchema as Bv, ToolsGitHubAuthorizePollResultSchema as Bx, UsersMergeResultSchema as By, WorktreesRemoveResultSchema as C, SessionEventAncestorsSchema as CC, SecretsStoreSetParamsSchema as CS, PluginSearchPackageSchema as C_, WebLoginStartParamsSchema as Ca, AgentOwnershipSchema as Cb, SessionsDiffParamsSchema as Cc, TRANSCRIPTS_LEGACY_MAX_UTTERANCES as Cd, BoardTabDeleteOpSchema as Cf, TerminalAttachResultSchema as Cg, WORKER_PROTOCOL_MAX_FRAME_ID_LENGTH as Ch, SystemChangesListResultSchema as Ci, SessionsStorageParamsSchema as Cl, WORKER_LAUNCH_V2_PROTOCOL_FEATURE as Cm, NodePairRejectParamsSchema as Cn, ConversationListParamsSchema as Co, UiFocusCommandSchema as Cp, ExecApprovalRequestParamsSchema as Cr, SessionMemberMutationResultSchema as Cs, SessionPlacementWorkerRuntimeInstallSchema as Ct, EventFrameSchema as Cu, ControlUiLinkReaderMetadataSchema as Cv, SkillsSkillCardResultSchema as Cx, UsersGitHubStatusParamsSchema as Cy, PortalCloseResultSchema as D, SessionToolOverridesSchema as DC, EnvironmentsCreateParamsSchema as DS, PluginsCatalogBrowseResultSchema as D_, AuditListResultSchema as Da, AgentsDeleteParamsSchema as Db, SessionsFilesListParamsSchema as Dc, TRANSCRIPTS_PAGE_MAX as Dd, BoardTabsReorderOpSchema as Df, TerminalExitEventSchema as Dg, WorkerAdmissionFailureReasonSchema as Dh, COMMAND_ARG_DESCRIPTION_MAX_LENGTH as Di, SESSION_CREATE_RETRY_WINDOW_MS as Dl, WORKER_PRESENCE_PROTOCOL_FEATURE as Dm, NodePendingDrainResultSchema as Dn, ConversationTurnCancelParamsSchema as Do, UiSplitCommandSchema as Dp, ExecApprovalsNodeGetParamsSchema as Dr, SessionMembersListParamsSchema as Ds, SessionsMoveResultSchema as Dt, ResponseFrameSchema as Du, SESSION_AGENT_ATTENTION_ICON_IDS as Dv, SkillsUploadChunkParamsSchema as Dx, UsersLinkChannelIdentityParamsSchema as Dy, PortalCloseParamsSchema as E, SessionRowSchema as EC, EnvironmentSummarySchema as ES, PluginsCatalogBrowseParamsSchema as E_, AuditListParamsSchema as Ea, AgentsCreateResultSchema as Eb, SessionsFilesGetResultSchema as Ec, TRANSCRIPTS_PAGE_DEFAULT as Ed, BoardTabUpdateOpSchema as Ef, TerminalEventSchema as Eg, WORKER_PUBLIC_INGRESS_PATH as Eh, COMMAND_ARG_CHOICES_MAX_ITEMS as Ei, SESSION_CREATE_IDEMPOTENCY_RETENTION_MS as El, WORKER_PORTAL_PROTOCOL_FEATURE as Em, NodePendingDrainParamsSchema as En, ConversationSendResultSchema as Eo, UiSidebarCommandSchema as Ep, ExecApprovalsGetParamsSchema as Er, SessionMembersListEvidenceResultSchema as Es, SessionsMoveParamsSchema as Et, RequestFrameSchema as Eu, lazyCompile as Ev, SkillsUploadBeginParamsSchema as Ex, UsersLinkAuthProfileResultSchema as Ey, SessionPortalOpenParamsSchema as F, SessionsActivitySummaryEnsureResultSchema as FC, EnvironmentsStatusParamsSchema as FS, PluginsControlUiListParamsSchema as F_, DecisionReceiptDisplayV1Schema as Fa, GitHubIdentityFactsSchema as Fb, SessionsGroupsDefaultsParamsSchema as Fc, TranscriptsListParamsSchema as Fd, BoardWidgetGeneratedIdentitySchema as Ff, TerminalUploadResultSchema as Fg, checkProtocolJson as Fh, CommandsListParamsSchema as Fi, ChatAttachmentsSchema as Fl, WORKER_SESSION_TOOLS_PROTOCOL_FEATURE as Fm, NodeRenameParamsSchema as Fn, WakeParamsSchema as Fo, SkillsLibraryImportParamsSchema as Fp, CronDeclarativeAddResultSchema as Fr, SessionSharingIdentitySchema as Fs, QuestionListParamsSchema as Ft, GatewaySuspendHandoffResultSchema as Fu, GitHubPublicationPublisherSchema as Fv, ToolsGitHubAuthorizeFailedResultSchema as Fx, UsersListModelAccountsParamsSchema as Fy, TaskSuggestionsDismissParamsSchema as G, GatewayClientIdSchema as GC, WorkerEnvironmentMetadataSchema as GS, PluginsListResultSchema as G_, AuditActivityInboundMessageV1Schema as Ga, ModelsProbeParamsSchema as Gb, SessionsMessagesSubscribeParamsSchema as Gc, ProgressCardGetResultSchema as Gd, BoardWidgetPluginPropsSchema as Gf, SessionsCatalogArchiveParamsSchema as Gg, ApprovalGetParamsSchema as Gh, ChannelsStartParamsSchema as Gi, ChatInjectParamsSchema as Gl, WorkerHeartbeatRequestFrameSchema as Gm, DesktopObserveResultSchema as Gn, ProjectRecentProjectSchema as Go, validateSkillsLibraryReadParams as Gp, CronRemoveParamsSchema as Gr, SessionFileBrowserEntrySchema as Gs, QuestionResolvedEventSchema as Gt, GatewaySuspendStatusReadyResultSchema as Gu, SessionGitHubPublicationRequestedSchema as Gv, ToolsGitHubConfigureParamsSchema as Gx, UsersPrefsChangedEventSchema as Gy, TaskSuggestionsAcceptResultSchema as H, SessionPeerKindSchema as HC, WorkerDesktopLaunchResultSchema as HS, PluginsInstallParamsSchema as H_, AUDIT_ACTIVITY_STATUSES as Ha, ModelsAuthSetApiKeyParamsSchema as Hb, SessionsGroupsRenameParamsSchema as Hc, PROGRESS_CARD_MAX_UTF8_BYTES as Hd, BoardWidgetNameSchema as Hf, SessionCatalogSessionSchema as Hg, ApprovalDecisionSchema as Hh, ChannelsPairingListParamsSchema as Hi, ChatHistoryDeltaResultSchema as Hl, WorkerAdmissionResponseFrameSchema as Hm, FsListDirResultSchema as Hn, PROJECTS_LIST_MAX_IDENTITY_PROBES as Ho, validateSkillsLibraryImportParams as Hp, CronJobStateSchema as Hr, SessionDiffFileSchema as Hs, QuestionRequestedEventSchema as Ht, GatewaySuspendResumeResultSchema as Hu, SessionGitHubPublicationNeedsConfirmationSchema as Hv, ToolsGitHubAuthorizeStartParamsSchema as Hx, UsersPersonalFileGetResultSchema as Hy, PluginApprovalRequestParamsSchema as I, SESSION_EXPANDED_PARTICIPANT_LIMIT as IC, EnvironmentsStatusResultSchema as IS, PluginsControlUiReloadParamsSchema as I_, DecisionReceiptV1Schema as Ia, GitHubIdentityScopeSchema as Ib, SessionsGroupsDefaultsResultSchema as Ic, TranscriptsListResultSchema as Id, BoardWidgetGrantParamsSchema as If, SessionCatalogCapabilitiesSchema as Ig, formatValidationErrors as Ih, CommandsListResultSchema as Ii, ChatDeltaEventSchema as Il, WORKER_SESSION_TOOL_MAX_TEXT_LENGTH as Im, NodeSkillDescriptorSchema as In, MAX_MEMORY_MIGRATION_ITEMS as Io, SkillsLibraryListParamsSchema as Ip, CronDeliveryPreviewSchema as Ir, SessionVisibilitySetParamsSchema as Is, QuestionListResultSchema as It, GatewaySuspendPrepareBusyResultSchema as Iu, GitHubPublicationSelectionSchema as Iv, ToolsGitHubAuthorizeIncorrectDeviceCodeResultSchema as Ix, UsersListModelAccountsResultSchema as Iy, TaskSuggestionsListResultSchema as J, NonEmptyString as JC, WorkerMachineOptionSchema as JS, PluginsReloadParamsSchema as J_, AuditActivityOutboundMessageV1Schema as Ja, SkillProposalEvaluationSchema as Jb, SessionsObserverVisibilityResultSchema as Jc, ProgressCardRefreshParamsSchema as Jd, BoardWidgetPutParamsSchema as Jf, SessionsCatalogContinueResultSchema as Jg, ApprovalHistoryResultSchema as Jh, ChannelsStopParamsSchema as Ji, ChatMessageGetParamsSchema as Jl, WorkerLiveEventErrorShapeSchema as Jm, DesktopSourceSchema as Jn, ProjectRecordSchema as Jo, SkillsProposalHistoryScanParamsSchema as Jp, CronRunsParamsSchema as Jr, SessionFileEntrySchema as Js, QuestionSecretStoreExistingSchema as Jt, GatewaySuspensionSchema as Ju, SessionGitHubStatusParamsSchema as Jv, ToolsGitHubStatusParamsSchema as Jx, UsersPrefsSetParamsSchema as Jy, TaskSuggestionsDismissResultSchema as K, GatewayClientModeSchema as KC, WorkerEnvironmentStateSchema as KS, PluginsRefreshParamsSchema as K_, AuditActivityListParamsSchema as Ka, ModelsProbeResultSchema as Kb, SessionsMessagesUnsubscribeParamsSchema as Kc, ProgressCardPutParamsSchema as Kd, BoardWidgetPresentationSchema as Kf, SessionsCatalogArchiveResultSchema as Kg, ApprovalGetResultSchema as Kh, ChannelsStatusParamsSchema as Ki, ChatInputConsumptionsSchema as Kl, WorkerHeartbeatResponseFrameSchema as Km, DesktopReleaseParamsSchema as Kn, ProjectRecentRepositorySchema as Ko, validateSkillsLibrarySaveParams as Kp, CronRunLogEntrySchema as Kr, SessionFileBrowserResultSchema as Ks, QuestionSchema as Kt, GatewaySuspendStatusResultSchema as Ku, SessionGitHubPublicationResultSchema as Kv, ToolsGitHubInheritConfigureParamsSchema as Kx, UsersPrefsGetParamsSchema as Ky, PluginApprovalResolveParamsSchema as L, SESSION_PARTICIPANT_LIMIT as LC, RequiredNodeCommandSchema as LS, PluginsControlUiReportParamsSchema as L_, ExecutionIdentityContextV1Schema as La, GitHubIdentitySourceSchema as Lb, SessionsGroupsDeleteParamsSchema as Lc, TranscriptsStatusParamsSchema as Ld, BoardWidgetHeightModeSchema as Lf, SessionCatalogDescriptorSchema as Lg, AllowedApprovalSnapshotSchema as Lh, TalkSessionAcknowledgeMarkParamsSchema as Li, ChatErrorEventSchema as Ll, WORKER_TRANSCRIPT_COMMIT_PROTOCOL_FEATURE as Lm, NodeSkillsUpdateParamsSchema as Ln, MigrationProtocolSchemas as Lo, SkillsLibraryMutateParamsSchema as Lp, CronDeliverySchema as Lr, SessionVisibilitySetResultSchema as Ls, QuestionOptionSchema as Lt, GatewaySuspendPrepareDrainingResultSchema as Lu, GitHubPublicationTitleSchema as Lv, ToolsGitHubAuthorizeNetworkErrorResultSchema as Lx, UsersListParamsSchema as Ly, PortalSummarySchema as M, SessionsProviderReviewContinueParamsSchema as MC, EnvironmentsListResultSchema as MS, PluginsChangedEventSchema as M_, AuditRunIdentityV1Schema as Ma, AgentsUpdateResultSchema as Mb, SessionsFilesSetResultSchema as Mc, TranscriptsExportResultSchema as Md, BoardWidgetAppViewResultSchema as Mf, TerminalResizeParamsSchema as Mg, PresenceQueryParamsSchema as Mh, COMMAND_LIST_MAX_ITEMS as Mi, ChatAbortParamsSchema as Ml, WORKER_PROTOCOL_METHODS as Mm, NodePresenceActivityPayloadSchema as Mn, MessageActionParamsSchema as Mo, SkillLibraryFileSchema as Mp, CronAddJobResultSchema as Mr, SessionSharingActionSchema as Ms, QuestionAnswersSchema as Mt, StateVersionSchema as Mu, normalizeSessionColorValue as Mv, ToolsGitHubAuthorizeCancelParamsSchema as Mx, UsersListAuthLinksResultSchema as My, SessionPortalCloseParamsSchema as N, SessionActivitySummarySchema as NC, EnvironmentsPrepareParamsSchema as NS, PluginsControlUiCatalogSchema as N_, AuditRunInspectParamsSchema as Na, AuthProbeStatusSchema as Nb, SessionsForkParamsSchema as Nc, TranscriptsGetParamsSchema as Nd, BoardWidgetContentSchema as Nf, TerminalSessionInfoSchema as Ng, PresenceQueryResultSchema as Nh, COMMAND_NAME_MAX_LENGTH as Ni, ChatAbortedEventSchema as Nl, WORKER_PROVIDER_REPLAY_MAX_DATA_BYTES as Nm, NodePresenceAlivePayloadSchema as Nn, PollParamsSchema as No, SkillLibrarySelectionSchema as Np, CronAddParamsSchema as Nr, SessionSharingEventSchema as Ns, QuestionGetParamsSchema as Nt, GatewaySuspendBlockerSchema as Nu, normalizeSessionIconValue as Nv, ToolsGitHubAuthorizeCancelResultSchema as Nx, UsersListChannelIdentitiesParamsSchema as Ny, PortalListParamsSchema as O, SESSION_VISIBILITY_VALUES as OC, EnvironmentsCreateResultSchema as OS, PluginsCatalogCategoriesParamsSchema as O_, AuditRunIdentityAmbiguousV1Schema as Oa, AgentsDeleteResultSchema as Ob, SessionsFilesListResultSchema as Oc, TRANSCRIPTS_RESULT_MAX_BYTES as Od, BoardTicketEventParamsSchema as Of, TerminalInputParamsSchema as Og, WorkerProtocolCloseReasonSchema as Oh, COMMAND_ARG_NAME_MAX_LENGTH as Oi, SessionsCreateParamsSchema as Ol, WORKER_PROTOCOL_FEATURES as Om, NodePendingEnqueueParamsSchema as On, ConversationTurnCancelResultSchema as Oo, SKILL_LIBRARY_MAX_BUNDLE_BYTES as Op, ExecApprovalsNodeSetParamsSchema as Or, SessionMembersListResultSchema as Os, SessionsReclaimParamsSchema as Ot, ShutdownEventSchema as Ou, SESSION_COLOR_IDS as Ov, SkillsUploadCommitParamsSchema as Ox, UsersLinkChannelIdentityResultSchema as Oy, SessionPortalListParamsSchema as P, SessionsActivitySummaryEnsureParamsSchema as PC, EnvironmentsPrepareResultSchema as PS, PluginsControlUiChangedEventSchema as P_, AuditRunInspectResultSchema as Pa, GitHubAuthorSchema as Pb, SessionsForkResultSchema as Pc, TranscriptsGetResultSchema as Pd, BoardWidgetDeclaredSchema as Pf, TerminalUploadParamsSchema as Pg, validatePresenceActivityParams as Ph, CommandEntrySchema as Pi, ChatAttachmentSchema as Pl, WORKER_RPC_SET_VERSION as Pm, NodePresenceAliveReasonSchema as Pn, SendParamsSchema as Po, SkillsLibraryActivateParamsSchema as Pp, CronAddResultSchema as Pr, SessionSharingEvidenceEventSchema as Ps, QuestionGetResultSchema as Pt, GatewaySuspendHandoffParamsSchema as Pu, GitHubPublicationBodySchema as Pv, ToolsGitHubAuthorizeExpiredResultSchema as Px, UsersListChannelIdentitiesResultSchema as Py, SessionsViewerPresenceSetParamsSchema as Q, Sha256String as QC, WorkerTunnelStatusSchema as QS, PluginsSessionActionFailureResultSchema as Q_, ArtifactsDownloadParamsSchema as Qa, SkillsDetailParamsSchema as Qb, SessionsResetParamsSchema as Qc, ProgressCardStepStatusSchema as Qd, BoardWidgetResizeOpSchema as Qf, SessionsCatalogReadParamsSchema as Qg, ApprovalResolveResultSchema as Qh, TalkClientCloseParamsSchema as Qi, ChatRunStartupPhaseSchema as Ql, WorkerLiveEventResultSchema as Qm, DevicePairRemoveParamsSchema as Qn, ProjectsListParamsSchema as Qo, validateSkillsProposalHistoryStatusParams as Qp, CronScratchSetParamsSchema as Qr, SessionGroupDefaultsSchema as Qs, PushTestParamsSchema as Qt, ConfigSchemaLookupParamsSchema as Qu, PersonalGitHubStatusSchema as Qv, ToolsInvokeResultSchema as Qx, UsersSelfParamsSchema as Qy, TaskSuggestionEventSchema as R, SessionParticipantIdentitySchema as RC, RequiredNodeCommandStateSchema as RS, PluginsControlUiStatusParamsSchema as R_, PrincipalRefV1Schema as Ra, GitHubSelectedIdentitySchema as Rb, SessionsGroupsListParamsSchema as Rc, TranscriptsStatusResultSchema as Rd, BoardWidgetHtmlContentSchema as Rf, SessionCatalogHostSchema as Rg, ApprovalAllowDecisionSchema as Rh, ChannelsPairingApproveParamsSchema as Ri, ChatEventSchema as Rl, WORKER_TRANSCRIPT_MAX_BATCH_MESSAGES as Rm, NODE_PRESENCE_ALIVE_REASONS as Rn, MigrationsMemoryApplyParamsSchema as Ro, SkillsLibraryReadParamsSchema as Rp, CronGetParamsSchema as Rr, SESSION_OBSERVER_HEALTH_VALUES as Rs, QuestionRecordSchema as Rt, GatewaySuspendPrepareParamsSchema as Ru, SessionGitHubConfirmParamsSchema as Rv, ToolsGitHubAuthorizePendingResultSchema as Rx, UsersListResultSchema as Ry, WorktreesRemoveParamsSchema as S, SessionEntryArchiveReasonSchema as SC, SecretsStoreMutationResultSchema as SS, PluginRuntimeStatusSchema as S_, TtsSpeakResultSchema as Sa, AgentKindSchema as Sb, SessionsDescribeParamsSchema as Sc, TRANSCRIPTS_LEGACY_MAX_TEXT_LENGTH as Sd, BoardTabCreateOpSchema as Sf, TerminalAttachParamsSchema as Sg, WorkerComputerResultSchema as Sh, SystemChangesListParamsSchema as Si, SessionsTitlePrepareResultSchema as Sl, WORKER_HEARTBEAT_INTERVAL_MS as Sm, NodePairListParamsSchema as Sn, ConversationListItemSchema as So, UiCommandSchema as Sp, ExecApprovalGrantsRevokeResultSchema as Sr, SessionMemberEvidenceSchema as Ss, SessionPlacementStateSchema as St, ErrorShapeSchema as Su, ControlUiLinkReaderDescriptorSchema as Sv, SkillsSkillCardParamsSchema as Sx, UsersGitHubDisconnectResultSchema as Sy, PortalChangedEventSchema as T, SessionPermissionModeSchema as TC, EnvironmentStatusSchema as TS, PluginUiCapabilitySchema as T_, AuditEventSchema as Ta, AgentsCreateParamsSchema as Tb, SessionsFilesGetParamsSchema as Tc, TRANSCRIPTS_LIST_MAX as Td, BoardTabSchema as Tf, TerminalDataEventSchema as Tg, WORKER_PROTOCOL_MAX_PAYLOAD_BYTES as Th, COMMAND_ARGS_MAX_ITEMS as Ti, SessionsSetInvolvementParamsSchema as Tl, WORKER_LIVE_EVENT_PROTOCOL_FEATURE as Tm, NodePendingAckParamsSchema as Tn, ConversationSendParamsSchema as To, UiPanelCommandSchema as Tp, ExecApprovalStandingGrantSchema as Tr, SessionMemberSchema as Ts, SessionsDispatchResultSchema as Tt, HelloOkSchema as Tu, validatePluginUiCapabilities as Tv, SkillsUpdateParamsSchema as Tx, UsersLinkAuthProfileParamsSchema as Ty, TaskSuggestionsCreateParamsSchema as U, CHAT_SEND_SESSION_KEY_MAX_LENGTH as UC, WorkerDesktopObserveParamsSchema as US, PluginsInstallResultSchema as U_, AuditActivityAgentRunV1Schema as Ua, ModelsAuthSetApiKeyResultSchema as Ub, SessionsGroupsUpdateParamsSchema as Uc, ProgressCardChangedEventSchema as Ud, BoardWidgetPluginContentSchema as Uf, SessionCatalogShareRouteSchema as Ug, ApprovalDeniedReasonSchema as Uh, ChannelsPairingListResultSchema as Ui, ChatHistoryParamsSchema as Ul, WorkerConnectRequestFrameSchema as Um, DesktopLaunchParamsSchema as Un, ProjectCheckoutSchema as Uo, validateSkillsLibraryListParams as Up, CronListParamsSchema as Ur, SessionDiffFileStatusSchema as Us, QuestionResolveParamsSchema as Ut, GatewaySuspendStatusDrainingResultSchema as Uu, SessionGitHubPublicationPublishedSchema as Uv, ToolsGitHubAuthorizeStartResultSchema as Ux, UsersPersonalFileSetParamsSchema as Uy, TaskSuggestionsAcceptParamsSchema as V, SessionClassificationSchema as VC, WorkerDesktopLaunchParamsSchema as VS, PluginsInspectResultSchema as V_, AUDIT_ACTIVITY_MESSAGE_KIND as Va, ModelsAuthRefreshParamsSchema as Vb, SessionsGroupsPutParamsSchema as Vc, PROGRESS_CARD_MAX_STEP_UTF8_BYTES as Vd, BoardWidgetMoveOpSchema as Vf, SessionCatalogSchema as Vg, ApprovalChannelReviewerSchema as Vh, ChannelsPairingDismissResultSchema as Vi, ChatHistoryCursorResultSchema as Vl, WorkerAdmissionHandshakeSchema as Vm, FsListDirParamsSchema as Vn, PROJECTS_LIST_MAX_CHECKOUTS_PER_PROJECT as Vo, validateSkillsLibraryActivateParams as Vp, CronJobSchema as Vr, SessionDiffCommitSchema as Vs, QuestionRequestResultSchema as Vt, GatewaySuspendResumeParamsSchema as Vu, SessionGitHubPublicationFailedSchema as Vv, ToolsGitHubAuthorizeSlowDownResultSchema as Vx, UsersPersonalFileGetParamsSchema as Vy, TaskSuggestionsCreateResultSchema as W, ChatSendSessionKeyString as WC, WorkerDesktopObserveResultSchema as WS, PluginsListParamsSchema as W_, AuditActivityEventV1Schema as Wa, ModelsAuthStatusParamsSchema as Wb, SessionsGroupsUpdateResultSchema as Wc, ProgressCardGetParamsSchema as Wd, BoardWidgetPluginKindSchema as Wf, SessionCatalogTranscriptItemSchema as Wg, ApprovalExpiredReasonSchema as Wh, ChannelsLogoutParamsSchema as Wi, ChatHistoryResetResultSchema as Wl, WorkerHeartbeatParamsSchema as Wm, DesktopObserveParamsSchema as Wn, ProjectRecentFolderSchema as Wo, validateSkillsLibraryMutateParams as Wp, CronPacingSchema as Wr, SessionDiffScopeSchema as Ws, QuestionResolveResultSchema as Wt, GatewaySuspendStatusParamsSchema as Wu, SessionGitHubPublicationPublishingSchema as Wv, ToolsGitHubAuthorizeSuccessResultSchema as Wx, UsersPersonalFileSetResultSchema as Wy, SystemInfoResultSchema as X, SecretRefSchema as XC, WorkerOperatingSystemSchema as XS, PluginsSearchParamsSchema as X_, findAuditActivityFilterConflict as Xa, SkillsBinsParamsSchema as Xb, SessionsPluginPatchResultSchema as Xc, ProgressCardSchema as Xd, BoardWidgetRegisteredContentSchema as Xf, SessionsCatalogListParamsSchema as Xg, ApprovalPresentationSchema as Xh, TalkCatalogParamsSchema as Xi, ChatMetadataParamsSchema as Xl, WorkerLiveEventRequestFrameSchema as Xm, DevicePairListParamsSchema as Xn, ProjectsAddParamsSchema as Xo, SkillsProposalHistoryStatusParamsSchema as Xp, CronScratchGetResultSchema as Xr, SessionFilePreviewKindSchema as Xs, QuestionWaitAnswerParamsSchema as Xt, ConfigGetParamsSchema as Xu, PersonalGitHubAccountSchema as Xv, ToolsInvokeErrorSchema as Xx, UsersSelectModelAccountParamsSchema as Xy, SystemInfoParamsSchema as Y, SecretInputSchema as YC, WorkerMachineOptionsSchema as YS, PluginsReloadResultSchema as Y_, AuditActivityToolActionV1Schema as Ya, SkillProposalLifecycleEventSchema as Yb, SessionsPluginPatchParamsSchema as Yc, ProgressCardRefreshResultSchema as Yd, BoardWidgetPutResultSchema as Yf, SessionsCatalogHostEventSchema as Yg, ApprovalKindSchema as Yh, TalkAgentControlResultSchema as Yi, ChatMessageGetResultSchema as Yl, WorkerLiveEventParamsSchema as Ym, DevicePairApproveParamsSchema as Yn, ProjectSummarySchema as Yo, SkillsProposalHistoryScanResultSchema as Yp, CronScratchGetParamsSchema as Yr, SessionFileKindSchema as Ys, QuestionStatusSchema as Yt, ConfigApplyParamsSchema as Yu, SessionGitHubStatusResultSchema as Yv, ToolsGitHubStatusResultSchema as Yx, UsersPrefsSetResultSchema as Yy, SESSION_VIEWER_PRESENCE_MAX_KEYS as Z, SessionLabelString as ZC, WorkerSlotSummarySchema as ZS, PluginsSearchResultSchema as Z_, ArtifactSummarySchema as Za, SkillsBinsResultSchema as Zb, SessionsPreviewParamsSchema as Zc, ProgressCardStepSchema as Zd, BoardWidgetRemoveOpSchema as Zf, SessionsCatalogListResultSchema as Zg, ApprovalResolveParamsSchema as Zh, TalkCatalogResultSchema as Zi, ChatPendingInputsPageSchema as Zl, WorkerLiveEventResponseFrameSchema as Zm, DevicePairRejectParamsSchema as Zn, ProjectsAddResultSchema as Zo, validateSkillsProposalHistoryScanParams as Zp, CronScratchSchema as Zr, SessionFileRelevanceSchema as Zs, QuestionWaitAnswerResultSchema as Zt, ConfigPatchParamsSchema as Zu, PersonalGitHubGenerationSchema as Zv, ToolsInvokeParamsSchema as Zx, UsersSelectModelAccountResultSchema as Zy, WorktreesCreateParamsSchema as _, buildMissingScopeErrorDetails as _C, SecretsResolveParamsSchema as _S, PluginDiscoveryEntrySchema as __, TalkSessionSteerParamsSchema as _a, WizardStartParamsSchema as _b, SessionsCompanionResetParamsSchema as _c, UpdateRunsListParamsSchema as _d, BoardPluginActionParamsSchema as _f, SystemAgentApprovalPresentationSchema as _g, WorkerTranscriptMessageSchema as _h, SystemAgentSetupVerifyResultSchema as _i, SessionGoalSchema as _l, validateWorkerInferenceTerminalOutcome as _m, NodeInvokeProgressParamsSchema as _n, AgentEventSchema as _o, ThemesListParamsSchema as _p, ScopeUpgradeWaitSchema as _r, SessionSuggestionsResolveResultSchema as _s, SessionPlacementMachineSchema as _t, MentionsListParamsSchema as _u, PluginCredentialDescriptorSchema as _v, SkillsProposalsListResultSchema as _x, UsersGitHubAuthorizePollParamsSchema as _y, ToolsCatalogParamsSchema as a, GitHubPublicationSelectionRejectedErrorDetailsSchema as aC, ModelCatalogProviderOutcomeSchema as aS, MAX_PLUGIN_RELOAD_TARGETS as a_, TalkClientTranscriptParamsSchema as aa, UsersSetRoleResultSchema as ab, SessionWorktreeInfoSchema as ac, UpdateHoldResultSchema as ad, BoardChangedEventSchema as af, ExpiredApprovalSnapshotSchema as ag, WorkerSessionToolResponseFrameSchema as ah, SystemAgentChatParamsSchema as ai, SessionsSearchResultSchema as al, WORKER_PROTOCOL_MAX_INFERENCE_PAYLOAD_BYTES as am, WebPushPreferencesSetParamsSchema as an, AgentsWorkspaceFileSchema as ao, TALK_VOICE_CHANGE_TIMEOUT_MS as ap, DevicePairSetupDeliveryUncertainEventSchema as ar, ProjectsSearchRemoteResultSchema as as, SessionDiscussionInfoSchema as at, LogsTailParamsSchema as au, PluginsUiDescriptorsResultSchema as av, isGitCoauthorCreditEnabled as aw, SkillsProposalEvaluateParamsSchema as ax, UserProfileSchema as ay, WorktreesListParamsSchema as b, SessionAncestorRefSchema as bC, SecretsStoreListParamsSchema as bS, PluginReloadTargetSchema as b_, TalkSpeakResultSchema as ba, WizardStatusResultSchema as bb, SessionsCompanionStateResultSchema as bc, SessionsListParamsSchema as bd, BoardSizeSchema as bf, isWellFormedApprovalId as bg, WorkerComputerParamsSchema as bh, SystemChangeKindSchema as bi, SessionsGoalUpdateParamsSchema as bl, WORKER_EXECUTION_AUTHORITY_PROTOCOL_FEATURE as bm, NodeListParamsSchema as bn, AgentParamsSchema as bo, UiCommandParamsSchema as bp, ExecApprovalGrantsListResultSchema as br, SessionTypingResultSchema as bs, SessionPlacementRunnerSchema as bt, UsersMentionableResultSchema as bu, PluginsCredentialsInspectResultSchema as bv, SkillsSecurityVerdictsParamsSchema as bx, UsersGitHubAuthorizeStartResultSchema as by, ToolsEffectiveGroupSchema as c, OutboundDeliveryQueuedErrorDetailsSchema as cC, ModelsListParamsSchema as cS, PluginCatalogInstallActionSchema as c_, TalkEventSchema as ca, UsersUnlinkChannelIdentityParamsSchema as cb, SessionsAssignOwnerResultSchema as cc, UpdateRunParamsSchema as cd, BoardCommandSchema as cf, PaymentApprovalScopeSchema as cg, WorkerSessionsSendResponseFrameSchema as ch, SystemAgentSetupActivateParamsSchema as ci, SessionsPatchManyResultSchema as cl, WorkerInferenceImageContentSchema as cm, WebPushUnsubscribeParamsSchema as cn, AgentsWorkspaceListParamsSchema as co, TalkVoiceGetParamsSchema as cp, DeviceTokenRevokeParamsSchema as cr, SessionSuggestionEventSchema as cs, SessionDiscussionStateSchema as ct, HumanMentionSchema as cu, PluginInstallActivitySchema as cv, SkillsProposalEventsListResultSchema as cx, UsersAuthConnectCatalogParamsSchema as cy, ToolsEffectiveResultSchema as d, SetupAdmissionBusyErrorDetailsSchema as dC, GitHubSetupHandleSchema as dS, PluginControlUiDiagnosticSchema as d_, TalkSessionCancelOutputParamsSchema as da, normalizeUiAppearancePreference as db, SessionsBranchesSwitchParamsSchema as dc, UpdateStatusResultSchema as dd, BoardEventParamsSchema as df, PluginApprovalExternalResolutionSchema as dg, WorkerTranscriptCommitErrorReasonSchema as dh, SystemAgentSetupActivateStartResultSchema as di, SessionsPatchParamsSchema as dl, WorkerInferenceStartRequestFrameSchema as dm, NodeEventParamsSchema as dn, AgentsFilesGetParamsSchema as do, TalkVoiceSetResultSchema as dp, ScopeUpgradeApprovedSchema as dr, SessionSuggestionStateSchema as ds, SessionMoveGatewayTargetSchema as dt, MAX_MENTIONABLE_USERS as du, PluginDeclaredSurfaceSchema as dv, SkillsProposalRecordResultSchema as dx, UsersAuthConnectStartParamsSchema as dy, EnvironmentsSessionCreateParamsSchema as eC, SkillsCuratorActionParamsSchema as eS, SessionsCatalogStartTerminalParamsSchema as e_, TalkClientCreateResultSchema as ea, UsersSetAvatarParamsSchema as eb, SessionNarrationEventSchema as ec, ConfigSchemaParamsSchema as ed, BOARD_CRON_TRIGGER_PREFIX as ef, ApprovalSnapshotSchema as eg, WorkerPortalParamsSchema as eh, CronStatusParamsSchema as ei, SessionsRewindResultSchema as el, ComputerStatusParamsSchema as em, WebPushDetailLevelSchema as en, ArtifactsGetParamsSchema as eo, CANVAS_DOCUMENT_PREVIEW_MAX_BYTES as ep, DevicePairRequestedEventSchema as er, ProjectsRegisterParamsSchema as es, SessionsResolveCandidateSchema as et, ChatSendParamsSchema as eu, PluginsSessionActionResultSchema as ev, GATEWAY_OWNER_PROFILE_ID as ew, SkillsInstallParamsSchema as ex, UserChannelIdentitySchema as ey, WorktreeBranchSchema as f, SkillProposalRevisionChangedErrorDetailsSchema as fC, SecretStoreEntrySchema as fS, PluginControlUiModuleSchema as f_, TalkSessionCancelOutputResultSchema as fa, McpAuthLoginParamsSchema as fb, SessionsBranchesSwitchResultSchema as fc, UpdateRunChangedEventSchema as fd, BoardFocusTabCommandSchema as ff, PluginApprovalPresentationSchema as fg, WorkerTranscriptCommitErrorShapeSchema as fh, SystemAgentSetupAuthStartParamsSchema as fi, PreservedSessionWorktreeSchema as fl, WorkerInferenceStartResponseFrameSchema as fm, NodeEventResultSchema as fn, AgentsFilesGetResultSchema as fo, ThemeDefinitionSchema as fp, ScopeUpgradeExpiredSchema as fr, SessionSuggestionsAddParamsSchema as fs, SessionMovePlacementSchema as ft, MENTION_INBOX_MAX_ITEMS as fu, PluginHookGrantSchema as fv, SkillsProposalRequestRevisionParamsSchema as fx, UsersAuthConnectStartResultSchema as fy, WorktreesBranchesResultSchema as g, WizardNotFoundErrorDetailsSchema as gC, SecretsResolveAssignmentSchema as gS, PluginDiscoveryDetailSchema as g_, TalkSessionOkResultSchema as ga, WizardNextResultSchema as gb, SessionsCompanionAskResultSchema as gc, UpdateRunsGetResultSchema as gd, BoardOpSchema as gf, StandingGrantApprovalScopeSchema as gg, WorkerTranscriptCommitResultSchema as gh, SystemAgentSetupVerifyParamsSchema as gi, WorktreePreservationReasonSchema as gl, validateWorkerInferenceTerminalFrame as gm, NodeInvokeParamsSchema as gn, AgentsFilesSetResultSchema as go, ThemesImportParamsSchema as gp, ScopeUpgradeResultSchema as gr, SessionSuggestionsResolveParamsSchema as gs, SessionPlacementDiskSpaceSchema as gt, MentionsDismissParamsSchema as gu, PluginOperatorGrantsSchema as gv, SkillsProposalsListParamsSchema as gx, UsersGitHubAuthorizeCancelResultSchema as gy, WorktreesBranchesParamsSchema as h, UserPrefsLimitExceededErrorDetailsSchema as hC, SecretsReloadParamsSchema as hS, PluginDiscoveryCategorySchema as h_, TalkSessionCreateResultSchema as ha, WizardNextParamsSchema as hb, SessionsCompanionAskParamsSchema as hc, UpdateRunsGetParamsSchema as hd, BoardMcpAppDescriptorSchema as hf, SessionApprovalReplaySchema as hg, WorkerTranscriptCommitResponseFrameSchema as hh, SystemAgentSetupDetectResultSchema as hi, WORKTREE_PRESERVATION_REASONS as hl, validateWorkerInferenceStartParams as hm, NodeInvokeInputEventSchema as hn, AgentsFilesSetParamsSchema as ho, ThemesGetParamsSchema as hp, ScopeUpgradeRequestSchema as hr, SessionSuggestionsListResultSchema as hs, SessionMoveTargetSchema as ht, MentionsChangedEventSchema as hu, PluginInstalledComponentsSchema as hv, SkillsProposalUpdateParamsSchema as hx, UsersGitHubAuthorizeCancelParamsSchema as hy, ToolCatalogProfileSchema as i, GatewayErrorDetailsSchema as iC, SkillsCuratorStatusResultSchema as iS, ControlUiPluginWidgetKindSchema as i_, TalkClientToolCallResultSchema as ia, UsersSetRoleParamsSchema as ib, SessionOperationEventSchema as ic, UpdateHoldParamsSchema as id, BoardCanvasDocumentSourceSchema as if, ExecApprovalPresentationSchema as ig, WorkerProviderReplayStateSchema as ih, SystemAgentChatHistoryTurnSchema as ii, SessionsSearchParamsSchema as il, WORKER_INFERENCE_PROTOCOL_FEATURE as im, WebPushPreferencesGetParamsSchema as in, AgentsWorkspaceEntrySchema as io, WIDGET_HTML_MAX_UTF8_BYTES as ip, DevicePairSetupCompletedEventSchema as ir, ProjectsSearchRemoteParamsSchema as is, SessionDiscussionInfoResultSchema as it, ChatToolTitlesResultSchema as iu, PluginsUiDescriptorsParamsSchema as iv, USER_PREFS_VALUE_BYTES as iw, SkillsProposalDecisionParamsSchema as ix, UserProfileGitHubIdentitySchema as iy, PortalOpenResultSchema as j, SessionProviderReviewProjectionSchema as jC, EnvironmentsListParamsSchema as jS, PluginsCatalogGetResultSchema as j_, AuditRunIdentityUnsupportedV1Schema as ja, AgentsUpdateParamsSchema as jb, SessionsFilesSetParamsSchema as jc, TranscriptsExportParamsSchema as jd, BoardWidgetAppViewParamsSchema as jf, TerminalOpenResultSchema as jg, PresencePersonSchema as jh, COMMAND_DESCRIPTION_MAX_LENGTH as ji, AgentActivityItemSchema as jl, WORKER_PROTOCOL_MAX_METHOD_LENGTH as jm, NodePluginToolsUpdateParamsSchema as jn, ConversationTurnResultSchema as jo, SKILL_LIBRARY_MAX_SELECTIONS as jp, ExecApprovalsSnapshotSchema as jr, SessionPublicShareSetResultSchema as js, isCloudWorkerPlacementState as jt, SnapshotSchema as ju, SESSION_ICON_SVG_MAX_BYTES as jv, ToolsGitHubAuthorizeAccessDeniedResultSchema as jx, UsersListAuthLinksParamsSchema as jy, PortalListResultSchema as k, SessionSharingRoleSchema as kC, EnvironmentsDestroyParamsSchema as kS, PluginsCatalogCategoriesResultSchema as k_, AuditRunIdentityPresentV1Schema as ka, AgentsListParamsSchema as kb, SessionsFilesRevealParamsSchema as kc, TranscriptSessionSummarySchema as kd, BoardUpdateParamsSchema as kf, TerminalListResultSchema as kg, PresenceDeviceSchema as kh, COMMAND_CHOICE_LABEL_MAX_LENGTH as ki, SessionsRecoverParamsSchema as kl, WORKER_PROTOCOL_MAX_FEATURES as km, NodePendingEnqueueResultSchema as kn, ConversationTurnParamsSchema as ko, SKILL_LIBRARY_MAX_FILES as kp, ExecApprovalsNodeSnapshotSchema as kr, SessionPublicShareSchema as ks, SessionsReclaimResultPlacementSchema as kt, TickEventSchema as ku, SESSION_ICON_GLYPH_IDS as kv, SkillsWorkshopReadParamsSchema as kx, UsersLinkEmailParamsSchema as ky, ToolsEffectiveNoticeSchema as l, ProjectCloneErrorDetailsSchema as lC, ModelsListResultSchema as lS, PluginCatalogOfficialInstallSchema as l_, TalkModeParamsSchema as la, UsersUnlinkChannelIdentityResultSchema as lb, SessionsBranchesListParamsSchema as lc, UpdateScheduleStateSchema as ld, BoardCronActionParamsSchema as lf, PendingApprovalSnapshotSchema as lg, WorkerSessionsSpawnParamsSchema as lh, SystemAgentSetupActivateResultSchema as li, SessionsPatchManyTargetSchema as ll, WorkerInferenceModelRefSchema as lm, WebPushVapidPublicKeyParamsSchema as ln, AgentsWorkspaceListResultSchema as lo, TalkVoiceSelectionSchema as lp, DeviceTokenRotateParamsSchema as lr, SessionSuggestionResolutionSchema as ls, SessionMoveDeviceTargetSchema as lt, HumanMentionsSchema as lu, PluginsInstallProgressEventSchema as lv, SkillsProposalInspectParamsSchema as lx, UsersAuthConnectCatalogResultSchema as ly, WorktreeRepositoryStatusSchema as m, UnknownAgentIdErrorDetailsSchema as mC, SecretStoreSecretEntrySchema as mS, PluginDiscoveryCatalogFactsSchema as m_, TalkSessionCreateParamsSchema as ma, WizardCancelParamsSchema as mb, SessionsCompactParamsSchema as mc, UpdateRunResultSchema as md, BoardLegacyEventParamsSchema as mf, SessionApprovalEventSchema as mg, WorkerTranscriptCommitRequestFrameSchema as mh, SystemAgentSetupDetectParamsSchema as mi, SessionsDeleteResultSchema as ml, validateWorkerInferenceEventFrame as mm, NodeInvokeCancelEventSchema as mn, AgentsFilesListResultSchema as mo, ThemePaletteSchema as mp, ScopeUpgradeRejectedSchema as mr, SessionSuggestionsListParamsSchema as ms, SessionMoveProfileTargetSchema as mt, MentionableUserSchema as mu, PluginInstallTrustSchema as mv, SkillsProposalReviseParamsSchema as mx, UsersAuthConnectStatusResultSchema as my, ToolCatalogEntrySchema as n, EnvironmentsSessionStatusParamsSchema as nC, SkillsCuratorLiveStatusResultSchema as nS, CapabilityConsentErrorDetailsSchema as n_, TalkClientSteerParamsSchema as na, UsersSetDisplayNameParamsSchema as nb, SessionObserverHealthSchema as nc, ConfigSetParamsSchema as nd, BOARD_WIDGET_TOOL_MAX_LENGTH as nf, CancelledApprovalSnapshotSchema as ng, WorkerPresenceParamsSchema as nh, SystemAgentChatHistoryParamsSchema as ni, SessionsUsageParamsSchema as nl, WORKER_INFERENCE_MAX_OUTPUT_TOKENS as nm, WebPushNotificationCategorySchema as nn, ArtifactsListParamsSchema as no, CanvasDocumentViewParamsSchema as np, DevicePairSetupCodeParamsSchema as nr, ProjectsRemoveParamsSchema as ns, SessionsResolveResultSchema as nt, ChatStatusEventSchema as nu, PluginsSetEnabledParamsSchema as nv, USER_PREFS_ENTRY_LIMIT as nw, SkillsProposalApplyResultSchema as nx, UserProfileAuthLinkSchema as ny, ToolsCatalogResultSchema as o, McpAppViewExpiredErrorDetailsSchema as oC, ModelChoiceSchema as oS, PluginCatalogClawHubInstallSchema as o_, TalkConfigParamsSchema as oa, UsersUnlinkAuthProfileParamsSchema as ob, SessionsAbortParamsSchema as oc, UpdateReportParamsSchema as od, BoardChatDockSchema as of, ExternalPostApprovalScopeSchema as og, WorkerSessionToolResultSchema as oh, SystemAgentChatQuestionSchema as oi, SESSIONS_PATCH_MANY_MAX_TARGETS as ol, WorkerInferenceCancelRequestFrameSchema as om, WebPushSubscribeParamsSchema as on, AgentsWorkspaceGetParamsSchema as oo, TalkVoiceChangeEventSchema as op, DevicePairSetupStatusParamsSchema as or, RemoteProjectSchema as os, SessionDiscussionOpenParamsSchema as ot, LogsTailResultSchema as ou, PluginsUninstallParamsSchema as ov, closedObject as ow, SkillsProposalEvaluateResultSchema as ox, UsersAuthConnectAnswerParamsSchema as oy, WorktreeRecordSchema as p, TaskWorktreeSourceRequiredErrorDetailsSchema as pC, SecretStoreEnvEntrySchema as pS, PluginDeclaredSurfaceWideningSchema as p_, TalkSessionCloseParamsSchema as pa, WizardAnswerSchema as pb, SessionsCleanupParamsSchema as pc, UpdateRunRecordSchema as pd, BoardGetParamsSchema as pf, PluginApprovalSeveritySchema as pg, WorkerTranscriptCommitParamsSchema as ph, SystemAgentSetupAuthStartResultSchema as pi, SessionsDeleteParamsSchema as pl, validateWorkerInferenceCancelParams as pm, NodeHostStatsPayloadSchema as pn, AgentsFilesListParamsSchema as po, ThemeModeSchema as pp, ScopeUpgradeRegistrationSchema as pr, SessionSuggestionsAddResultSchema as ps, SessionMovePlacementStateSchema as pt, MentionInboxItemSchema as pu, PluginInspectSourceSchema as pv, SkillsProposalRequestRevisionResultSchema as px, UsersAuthConnectStatusParamsSchema as py, TaskSuggestionsListParamsSchema as q, InputProvenanceSchema as qC, WorkerExecutionModeSchema as qS, PluginsRefreshResultSchema as q_, AuditActivityListResultSchema as qa, ModelsProbeTargetResultSchema as qb, SessionsObserverVisibilityParamsSchema as qc, ProgressCardPutResultSchema as qd, BoardWidgetPutContentSchema as qf, SessionsCatalogContinueParamsSchema as qg, ApprovalHistoryParamsSchema as qh, ChannelsStatusResultSchema as qi, ChatInputReceiptsSchema as ql, WorkerLiveEventErrorDetailsSchema as qm, DesktopReleaseResultSchema as qn, ProjectRecentSchema as qo, validateSkillsLibraryUploadParams as qp, CronRunParamsSchema as qr, SessionFileContentEncodingSchema as qs, QuestionSecretStoreBindingSchema as qt, GatewaySuspendStatusRunningResultSchema as qu, SessionGitHubPublishParamsSchema as qv, ToolsGitHubManagedConfigureParamsSchema as qx, UsersPrefsGetResultSchema as qy, ToolCatalogGroupSchema as r, CronJobNotFoundErrorDetailsSchema as rC, SkillsCuratorStatusParamsSchema as rS, ControlUiPluginTabSchema as r_, TalkClientToolCallParamsSchema as ra, UsersSetDisplayNameResultSchema as rb, SessionObserverPlanProgressSchema as rc, UpdateAvailableSchema as rd, BoardActionParamsSchema as rf, DeniedApprovalSnapshotSchema as rg, WorkerPresenceResponseFrameSchema as rh, SystemAgentChatHistoryResultSchema as ri, SessionsSearchHitSchema as rl, WORKER_INFERENCE_METHODS as rm, WebPushNotificationPreferencesSchema as rn, ArtifactsListResultSchema as ro, CanvasDocumentViewResultSchema as rp, DevicePairSetupCodeResultSchema as rr, ProjectsRemoveResultSchema as rs, SessionDiscussionInfoParamsSchema as rt, ChatToolTitlesParamsSchema as ru, PluginsSetEnabledResultSchema as rv, USER_PREFS_PROFILE_KEY_LIMIT as rw, SkillsProposalCreateParamsSchema as rx, UserProfileAvatarMimeSchema as ry, ToolsEffectiveEntrySchema as s, MissingScopeErrorDetailsSchema as sC, ModelRuntimeChoiceSchema as sS, PluginCatalogEntrySchema as s_, TalkConfigResultSchema as sa, UsersUnlinkAuthProfileResultSchema as sb, SessionsAssignOwnerParamsSchema as sc, UpdateReportResultSchema as sd, BoardCommandEventSchema as sf, MessageSendApprovalScopeSchema as sg, WorkerSessionsSendParamsSchema as sh, SystemAgentChatResultSchema as si, SessionsPatchManyParamsSchema as sl, WorkerInferenceCancelResponseFrameSchema as sm, WebPushTestParamsSchema as sn, AgentsWorkspaceGetResultSchema as so, TalkVoiceCompleteParamsSchema as sp, DevicePairSetupStatusResultSchema as sr, SessionSuggestionActionSchema as ss, SessionDiscussionOpenResultSchema as st, projectChatErrorDetail as su, PluginsUninstallResultSchema as sv, SkillsProposalEventsListParamsSchema as sx, UsersAuthConnectCancelParamsSchema as sy, ToolAccessDiagnosticsSchema as t, EnvironmentsSessionDestroyParamsSchema as tC, SkillsCuratorActionResultSchema as tS, SessionsCatalogStartTerminalResultSchema as t_, TalkClientMutationResultSchema as ta, UsersSetAvatarResultSchema as tb, SessionObserverDigestSchema as tc, ConfigSchemaResponseSchema as td, BOARD_DATA_BINDING_ID_MAX_LENGTH as tf, ApprovalTerminalReasonSchema as tg, WorkerPortalResponseFrameSchema as th, CronUpdateParamsSchema as ti, SessionsSendParamsSchema as tl, WORKER_INFERENCE_MAX_CONTEXT_MESSAGES as tm, WebPushDevicePreferencesSchema as tn, ArtifactsGetResultSchema as to, CanvasDocumentPreviewParamsSchema as tp, DevicePairResolvedEventSchema as tr, ProjectsRegisterResultSchema as ts, SessionsResolveParamsSchema as tt, ChatStartupParamsSchema as tu, PluginsSessionActionSuccessResultSchema as tv, GIT_COAUTHOR_PREFERENCE_KEY as tw, SkillsProposalActionParamsSchema as tx, UserModelAccountSchema as ty, ToolsEffectiveParamsSchema as u, SessionWorkspaceRecoveryRequiredErrorDetailsSchema as uC, ChatAccountSelectionSchema as uS, PluginControlUiDescriptorSchema as u_, TalkSessionAppendAudioParamsSchema as ua, UI_APPEARANCE_PREFERENCE_KEYS as ub, SessionsBranchesListResultSchema as uc, UpdateStatusParamsSchema as ud, BoardDataReadParamsSchema as uf, PendingSessionApprovalEventSchema as ug, WorkerSessionsSpawnResponseFrameSchema as uh, SystemAgentSetupActivateStartParamsSchema as ui, SessionsPatchMutationSchema as ul, WorkerInferenceOptionsSchema as um, NodeDescribeParamsSchema as un, AgentsFileEntrySchema as uo, TalkVoiceSetParamsSchema as up, DeviceTokenRotateResultSchema as ur, SessionSuggestionSchema as us, SessionMoveExpectedSourceSchema as ut, MAX_HUMAN_MENTIONS as uu, PluginDecisionProviderStatusSchema as uv, SkillsProposalInspectResultSchema as ux, UsersAuthConnectResultSchema as uy, WorktreesGcParamsSchema as v, errorShape as vC, SecretsResolveResultSchema as vS, PluginDiscoveryLocalFactsSchema as v_, TalkSessionSubmitToolResultParamsSchema as va, WizardStartResultSchema as vb, SessionsCompanionResetResultSchema as vc, UpdateRunsListResultSchema as vd, BoardPromptAuthorizeParamsSchema as vf, TerminalApprovalSnapshotSchema as vg, WorkerTranscriptUserMessageSchema as vh, SystemAgentWizardCancelSchema as vi, SessionsGoalClearParamsSchema as vl, NODE_WORKER_IDLE_RETENTION_PROTOCOL_FEATURE as vm, NodeInvokeRequestEventSchema as vn, AgentIdentityParamsSchema as vo, ThemesSetParamsSchema as vp, ExecApprovalGetParamsSchema as vr, SessionTypingEventSchema as vs, SessionPlacementMoveSchema as vt, MentionsListResultSchema as vu, PluginCredentialInspectionSchema as vv, SkillsSearchParamsSchema as vx, UsersGitHubAuthorizePollResultSchema as vy, WorktreesRestoreParamsSchema as w, SessionOwnerSchema as wC, DesktopAvailabilitySchema as wS, PluginSearchResultEntrySchema as w_, WebLoginWaitParamsSchema as wa, AgentSummarySchema as wb, SessionsDiffResultSchema as wc, TRANSCRIPTS_LEGACY_RESULT_MAX_BYTES as wd, BoardTabIdSchema as wf, TerminalCloseParamsSchema as wg, WORKER_PROTOCOL_MAX_IDENTIFIER_LENGTH as wh, COMMAND_ALIAS_MAX_ITEMS as wi, SessionsStorageStatusResultSchema as wl, WORKER_LINEAGE_START_PROTOCOL_FEATURE as wm, NodePairRemoveParamsSchema as wn, ConversationListResultSchema as wo, UiNavigateCommandSchema as wp, ExecApprovalResolveParamsSchema as wr, SessionMemberRemoveParamsSchema as ws, SessionsDispatchParamsSchema as wt, GatewayFrameSchema as wu, PLUGIN_UI_CAPABILITIES as wv, SkillsStatusParamsSchema as wx, UsersGitHubStatusResultSchema as wy, WorktreesListResultSchema as x, SessionCreatedActorSchema as xC, SecretsStoreListResultSchema as xS, PluginRuntimeApplicationSchema as x_, TtsSpeakParamsSchema as xa, WizardStepSchema as xb, SessionsCreateResultSchema as xc, TRANSCRIPTS_EXPORT_MAX_BYTES as xd, BoardSnapshotSchema as xf, TerminalAckResultSchema as xg, WorkerComputerResponseFrameSchema as xh, SystemChangeSourceSchema as xi, SessionsTitlePrepareParamsSchema as xl, WORKER_EXECUTION_CONTEXT_PROTOCOL_FEATURE as xm, NodePairApproveParamsSchema as xn, AgentWaitParamsSchema as xo, UiCommandResultSchema as xp, ExecApprovalGrantsRevokeParamsSchema as xr, SessionMemberAddParamsSchema as xs, SessionPlacementSchema as xt, ConnectParamsSchema as xu, validatePluginsCredentialsInspectParams as xv, SkillsSecurityVerdictsResultSchema as xx, UsersGitHubDisconnectParamsSchema as xy, WorktreesGcResultSchema as y, missingScopeErrorShape as yC, SecretsStoreDeleteParamsSchema as yS, PluginJsonValueSchema as y_, TalkSpeakParamsSchema as ya, WizardStatusParamsSchema as yb, SessionsCompanionStateParamsSchema as yc, SessionOwnerSessionCountSchema as yd, BoardSetChatDockCommandSchema as yf, TerminalSessionApprovalEventSchema as yg, WORKER_COMPUTER_PROTOCOL_FEATURE as yh, SystemChangeEntrySchema as yi, SessionsGoalMutationResultSchema as yl, WORKER_BUNDLE_PREWARM_VERSION as ym, NodeInvokeResultParamsSchema as yn, AgentIdentityResultSchema as yo, UiClosePaneCommandSchema as yp, ExecApprovalGrantsListParamsSchema as yr, SessionTypingParamsSchema as ys, SessionPlacementProtocolSchemas as yt, UsersMentionableParamsSchema as yu, PluginsCredentialsInspectParamsSchema as yv, SkillsSearchResultSchema as yx, UsersGitHubAuthorizeStartParamsSchema as yy, TaskSuggestionResolutionSchema as z, SessionParticipantSchema as zC, RuntimeTargetIssueSchema as zS, PluginsControlUiStatusResultSchema as z_, AUDIT_ACTIVITY_DIRECTIONS as za, ModelsAuthLogoutParamsSchema as zb, SessionsGroupsListResultSchema as zc, TranscriptsSummarizeParamsSchema as zd, BoardWidgetMcpAppContentSchema as zf, SessionCatalogLocatorSchema as zg, ApprovalAllowedReasonSchema as zh, ChannelsPairingApproveResultSchema as zi, ChatFinalEventSchema as zl, WORKER_TRANSCRIPT_MAX_CONTENT_PARTS as zm, HooksStatusParamsSchema as zn, MigrationsMemoryPlanParamsSchema as zo, SkillsLibrarySaveParamsSchema as zp, CronHistoryParamsSchema as zr, SessionBranchSchema as zs, QuestionRequestParamsSchema as zt, GatewaySuspendPrepareReadyResultSchema as zu, SessionGitHubOptionsParamsSchema as zv, ToolsGitHubAuthorizePollParamsSchema as zx, UsersMergeParamsSchema as zy };
|