@openclaw/gateway-protocol 2026.9.5 → 2026.9.6
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 +8 -0
- package/dist/client-info.d.mts +1 -0
- package/dist/client-info.mjs +1 -0
- package/dist/connect-error-details.mjs +1 -1
- package/dist/frame-guards.d.mts +1 -1
- package/dist/frame-guards.mjs +1 -1
- package/dist/{frames-X2k-UkK8.d.mts → frames-DrA9fYYy.d.mts} +22 -0
- package/dist/{gateway-error-details-Djlwga0B.d.mts → gateway-error-details-B0Ms-xqB.d.mts} +8 -2
- package/dist/gateway-error-details.d.mts +2 -2
- package/dist/gateway-error-details.mjs +2 -1
- package/dist/index.d.mts +1262 -589
- package/dist/index.mjs +160 -13
- package/dist/{schema-modules-CsQIRdwb.d.mts → schema-modules-CClcdadz.d.mts} +9288 -8016
- package/dist/schema.d.mts +5 -5
- package/dist/schema.mjs +50 -10
- package/dist/{server-capabilities-Gfkxm7Ho.mjs → server-capabilities-CBMEqI9z.mjs} +1 -0
- package/dist/system-agent-context.d.mts +7 -0
- package/dist/system-agent-context.mjs +50 -1
- package/dist/theme-C4mhgADx.d.mts +86 -0
- package/dist/theme-DEbDprgp.mjs +278 -0
- package/dist/theme.d.mts +2 -0
- package/dist/theme.mjs +2 -0
- package/dist/{tools-catalog-CF4aqT9l.mjs → tools-catalog-CRxZFldZ.mjs} +1783 -1233
- package/package.json +7 -2
- package/protocol.schema.json +8610 -1592
|
@@ -1,12 +1,13 @@
|
|
|
1
|
+
import { GATEWAY_CLIENT_IDS, GATEWAY_CLIENT_MODES } from "./client-info.mjs";
|
|
1
2
|
import { n as asOptionalRecord } from "./record-coerce-BVp8Dr-B.mjs";
|
|
2
3
|
import { ErrorCodes, GatewayErrorDetailCodes } from "./gateway-error-details.mjs";
|
|
3
|
-
import {
|
|
4
|
+
import { C as isThemeId, r as THEME_ARTWORK_ID_PATTERN, w as normalizeThemeMode } from "./theme-DEbDprgp.mjs";
|
|
4
5
|
import "./system-agent-context.mjs";
|
|
5
6
|
import { Type } from "typebox";
|
|
7
|
+
import { Value } from "typebox/value";
|
|
6
8
|
import "typebox/guard";
|
|
7
9
|
import "typebox/schema";
|
|
8
10
|
import { Compile } from "typebox/compile";
|
|
9
|
-
import { Value } from "typebox/value";
|
|
10
11
|
//#region src/schema/closed-object.ts
|
|
11
12
|
const identityKey = "~openclawClosedObjectIdentity";
|
|
12
13
|
function closedObject(properties) {
|
|
@@ -118,884 +119,1028 @@ const SecretRefSchema = Type.Union([
|
|
|
118
119
|
/** Secret input value: either an inline string or a structured SecretRef. */
|
|
119
120
|
const SecretInputSchema = Type.Union([Type.String(), SecretRefSchema]);
|
|
120
121
|
//#endregion
|
|
121
|
-
//#region src/schema/
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
});
|
|
132
|
-
const McpAppViewExpiredErrorDetailsSchema = closedObject({ code: Type.Literal(GatewayErrorDetailCodes.MCP_APP_VIEW_EXPIRED) });
|
|
133
|
-
const OutboundDeliveryQueuedErrorDetailsSchema = closedObject({ code: Type.Literal(GatewayErrorDetailCodes.OUTBOUND_DELIVERY_QUEUED) });
|
|
134
|
-
const UserPrefsLimitExceededErrorDetailsSchema = closedObject({
|
|
135
|
-
code: Type.Literal(GatewayErrorDetailCodes.USER_PREFS_LIMIT_EXCEEDED),
|
|
136
|
-
limit: Type.Integer({ minimum: 1 }),
|
|
137
|
-
currentCount: Type.Integer({ minimum: 0 })
|
|
138
|
-
});
|
|
139
|
-
const UnknownAgentIdErrorDetailsSchema = closedObject({
|
|
140
|
-
code: Type.Literal(GatewayErrorDetailCodes.UNKNOWN_AGENT_ID),
|
|
141
|
-
agentId: NonEmptyString
|
|
142
|
-
});
|
|
143
|
-
const SetupAdmissionBusyErrorDetailsSchema = closedObject({ code: Type.Literal(GatewayErrorDetailCodes.SETUP_ADMISSION_BUSY) });
|
|
144
|
-
const GitHubPublicationSelectionRejectedErrorDetailsSchema = closedObject({
|
|
145
|
-
code: Type.Literal(GatewayErrorDetailCodes.GITHUB_PUBLICATION_SELECTION_REJECTED),
|
|
146
|
-
idempotencyKey: NonEmptyString
|
|
147
|
-
});
|
|
148
|
-
const WizardNotFoundErrorDetailsSchema = closedObject({ code: Type.Literal(GatewayErrorDetailCodes.WIZARD_NOT_FOUND) });
|
|
149
|
-
const ProjectCloneErrorDetailsSchema = closedObject({
|
|
150
|
-
code: Type.Literal(GatewayErrorDetailCodes.PROJECT_CLONE_FAILED),
|
|
151
|
-
cause: Type.String({ enum: [
|
|
152
|
-
"invalid_url",
|
|
153
|
-
"auth_required",
|
|
154
|
-
"not_found",
|
|
155
|
-
"network",
|
|
156
|
-
"target_exists",
|
|
157
|
-
"clone_failed"
|
|
158
|
-
] })
|
|
159
|
-
});
|
|
160
|
-
const RevisionHashSchema = Type.String({ pattern: "^[a-fA-F0-9]{64}$" });
|
|
161
|
-
const SkillProposalRevisionChangedErrorDetailsSchema = closedObject({
|
|
162
|
-
code: Type.Literal(GatewayErrorDetailCodes.SKILL_PROPOSAL_REVISION_CHANGED),
|
|
163
|
-
expectedRevisionHash: RevisionHashSchema,
|
|
164
|
-
currentRevisionHash: RevisionHashSchema
|
|
165
|
-
});
|
|
166
|
-
const SessionWorkspaceRecoveryRequiredErrorDetailsSchema = closedObject({
|
|
167
|
-
code: Type.Literal(GatewayErrorDetailCodes.SESSION_WORKSPACE_RECOVERY_REQUIRED),
|
|
168
|
-
cause: Type.Literal("device_offline"),
|
|
169
|
-
recoveryAction: Type.Literal("continue_on_gateway"),
|
|
170
|
-
sessionId: NonEmptyString,
|
|
171
|
-
source: closedObject({
|
|
172
|
-
generation: Type.Integer({ minimum: 0 }),
|
|
173
|
-
environmentId: NonEmptyString,
|
|
174
|
-
ownerEpoch: Type.Integer({ minimum: 1 })
|
|
175
|
-
})
|
|
176
|
-
});
|
|
177
|
-
/** Structured details emitted by method-level failures. */
|
|
178
|
-
const GatewayErrorDetailsSchema = Type.Union([
|
|
179
|
-
CronJobNotFoundErrorDetailsSchema,
|
|
180
|
-
MissingScopeErrorDetailsSchema,
|
|
181
|
-
McpAppViewExpiredErrorDetailsSchema,
|
|
182
|
-
OutboundDeliveryQueuedErrorDetailsSchema,
|
|
183
|
-
UserPrefsLimitExceededErrorDetailsSchema,
|
|
184
|
-
SkillProposalRevisionChangedErrorDetailsSchema,
|
|
185
|
-
ProjectCloneErrorDetailsSchema,
|
|
186
|
-
UnknownAgentIdErrorDetailsSchema,
|
|
187
|
-
WizardNotFoundErrorDetailsSchema,
|
|
188
|
-
SetupAdmissionBusyErrorDetailsSchema,
|
|
189
|
-
GitHubPublicationSelectionRejectedErrorDetailsSchema,
|
|
190
|
-
SessionWorkspaceRecoveryRequiredErrorDetailsSchema
|
|
191
|
-
]);
|
|
192
|
-
/** Builds the canonical gateway error payload while preserving optional retry metadata. */
|
|
193
|
-
function errorShape(code, message, opts) {
|
|
194
|
-
return {
|
|
195
|
-
code,
|
|
196
|
-
message,
|
|
197
|
-
...opts
|
|
198
|
-
};
|
|
199
|
-
}
|
|
200
|
-
/** Builds structured details for a missing operator scope. */
|
|
201
|
-
function buildMissingScopeErrorDetails(params) {
|
|
202
|
-
const requiredScopes = params.requiredScopes.length > 0 ? [...params.requiredScopes] : [params.missingScope];
|
|
203
|
-
return {
|
|
204
|
-
code: GatewayErrorDetailCodes.MISSING_SCOPE,
|
|
205
|
-
missingScope: params.missingScope,
|
|
206
|
-
requiredScopes
|
|
207
|
-
};
|
|
208
|
-
}
|
|
209
|
-
/** Builds a forbidden error for a missing operator scope without message parsing. */
|
|
210
|
-
function missingScopeErrorShape(params) {
|
|
211
|
-
const details = buildMissingScopeErrorDetails(params);
|
|
212
|
-
return errorShape(ErrorCodes.FORBIDDEN, `missing scope: ${params.missingScope}`, { details });
|
|
213
|
-
}
|
|
214
|
-
//#endregion
|
|
215
|
-
//#region src/schema/agent-database-admission.ts
|
|
216
|
-
const AgentDatabaseAdmissionRefusalProperties = {
|
|
217
|
-
agentId: NonEmptyString,
|
|
218
|
-
paths: Type.Array(NonEmptyString),
|
|
219
|
-
reason: NonEmptyString,
|
|
220
|
-
repairHint: NonEmptyString
|
|
221
|
-
};
|
|
222
|
-
const AgentDatabaseAdmissionRefusalSchema = Type.Union([closedObject({
|
|
223
|
-
...AgentDatabaseAdmissionRefusalProperties,
|
|
224
|
-
embeddedOwnerId: NonEmptyString,
|
|
225
|
-
code: Type.Literal("agent-database-ownership-mismatch")
|
|
226
|
-
}), closedObject({
|
|
227
|
-
...AgentDatabaseAdmissionRefusalProperties,
|
|
228
|
-
code: Type.Union([Type.Literal("agent-database-inspection-pending"), Type.Literal("agent-database-inspection-failed")])
|
|
229
|
-
})]);
|
|
122
|
+
//#region src/schema/session-classification.ts
|
|
123
|
+
/**
|
|
124
|
+
* Stable, non-sensitive classification for a session row.
|
|
125
|
+
*
|
|
126
|
+
* The taxonomy remains open so newer Gateways can add classifications without
|
|
127
|
+
* making otherwise compatible older clients reject the row.
|
|
128
|
+
*/
|
|
129
|
+
const SessionClassificationSchema = NonEmptyString;
|
|
130
|
+
/** Non-sensitive peer category derived from the session route, when known. */
|
|
131
|
+
const SessionPeerKindSchema = NonEmptyString;
|
|
230
132
|
//#endregion
|
|
231
|
-
//#region src/schema/
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
Type.Literal("user"),
|
|
239
|
-
Type.Literal("user-link")
|
|
240
|
-
]));
|
|
241
|
-
const ChatAccountSelectionLabelSchema = Type.String({
|
|
242
|
-
minLength: 1,
|
|
243
|
-
maxLength: 256
|
|
244
|
-
});
|
|
245
|
-
/** Configured preference only; provider failover can use a different account. */
|
|
246
|
-
const ChatAccountSelectionSchema = Type.Union([
|
|
133
|
+
//#region src/schema/session-participant.ts
|
|
134
|
+
/** Released v4 wire bound for the compact session-row participant summary. */
|
|
135
|
+
const SESSION_PARTICIPANT_LIMIT = 4;
|
|
136
|
+
/** Storage and expanded-projection bound for one session's retained participant identities. */
|
|
137
|
+
const SESSION_EXPANDED_PARTICIPANT_LIMIT = 32;
|
|
138
|
+
/** Product identity, independent of display metadata and authorization. */
|
|
139
|
+
const SessionParticipantIdentitySchema = Type.Union([
|
|
247
140
|
closedObject({
|
|
248
|
-
|
|
249
|
-
|
|
141
|
+
type: Type.Literal("profile"),
|
|
142
|
+
id: NonEmptyString
|
|
250
143
|
}),
|
|
251
144
|
closedObject({
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
authProfileId: Type.Optional(ModelAuthProfileIdSchema),
|
|
255
|
-
source: ChatAccountSelectionSourceSchema
|
|
145
|
+
type: Type.Literal("agent"),
|
|
146
|
+
id: NonEmptyString
|
|
256
147
|
}),
|
|
257
148
|
closedObject({
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
149
|
+
type: Type.Literal("remote"),
|
|
150
|
+
pluginId: NonEmptyString,
|
|
151
|
+
domain: NonEmptyString,
|
|
152
|
+
idKind: NonEmptyString,
|
|
153
|
+
id: NonEmptyString
|
|
154
|
+
}),
|
|
155
|
+
closedObject({
|
|
156
|
+
type: Type.Literal("observation"),
|
|
157
|
+
pluginId: Type.Union([NonEmptyString, Type.Null()]),
|
|
158
|
+
accountId: Type.Union([NonEmptyString, Type.Null()]),
|
|
159
|
+
senderKind: Type.Union([
|
|
160
|
+
Type.Literal("human"),
|
|
161
|
+
Type.Literal("bot"),
|
|
162
|
+
Type.Literal("unknown")
|
|
163
|
+
]),
|
|
164
|
+
id: NonEmptyString
|
|
165
|
+
}),
|
|
166
|
+
closedObject({
|
|
167
|
+
type: Type.Literal("legacy"),
|
|
168
|
+
actorType: Type.String(),
|
|
169
|
+
source: Type.Union([Type.String(), Type.Null()]),
|
|
170
|
+
id: Type.String()
|
|
262
171
|
})
|
|
263
172
|
]);
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
*
|
|
269
|
-
* Environments are runtime targets such as local hosts, VMs, or remote workers;
|
|
270
|
-
* this schema layer only describes their gateway-visible status summary.
|
|
271
|
-
*/
|
|
272
|
-
/** Runtime availability state for an environment target. */
|
|
273
|
-
const EnvironmentStatusSchema = Type.String({ enum: [
|
|
274
|
-
"available",
|
|
275
|
-
"unavailable",
|
|
276
|
-
"starting",
|
|
277
|
-
"stopping",
|
|
278
|
-
"error"
|
|
279
|
-
] });
|
|
280
|
-
const EnvironmentTrustSchema = Type.String({ enum: ["persistent", "disposable"] });
|
|
281
|
-
/** Operational desktop state reported by the current native node connection. */
|
|
282
|
-
const DesktopAvailabilitySchema = closedObject({ state: Type.Union([
|
|
283
|
-
Type.Literal("locked"),
|
|
284
|
-
Type.Literal("unlocked"),
|
|
285
|
-
Type.Literal("unknown")
|
|
286
|
-
]) });
|
|
287
|
-
/** Durable lifecycle states for plugin-provisioned worker environments. */
|
|
288
|
-
const WorkerEnvironmentStateSchema = Type.Union([
|
|
289
|
-
Type.Literal("requested"),
|
|
290
|
-
Type.Literal("provisioning"),
|
|
291
|
-
Type.Literal("bootstrapping"),
|
|
292
|
-
Type.Literal("ready"),
|
|
293
|
-
Type.Literal("attached"),
|
|
294
|
-
Type.Literal("idle"),
|
|
295
|
-
Type.Literal("draining"),
|
|
296
|
-
Type.Literal("destroying"),
|
|
297
|
-
Type.Literal("destroyed"),
|
|
298
|
-
Type.Literal("failed"),
|
|
299
|
-
Type.Literal("orphaned")
|
|
300
|
-
]);
|
|
301
|
-
/** Process-local SSH tunnel connectivity for a worker environment. */
|
|
302
|
-
const WorkerTunnelStatusSchema = Type.Union([
|
|
303
|
-
Type.Literal("stopped"),
|
|
304
|
-
Type.Literal("connecting"),
|
|
305
|
-
Type.Literal("connected"),
|
|
306
|
-
Type.Literal("reconnecting")
|
|
307
|
-
]);
|
|
308
|
-
/** Closed app ids a worker desktop may advertise and launch. */
|
|
309
|
-
const WorkerDesktopAppIdSchema = Type.Union([Type.Literal("browser"), Type.Literal("terminal")]);
|
|
310
|
-
/** Actionable issue attached only to runtime targets that need operator intervention. */
|
|
311
|
-
const RuntimeTargetIssueSchema = closedObject({
|
|
312
|
-
code: Type.Literal("update-required"),
|
|
313
|
-
action: Type.Literal("update-and-reconnect"),
|
|
314
|
-
updateCommand: Type.Literal("openclaw update"),
|
|
315
|
-
headlessReconnectCommand: Type.Literal("openclaw node restart")
|
|
173
|
+
const SessionParticipantSchema = closedObject({
|
|
174
|
+
identity: SessionParticipantIdentitySchema,
|
|
175
|
+
label: Type.Optional(NonEmptyString),
|
|
176
|
+
avatarUrl: Type.Optional(NonEmptyString)
|
|
316
177
|
});
|
|
317
|
-
const
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
/** Bounded live worker slots advertised by a connected node host. */
|
|
322
|
-
const WorkerSlotSummarySchema = Type.Refine(closedObject({
|
|
323
|
-
total: Type.Integer({
|
|
324
|
-
minimum: 1,
|
|
325
|
-
maximum: 1024
|
|
178
|
+
const SessionPersonSchema = closedObject({
|
|
179
|
+
identity: closedObject({
|
|
180
|
+
type: Type.Literal("profile"),
|
|
181
|
+
id: NonEmptyString
|
|
326
182
|
}),
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
})
|
|
331
|
-
}), (slots) => slots.available <= slots.total, (slots) => `available worker slots ${slots.available} exceed total ${slots.total}`);
|
|
332
|
-
/** Gateway-owned authority state for one runtime-required node command. */
|
|
333
|
-
const RequiredNodeCommandStateSchema = Type.Union([
|
|
334
|
-
Type.Literal("invocable"),
|
|
335
|
-
Type.Literal("pending-approval"),
|
|
336
|
-
Type.Literal("undeclared"),
|
|
337
|
-
Type.Literal("unauthorized")
|
|
338
|
-
]);
|
|
339
|
-
const RequiredNodeCommandSchema = closedObject({
|
|
340
|
-
command: Type.String({
|
|
341
|
-
minLength: 1,
|
|
342
|
-
maxLength: 128
|
|
343
|
-
}),
|
|
344
|
-
state: RequiredNodeCommandStateSchema
|
|
183
|
+
label: Type.Optional(NonEmptyString),
|
|
184
|
+
avatarUrl: Type.Optional(NonEmptyString),
|
|
185
|
+
sessionCount: Type.Integer({ minimum: 1 })
|
|
345
186
|
});
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
maxItems: 8,
|
|
360
|
-
uniqueItems: true
|
|
361
|
-
}))
|
|
187
|
+
//#endregion
|
|
188
|
+
//#region src/schema/sessions-activity-summary.ts
|
|
189
|
+
const SessionActivitySummarySchema = closedObject({
|
|
190
|
+
/** Caller-specific participation permission; operator.write is required separately. */
|
|
191
|
+
canEnsure: Type.Optional(Type.Boolean()),
|
|
192
|
+
text: Type.Optional(Type.String({ maxLength: 900 })),
|
|
193
|
+
updatedAt: Type.Optional(Type.Integer({ minimum: 0 })),
|
|
194
|
+
state: Type.Union([
|
|
195
|
+
Type.Literal("current"),
|
|
196
|
+
Type.Literal("stale"),
|
|
197
|
+
Type.Literal("updating"),
|
|
198
|
+
Type.Literal("unavailable")
|
|
199
|
+
])
|
|
362
200
|
});
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
maxItems: 128,
|
|
384
|
-
uniqueItems: true
|
|
385
|
-
})),
|
|
386
|
-
desktop: Type.Optional(Type.Boolean()),
|
|
387
|
-
desktopAvailability: Type.Optional(DesktopAvailabilitySchema),
|
|
388
|
-
issues: Type.Optional(Type.Array(RuntimeTargetIssueSchema, {
|
|
389
|
-
minItems: 1,
|
|
390
|
-
maxItems: 8
|
|
391
|
-
})),
|
|
392
|
-
worker: Type.Optional(WorkerEnvironmentMetadataSchema),
|
|
393
|
-
preparation: Type.Optional(closedObject({
|
|
394
|
-
purpose: Type.Union([Type.Literal("reserve"), Type.Literal("build")]),
|
|
395
|
-
key: NonEmptyString
|
|
396
|
-
}))
|
|
397
|
-
};
|
|
398
|
-
}
|
|
399
|
-
function createEnvironmentSummarySchema() {
|
|
400
|
-
return closedObject(createEnvironmentSummaryProperties());
|
|
401
|
-
}
|
|
402
|
-
/** Public environment summary shown in listings and status responses. */
|
|
403
|
-
const EnvironmentSummarySchema = closedObject({
|
|
404
|
-
...createEnvironmentSummaryProperties(),
|
|
405
|
-
requiredNodeCommand: Type.Optional(RequiredNodeCommandSchema)
|
|
201
|
+
const SessionsActivitySummaryEnsureParamsSchema = closedObject({ sessions: Type.Array(closedObject({
|
|
202
|
+
key: NonEmptyString,
|
|
203
|
+
agentId: Type.Optional(NonEmptyString)
|
|
204
|
+
}), {
|
|
205
|
+
minItems: 1,
|
|
206
|
+
maxItems: 20
|
|
207
|
+
}) });
|
|
208
|
+
const SessionsActivitySummaryEnsureResultSchema = closedObject({ sessions: Type.Array(closedObject({
|
|
209
|
+
key: NonEmptyString,
|
|
210
|
+
agentId: NonEmptyString,
|
|
211
|
+
activitySummary: SessionActivitySummarySchema
|
|
212
|
+
}), { maxItems: 20 }) });
|
|
213
|
+
//#endregion
|
|
214
|
+
//#region src/schema/sessions-provider-review.ts
|
|
215
|
+
const SessionProviderReviewProjectionSchema = closedObject({
|
|
216
|
+
id: NonEmptyString,
|
|
217
|
+
runId: NonEmptyString,
|
|
218
|
+
explanation: Type.Optional(Type.String({ maxLength: 65536 })),
|
|
219
|
+
continuationMessage: Type.Optional(Type.String({ maxLength: 1024 })),
|
|
220
|
+
canContinue: Type.Boolean()
|
|
406
221
|
});
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
const WorkerMachineOptionSchema = closedObject({
|
|
414
|
-
id: Type.String({
|
|
415
|
-
minLength: 1,
|
|
416
|
-
maxLength: 128
|
|
417
|
-
}),
|
|
418
|
-
label: Type.String({
|
|
222
|
+
const SessionsProviderReviewContinueParamsSchema = closedObject({
|
|
223
|
+
sessionKey: NonEmptyString,
|
|
224
|
+
agentId: Type.Optional(NonEmptyString),
|
|
225
|
+
sessionId: NonEmptyString,
|
|
226
|
+
reviewId: NonEmptyString,
|
|
227
|
+
idempotencyKey: Type.String({
|
|
419
228
|
minLength: 1,
|
|
420
229
|
maxLength: 128
|
|
421
|
-
})
|
|
422
|
-
cpu: Type.Optional(Type.Integer({
|
|
423
|
-
minimum: 1,
|
|
424
|
-
maximum: 65536
|
|
425
|
-
})),
|
|
426
|
-
memoryGb: Type.Optional(Type.Integer({
|
|
427
|
-
minimum: 1,
|
|
428
|
-
maximum: 65536
|
|
429
|
-
})),
|
|
430
|
-
default: Type.Optional(Type.Boolean()),
|
|
431
|
-
os: Type.Optional(Type.String({
|
|
432
|
-
minLength: 1,
|
|
433
|
-
maxLength: 64
|
|
434
|
-
}))
|
|
435
|
-
});
|
|
436
|
-
const WorkerMachineOptionsSchema = Type.Array(WorkerMachineOptionSchema, {
|
|
437
|
-
minItems: 1,
|
|
438
|
-
maxItems: 64
|
|
230
|
+
})
|
|
439
231
|
});
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
232
|
+
//#endregion
|
|
233
|
+
//#region src/schema/sessions-sharing-values.ts
|
|
234
|
+
const SESSION_VISIBILITY_VALUES = [
|
|
235
|
+
"shared",
|
|
236
|
+
"read-only",
|
|
237
|
+
"suggest",
|
|
238
|
+
"draft"
|
|
239
|
+
];
|
|
240
|
+
const SessionVisibilitySchema = Type.Union([
|
|
241
|
+
Type.Literal("shared"),
|
|
242
|
+
Type.Literal("read-only"),
|
|
243
|
+
Type.Literal("suggest"),
|
|
244
|
+
Type.Literal("draft")
|
|
245
|
+
]);
|
|
246
|
+
const SessionSharingRoleSchema = Type.Union([
|
|
247
|
+
Type.Literal("admin"),
|
|
248
|
+
Type.Literal("owner"),
|
|
249
|
+
Type.Literal("member"),
|
|
250
|
+
Type.Literal("viewer")
|
|
251
|
+
]);
|
|
252
|
+
//#endregion
|
|
253
|
+
//#region src/schema/sessions-row.ts
|
|
254
|
+
const SessionPermissionModeSchema = Type.Union([
|
|
255
|
+
Type.Literal("read-only"),
|
|
256
|
+
Type.Literal("guarded"),
|
|
257
|
+
Type.Literal("workspace"),
|
|
258
|
+
Type.Literal("full")
|
|
259
|
+
]);
|
|
260
|
+
const SessionRepositorySourceSchema = closedObject({
|
|
261
|
+
url: Type.String({
|
|
447
262
|
minLength: 1,
|
|
448
|
-
maxLength:
|
|
263
|
+
maxLength: 2048
|
|
449
264
|
}),
|
|
450
|
-
|
|
451
|
-
disabledReason: Type.Optional(Type.String({
|
|
265
|
+
ref: Type.Optional(Type.String({
|
|
452
266
|
minLength: 1,
|
|
453
|
-
maxLength:
|
|
454
|
-
}))
|
|
455
|
-
});
|
|
456
|
-
/** Placement execution modes shared by runtime requirements and worker providers. */
|
|
457
|
-
const WorkerExecutionModeSchema = Type.Union([Type.Literal("worker-turn"), Type.Literal("remote-exec")]);
|
|
458
|
-
/** Configured worker target exposed without provider settings or credentials. */
|
|
459
|
-
const WorkerEnvironmentProfileSummarySchema = closedObject({
|
|
460
|
-
id: NonEmptyString,
|
|
461
|
-
providerId: NonEmptyString,
|
|
462
|
-
trust: Type.Optional(EnvironmentTrustSchema),
|
|
463
|
-
executionMode: Type.Optional(WorkerExecutionModeSchema),
|
|
464
|
-
executionModes: Type.Optional(Type.Union([Type.Tuple([WorkerExecutionModeSchema]), Type.Tuple([Type.Literal("worker-turn"), Type.Literal("remote-exec")])])),
|
|
465
|
-
machines: Type.Optional(WorkerMachineOptionsSchema),
|
|
466
|
-
operatingSystems: Type.Optional(Type.Array(WorkerOperatingSystemSchema, {
|
|
467
|
-
minItems: 1,
|
|
468
|
-
maxItems: 8
|
|
267
|
+
maxLength: 1024
|
|
469
268
|
}))
|
|
470
269
|
});
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
const
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
270
|
+
const SessionRunStatusSchema = Type.Union([
|
|
271
|
+
Type.Literal("queued"),
|
|
272
|
+
Type.Literal("running"),
|
|
273
|
+
Type.Literal("done"),
|
|
274
|
+
Type.Literal("failed"),
|
|
275
|
+
Type.Literal("killed"),
|
|
276
|
+
Type.Literal("timeout")
|
|
277
|
+
]);
|
|
278
|
+
const SessionEntryArchiveReasonSchema = Type.Union([
|
|
279
|
+
Type.Literal("manual"),
|
|
280
|
+
Type.Literal("active-session-cap"),
|
|
281
|
+
Type.Literal("age-retention"),
|
|
282
|
+
Type.Literal("stale-dashboard"),
|
|
283
|
+
Type.Literal("restart-recovery")
|
|
284
|
+
]);
|
|
285
|
+
const SessionToolOverridesSchema = closedObject({
|
|
286
|
+
mcpServers: Type.Optional(Type.Record(Type.String({ minLength: 1 }), Type.Boolean())),
|
|
287
|
+
mcpToolsDeny: Type.Optional(Type.Record(Type.String({ minLength: 1 }), Type.Array(NonEmptyString))),
|
|
288
|
+
skills: Type.Optional(Type.Record(Type.String({ minLength: 1 }), Type.Boolean())),
|
|
289
|
+
webSearch: Type.Optional(Type.Boolean())
|
|
484
290
|
});
|
|
485
|
-
/**
|
|
486
|
-
const
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
291
|
+
/** Projected actor that caused a session node to be created. */
|
|
292
|
+
const SessionCreatedActorSchema = closedObject({
|
|
293
|
+
type: Type.Union([
|
|
294
|
+
Type.Literal("human"),
|
|
295
|
+
Type.Literal("agent"),
|
|
296
|
+
Type.Literal("system")
|
|
297
|
+
]),
|
|
298
|
+
id: Type.Optional(NonEmptyString),
|
|
299
|
+
label: Type.Optional(NonEmptyString),
|
|
300
|
+
/** Durable profile avatar route; absent for actors without a stored profile avatar. */
|
|
301
|
+
avatarUrl: Type.Optional(NonEmptyString),
|
|
302
|
+
/** Display identity is separate from the actor fields used by ownership policy. */
|
|
303
|
+
identity: Type.Optional(SessionParticipantIdentitySchema)
|
|
491
304
|
});
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
|
|
305
|
+
/** Mutable responsibility for one session; actor display data is projected at read time. */
|
|
306
|
+
const SessionOwnerSchema = closedObject({
|
|
307
|
+
actor: SessionCreatedActorSchema,
|
|
308
|
+
assignedBy: Type.Optional(SessionCreatedActorSchema),
|
|
309
|
+
assignedAt: Type.Optional(Type.Number({ minimum: 0 }))
|
|
496
310
|
});
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
311
|
+
const SessionSwarmSummarySchema = closedObject({
|
|
312
|
+
groups: Type.Array(closedObject({
|
|
313
|
+
groupId: NonEmptyString,
|
|
314
|
+
createdAt: Type.Number({ minimum: 0 }),
|
|
315
|
+
children: Type.Optional(Type.Array(closedObject({
|
|
316
|
+
sessionKey: NonEmptyString,
|
|
317
|
+
status: Type.Union([
|
|
318
|
+
Type.Literal("queued"),
|
|
319
|
+
Type.Literal("running"),
|
|
320
|
+
Type.Literal("done"),
|
|
321
|
+
Type.Literal("failed")
|
|
322
|
+
])
|
|
323
|
+
}), { maxItems: 64 })),
|
|
324
|
+
queued: Type.Integer({ minimum: 0 }),
|
|
325
|
+
running: Type.Integer({ minimum: 0 }),
|
|
326
|
+
done: Type.Integer({ minimum: 0 }),
|
|
327
|
+
failed: Type.Integer({ minimum: 0 })
|
|
328
|
+
}), { maxItems: 5 }),
|
|
329
|
+
otherActiveGroups: Type.Integer({ minimum: 0 })
|
|
501
330
|
});
|
|
502
|
-
/**
|
|
503
|
-
const
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
|
|
331
|
+
/** Stable Gateway session row fields; mutation envelopes may add null tombstones. */
|
|
332
|
+
const SessionRowSchema = Type.Object({
|
|
333
|
+
key: Type.String(),
|
|
334
|
+
sessionId: Type.Optional(Type.String()),
|
|
335
|
+
incognito: Type.Optional(Type.Literal(true)),
|
|
336
|
+
kind: Type.Union([
|
|
337
|
+
Type.Literal("direct"),
|
|
338
|
+
Type.Literal("group"),
|
|
339
|
+
Type.Literal("global"),
|
|
340
|
+
Type.Literal("unknown")
|
|
341
|
+
]),
|
|
342
|
+
label: Type.Optional(Type.String()),
|
|
343
|
+
autoLabel: Type.Optional(Type.String()),
|
|
344
|
+
icon: Type.Optional(Type.String()),
|
|
345
|
+
/** Named sidebar tint from SESSION_COLOR_IDS; clients map names to theme hues. */
|
|
346
|
+
color: Type.Optional(Type.String()),
|
|
347
|
+
channelAvatarUrl: Type.Optional(NonEmptyString),
|
|
348
|
+
boardFace: Type.Optional(Type.Union([Type.Literal("chat"), Type.Literal("dashboard")])),
|
|
349
|
+
/** Shared dashboard default; absent means split. */
|
|
350
|
+
boardPresentation: Type.Optional(Type.Union([Type.Literal("split"), Type.Literal("expanded")])),
|
|
351
|
+
displayName: Type.Optional(Type.String()),
|
|
352
|
+
derivedTitle: Type.Optional(Type.String()),
|
|
353
|
+
lastMessagePreview: Type.Optional(Type.String()),
|
|
354
|
+
channel: Type.Optional(Type.String()),
|
|
355
|
+
/** Stable non-sensitive facts derived from the canonical session route. */
|
|
356
|
+
classification: Type.Optional(SessionClassificationSchema),
|
|
357
|
+
agentId: Type.Optional(NonEmptyString),
|
|
358
|
+
accountId: Type.Optional(NonEmptyString),
|
|
359
|
+
peerKind: Type.Optional(SessionPeerKindSchema),
|
|
360
|
+
isMain: Type.Optional(Type.Boolean()),
|
|
361
|
+
isBackground: Type.Optional(Type.Boolean()),
|
|
362
|
+
chatType: Type.Optional(Type.Union([
|
|
363
|
+
Type.Literal("direct"),
|
|
364
|
+
Type.Literal("group"),
|
|
365
|
+
Type.Literal("channel")
|
|
366
|
+
])),
|
|
367
|
+
activitySummary: Type.Optional(SessionActivitySummarySchema),
|
|
368
|
+
updatedAt: Type.Optional(Type.Union([Type.Number(), Type.Null()])),
|
|
369
|
+
/** Gateway sampling time, retained when a read reuses a cached projection. */
|
|
370
|
+
snapshotAt: Type.Optional(Type.Number()),
|
|
371
|
+
/** Personal list preference for the authenticated viewer; not session visibility. */
|
|
372
|
+
hiddenFromInvolvingMe: Type.Optional(Type.Boolean()),
|
|
373
|
+
archived: Type.Optional(Type.Boolean()),
|
|
374
|
+
archivedAt: Type.Optional(Type.Number()),
|
|
375
|
+
archivedBy: Type.Optional(SessionCreatedActorSchema),
|
|
376
|
+
archiveReason: Type.Optional(SessionEntryArchiveReasonSchema),
|
|
377
|
+
pinned: Type.Optional(Type.Boolean()),
|
|
378
|
+
pinnedAt: Type.Optional(Type.Number()),
|
|
379
|
+
unread: Type.Optional(Type.Boolean()),
|
|
380
|
+
lastReadAt: Type.Optional(Type.Number()),
|
|
381
|
+
markedUnreadAt: Type.Optional(Type.Number()),
|
|
382
|
+
lastActivityAt: Type.Optional(Type.Number()),
|
|
383
|
+
lastInteractionAt: Type.Optional(Type.Number()),
|
|
384
|
+
status: Type.Optional(SessionRunStatusSchema),
|
|
385
|
+
lastRunError: Type.Optional(Type.String()),
|
|
386
|
+
providerReview: Type.Optional(SessionProviderReviewProjectionSchema),
|
|
387
|
+
/** Exact run that produced the latest terminal lifecycle projection. */
|
|
388
|
+
lastRunId: Type.Optional(NonEmptyString),
|
|
389
|
+
restartRecoveryStatus: Type.Optional(Type.Literal("tombstoned")),
|
|
390
|
+
activeLeafEntryId: Type.Optional(Type.Union([NonEmptyString, Type.Null()])),
|
|
391
|
+
spawnedBy: Type.Optional(Type.String()),
|
|
392
|
+
parentSessionKey: Type.Optional(Type.String()),
|
|
393
|
+
parentSessionId: Type.Optional(Type.String()),
|
|
394
|
+
controlOwnerSessionKey: Type.Optional(Type.String()),
|
|
395
|
+
childSessions: Type.Optional(Type.Array(Type.String())),
|
|
396
|
+
forkedFromParent: Type.Optional(Type.Boolean()),
|
|
397
|
+
spawnDepth: Type.Optional(Type.Number()),
|
|
398
|
+
subagentRole: Type.Optional(Type.Union([Type.Literal("orchestrator"), Type.Literal("leaf")])),
|
|
399
|
+
subagentControlScope: Type.Optional(Type.Union([Type.Literal("children"), Type.Literal("none")])),
|
|
400
|
+
swarmGroupId: Type.Optional(Type.String()),
|
|
401
|
+
/** Requester-owned execution counts; never child content or parent synthesis status. */
|
|
402
|
+
swarm: Type.Optional(SessionSwarmSummarySchema),
|
|
403
|
+
worktree: Type.Optional(Type.Object({
|
|
404
|
+
id: Type.String(),
|
|
405
|
+
branch: Type.String(),
|
|
406
|
+
repoRoot: Type.String()
|
|
407
|
+
})),
|
|
408
|
+
repositoryWorkspaceId: Type.Optional(NonEmptyString),
|
|
409
|
+
repository: Type.Optional(closedObject({
|
|
410
|
+
...SessionRepositorySourceSchema.properties,
|
|
411
|
+
branch: NonEmptyString
|
|
412
|
+
})),
|
|
413
|
+
execNode: Type.Optional(Type.String()),
|
|
414
|
+
execCwd: Type.Optional(Type.String()),
|
|
415
|
+
spawnedWorkspaceDir: Type.Optional(Type.String()),
|
|
416
|
+
spawnedCwd: Type.Optional(Type.String()),
|
|
417
|
+
/** Persisted project registry association, distinct from a cloud repository workspace. */
|
|
418
|
+
projectId: Type.Optional(Type.String()),
|
|
419
|
+
/** Persisted task cwd or spawned workspace; no filesystem resolution is implied. */
|
|
420
|
+
workspaceDir: Type.Optional(Type.String()),
|
|
421
|
+
permissionMode: Type.Optional(SessionPermissionModeSchema),
|
|
422
|
+
/** Authorized per-chat containment opt-out; omission follows configured sandbox policy. */
|
|
423
|
+
sandboxMode: Type.Optional(Type.Literal("off")),
|
|
424
|
+
/** Administrator consent to the exact external runtime's own permissions for this incarnation. */
|
|
425
|
+
nativeRuntimeConsent: Type.Optional(NonEmptyString),
|
|
426
|
+
permissionModePending: Type.Optional(Type.Boolean()),
|
|
427
|
+
sessionRoot: Type.Optional(Type.String()),
|
|
428
|
+
createdVia: Type.Optional(Type.Union([
|
|
429
|
+
Type.Literal("operator"),
|
|
430
|
+
Type.Literal("spawn"),
|
|
431
|
+
Type.Literal("channel"),
|
|
432
|
+
Type.Literal("cron"),
|
|
433
|
+
Type.Literal("talk"),
|
|
434
|
+
Type.Literal("run"),
|
|
435
|
+
Type.Literal("plugin"),
|
|
436
|
+
Type.Literal("internal")
|
|
437
|
+
])),
|
|
438
|
+
createdActor: Type.Optional(SessionCreatedActorSchema),
|
|
439
|
+
owner: Type.Optional(SessionOwnerSchema),
|
|
440
|
+
participants: Type.Optional(Type.Array(SessionParticipantSchema, { maxItems: 4 })),
|
|
441
|
+
expandedParticipants: Type.Optional(Type.Array(SessionParticipantSchema, { maxItems: 32 })),
|
|
442
|
+
participantCount: Type.Optional(Type.Integer({ minimum: 0 })),
|
|
443
|
+
visibility: Type.Optional(SessionVisibilitySchema),
|
|
444
|
+
sharingRole: Type.Optional(SessionSharingRoleSchema),
|
|
445
|
+
createdAt: Type.Optional(Type.Number()),
|
|
446
|
+
forkSource: Type.Optional(Type.Object({
|
|
447
|
+
sessionKey: Type.String(),
|
|
448
|
+
sessionId: Type.String(),
|
|
449
|
+
entryId: Type.Optional(Type.String())
|
|
450
|
+
})),
|
|
451
|
+
previousSessionId: Type.Optional(Type.String()),
|
|
452
|
+
inputTokens: Type.Optional(Type.Number()),
|
|
453
|
+
outputTokens: Type.Optional(Type.Number()),
|
|
454
|
+
totalTokens: Type.Optional(Type.Number()),
|
|
455
|
+
totalTokensFresh: Type.Optional(Type.Boolean()),
|
|
456
|
+
contextTokens: Type.Optional(Type.Number()),
|
|
457
|
+
estimatedCostUsd: Type.Optional(Type.Number()),
|
|
458
|
+
model: Type.Optional(Type.String()),
|
|
459
|
+
modelProvider: Type.Optional(Type.String()),
|
|
460
|
+
/** Runtime model serving this session while it differs from the selected model. */
|
|
461
|
+
activeModel: Type.Optional(Type.String()),
|
|
462
|
+
activeModelProvider: Type.Optional(Type.String()),
|
|
463
|
+
/** Effective override provenance; null means configured default, omission means not projected. */
|
|
464
|
+
modelOverrideSource: Type.Optional(Type.Union([
|
|
465
|
+
Type.Literal("user"),
|
|
466
|
+
Type.Literal("auto"),
|
|
467
|
+
Type.Literal("inherited"),
|
|
468
|
+
Type.Null()
|
|
469
|
+
])),
|
|
470
|
+
toolOverrides: Type.Optional(SessionToolOverridesSchema)
|
|
471
|
+
}, { additionalProperties: true });
|
|
472
|
+
//#endregion
|
|
473
|
+
//#region src/schema/error-codes.ts
|
|
474
|
+
const CronJobNotFoundErrorDetailsSchema = closedObject({
|
|
475
|
+
code: Type.Literal(GatewayErrorDetailCodes.CRON_JOB_NOT_FOUND),
|
|
476
|
+
jobId: NonEmptyString
|
|
507
477
|
});
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
canResize: Type.Optional(Type.Boolean()),
|
|
514
|
-
vncPassword: Type.Optional(NonEmptyString)
|
|
478
|
+
/** Missing operator-scope details shared by WebSocket and HTTP responses. */
|
|
479
|
+
const MissingScopeErrorDetailsSchema = closedObject({
|
|
480
|
+
code: Type.Literal(GatewayErrorDetailCodes.MISSING_SCOPE),
|
|
481
|
+
missingScope: NonEmptyString,
|
|
482
|
+
requiredScopes: Type.Array(NonEmptyString, { minItems: 1 })
|
|
515
483
|
});
|
|
516
|
-
const
|
|
517
|
-
|
|
518
|
-
|
|
484
|
+
const McpAppViewExpiredErrorDetailsSchema = closedObject({ code: Type.Literal(GatewayErrorDetailCodes.MCP_APP_VIEW_EXPIRED) });
|
|
485
|
+
const OutboundDeliveryQueuedErrorDetailsSchema = closedObject({ code: Type.Literal(GatewayErrorDetailCodes.OUTBOUND_DELIVERY_QUEUED) });
|
|
486
|
+
const UserPrefsLimitExceededErrorDetailsSchema = closedObject({
|
|
487
|
+
code: Type.Literal(GatewayErrorDetailCodes.USER_PREFS_LIMIT_EXCEEDED),
|
|
488
|
+
limit: Type.Integer({ minimum: 1 }),
|
|
489
|
+
currentCount: Type.Integer({ minimum: 0 })
|
|
519
490
|
});
|
|
520
|
-
const
|
|
521
|
-
|
|
522
|
-
|
|
491
|
+
const UnknownAgentIdErrorDetailsSchema = closedObject({
|
|
492
|
+
code: Type.Literal(GatewayErrorDetailCodes.UNKNOWN_AGENT_ID),
|
|
493
|
+
agentId: NonEmptyString
|
|
523
494
|
});
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
id: NonEmptyString,
|
|
529
|
-
fallback: Type.Optional(Type.Union([Type.Literal("openclaw"), Type.Literal("none")])),
|
|
530
|
-
cloudPlacementSupported: Type.Optional(Type.Boolean()),
|
|
531
|
-
cloudPlacementExecutionMode: Type.Optional(WorkerExecutionModeSchema),
|
|
532
|
-
devicePlacement: Type.Optional(closedObject({
|
|
533
|
-
requiredNodeCommands: Type.Array(Type.String({
|
|
534
|
-
minLength: 1,
|
|
535
|
-
maxLength: 128
|
|
536
|
-
}), {
|
|
537
|
-
maxItems: 32,
|
|
538
|
-
uniqueItems: true
|
|
539
|
-
}),
|
|
540
|
-
consumesWorkerSlot: Type.Boolean()
|
|
541
|
-
})),
|
|
542
|
-
devicePlacementSupported: Type.Optional(Type.Boolean()),
|
|
543
|
-
source: Type.Union([
|
|
544
|
-
Type.Literal("env"),
|
|
545
|
-
Type.Literal("agent"),
|
|
546
|
-
Type.Literal("defaults"),
|
|
547
|
-
Type.Literal("model"),
|
|
548
|
-
Type.Literal("provider"),
|
|
549
|
-
Type.Literal("implicit"),
|
|
550
|
-
Type.Literal("session"),
|
|
551
|
-
Type.Literal("session-key")
|
|
552
|
-
])
|
|
495
|
+
const SetupAdmissionBusyErrorDetailsSchema = closedObject({ code: Type.Literal(GatewayErrorDetailCodes.SETUP_ADMISSION_BUSY) });
|
|
496
|
+
const GitHubPublicationSelectionRejectedErrorDetailsSchema = closedObject({
|
|
497
|
+
code: Type.Literal(GatewayErrorDetailCodes.GITHUB_PUBLICATION_SELECTION_REJECTED),
|
|
498
|
+
idempotencyKey: NonEmptyString
|
|
553
499
|
});
|
|
554
|
-
const
|
|
555
|
-
|
|
556
|
-
|
|
500
|
+
const WizardNotFoundErrorDetailsSchema = closedObject({ code: Type.Literal(GatewayErrorDetailCodes.WIZARD_NOT_FOUND) });
|
|
501
|
+
const ProjectCloneErrorDetailsSchema = closedObject({
|
|
502
|
+
code: Type.Literal(GatewayErrorDetailCodes.PROJECT_CLONE_FAILED),
|
|
503
|
+
cause: Type.String({ enum: [
|
|
504
|
+
"invalid_url",
|
|
505
|
+
"auth_required",
|
|
506
|
+
"not_found",
|
|
507
|
+
"network",
|
|
508
|
+
"target_exists",
|
|
509
|
+
"clone_failed"
|
|
510
|
+
] })
|
|
557
511
|
});
|
|
558
|
-
const
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
|
|
512
|
+
const RevisionHashSchema = Type.String({ pattern: "^[a-fA-F0-9]{64}$" });
|
|
513
|
+
const SkillProposalRevisionChangedErrorDetailsSchema = closedObject({
|
|
514
|
+
code: Type.Literal(GatewayErrorDetailCodes.SKILL_PROPOSAL_REVISION_CHANGED),
|
|
515
|
+
expectedRevisionHash: RevisionHashSchema,
|
|
516
|
+
currentRevisionHash: RevisionHashSchema
|
|
562
517
|
});
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
}
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
* Secret-provider protocol schemas.
|
|
574
|
-
*
|
|
575
|
-
* These payloads request secret materialization from the gateway while keeping
|
|
576
|
-
* caller scope, allowed paths, and provider overrides explicit.
|
|
577
|
-
*/
|
|
578
|
-
/** Empty request payload for reloading configured secret providers. */
|
|
579
|
-
const SecretsReloadParamsSchema = closedObject({});
|
|
580
|
-
const SecretStoreNameSchema = Type.String({
|
|
581
|
-
minLength: 1,
|
|
582
|
-
maxLength: 128,
|
|
583
|
-
pattern: "^[A-Z][A-Z0-9_]{0,127}$"
|
|
518
|
+
const SessionWorkspaceRecoveryRequiredErrorDetailsSchema = closedObject({
|
|
519
|
+
code: Type.Literal(GatewayErrorDetailCodes.SESSION_WORKSPACE_RECOVERY_REQUIRED),
|
|
520
|
+
cause: Type.Literal("device_offline"),
|
|
521
|
+
recoveryAction: Type.Literal("continue_on_gateway"),
|
|
522
|
+
sessionId: NonEmptyString,
|
|
523
|
+
source: closedObject({
|
|
524
|
+
generation: Type.Integer({ minimum: 0 }),
|
|
525
|
+
environmentId: NonEmptyString,
|
|
526
|
+
ownerEpoch: Type.Integer({ minimum: 1 })
|
|
527
|
+
})
|
|
584
528
|
});
|
|
585
|
-
|
|
586
|
-
const
|
|
587
|
-
|
|
588
|
-
|
|
589
|
-
pattern: "^(?:[A-Z][A-Z0-9_]{0,127}|github-setup-[a-f0-9]{32})$"
|
|
529
|
+
/** Structured details emitted by method-level failures. */
|
|
530
|
+
const TaskWorktreeSourceRequiredErrorDetailsSchema = closedObject({
|
|
531
|
+
code: Type.Literal(GatewayErrorDetailCodes.TASK_WORKTREE_SOURCE_REQUIRED),
|
|
532
|
+
cwd: NonEmptyString
|
|
590
533
|
});
|
|
591
|
-
|
|
592
|
-
|
|
593
|
-
|
|
594
|
-
|
|
595
|
-
|
|
596
|
-
|
|
597
|
-
|
|
534
|
+
/** Structured details emitted by method-level failures. */
|
|
535
|
+
const GatewayErrorDetailsSchema = Type.Union([
|
|
536
|
+
CronJobNotFoundErrorDetailsSchema,
|
|
537
|
+
MissingScopeErrorDetailsSchema,
|
|
538
|
+
McpAppViewExpiredErrorDetailsSchema,
|
|
539
|
+
OutboundDeliveryQueuedErrorDetailsSchema,
|
|
540
|
+
UserPrefsLimitExceededErrorDetailsSchema,
|
|
541
|
+
SkillProposalRevisionChangedErrorDetailsSchema,
|
|
542
|
+
ProjectCloneErrorDetailsSchema,
|
|
543
|
+
UnknownAgentIdErrorDetailsSchema,
|
|
544
|
+
WizardNotFoundErrorDetailsSchema,
|
|
545
|
+
SetupAdmissionBusyErrorDetailsSchema,
|
|
546
|
+
GitHubPublicationSelectionRejectedErrorDetailsSchema,
|
|
547
|
+
SessionWorkspaceRecoveryRequiredErrorDetailsSchema,
|
|
548
|
+
TaskWorktreeSourceRequiredErrorDetailsSchema
|
|
549
|
+
]);
|
|
550
|
+
/** Builds the canonical gateway error payload while preserving optional retry metadata. */
|
|
551
|
+
function errorShape(code, message, opts) {
|
|
552
|
+
return {
|
|
553
|
+
code,
|
|
554
|
+
message,
|
|
555
|
+
...opts
|
|
556
|
+
};
|
|
557
|
+
}
|
|
558
|
+
/** Builds structured details for a missing operator scope. */
|
|
559
|
+
function buildMissingScopeErrorDetails(params) {
|
|
560
|
+
const requiredScopes = params.requiredScopes.length > 0 ? [...params.requiredScopes] : [params.missingScope];
|
|
561
|
+
return {
|
|
562
|
+
code: GatewayErrorDetailCodes.MISSING_SCOPE,
|
|
563
|
+
missingScope: params.missingScope,
|
|
564
|
+
requiredScopes
|
|
565
|
+
};
|
|
566
|
+
}
|
|
567
|
+
/** Builds a forbidden error for a missing operator scope without message parsing. */
|
|
568
|
+
function missingScopeErrorShape(params) {
|
|
569
|
+
const details = buildMissingScopeErrorDetails(params);
|
|
570
|
+
return errorShape(ErrorCodes.FORBIDDEN, `missing scope: ${params.missingScope}`, { details });
|
|
571
|
+
}
|
|
572
|
+
//#endregion
|
|
573
|
+
//#region src/schema/agent-database-admission.ts
|
|
574
|
+
const AgentDatabaseAdmissionRefusalProperties = {
|
|
575
|
+
agentId: NonEmptyString,
|
|
576
|
+
paths: Type.Array(NonEmptyString),
|
|
577
|
+
reason: NonEmptyString,
|
|
578
|
+
repairHint: NonEmptyString
|
|
598
579
|
};
|
|
599
|
-
const
|
|
600
|
-
|
|
601
|
-
|
|
602
|
-
|
|
603
|
-
|
|
604
|
-
|
|
605
|
-
|
|
606
|
-
|
|
607
|
-
|
|
608
|
-
|
|
609
|
-
|
|
610
|
-
|
|
611
|
-
|
|
612
|
-
|
|
613
|
-
const
|
|
614
|
-
...
|
|
615
|
-
|
|
616
|
-
|
|
580
|
+
const AgentDatabaseAdmissionRefusalSchema = Type.Union([closedObject({
|
|
581
|
+
...AgentDatabaseAdmissionRefusalProperties,
|
|
582
|
+
embeddedOwnerId: NonEmptyString,
|
|
583
|
+
code: Type.Literal("agent-database-ownership-mismatch")
|
|
584
|
+
}), closedObject({
|
|
585
|
+
...AgentDatabaseAdmissionRefusalProperties,
|
|
586
|
+
code: Type.Union([Type.Literal("agent-database-inspection-pending"), Type.Literal("agent-database-inspection-failed")])
|
|
587
|
+
})]);
|
|
588
|
+
//#endregion
|
|
589
|
+
//#region src/schema/environments-session.ts
|
|
590
|
+
const sessionTarget = {
|
|
591
|
+
sessionKey: Type.Optional(NonEmptyString),
|
|
592
|
+
agentId: Type.Optional(NonEmptyString)
|
|
593
|
+
};
|
|
594
|
+
const EnvironmentsSessionCreateParamsSchema = closedObject({
|
|
595
|
+
...sessionTarget,
|
|
596
|
+
profileId: NonEmptyString,
|
|
597
|
+
idempotencyKey: Type.String({
|
|
598
|
+
minLength: 1,
|
|
599
|
+
maxLength: 256
|
|
600
|
+
}),
|
|
601
|
+
machineClass: Type.Optional(Type.String({
|
|
602
|
+
minLength: 1,
|
|
603
|
+
maxLength: 128
|
|
604
|
+
})),
|
|
605
|
+
os: Type.Optional(Type.String({
|
|
606
|
+
minLength: 1,
|
|
607
|
+
maxLength: 128
|
|
608
|
+
})),
|
|
609
|
+
presentation: Type.Optional(Type.Union([Type.Literal("desktop"), Type.Literal("portal")]))
|
|
617
610
|
});
|
|
618
|
-
|
|
619
|
-
|
|
620
|
-
|
|
621
|
-
const SecretsStoreListParamsSchema = closedObject({});
|
|
622
|
-
/** Team secret-store inventory. */
|
|
623
|
-
const SecretsStoreListResultSchema = closedObject({ entries: Type.Array(SecretStoreEntrySchema) });
|
|
624
|
-
/** Create or replace one team secret-store entry. */
|
|
625
|
-
const SecretsStoreSetParamsSchema = closedObject({
|
|
626
|
-
name: SecretStoreMutationNameSchema,
|
|
627
|
-
value: Type.String({ maxLength: 65536 }),
|
|
628
|
-
kind: Type.Union([Type.Literal("secret"), Type.Literal("env")]),
|
|
629
|
-
allowedHosts: Type.Optional(withSince("2026.8", SecretStoreAllowedHostsSchema))
|
|
611
|
+
const EnvironmentsSessionStatusParamsSchema = closedObject({
|
|
612
|
+
...sessionTarget,
|
|
613
|
+
environmentId: Type.Optional(NonEmptyString)
|
|
630
614
|
});
|
|
631
|
-
|
|
632
|
-
|
|
633
|
-
|
|
634
|
-
const SecretsStoreMutationResultSchema = closedObject({
|
|
635
|
-
ok: Type.Literal(true),
|
|
636
|
-
reloaded: Type.Boolean(),
|
|
637
|
-
warningCount: Type.Optional(Type.Integer({ minimum: 0 }))
|
|
615
|
+
const EnvironmentsSessionDestroyParamsSchema = closedObject({
|
|
616
|
+
...sessionTarget,
|
|
617
|
+
environmentId: Type.Optional(NonEmptyString)
|
|
638
618
|
});
|
|
639
|
-
|
|
640
|
-
|
|
641
|
-
|
|
642
|
-
|
|
643
|
-
|
|
644
|
-
|
|
645
|
-
|
|
646
|
-
|
|
647
|
-
|
|
648
|
-
|
|
619
|
+
//#endregion
|
|
620
|
+
//#region src/schema/environments-session-exec.ts
|
|
621
|
+
/** Commands always run in the environment attached to the authenticated conversation. */
|
|
622
|
+
const EnvironmentsSessionExecParamsSchema = Type.Refine(closedObject({
|
|
623
|
+
sessionKey: Type.Optional(Type.String({
|
|
624
|
+
minLength: 1,
|
|
625
|
+
maxLength: 1024
|
|
626
|
+
})),
|
|
627
|
+
agentId: Type.Optional(Type.String({
|
|
628
|
+
minLength: 1,
|
|
629
|
+
maxLength: 256
|
|
630
|
+
})),
|
|
631
|
+
environmentId: Type.Optional(Type.String({
|
|
632
|
+
minLength: 1,
|
|
633
|
+
maxLength: 256
|
|
634
|
+
})),
|
|
635
|
+
action: Type.Optional(Type.Union([
|
|
636
|
+
Type.Literal("run"),
|
|
637
|
+
Type.Literal("start"),
|
|
638
|
+
Type.Literal("status"),
|
|
639
|
+
Type.Literal("stop")
|
|
640
|
+
])),
|
|
641
|
+
processId: Type.Optional(Type.String({
|
|
642
|
+
minLength: 1,
|
|
643
|
+
maxLength: 128,
|
|
644
|
+
pattern: "^[A-Za-z0-9][A-Za-z0-9._:-]*$"
|
|
645
|
+
})),
|
|
646
|
+
argv: Type.Optional(Type.Array(Type.String({
|
|
647
|
+
minLength: 1,
|
|
648
|
+
maxLength: 131072
|
|
649
|
+
}), {
|
|
650
|
+
minItems: 1,
|
|
651
|
+
maxItems: 128
|
|
652
|
+
})),
|
|
653
|
+
input: Type.Optional(Type.String({ maxLength: 131072 })),
|
|
654
|
+
timeoutMs: Type.Optional(Type.Integer({
|
|
655
|
+
minimum: 1,
|
|
656
|
+
maximum: 6e5
|
|
649
657
|
}))
|
|
650
|
-
})
|
|
651
|
-
|
|
652
|
-
|
|
653
|
-
|
|
654
|
-
pathSegments: Type.Array(NonEmptyString),
|
|
655
|
-
value: Type.Unknown()
|
|
656
|
-
});
|
|
657
|
-
/** Secret resolution response with assignments and safe diagnostics. */
|
|
658
|
-
const SecretsResolveResultSchema = closedObject({
|
|
659
|
-
ok: Type.Optional(Type.Boolean()),
|
|
660
|
-
assignments: Type.Optional(Type.Array(SecretsResolveAssignmentSchema)),
|
|
661
|
-
diagnostics: Type.Optional(Type.Array(NonEmptyString)),
|
|
662
|
-
inactiveRefPaths: Type.Optional(Type.Array(NonEmptyString))
|
|
663
|
-
});
|
|
658
|
+
}), (value) => {
|
|
659
|
+
const action = value.action ?? "run";
|
|
660
|
+
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
|
+
}, () => "run/start require argv; start/status/stop require processId; status/stop accept no command");
|
|
664
662
|
//#endregion
|
|
665
|
-
//#region src/schema/
|
|
663
|
+
//#region src/schema/environments.ts
|
|
666
664
|
/**
|
|
667
|
-
*
|
|
665
|
+
* Environment inventory protocol schemas.
|
|
668
666
|
*
|
|
669
|
-
*
|
|
670
|
-
*
|
|
667
|
+
* Environments are runtime targets such as local hosts, VMs, or remote workers;
|
|
668
|
+
* this schema layer only describes their gateway-visible status summary.
|
|
671
669
|
*/
|
|
672
|
-
|
|
673
|
-
|
|
674
|
-
|
|
675
|
-
|
|
676
|
-
|
|
677
|
-
|
|
678
|
-
|
|
679
|
-
|
|
680
|
-
const
|
|
681
|
-
/**
|
|
682
|
-
const
|
|
683
|
-
|
|
684
|
-
|
|
685
|
-
|
|
686
|
-
|
|
687
|
-
|
|
688
|
-
|
|
689
|
-
|
|
690
|
-
|
|
691
|
-
|
|
692
|
-
|
|
693
|
-
|
|
694
|
-
|
|
695
|
-
|
|
696
|
-
|
|
697
|
-
|
|
698
|
-
|
|
699
|
-
|
|
700
|
-
pluginId: Type.Union([NonEmptyString, Type.Null()]),
|
|
701
|
-
accountId: Type.Union([NonEmptyString, Type.Null()]),
|
|
702
|
-
senderKind: Type.Union([
|
|
703
|
-
Type.Literal("human"),
|
|
704
|
-
Type.Literal("bot"),
|
|
705
|
-
Type.Literal("unknown")
|
|
706
|
-
]),
|
|
707
|
-
id: NonEmptyString
|
|
708
|
-
}),
|
|
709
|
-
closedObject({
|
|
710
|
-
type: Type.Literal("legacy"),
|
|
711
|
-
actorType: Type.String(),
|
|
712
|
-
source: Type.Union([Type.String(), Type.Null()]),
|
|
713
|
-
id: Type.String()
|
|
714
|
-
})
|
|
715
|
-
]);
|
|
716
|
-
const SessionParticipantSchema = closedObject({
|
|
717
|
-
identity: SessionParticipantIdentitySchema,
|
|
718
|
-
label: Type.Optional(NonEmptyString),
|
|
719
|
-
avatarUrl: Type.Optional(NonEmptyString)
|
|
720
|
-
});
|
|
721
|
-
const SessionPersonSchema = closedObject({
|
|
722
|
-
identity: closedObject({
|
|
723
|
-
type: Type.Literal("profile"),
|
|
724
|
-
id: NonEmptyString
|
|
725
|
-
}),
|
|
726
|
-
label: Type.Optional(NonEmptyString),
|
|
727
|
-
avatarUrl: Type.Optional(NonEmptyString),
|
|
728
|
-
sessionCount: Type.Integer({ minimum: 1 })
|
|
729
|
-
});
|
|
730
|
-
//#endregion
|
|
731
|
-
//#region src/schema/sessions-activity-summary.ts
|
|
732
|
-
const SessionActivitySummarySchema = closedObject({
|
|
733
|
-
/** Caller-specific participation permission; operator.write is required separately. */
|
|
734
|
-
canEnsure: Type.Optional(Type.Boolean()),
|
|
735
|
-
text: Type.Optional(Type.String({ maxLength: 900 })),
|
|
736
|
-
updatedAt: Type.Optional(Type.Integer({ minimum: 0 })),
|
|
737
|
-
state: Type.Union([
|
|
738
|
-
Type.Literal("current"),
|
|
739
|
-
Type.Literal("stale"),
|
|
740
|
-
Type.Literal("updating"),
|
|
741
|
-
Type.Literal("unavailable")
|
|
742
|
-
])
|
|
743
|
-
});
|
|
744
|
-
const SessionsActivitySummaryEnsureParamsSchema = closedObject({ sessions: Type.Array(closedObject({
|
|
745
|
-
key: NonEmptyString,
|
|
746
|
-
agentId: Type.Optional(NonEmptyString)
|
|
747
|
-
}), {
|
|
748
|
-
minItems: 1,
|
|
749
|
-
maxItems: 20
|
|
750
|
-
}) });
|
|
751
|
-
const SessionsActivitySummaryEnsureResultSchema = closedObject({ sessions: Type.Array(closedObject({
|
|
752
|
-
key: NonEmptyString,
|
|
753
|
-
agentId: NonEmptyString,
|
|
754
|
-
activitySummary: SessionActivitySummarySchema
|
|
755
|
-
}), { maxItems: 20 }) });
|
|
756
|
-
//#endregion
|
|
757
|
-
//#region src/schema/sessions-sharing-values.ts
|
|
758
|
-
const SESSION_VISIBILITY_VALUES = [
|
|
759
|
-
"shared",
|
|
760
|
-
"read-only",
|
|
761
|
-
"suggest",
|
|
762
|
-
"draft"
|
|
763
|
-
];
|
|
764
|
-
const SessionVisibilitySchema = Type.Union([
|
|
765
|
-
Type.Literal("shared"),
|
|
766
|
-
Type.Literal("read-only"),
|
|
767
|
-
Type.Literal("suggest"),
|
|
768
|
-
Type.Literal("draft")
|
|
670
|
+
/** Runtime availability state for an environment target. */
|
|
671
|
+
const EnvironmentStatusSchema = Type.String({ enum: [
|
|
672
|
+
"available",
|
|
673
|
+
"unavailable",
|
|
674
|
+
"starting",
|
|
675
|
+
"stopping",
|
|
676
|
+
"error"
|
|
677
|
+
] });
|
|
678
|
+
const EnvironmentTrustSchema = Type.String({ enum: ["persistent", "disposable"] });
|
|
679
|
+
/** Operational desktop state reported by the current native node connection. */
|
|
680
|
+
const DesktopAvailabilitySchema = closedObject({ state: Type.Union([
|
|
681
|
+
Type.Literal("locked"),
|
|
682
|
+
Type.Literal("unlocked"),
|
|
683
|
+
Type.Literal("unknown")
|
|
684
|
+
]) });
|
|
685
|
+
/** Durable lifecycle states for plugin-provisioned worker environments. */
|
|
686
|
+
const WorkerEnvironmentStateSchema = Type.Union([
|
|
687
|
+
Type.Literal("requested"),
|
|
688
|
+
Type.Literal("provisioning"),
|
|
689
|
+
Type.Literal("bootstrapping"),
|
|
690
|
+
Type.Literal("ready"),
|
|
691
|
+
Type.Literal("attached"),
|
|
692
|
+
Type.Literal("idle"),
|
|
693
|
+
Type.Literal("draining"),
|
|
694
|
+
Type.Literal("destroying"),
|
|
695
|
+
Type.Literal("destroyed"),
|
|
696
|
+
Type.Literal("failed"),
|
|
697
|
+
Type.Literal("orphaned")
|
|
769
698
|
]);
|
|
770
|
-
|
|
771
|
-
|
|
772
|
-
Type.Literal("
|
|
773
|
-
Type.Literal("
|
|
774
|
-
Type.Literal("
|
|
699
|
+
/** Process-local SSH tunnel connectivity for a worker environment. */
|
|
700
|
+
const WorkerTunnelStatusSchema = Type.Union([
|
|
701
|
+
Type.Literal("stopped"),
|
|
702
|
+
Type.Literal("connecting"),
|
|
703
|
+
Type.Literal("connected"),
|
|
704
|
+
Type.Literal("reconnecting")
|
|
775
705
|
]);
|
|
776
|
-
|
|
777
|
-
|
|
778
|
-
|
|
779
|
-
|
|
780
|
-
Type.Literal("
|
|
781
|
-
Type.Literal("
|
|
782
|
-
Type.Literal("
|
|
706
|
+
/** Closed app ids a worker desktop may advertise and launch. */
|
|
707
|
+
const WorkerDesktopAppIdSchema = Type.Union([Type.Literal("browser"), Type.Literal("terminal")]);
|
|
708
|
+
/** Actionable issue attached only to runtime targets that need operator intervention. */
|
|
709
|
+
const RuntimeTargetIssueSchema = closedObject({
|
|
710
|
+
code: Type.Literal("update-required"),
|
|
711
|
+
action: Type.Literal("update-and-reconnect"),
|
|
712
|
+
updateCommand: Type.Literal("openclaw update"),
|
|
713
|
+
headlessReconnectCommand: Type.Literal("openclaw node restart")
|
|
714
|
+
});
|
|
715
|
+
const NodeWorkerBundleStatusSchema = Type.Union([closedObject({
|
|
716
|
+
status: Type.Literal("installed"),
|
|
717
|
+
version: NonEmptyString
|
|
718
|
+
}), closedObject({ status: Type.Literal("missing") })]);
|
|
719
|
+
/** Bounded live worker slots advertised by a connected node host. */
|
|
720
|
+
const WorkerSlotSummarySchema = Type.Refine(closedObject({
|
|
721
|
+
total: Type.Integer({
|
|
722
|
+
minimum: 1,
|
|
723
|
+
maximum: 1024
|
|
724
|
+
}),
|
|
725
|
+
available: Type.Integer({
|
|
726
|
+
minimum: 0,
|
|
727
|
+
maximum: 1024
|
|
728
|
+
})
|
|
729
|
+
}), (slots) => slots.available <= slots.total, (slots) => `available worker slots ${slots.available} exceed total ${slots.total}`);
|
|
730
|
+
/** Gateway-owned authority state for one runtime-required node command. */
|
|
731
|
+
const RequiredNodeCommandStateSchema = Type.Union([
|
|
732
|
+
Type.Literal("invocable"),
|
|
733
|
+
Type.Literal("pending-approval"),
|
|
734
|
+
Type.Literal("undeclared"),
|
|
735
|
+
Type.Literal("unauthorized")
|
|
783
736
|
]);
|
|
784
|
-
const
|
|
785
|
-
|
|
737
|
+
const RequiredNodeCommandSchema = closedObject({
|
|
738
|
+
command: Type.String({
|
|
786
739
|
minLength: 1,
|
|
787
|
-
maxLength:
|
|
740
|
+
maxLength: 128
|
|
788
741
|
}),
|
|
789
|
-
|
|
790
|
-
|
|
791
|
-
|
|
742
|
+
state: RequiredNodeCommandStateSchema
|
|
743
|
+
});
|
|
744
|
+
/** Worker-only lifecycle metadata layered onto the existing environment projection. */
|
|
745
|
+
const WorkerEnvironmentMetadataSchema = closedObject({
|
|
746
|
+
profileId: Type.Optional(NonEmptyString),
|
|
747
|
+
providerId: NonEmptyString,
|
|
748
|
+
leaseId: Type.Optional(NonEmptyString),
|
|
749
|
+
state: WorkerEnvironmentStateSchema,
|
|
750
|
+
ageMs: Type.Integer({ minimum: 0 }),
|
|
751
|
+
idleMs: Type.Optional(Type.Integer({ minimum: 0 })),
|
|
752
|
+
attachedSessionIds: Type.Array(NonEmptyString),
|
|
753
|
+
tunnelStatus: WorkerTunnelStatusSchema,
|
|
754
|
+
error: Type.Optional(NonEmptyString),
|
|
755
|
+
desktop: Type.Optional(Type.Boolean()),
|
|
756
|
+
desktopApps: Type.Optional(Type.Array(WorkerDesktopAppIdSchema, {
|
|
757
|
+
maxItems: 8,
|
|
758
|
+
uniqueItems: true
|
|
792
759
|
}))
|
|
793
760
|
});
|
|
794
|
-
|
|
795
|
-
|
|
796
|
-
|
|
797
|
-
|
|
798
|
-
|
|
799
|
-
|
|
800
|
-
|
|
801
|
-
|
|
802
|
-
|
|
803
|
-
|
|
804
|
-
|
|
805
|
-
|
|
806
|
-
|
|
807
|
-
|
|
808
|
-
|
|
809
|
-
|
|
810
|
-
|
|
811
|
-
|
|
812
|
-
|
|
813
|
-
|
|
761
|
+
function createEnvironmentSummaryProperties() {
|
|
762
|
+
return {
|
|
763
|
+
id: NonEmptyString,
|
|
764
|
+
type: NonEmptyString,
|
|
765
|
+
label: Type.Optional(NonEmptyString),
|
|
766
|
+
status: EnvironmentStatusSchema,
|
|
767
|
+
platform: Type.Optional(NonEmptyString),
|
|
768
|
+
sessionHost: Type.Optional(Type.Boolean()),
|
|
769
|
+
workerSlots: Type.Optional(WorkerSlotSummarySchema),
|
|
770
|
+
workerBundle: Type.Optional(NodeWorkerBundleStatusSchema),
|
|
771
|
+
lastConnectedAtMs: Type.Optional(Type.Integer({ minimum: 0 })),
|
|
772
|
+
lastDisconnectedAtMs: Type.Optional(Type.Integer({ minimum: 0 })),
|
|
773
|
+
lastSeenAtMs: Type.Optional(Type.Integer({ minimum: 0 })),
|
|
774
|
+
lastSeenReason: Type.Optional(NonEmptyString),
|
|
775
|
+
trust: Type.Optional(EnvironmentTrustSchema),
|
|
776
|
+
capabilities: Type.Optional(Type.Array(NonEmptyString)),
|
|
777
|
+
invocableCommands: Type.Optional(Type.Array(Type.String({
|
|
778
|
+
minLength: 1,
|
|
779
|
+
maxLength: 128
|
|
780
|
+
}), {
|
|
781
|
+
maxItems: 128,
|
|
782
|
+
uniqueItems: true
|
|
783
|
+
})),
|
|
784
|
+
desktop: Type.Optional(Type.Boolean()),
|
|
785
|
+
desktopAvailability: Type.Optional(DesktopAvailabilitySchema),
|
|
786
|
+
issues: Type.Optional(Type.Array(RuntimeTargetIssueSchema, {
|
|
787
|
+
minItems: 1,
|
|
788
|
+
maxItems: 8
|
|
789
|
+
})),
|
|
790
|
+
worker: Type.Optional(WorkerEnvironmentMetadataSchema),
|
|
791
|
+
preparation: Type.Optional(closedObject({
|
|
792
|
+
purpose: Type.Union([Type.Literal("reserve"), Type.Literal("build")]),
|
|
793
|
+
key: NonEmptyString
|
|
794
|
+
}))
|
|
795
|
+
};
|
|
796
|
+
}
|
|
797
|
+
function createEnvironmentSummarySchema() {
|
|
798
|
+
return closedObject(createEnvironmentSummaryProperties());
|
|
799
|
+
}
|
|
800
|
+
/** Public environment summary shown in listings and status responses. */
|
|
801
|
+
const EnvironmentSummarySchema = closedObject({
|
|
802
|
+
...createEnvironmentSummaryProperties(),
|
|
803
|
+
requiredNodeCommand: Type.Optional(RequiredNodeCommandSchema),
|
|
804
|
+
desktopSetup: Type.Optional(closedObject({
|
|
805
|
+
state: Type.Union([
|
|
806
|
+
Type.Literal("ready"),
|
|
807
|
+
Type.Literal("needs-server"),
|
|
808
|
+
Type.Literal("unsupported"),
|
|
809
|
+
Type.Literal("managed")
|
|
810
|
+
]),
|
|
811
|
+
detail: Type.Optional(NonEmptyString)
|
|
812
|
+
}))
|
|
814
813
|
});
|
|
815
|
-
/**
|
|
816
|
-
const
|
|
817
|
-
|
|
818
|
-
|
|
819
|
-
|
|
820
|
-
|
|
821
|
-
|
|
822
|
-
|
|
823
|
-
label: Type.Optional(NonEmptyString),
|
|
824
|
-
/** Durable profile avatar route; absent for actors without a stored profile avatar. */
|
|
825
|
-
avatarUrl: Type.Optional(NonEmptyString),
|
|
826
|
-
/** Display identity is separate from the actor fields used by ownership policy. */
|
|
827
|
-
identity: Type.Optional(SessionParticipantIdentitySchema)
|
|
814
|
+
/** Optional runtime scope or profile-only projection for environment discovery. */
|
|
815
|
+
const EnvironmentsListParamsSchema = closedObject({
|
|
816
|
+
runtimeId: Type.Optional(Type.String({
|
|
817
|
+
minLength: 1,
|
|
818
|
+
maxLength: 128
|
|
819
|
+
})),
|
|
820
|
+
projection: Type.Optional(Type.Literal("profiles")),
|
|
821
|
+
includeDesktopSetup: Type.Optional(Type.Boolean())
|
|
828
822
|
});
|
|
829
|
-
/**
|
|
830
|
-
const
|
|
831
|
-
|
|
832
|
-
|
|
833
|
-
|
|
823
|
+
/** Provider-authored machine choice for one configured worker profile. */
|
|
824
|
+
const WorkerMachineOptionSchema = closedObject({
|
|
825
|
+
id: Type.String({
|
|
826
|
+
minLength: 1,
|
|
827
|
+
maxLength: 128
|
|
828
|
+
}),
|
|
829
|
+
label: Type.String({
|
|
830
|
+
minLength: 1,
|
|
831
|
+
maxLength: 128
|
|
832
|
+
}),
|
|
833
|
+
cpu: Type.Optional(Type.Integer({
|
|
834
|
+
minimum: 1,
|
|
835
|
+
maximum: 65536
|
|
836
|
+
})),
|
|
837
|
+
memoryGb: Type.Optional(Type.Integer({
|
|
838
|
+
minimum: 1,
|
|
839
|
+
maximum: 65536
|
|
840
|
+
})),
|
|
841
|
+
default: Type.Optional(Type.Boolean()),
|
|
842
|
+
os: Type.Optional(Type.String({
|
|
843
|
+
minLength: 1,
|
|
844
|
+
maxLength: 64
|
|
845
|
+
}))
|
|
834
846
|
});
|
|
835
|
-
const
|
|
836
|
-
|
|
837
|
-
|
|
838
|
-
createdAt: Type.Number({ minimum: 0 }),
|
|
839
|
-
children: Type.Optional(Type.Array(closedObject({
|
|
840
|
-
sessionKey: NonEmptyString,
|
|
841
|
-
status: Type.Union([
|
|
842
|
-
Type.Literal("queued"),
|
|
843
|
-
Type.Literal("running"),
|
|
844
|
-
Type.Literal("done"),
|
|
845
|
-
Type.Literal("failed")
|
|
846
|
-
])
|
|
847
|
-
}), { maxItems: 64 })),
|
|
848
|
-
queued: Type.Integer({ minimum: 0 }),
|
|
849
|
-
running: Type.Integer({ minimum: 0 }),
|
|
850
|
-
done: Type.Integer({ minimum: 0 }),
|
|
851
|
-
failed: Type.Integer({ minimum: 0 })
|
|
852
|
-
}), { maxItems: 5 }),
|
|
853
|
-
otherActiveGroups: Type.Integer({ minimum: 0 })
|
|
847
|
+
const WorkerMachineOptionsSchema = Type.Array(WorkerMachineOptionSchema, {
|
|
848
|
+
minItems: 1,
|
|
849
|
+
maxItems: 64
|
|
854
850
|
});
|
|
855
|
-
/**
|
|
856
|
-
const
|
|
857
|
-
|
|
858
|
-
|
|
859
|
-
|
|
860
|
-
|
|
861
|
-
|
|
862
|
-
|
|
863
|
-
|
|
864
|
-
|
|
865
|
-
|
|
866
|
-
|
|
867
|
-
|
|
868
|
-
|
|
869
|
-
|
|
870
|
-
|
|
871
|
-
|
|
872
|
-
|
|
873
|
-
|
|
874
|
-
|
|
875
|
-
|
|
876
|
-
|
|
877
|
-
|
|
878
|
-
|
|
879
|
-
|
|
880
|
-
classification: Type.Optional(SessionClassificationSchema),
|
|
881
|
-
agentId: Type.Optional(NonEmptyString),
|
|
882
|
-
accountId: Type.Optional(NonEmptyString),
|
|
883
|
-
peerKind: Type.Optional(SessionPeerKindSchema),
|
|
884
|
-
isMain: Type.Optional(Type.Boolean()),
|
|
885
|
-
isBackground: Type.Optional(Type.Boolean()),
|
|
886
|
-
chatType: Type.Optional(Type.Union([
|
|
887
|
-
Type.Literal("direct"),
|
|
888
|
-
Type.Literal("group"),
|
|
889
|
-
Type.Literal("channel")
|
|
890
|
-
])),
|
|
891
|
-
activitySummary: Type.Optional(SessionActivitySummarySchema),
|
|
892
|
-
updatedAt: Type.Optional(Type.Union([Type.Number(), Type.Null()])),
|
|
893
|
-
/** Gateway sampling time, retained when a read reuses a cached projection. */
|
|
894
|
-
snapshotAt: Type.Optional(Type.Number()),
|
|
895
|
-
archived: Type.Optional(Type.Boolean()),
|
|
896
|
-
archivedAt: Type.Optional(Type.Number()),
|
|
897
|
-
archivedBy: Type.Optional(SessionCreatedActorSchema),
|
|
898
|
-
archiveReason: Type.Optional(SessionEntryArchiveReasonSchema),
|
|
899
|
-
pinned: Type.Optional(Type.Boolean()),
|
|
900
|
-
pinnedAt: Type.Optional(Type.Number()),
|
|
901
|
-
unread: Type.Optional(Type.Boolean()),
|
|
902
|
-
lastReadAt: Type.Optional(Type.Number()),
|
|
903
|
-
markedUnreadAt: Type.Optional(Type.Number()),
|
|
904
|
-
lastActivityAt: Type.Optional(Type.Number()),
|
|
905
|
-
lastInteractionAt: Type.Optional(Type.Number()),
|
|
906
|
-
status: Type.Optional(SessionRunStatusSchema),
|
|
907
|
-
lastRunError: Type.Optional(Type.String()),
|
|
908
|
-
/** Exact run that produced the latest terminal lifecycle projection. */
|
|
909
|
-
lastRunId: Type.Optional(NonEmptyString),
|
|
910
|
-
restartRecoveryStatus: Type.Optional(Type.Literal("tombstoned")),
|
|
911
|
-
activeLeafEntryId: Type.Optional(Type.Union([NonEmptyString, Type.Null()])),
|
|
912
|
-
spawnedBy: Type.Optional(Type.String()),
|
|
913
|
-
parentSessionKey: Type.Optional(Type.String()),
|
|
914
|
-
parentSessionId: Type.Optional(Type.String()),
|
|
915
|
-
controlOwnerSessionKey: Type.Optional(Type.String()),
|
|
916
|
-
childSessions: Type.Optional(Type.Array(Type.String())),
|
|
917
|
-
forkedFromParent: Type.Optional(Type.Boolean()),
|
|
918
|
-
spawnDepth: Type.Optional(Type.Number()),
|
|
919
|
-
subagentRole: Type.Optional(Type.Union([Type.Literal("orchestrator"), Type.Literal("leaf")])),
|
|
920
|
-
subagentControlScope: Type.Optional(Type.Union([Type.Literal("children"), Type.Literal("none")])),
|
|
921
|
-
swarmGroupId: Type.Optional(Type.String()),
|
|
922
|
-
/** Requester-owned execution counts; never child content or parent synthesis status. */
|
|
923
|
-
swarm: Type.Optional(SessionSwarmSummarySchema),
|
|
924
|
-
worktree: Type.Optional(Type.Object({
|
|
925
|
-
id: Type.String(),
|
|
926
|
-
branch: Type.String(),
|
|
927
|
-
repoRoot: Type.String()
|
|
928
|
-
})),
|
|
929
|
-
repositoryWorkspaceId: Type.Optional(NonEmptyString),
|
|
930
|
-
repository: Type.Optional(closedObject({
|
|
931
|
-
...SessionRepositorySourceSchema.properties,
|
|
932
|
-
branch: NonEmptyString
|
|
851
|
+
/** Provider-authored operating system choice for one configured worker profile. */
|
|
852
|
+
const WorkerOperatingSystemSchema = closedObject({
|
|
853
|
+
id: Type.String({
|
|
854
|
+
minLength: 1,
|
|
855
|
+
maxLength: 64
|
|
856
|
+
}),
|
|
857
|
+
label: Type.String({
|
|
858
|
+
minLength: 1,
|
|
859
|
+
maxLength: 64
|
|
860
|
+
}),
|
|
861
|
+
default: Type.Optional(Type.Boolean()),
|
|
862
|
+
disabledReason: Type.Optional(Type.String({
|
|
863
|
+
minLength: 1,
|
|
864
|
+
maxLength: 256
|
|
865
|
+
}))
|
|
866
|
+
});
|
|
867
|
+
/** Placement execution modes shared by runtime requirements and worker providers. */
|
|
868
|
+
const WorkerExecutionModeSchema = Type.Union([Type.Literal("worker-turn"), Type.Literal("remote-exec")]);
|
|
869
|
+
/** Configured worker target exposed without provider settings or credentials. */
|
|
870
|
+
const WorkerEnvironmentProfileSummarySchema = closedObject({
|
|
871
|
+
id: NonEmptyString,
|
|
872
|
+
providerId: NonEmptyString,
|
|
873
|
+
providerDisplayId: Type.Optional(Type.String({
|
|
874
|
+
pattern: "^[a-z][a-z0-9-]{0,63}(?![\\s\\S])",
|
|
875
|
+
maxLength: 64
|
|
933
876
|
})),
|
|
934
|
-
|
|
935
|
-
|
|
936
|
-
|
|
937
|
-
|
|
938
|
-
|
|
939
|
-
|
|
940
|
-
|
|
941
|
-
|
|
942
|
-
|
|
943
|
-
|
|
944
|
-
|
|
945
|
-
|
|
946
|
-
|
|
947
|
-
|
|
948
|
-
|
|
949
|
-
|
|
950
|
-
|
|
951
|
-
|
|
952
|
-
|
|
953
|
-
|
|
954
|
-
|
|
955
|
-
|
|
956
|
-
|
|
957
|
-
|
|
958
|
-
|
|
959
|
-
|
|
960
|
-
|
|
961
|
-
|
|
962
|
-
|
|
963
|
-
|
|
964
|
-
|
|
965
|
-
|
|
966
|
-
|
|
877
|
+
trust: Type.Optional(EnvironmentTrustSchema),
|
|
878
|
+
executionMode: Type.Optional(WorkerExecutionModeSchema),
|
|
879
|
+
executionModes: Type.Optional(Type.Union([Type.Tuple([WorkerExecutionModeSchema]), Type.Tuple([Type.Literal("worker-turn"), Type.Literal("remote-exec")])])),
|
|
880
|
+
machines: Type.Optional(WorkerMachineOptionsSchema),
|
|
881
|
+
operatingSystems: Type.Optional(Type.Array(WorkerOperatingSystemSchema, {
|
|
882
|
+
minItems: 1,
|
|
883
|
+
maxItems: 8
|
|
884
|
+
}))
|
|
885
|
+
});
|
|
886
|
+
/** Profile-only requests leave environments empty without reading inventory. */
|
|
887
|
+
const EnvironmentsListResultSchema = closedObject({
|
|
888
|
+
environments: Type.Array(EnvironmentSummarySchema),
|
|
889
|
+
profiles: Type.Optional(Type.Array(WorkerEnvironmentProfileSummarySchema))
|
|
890
|
+
});
|
|
891
|
+
/** Status lookup request for one environment id. */
|
|
892
|
+
const EnvironmentsStatusParamsSchema = closedObject({ environmentId: NonEmptyString });
|
|
893
|
+
/** Status lookup result for one environment id. */
|
|
894
|
+
const EnvironmentsStatusResultSchema = createEnvironmentSummarySchema();
|
|
895
|
+
/** Creates a worker environment from one configured provider profile. */
|
|
896
|
+
const EnvironmentsCreateParamsSchema = closedObject({
|
|
897
|
+
profileId: NonEmptyString,
|
|
898
|
+
idempotencyKey: NonEmptyString
|
|
899
|
+
});
|
|
900
|
+
/** Create result uses the same public summary shape as list and status. */
|
|
901
|
+
const EnvironmentsCreateResultSchema = createEnvironmentSummarySchema();
|
|
902
|
+
/** Prepares a configured profile's local Git project without dispatching a session. */
|
|
903
|
+
const EnvironmentsPrepareParamsSchema = closedObject({
|
|
904
|
+
profileId: NonEmptyString,
|
|
905
|
+
projectPath: NonEmptyString
|
|
906
|
+
});
|
|
907
|
+
const EnvironmentsPrepareResultSchema = closedObject({
|
|
908
|
+
environmentId: NonEmptyString,
|
|
909
|
+
preparationKey: NonEmptyString,
|
|
910
|
+
reused: Type.Boolean()
|
|
911
|
+
});
|
|
912
|
+
/** Destroys one durable worker environment by its gateway-owned id. */
|
|
913
|
+
const EnvironmentsDestroyParamsSchema = closedObject({
|
|
914
|
+
environmentId: NonEmptyString,
|
|
915
|
+
force: Type.Optional(Type.Boolean())
|
|
916
|
+
});
|
|
917
|
+
/** Destroy result exposes the terminal worker lifecycle state. */
|
|
918
|
+
const EnvironmentsDestroyResultSchema = createEnvironmentSummarySchema();
|
|
919
|
+
const WorkerDesktopObserveParamsSchema = closedObject({
|
|
920
|
+
environmentId: NonEmptyString,
|
|
921
|
+
control: Type.Optional(Type.Boolean())
|
|
922
|
+
});
|
|
923
|
+
const WorkerDesktopObserveResultSchema = closedObject({
|
|
924
|
+
transport: Type.String({ enum: ["rfb"] }),
|
|
925
|
+
wsPath: NonEmptyString,
|
|
926
|
+
expiresAtMs: Type.Integer({ minimum: 0 }),
|
|
927
|
+
control: Type.Boolean(),
|
|
928
|
+
canResize: Type.Optional(Type.Boolean()),
|
|
929
|
+
vncPassword: Type.Optional(NonEmptyString)
|
|
930
|
+
});
|
|
931
|
+
const WorkerDesktopLaunchParamsSchema = closedObject({
|
|
932
|
+
environmentId: NonEmptyString,
|
|
933
|
+
app: WorkerDesktopAppIdSchema
|
|
934
|
+
});
|
|
935
|
+
const WorkerDesktopLaunchResultSchema = closedObject({
|
|
936
|
+
app: WorkerDesktopAppIdSchema,
|
|
937
|
+
status: Type.Literal("ready")
|
|
938
|
+
});
|
|
939
|
+
//#endregion
|
|
940
|
+
//#region src/schema/model-runtime-options.ts
|
|
941
|
+
const GatewayAgentRuntimeSchema = closedObject({
|
|
942
|
+
id: NonEmptyString,
|
|
943
|
+
fallback: Type.Optional(Type.Union([Type.Literal("openclaw"), Type.Literal("none")])),
|
|
944
|
+
cloudPlacementSupported: Type.Optional(Type.Boolean()),
|
|
945
|
+
cloudPlacementExecutionMode: Type.Optional(WorkerExecutionModeSchema),
|
|
946
|
+
devicePlacement: Type.Optional(closedObject({
|
|
947
|
+
requiredNodeCommands: Type.Array(Type.String({
|
|
948
|
+
minLength: 1,
|
|
949
|
+
maxLength: 128
|
|
950
|
+
}), {
|
|
951
|
+
maxItems: 32,
|
|
952
|
+
uniqueItems: true
|
|
953
|
+
}),
|
|
954
|
+
consumesWorkerSlot: Type.Boolean()
|
|
967
955
|
})),
|
|
968
|
-
|
|
969
|
-
|
|
970
|
-
|
|
971
|
-
|
|
972
|
-
|
|
973
|
-
|
|
974
|
-
|
|
975
|
-
|
|
976
|
-
|
|
977
|
-
|
|
978
|
-
|
|
979
|
-
|
|
980
|
-
|
|
981
|
-
|
|
982
|
-
|
|
983
|
-
|
|
984
|
-
|
|
985
|
-
|
|
986
|
-
|
|
987
|
-
|
|
988
|
-
}
|
|
956
|
+
devicePlacementSupported: Type.Optional(Type.Boolean()),
|
|
957
|
+
source: Type.Union([
|
|
958
|
+
Type.Literal("env"),
|
|
959
|
+
Type.Literal("agent"),
|
|
960
|
+
Type.Literal("defaults"),
|
|
961
|
+
Type.Literal("model"),
|
|
962
|
+
Type.Literal("provider"),
|
|
963
|
+
Type.Literal("implicit"),
|
|
964
|
+
Type.Literal("session"),
|
|
965
|
+
Type.Literal("session-key")
|
|
966
|
+
])
|
|
967
|
+
});
|
|
968
|
+
const GatewayThinkingLevelOptionSchema = closedObject({
|
|
969
|
+
id: NonEmptyString,
|
|
970
|
+
label: NonEmptyString
|
|
971
|
+
});
|
|
972
|
+
const GatewayContextWindowOptionSchema = closedObject({
|
|
973
|
+
id: NonEmptyString,
|
|
974
|
+
label: NonEmptyString,
|
|
975
|
+
contextWindow: Type.Integer({ minimum: 1 })
|
|
976
|
+
});
|
|
989
977
|
//#endregion
|
|
990
|
-
//#region src/schema/
|
|
978
|
+
//#region src/schema/since.ts
|
|
979
|
+
/** Adds protocol-vintage metadata without changing the schema's validated value shape. */
|
|
980
|
+
function withSince(train, schema) {
|
|
981
|
+
Object.assign(schema, { "x-openclaw-since": train });
|
|
982
|
+
return schema;
|
|
983
|
+
}
|
|
984
|
+
//#endregion
|
|
985
|
+
//#region src/schema/secrets.ts
|
|
991
986
|
/**
|
|
992
|
-
*
|
|
987
|
+
* Secret-provider protocol schemas.
|
|
993
988
|
*
|
|
994
|
-
* These
|
|
995
|
-
*
|
|
996
|
-
* discovery. Keep public request/result schemas documented because they are
|
|
997
|
-
* shared by gateway RPC, CLI, and UI clients.
|
|
989
|
+
* These payloads request secret materialization from the gateway while keeping
|
|
990
|
+
* caller scope, allowed paths, and provider overrides explicit.
|
|
998
991
|
*/
|
|
992
|
+
/** Empty request payload for reloading configured secret providers. */
|
|
993
|
+
const SecretsReloadParamsSchema = closedObject({});
|
|
994
|
+
const SecretStoreNameSchema = Type.String({
|
|
995
|
+
minLength: 1,
|
|
996
|
+
maxLength: 128,
|
|
997
|
+
pattern: "^[A-Z][A-Z0-9_]{0,127}$"
|
|
998
|
+
});
|
|
999
|
+
const GitHubSetupHandleSchema = Type.String({ pattern: "^github-setup-[a-f0-9]{32}$" });
|
|
1000
|
+
const SecretStoreMutationNameSchema = Type.String({
|
|
1001
|
+
minLength: 1,
|
|
1002
|
+
maxLength: 128,
|
|
1003
|
+
pattern: "^(?:[A-Z][A-Z0-9_]{0,127}|github-setup-[a-f0-9]{32})$"
|
|
1004
|
+
});
|
|
1005
|
+
const SecretStoreEntryMetadataProperties = {
|
|
1006
|
+
name: SecretStoreNameSchema,
|
|
1007
|
+
scopeKind: Type.Literal("team"),
|
|
1008
|
+
scopeId: Type.Literal(""),
|
|
1009
|
+
createdAtMs: Type.Integer({ minimum: 0 }),
|
|
1010
|
+
updatedAtMs: Type.Integer({ minimum: 0 }),
|
|
1011
|
+
updatedBy: Type.Optional(Type.String())
|
|
1012
|
+
};
|
|
1013
|
+
const SecretStoreAllowedHostsSchema = Type.Array(Type.String({
|
|
1014
|
+
minLength: 1,
|
|
1015
|
+
maxLength: 253
|
|
1016
|
+
}), {
|
|
1017
|
+
maxItems: 128,
|
|
1018
|
+
uniqueItems: true
|
|
1019
|
+
});
|
|
1020
|
+
/** Secret metadata never structurally carries the stored value. */
|
|
1021
|
+
const SecretStoreSecretEntrySchema = closedObject({
|
|
1022
|
+
...SecretStoreEntryMetadataProperties,
|
|
1023
|
+
kind: Type.Literal("secret"),
|
|
1024
|
+
allowedHosts: Type.Optional(withSince("2026.8", SecretStoreAllowedHostsSchema))
|
|
1025
|
+
});
|
|
1026
|
+
/** Environment entries include their value because they are intentionally visible. */
|
|
1027
|
+
const SecretStoreEnvEntrySchema = closedObject({
|
|
1028
|
+
...SecretStoreEntryMetadataProperties,
|
|
1029
|
+
kind: Type.Literal("env"),
|
|
1030
|
+
value: Type.String({ maxLength: 65536 })
|
|
1031
|
+
});
|
|
1032
|
+
/** Team secret-store list entry, discriminated by disclosure behavior. */
|
|
1033
|
+
const SecretStoreEntrySchema = Type.Union([SecretStoreSecretEntrySchema, SecretStoreEnvEntrySchema]);
|
|
1034
|
+
/** Empty request payload for listing the team secret store. */
|
|
1035
|
+
const SecretsStoreListParamsSchema = closedObject({});
|
|
1036
|
+
/** Team secret-store inventory. */
|
|
1037
|
+
const SecretsStoreListResultSchema = closedObject({ entries: Type.Array(SecretStoreEntrySchema) });
|
|
1038
|
+
/** Create or replace one team secret-store entry. */
|
|
1039
|
+
const SecretsStoreSetParamsSchema = closedObject({
|
|
1040
|
+
name: SecretStoreMutationNameSchema,
|
|
1041
|
+
value: Type.String({ maxLength: 65536 }),
|
|
1042
|
+
kind: Type.Union([Type.Literal("secret"), Type.Literal("env")]),
|
|
1043
|
+
allowedHosts: Type.Optional(withSince("2026.8", SecretStoreAllowedHostsSchema))
|
|
1044
|
+
});
|
|
1045
|
+
/** Soft-delete one team secret-store entry. */
|
|
1046
|
+
const SecretsStoreDeleteParamsSchema = closedObject({ name: SecretStoreMutationNameSchema });
|
|
1047
|
+
/** Mutation acknowledgement including whether the active runtime was refreshed. */
|
|
1048
|
+
const SecretsStoreMutationResultSchema = closedObject({
|
|
1049
|
+
ok: Type.Literal(true),
|
|
1050
|
+
reloaded: Type.Boolean(),
|
|
1051
|
+
warningCount: Type.Optional(Type.Integer({ minimum: 0 }))
|
|
1052
|
+
});
|
|
1053
|
+
/** Request payload for resolving the secrets needed by one command invocation. */
|
|
1054
|
+
const SecretsResolveParamsSchema = closedObject({
|
|
1055
|
+
commandName: NonEmptyString,
|
|
1056
|
+
targetIds: Type.Array(NonEmptyString),
|
|
1057
|
+
allowedPaths: Type.Optional(Type.Array(NonEmptyString)),
|
|
1058
|
+
forcedActivePaths: Type.Optional(Type.Array(NonEmptyString)),
|
|
1059
|
+
optionalActivePaths: Type.Optional(Type.Array(NonEmptyString)),
|
|
1060
|
+
providerOverrides: Type.Optional(closedObject({
|
|
1061
|
+
webSearch: Type.Optional(NonEmptyString),
|
|
1062
|
+
webFetch: Type.Optional(NonEmptyString)
|
|
1063
|
+
}))
|
|
1064
|
+
});
|
|
1065
|
+
/** One resolved secret assignment path plus its provider-owned value. */
|
|
1066
|
+
const SecretsResolveAssignmentSchema = closedObject({
|
|
1067
|
+
path: Type.Optional(NonEmptyString),
|
|
1068
|
+
pathSegments: Type.Array(NonEmptyString),
|
|
1069
|
+
value: Type.Unknown()
|
|
1070
|
+
});
|
|
1071
|
+
/** Secret resolution response with assignments and safe diagnostics. */
|
|
1072
|
+
const SecretsResolveResultSchema = closedObject({
|
|
1073
|
+
ok: Type.Optional(Type.Boolean()),
|
|
1074
|
+
assignments: Type.Optional(Type.Array(SecretsResolveAssignmentSchema)),
|
|
1075
|
+
diagnostics: Type.Optional(Type.Array(NonEmptyString)),
|
|
1076
|
+
inactiveRefPaths: Type.Optional(Type.Array(NonEmptyString))
|
|
1077
|
+
});
|
|
1078
|
+
//#endregion
|
|
1079
|
+
//#region src/schema/model-account-selection.ts
|
|
1080
|
+
const ModelAuthProfileIdSchema = Type.String({
|
|
1081
|
+
minLength: 1,
|
|
1082
|
+
maxLength: 256
|
|
1083
|
+
});
|
|
1084
|
+
const ChatAccountSelectionSourceSchema = Type.Optional(Type.Union([
|
|
1085
|
+
Type.Literal("auto"),
|
|
1086
|
+
Type.Literal("user"),
|
|
1087
|
+
Type.Literal("user-link")
|
|
1088
|
+
]));
|
|
1089
|
+
const ChatAccountSelectionLabelSchema = Type.String({
|
|
1090
|
+
minLength: 1,
|
|
1091
|
+
maxLength: 256
|
|
1092
|
+
});
|
|
1093
|
+
/** Configured preference only; provider failover can use a different account. */
|
|
1094
|
+
const ChatAccountSelectionSchema = Type.Union([
|
|
1095
|
+
closedObject({
|
|
1096
|
+
kind: Type.Literal("automatic"),
|
|
1097
|
+
label: ChatAccountSelectionLabelSchema
|
|
1098
|
+
}),
|
|
1099
|
+
closedObject({
|
|
1100
|
+
kind: Type.Literal("personal"),
|
|
1101
|
+
label: ChatAccountSelectionLabelSchema,
|
|
1102
|
+
authProfileId: Type.Optional(ModelAuthProfileIdSchema),
|
|
1103
|
+
source: ChatAccountSelectionSourceSchema
|
|
1104
|
+
}),
|
|
1105
|
+
closedObject({
|
|
1106
|
+
kind: Type.Literal("shared"),
|
|
1107
|
+
label: ChatAccountSelectionLabelSchema,
|
|
1108
|
+
authProfileId: ModelAuthProfileIdSchema,
|
|
1109
|
+
source: ChatAccountSelectionSourceSchema
|
|
1110
|
+
})
|
|
1111
|
+
]);
|
|
1112
|
+
//#endregion
|
|
1113
|
+
//#region src/schema/model-catalog.ts
|
|
1114
|
+
/** Model catalog request with optional visibility scope. */
|
|
1115
|
+
const ModelsListParamsSchema = Type.Object({
|
|
1116
|
+
agentId: Type.Optional(NonEmptyString),
|
|
1117
|
+
sessionKey: Type.Optional(NonEmptyString),
|
|
1118
|
+
authProfileId: Type.Optional(ModelAuthProfileIdSchema),
|
|
1119
|
+
provider: Type.Optional(NonEmptyString),
|
|
1120
|
+
includeDetails: Type.Optional(Type.Boolean()),
|
|
1121
|
+
includeProviderCapabilities: Type.Optional(Type.Boolean()),
|
|
1122
|
+
/** Include global default-model previews, independent of agent/session overrides. */
|
|
1123
|
+
includeDefaultModels: Type.Optional(Type.Boolean()),
|
|
1124
|
+
/** Reuse prepared/cached facts without starting provider discovery. */
|
|
1125
|
+
preparedOnly: Type.Optional(Type.Boolean()),
|
|
1126
|
+
/** Force replacement of a completed full-catalog generation. */
|
|
1127
|
+
refresh: Type.Optional(Type.Boolean()),
|
|
1128
|
+
view: Type.Optional(Type.Union([
|
|
1129
|
+
Type.Literal("default"),
|
|
1130
|
+
Type.Literal("configured"),
|
|
1131
|
+
Type.Literal("provider-config"),
|
|
1132
|
+
Type.Literal("all")
|
|
1133
|
+
]))
|
|
1134
|
+
}, {
|
|
1135
|
+
additionalProperties: false,
|
|
1136
|
+
allOf: [{ not: {
|
|
1137
|
+
properties: {
|
|
1138
|
+
preparedOnly: { const: true },
|
|
1139
|
+
refresh: { const: true }
|
|
1140
|
+
},
|
|
1141
|
+
required: ["preparedOnly", "refresh"]
|
|
1142
|
+
} }, { not: { required: ["sessionKey", "authProfileId"] } }]
|
|
1143
|
+
});
|
|
999
1144
|
const ModelUnavailableReasonSchema = Type.Union([
|
|
1000
1145
|
Type.Literal("missing-auth"),
|
|
1001
1146
|
Type.Literal("auth-failed"),
|
|
@@ -1045,6 +1190,115 @@ const ModelChoiceSchema = closedObject({
|
|
|
1045
1190
|
apiKeySupported: Type.Optional(Type.Boolean()),
|
|
1046
1191
|
runtimeChoices: Type.Optional(Type.Array(ModelRuntimeChoiceSchema, { maxItems: 8 }))
|
|
1047
1192
|
});
|
|
1193
|
+
/** Model catalog result. */
|
|
1194
|
+
const ModelCatalogProviderOutcomeSchema = closedObject({
|
|
1195
|
+
provider: NonEmptyString,
|
|
1196
|
+
profileId: Type.Optional(NonEmptyString),
|
|
1197
|
+
status: Type.Union([
|
|
1198
|
+
Type.Literal("ready"),
|
|
1199
|
+
Type.Literal("auth-rejected"),
|
|
1200
|
+
Type.Literal("unavailable")
|
|
1201
|
+
])
|
|
1202
|
+
});
|
|
1203
|
+
const ModelsListResultSchema = closedObject({
|
|
1204
|
+
models: Type.Array(ModelChoiceSchema),
|
|
1205
|
+
/** Manifest-owned decision choices, separate from conversational model routing. */
|
|
1206
|
+
decisionModels: Type.Optional(Type.Array(closedObject({
|
|
1207
|
+
id: NonEmptyString,
|
|
1208
|
+
provider: NonEmptyString,
|
|
1209
|
+
name: NonEmptyString,
|
|
1210
|
+
pluginId: NonEmptyString
|
|
1211
|
+
}))),
|
|
1212
|
+
defaultModels: Type.Optional(closedObject({
|
|
1213
|
+
/** Auto preview from agents.defaults.model, even when utility routing is explicit or disabled. */
|
|
1214
|
+
automaticUtilityModel: Type.Union([NonEmptyString, Type.Null()]) })),
|
|
1215
|
+
refreshFailed: Type.Optional(Type.Boolean()),
|
|
1216
|
+
pendingProviders: Type.Optional(Type.Array(NonEmptyString)),
|
|
1217
|
+
accountSelection: Type.Optional(ChatAccountSelectionSchema),
|
|
1218
|
+
providerOutcomes: Type.Optional(Type.Array(ModelCatalogProviderOutcomeSchema))
|
|
1219
|
+
});
|
|
1220
|
+
const SkillCuratorEntrySchema = closedObject({
|
|
1221
|
+
skillFile: NonEmptyString,
|
|
1222
|
+
skillKey: NonEmptyString,
|
|
1223
|
+
skillName: NonEmptyString,
|
|
1224
|
+
state: Type.Union([
|
|
1225
|
+
Type.Literal("active"),
|
|
1226
|
+
Type.Literal("stale"),
|
|
1227
|
+
Type.Literal("archived")
|
|
1228
|
+
]),
|
|
1229
|
+
pinned: Type.Boolean(),
|
|
1230
|
+
createdAtMs: Type.Number(),
|
|
1231
|
+
stateChangedAtMs: Type.Number(),
|
|
1232
|
+
lastUsedAtMs: Type.Union([Type.Number(), Type.Null()]),
|
|
1233
|
+
useCount: Type.Number(),
|
|
1234
|
+
archivedReason: Type.Union([Type.String(), Type.Null()])
|
|
1235
|
+
});
|
|
1236
|
+
const SkillOverlapCandidateSchema = closedObject({
|
|
1237
|
+
left: NonEmptyString,
|
|
1238
|
+
right: NonEmptyString,
|
|
1239
|
+
score: Type.Number()
|
|
1240
|
+
});
|
|
1241
|
+
const SkillCollectionReviewStatusSchema = closedObject({
|
|
1242
|
+
attemptedAtMs: Type.Number(),
|
|
1243
|
+
succeededAtMs: Type.Optional(Type.Number()),
|
|
1244
|
+
error: Type.Optional(Type.String())
|
|
1245
|
+
});
|
|
1246
|
+
const SkillExperienceReviewStatusSchema = closedObject({
|
|
1247
|
+
attemptedAtMs: Type.Number(),
|
|
1248
|
+
outcome: Type.Union([
|
|
1249
|
+
Type.Literal("completed"),
|
|
1250
|
+
Type.Literal("applied"),
|
|
1251
|
+
Type.Literal("proposed"),
|
|
1252
|
+
Type.Literal("nothing"),
|
|
1253
|
+
Type.Literal("failed")
|
|
1254
|
+
]),
|
|
1255
|
+
proposalId: Type.Optional(Type.String()),
|
|
1256
|
+
error: Type.Optional(Type.String()),
|
|
1257
|
+
usage: Type.Optional(closedObject({
|
|
1258
|
+
inputTokens: Type.Number(),
|
|
1259
|
+
cachedInputTokens: Type.Number(),
|
|
1260
|
+
outputTokens: Type.Number()
|
|
1261
|
+
}))
|
|
1262
|
+
});
|
|
1263
|
+
/** Reads persisted skill usage and collection review state. */
|
|
1264
|
+
const SkillsCuratorStatusParamsSchema = closedObject({});
|
|
1265
|
+
const SkillsCuratorStatusResultSchema = closedObject({
|
|
1266
|
+
lastAttemptAtMs: Type.Union([Type.Number(), Type.Null()]),
|
|
1267
|
+
lastSuccessAtMs: Type.Union([Type.Number(), Type.Null()]),
|
|
1268
|
+
lastError: Type.Union([Type.String(), Type.Null()]),
|
|
1269
|
+
collectionReview: Type.Optional(Type.Record(NonEmptyString, SkillCollectionReviewStatusSchema)),
|
|
1270
|
+
experienceReview: Type.Optional(Type.Record(NonEmptyString, SkillExperienceReviewStatusSchema)),
|
|
1271
|
+
counts: closedObject({
|
|
1272
|
+
active: Type.Number(),
|
|
1273
|
+
stale: Type.Number(),
|
|
1274
|
+
archived: Type.Number()
|
|
1275
|
+
}),
|
|
1276
|
+
skills: Type.Array(SkillCuratorEntrySchema),
|
|
1277
|
+
overlaps: Type.Array(SkillOverlapCandidateSchema)
|
|
1278
|
+
});
|
|
1279
|
+
/** Preserves retired curator action methods so clients receive an actionable error. */
|
|
1280
|
+
const SkillsCuratorActionParamsSchema = closedObject({ skill: NonEmptyString });
|
|
1281
|
+
const SkillsCuratorActionResultSchema = SkillCuratorEntrySchema;
|
|
1282
|
+
const SkillCuratorLiveEntrySchema = closedObject({
|
|
1283
|
+
...SkillCuratorEntrySchema.properties,
|
|
1284
|
+
createdAtMs: Type.Union([Type.Number(), Type.Null()]),
|
|
1285
|
+
stateChangedAtMs: Type.Union([Type.Number(), Type.Null()])
|
|
1286
|
+
});
|
|
1287
|
+
const SkillsCuratorLiveStatusResultSchema = closedObject({
|
|
1288
|
+
...SkillsCuratorStatusResultSchema.properties,
|
|
1289
|
+
inventory: Type.Literal("live-workshop"),
|
|
1290
|
+
skills: Type.Array(SkillCuratorLiveEntrySchema)
|
|
1291
|
+
});
|
|
1292
|
+
//#endregion
|
|
1293
|
+
//#region src/schema/agents-models-skills.ts
|
|
1294
|
+
/**
|
|
1295
|
+
* Agent, model, skill, and effective tool schemas.
|
|
1296
|
+
*
|
|
1297
|
+
* These contracts back dashboard selectors, agent management, model catalogs,
|
|
1298
|
+
* skill upload/install flows, skill workshop proposals, and effective tool
|
|
1299
|
+
* discovery. Keep public request/result schemas documented because they are
|
|
1300
|
+
* shared by gateway RPC, CLI, and UI clients.
|
|
1301
|
+
*/
|
|
1048
1302
|
/** Semantic owner of an agent roster entry. */
|
|
1049
1303
|
const AgentKindSchema = Type.Union([Type.Literal("agent"), Type.Literal("system")]);
|
|
1050
1304
|
const AgentCreatedViaSchema = Type.Union([
|
|
@@ -1120,6 +1374,8 @@ const AgentsUpdateParamsSchema = closedObject({
|
|
|
1120
1374
|
name: Type.Optional(NonEmptyString),
|
|
1121
1375
|
workspace: Type.Optional(NonEmptyString),
|
|
1122
1376
|
model: Type.Optional(Type.Union([NonEmptyString, Type.Null()])),
|
|
1377
|
+
/** Exact catalog runtime for a model-only selection; native authentication stays with it. */
|
|
1378
|
+
agentRuntime: Type.Optional(NonEmptyString),
|
|
1123
1379
|
emoji: Type.Optional(Type.String()),
|
|
1124
1380
|
avatar: Type.Optional(Type.String())
|
|
1125
1381
|
});
|
|
@@ -1197,36 +1453,6 @@ const AgentsFilesSetResultSchema = closedObject({
|
|
|
1197
1453
|
workspace: NonEmptyString,
|
|
1198
1454
|
file: AgentsFileEntrySchema
|
|
1199
1455
|
});
|
|
1200
|
-
/** Model catalog request with optional visibility scope. */
|
|
1201
|
-
const ModelsListParamsSchema = Type.Object({
|
|
1202
|
-
agentId: Type.Optional(NonEmptyString),
|
|
1203
|
-
sessionKey: Type.Optional(NonEmptyString),
|
|
1204
|
-
authProfileId: Type.Optional(ModelAuthProfileIdSchema),
|
|
1205
|
-
provider: Type.Optional(NonEmptyString),
|
|
1206
|
-
includeDetails: Type.Optional(Type.Boolean()),
|
|
1207
|
-
includeProviderCapabilities: Type.Optional(Type.Boolean()),
|
|
1208
|
-
/** Include global default-model previews, independent of agent/session overrides. */
|
|
1209
|
-
includeDefaultModels: Type.Optional(Type.Boolean()),
|
|
1210
|
-
/** Reuse prepared/cached facts without starting provider discovery. */
|
|
1211
|
-
preparedOnly: Type.Optional(Type.Boolean()),
|
|
1212
|
-
/** Force replacement of a completed full-catalog generation. */
|
|
1213
|
-
refresh: Type.Optional(Type.Boolean()),
|
|
1214
|
-
view: Type.Optional(Type.Union([
|
|
1215
|
-
Type.Literal("default"),
|
|
1216
|
-
Type.Literal("configured"),
|
|
1217
|
-
Type.Literal("provider-config"),
|
|
1218
|
-
Type.Literal("all")
|
|
1219
|
-
]))
|
|
1220
|
-
}, {
|
|
1221
|
-
additionalProperties: false,
|
|
1222
|
-
allOf: [{ not: {
|
|
1223
|
-
properties: {
|
|
1224
|
-
preparedOnly: { const: true },
|
|
1225
|
-
refresh: { const: true }
|
|
1226
|
-
},
|
|
1227
|
-
required: ["preparedOnly", "refresh"]
|
|
1228
|
-
} }, { not: { required: ["sessionKey", "authProfileId"] } }]
|
|
1229
|
-
});
|
|
1230
1456
|
/** Reads model-provider credential health for one configured agent. */
|
|
1231
1457
|
const ModelsAuthStatusParamsSchema = closedObject({
|
|
1232
1458
|
refresh: Type.Optional(Type.Boolean()),
|
|
@@ -1268,26 +1494,6 @@ const ModelsAuthOrderSetParamsSchema = closedObject({
|
|
|
1268
1494
|
})),
|
|
1269
1495
|
agentId: Type.Optional(Type.String())
|
|
1270
1496
|
});
|
|
1271
|
-
/** Model catalog result. */
|
|
1272
|
-
const ModelCatalogProviderOutcomeSchema = closedObject({
|
|
1273
|
-
provider: NonEmptyString,
|
|
1274
|
-
profileId: Type.Optional(NonEmptyString),
|
|
1275
|
-
status: Type.Union([
|
|
1276
|
-
Type.Literal("ready"),
|
|
1277
|
-
Type.Literal("auth-rejected"),
|
|
1278
|
-
Type.Literal("unavailable")
|
|
1279
|
-
])
|
|
1280
|
-
});
|
|
1281
|
-
const ModelsListResultSchema = closedObject({
|
|
1282
|
-
models: Type.Array(ModelChoiceSchema),
|
|
1283
|
-
defaultModels: Type.Optional(closedObject({
|
|
1284
|
-
/** Auto preview from agents.defaults.model, even when utility routing is explicit or disabled. */
|
|
1285
|
-
automaticUtilityModel: Type.Union([NonEmptyString, Type.Null()]) })),
|
|
1286
|
-
refreshFailed: Type.Optional(Type.Boolean()),
|
|
1287
|
-
pendingProviders: Type.Optional(Type.Array(NonEmptyString)),
|
|
1288
|
-
accountSelection: Type.Optional(ChatAccountSelectionSchema),
|
|
1289
|
-
providerOutcomes: Type.Optional(Type.Array(ModelCatalogProviderOutcomeSchema))
|
|
1290
|
-
});
|
|
1291
1497
|
/** Runs a bounded live credential probe for one model provider. */
|
|
1292
1498
|
const ModelsProbeParamsSchema = closedObject({
|
|
1293
1499
|
provider: NonEmptyString,
|
|
@@ -1932,68 +2138,6 @@ const SkillsProposalApplyResultSchema = closedObject({
|
|
|
1932
2138
|
});
|
|
1933
2139
|
/** Proposal record result returned after non-apply proposal actions. */
|
|
1934
2140
|
const SkillsProposalRecordResultSchema = SkillProposalRecordSchema;
|
|
1935
|
-
const SkillCuratorEntrySchema = closedObject({
|
|
1936
|
-
skillFile: NonEmptyString,
|
|
1937
|
-
skillKey: NonEmptyString,
|
|
1938
|
-
skillName: NonEmptyString,
|
|
1939
|
-
state: Type.Union([
|
|
1940
|
-
Type.Literal("active"),
|
|
1941
|
-
Type.Literal("stale"),
|
|
1942
|
-
Type.Literal("archived")
|
|
1943
|
-
]),
|
|
1944
|
-
pinned: Type.Boolean(),
|
|
1945
|
-
createdAtMs: Type.Number(),
|
|
1946
|
-
stateChangedAtMs: Type.Number(),
|
|
1947
|
-
lastUsedAtMs: Type.Union([Type.Number(), Type.Null()]),
|
|
1948
|
-
useCount: Type.Number(),
|
|
1949
|
-
archivedReason: Type.Union([Type.String(), Type.Null()])
|
|
1950
|
-
});
|
|
1951
|
-
const SkillOverlapCandidateSchema = closedObject({
|
|
1952
|
-
left: NonEmptyString,
|
|
1953
|
-
right: NonEmptyString,
|
|
1954
|
-
score: Type.Number()
|
|
1955
|
-
});
|
|
1956
|
-
const SkillCollectionReviewStatusSchema = closedObject({
|
|
1957
|
-
attemptedAtMs: Type.Number(),
|
|
1958
|
-
succeededAtMs: Type.Optional(Type.Number()),
|
|
1959
|
-
error: Type.Optional(Type.String())
|
|
1960
|
-
});
|
|
1961
|
-
const SkillExperienceReviewStatusSchema = closedObject({
|
|
1962
|
-
attemptedAtMs: Type.Number(),
|
|
1963
|
-
outcome: Type.Union([
|
|
1964
|
-
Type.Literal("completed"),
|
|
1965
|
-
Type.Literal("applied"),
|
|
1966
|
-
Type.Literal("proposed"),
|
|
1967
|
-
Type.Literal("nothing"),
|
|
1968
|
-
Type.Literal("failed")
|
|
1969
|
-
]),
|
|
1970
|
-
proposalId: Type.Optional(Type.String()),
|
|
1971
|
-
error: Type.Optional(Type.String()),
|
|
1972
|
-
usage: Type.Optional(closedObject({
|
|
1973
|
-
inputTokens: Type.Number(),
|
|
1974
|
-
cachedInputTokens: Type.Number(),
|
|
1975
|
-
outputTokens: Type.Number()
|
|
1976
|
-
}))
|
|
1977
|
-
});
|
|
1978
|
-
/** Reads persisted skill usage and collection review state. */
|
|
1979
|
-
const SkillsCuratorStatusParamsSchema = closedObject({});
|
|
1980
|
-
const SkillsCuratorStatusResultSchema = closedObject({
|
|
1981
|
-
lastAttemptAtMs: Type.Union([Type.Number(), Type.Null()]),
|
|
1982
|
-
lastSuccessAtMs: Type.Union([Type.Number(), Type.Null()]),
|
|
1983
|
-
lastError: Type.Union([Type.String(), Type.Null()]),
|
|
1984
|
-
collectionReview: Type.Optional(Type.Record(NonEmptyString, SkillCollectionReviewStatusSchema)),
|
|
1985
|
-
experienceReview: Type.Optional(Type.Record(NonEmptyString, SkillExperienceReviewStatusSchema)),
|
|
1986
|
-
counts: closedObject({
|
|
1987
|
-
active: Type.Number(),
|
|
1988
|
-
stale: Type.Number(),
|
|
1989
|
-
archived: Type.Number()
|
|
1990
|
-
}),
|
|
1991
|
-
skills: Type.Array(SkillCuratorEntrySchema),
|
|
1992
|
-
overlaps: Type.Array(SkillOverlapCandidateSchema)
|
|
1993
|
-
});
|
|
1994
|
-
/** Preserves retired curator action methods so clients receive an actionable error. */
|
|
1995
|
-
const SkillsCuratorActionParamsSchema = closedObject({ skill: NonEmptyString });
|
|
1996
|
-
const SkillsCuratorActionResultSchema = SkillCuratorEntrySchema;
|
|
1997
2141
|
const GitHubIdentityScopeSchema = Type.Union([Type.Literal("system"), Type.Literal("agent")]);
|
|
1998
2142
|
const ToolsGitHubStatusParamsSchema = closedObject({
|
|
1999
2143
|
agentId: NonEmptyString,
|
|
@@ -2269,6 +2413,10 @@ const WizardStartParamsSchema = closedObject({
|
|
|
2269
2413
|
flow: Type.Optional(Type.Union([Type.Literal("setup"), Type.Literal("channels")])),
|
|
2270
2414
|
channel: Type.Optional(NonEmptyString)
|
|
2271
2415
|
});
|
|
2416
|
+
const McpAuthLoginParamsSchema = closedObject({
|
|
2417
|
+
sessionId: NonEmptyString,
|
|
2418
|
+
serverName: NonEmptyString
|
|
2419
|
+
});
|
|
2272
2420
|
/** Client answer payload for the current wizard step. */
|
|
2273
2421
|
const WizardAnswerSchema = closedObject({
|
|
2274
2422
|
stepId: NonEmptyString,
|
|
@@ -2355,31 +2503,11 @@ const WizardStartResultSchema = closedObject({
|
|
|
2355
2503
|
});
|
|
2356
2504
|
/** Minimal status poll result used when the client does not need the next step. */
|
|
2357
2505
|
const WizardStatusResultSchema = closedObject({
|
|
2358
|
-
status: WizardRunStatusSchema,
|
|
2359
|
-
error: Type.Optional(Type.String())
|
|
2360
|
-
});
|
|
2361
|
-
//#endregion
|
|
2362
|
-
//#region src/schema/ui-appearance-
|
|
2363
|
-
const UI_APPEARANCE_PREFERENCE_KEYS = {
|
|
2364
|
-
theme: "ui.theme",
|
|
2365
|
-
themeMode: "ui.themeMode",
|
|
2366
|
-
accent: "ui.accent",
|
|
2367
|
-
fontUi: "ui.fontUi",
|
|
2368
|
-
fontChat: "ui.fontChat"
|
|
2369
|
-
};
|
|
2370
|
-
const UI_APPEARANCE_THEME_VALUES = [
|
|
2371
|
-
"claw",
|
|
2372
|
-
"knot",
|
|
2373
|
-
"dash",
|
|
2374
|
-
"absolutely",
|
|
2375
|
-
"tide",
|
|
2376
|
-
"beacon",
|
|
2377
|
-
"phosphor",
|
|
2378
|
-
"crt",
|
|
2379
|
-
"manuscript",
|
|
2380
|
-
"rose",
|
|
2381
|
-
"miami"
|
|
2382
|
-
];
|
|
2506
|
+
status: WizardRunStatusSchema,
|
|
2507
|
+
error: Type.Optional(Type.String())
|
|
2508
|
+
});
|
|
2509
|
+
//#endregion
|
|
2510
|
+
//#region src/schema/ui-appearance-typefaces.ts
|
|
2383
2511
|
const UI_APPEARANCE_TYPEFACE_VALUES = [
|
|
2384
2512
|
"instrument-sans",
|
|
2385
2513
|
"geist",
|
|
@@ -2392,18 +2520,22 @@ const UI_APPEARANCE_TYPEFACE_VALUES = [
|
|
|
2392
2520
|
"jetbrains-mono",
|
|
2393
2521
|
"system"
|
|
2394
2522
|
];
|
|
2395
|
-
|
|
2396
|
-
|
|
2397
|
-
|
|
2398
|
-
"
|
|
2399
|
-
"
|
|
2400
|
-
|
|
2523
|
+
//#endregion
|
|
2524
|
+
//#region src/schema/ui-appearance-preferences.ts
|
|
2525
|
+
const UI_APPEARANCE_PREFERENCE_KEYS = {
|
|
2526
|
+
theme: "ui.theme",
|
|
2527
|
+
themeMode: "ui.themeMode",
|
|
2528
|
+
accent: "ui.accent",
|
|
2529
|
+
fontUi: "ui.fontUi",
|
|
2530
|
+
fontChat: "ui.fontChat"
|
|
2531
|
+
};
|
|
2401
2532
|
const UI_APPEARANCE_TYPEFACES = new Set(UI_APPEARANCE_TYPEFACE_VALUES);
|
|
2402
2533
|
function normalizeUiAppearancePreference(key, value) {
|
|
2403
2534
|
if (typeof value !== "string") return;
|
|
2404
|
-
if (key === UI_APPEARANCE_PREFERENCE_KEYS.accent) return /^#[0-9a-f]{6}$/i.test(value) ? value.toLowerCase() : void 0;
|
|
2535
|
+
if (key === UI_APPEARANCE_PREFERENCE_KEYS.accent) return value === "theme" || /^#[0-9a-f]{6}$/i.test(value) ? value.toLowerCase() : void 0;
|
|
2405
2536
|
if (key === UI_APPEARANCE_PREFERENCE_KEYS.fontUi || key === UI_APPEARANCE_PREFERENCE_KEYS.fontChat) return UI_APPEARANCE_TYPEFACES.has(value) ? value : void 0;
|
|
2406
|
-
|
|
2537
|
+
if (key === UI_APPEARANCE_PREFERENCE_KEYS.theme) return isThemeId(value) ? value : void 0;
|
|
2538
|
+
return normalizeThemeMode(value);
|
|
2407
2539
|
}
|
|
2408
2540
|
//#endregion
|
|
2409
2541
|
//#region src/schema/users.ts
|
|
@@ -2453,6 +2585,26 @@ const UsersLinkEmailParamsSchema = closedObject({
|
|
|
2453
2585
|
targetProfileId: UserProfileIdSchema
|
|
2454
2586
|
});
|
|
2455
2587
|
const UsersLinkEmailResultSchema = closedObject({ profile: UserProfileSchema });
|
|
2588
|
+
const ChannelIdentityPartSchema = Type.String({
|
|
2589
|
+
minLength: 1,
|
|
2590
|
+
maxLength: 512,
|
|
2591
|
+
pattern: "^\\S(?:.*\\S)?$"
|
|
2592
|
+
});
|
|
2593
|
+
const UserChannelIdentitySchema = closedObject({
|
|
2594
|
+
channelId: ChannelIdentityPartSchema,
|
|
2595
|
+
accountId: ChannelIdentityPartSchema,
|
|
2596
|
+
senderId: ChannelIdentityPartSchema
|
|
2597
|
+
});
|
|
2598
|
+
const UserChannelIdentityLinkSchema = closedObject({
|
|
2599
|
+
profileId: UserProfileIdSchema,
|
|
2600
|
+
identity: UserChannelIdentitySchema
|
|
2601
|
+
});
|
|
2602
|
+
const UsersLinkChannelIdentityParamsSchema = UserChannelIdentityLinkSchema;
|
|
2603
|
+
const UsersLinkChannelIdentityResultSchema = UserChannelIdentityLinkSchema;
|
|
2604
|
+
const UsersUnlinkChannelIdentityParamsSchema = UserChannelIdentityLinkSchema;
|
|
2605
|
+
const UsersUnlinkChannelIdentityResultSchema = closedObject({ removed: Type.Boolean() });
|
|
2606
|
+
const UsersListChannelIdentitiesParamsSchema = closedObject({ profileId: UserProfileIdSchema });
|
|
2607
|
+
const UsersListChannelIdentitiesResultSchema = closedObject({ links: Type.Array(UserChannelIdentityLinkSchema) });
|
|
2456
2608
|
const UsersSetDisplayNameParamsSchema = closedObject({
|
|
2457
2609
|
profileId: UserProfileIdSchema,
|
|
2458
2610
|
displayName: Type.Union([UserProfileDisplayNameSchema, Type.Null()])
|
|
@@ -2593,8 +2745,15 @@ const UsersPrefsGetResultSchema = Type.Union([closedObject({
|
|
|
2593
2745
|
status: Type.Literal("ok"),
|
|
2594
2746
|
entries: UserPreferenceEntriesSchema
|
|
2595
2747
|
}), closedObject({ status: Type.Literal("no_durable_identity") })]);
|
|
2596
|
-
const UsersPrefsSetParamsSchema = closedObject({
|
|
2597
|
-
|
|
2748
|
+
const UsersPrefsSetParamsSchema = closedObject({
|
|
2749
|
+
entries: UserPreferenceSetEntriesSchema,
|
|
2750
|
+
expectedEntries: Type.Optional(UserPreferenceSetEntriesSchema)
|
|
2751
|
+
});
|
|
2752
|
+
const UsersPrefsSetResultSchema = Type.Union([
|
|
2753
|
+
closedObject({ status: Type.Literal("ok") }),
|
|
2754
|
+
closedObject({ status: Type.Literal("conflict") }),
|
|
2755
|
+
closedObject({ status: Type.Literal("no_durable_identity") })
|
|
2756
|
+
]);
|
|
2598
2757
|
const UsersPrefsChangedEventSchema = closedObject({
|
|
2599
2758
|
profileId: UserProfileIdSchema,
|
|
2600
2759
|
keys: Type.Array(UserPreferenceKeySchema, {
|
|
@@ -2996,6 +3155,40 @@ function lazyCompile(schema, precheck) {
|
|
|
2996
3155
|
return validate;
|
|
2997
3156
|
}
|
|
2998
3157
|
//#endregion
|
|
3158
|
+
//#region src/schema/control-ui-link-reader.ts
|
|
3159
|
+
const ControlUiLinkReaderMetadataSchema = closedObject({
|
|
3160
|
+
hosts: Type.Array(Type.String({
|
|
3161
|
+
minLength: 1,
|
|
3162
|
+
maxLength: 253
|
|
3163
|
+
}), {
|
|
3164
|
+
minItems: 1,
|
|
3165
|
+
maxItems: 16
|
|
3166
|
+
}),
|
|
3167
|
+
pathPattern: Type.String({
|
|
3168
|
+
minLength: 2,
|
|
3169
|
+
maxLength: 1024
|
|
3170
|
+
}),
|
|
3171
|
+
detailMethod: Type.String({
|
|
3172
|
+
minLength: 1,
|
|
3173
|
+
maxLength: 128
|
|
3174
|
+
}),
|
|
3175
|
+
previewMethod: Type.Optional(Type.String({
|
|
3176
|
+
minLength: 1,
|
|
3177
|
+
maxLength: 128
|
|
3178
|
+
})),
|
|
3179
|
+
imageMethod: Type.Optional(Type.String({
|
|
3180
|
+
minLength: 1,
|
|
3181
|
+
maxLength: 128
|
|
3182
|
+
}))
|
|
3183
|
+
});
|
|
3184
|
+
const ControlUiLinkReaderDescriptorSchema = closedObject({
|
|
3185
|
+
pluginId: NonEmptyString,
|
|
3186
|
+
id: NonEmptyString,
|
|
3187
|
+
label: NonEmptyString,
|
|
3188
|
+
icon: Type.Optional(Type.String()),
|
|
3189
|
+
linkReader: ControlUiLinkReaderMetadataSchema
|
|
3190
|
+
});
|
|
3191
|
+
//#endregion
|
|
2999
3192
|
//#region src/schema/plugin-credentials.ts
|
|
3000
3193
|
const closed$1 = { additionalProperties: false };
|
|
3001
3194
|
const text$1 = Type.String({
|
|
@@ -3029,7 +3222,10 @@ const reference = Type.Object({
|
|
|
3029
3222
|
}, closed$1);
|
|
3030
3223
|
const PluginCredentialInspectionSchema = Type.Union([
|
|
3031
3224
|
Type.Object({ kind: Type.Literal("missing") }, closed$1),
|
|
3032
|
-
Type.Object({
|
|
3225
|
+
Type.Object({
|
|
3226
|
+
kind: Type.Literal("literal"),
|
|
3227
|
+
value: Type.Optional(Type.String())
|
|
3228
|
+
}, closed$1),
|
|
3033
3229
|
Type.Object({ kind: Type.Literal("invalid") }, closed$1),
|
|
3034
3230
|
Type.Object({
|
|
3035
3231
|
kind: Type.Literal("environment"),
|
|
@@ -3045,7 +3241,8 @@ const PluginCredentialInspectionSchema = Type.Union([
|
|
|
3045
3241
|
const PluginsCredentialsInspectParamsSchema = Type.Object({
|
|
3046
3242
|
pluginId: text$1,
|
|
3047
3243
|
path,
|
|
3048
|
-
baseHash: text$1
|
|
3244
|
+
baseHash: text$1,
|
|
3245
|
+
reveal: Type.Optional(Type.Boolean())
|
|
3049
3246
|
}, closed$1);
|
|
3050
3247
|
const PluginsCredentialsInspectResultSchema = Type.Object({
|
|
3051
3248
|
baseHash: text$1,
|
|
@@ -3053,6 +3250,158 @@ const PluginsCredentialsInspectResultSchema = Type.Object({
|
|
|
3053
3250
|
}, closed$1);
|
|
3054
3251
|
const validatePluginsCredentialsInspectParams = /* @__PURE__ */ lazyCompile(PluginsCredentialsInspectParamsSchema);
|
|
3055
3252
|
//#endregion
|
|
3253
|
+
//#region src/schema/plugin-inspection.ts
|
|
3254
|
+
/** Effective operator hook-policy grant with optional explicit config value. */
|
|
3255
|
+
const PluginHookGrantSchema = closedObject({
|
|
3256
|
+
/** Effective policy after origin defaults and operator config. */
|
|
3257
|
+
effective: Type.Boolean(),
|
|
3258
|
+
/** Present only when plugins.entries.<id>.hooks sets the flag explicitly. */
|
|
3259
|
+
configured: Type.Optional(Type.Boolean())
|
|
3260
|
+
});
|
|
3261
|
+
/** Install provenance and pinned artifact integrity for one plugin. */
|
|
3262
|
+
const PluginInspectSourceSchema = closedObject({
|
|
3263
|
+
kind: Type.Union([
|
|
3264
|
+
Type.Literal("bundled"),
|
|
3265
|
+
Type.Literal("clawhub"),
|
|
3266
|
+
Type.Literal("npm"),
|
|
3267
|
+
Type.Literal("git"),
|
|
3268
|
+
Type.Literal("path"),
|
|
3269
|
+
Type.Literal("archive"),
|
|
3270
|
+
Type.Literal("marketplace"),
|
|
3271
|
+
Type.Literal("official-catalog")
|
|
3272
|
+
]),
|
|
3273
|
+
spec: Type.Optional(NonEmptyString),
|
|
3274
|
+
packageName: Type.Optional(NonEmptyString),
|
|
3275
|
+
/** Pinned artifact integrity recorded at install (npm SSRI, sha-256, or git commit). */
|
|
3276
|
+
integrity: Type.Optional(NonEmptyString),
|
|
3277
|
+
integrityKind: Type.Optional(Type.Union([
|
|
3278
|
+
Type.Literal("ssri"),
|
|
3279
|
+
Type.Literal("sha256"),
|
|
3280
|
+
Type.Literal("git-commit")
|
|
3281
|
+
]))
|
|
3282
|
+
});
|
|
3283
|
+
/** Manifest-declared capability surface in enumerable terms. All arrays sorted. */
|
|
3284
|
+
const PluginDeclaredSurfaceSchema = closedObject({
|
|
3285
|
+
channels: Type.Array(NonEmptyString),
|
|
3286
|
+
providers: Type.Array(NonEmptyString),
|
|
3287
|
+
tools: Type.Array(NonEmptyString),
|
|
3288
|
+
/** Manifest contract families and identifiers, rendered as `family: id`. */
|
|
3289
|
+
contracts: Type.Array(NonEmptyString),
|
|
3290
|
+
/** Bundle-format hook names; code plugins register hooks at runtime and list nothing here. */
|
|
3291
|
+
hooks: Type.Array(NonEmptyString),
|
|
3292
|
+
mcpServers: Type.Array(NonEmptyString),
|
|
3293
|
+
cliCommands: Type.Array(NonEmptyString),
|
|
3294
|
+
cliBackends: Type.Array(NonEmptyString),
|
|
3295
|
+
skills: Type.Array(NonEmptyString),
|
|
3296
|
+
/** Dot paths from configContracts.dangerousFlags. */
|
|
3297
|
+
dangerousConfigFlags: Type.Array(NonEmptyString)
|
|
3298
|
+
});
|
|
3299
|
+
/** Operator-granted capability flags with effective values. */
|
|
3300
|
+
const PluginOperatorGrantsSchema = closedObject({
|
|
3301
|
+
hooks: closedObject({
|
|
3302
|
+
allowPromptInjection: PluginHookGrantSchema,
|
|
3303
|
+
allowConversationAccess: PluginHookGrantSchema
|
|
3304
|
+
}),
|
|
3305
|
+
llm: Type.Optional(closedObject({
|
|
3306
|
+
allowModelOverride: Type.Optional(Type.Boolean()),
|
|
3307
|
+
allowedModels: Type.Optional(Type.Array(NonEmptyString)),
|
|
3308
|
+
allowedCompletionModels: Type.Optional(Type.Array(NonEmptyString)),
|
|
3309
|
+
allowAuthProfileOverride: Type.Optional(Type.Boolean()),
|
|
3310
|
+
allowAgentIdOverride: Type.Optional(Type.Boolean())
|
|
3311
|
+
})),
|
|
3312
|
+
subagent: Type.Optional(closedObject({
|
|
3313
|
+
allowModelOverride: Type.Optional(Type.Boolean()),
|
|
3314
|
+
allowedModels: Type.Optional(Type.Array(NonEmptyString))
|
|
3315
|
+
}))
|
|
3316
|
+
});
|
|
3317
|
+
/** Persisted ClawHub per-release trust verdict from the install record. */
|
|
3318
|
+
const PluginInstallTrustSchema = closedObject({
|
|
3319
|
+
disposition: Type.Union([
|
|
3320
|
+
Type.Literal("clean"),
|
|
3321
|
+
Type.Literal("review-recommended"),
|
|
3322
|
+
Type.Literal("review-required"),
|
|
3323
|
+
Type.Literal("blocked")
|
|
3324
|
+
]),
|
|
3325
|
+
reasons: Type.Optional(Type.Array(Type.String())),
|
|
3326
|
+
checkedAt: Type.Optional(NonEmptyString),
|
|
3327
|
+
acknowledgedAt: Type.Optional(NonEmptyString),
|
|
3328
|
+
pending: Type.Optional(Type.Boolean()),
|
|
3329
|
+
stale: Type.Optional(Type.Boolean())
|
|
3330
|
+
});
|
|
3331
|
+
/** Runtime-supported installed component lists plus detected-but-unavailable bundle facts. */
|
|
3332
|
+
const PluginInstalledComponentsSchema = closedObject({
|
|
3333
|
+
/** Runtime-supported capability families; item arrays may be empty when names are unavailable. */
|
|
3334
|
+
mapped: Type.Array(NonEmptyString),
|
|
3335
|
+
skills: Type.Array(NonEmptyString),
|
|
3336
|
+
skillDetails: Type.Optional(Type.Array(closedObject({
|
|
3337
|
+
name: NonEmptyString,
|
|
3338
|
+
description: Type.Optional(Type.String())
|
|
3339
|
+
}))),
|
|
3340
|
+
mcpServers: Type.Array(NonEmptyString),
|
|
3341
|
+
commands: Type.Array(NonEmptyString),
|
|
3342
|
+
hooks: Type.Array(NonEmptyString),
|
|
3343
|
+
lspServers: Type.Array(NonEmptyString),
|
|
3344
|
+
unavailable: closedObject({
|
|
3345
|
+
capabilities: Type.Array(NonEmptyString),
|
|
3346
|
+
mcpServers: Type.Array(NonEmptyString),
|
|
3347
|
+
lspServers: Type.Array(NonEmptyString)
|
|
3348
|
+
})
|
|
3349
|
+
});
|
|
3350
|
+
/** Instance-local decision provider health; contains no evidence or credential details. */
|
|
3351
|
+
const PluginDecisionProviderStatusSchema = closedObject({
|
|
3352
|
+
providerId: NonEmptyString,
|
|
3353
|
+
pluginId: NonEmptyString,
|
|
3354
|
+
configured: Type.Boolean(),
|
|
3355
|
+
credentialReady: Type.Boolean(),
|
|
3356
|
+
callable: Type.Boolean(),
|
|
3357
|
+
runtimeGeneration: NonEmptyString,
|
|
3358
|
+
recentSuccessAt: Type.Optional(Type.Integer({ minimum: 0 })),
|
|
3359
|
+
activeRequests: Type.Integer({ minimum: 0 }),
|
|
3360
|
+
successCount: Type.Integer({ minimum: 0 }),
|
|
3361
|
+
totalLatencyMs: Type.Number({ minimum: 0 }),
|
|
3362
|
+
usage: closedObject({
|
|
3363
|
+
inputTokens: Type.Number({ minimum: 0 }),
|
|
3364
|
+
outputTokens: Type.Number({ minimum: 0 })
|
|
3365
|
+
}),
|
|
3366
|
+
reasons: Type.Partial(closedObject({
|
|
3367
|
+
"credentials-unavailable": Type.Integer({ minimum: 0 }),
|
|
3368
|
+
authentication: Type.Integer({ minimum: 0 }),
|
|
3369
|
+
"rate-limited": Type.Integer({ minimum: 0 }),
|
|
3370
|
+
transport: Type.Integer({ minimum: 0 }),
|
|
3371
|
+
"unsupported-input": Type.Integer({ minimum: 0 }),
|
|
3372
|
+
"invalid-response": Type.Integer({ minimum: 0 }),
|
|
3373
|
+
disabled: Type.Integer({ minimum: 0 }),
|
|
3374
|
+
"not-configured": Type.Integer({ minimum: 0 }),
|
|
3375
|
+
retiring: Type.Integer({ minimum: 0 }),
|
|
3376
|
+
overloaded: Type.Integer({ minimum: 0 }),
|
|
3377
|
+
"circuit-open": Type.Integer({ minimum: 0 }),
|
|
3378
|
+
deadline: Type.Integer({ minimum: 0 })
|
|
3379
|
+
}), { additionalProperties: false })
|
|
3380
|
+
});
|
|
3381
|
+
//#endregion
|
|
3382
|
+
//#region src/schema/plugin-install-progress.ts
|
|
3383
|
+
/** Request-scoped installer facts; no package output or local paths cross this boundary. */
|
|
3384
|
+
const PluginInstallActivitySchema = closedObject({
|
|
3385
|
+
activityId: NonEmptyString,
|
|
3386
|
+
stage: Type.Union([
|
|
3387
|
+
Type.Literal("resolve"),
|
|
3388
|
+
Type.Literal("download"),
|
|
3389
|
+
Type.Literal("extract"),
|
|
3390
|
+
Type.Literal("files"),
|
|
3391
|
+
Type.Literal("dependencies"),
|
|
3392
|
+
Type.Literal("runtime")
|
|
3393
|
+
]),
|
|
3394
|
+
status: Type.Union([
|
|
3395
|
+
Type.Literal("started"),
|
|
3396
|
+
Type.Literal("completed"),
|
|
3397
|
+
Type.Literal("failed")
|
|
3398
|
+
])
|
|
3399
|
+
});
|
|
3400
|
+
const PluginsInstallProgressEventSchema = closedObject({
|
|
3401
|
+
...PluginInstallActivitySchema.properties,
|
|
3402
|
+
requestId: NonEmptyString
|
|
3403
|
+
});
|
|
3404
|
+
//#endregion
|
|
3056
3405
|
//#region src/schema/plugins.ts
|
|
3057
3406
|
/**
|
|
3058
3407
|
* Plugin control-surface protocol schemas.
|
|
@@ -3073,8 +3422,10 @@ const PluginControlUiDescriptorSchema = closedObject({
|
|
|
3073
3422
|
Type.Literal("run"),
|
|
3074
3423
|
Type.Literal("settings"),
|
|
3075
3424
|
Type.Literal("tab"),
|
|
3076
|
-
Type.Literal("widget")
|
|
3425
|
+
Type.Literal("widget"),
|
|
3426
|
+
Type.Literal("link-reader")
|
|
3077
3427
|
]),
|
|
3428
|
+
linkReader: Type.Optional(ControlUiLinkReaderMetadataSchema),
|
|
3078
3429
|
label: NonEmptyString,
|
|
3079
3430
|
description: Type.Optional(Type.String()),
|
|
3080
3431
|
icon: Type.Optional(Type.String()),
|
|
@@ -3116,6 +3467,7 @@ const PluginsUiDescriptorsResultSchema = closedObject({
|
|
|
3116
3467
|
methods: Type.Optional(Type.Array(NonEmptyString)),
|
|
3117
3468
|
controlUiTabs: Type.Optional(Type.Array(ControlUiPluginTabSchema)),
|
|
3118
3469
|
controlUiWidgetKinds: Type.Optional(Type.Array(ControlUiPluginWidgetKindSchema)),
|
|
3470
|
+
controlUiLinkReaders: Type.Optional(Type.Array(ControlUiLinkReaderDescriptorSchema)),
|
|
3119
3471
|
pluginSurfaceUrls: Type.Optional(Type.Record(NonEmptyString, NonEmptyString))
|
|
3120
3472
|
});
|
|
3121
3473
|
/** One immutable browser build owned by an active native plugin. */
|
|
@@ -3237,103 +3589,26 @@ const PluginCatalogEntrySchema = closedObject({
|
|
|
3237
3589
|
error: Type.Optional(Type.String()),
|
|
3238
3590
|
runtime: Type.Optional(PluginRuntimeStatusSchema),
|
|
3239
3591
|
/** Ordered package or registry categories; the first category is primary. */
|
|
3240
|
-
categories: Type.Optional(Type.Array(NonEmptyString, {
|
|
3241
|
-
minItems: 1,
|
|
3242
|
-
maxItems: 3
|
|
3243
|
-
})),
|
|
3244
|
-
/** Compatibility projection of the primary category. */
|
|
3245
|
-
category: Type.Optional(NonEmptyString),
|
|
3246
|
-
/** True when the plugin has an install record and can be removed via plugins.uninstall. */
|
|
3247
|
-
removable: Type.Optional(Type.Boolean())
|
|
3248
|
-
});
|
|
3249
|
-
/** Empty request payload for the cold plugin catalog. */
|
|
3250
|
-
const PluginsListParamsSchema = closedObject({});
|
|
3251
|
-
/** Installed and curated plugin catalog visible to the current gateway client. */
|
|
3252
|
-
const PluginsListResultSchema = closedObject({
|
|
3253
|
-
generation: Type.Optional(Type.Integer({ minimum: 0 })),
|
|
3254
|
-
plugins: Type.Array(PluginCatalogEntrySchema),
|
|
3255
|
-
diagnostics: Type.Array(Type.Unknown()),
|
|
3256
|
-
mutationAllowed: Type.Boolean()
|
|
3257
|
-
});
|
|
3258
|
-
/** Request payload for inspecting one plugin's declared capability surface. */
|
|
3259
|
-
const PluginsInspectParamsSchema = closedObject({ pluginId: NonEmptyString });
|
|
3260
|
-
/** Effective operator hook-policy grant with optional explicit config value. */
|
|
3261
|
-
const PluginHookGrantSchema = closedObject({
|
|
3262
|
-
/** Effective policy after origin defaults and operator config. */
|
|
3263
|
-
effective: Type.Boolean(),
|
|
3264
|
-
/** Present only when plugins.entries.<id>.hooks sets the flag explicitly. */
|
|
3265
|
-
configured: Type.Optional(Type.Boolean())
|
|
3266
|
-
});
|
|
3267
|
-
/** Install provenance and pinned artifact integrity for one plugin. */
|
|
3268
|
-
const PluginInspectSourceSchema = closedObject({
|
|
3269
|
-
kind: Type.Union([
|
|
3270
|
-
Type.Literal("bundled"),
|
|
3271
|
-
Type.Literal("clawhub"),
|
|
3272
|
-
Type.Literal("npm"),
|
|
3273
|
-
Type.Literal("git"),
|
|
3274
|
-
Type.Literal("path"),
|
|
3275
|
-
Type.Literal("archive"),
|
|
3276
|
-
Type.Literal("marketplace"),
|
|
3277
|
-
Type.Literal("official-catalog")
|
|
3278
|
-
]),
|
|
3279
|
-
spec: Type.Optional(NonEmptyString),
|
|
3280
|
-
packageName: Type.Optional(NonEmptyString),
|
|
3281
|
-
/** Pinned artifact integrity recorded at install (npm SSRI, sha-256, or git commit). */
|
|
3282
|
-
integrity: Type.Optional(NonEmptyString),
|
|
3283
|
-
integrityKind: Type.Optional(Type.Union([
|
|
3284
|
-
Type.Literal("ssri"),
|
|
3285
|
-
Type.Literal("sha256"),
|
|
3286
|
-
Type.Literal("git-commit")
|
|
3287
|
-
]))
|
|
3288
|
-
});
|
|
3289
|
-
/** Manifest-declared capability surface in enumerable terms. All arrays sorted. */
|
|
3290
|
-
const PluginDeclaredSurfaceSchema = closedObject({
|
|
3291
|
-
channels: Type.Array(NonEmptyString),
|
|
3292
|
-
providers: Type.Array(NonEmptyString),
|
|
3293
|
-
tools: Type.Array(NonEmptyString),
|
|
3294
|
-
/** Manifest contract families and identifiers, rendered as `family: id`. */
|
|
3295
|
-
contracts: Type.Array(NonEmptyString),
|
|
3296
|
-
/** Bundle-format hook names; code plugins register hooks at runtime and list nothing here. */
|
|
3297
|
-
hooks: Type.Array(NonEmptyString),
|
|
3298
|
-
mcpServers: Type.Array(NonEmptyString),
|
|
3299
|
-
cliCommands: Type.Array(NonEmptyString),
|
|
3300
|
-
cliBackends: Type.Array(NonEmptyString),
|
|
3301
|
-
skills: Type.Array(NonEmptyString),
|
|
3302
|
-
/** Dot paths from configContracts.dangerousFlags. */
|
|
3303
|
-
dangerousConfigFlags: Type.Array(NonEmptyString)
|
|
3304
|
-
});
|
|
3305
|
-
/** Operator-granted capability flags with effective values. */
|
|
3306
|
-
const PluginOperatorGrantsSchema = closedObject({
|
|
3307
|
-
hooks: closedObject({
|
|
3308
|
-
allowPromptInjection: PluginHookGrantSchema,
|
|
3309
|
-
allowConversationAccess: PluginHookGrantSchema
|
|
3310
|
-
}),
|
|
3311
|
-
llm: Type.Optional(closedObject({
|
|
3312
|
-
allowModelOverride: Type.Optional(Type.Boolean()),
|
|
3313
|
-
allowedModels: Type.Optional(Type.Array(NonEmptyString)),
|
|
3314
|
-
allowedCompletionModels: Type.Optional(Type.Array(NonEmptyString)),
|
|
3315
|
-
allowAuthProfileOverride: Type.Optional(Type.Boolean()),
|
|
3316
|
-
allowAgentIdOverride: Type.Optional(Type.Boolean())
|
|
3317
|
-
})),
|
|
3318
|
-
subagent: Type.Optional(closedObject({
|
|
3319
|
-
allowModelOverride: Type.Optional(Type.Boolean()),
|
|
3320
|
-
allowedModels: Type.Optional(Type.Array(NonEmptyString))
|
|
3321
|
-
}))
|
|
3322
|
-
});
|
|
3323
|
-
/** Persisted ClawHub per-release trust verdict from the install record. */
|
|
3324
|
-
const PluginInstallTrustSchema = closedObject({
|
|
3325
|
-
disposition: Type.Union([
|
|
3326
|
-
Type.Literal("clean"),
|
|
3327
|
-
Type.Literal("review-recommended"),
|
|
3328
|
-
Type.Literal("review-required"),
|
|
3329
|
-
Type.Literal("blocked")
|
|
3330
|
-
]),
|
|
3331
|
-
reasons: Type.Optional(Type.Array(Type.String())),
|
|
3332
|
-
checkedAt: Type.Optional(NonEmptyString),
|
|
3333
|
-
acknowledgedAt: Type.Optional(NonEmptyString),
|
|
3334
|
-
pending: Type.Optional(Type.Boolean()),
|
|
3335
|
-
stale: Type.Optional(Type.Boolean())
|
|
3592
|
+
categories: Type.Optional(Type.Array(NonEmptyString, {
|
|
3593
|
+
minItems: 1,
|
|
3594
|
+
maxItems: 3
|
|
3595
|
+
})),
|
|
3596
|
+
/** Compatibility projection of the primary category. */
|
|
3597
|
+
category: Type.Optional(NonEmptyString),
|
|
3598
|
+
/** True when the plugin has an install record and can be removed via plugins.uninstall. */
|
|
3599
|
+
removable: Type.Optional(Type.Boolean())
|
|
3600
|
+
});
|
|
3601
|
+
/** Empty request payload for the cold plugin catalog. */
|
|
3602
|
+
const PluginsListParamsSchema = closedObject({});
|
|
3603
|
+
/** Installed and curated plugin catalog visible to the current gateway client. */
|
|
3604
|
+
const PluginsListResultSchema = closedObject({
|
|
3605
|
+
generation: Type.Optional(Type.Integer({ minimum: 0 })),
|
|
3606
|
+
plugins: Type.Array(PluginCatalogEntrySchema),
|
|
3607
|
+
diagnostics: Type.Array(Type.Unknown()),
|
|
3608
|
+
mutationAllowed: Type.Boolean()
|
|
3336
3609
|
});
|
|
3610
|
+
/** Request payload for inspecting one plugin's declared capability surface. */
|
|
3611
|
+
const PluginsInspectParamsSchema = closedObject({ pluginId: NonEmptyString });
|
|
3337
3612
|
/** Newly declared capability items grouped by their existing manifest surface. */
|
|
3338
3613
|
const PluginDeclaredSurfaceWideningSchema = Type.Partial(PluginDeclaredSurfaceSchema, { additionalProperties: false });
|
|
3339
3614
|
/** Typed failure payload that lets clients review and acknowledge plugin capabilities. */
|
|
@@ -3515,6 +3790,9 @@ const PluginDiscoveryDetailSchema = closedObject({
|
|
|
3515
3790
|
repositoryUrl: Type.Optional(NonEmptyString),
|
|
3516
3791
|
documentationUrl: Type.Optional(NonEmptyString),
|
|
3517
3792
|
compatibility: Type.Optional(PluginDiscoveryCompatibilitySchema),
|
|
3793
|
+
contracts: Type.Optional(Type.Record(NonEmptyString, Type.Array(NonEmptyString))),
|
|
3794
|
+
providers: Type.Optional(Type.Array(NonEmptyString)),
|
|
3795
|
+
channels: Type.Optional(Type.Array(NonEmptyString)),
|
|
3518
3796
|
configuration: Type.Array(PluginDiscoveryConfigFieldSchema),
|
|
3519
3797
|
mcpServers: Type.Array(NonEmptyString),
|
|
3520
3798
|
skills: Type.Array(closedObject({
|
|
@@ -3543,25 +3821,6 @@ const PluginsCatalogGetResultSchema = closedObject({
|
|
|
3543
3821
|
plugin: PluginDiscoveryEntrySchema,
|
|
3544
3822
|
detail: PluginDiscoveryDetailSchema
|
|
3545
3823
|
});
|
|
3546
|
-
/** Runtime-supported installed component lists plus detected-but-unavailable bundle facts. */
|
|
3547
|
-
const PluginInstalledComponentsSchema = closedObject({
|
|
3548
|
-
/** Runtime-supported capability families; item arrays may be empty when names are unavailable. */
|
|
3549
|
-
mapped: Type.Array(NonEmptyString),
|
|
3550
|
-
skills: Type.Array(NonEmptyString),
|
|
3551
|
-
skillDetails: Type.Optional(Type.Array(closedObject({
|
|
3552
|
-
name: NonEmptyString,
|
|
3553
|
-
description: Type.Optional(Type.String())
|
|
3554
|
-
}))),
|
|
3555
|
-
mcpServers: Type.Array(NonEmptyString),
|
|
3556
|
-
commands: Type.Array(NonEmptyString),
|
|
3557
|
-
hooks: Type.Array(NonEmptyString),
|
|
3558
|
-
lspServers: Type.Array(NonEmptyString),
|
|
3559
|
-
unavailable: closedObject({
|
|
3560
|
-
capabilities: Type.Array(NonEmptyString),
|
|
3561
|
-
mcpServers: Type.Array(NonEmptyString),
|
|
3562
|
-
lspServers: Type.Array(NonEmptyString)
|
|
3563
|
-
})
|
|
3564
|
-
});
|
|
3565
3824
|
/** Consent snapshot plus the installed-version presentation projection used by Control UI. */
|
|
3566
3825
|
const PluginsInspectResultSchema = closedObject({
|
|
3567
3826
|
ok: Type.Literal(true),
|
|
@@ -3572,6 +3831,7 @@ const PluginsInspectResultSchema = closedObject({
|
|
|
3572
3831
|
publisherName: Type.Optional(NonEmptyString)
|
|
3573
3832
|
})),
|
|
3574
3833
|
credentials: Type.Optional(Type.Array(PluginCredentialDescriptorSchema)),
|
|
3834
|
+
decisions: Type.Optional(Type.Array(PluginDecisionProviderStatusSchema)),
|
|
3575
3835
|
plugin: closedObject({
|
|
3576
3836
|
id: NonEmptyString,
|
|
3577
3837
|
name: NonEmptyString,
|
|
@@ -3808,6 +4068,8 @@ const SessionCatalogHostSchema = closedObject({
|
|
|
3808
4068
|
label: NonEmptyString,
|
|
3809
4069
|
kind: Type.Union([Type.Literal("gateway"), Type.Literal("node")]),
|
|
3810
4070
|
connected: Type.Boolean(),
|
|
4071
|
+
/** First snapshot is still loading; retain prior rows until the host publication arrives. */
|
|
4072
|
+
pending: Type.Optional(Type.Boolean()),
|
|
3811
4073
|
nodeId: Type.Optional(NonEmptyString),
|
|
3812
4074
|
canStartTerminal: Type.Optional(Type.Boolean()),
|
|
3813
4075
|
sessions: Type.Array(SessionCatalogSessionSchema),
|
|
@@ -3828,12 +4090,16 @@ const SessionsCatalogListCommonProperties = {
|
|
|
3828
4090
|
minLength: 1,
|
|
3829
4091
|
maxLength: 128
|
|
3830
4092
|
})),
|
|
4093
|
+
/** Opt into pending hosts completed by incremental publications for this progressId. */
|
|
4094
|
+
allowPartialResults: Type.Optional(Type.Boolean()),
|
|
3831
4095
|
search: Type.Optional(Type.String()),
|
|
3832
4096
|
limitPerHost: Type.Optional(Type.Integer({ minimum: 1 })),
|
|
3833
4097
|
hostIds: Type.Optional(Type.Array(NonEmptyString))
|
|
3834
4098
|
};
|
|
3835
4099
|
const SessionsCatalogListParamsSchema = closedObject({
|
|
3836
4100
|
catalogId: Type.Optional(NonEmptyString),
|
|
4101
|
+
/** Return catalog labels and capabilities with empty hosts, without listing sessions. */
|
|
4102
|
+
metadataOnly: Type.Optional(Type.Boolean()),
|
|
3837
4103
|
cursors: Type.Optional(Type.Record(NonEmptyString, Type.String())),
|
|
3838
4104
|
...SessionsCatalogListCommonProperties
|
|
3839
4105
|
});
|
|
@@ -4568,6 +4834,7 @@ const WORKER_LIVE_EVENT_PROTOCOL_FEATURE = "worker-live-event-v1";
|
|
|
4568
4834
|
const WORKER_LAUNCH_V2_PROTOCOL_FEATURE = "worker-launch-v2";
|
|
4569
4835
|
const WORKER_EXECUTION_CONTEXT_PROTOCOL_FEATURE = "worker-execution-context-v2";
|
|
4570
4836
|
const WORKER_EXECUTION_AUTHORITY_PROTOCOL_FEATURE = "worker-execution-authority-v1";
|
|
4837
|
+
const WORKER_LINEAGE_START_PROTOCOL_FEATURE = "worker-lineage-start-v1";
|
|
4571
4838
|
const WORKER_SESSION_TOOLS_PROTOCOL_FEATURE = "worker-session-tools-v1";
|
|
4572
4839
|
const WORKER_PORTAL_PROTOCOL_FEATURE = "worker-portal-v1";
|
|
4573
4840
|
const WORKER_PROTOCOL_FEATURES = [
|
|
@@ -4578,6 +4845,7 @@ const WORKER_PROTOCOL_FEATURES = [
|
|
|
4578
4845
|
WORKER_LIVE_EVENT_PROTOCOL_FEATURE,
|
|
4579
4846
|
WORKER_EXECUTION_CONTEXT_PROTOCOL_FEATURE,
|
|
4580
4847
|
WORKER_EXECUTION_AUTHORITY_PROTOCOL_FEATURE,
|
|
4848
|
+
WORKER_LINEAGE_START_PROTOCOL_FEATURE,
|
|
4581
4849
|
WORKER_SESSION_TOOLS_PROTOCOL_FEATURE,
|
|
4582
4850
|
WORKER_PORTAL_PROTOCOL_FEATURE,
|
|
4583
4851
|
WORKER_COMPUTER_PROTOCOL_FEATURE,
|
|
@@ -5750,13 +6018,37 @@ const UiSidebarCommandSchema = closedObject({
|
|
|
5750
6018
|
kind: Type.Literal("sidebar"),
|
|
5751
6019
|
visible: Type.Boolean()
|
|
5752
6020
|
});
|
|
5753
|
-
const
|
|
6021
|
+
const UiPanelCommandFields = {
|
|
5754
6022
|
kind: Type.Literal("panel"),
|
|
5755
|
-
panel: Type.Union([Type.Literal("terminal"), Type.Literal("browser")]),
|
|
5756
6023
|
open: Type.Boolean(),
|
|
5757
|
-
dock: Type.Optional(Type.Union([Type.Literal("bottom"), Type.Literal("right")]))
|
|
5758
|
-
|
|
5759
|
-
|
|
6024
|
+
dock: Type.Optional(Type.Union([Type.Literal("bottom"), Type.Literal("right")]))
|
|
6025
|
+
};
|
|
6026
|
+
const UiPanelCommandSchema = Type.Union([
|
|
6027
|
+
closedObject({
|
|
6028
|
+
...UiPanelCommandFields,
|
|
6029
|
+
panel: Type.Literal("terminal"),
|
|
6030
|
+
terminalSessionId: Type.Optional(NonEmptyString)
|
|
6031
|
+
}),
|
|
6032
|
+
closedObject({
|
|
6033
|
+
...UiPanelCommandFields,
|
|
6034
|
+
panel: Type.Literal("browser")
|
|
6035
|
+
}),
|
|
6036
|
+
closedObject({
|
|
6037
|
+
...UiPanelCommandFields,
|
|
6038
|
+
panel: Type.Literal("desktop"),
|
|
6039
|
+
environmentId: Type.Optional(NonEmptyString)
|
|
6040
|
+
}),
|
|
6041
|
+
closedObject({
|
|
6042
|
+
...UiPanelCommandFields,
|
|
6043
|
+
panel: Type.Literal("portal"),
|
|
6044
|
+
portalId: Type.Optional(NonEmptyString)
|
|
6045
|
+
}),
|
|
6046
|
+
closedObject({
|
|
6047
|
+
...UiPanelCommandFields,
|
|
6048
|
+
panel: Type.Literal("portal"),
|
|
6049
|
+
environmentId: NonEmptyString
|
|
6050
|
+
})
|
|
6051
|
+
]);
|
|
5760
6052
|
const UiNavigateCommandSchema = closedObject({
|
|
5761
6053
|
kind: Type.Literal("navigate"),
|
|
5762
6054
|
sessionKey: NonEmptyString
|
|
@@ -5776,6 +6068,88 @@ const UiCommandParamsSchema = closedObject({
|
|
|
5776
6068
|
});
|
|
5777
6069
|
const UiCommandResultSchema = closedObject({ ok: Type.Boolean() });
|
|
5778
6070
|
//#endregion
|
|
6071
|
+
//#region src/schema/themes.ts
|
|
6072
|
+
const ThemeValue = Type.String({
|
|
6073
|
+
minLength: 1,
|
|
6074
|
+
maxLength: 120
|
|
6075
|
+
});
|
|
6076
|
+
const ThemeArtworkId = Type.String({
|
|
6077
|
+
pattern: THEME_ARTWORK_ID_PATTERN.source,
|
|
6078
|
+
maxLength: 32
|
|
6079
|
+
});
|
|
6080
|
+
const ThemePaletteSchema = closedObject({
|
|
6081
|
+
background: ThemeValue,
|
|
6082
|
+
foreground: ThemeValue,
|
|
6083
|
+
card: ThemeValue,
|
|
6084
|
+
"card-foreground": ThemeValue,
|
|
6085
|
+
popover: ThemeValue,
|
|
6086
|
+
"popover-foreground": ThemeValue,
|
|
6087
|
+
primary: ThemeValue,
|
|
6088
|
+
"primary-foreground": ThemeValue,
|
|
6089
|
+
secondary: ThemeValue,
|
|
6090
|
+
"secondary-foreground": ThemeValue,
|
|
6091
|
+
muted: ThemeValue,
|
|
6092
|
+
"muted-foreground": ThemeValue,
|
|
6093
|
+
accent: ThemeValue,
|
|
6094
|
+
"accent-foreground": ThemeValue,
|
|
6095
|
+
destructive: ThemeValue,
|
|
6096
|
+
"destructive-foreground": ThemeValue,
|
|
6097
|
+
border: ThemeValue,
|
|
6098
|
+
input: ThemeValue,
|
|
6099
|
+
ring: ThemeValue,
|
|
6100
|
+
"font-sans": Type.Optional(ThemeValue),
|
|
6101
|
+
"font-mono": Type.Optional(ThemeValue)
|
|
6102
|
+
});
|
|
6103
|
+
const ThemeDefinitionSchema = closedObject({
|
|
6104
|
+
name: Type.String({
|
|
6105
|
+
minLength: 1,
|
|
6106
|
+
maxLength: 80
|
|
6107
|
+
}),
|
|
6108
|
+
description: Type.String({
|
|
6109
|
+
minLength: 1,
|
|
6110
|
+
maxLength: 320
|
|
6111
|
+
}),
|
|
6112
|
+
mascot: Type.Optional(Type.Union([Type.Literal("claw"), Type.Literal("none")])),
|
|
6113
|
+
workingPhrases: Type.Optional(Type.Array(Type.String({
|
|
6114
|
+
minLength: 1,
|
|
6115
|
+
maxLength: 24
|
|
6116
|
+
}), { maxItems: 24 })),
|
|
6117
|
+
critters: Type.Optional(Type.Array(ThemeArtworkId, { maxItems: 8 })),
|
|
6118
|
+
avatarHat: Type.Optional(ThemeArtworkId),
|
|
6119
|
+
light: Type.Optional(ThemePaletteSchema),
|
|
6120
|
+
dark: Type.Optional(ThemePaletteSchema)
|
|
6121
|
+
});
|
|
6122
|
+
const ThemeModeSchema = Type.Union([
|
|
6123
|
+
Type.Literal("system"),
|
|
6124
|
+
Type.Literal("light"),
|
|
6125
|
+
Type.Literal("dark")
|
|
6126
|
+
]);
|
|
6127
|
+
const ThemeId = Type.String({
|
|
6128
|
+
minLength: 1,
|
|
6129
|
+
maxLength: 256
|
|
6130
|
+
});
|
|
6131
|
+
const ThemesListParamsSchema = closedObject({});
|
|
6132
|
+
const ThemesGetParamsSchema = closedObject({ id: Type.Optional(ThemeId) });
|
|
6133
|
+
const ThemesSetParamsSchema = closedObject({
|
|
6134
|
+
id: Type.Optional(Type.Union([ThemeId, Type.Null()])),
|
|
6135
|
+
mode: Type.Optional(Type.Union([ThemeModeSchema, Type.Null()])),
|
|
6136
|
+
appearance: Type.Optional(closedObject({
|
|
6137
|
+
accent: Type.Optional(Type.Union([Type.String(), Type.Null()])),
|
|
6138
|
+
fontUi: Type.Optional(Type.Union([Type.String(), Type.Null()])),
|
|
6139
|
+
fontChat: Type.Optional(Type.Union([Type.String(), Type.Null()]))
|
|
6140
|
+
}))
|
|
6141
|
+
});
|
|
6142
|
+
const ThemesImportParamsSchema = closedObject({
|
|
6143
|
+
id: Type.String({
|
|
6144
|
+
minLength: 1,
|
|
6145
|
+
maxLength: 64,
|
|
6146
|
+
pattern: "^[a-z0-9][a-z0-9_-]*$"
|
|
6147
|
+
}),
|
|
6148
|
+
definition: ThemeDefinitionSchema,
|
|
6149
|
+
apply: Type.Optional(Type.Boolean()),
|
|
6150
|
+
mode: Type.Optional(ThemeModeSchema)
|
|
6151
|
+
});
|
|
6152
|
+
//#endregion
|
|
5779
6153
|
//#region src/schema/talk-voice.ts
|
|
5780
6154
|
const TALK_VOICE_CHANGE_TIMEOUT_MS = 6e4;
|
|
5781
6155
|
const target = {
|
|
@@ -6148,10 +6522,10 @@ const BoardCommandEventSchema = closedObject({
|
|
|
6148
6522
|
});
|
|
6149
6523
|
//#endregion
|
|
6150
6524
|
//#region src/schema/canvas.ts
|
|
6151
|
-
const CANVAS_DOCUMENT_PREVIEW_MAX_BYTES =
|
|
6525
|
+
const CANVAS_DOCUMENT_PREVIEW_MAX_BYTES = 2097152;
|
|
6152
6526
|
const CanvasDocumentPreviewParamsSchema = closedObject({ html: Type.String({
|
|
6153
6527
|
maxLength: CANVAS_DOCUMENT_PREVIEW_MAX_BYTES,
|
|
6154
|
-
description: "Caller-owned HTML, limited to
|
|
6528
|
+
description: "Caller-owned HTML, limited to 2 MiB of UTF-8 data by the Gateway."
|
|
6155
6529
|
}) });
|
|
6156
6530
|
const CanvasDocumentViewParamsSchema = closedObject({ docId: Type.String({
|
|
6157
6531
|
minLength: 1,
|
|
@@ -6201,6 +6575,16 @@ const ProgressCardPutParamsSchema = closedObject({
|
|
|
6201
6575
|
expectedRevision: Type.Optional(Type.Integer({ minimum: 1 }))
|
|
6202
6576
|
});
|
|
6203
6577
|
const ProgressCardPutResultSchema = ProgressCardGetResultSchema;
|
|
6578
|
+
const ProgressCardRefreshParamsSchema = closedObject({
|
|
6579
|
+
sessionKey: NonEmptyString,
|
|
6580
|
+
agentId: Type.Optional(NonEmptyString),
|
|
6581
|
+
idempotencyKey: NonEmptyString
|
|
6582
|
+
});
|
|
6583
|
+
const ProgressCardRefreshResultSchema = closedObject({
|
|
6584
|
+
runId: NonEmptyString,
|
|
6585
|
+
status: Type.Literal("accepted"),
|
|
6586
|
+
revision: Type.Integer({ minimum: 1 })
|
|
6587
|
+
});
|
|
6204
6588
|
const ProgressCardChangedEventSchema = closedObject({
|
|
6205
6589
|
sessionKey: NonEmptyString,
|
|
6206
6590
|
revision: Type.Union([Type.Number(), Type.Null()])
|
|
@@ -6306,6 +6690,7 @@ const TranscriptsListResultSchema = closedObject({
|
|
|
6306
6690
|
sessions: Type.Array(TranscriptSessionSummarySchema, { maxItems: 200 }),
|
|
6307
6691
|
nextCursor: NullableString
|
|
6308
6692
|
});
|
|
6693
|
+
const TranscriptsSummarizeParamsSchema = closedObject({ selector: Selector });
|
|
6309
6694
|
const TranscriptsGetParamsSchema = closedObject({
|
|
6310
6695
|
selector: Selector,
|
|
6311
6696
|
includeUtterances: Type.Optional(Type.Boolean()),
|
|
@@ -6470,6 +6855,8 @@ const snapshotBytes = Type.Integer({
|
|
|
6470
6855
|
minimum: 0,
|
|
6471
6856
|
maximum: Number.MAX_SAFE_INTEGER
|
|
6472
6857
|
});
|
|
6858
|
+
const destinationPath = Type.String({ maxLength: 240 });
|
|
6859
|
+
const nullableDestinationPath = Type.Union([destinationPath, Type.Null()]);
|
|
6473
6860
|
/** Wire projection of the canonical update ledger record. */
|
|
6474
6861
|
const UpdateRunRecordSchema = closedObject({
|
|
6475
6862
|
runId,
|
|
@@ -6485,7 +6872,8 @@ const UpdateRunRecordSchema = closedObject({
|
|
|
6485
6872
|
requester: Type.Optional(closedObject({
|
|
6486
6873
|
channel: Type.Optional(text),
|
|
6487
6874
|
accountId: Type.Optional(text),
|
|
6488
|
-
senderId: Type.Optional(text)
|
|
6875
|
+
senderId: Type.Optional(text),
|
|
6876
|
+
authorizationSource: Type.Optional(text)
|
|
6489
6877
|
})),
|
|
6490
6878
|
sessionKey: Type.Optional(text),
|
|
6491
6879
|
deliveryContext: Type.Optional(closedObject({
|
|
@@ -6503,7 +6891,14 @@ const UpdateRunRecordSchema = closedObject({
|
|
|
6503
6891
|
tag: Type.Optional(text),
|
|
6504
6892
|
kind: Type.Optional(Type.Enum(["package", "git"])),
|
|
6505
6893
|
version: Type.Optional(text),
|
|
6506
|
-
sha: Type.Optional(text)
|
|
6894
|
+
sha: Type.Optional(text),
|
|
6895
|
+
installationMethod: Type.Optional(Type.Union([Type.Enum([
|
|
6896
|
+
"git-checkout",
|
|
6897
|
+
"npm-global",
|
|
6898
|
+
"pnpm-global",
|
|
6899
|
+
"bun-global",
|
|
6900
|
+
"managed-service"
|
|
6901
|
+
]), Type.Null()]))
|
|
6507
6902
|
}),
|
|
6508
6903
|
before: version,
|
|
6509
6904
|
after: version,
|
|
@@ -6519,7 +6914,26 @@ const UpdateRunRecordSchema = closedObject({
|
|
|
6519
6914
|
code: Type.String({ maxLength: 80 }),
|
|
6520
6915
|
message: Type.Optional(Type.String({ maxLength: 200 })),
|
|
6521
6916
|
affectedKey: Type.Optional(Type.String({ maxLength: 128 })),
|
|
6522
|
-
pluginId: Type.Optional(Type.String({ maxLength: 80 }))
|
|
6917
|
+
pluginId: Type.Optional(Type.String({ maxLength: 80 })),
|
|
6918
|
+
errorName: Type.Optional(Type.Union([Type.String({ maxLength: 80 }), Type.Null()])),
|
|
6919
|
+
location: Type.Optional(Type.Union([Type.String({ maxLength: 160 }), Type.Null()])),
|
|
6920
|
+
destination: Type.Optional(closedObject({
|
|
6921
|
+
ownership: Type.Enum(["foreign", "unknown"]),
|
|
6922
|
+
cause: Type.Enum([
|
|
6923
|
+
"package-mismatch",
|
|
6924
|
+
"launcher-mismatch",
|
|
6925
|
+
"permission",
|
|
6926
|
+
"probe-failure",
|
|
6927
|
+
"unreadable-layout"
|
|
6928
|
+
]),
|
|
6929
|
+
destinationKind: Type.Enum(["npm-global", "unknown"]),
|
|
6930
|
+
prefix: nullableDestinationPath,
|
|
6931
|
+
packageRoot: nullableDestinationPath,
|
|
6932
|
+
runningRoot: destinationPath,
|
|
6933
|
+
runningPrefix: nullableDestinationPath,
|
|
6934
|
+
launcher: nullableDestinationPath,
|
|
6935
|
+
launcherTarget: nullableDestinationPath
|
|
6936
|
+
}))
|
|
6523
6937
|
}), { maxItems: 5 })),
|
|
6524
6938
|
configChange: Type.Optional(Type.Union([closedObject({
|
|
6525
6939
|
kind: Type.Literal("key"),
|
|
@@ -6553,6 +6967,42 @@ const UpdateRunRecordSchema = closedObject({
|
|
|
6553
6967
|
}))
|
|
6554
6968
|
}), { maxItems: 128 }),
|
|
6555
6969
|
verification: closedObject({
|
|
6970
|
+
rollbackOutcome: Type.Optional(Type.Union([closedObject({
|
|
6971
|
+
status: Type.Enum([
|
|
6972
|
+
"not-needed",
|
|
6973
|
+
"not-attempted",
|
|
6974
|
+
"succeeded",
|
|
6975
|
+
"failed"
|
|
6976
|
+
]),
|
|
6977
|
+
reason: Type.String({ maxLength: 512 })
|
|
6978
|
+
}), Type.Null()])),
|
|
6979
|
+
recovery: Type.Optional(Type.Union([
|
|
6980
|
+
closedObject({
|
|
6981
|
+
serviceRestartSafe: Type.Literal(true),
|
|
6982
|
+
packageRollbackVerified: Type.Optional(Type.Literal(true)),
|
|
6983
|
+
version: Type.String({ minLength: 1 }),
|
|
6984
|
+
buildId: Type.Optional(Type.String({
|
|
6985
|
+
minLength: 1,
|
|
6986
|
+
maxLength: 96
|
|
6987
|
+
})),
|
|
6988
|
+
service: Type.Optional(Type.Enum(["healthy", "failed"])),
|
|
6989
|
+
reason: Type.Optional(Type.String({ minLength: 1 }))
|
|
6990
|
+
}),
|
|
6991
|
+
closedObject({
|
|
6992
|
+
serviceRestartSafe: Type.Literal(false),
|
|
6993
|
+
packageRollbackVerified: Type.Optional(Type.Boolean()),
|
|
6994
|
+
reason: Type.Enum([
|
|
6995
|
+
"source-rollback-failed",
|
|
6996
|
+
"state-migration-started",
|
|
6997
|
+
"manager-unavailable",
|
|
6998
|
+
"deps-install-failed",
|
|
6999
|
+
"build-failed",
|
|
7000
|
+
"rollback-checkout-dirty",
|
|
7001
|
+
"runtime-verification-failed"
|
|
7002
|
+
])
|
|
7003
|
+
}),
|
|
7004
|
+
Type.Null()
|
|
7005
|
+
])),
|
|
6556
7006
|
booted: Type.Optional(Type.Boolean()),
|
|
6557
7007
|
runningVersion: Type.Optional(text),
|
|
6558
7008
|
runningBuildId: Type.Optional(text),
|
|
@@ -6608,6 +7058,8 @@ const UpdateRunResultSchema = closedObject({
|
|
|
6608
7058
|
ok: Type.Boolean(),
|
|
6609
7059
|
result: Type.Unknown(),
|
|
6610
7060
|
ackDelivered: Type.Optional(Type.Boolean()),
|
|
7061
|
+
ackQueued: Type.Optional(Type.Boolean()),
|
|
7062
|
+
acknowledgement: Type.Optional(Type.String()),
|
|
6611
7063
|
code: Type.Optional(Type.String()),
|
|
6612
7064
|
message: Type.Optional(Type.String()),
|
|
6613
7065
|
handoff: Type.Optional(Type.Unknown()),
|
|
@@ -6674,6 +7126,7 @@ const UpdateAvailableSchema = closedObject({
|
|
|
6674
7126
|
currentSha: Type.Optional(NonEmptyString),
|
|
6675
7127
|
upstreamRef: Type.Optional(NonEmptyString),
|
|
6676
7128
|
upstreamSha: Type.Optional(NonEmptyString),
|
|
7129
|
+
repositoryUrl: Type.Optional(NonEmptyString),
|
|
6677
7130
|
commitsBehind: Type.Optional(Type.Integer({ minimum: 0 })),
|
|
6678
7131
|
commits: Type.Optional(Type.Array(UpdateCommitSchema, { maxItems: 5 }))
|
|
6679
7132
|
});
|
|
@@ -6915,6 +7368,11 @@ const SuspensionTokenSchema = Type.String({
|
|
|
6915
7368
|
pattern: "\\S"
|
|
6916
7369
|
});
|
|
6917
7370
|
const CountSchema = Type.Integer({ minimum: 0 });
|
|
7371
|
+
/** Recorded lifecycle sections; absence on older residents means unknown custody. */
|
|
7372
|
+
const GatewayWriteCustodySchema = Type.Array(closedObject({
|
|
7373
|
+
phase: Type.String({ minLength: 1 }),
|
|
7374
|
+
count: CountSchema
|
|
7375
|
+
}));
|
|
6918
7376
|
/** Public admission state only; never includes the controller's suspension token. */
|
|
6919
7377
|
const GatewaySuspensionSchema = closedObject({ phase: Type.Union([
|
|
6920
7378
|
Type.Literal("accepting"),
|
|
@@ -6965,7 +7423,8 @@ const GatewaySuspendPrepareBusyResultSchema = closedObject({
|
|
|
6965
7423
|
reason: Type.Union([Type.Literal("active-work"), Type.Literal("gateway-draining")]),
|
|
6966
7424
|
retryAfterMs: CountSchema,
|
|
6967
7425
|
activeCount: CountSchema,
|
|
6968
|
-
blockers: Type.Array(GatewaySuspendBlockerSchema)
|
|
7426
|
+
blockers: Type.Array(GatewaySuspendBlockerSchema),
|
|
7427
|
+
writeCustody: Type.Optional(GatewayWriteCustodySchema)
|
|
6969
7428
|
});
|
|
6970
7429
|
const GatewaySuspendPrepareDrainingResultSchema = closedObject({
|
|
6971
7430
|
status: Type.Literal("draining"),
|
|
@@ -6973,14 +7432,16 @@ const GatewaySuspendPrepareDrainingResultSchema = closedObject({
|
|
|
6973
7432
|
expiresAtMs: CountSchema,
|
|
6974
7433
|
retryAfterMs: CountSchema,
|
|
6975
7434
|
activeCount: CountSchema,
|
|
6976
|
-
blockers: Type.Array(GatewaySuspendBlockerSchema)
|
|
7435
|
+
blockers: Type.Array(GatewaySuspendBlockerSchema),
|
|
7436
|
+
writeCustody: Type.Optional(GatewayWriteCustodySchema)
|
|
6977
7437
|
});
|
|
6978
7438
|
const GatewaySuspendPrepareReadyResultSchema = closedObject({
|
|
6979
7439
|
status: Type.Literal("ready"),
|
|
6980
7440
|
suspensionId: SuspensionTokenSchema,
|
|
6981
7441
|
expiresAtMs: CountSchema,
|
|
6982
7442
|
activeCount: CountSchema,
|
|
6983
|
-
blockers: Type.Array(GatewaySuspendBlockerSchema)
|
|
7443
|
+
blockers: Type.Array(GatewaySuspendBlockerSchema),
|
|
7444
|
+
writeCustody: Type.Optional(GatewayWriteCustodySchema)
|
|
6984
7445
|
});
|
|
6985
7446
|
const GatewaySuspendPrepareResultSchema = Type.Union([
|
|
6986
7447
|
GatewaySuspendPrepareBusyResultSchema,
|
|
@@ -6994,11 +7455,13 @@ const GatewaySuspendStatusDrainingResultSchema = closedObject({
|
|
|
6994
7455
|
expiresAtMs: CountSchema,
|
|
6995
7456
|
retryAfterMs: CountSchema,
|
|
6996
7457
|
activeCount: CountSchema,
|
|
6997
|
-
blockers: Type.Array(GatewaySuspendBlockerSchema)
|
|
7458
|
+
blockers: Type.Array(GatewaySuspendBlockerSchema),
|
|
7459
|
+
writeCustody: Type.Optional(GatewayWriteCustodySchema)
|
|
6998
7460
|
});
|
|
6999
7461
|
const GatewaySuspendStatusReadyResultSchema = closedObject({
|
|
7000
7462
|
status: Type.Literal("ready"),
|
|
7001
|
-
expiresAtMs: CountSchema
|
|
7463
|
+
expiresAtMs: CountSchema,
|
|
7464
|
+
writeCustody: Type.Optional(GatewayWriteCustodySchema)
|
|
7002
7465
|
});
|
|
7003
7466
|
const GatewaySuspendStatusResultSchema = Type.Union([
|
|
7004
7467
|
GatewaySuspendStatusRunningResultSchema,
|
|
@@ -7039,7 +7502,18 @@ const GatewayEventLoopHealthSchema = closedObject({
|
|
|
7039
7502
|
delayP99Ms: Type.Number({ minimum: 0 }),
|
|
7040
7503
|
delayMaxMs: Type.Number({ minimum: 0 }),
|
|
7041
7504
|
utilization: Type.Number({ minimum: 0 }),
|
|
7042
|
-
cpuCoreRatio: Type.Number({ minimum: 0 })
|
|
7505
|
+
cpuCoreRatio: Type.Number({ minimum: 0 }),
|
|
7506
|
+
cpuBreakdown: Type.Optional(closedObject({
|
|
7507
|
+
mainThreadCoreRatio: Type.Optional(Type.Number({ minimum: 0 })),
|
|
7508
|
+
workerCoreRatio: Type.Optional(Type.Number({ minimum: 0 })),
|
|
7509
|
+
/** Estimated process residual after main and tracked worker counters. */
|
|
7510
|
+
otherThreadsCoreRatio: Type.Optional(Type.Number({ minimum: 0 })),
|
|
7511
|
+
hostUtilization: Type.Optional(Type.Number({
|
|
7512
|
+
minimum: 0,
|
|
7513
|
+
maximum: 1
|
|
7514
|
+
})),
|
|
7515
|
+
hostCpuCount: Type.Optional(Type.Integer({ minimum: 1 }))
|
|
7516
|
+
}))
|
|
7043
7517
|
});
|
|
7044
7518
|
const GatewayProcessMemorySchema = closedObject({
|
|
7045
7519
|
rssBytes: Type.Integer({ minimum: 0 }),
|
|
@@ -7339,6 +7813,7 @@ const HelloOkSchema = closedObject({
|
|
|
7339
7813
|
controlUiUrl: Type.Optional(NonEmptyString),
|
|
7340
7814
|
controlUiTabs: Type.Optional(Type.Array(ControlUiPluginTabSchema)),
|
|
7341
7815
|
controlUiWidgetKinds: Type.Optional(Type.Array(ControlUiPluginWidgetKindSchema)),
|
|
7816
|
+
controlUiLinkReaders: Type.Optional(Type.Array(ControlUiLinkReaderDescriptorSchema)),
|
|
7342
7817
|
pluginSurfaceUrls: Type.Optional(Type.Record(NonEmptyString, NonEmptyString)),
|
|
7343
7818
|
auth: closedObject({
|
|
7344
7819
|
method: Type.Optional(Type.Union([
|
|
@@ -7530,6 +8005,19 @@ function truncateUtf16Safe(input, maxLen) {
|
|
|
7530
8005
|
return sliceUtf16Safe(input, 0, limit);
|
|
7531
8006
|
}
|
|
7532
8007
|
//#endregion
|
|
8008
|
+
//#region src/chat-work-context.ts
|
|
8009
|
+
/** Bounded, untrusted send-time reference data; never routing or authorization. */
|
|
8010
|
+
const CHAT_WORK_CONTEXT_LIMITS = {
|
|
8011
|
+
page: 64,
|
|
8012
|
+
title: 96,
|
|
8013
|
+
sessionKey: 192,
|
|
8014
|
+
sessionId: 64,
|
|
8015
|
+
agentId: 64,
|
|
8016
|
+
workspace: 224,
|
|
8017
|
+
file: 224,
|
|
8018
|
+
selection: 640
|
|
8019
|
+
};
|
|
8020
|
+
//#endregion
|
|
7533
8021
|
//#region src/schema/chat-history-constants.ts
|
|
7534
8022
|
/** Largest history page accepted by the Gateway wire contract. */
|
|
7535
8023
|
const CHAT_HISTORY_MAX_ENTRIES = 1e3;
|
|
@@ -7634,6 +8122,39 @@ const ChatInputConsumptionsSchema = Type.Array(closedObject({
|
|
|
7634
8122
|
}),
|
|
7635
8123
|
consumedByEventId: NonEmptyString
|
|
7636
8124
|
}), { maxItems: 50 });
|
|
8125
|
+
const AgentActivityItemSchema = closedObject({
|
|
8126
|
+
itemId: NonEmptyString,
|
|
8127
|
+
phase: Type.Union([
|
|
8128
|
+
Type.Literal("start"),
|
|
8129
|
+
Type.Literal("update"),
|
|
8130
|
+
Type.Literal("end")
|
|
8131
|
+
]),
|
|
8132
|
+
kind: Type.String(),
|
|
8133
|
+
title: Type.String(),
|
|
8134
|
+
status: Type.Optional(Type.Union([
|
|
8135
|
+
Type.Literal("running"),
|
|
8136
|
+
Type.Literal("completed"),
|
|
8137
|
+
Type.Literal("failed"),
|
|
8138
|
+
Type.Literal("blocked")
|
|
8139
|
+
])),
|
|
8140
|
+
name: Type.Optional(Type.String()),
|
|
8141
|
+
meta: Type.Optional(Type.String()),
|
|
8142
|
+
commandBearing: Type.Optional(Type.Boolean()),
|
|
8143
|
+
toolCallId: Type.Optional(Type.String()),
|
|
8144
|
+
startedAt: Type.Optional(Type.Number()),
|
|
8145
|
+
endedAt: Type.Optional(Type.Number()),
|
|
8146
|
+
error: Type.Optional(Type.String()),
|
|
8147
|
+
summary: Type.Optional(Type.String()),
|
|
8148
|
+
progressText: Type.Optional(Type.String()),
|
|
8149
|
+
suppressChannelProgress: Type.Optional(Type.Boolean()),
|
|
8150
|
+
hideFromChannelProgress: Type.Optional(Type.Boolean()),
|
|
8151
|
+
approvalId: Type.Optional(Type.String()),
|
|
8152
|
+
approvalSlug: Type.Optional(Type.String())
|
|
8153
|
+
});
|
|
8154
|
+
const ChatHistoryActivitySchema = closedObject({
|
|
8155
|
+
messageId: NonEmptyString,
|
|
8156
|
+
items: Type.Array(AgentActivityItemSchema)
|
|
8157
|
+
});
|
|
7637
8158
|
/**
|
|
7638
8159
|
* Bounded forward catch-up response. Clients replay `messages` as `session.message`
|
|
7639
8160
|
* payloads. There is no continuation loop: more than 200 raw events or the byte
|
|
@@ -7642,6 +8163,7 @@ const ChatInputConsumptionsSchema = Type.Array(closedObject({
|
|
|
7642
8163
|
const ChatHistoryDeltaResultSchema = closedObject({
|
|
7643
8164
|
kind: Type.Literal("delta"),
|
|
7644
8165
|
messages: Type.Array(Type.Unknown()),
|
|
8166
|
+
activity: Type.Optional(Type.Array(ChatHistoryActivitySchema)),
|
|
7645
8167
|
deltaCursor: Type.String(),
|
|
7646
8168
|
sessionInfo: Type.Unknown(),
|
|
7647
8169
|
agentsList: Type.Optional(Type.Unknown()),
|
|
@@ -7724,6 +8246,7 @@ const ChatAttachmentSchema = Type.Object({
|
|
|
7724
8246
|
type: Type.Optional(Type.String()),
|
|
7725
8247
|
mimeType: Type.Optional(Type.String()),
|
|
7726
8248
|
fileName: Type.Optional(Type.String()),
|
|
8249
|
+
origin: Type.Optional(Type.Union([Type.Literal("paste"), Type.Literal("file")])),
|
|
7727
8250
|
content: Type.Optional(Type.Unknown()),
|
|
7728
8251
|
sizeBytes: Type.Optional(Type.Number()),
|
|
7729
8252
|
durationMs: Type.Optional(Type.Number()),
|
|
@@ -7748,6 +8271,19 @@ const ChatSendIntentSchema = closedObject({
|
|
|
7748
8271
|
version: Type.Literal(1),
|
|
7749
8272
|
issuedAtMs: Type.Integer({ minimum: 0 })
|
|
7750
8273
|
});
|
|
8274
|
+
const ChatWorkContextSchema = closedObject({
|
|
8275
|
+
page: Type.String({
|
|
8276
|
+
minLength: 1,
|
|
8277
|
+
maxLength: CHAT_WORK_CONTEXT_LIMITS.page
|
|
8278
|
+
}),
|
|
8279
|
+
title: Type.Optional(Type.String({ maxLength: CHAT_WORK_CONTEXT_LIMITS.title })),
|
|
8280
|
+
sessionKey: Type.Optional(Type.String({ maxLength: CHAT_WORK_CONTEXT_LIMITS.sessionKey })),
|
|
8281
|
+
sessionId: Type.Optional(Type.String({ maxLength: CHAT_WORK_CONTEXT_LIMITS.sessionId })),
|
|
8282
|
+
agentId: Type.Optional(Type.String({ maxLength: CHAT_WORK_CONTEXT_LIMITS.agentId })),
|
|
8283
|
+
workspace: Type.Optional(Type.String({ maxLength: CHAT_WORK_CONTEXT_LIMITS.workspace })),
|
|
8284
|
+
file: Type.Optional(Type.String({ maxLength: CHAT_WORK_CONTEXT_LIMITS.file })),
|
|
8285
|
+
selection: Type.Optional(Type.String({ maxLength: CHAT_WORK_CONTEXT_LIMITS.selection }))
|
|
8286
|
+
});
|
|
7751
8287
|
/** User-to-agent send request; idempotency key lets clients safely retry transport failures. */
|
|
7752
8288
|
const ChatSendParamsSchema = closedObject({
|
|
7753
8289
|
sessionKey: ChatSendSessionKeyString,
|
|
@@ -7755,6 +8291,7 @@ const ChatSendParamsSchema = closedObject({
|
|
|
7755
8291
|
sessionId: Type.Optional(NonEmptyString),
|
|
7756
8292
|
message: Type.String(),
|
|
7757
8293
|
mentions: Type.Optional(HumanMentionsSchema),
|
|
8294
|
+
workContext: Type.Optional(ChatWorkContextSchema),
|
|
7758
8295
|
intent: Type.Optional(ChatSendIntentSchema),
|
|
7759
8296
|
thinking: Type.Optional(Type.String()),
|
|
7760
8297
|
fastMode: Type.Optional(Type.Union([Type.Boolean(), Type.Literal("auto")])),
|
|
@@ -7913,6 +8450,26 @@ const ChatEventSchema = Type.Union([
|
|
|
7913
8450
|
ChatErrorEventSchema
|
|
7914
8451
|
]);
|
|
7915
8452
|
//#endregion
|
|
8453
|
+
//#region src/schema/sessions-recover.ts
|
|
8454
|
+
/** Recovers one restart-tombstoned session into a fresh same-agent session. */
|
|
8455
|
+
const SessionsRecoverParamsSchema = closedObject({
|
|
8456
|
+
key: NonEmptyString,
|
|
8457
|
+
agentId: Type.Optional(NonEmptyString)
|
|
8458
|
+
});
|
|
8459
|
+
const SessionRecoveryContinuationOutcomeSchema = Type.Union([closedObject({
|
|
8460
|
+
status: Type.Literal("started"),
|
|
8461
|
+
runId: NonEmptyString
|
|
8462
|
+
}), closedObject({
|
|
8463
|
+
status: Type.Literal("rejected"),
|
|
8464
|
+
error: ErrorShapeSchema
|
|
8465
|
+
})]);
|
|
8466
|
+
const SessionsRecoverResultSchema = closedObject({
|
|
8467
|
+
ok: Type.Literal(true),
|
|
8468
|
+
key: NonEmptyString,
|
|
8469
|
+
sessionId: NonEmptyString,
|
|
8470
|
+
continuation: SessionRecoveryContinuationOutcomeSchema
|
|
8471
|
+
});
|
|
8472
|
+
//#endregion
|
|
7916
8473
|
//#region src/schema/sessions-create.ts
|
|
7917
8474
|
const SESSION_CREATE_RETRY_WINDOW_MS = 24e4;
|
|
7918
8475
|
const SESSION_CREATE_IDEMPOTENCY_RETENTION_MS = 3e5;
|
|
@@ -7987,24 +8544,13 @@ const SessionsCreateParamsSchema = closedObject({
|
|
|
7987
8544
|
}))
|
|
7988
8545
|
});
|
|
7989
8546
|
//#endregion
|
|
7990
|
-
//#region src/schema/sessions-
|
|
7991
|
-
/**
|
|
7992
|
-
const
|
|
7993
|
-
key: NonEmptyString,
|
|
7994
|
-
agentId: Type.Optional(NonEmptyString)
|
|
7995
|
-
});
|
|
7996
|
-
const SessionRecoveryContinuationOutcomeSchema = Type.Union([closedObject({
|
|
7997
|
-
status: Type.Literal("started"),
|
|
7998
|
-
runId: NonEmptyString
|
|
7999
|
-
}), closedObject({
|
|
8000
|
-
status: Type.Literal("rejected"),
|
|
8001
|
-
error: ErrorShapeSchema
|
|
8002
|
-
})]);
|
|
8003
|
-
const SessionsRecoverResultSchema = closedObject({
|
|
8004
|
-
ok: Type.Literal(true),
|
|
8547
|
+
//#region src/schema/sessions-involvement.ts
|
|
8548
|
+
/** Changes only the signed-in person's Involving me list, never session access. */
|
|
8549
|
+
const SessionsSetInvolvementParamsSchema = closedObject({
|
|
8005
8550
|
key: NonEmptyString,
|
|
8006
|
-
|
|
8007
|
-
|
|
8551
|
+
agentId: Type.Optional(NonEmptyString),
|
|
8552
|
+
expectedSessionId: NonEmptyString,
|
|
8553
|
+
hidden: Type.Boolean()
|
|
8008
8554
|
});
|
|
8009
8555
|
//#endregion
|
|
8010
8556
|
//#region src/schema/sessions-storage.ts
|
|
@@ -8143,6 +8689,10 @@ const SessionsListParamsSchema = closedObject({
|
|
|
8143
8689
|
includeUnknown: Type.Optional(Type.Boolean()),
|
|
8144
8690
|
/** Exclude subagent sessions before facets and pagination. */
|
|
8145
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()),
|
|
8146
8696
|
/** Limit agent-scoped rows to agents currently present in config. */
|
|
8147
8697
|
configuredAgentsOnly: Type.Optional(Type.Boolean()),
|
|
8148
8698
|
/**
|
|
@@ -8293,6 +8843,9 @@ const SessionsPatchMutationProperties = {
|
|
|
8293
8843
|
execAsk: Type.Optional(Type.Union([NonEmptyString, Type.Null()])),
|
|
8294
8844
|
execNode: Type.Optional(Type.Union([NonEmptyString, Type.Null()])),
|
|
8295
8845
|
permissionMode: Type.Optional(Type.Union([SessionPermissionModeSchema, Type.Null()])),
|
|
8846
|
+
/** Null restores configured containment; required session isolation cannot be relaxed. */
|
|
8847
|
+
sandboxMode: Type.Optional(Type.Union([Type.Literal("off"), Type.Null()])),
|
|
8848
|
+
nativeRuntimeConsent: Type.Optional(Type.Union([NonEmptyString, Type.Null()])),
|
|
8296
8849
|
model: Type.Optional(Type.Union([NonEmptyString, Type.Null()])),
|
|
8297
8850
|
/** Explicit runtime for the selected model; null follows configured routing. */
|
|
8298
8851
|
agentRuntime: Type.Optional(Type.Union([NonEmptyString, Type.Null()])),
|
|
@@ -8319,6 +8872,8 @@ const SessionsPatchParamsSchema = closedObject({
|
|
|
8319
8872
|
expectedSessionId: Type.Optional(NonEmptyString),
|
|
8320
8873
|
expectedLifecycleRevision: Type.Optional(NonEmptyString),
|
|
8321
8874
|
expectedPermissionMode: Type.Optional(Type.Union([SessionPermissionModeSchema, Type.Null()])),
|
|
8875
|
+
expectedSandboxMode: Type.Optional(Type.Union([Type.Literal("off"), Type.Null()])),
|
|
8876
|
+
expectedNativeRuntimeConsent: Type.Optional(Type.Union([NonEmptyString, Type.Null()])),
|
|
8322
8877
|
expectedToolOverrides: Type.Optional(Type.Union([SessionToolOverridesSchema, Type.Null()], { description: "Replace toolOverrides only when the current sparse overlay still matches this value; null asserts no overlay." })),
|
|
8323
8878
|
expectedMarkedUnreadAt: ExpectedMarkedUnreadAt,
|
|
8324
8879
|
...SessionsPatchMutationProperties
|
|
@@ -8331,7 +8886,10 @@ const SessionsPatchManyTargetSchema = closedObject({
|
|
|
8331
8886
|
key: NonEmptyString,
|
|
8332
8887
|
agentId: Type.Optional(NonEmptyString),
|
|
8333
8888
|
expectedSessionId: Type.Optional(NonEmptyString),
|
|
8334
|
-
expectedLifecycleRevision: Type.Optional(NonEmptyString)
|
|
8889
|
+
expectedLifecycleRevision: Type.Optional(NonEmptyString),
|
|
8890
|
+
expectedSandboxMode: Type.Optional(Type.Union([Type.Literal("off"), Type.Null()])),
|
|
8891
|
+
expectedPermissionMode: Type.Optional(Type.Union([SessionPermissionModeSchema, Type.Null()])),
|
|
8892
|
+
expectedNativeRuntimeConsent: Type.Optional(Type.Union([NonEmptyString, Type.Null()]))
|
|
8335
8893
|
});
|
|
8336
8894
|
const SessionsPatchManyParamsSchema = closedObject({
|
|
8337
8895
|
targets: Type.Array(SessionsPatchManyTargetSchema, {
|
|
@@ -8353,6 +8911,75 @@ const SessionsPatchManyResultSchema = closedObject({ outcomes: Type.Array(Type.U
|
|
|
8353
8911
|
error: ErrorShapeSchema
|
|
8354
8912
|
})])) });
|
|
8355
8913
|
//#endregion
|
|
8914
|
+
//#region src/schema/sessions-search.ts
|
|
8915
|
+
/** Searches explicit agent keys, or the complete visible roster selected by scope. */
|
|
8916
|
+
const SessionsSearchParamsSchema = Object.assign(closedObject({
|
|
8917
|
+
agentId: Type.Optional(NonEmptyString),
|
|
8918
|
+
sessionKeys: Type.Optional(Type.Array(NonEmptyString, {
|
|
8919
|
+
minItems: 1,
|
|
8920
|
+
maxItems: 200
|
|
8921
|
+
})),
|
|
8922
|
+
/** Search the complete visible roster selected by these membership filters. */
|
|
8923
|
+
scope: Type.Optional(closedObject(Type.Pick(SessionsListParamsSchema, [
|
|
8924
|
+
"activeMinutes",
|
|
8925
|
+
"activeOnly",
|
|
8926
|
+
"requireLastInteraction",
|
|
8927
|
+
"sortBy",
|
|
8928
|
+
"includeGlobal",
|
|
8929
|
+
"includeUnknown",
|
|
8930
|
+
"excludeSubagents",
|
|
8931
|
+
"excludeCron",
|
|
8932
|
+
"excludeSystem",
|
|
8933
|
+
"configuredAgentsOnly",
|
|
8934
|
+
"label",
|
|
8935
|
+
"projectId",
|
|
8936
|
+
"workspaceDir",
|
|
8937
|
+
"group",
|
|
8938
|
+
"pinned",
|
|
8939
|
+
"boardFace",
|
|
8940
|
+
"hasBoard",
|
|
8941
|
+
"creatorId",
|
|
8942
|
+
"ownerId",
|
|
8943
|
+
"involvingMe",
|
|
8944
|
+
"profileRelation",
|
|
8945
|
+
"involvingProfileId",
|
|
8946
|
+
"spawnedBy",
|
|
8947
|
+
"agentId",
|
|
8948
|
+
"search",
|
|
8949
|
+
"archived"
|
|
8950
|
+
]).properties)),
|
|
8951
|
+
query: Type.String({
|
|
8952
|
+
minLength: 1,
|
|
8953
|
+
maxLength: 4096
|
|
8954
|
+
}),
|
|
8955
|
+
limit: Type.Optional(Type.Integer({
|
|
8956
|
+
minimum: 1,
|
|
8957
|
+
maximum: 25
|
|
8958
|
+
}))
|
|
8959
|
+
}), { not: {
|
|
8960
|
+
required: ["scope"],
|
|
8961
|
+
anyOf: [{ required: ["agentId"] }, { required: ["sessionKeys"] }]
|
|
8962
|
+
} });
|
|
8963
|
+
/** One full-text session transcript match with follow-up provenance. */
|
|
8964
|
+
const SessionsSearchHitSchema = closedObject({
|
|
8965
|
+
sessionKey: NonEmptyString,
|
|
8966
|
+
sessionId: NonEmptyString,
|
|
8967
|
+
messageId: NonEmptyString,
|
|
8968
|
+
role: Type.Union([Type.Literal("user"), Type.Literal("assistant")]),
|
|
8969
|
+
timestamp: Type.Integer({ minimum: 0 }),
|
|
8970
|
+
snippet: Type.String(),
|
|
8971
|
+
score: Type.Number()
|
|
8972
|
+
});
|
|
8973
|
+
/** Full-text search response; indexing marks a still-running first-use reconcile. */
|
|
8974
|
+
const SessionsSearchResultSchema = closedObject({
|
|
8975
|
+
results: Type.Array(SessionsSearchHitSchema),
|
|
8976
|
+
/** Scope searches include only the visible rows referenced by returned matches. */
|
|
8977
|
+
sessions: Type.Optional(Type.Array(SessionRowSchema, { maxItems: 25 })),
|
|
8978
|
+
indexing: Type.Optional(Type.Boolean()),
|
|
8979
|
+
archivedTranscriptsExcluded: Type.Optional(Type.Integer({ minimum: 0 })),
|
|
8980
|
+
truncated: Type.Optional(Type.Boolean())
|
|
8981
|
+
});
|
|
8982
|
+
//#endregion
|
|
8356
8983
|
//#region src/schema/sessions.ts
|
|
8357
8984
|
const SESSION_OBSERVER_HEALTH_VALUES = [
|
|
8358
8985
|
"on-track",
|
|
@@ -8449,16 +9076,9 @@ const SessionsCompanionResetResultSchema = closedObject({ ok: Type.Literal(true)
|
|
|
8449
9076
|
* Session protocol schemas.
|
|
8450
9077
|
*
|
|
8451
9078
|
* These requests and results cover transcript discovery, lifecycle control,
|
|
8452
|
-
* compaction
|
|
9079
|
+
* compaction, per-session plugin state, and usage reporting. The
|
|
8453
9080
|
* schemas are shared by dashboard, CLI, ACP, and gateway RPC callers.
|
|
8454
9081
|
*/
|
|
8455
|
-
/** Reason a compaction checkpoint was created. */
|
|
8456
|
-
const SessionCompactionCheckpointReasonSchema = Type.Union([
|
|
8457
|
-
Type.Literal("manual"),
|
|
8458
|
-
Type.Literal("auto-threshold"),
|
|
8459
|
-
Type.Literal("overflow-retry"),
|
|
8460
|
-
Type.Literal("timeout-retry")
|
|
8461
|
-
]);
|
|
8462
9082
|
/** Start/end event emitted while a session compaction operation runs. */
|
|
8463
9083
|
const SessionOperationEventSchema = closedObject({
|
|
8464
9084
|
operationId: NonEmptyString,
|
|
@@ -8470,28 +9090,6 @@ const SessionOperationEventSchema = closedObject({
|
|
|
8470
9090
|
completed: Type.Optional(Type.Boolean()),
|
|
8471
9091
|
reason: Type.Optional(Type.String())
|
|
8472
9092
|
});
|
|
8473
|
-
/** Reference to the transcript location before or after compaction. */
|
|
8474
|
-
const SessionCompactionTranscriptReferenceSchema = closedObject({
|
|
8475
|
-
sessionId: NonEmptyString,
|
|
8476
|
-
sessionFile: Type.Optional(NonEmptyString),
|
|
8477
|
-
leafId: Type.Optional(NonEmptyString),
|
|
8478
|
-
entryId: Type.Optional(NonEmptyString)
|
|
8479
|
-
});
|
|
8480
|
-
/** Stored compaction checkpoint metadata for branching or restoring a session. */
|
|
8481
|
-
const SessionCompactionCheckpointSchema = closedObject({
|
|
8482
|
-
checkpointId: NonEmptyString,
|
|
8483
|
-
sessionKey: NonEmptyString,
|
|
8484
|
-
sessionId: NonEmptyString,
|
|
8485
|
-
createdAt: Type.Integer({ minimum: 0 }),
|
|
8486
|
-
reason: SessionCompactionCheckpointReasonSchema,
|
|
8487
|
-
tokensBefore: Type.Optional(Type.Integer({ minimum: 0 })),
|
|
8488
|
-
tokensAfter: Type.Optional(Type.Integer({ minimum: 0 })),
|
|
8489
|
-
tokensVersion: Type.Optional(Type.Literal(1)),
|
|
8490
|
-
summary: Type.Optional(Type.String()),
|
|
8491
|
-
firstKeptEntryId: Type.Optional(NonEmptyString),
|
|
8492
|
-
preCompaction: SessionCompactionTranscriptReferenceSchema,
|
|
8493
|
-
postCompaction: SessionCompactionTranscriptReferenceSchema
|
|
8494
|
-
});
|
|
8495
9093
|
/** Session file grouping used by the Control UI session workspace rail. */
|
|
8496
9094
|
const SessionFileKindSchema = Type.Union([Type.Literal("modified"), Type.Literal("read")]);
|
|
8497
9095
|
/** Session relevance marker for browser entries. */
|
|
@@ -8660,39 +9258,6 @@ const SessionsDiffResultSchema = closedObject({
|
|
|
8660
9258
|
Type.Literal("workspace_stopped")
|
|
8661
9259
|
]))
|
|
8662
9260
|
});
|
|
8663
|
-
/** Searches one agent's indexed session transcripts, optionally within selected sessions. */
|
|
8664
|
-
const SessionsSearchParamsSchema = closedObject({
|
|
8665
|
-
agentId: Type.Optional(NonEmptyString),
|
|
8666
|
-
sessionKeys: Type.Optional(Type.Array(NonEmptyString, {
|
|
8667
|
-
minItems: 1,
|
|
8668
|
-
maxItems: 200
|
|
8669
|
-
})),
|
|
8670
|
-
query: Type.String({
|
|
8671
|
-
minLength: 1,
|
|
8672
|
-
maxLength: 4096
|
|
8673
|
-
}),
|
|
8674
|
-
limit: Type.Optional(Type.Integer({
|
|
8675
|
-
minimum: 1,
|
|
8676
|
-
maximum: 25
|
|
8677
|
-
}))
|
|
8678
|
-
});
|
|
8679
|
-
/** One full-text session transcript match with follow-up provenance. */
|
|
8680
|
-
const SessionsSearchHitSchema = closedObject({
|
|
8681
|
-
sessionKey: NonEmptyString,
|
|
8682
|
-
sessionId: NonEmptyString,
|
|
8683
|
-
messageId: NonEmptyString,
|
|
8684
|
-
role: Type.Union([Type.Literal("user"), Type.Literal("assistant")]),
|
|
8685
|
-
timestamp: Type.Integer({ minimum: 0 }),
|
|
8686
|
-
snippet: Type.String(),
|
|
8687
|
-
score: Type.Number()
|
|
8688
|
-
});
|
|
8689
|
-
/** Full-text search response; indexing marks a still-running first-use reconcile. */
|
|
8690
|
-
const SessionsSearchResultSchema = closedObject({
|
|
8691
|
-
results: Type.Array(SessionsSearchHitSchema),
|
|
8692
|
-
indexing: Type.Optional(Type.Boolean()),
|
|
8693
|
-
archivedTranscriptsExcluded: Type.Optional(Type.Integer({ minimum: 0 })),
|
|
8694
|
-
truncated: Type.Optional(Type.Boolean())
|
|
8695
|
-
});
|
|
8696
9261
|
/** Repairs or removes invalid session records from the selected agent scope. */
|
|
8697
9262
|
const SessionsCleanupParamsSchema = closedObject({
|
|
8698
9263
|
agent: Type.Optional(NonEmptyString),
|
|
@@ -8861,23 +9426,6 @@ const SessionsCompactParamsSchema = closedObject({
|
|
|
8861
9426
|
agentId: Type.Optional(NonEmptyString),
|
|
8862
9427
|
maxLines: Type.Optional(Type.Integer({ minimum: 1 }))
|
|
8863
9428
|
});
|
|
8864
|
-
/** Lists compaction checkpoints for one session. */
|
|
8865
|
-
const SessionsCompactionListParamsSchema = closedObject({
|
|
8866
|
-
key: NonEmptyString,
|
|
8867
|
-
agentId: Type.Optional(NonEmptyString)
|
|
8868
|
-
});
|
|
8869
|
-
/** Creates a new branch from a compaction checkpoint. */
|
|
8870
|
-
const SessionsCompactionBranchParamsSchema = closedObject({
|
|
8871
|
-
key: NonEmptyString,
|
|
8872
|
-
agentId: Type.Optional(NonEmptyString),
|
|
8873
|
-
checkpointId: NonEmptyString
|
|
8874
|
-
});
|
|
8875
|
-
/** Restores an existing session to a compaction checkpoint. */
|
|
8876
|
-
const SessionsCompactionRestoreParamsSchema = closedObject({
|
|
8877
|
-
key: NonEmptyString,
|
|
8878
|
-
agentId: Type.Optional(NonEmptyString),
|
|
8879
|
-
checkpointId: NonEmptyString
|
|
8880
|
-
});
|
|
8881
9429
|
/** Repoints a session to the active-path state before one persisted user message. */
|
|
8882
9430
|
const SessionsRewindParamsSchema = closedObject({
|
|
8883
9431
|
sessionKey: NonEmptyString,
|
|
@@ -8923,35 +9471,6 @@ const SessionsBranchesSwitchParamsSchema = closedObject({
|
|
|
8923
9471
|
leafEntryId: NonEmptyString
|
|
8924
9472
|
});
|
|
8925
9473
|
const SessionsBranchesSwitchResultSchema = closedObject({});
|
|
8926
|
-
/** List response for session compaction checkpoints. */
|
|
8927
|
-
const SessionsCompactionListResultSchema = closedObject({
|
|
8928
|
-
ok: Type.Literal(true),
|
|
8929
|
-
key: NonEmptyString,
|
|
8930
|
-
checkpoints: Type.Array(SessionCompactionCheckpointSchema)
|
|
8931
|
-
});
|
|
8932
|
-
/** Branch response with the newly created session key and entry metadata. */
|
|
8933
|
-
const SessionsCompactionBranchResultSchema = closedObject({
|
|
8934
|
-
ok: Type.Literal(true),
|
|
8935
|
-
sourceKey: NonEmptyString,
|
|
8936
|
-
key: NonEmptyString,
|
|
8937
|
-
sessionId: NonEmptyString,
|
|
8938
|
-
checkpoint: SessionCompactionCheckpointSchema,
|
|
8939
|
-
entry: Type.Object({
|
|
8940
|
-
sessionId: NonEmptyString,
|
|
8941
|
-
updatedAt: Type.Integer({ minimum: 0 })
|
|
8942
|
-
}, { additionalProperties: true })
|
|
8943
|
-
});
|
|
8944
|
-
/** Restore response with updated session entry metadata. */
|
|
8945
|
-
const SessionsCompactionRestoreResultSchema = closedObject({
|
|
8946
|
-
ok: Type.Literal(true),
|
|
8947
|
-
key: NonEmptyString,
|
|
8948
|
-
sessionId: NonEmptyString,
|
|
8949
|
-
checkpoint: SessionCompactionCheckpointSchema,
|
|
8950
|
-
entry: Type.Object({
|
|
8951
|
-
sessionId: NonEmptyString,
|
|
8952
|
-
updatedAt: Type.Integer({ minimum: 0 })
|
|
8953
|
-
}, { additionalProperties: true })
|
|
8954
|
-
});
|
|
8955
9474
|
/** Usage report query across one session, one agent, or all agent sessions. */
|
|
8956
9475
|
const SessionsUsageParamsSchema = closedObject({
|
|
8957
9476
|
/** Specific session key to analyze; if omitted returns sessions for the effective agent. */
|
|
@@ -8960,6 +9479,8 @@ const SessionsUsageParamsSchema = closedObject({
|
|
|
8960
9479
|
agentId: Type.Optional(NonEmptyString),
|
|
8961
9480
|
/** Explicit all-agent scope for list-style usage queries. */
|
|
8962
9481
|
agentScope: Type.Optional(Type.Literal("all")),
|
|
9482
|
+
/** Opaque creator identity returned by sessions.usage; filters before the row limit. */
|
|
9483
|
+
creatorKey: Type.Optional(NonEmptyString),
|
|
8963
9484
|
/** Start date for range filter (YYYY-MM-DD). */
|
|
8964
9485
|
startDate: Type.Optional(Type.String({ pattern: "^\\d{4}-\\d{2}-\\d{2}$" })),
|
|
8965
9486
|
/** End date for range filter (YYYY-MM-DD). */
|
|
@@ -9316,6 +9837,7 @@ const TasksHistoryParamsSchema = closedObject({
|
|
|
9316
9837
|
const TasksHistoryResultSchema = closedObject({
|
|
9317
9838
|
/** Stable messageId or __openclaw.id anchors refreshes; entry IDs can have sibling rows. */
|
|
9318
9839
|
messages: Type.Array(Type.Unknown()),
|
|
9840
|
+
activity: Type.Optional(Type.Array(ChatHistoryActivitySchema)),
|
|
9319
9841
|
nextCursor: Type.Optional(Type.String({ maxLength: 8192 }))
|
|
9320
9842
|
});
|
|
9321
9843
|
/** Cancel request for one task id with optional operator reason. */
|
|
@@ -10072,7 +10594,12 @@ const ArtifactsGetParamsSchema = ArtifactGetParamsSchema;
|
|
|
10072
10594
|
/** Get response containing one artifact summary. */
|
|
10073
10595
|
const ArtifactsGetResultSchema = closedObject({ artifact: ArtifactSummarySchema });
|
|
10074
10596
|
/** Download request payload for one artifact. */
|
|
10075
|
-
const ArtifactsDownloadParamsSchema =
|
|
10597
|
+
const ArtifactsDownloadParamsSchema = closedObject({
|
|
10598
|
+
...ArtifactQueryParamsProperties,
|
|
10599
|
+
artifactId: NonEmptyString,
|
|
10600
|
+
/** Opt in only when the client can reach the Gateway's HTTP(S) media routes. */
|
|
10601
|
+
transport: Type.Optional(Type.Literal("http"))
|
|
10602
|
+
});
|
|
10076
10603
|
/** Download response, either inline base64 bytes, URL, or metadata for unsupported modes. */
|
|
10077
10604
|
const ArtifactsDownloadResultSchema = closedObject({
|
|
10078
10605
|
artifact: ArtifactSummarySchema,
|
|
@@ -11676,6 +12203,10 @@ const CommandsListResultSchema = closedObject({ commands: Type.Array(CommandEntr
|
|
|
11676
12203
|
const SystemAgentWizardCancelSchema = closedObject({
|
|
11677
12204
|
/** The visible step this action belongs to; stale controls must not affect a newer step. */
|
|
11678
12205
|
stepId: NonEmptyString });
|
|
12206
|
+
const PluginCapabilityNamesSchema = Type.Optional(Type.Array(Type.String({
|
|
12207
|
+
minLength: 1,
|
|
12208
|
+
maxLength: 128
|
|
12209
|
+
}), { maxItems: 8 }));
|
|
11679
12210
|
/**
|
|
11680
12211
|
* OpenClaw chat lets clients (macOS app onboarding, future UIs) hold the
|
|
11681
12212
|
* setup/repair conversation over the gateway. The gateway live-tests the
|
|
@@ -11712,6 +12243,15 @@ const SystemAgentChatParamsSchema = closedObject({
|
|
|
11712
12243
|
maxLength: 96
|
|
11713
12244
|
}),
|
|
11714
12245
|
installed: Type.Optional(Type.Boolean()),
|
|
12246
|
+
declared: Type.Optional(closedObject({
|
|
12247
|
+
tools: PluginCapabilityNamesSchema,
|
|
12248
|
+
providers: PluginCapabilityNamesSchema,
|
|
12249
|
+
channels: PluginCapabilityNamesSchema,
|
|
12250
|
+
contracts: PluginCapabilityNamesSchema,
|
|
12251
|
+
skills: PluginCapabilityNamesSchema,
|
|
12252
|
+
mcpServers: PluginCapabilityNamesSchema,
|
|
12253
|
+
incomplete: Type.Optional(Type.Boolean())
|
|
12254
|
+
})),
|
|
11715
12255
|
setting: Type.Optional(closedObject({
|
|
11716
12256
|
path: Type.Array(Type.String({
|
|
11717
12257
|
minLength: 1,
|
|
@@ -11765,6 +12305,8 @@ const SystemAgentChatQuestionSchema = closedObject({
|
|
|
11765
12305
|
const SystemAgentChatResultSchema = closedObject({
|
|
11766
12306
|
sessionId: NonEmptyString,
|
|
11767
12307
|
reply: NonEmptyString,
|
|
12308
|
+
/** Passive caretaker welcome that a purpose-specific view may replace. Notices stay visible. */
|
|
12309
|
+
optionalWelcome: Type.Optional(Type.Boolean()),
|
|
11768
12310
|
/** The next reply is a hosted-wizard secret and clients must mask its input/echo. */
|
|
11769
12311
|
sensitive: Type.Optional(Type.Boolean()),
|
|
11770
12312
|
/** The hosted wizard will consume the next message as its current step answer. */
|
|
@@ -13475,6 +14017,7 @@ const NodePresenceActivityPayloadSchema = Type.Union([closedObject({
|
|
|
13475
14017
|
minimum: 0,
|
|
13476
14018
|
maximum: 2592e3
|
|
13477
14019
|
}),
|
|
14020
|
+
source: Type.Optional(Type.Union([Type.Literal("app"), Type.Literal("system")])),
|
|
13478
14021
|
saturated: Type.Optional(Type.Boolean())
|
|
13479
14022
|
}), closedObject({ action: Type.Literal("clear") })]);
|
|
13480
14023
|
const NodeLoadAverageSchema = Type.Number({
|
|
@@ -14541,7 +15084,9 @@ const TaskSuggestionsAcceptParamsSchema = closedObject({
|
|
|
14541
15084
|
cloudProfileId: Type.Optional(Type.String({
|
|
14542
15085
|
minLength: 1,
|
|
14543
15086
|
maxLength: 128
|
|
14544
|
-
}))
|
|
15087
|
+
})),
|
|
15088
|
+
/** Explicit repository correction when starting a new worktree. */
|
|
15089
|
+
cwd: Type.Optional(TaskCwdSchema)
|
|
14545
15090
|
});
|
|
14546
15091
|
const TaskSuggestionsAcceptResultSchema = closedObject({
|
|
14547
15092
|
taskId: TaskIdSchema,
|
|
@@ -14680,9 +15225,11 @@ const PortalSummarySchema = closedObject({
|
|
|
14680
15225
|
url: Type.Optional(NonEmptyString),
|
|
14681
15226
|
...PortalSummaryMetadataFields
|
|
14682
15227
|
});
|
|
14683
|
-
const
|
|
15228
|
+
const PortalEnvironmentFields = { environmentId: Type.Optional(NonEmptyString) };
|
|
15229
|
+
const PortalListParamsSchema = closedObject({ ...PortalEnvironmentFields });
|
|
14684
15230
|
const PortalListResultSchema = closedObject({ portals: Type.Array(PortalSummarySchema) });
|
|
14685
15231
|
const PortalOpenParamsSchema = closedObject({
|
|
15232
|
+
...PortalEnvironmentFields,
|
|
14686
15233
|
port: Type.Integer({
|
|
14687
15234
|
minimum: 1,
|
|
14688
15235
|
maximum: 65535
|
|
@@ -14697,7 +15244,10 @@ const PortalOpenResultSchema = closedObject({
|
|
|
14697
15244
|
url: NonEmptyString,
|
|
14698
15245
|
...PortalSummaryMetadataFields
|
|
14699
15246
|
});
|
|
14700
|
-
const PortalCloseParamsSchema = closedObject({
|
|
15247
|
+
const PortalCloseParamsSchema = closedObject({
|
|
15248
|
+
id: NonEmptyString,
|
|
15249
|
+
...PortalEnvironmentFields
|
|
15250
|
+
});
|
|
14701
15251
|
const PortalCloseResultSchema = closedObject({ closed: Type.Boolean() });
|
|
14702
15252
|
const PortalChangedEventSchema = closedObject({ portals: Type.Array(PortalSummarySchema) });
|
|
14703
15253
|
//#endregion
|
|
@@ -14838,4 +15388,4 @@ const ToolsCatalogResultSchema = closedObject({
|
|
|
14838
15388
|
groups: Type.Array(ToolCatalogGroupSchema)
|
|
14839
15389
|
});
|
|
14840
15390
|
//#endregion
|
|
14841
|
-
export { SessionDiscussionStateSchema as $, SecretRefSchema as $S, GitHubPublicationSelectionSchema as $_, AgentIdentityResultSchema as $a, ToolsEffectiveResultSchema as $b, SessionsSearchHitSchema as $c, BoardActionParamsSchema as $d, TalkVoiceGetParamsSchema as $f, PluginRuntimeStatusSchema as $g, TerminalInputParamsSchema as $h, TalkSessionCancelOutputResultSchema as $i, ChatToolTitlesParamsSchema as $l, WorkerComputerParamsSchema as $m, DeviceTokenRotateResultSchema as $n, SessionSuggestionActionSchema as $o, validateWorkerInferenceStartParams as $p, SystemAgentSetupAuthStartParamsSchema as $r, SessionsAssignOwnerParamsSchema as $s, WebPushVapidPublicKeyParamsSchema as $t, ConfigSetParamsSchema as $u, UsersPrefsSetParamsSchema as $v, SecretsStoreSetParamsSchema as $x, ModelsAuthRefreshParamsSchema as $y, TaskSuggestionResolutionSchema as A, CronJobNotFoundErrorDetailsSchema as AS, PluginsSessionActionResultSchema as A_, AuditActivityAgentRunV1Schema as Aa, SkillsProposalRequestRevisionParamsSchema as Ab, SessionsFilesSetResultSchema as Ac, TranscriptsListParamsSchema as Ad, BoardWidgetDeclaredSchema as Af, MAX_PLUGIN_RELOAD_TARGETS as Ag, ExpiredApprovalSnapshotSchema as Ah, ChannelsPairingListResultSchema as Ai, ChatAbortedEventSchema as Al, WorkerLiveEventParamsSchema as Am, FsListDirParamsSchema as An, ProjectsAddParamsSchema as Ao, validateSkillsLibrarySaveParams as Ap, CronListParamsSchema as Ar, SESSION_OBSERVER_HEALTH_VALUES as As, QuestionRequestQuestionSchema as At, GatewaySuspendHandoffParamsSchema as Au, UsersGitHubAuthorizeCancelParamsSchema as Av, SessionVisibilitySchema as Ax, AgentsDeleteResultSchema as Ay, SystemInfoParamsSchema as B, UnknownAgentIdErrorDetailsSchema as BS, PluginsCredentialsInspectParamsSchema as B_, ArtifactsDownloadResultSchema as Ba, SkillsSkillCardParamsSchema as Bb, SessionsGroupsRenameParamsSchema as Bc, ProgressCardPutParamsSchema as Bd, BoardWidgetPluginKindSchema as Bf, PluginDiscoveryCatalogFactsSchema as Bg, SessionApprovalReplaySchema as Bh, TalkClientCreateParamsSchema as Bi, ChatHistoryResetResultSchema as Bl, WorkerSessionsSendParamsSchema as Bm, DevicePairRejectParamsSchema as Bn, RemoteProjectSchema as Bo, WORKER_INFERENCE_MAX_OUTPUT_TOKENS as Bp, CronScratchSetResultSchema as Br, SessionFileContentEncodingSchema as Bs, QuestionWaitAnswerParamsSchema as Bt, GatewaySuspendStatusParamsSchema as Bu, UsersLinkAuthProfileParamsSchema as Bv, SessionPeerKindSchema as Bx, AgentsUpdateParamsSchema as By, PortalListResultSchema as C, WorkerExecutionModeSchema as CS, PluginsRefreshResultSchema as C_, DecisionReceiptV1Schema as Ca, SkillsProposalEvaluateParamsSchema as Cb, SessionsFilesGetParamsSchema as Cc, TRANSCRIPTS_RESULT_MAX_BYTES as Cd, BoardTabsReorderOpSchema as Cf, SessionsCatalogReadParamsSchema as Cg, ApprovalResolveResultSchema as Ch, CommandsListResultSchema as Ci, SessionsStorageStatusResultSchema as Cl, WorkerAdmissionResponseFrameSchema as Cm, NodePresenceAliveReasonSchema as Cn, ProjectCheckoutSchema as Co, SkillsLibrarySaveParamsSchema as Cp, CronAddResultSchema as Cr, SessionPublicShareSetResultSchema as Cs, QuestionGetParamsSchema as Ct, ResponseFrameSchema as Cu, UsersAuthConnectCatalogParamsSchema as Cv, SessionEntryArchiveReasonSchema as Cx, WizardStepSchema as Cy, PluginApprovalRequestParamsSchema as D, WorkerSlotSummarySchema as DS, PluginsSearchResultSchema as D_, AUDIT_ACTIVITY_KINDS as Da, SkillsProposalInspectParamsSchema as Db, SessionsFilesRevealParamsSchema as Dc, TranscriptsExportResultSchema as Dd, BoardWidgetAppViewParamsSchema as Df, CapabilityConsentErrorDetailsSchema as Dg, CancelledApprovalSnapshotSchema as Dh, ChannelsPairingDismissParamsSchema as Di, SESSION_CREATE_RETRY_WINDOW_MS as Dl, WorkerHeartbeatResponseFrameSchema as Dm, NODE_PRESENCE_ALIVE_REASONS as Dn, ProjectRecentSchema as Do, validateSkillsLibraryListParams as Dp, CronGetParamsSchema as Dr, SessionSharingIdentitySchema as Ds, QuestionOptionSchema as Dt, SnapshotSchema as Du, UsersAuthConnectStartResultSchema as Dv, SessionToolOverridesSchema as Dx, AgentsCreateParamsSchema as Dy, PortalSummarySchema as E, WorkerOperatingSystemSchema as ES, PluginsSearchParamsSchema as E_, AUDIT_ACTIVITY_DIRECTIONS as Ea, SkillsProposalEventsListResultSchema as Eb, SessionsFilesListResultSchema as Ec, TranscriptsExportParamsSchema as Ed, BoardViewTicketSchema as Ef, SessionsCatalogStartTerminalResultSchema as Eg, ApprovalTerminalReasonSchema as Eh, ChannelsPairingApproveResultSchema as Ei, SESSION_CREATE_IDEMPOTENCY_RETENTION_MS as El, WorkerHeartbeatRequestFrameSchema as Em, NodeSkillsUpdateParamsSchema as En, ProjectRecentRepositorySchema as Eo, validateSkillsLibraryImportParams as Ep, CronDeliverySchema as Er, SessionSharingEvidenceEventSchema as Es, QuestionListResultSchema as Et, PresenceEntrySchema as Eu, UsersAuthConnectStartParamsSchema as Ev, SessionRowSchema as Ex, AgentSummarySchema as Ey, TaskSuggestionsCreateResultSchema as F, OutboundDeliveryQueuedErrorDetailsSchema as FS, PluginsUiDescriptorsResultSchema as F_, AuditActivityOutboundMessageV1Schema as Fa, SkillsProposalsListResultSchema as Fb, SessionsGroupsDeleteParamsSchema as Fc, PROGRESS_CARD_MAX_STEP_UTF8_BYTES as Fd, BoardWidgetMcpAppContentSchema as Ff, PluginControlUiDescriptorSchema as Fg, PendingSessionApprovalEventSchema as Fh, ChannelsStopParamsSchema as Fi, ChatEventSchema as Fl, WorkerPortalParamsSchema as Fm, DesktopReleaseParamsSchema as Fn, ProjectsRegisterResultSchema as Fo, validateSkillsProposalHistoryScanParams as Fp, CronRunsParamsSchema as Fr, SessionDiffFileSchema as Fs, QuestionResolvedEventSchema as Ft, GatewaySuspendPrepareReadyResultSchema as Fu, UsersGitHubAuthorizeStartResultSchema as Fv, SESSION_PARTICIPANT_LIMIT as Fx, AgentsFilesListResultSchema as Fy, SessionsResolveCandidateSchema as G, missingScopeErrorShape as GS, SESSION_COLOR_IDS as G_, AgentsWorkspaceEntrySchema as Ga, SkillsUploadChunkParamsSchema as Gb, SessionsObserverVisibilityParamsSchema as Gc, CANVAS_DOCUMENT_PREVIEW_MAX_BYTES as Gd, BoardWidgetPutResultSchema as Gf, PluginHookGrantSchema as Gg, isWellFormedApprovalId as Gh, TalkClientToolCallResultSchema as Gi, ChatMessageGetResultSchema as Gl, WorkerTranscriptCommitErrorShapeSchema as Gm, DevicePairSetupCodeParamsSchema as Gn, TasksGetParamsSchema as Go, WorkerInferenceCancelResponseFrameSchema as Gp, SystemAgentChatHistoryTurnSchema as Gr, SessionGroupDefaultsSchema as Gs, WebPushDevicePreferencesSchema as Gt, GatewaySuspensionSchema as Gu, UsersListAuthLinksResultSchema as Gv, SecretsReloadParamsSchema as Gx, GitHubIdentityScopeSchema as Gy, SESSION_VIEWER_PRESENCE_MAX_KEYS as H, WizardNotFoundErrorDetailsSchema as HS, validatePluginsCredentialsInspectParams as H_, ArtifactsGetResultSchema as Ha, SkillsStatusParamsSchema as Hb, SessionsGroupsUpdateResultSchema as Hc, ProgressCardSchema as Hd, BoardWidgetPresentationSchema as Hf, PluginDiscoveryDetailSchema as Hg, SystemAgentApprovalPresentationSchema as Hh, TalkClientMutationResultSchema as Hi, ChatInputConsumptionsSchema as Hl, WorkerSessionsSpawnParamsSchema as Hm, DevicePairRenameParamsSchema as Hn, TaskSummarySchema as Ho, WORKER_INFERENCE_PROTOCOL_FEATURE as Hp, CronUpdateParamsSchema as Hr, SessionFileKindSchema as Hs, PushTestParamsSchema as Ht, GatewaySuspendStatusResultSchema as Hu, UsersLinkEmailParamsSchema as Hv, SecretStoreEntrySchema as Hx, AuthProbeStatusSchema as Hy, TaskSuggestionsDismissParamsSchema as I, ProjectCloneErrorDetailsSchema as IS, PluginsUninstallParamsSchema as I_, AuditActivityToolActionV1Schema as Ia, SkillsSearchParamsSchema as Ib, SessionsGroupsListParamsSchema as Ic, PROGRESS_CARD_MAX_UTF8_BYTES as Id, BoardWidgetMcpAppPutContentSchema as If, PluginControlUiDiagnosticSchema as Ig, PluginApprovalExternalResolutionSchema as Ih, TalkAgentControlResultSchema as Ii, ChatFinalEventSchema as Il, WorkerPortalResponseFrameSchema as Im, DesktopReleaseResultSchema as In, ProjectsRemoveParamsSchema as Io, validateSkillsProposalHistoryStatusParams as Ip, CronScratchGetParamsSchema as Ir, SessionDiffFileStatusSchema as Is, QuestionSchema as It, GatewaySuspendPrepareResultSchema as Iu, UsersGitHubDisconnectParamsSchema as Iv, SessionParticipantIdentitySchema as Ix, AgentsFilesSetParamsSchema as Iy, SessionDiscussionInfoParamsSchema as J, GatewayClientIdSchema as JS, SESSION_ICON_SVG_MAX_BYTES as J_, AgentsWorkspaceGetResultSchema as Ja, SkillsWorkshopReadResultSchema as Jb, SessionsPluginPatchResultSchema as Jc, CanvasDocumentViewResultSchema as Jd, BoardWidgetResizeOpSchema as Jf, PluginInstalledComponentsSchema as Jg, TerminalAttachResultSchema as Jh, TalkConfigResultSchema as Ji, ChatRunStartupPhaseSchema as Jl, WorkerTranscriptCommitResponseFrameSchema as Jm, DevicePairSetupDeliveryUncertainEventSchema as Jn, TasksHistoryResultSchema as Jo, WorkerInferenceOptionsSchema as Jp, SystemAgentChatResultSchema as Jr, SessionObserverHealthSchema as Js, WebPushPreferencesGetParamsSchema as Jt, ConfigPatchParamsSchema as Ju, UsersListParamsSchema as Jv, SecretsResolveResultSchema as Jx, ModelCatalogProviderOutcomeSchema as Jy, SessionsResolveParamsSchema as K, CHAT_SEND_SESSION_KEY_MAX_LENGTH as KS, SESSION_ICON_GLYPH_IDS as K_, AgentsWorkspaceFileSchema as Ka, SkillsUploadCommitParamsSchema as Kb, SessionsObserverVisibilityResultSchema as Kc, CanvasDocumentPreviewParamsSchema as Kd, BoardWidgetRegisteredContentSchema as Kf, PluginInspectSourceSchema as Kg, TerminalAckResultSchema as Kh, TalkClientTranscriptParamsSchema as Ki, ChatMetadataParamsSchema as Kl, WorkerTranscriptCommitParamsSchema as Km, DevicePairSetupCodeResultSchema as Kn, TasksGetResultSchema as Ko, WorkerInferenceImageContentSchema as Kp, SystemAgentChatParamsSchema as Kr, SessionGroupSchema as Ks, WebPushNotificationCategorySchema as Kt, ConfigApplyParamsSchema as Ku, UsersListModelAccountsParamsSchema as Kv, SecretsResolveAssignmentSchema as Kx, GitHubIdentitySourceSchema as Ky, TaskSuggestionsDismissResultSchema as L, SessionWorkspaceRecoveryRequiredErrorDetailsSchema as LS, PluginsUninstallResultSchema as L_, findAuditActivityFilterConflict as La, SkillsSearchResultSchema as Lb, SessionsGroupsListResultSchema as Lc, ProgressCardChangedEventSchema as Ld, BoardWidgetMoveOpSchema as Lf, PluginControlUiModuleSchema as Lg, PluginApprovalPresentationSchema as Lh, TalkCatalogParamsSchema as Li, ChatHistoryCursorResultSchema as Ll, WorkerProviderReplayStateSchema as Lm, DesktopSourceSchema as Ln, ProjectsRemoveResultSchema as Lo, ComputerInvokeParamsSchema as Lp, CronScratchGetResultSchema as Lr, SessionDiffScopeSchema as Ls, QuestionSecretStoreBindingSchema as Lt, GatewaySuspendResumeParamsSchema as Lu, UsersGitHubDisconnectResultSchema as Lv, SessionParticipantSchema as Lx, AgentsFilesSetResultSchema as Ly, TaskSuggestionsAcceptParamsSchema as M, GitHubPublicationSelectionRejectedErrorDetailsSchema as MS, PluginsSetEnabledParamsSchema as M_, AuditActivityInboundMessageV1Schema as Ma, SkillsProposalReviseParamsSchema as Mb, SessionsForkResultSchema as Mc, TranscriptsStatusParamsSchema as Md, BoardWidgetGrantParamsSchema as Mf, PluginCatalogEntrySchema as Mg, MessageSendApprovalScopeSchema as Mh, ChannelsStartParamsSchema as Mi, ChatAttachmentsSchema as Ml, WorkerLiveEventResponseFrameSchema as Mm, DesktopLaunchParamsSchema as Mn, ProjectsListParamsSchema as Mo, SkillsProposalHistoryScanParamsSchema as Mp, CronRemoveParamsSchema as Mr, SessionCompactionCheckpointSchema as Ms, QuestionRequestedEventSchema as Mt, GatewaySuspendPrepareBusyResultSchema as Mu, UsersGitHubAuthorizePollParamsSchema as Mv, SessionsActivitySummaryEnsureParamsSchema as Mx, AgentsFilesGetParamsSchema as My, TaskSuggestionsAcceptResultSchema as N, McpAppViewExpiredErrorDetailsSchema as NS, PluginsSetEnabledResultSchema as N_, AuditActivityListParamsSchema as Na, SkillsProposalUpdateParamsSchema as Nb, SessionsGroupsDefaultsParamsSchema as Nc, TranscriptsStatusResultSchema as Nd, BoardWidgetHeightModeSchema as Nf, PluginCatalogInstallActionSchema as Ng, PaymentApprovalScopeSchema as Nh, ChannelsStatusParamsSchema as Ni, ChatDeltaEventSchema as Nl, WorkerLiveEventResultSchema as Nm, DesktopObserveParamsSchema as Nn, ProjectsListResultSchema as No, SkillsProposalHistoryScanResultSchema as Np, CronRunLogEntrySchema as Nr, SessionCompanionExchangeSchema as Ns, QuestionResolveParamsSchema as Nt, GatewaySuspendPrepareDrainingResultSchema as Nu, UsersGitHubAuthorizePollResultSchema as Nv, SessionsActivitySummaryEnsureResultSchema as Nx, AgentsFilesGetResultSchema as Ny, PluginApprovalResolveParamsSchema as O, WorkerTunnelStatusSchema as OS, PluginsSessionActionFailureResultSchema as O_, AUDIT_ACTIVITY_MESSAGE_KIND as Oa, SkillsProposalInspectResultSchema as Ob, SessionsFilesRevealResultSchema as Oc, TranscriptsGetParamsSchema as Od, BoardWidgetAppViewResultSchema as Of, ControlUiPluginTabSchema as Og, DeniedApprovalSnapshotSchema as Oh, ChannelsPairingDismissResultSchema as Oi, SessionsCreateParamsSchema as Ol, WorkerLiveEventErrorDetailsSchema as Om, HooksStatusParamsSchema as On, ProjectRecordSchema as Oo, validateSkillsLibraryMutateParams as Op, CronJobSchema as Or, SessionVisibilitySetParamsSchema as Os, QuestionRecordSchema as Ot, StateVersionSchema as Ou, UsersAuthConnectStatusParamsSchema as Ov, SESSION_VISIBILITY_VALUES as Ox, AgentsCreateResultSchema as Oy, TaskSuggestionsCreateParamsSchema as P, MissingScopeErrorDetailsSchema as PS, PluginsUiDescriptorsParamsSchema as P_, AuditActivityListResultSchema as Pa, SkillsProposalsListParamsSchema as Pb, SessionsGroupsDefaultsResultSchema as Pc, PROGRESS_CARD_MAX_STEPS as Pd, BoardWidgetHtmlContentSchema as Pf, PluginCatalogOfficialInstallSchema as Pg, PendingApprovalSnapshotSchema as Ph, ChannelsStatusResultSchema as Pi, ChatErrorEventSchema as Pl, WorkerLiveEventSchema as Pm, DesktopObserveResultSchema as Pn, ProjectsRegisterParamsSchema as Po, SkillsProposalHistoryStatusParamsSchema as Pp, CronRunParamsSchema as Pr, SessionDiffCommitSchema as Ps, QuestionResolveResultSchema as Pt, GatewaySuspendPrepareParamsSchema as Pu, UsersGitHubAuthorizeStartParamsSchema as Pv, SESSION_EXPANDED_PARTICIPANT_LIMIT as Px, AgentsFilesListParamsSchema as Py, SessionDiscussionOpenResultSchema as Q, SecretInputSchema as QS, GitHubPublicationPublisherSchema as Q_, AgentIdentityParamsSchema as Qa, ToolsEffectiveParamsSchema as Qb, SessionsRewindResultSchema as Qc, BOARD_WIDGET_TOOL_MAX_LENGTH as Qd, TalkVoiceCompleteParamsSchema as Qf, PluginRuntimeApplicationSchema as Qg, TerminalExitEventSchema as Qh, TalkSessionCancelOutputParamsSchema as Qi, ChatStatusEventSchema as Ql, WORKER_COMPUTER_PROTOCOL_FEATURE as Qm, DeviceTokenRotateParamsSchema as Qn, TasksRecoveryResultSchema as Qo, validateWorkerInferenceEventFrame as Qp, SystemAgentSetupActivateStartResultSchema as Qr, SessionsAbortParamsSchema as Qs, WebPushUnsubscribeParamsSchema as Qt, ConfigSchemaResponseSchema as Qu, UsersPrefsGetResultSchema as Qv, SecretsStoreMutationResultSchema as Qx, ModelsAuthOrderSetParamsSchema as Qy, TaskSuggestionsListParamsSchema as R, SetupAdmissionBusyErrorDetailsSchema as RS, PluginCredentialDescriptorSchema as R_, ArtifactSummarySchema as Ra, SkillsSecurityVerdictsParamsSchema as Rb, SessionsGroupsMutationResultSchema as Rc, ProgressCardGetParamsSchema as Rd, BoardWidgetNameSchema as Rf, PluginDeclaredSurfaceSchema as Rg, PluginApprovalSeveritySchema as Rh, TalkCatalogResultSchema as Ri, ChatHistoryDeltaResultSchema as Rl, WorkerSessionToolResponseFrameSchema as Rm, DevicePairApproveParamsSchema as Rn, ProjectsSearchRemoteParamsSchema as Ro, ComputerStatusParamsSchema as Rp, CronScratchSchema as Rr, SessionFileBrowserEntrySchema as Rs, QuestionSecretStoreExistingSchema as Rt, GatewaySuspendResumeResultSchema as Ru, UsersGitHubStatusParamsSchema as Rv, SessionPersonSchema as Rx, AgentsListParamsSchema as Ry, PortalListParamsSchema as S, WorkerEnvironmentStateSchema as SS, PluginsRefreshParamsSchema as S_, DecisionReceiptDisplayV1Schema as Sa, SkillsProposalDecisionParamsSchema as Sb, SessionsDiffResultSchema as Sc, TRANSCRIPTS_PAGE_MAX as Sd, BoardTabUpdateOpSchema as Sf, SessionsCatalogListResultSchema as Sg, ApprovalResolveParamsSchema as Sh, CommandsListParamsSchema as Si, SessionsStorageParamsSchema as Sl, WorkerAdmissionHandshakeSchema as Sm, NodePresenceAlivePayloadSchema as Sn, PROJECTS_LIST_MAX_IDENTITY_PROBES as So, SkillsLibraryReadParamsSchema as Sp, CronAddParamsSchema as Sr, SessionPublicShareSetParamsSchema as Ss, QuestionAnswersSchema as St, RequestFrameSchema as Su, UsersAuthConnectCancelParamsSchema as Sv, SessionCreatedActorSchema as Sx, WizardStatusResultSchema as Sy, PortalOpenResultSchema as T, WorkerMachineOptionsSchema as TS, PluginsReloadResultSchema as T_, PrincipalRefV1Schema as Ta, SkillsProposalEventsListParamsSchema as Tb, SessionsFilesListParamsSchema as Tc, TranscriptUtteranceSchema as Td, BoardUpdateParamsSchema as Tf, SessionsCatalogStartTerminalParamsSchema as Tg, ApprovalSnapshotSchema as Th, ChannelsPairingApproveParamsSchema as Ti, SessionsRecoverResultSchema as Tl, WorkerHeartbeatParamsSchema as Tm, NodeSkillDescriptorSchema as Tn, ProjectRecentProjectSchema as To, validateSkillsLibraryActivateParams as Tp, CronDeliveryPreviewSchema as Tr, SessionSharingEventSchema as Ts, QuestionListParamsSchema as Tt, TickEventSchema as Tu, UsersAuthConnectResultSchema as Tv, SessionPermissionModeSchema as Tx, AgentOwnershipSchema as Ty, SessionsViewerPresenceSetParamsSchema as U, buildMissingScopeErrorDetails as US, lazyCompile as U_, ArtifactsListParamsSchema as Ua, SkillsUpdateParamsSchema as Ub, SessionsMessagesSubscribeParamsSchema as Uc, ProgressCardStepSchema as Ud, BoardWidgetPutContentSchema as Uf, PluginDiscoveryEntrySchema as Ug, TerminalApprovalSnapshotSchema as Uh, TalkClientSteerParamsSchema as Ui, ChatInputReceiptsSchema as Ul, WorkerSessionsSpawnResponseFrameSchema as Um, DevicePairRequestedEventSchema as Un, TasksCancelParamsSchema as Uo, WORKER_PROTOCOL_MAX_INFERENCE_PAYLOAD_BYTES as Up, SystemAgentChatHistoryParamsSchema as Ur, SessionFilePreviewKindSchema as Us, PushTestResultSchema as Ut, GatewaySuspendStatusRunningResultSchema as Uu, UsersLinkEmailResultSchema as Uv, SecretStoreEnvEntrySchema as Ux, GitHubAuthorSchema as Uy, SystemInfoResultSchema as V, UserPrefsLimitExceededErrorDetailsSchema as VS, PluginsCredentialsInspectResultSchema as V_, ArtifactsGetParamsSchema as Va, SkillsSkillCardResultSchema as Vb, SessionsGroupsUpdateParamsSchema as Vc, ProgressCardPutResultSchema as Vd, BoardWidgetPluginPropsSchema as Vf, PluginDiscoveryCategorySchema as Vg, StandingGrantApprovalScopeSchema as Vh, TalkClientCreateResultSchema as Vi, ChatInjectParamsSchema as Vl, WorkerSessionsSendResponseFrameSchema as Vm, DevicePairRemoveParamsSchema as Vn, TASKS_LIST_CURSOR_MAX_LENGTH as Vo, WORKER_INFERENCE_METHODS as Vp, CronStatusParamsSchema as Vr, SessionFileEntrySchema as Vs, QuestionWaitAnswerResultSchema as Vt, GatewaySuspendStatusReadyResultSchema as Vu, UsersLinkAuthProfileResultSchema as Vv, GitHubSetupHandleSchema as Vx, AgentsUpdateResultSchema as Vy, SessionsViewerPresenceSetResultSchema as W, errorShape as WS, SESSION_AGENT_ATTENTION_ICON_IDS as W_, ArtifactsListResultSchema as Wa, SkillsUploadBeginParamsSchema as Wb, SessionsMessagesUnsubscribeParamsSchema as Wc, ProgressCardStepStatusSchema as Wd, BoardWidgetPutParamsSchema as Wf, PluginDiscoveryLocalFactsSchema as Wg, TerminalSessionApprovalEventSchema as Wh, TalkClientToolCallParamsSchema as Wi, ChatMessageGetParamsSchema as Wl, WorkerTranscriptCommitErrorReasonSchema as Wm, DevicePairResolvedEventSchema as Wn, TasksCancelResultSchema as Wo, WorkerInferenceCancelRequestFrameSchema as Wp, SystemAgentChatHistoryResultSchema as Wr, SessionFileRelevanceSchema as Ws, WebPushDetailLevelSchema as Wt, GatewaySuspendTaskBlockerSchema as Wu, UsersListAuthLinksParamsSchema as Wv, SecretStoreSecretEntrySchema as Wx, GitHubIdentityFactsSchema as Wy, SessionDiscussionInfoSchema as X, InputProvenanceSchema as XS, normalizeSessionIconValue as X_, AgentsWorkspaceListResultSchema as Xa, ToolsEffectiveGroupSchema as Xb, SessionsResetParamsSchema as Xc, BOARD_CRON_TRIGGER_PREFIX as Xd, TALK_VOICE_CHANGE_TIMEOUT_MS as Xf, PluginOperatorGrantsSchema as Xg, TerminalDataEventSchema as Xh, TalkModeParamsSchema as Xi, ChatSendParamsSchema as Xl, WorkerTranscriptMessageSchema as Xm, DevicePairSetupStatusResultSchema as Xn, TasksListResultSchema as Xo, WorkerInferenceStartResponseFrameSchema as Xp, SystemAgentSetupActivateResultSchema as Xr, SessionOperationEventSchema as Xs, WebPushSubscribeParamsSchema as Xt, ConfigSchemaLookupResultSchema as Xu, UsersPrefsChangedEventSchema as Xv, SecretsStoreListParamsSchema as Xx, ModelRuntimeChoiceSchema as Xy, SessionDiscussionInfoResultSchema as Y, GatewayClientModeSchema as YS, normalizeSessionColorValue as Y_, AgentsWorkspaceListParamsSchema as Ya, ToolsEffectiveEntrySchema as Yb, SessionsPreviewParamsSchema as Yc, BOARD_CRON_JOB_ID_MAX_LENGTH as Yd, BoardWidgetSchema as Yf, PluginJsonValueSchema as Yg, TerminalCloseParamsSchema as Yh, TalkEventSchema as Yi, ChatSendIntentSchema as Yl, WorkerTranscriptCommitResultSchema as Ym, DevicePairSetupStatusParamsSchema as Yn, TasksListParamsSchema as Yo, WorkerInferenceStartRequestFrameSchema as Yp, SystemAgentSetupActivateParamsSchema as Yr, SessionObserverPlanProgressSchema as Ys, WebPushPreferencesSetParamsSchema as Yt, ConfigSchemaLookupParamsSchema as Yu, UsersListResultSchema as Yv, SecretsStoreDeleteParamsSchema as Yx, ModelChoiceSchema as Yy, SessionDiscussionOpenParamsSchema as Z, NonEmptyString as ZS, GitHubPublicationBodySchema as Z_, AgentEventSchema as Za, ToolsEffectiveNoticeSchema as Zb, SessionsRewindParamsSchema as Zc, BOARD_DATA_BINDING_ID_MAX_LENGTH as Zd, TalkVoiceChangeEventSchema as Zf, PluginReloadTargetSchema as Zg, TerminalEventSchema as Zh, TalkSessionAppendAudioParamsSchema as Zi, ChatStartupParamsSchema as Zl, WorkerTranscriptUserMessageSchema as Zm, DeviceTokenRevokeParamsSchema as Zn, TasksRecoveryParamsSchema as Zo, validateWorkerInferenceCancelParams as Zp, SystemAgentSetupActivateStartParamsSchema as Zr, SessionWorktreeInfoSchema as Zs, WebPushTestParamsSchema as Zt, ConfigSchemaParamsSchema as Zu, UsersPrefsGetParamsSchema as Zv, SecretsStoreListResultSchema as Zx, ModelsAuthLogoutParamsSchema as Zy, WorktreesRemoveResultSchema as _, WorkerDesktopLaunchParamsSchema as _S, PluginsInspectResultSchema as __, AuditRunIdentityUnknownV1Schema as _a, SkillsDetailResultSchema as _b, SessionsCompanionStateParamsSchema as _c, TRANSCRIPTS_LEGACY_MAX_TEXT_LENGTH as _d, BoardSnapshotSchema as _f, SessionsCatalogArchiveResultSchema as _g, ApprovalGetResultSchema as _h, COMMAND_CHOICE_VALUE_MAX_LENGTH as _i, SessionsGoalClearParamsSchema as _l, WORKER_SESSION_TOOL_MAX_TEXT_LENGTH as _m, NodePendingEnqueueParamsSchema as _n, MigrationProtocolSchemas as _o, SkillLibrarySelectionSchema as _p, ExecApprovalsNodeSetParamsSchema as _r, SessionMemberSchema as _s, SessionsMoveResultSchema as _t, ConnectParamsSchema as _u, UserProfileAuthLinkSchema as _v, ToolsGitHubStatusParamsSchema as _x, WizardNextParamsSchema as _y, ToolsCatalogResultSchema as a, USER_PREFS_PROFILE_KEY_LIMIT as aC, EnvironmentsDestroyParamsSchema as aS, PluginsCatalogCategoriesResultSchema as a_, TalkSessionSubmitToolResultParamsSchema as aa, ModelsProbeParamsSchema as ab, SessionsCleanupParamsSchema as ac, UpdateRunParamsSchema as ad, BoardCronActionParamsSchema as af, TerminalUploadParamsSchema as ag, WORKER_PUBLIC_INGRESS_PATH as ah, SystemAgentWizardCancelSchema as ai, SessionsPatchManyParamsSchema as al, WORKER_HEARTBEAT_INTERVAL_MS as am, NodeInvokeParamsSchema as an, ConversationSendParamsSchema as ao, UiCommandResultSchema as ap, ScopeUpgradeResultSchema as ar, SessionSuggestionsAddResultSchema as as, SessionMoveProfileTargetSchema as at, HumanMentionsSchema as au, SessionGitHubPublicationNeedsConfirmationSchema as av, ToolsGitHubAuthorizeIncorrectDeviceCodeResultSchema as ax, UsersSetAvatarParamsSchema as ay, PortalCloseParamsSchema as b, WorkerDesktopObserveResultSchema as bS, PluginsListParamsSchema as b_, AuditRunInspectParamsSchema as ba, SkillsProposalApplyResultSchema as bb, SessionsDescribeParamsSchema as bc, TRANSCRIPTS_LIST_MAX as bd, BoardTabIdSchema as bf, SessionsCatalogHostEventSchema as bg, ApprovalKindSchema as bh, COMMAND_NAME_MAX_LENGTH as bi, SessionsTitlePrepareParamsSchema as bl, WORKER_TRANSCRIPT_MAX_CONTENT_PARTS as bm, NodePluginToolsUpdateParamsSchema as bn, PROJECTS_LIST_DEFAULT_LIMIT as bo, SkillsLibraryListParamsSchema as bp, ExecApprovalsSnapshotSchema as br, SessionMembersListResultSchema as bs, SessionsReclaimResultSchema as bt, GatewayFrameSchema as bu, UserProfileSchema as bv, ToolsInvokeParamsSchema as bx, WizardStartResultSchema as by, WorktreeRepositoryStatusSchema as c, closedObject as cC, EnvironmentsListResultSchema as cS, PluginsChangedEventSchema as c_, TtsSpeakParamsSchema as ca, SkillProposalEvaluationSchema as cb, SessionsCompactionBranchResultSchema as cc, UpdateStatusResultSchema as cd, BoardFocusTabCommandSchema as cf, SessionCatalogDescriptorSchema as cg, AllowedApprovalSnapshotSchema as ch, SystemChangeSourceSchema as ci, SessionsPatchMutationSchema as cl, WORKER_PORTAL_PROTOCOL_FEATURE as cm, NodeInvokeResultParamsSchema as cn, ConversationTurnCancelResultSchema as co, UiNavigateCommandSchema as cp, ExecApprovalGrantsListParamsSchema as cr, SessionSuggestionsResolveParamsSchema as cs, SessionPlacementMachineSchema as ct, MENTION_INBOX_MAX_ITEMS as cu, SessionGitHubPublicationRequestedSchema as cv, ToolsGitHubAuthorizePollParamsSchema as cx, UsersSetDisplayNameResultSchema as cy, WorktreesCreateParamsSchema as d, EnvironmentsStatusParamsSchema as dS, PluginsControlUiListParamsSchema as d_, WebLoginWaitParamsSchema as da, SkillsBinsResultSchema as db, SessionsCompactionRestoreParamsSchema as dc, UpdateRunResultSchema as dd, BoardMcpAppDescriptorSchema as df, SessionCatalogPullRequestSummarySchema as dg, ApprovalCancelledReasonSchema as dh, COMMAND_ALIAS_MAX_ITEMS as di, SessionsDeleteParamsSchema as dl, WORKER_PROTOCOL_MAX_FEATURE_LENGTH as dm, NodePairListParamsSchema as dn, ConversationTurnResultSchema as do, UiSplitCommandSchema as dp, ExecApprovalGrantsRevokeResultSchema as dr, SessionTypingParamsSchema as ds, SessionPlacementRunnerSchema as dt, MentionsChangedEventSchema as du, SessionGitHubStatusParamsSchema as dv, ToolsGitHubAuthorizeStartParamsSchema as dx, UsersUnlinkAuthProfileParamsSchema as dy, SessionLabelString as eC, DesktopAvailabilitySchema as eS, PluginSearchPackageSchema as e_, TalkSessionCloseParamsSchema as ea, ModelsAuthSetApiKeyParamsSchema as eb, SessionsAssignOwnerResultSchema as ec, UpdateAvailableSchema as ed, BoardCanvasDocumentSourceSchema as ef, TerminalListResultSchema as eg, WorkerComputerResponseFrameSchema as eh, SystemAgentSetupAuthStartResultSchema as ei, SessionsSearchParamsSchema as el, validateWorkerInferenceTerminalFrame as em, NodeDescribeParamsSchema as en, AgentParamsSchema as eo, TalkVoiceSelectionSchema as ep, ScopeUpgradeApprovedSchema as er, SessionSuggestionEventSchema as es, SessionMoveDeviceTargetSchema as et, ChatToolTitlesResultSchema as eu, GitHubPublicationTitleSchema as ev, ToolsGitHubAuthorizeAccessDeniedResultSchema as ex, UsersPrefsSetResultSchema as ey, WorktreesGcParamsSchema as f, EnvironmentsStatusResultSchema as fS, PluginsControlUiReloadParamsSchema as f_, AuditEventSchema as fa, SkillsCuratorActionParamsSchema as fb, SessionsCompactionRestoreResultSchema as fc, UpdateRunsGetParamsSchema as fd, BoardOpSchema as ff, SessionCatalogSchema as fg, ApprovalChannelReviewerSchema as fh, COMMAND_ARGS_MAX_ITEMS as fi, SessionsDeleteResultSchema as fl, WORKER_PROTOCOL_MAX_METHOD_LENGTH as fm, NodePairRejectParamsSchema as fn, MessageActionParamsSchema as fo, SKILL_LIBRARY_MAX_BUNDLE_BYTES as fp, ExecApprovalRequestParamsSchema as fr, SessionTypingResultSchema as fs, SessionPlacementSchema as ft, MentionsDismissParamsSchema as fu, SessionGitHubStatusResultSchema as fv, ToolsGitHubAuthorizeStartResultSchema as fx, UsersUnlinkAuthProfileResultSchema as fy, WorktreesRemoveParamsSchema as g, WorkerDesktopAppIdSchema as gS, PluginsInspectParamsSchema as g_, AuditRunIdentityPresentV1Schema as ga, SkillsDetailParamsSchema as gb, SessionsCompanionResetResultSchema as gc, TRANSCRIPTS_EXPORT_MAX_BYTES as gd, BoardSizeSchema as gf, SessionsCatalogArchiveParamsSchema as gg, ApprovalGetParamsSchema as gh, COMMAND_CHOICE_LABEL_MAX_LENGTH as gi, SessionGoalSchema as gl, WORKER_SESSION_TOOLS_PROTOCOL_FEATURE as gm, NodePendingDrainResultSchema as gn, MAX_MEMORY_MIGRATION_ITEMS as go, SkillLibraryFileSchema as gp, ExecApprovalsNodeGetParamsSchema as gr, SessionMemberRemoveParamsSchema as gs, SessionsMoveParamsSchema as gt, UsersMentionableResultSchema as gu, UserModelAccountSchema as gv, ToolsGitHubManagedConfigureParamsSchema as gx, WizardCancelParamsSchema as gy, WorktreesListResultSchema as h, RuntimeTargetIssueSchema as hS, PluginsControlUiStatusResultSchema as h_, AuditRunIdentityAmbiguousV1Schema as ha, SkillsCuratorStatusResultSchema as hb, SessionsCompanionResetParamsSchema as hc, UpdateRunsListResultSchema as hd, BoardSetChatDockCommandSchema as hf, SessionCatalogTranscriptItemSchema as hg, ApprovalExpiredReasonSchema as hh, COMMAND_ARG_NAME_MAX_LENGTH as hi, SessionsListParamsSchema as hl, WORKER_RPC_SET_VERSION as hm, NodePendingDrainParamsSchema as hn, WakeParamsSchema as ho, SKILL_LIBRARY_MAX_SELECTIONS as hp, ExecApprovalsGetParamsSchema as hr, SessionMemberMutationResultSchema as hs, SessionsDispatchResultSchema as ht, UsersMentionableParamsSchema as hu, PersonalGitHubStatusSchema as hv, ToolsGitHubInheritConfigureParamsSchema as hx, WizardAnswerSchema as hy, ToolsCatalogParamsSchema as i, USER_PREFS_ENTRY_LIMIT as iC, EnvironmentsCreateResultSchema as iS, PluginsCatalogCategoriesParamsSchema as i_, TalkSessionSteerParamsSchema as ia, ModelsListResultSchema as ib, SessionsBranchesSwitchResultSchema as ic, UpdateReportResultSchema as id, BoardCommandSchema as if, TerminalSessionInfoSchema as ig, WORKER_PROTOCOL_MAX_PAYLOAD_BYTES as ih, SystemAgentSetupVerifyResultSchema as ii, SESSIONS_PATCH_MANY_MAX_TARGETS as il, WORKER_EXECUTION_CONTEXT_PROTOCOL_FEATURE as im, NodeInvokeInputEventSchema as in, ConversationListResultSchema as io, UiCommandParamsSchema as ip, ScopeUpgradeRequestSchema as ir, SessionSuggestionsAddParamsSchema as is, SessionMovePlacementStateSchema as it, HumanMentionSchema as iu, SessionGitHubPublicationFailedSchema as iv, ToolsGitHubAuthorizeFailedResultSchema as ix, UsersSelfResultSchema as iy, TaskSuggestionSchema as j, GatewayErrorDetailsSchema as jS, PluginsSessionActionSuccessResultSchema as j_, AuditActivityEventV1Schema as ja, SkillsProposalRequestRevisionResultSchema as jb, SessionsForkParamsSchema as jc, TranscriptsListResultSchema as jd, BoardWidgetGeneratedIdentitySchema as jf, PluginCatalogClawHubInstallSchema as jg, ExternalPostApprovalScopeSchema as jh, ChannelsLogoutParamsSchema as ji, ChatAttachmentSchema as jl, WorkerLiveEventRequestFrameSchema as jm, FsListDirResultSchema as jn, ProjectsAddResultSchema as jo, validateSkillsLibraryUploadParams as jp, CronPacingSchema as jr, SessionBranchSchema as js, QuestionRequestResultSchema as jt, GatewaySuspendHandoffResultSchema as ju, UsersGitHubAuthorizeCancelResultSchema as jv, SessionActivitySummarySchema as jx, AgentsFileEntrySchema as jy, TaskSuggestionEventSchema as k, ChatAccountSelectionSchema as kS, PluginsSessionActionParamsSchema as k_, AUDIT_ACTIVITY_STATUSES as ka, SkillsProposalRecordResultSchema as kb, SessionsFilesSetParamsSchema as kc, TranscriptsGetResultSchema as kd, BoardWidgetContentSchema as kf, ControlUiPluginWidgetKindSchema as kg, ExecApprovalPresentationSchema as kh, ChannelsPairingListParamsSchema as ki, ChatAbortParamsSchema as kl, WorkerLiveEventErrorShapeSchema as km, FsDirEntrySchema as kn, ProjectSummarySchema as ko, validateSkillsLibraryReadParams as kp, CronJobStateSchema as kr, SessionVisibilitySetResultSchema as ks, QuestionRequestParamsSchema as kt, GatewaySuspendBlockerSchema as ku, UsersAuthConnectStatusResultSchema as kv, SessionSharingRoleSchema as kx, AgentsDeleteParamsSchema as ky, WorktreesBranchesParamsSchema as l, EnvironmentsPrepareParamsSchema as lS, PluginsControlUiCatalogSchema as l_, TtsSpeakResultSchema as la, SkillProposalLifecycleEventSchema as lb, SessionsCompactionListParamsSchema as lc, UpdateRunChangedEventSchema as ld, BoardGetParamsSchema as lf, SessionCatalogHostSchema as lg, ApprovalAllowDecisionSchema as lh, SystemChangesListParamsSchema as li, SessionsPatchParamsSchema as ll, WORKER_PROTOCOL_FEATURES as lm, NodeListParamsSchema as ln, ConversationTurnParamsSchema as lo, UiPanelCommandSchema as lp, ExecApprovalGrantsListResultSchema as lr, SessionSuggestionsResolveResultSchema as ls, SessionPlacementMoveSchema as lt, MentionInboxItemSchema as lu, SessionGitHubPublicationResultSchema as lv, ToolsGitHubAuthorizePollResultSchema as lx, UsersSetRoleParamsSchema as ly, WorktreesListParamsSchema as m, RequiredNodeCommandStateSchema as mS, PluginsControlUiStatusParamsSchema as m_, AuditListResultSchema as ma, SkillsCuratorStatusParamsSchema as mb, SessionsCompanionAskResultSchema as mc, UpdateRunsListParamsSchema as md, BoardPromptAuthorizeParamsSchema as mf, SessionCatalogShareRouteSchema as mg, ApprovalDeniedReasonSchema as mh, COMMAND_ARG_DESCRIPTION_MAX_LENGTH as mi, WorktreePreservationReasonSchema as ml, WORKER_PROVIDER_REPLAY_MAX_DATA_BYTES as mm, NodePendingAckParamsSchema as mn, SendParamsSchema as mo, SKILL_LIBRARY_MAX_FILE_BYTES as mp, ExecApprovalStandingGrantSchema as mr, SessionMemberEvidenceSchema as ms, SessionsDispatchParamsSchema as mt, MentionsListResultSchema as mu, PersonalGitHubGenerationSchema as mv, ToolsGitHubConfigureParamsSchema as mx, normalizeUiAppearancePreference as my, ToolCatalogGroupSchema as n, GATEWAY_OWNER_PROFILE_ID as nC, EnvironmentSummarySchema as nS, PluginsCatalogBrowseParamsSchema as n_, TalkSessionCreateResultSchema as na, ModelsAuthStatusParamsSchema as nb, SessionsBranchesListResultSchema as nc, UpdateHoldResultSchema as nd, BoardChatDockSchema as nf, TerminalOpenResultSchema as ng, WORKER_PROTOCOL_MAX_FRAME_ID_LENGTH as nh, SystemAgentSetupDetectResultSchema as ni, SessionsSendParamsSchema as nl, WORKER_BUNDLE_PREWARM_VERSION as nm, NodeEventResultSchema as nn, ConversationListItemSchema as no, TalkVoiceSetResultSchema as np, ScopeUpgradeRegistrationSchema as nr, SessionSuggestionSchema as ns, SessionMoveGatewayTargetSchema as nt, LogsTailResultSchema as nu, SessionGitHubOptionsParamsSchema as nv, ToolsGitHubAuthorizeCancelResultSchema as nx, UsersSelectModelAccountResultSchema as ny, WorktreeBranchSchema as o, USER_PREFS_VALUE_BYTES as oC, EnvironmentsDestroyResultSchema as oS, PluginsCatalogGetParamsSchema as o_, TalkSpeakParamsSchema as oa, ModelsProbeResultSchema as ob, SessionsCompactParamsSchema as oc, UpdateScheduleStateSchema as od, BoardDataReadParamsSchema as of, TerminalUploadResultSchema as og, WorkerAdmissionFailureReasonSchema as oh, SystemChangeEntrySchema as oi, SessionsPatchManyResultSchema as ol, WORKER_LAUNCH_V2_PROTOCOL_FEATURE as om, NodeInvokeProgressParamsSchema as on, ConversationSendResultSchema as oo, UiCommandSchema as op, ScopeUpgradeWaitSchema as or, SessionSuggestionsListParamsSchema as os, SessionMoveTargetSchema as ot, MAX_HUMAN_MENTIONS as ou, SessionGitHubPublicationPublishedSchema as ov, ToolsGitHubAuthorizeNetworkErrorResultSchema as ox, UsersSetAvatarResultSchema as oy, WorktreesGcResultSchema as p, RequiredNodeCommandSchema as pS, PluginsControlUiReportParamsSchema as p_, AuditListParamsSchema as pa, SkillsCuratorActionResultSchema as pb, SessionsCompanionAskParamsSchema as pc, UpdateRunsGetResultSchema as pd, BoardPluginActionParamsSchema as pf, SessionCatalogSessionSchema as pg, ApprovalDecisionSchema as ph, COMMAND_ARG_CHOICES_MAX_ITEMS as pi, WORKTREE_PRESERVATION_REASONS as pl, WORKER_PROTOCOL_METHODS as pm, NodePairRemoveParamsSchema as pn, PollParamsSchema as po, SKILL_LIBRARY_MAX_FILES as pp, ExecApprovalResolveParamsSchema as pr, SessionMemberAddParamsSchema as ps, SessionPlacementStateSchema as pt, MentionsListParamsSchema as pu, PersonalGitHubAccountSchema as pv, ToolsGitHubAuthorizeSuccessResultSchema as px, UI_APPEARANCE_PREFERENCE_KEYS as py, SessionsResolveResultSchema as q, ChatSendSessionKeyString as qS, SESSION_ICON_SVG_DATA_URL_PREFIX as q_, AgentsWorkspaceGetParamsSchema as qa, SkillsWorkshopReadParamsSchema as qb, SessionsPluginPatchParamsSchema as qc, CanvasDocumentViewParamsSchema as qd, BoardWidgetRemoveOpSchema as qf, PluginInstallTrustSchema as qg, TerminalAttachParamsSchema as qh, TalkConfigParamsSchema as qi, ChatPendingInputsPageSchema as ql, WorkerTranscriptCommitRequestFrameSchema as qm, DevicePairSetupCompletedEventSchema as qn, TasksHistoryParamsSchema as qo, WorkerInferenceModelRefSchema as qp, SystemAgentChatQuestionSchema as qr, SessionObserverDigestSchema as qs, WebPushNotificationPreferencesSchema as qt, ConfigGetParamsSchema as qu, UsersListModelAccountsResultSchema as qv, SecretsResolveParamsSchema as qx, GitHubSelectedIdentitySchema as qy, ToolCatalogProfileSchema as r, GIT_COAUTHOR_PREFERENCE_KEY as rC, EnvironmentsCreateParamsSchema as rS, PluginsCatalogBrowseResultSchema as r_, TalkSessionOkResultSchema as ra, ModelsListParamsSchema as rb, SessionsBranchesSwitchParamsSchema as rc, UpdateReportParamsSchema as rd, BoardCommandEventSchema as rf, TerminalResizeParamsSchema as rg, WORKER_PROTOCOL_MAX_IDENTIFIER_LENGTH as rh, SystemAgentSetupVerifyParamsSchema as ri, SessionsUsageParamsSchema as rl, WORKER_EXECUTION_AUTHORITY_PROTOCOL_FEATURE as rm, NodeHostStatsPayloadSchema as rn, ConversationListParamsSchema as ro, UiClosePaneCommandSchema as rp, ScopeUpgradeRejectedSchema as rr, SessionSuggestionStateSchema as rs, SessionMovePlacementSchema as rt, projectChatErrorDetail as ru, SessionGitHubOptionsResultSchema as rv, ToolsGitHubAuthorizeExpiredResultSchema as rx, UsersSelfParamsSchema as ry, WorktreeRecordSchema as s, isGitCoauthorCreditEnabled as sC, EnvironmentsListParamsSchema as sS, PluginsCatalogGetResultSchema as s_, TalkSpeakResultSchema as sa, ModelsProbeTargetResultSchema as sb, SessionsCompactionBranchParamsSchema as sc, UpdateStatusParamsSchema as sd, BoardEventParamsSchema as sf, SessionCatalogCapabilitiesSchema as sg, WorkerProtocolCloseReasonSchema as sh, SystemChangeKindSchema as si, SessionsPatchManyTargetSchema as sl, WORKER_LIVE_EVENT_PROTOCOL_FEATURE as sm, NodeInvokeRequestEventSchema as sn, ConversationTurnCancelParamsSchema as so, UiFocusCommandSchema as sp, ExecApprovalGetParamsSchema as sr, SessionSuggestionsListResultSchema as ss, SessionPlacementDiskSpaceSchema as st, MAX_MENTIONABLE_USERS as su, SessionGitHubPublicationPublishingSchema as sv, ToolsGitHubAuthorizePendingResultSchema as sx, UsersSetDisplayNameParamsSchema as sy, ToolCatalogEntrySchema as t, UserProfileIdSchema as tC, EnvironmentStatusSchema as tS, PluginSearchResultEntrySchema as t_, TalkSessionCreateParamsSchema as ta, ModelsAuthSetApiKeyResultSchema as tb, SessionsBranchesListParamsSchema as tc, UpdateHoldParamsSchema as td, BoardChangedEventSchema as tf, TerminalOpenParamsSchema as tg, WorkerComputerResultSchema as th, SystemAgentSetupDetectParamsSchema as ti, SessionsSearchResultSchema as tl, validateWorkerInferenceTerminalOutcome as tm, NodeEventParamsSchema as tn, AgentWaitParamsSchema as to, TalkVoiceSetParamsSchema as tp, ScopeUpgradeExpiredSchema as tr, SessionSuggestionResolutionSchema as ts, SessionMoveExpectedSourceSchema as tt, LogsTailParamsSchema as tu, SessionGitHubConfirmParamsSchema as tv, ToolsGitHubAuthorizeCancelParamsSchema as tx, UsersSelectModelAccountParamsSchema as ty, WorktreesBranchesResultSchema as u, EnvironmentsPrepareResultSchema as uS, PluginsControlUiChangedEventSchema as u_, WebLoginStartParamsSchema as ua, SkillsBinsParamsSchema as ub, SessionsCompactionListResultSchema as uc, UpdateRunRecordSchema as ud, BoardLegacyEventParamsSchema as uf, SessionCatalogLocatorSchema as ug, ApprovalAllowedReasonSchema as uh, SystemChangesListResultSchema as ui, PreservedSessionWorktreeSchema as ul, WORKER_PROTOCOL_MAX_FEATURES as um, NodePairApproveParamsSchema as un, ConversationTurnReplySchema as uo, UiSidebarCommandSchema as up, ExecApprovalGrantsRevokeParamsSchema as ur, SessionTypingEventSchema as us, SessionPlacementProtocolSchemas as ut, MentionableUserSchema as uu, SessionGitHubPublishParamsSchema as uv, ToolsGitHubAuthorizeSlowDownResultSchema as ux, UsersSetRoleResultSchema as uy, WorktreesRestoreParamsSchema as v, WorkerDesktopLaunchResultSchema as vS, PluginsInstallParamsSchema as v_, AuditRunIdentityUnsupportedV1Schema as va, SkillsInstallParamsSchema as vb, SessionsCompanionStateResultSchema as vc, TRANSCRIPTS_LEGACY_MAX_UTTERANCES as vd, BoardTabCreateOpSchema as vf, SessionsCatalogContinueParamsSchema as vg, ApprovalHistoryParamsSchema as vh, COMMAND_DESCRIPTION_MAX_LENGTH as vi, SessionsGoalMutationResultSchema as vl, WORKER_TRANSCRIPT_COMMIT_PROTOCOL_FEATURE as vm, NodePendingEnqueueResultSchema as vn, MigrationsMemoryApplyParamsSchema as vo, SkillsLibraryActivateParamsSchema as vp, ExecApprovalsNodeSnapshotSchema as vr, SessionMembersListEvidenceResultSchema as vs, SessionsReclaimParamsSchema as vt, ErrorShapeSchema as vu, UserProfileAvatarMimeSchema as vv, ToolsGitHubStatusResultSchema as vx, WizardNextResultSchema as vy, PortalOpenParamsSchema as w, WorkerMachineOptionSchema as wS, PluginsReloadParamsSchema as w_, ExecutionIdentityContextV1Schema as wa, SkillsProposalEvaluateResultSchema as wb, SessionsFilesGetResultSchema as wc, TranscriptSessionSummarySchema as wd, BoardTicketEventParamsSchema as wf, SessionsCatalogReadResultSchema as wg, ApprovalScopeSchema as wh, TalkSessionAcknowledgeMarkParamsSchema as wi, SessionsRecoverParamsSchema as wl, WorkerConnectRequestFrameSchema as wm, NodeRenameParamsSchema as wn, ProjectRecentFolderSchema as wo, SkillsLibraryUploadParamsSchema as wp, CronDeclarativeAddResultSchema as wr, SessionSharingActionSchema as ws, QuestionGetResultSchema as wt, ShutdownEventSchema as wu, UsersAuthConnectCatalogResultSchema as wv, SessionOwnerSchema as wx, AgentKindSchema as wy, PortalCloseResultSchema as x, WorkerEnvironmentMetadataSchema as xS, PluginsListResultSchema as x_, AuditRunInspectResultSchema as xa, SkillsProposalCreateParamsSchema as xb, SessionsDiffParamsSchema as xc, TRANSCRIPTS_PAGE_DEFAULT as xd, BoardTabSchema as xf, SessionsCatalogListParamsSchema as xg, ApprovalPresentationSchema as xh, CommandEntrySchema as xi, SessionsTitlePrepareResultSchema as xl, WORKER_TRANSCRIPT_MAX_JSON_DEPTH as xm, NodePresenceActivityPayloadSchema as xn, PROJECTS_LIST_MAX_CHECKOUTS_PER_PROJECT as xo, SkillsLibraryMutateParamsSchema as xp, CronAddJobResultSchema as xr, SessionPublicShareSchema as xs, isCloudWorkerPlacementState as xt, HelloOkSchema as xu, UsersAuthConnectAnswerParamsSchema as xv, ToolsInvokeResultSchema as xx, WizardStatusParamsSchema as xy, PortalChangedEventSchema as y, WorkerDesktopObserveParamsSchema as yS, PluginsInstallResultSchema as y_, AuditRunIdentityV1Schema as ya, SkillsProposalActionParamsSchema as yb, SessionsCreateResultSchema as yc, TRANSCRIPTS_LEGACY_RESULT_MAX_BYTES as yd, BoardTabDeleteOpSchema as yf, SessionsCatalogContinueResultSchema as yg, ApprovalHistoryResultSchema as yh, COMMAND_LIST_MAX_ITEMS as yi, SessionsGoalUpdateParamsSchema as yl, WORKER_TRANSCRIPT_MAX_BATCH_MESSAGES as ym, NodePluginToolDescriptorSchema as yn, MigrationsMemoryPlanParamsSchema as yo, SkillsLibraryImportParamsSchema as yp, ExecApprovalsSetParamsSchema as yr, SessionMembersListParamsSchema as ys, SessionsReclaimResultPlacementSchema as yt, EventFrameSchema as yu, UserProfileGitHubIdentitySchema as yv, ToolsInvokeErrorSchema as yx, WizardStartParamsSchema as yy, TaskSuggestionsListResultSchema as z, SkillProposalRevisionChangedErrorDetailsSchema as zS, PluginCredentialInspectionSchema as z_, ArtifactsDownloadParamsSchema as za, SkillsSecurityVerdictsResultSchema as zb, SessionsGroupsPutParamsSchema as zc, ProgressCardGetResultSchema as zd, BoardWidgetPluginContentSchema as zf, PluginDeclaredSurfaceWideningSchema as zg, SessionApprovalEventSchema as zh, TalkClientCloseParamsSchema as zi, ChatHistoryParamsSchema as zl, WorkerSessionToolResultSchema as zm, DevicePairListParamsSchema as zn, ProjectsSearchRemoteResultSchema as zo, WORKER_INFERENCE_MAX_CONTEXT_MESSAGES as zp, CronScratchSetParamsSchema as zr, SessionFileBrowserResultSchema as zs, QuestionStatusSchema as zt, GatewaySuspendStatusDrainingResultSchema as zu, UsersGitHubStatusResultSchema as zv, SessionClassificationSchema as zx, AgentsListResultSchema as zy };
|
|
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 };
|