@openclaw/gateway-protocol 2026.10.5-beta.3 → 2026.10.10-beta.1

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.
@@ -1,4 +1,4 @@
1
- import { a as EventFrame, d as RequestFrame, l as HelloOk, p as ResponseFrame, r as ErrorShape, s as GatewayFrame, t as ConnectParams, y as GATEWAY_SERVER_CAPS } from "./frames-DHlyMuKP.mjs";
1
+ import { a as EventFrame, d as RequestFrame, l as HelloOk, p as ResponseFrame, r as ErrorShape, s as GatewayFrame, t as ConnectParams, y as GATEWAY_SERVER_CAPS } from "./frames-B2TMmFj0.mjs";
2
2
  //#region packages/gateway-protocol/src/frame-guards.d.ts
3
3
  export declare function isGatewayEventFrame(value: unknown): value is EventFrame;
4
4
  export declare function isGatewayResponseFrame(value: unknown): value is ResponseFrame;
@@ -1,6 +1,5 @@
1
1
  import { r as isRecord } from "./record-coerce-DVQGe6I0.mjs";
2
- import { t as isNonEmptyProtocolString } from "./protocol-value-normalization-Oati9UF1.mjs";
3
- import { t as GATEWAY_SERVER_CAPS } from "./server-capabilities-FfgdQE-U.mjs";
2
+ import { n as isNonEmptyProtocolString, t as GATEWAY_SERVER_CAPS } from "./server-capabilities-DRQ3mUjT.mjs";
4
3
  //#region packages/gateway-protocol/src/frame-guards.ts
5
4
  function isNonNegativeInteger(value) {
6
5
  return typeof value === "number" && Number.isInteger(value) && value >= 0;
@@ -2,11 +2,14 @@ import { Static, Type } from "typebox";
2
2
  //#region packages/gateway-protocol/src/server-capabilities.d.ts
3
3
  /** Stable feature names advertised in Gateway hello responses. */
4
4
  declare const GATEWAY_SERVER_CAPS: {
5
+ readonly AGENT_SESSION_ID_CREATE: "agent-session-id-create-v1";
5
6
  readonly BOARD_WIDGET_PUT_CANVAS_DOC: "board-widget-put-canvas-doc";
6
7
  readonly CHAT_SEND_ROUTING_CONTRACT: "chat-send-routing-contract";
7
8
  readonly CONTROL_UI_BROWSER_FOCUS: "control-ui-browser-focus";
8
9
  readonly GATEWAY_RESTART_TARGET_SAFE: "gateway-restart-target-safe-v1";
9
10
  readonly LOCAL_STATE_OWNER_ROUTING: "local-state-owner-routing-v1";
11
+ readonly MODELS_AUTH_SET_API_KEY_OWNER: "models-auth-set-api-key-owner-v1";
12
+ readonly MODELS_AUTH_LOGIN_OWNER: "models-auth-login-owner-v1";
10
13
  readonly CHANNELS_PAIRING_LIST_OWNER: "channels-pairing-list-owner-v1";
11
14
  readonly CHANNELS_PAIRING_APPROVE_OWNER: "channels-pairing-approve-owner-v1";
12
15
  readonly EXEC_APPROVALS_GET_OWNER: "exec-approvals-get-owner-v1";
@@ -17,10 +20,12 @@ declare const GATEWAY_SERVER_CAPS: {
17
20
  readonly WORKTREES_RECOVER_REMOVAL_OWNER: "worktrees-recover-removal-owner-v1";
18
21
  readonly WORKTREES_RETIRE_SNAPSHOT_OWNER: "worktrees-retire-snapshot-owner-v1";
19
22
  readonly MODEL_CATALOG_SNAPSHOT: "model-catalog-snapshot";
23
+ readonly NODE_PERMISSION_ERRORS: "node-permission-errors";
20
24
  readonly NODE_WORKER_BUNDLE_RETENTION: "node-worker-bundle-retention-v1";
21
25
  readonly NODE_WORKER_BUNDLE_STATUS: "node-worker-bundle-status-v1";
22
26
  readonly NODE_WORKER_CAPTURED_EXEC_POLICY: "node-worker-captured-exec-policy";
23
27
  readonly NODE_WORKER_WORKSPACE_QUIESCENCE: "node-worker-workspace-quiescence-v1";
28
+ readonly NODE_WORKER_DEVICE_FOLDERS: "node-worker-device-folders-v1";
24
29
  readonly NODE_WORKER_ENVIRONMENT_SESSION: "node-worker-environment-session-v1";
25
30
  readonly NODE_WORKER_HOST_DIAGNOSTICS: "node-worker-host-diagnostics-v1";
26
31
  readonly NODE_WORKER_IDLE_RETENTION: "node-worker-idle-retention-v1";
@@ -42,6 +47,7 @@ declare const GATEWAY_SERVER_CAPS: {
42
47
  readonly SYSTEM_AGENT_WIZARD_CANCEL: "openclaw-chat-wizard-cancel";
43
48
  readonly SYSTEM_AGENT_SETUP_MODEL_REF: "openclaw-setup-model-ref";
44
49
  readonly TASK_SUGGESTIONS_ACCEPT_MODES: "taskSuggestions.acceptModes";
50
+ readonly TALK_SESSION_CLOSE_DISPOSITION: "talk-session-close-disposition";
45
51
  };
46
52
  //#endregion
47
53
  //#region packages/gateway-protocol/src/schema/frames.d.ts
@@ -379,17 +385,42 @@ declare const HelloOkSchema: Type.TObject<{
379
385
  currentSha: Type.TString;
380
386
  currentPath: Type.TString;
381
387
  activationEnabled: Type.TOptional<Type.TBoolean>;
388
+ releaseRetention: Type.TOptional<Type.TObject<{
389
+ version: Type.TLiteral<1>;
390
+ mode: Type.TLiteral<"inspect">;
391
+ keepVerifiedGenerations: Type.TLiteral<3>;
392
+ pins: Type.TArray<Type.TObject<{
393
+ sha: Type.TString;
394
+ identity: Type.TString;
395
+ }>>;
396
+ generations: Type.TArray<Type.TObject<{
397
+ sha: Type.TString;
398
+ path: Type.TString;
399
+ identity: Type.TString;
400
+ buildDigest: Type.TString;
401
+ publishedRevision: Type.TInteger;
402
+ verifiedRevision: Type.TUnion<[Type.TInteger, Type.TNull]>;
403
+ }>>;
404
+ }>>;
382
405
  activation: Type.TOptional<Type.TObject<{
383
406
  operationId: Type.TString;
384
407
  phase: Type.TUnion<[Type.TLiteral<"prepared">, Type.TLiteral<"draining">, Type.TLiteral<"stopping">, Type.TLiteral<"stopped">, Type.TLiteral<"publishing">, Type.TLiteral<"starting">, Type.TLiteral<"verifying">, Type.TLiteral<"rollback-stopping">, Type.TLiteral<"rollback-publishing">, Type.TLiteral<"rollback-starting">, Type.TLiteral<"rolled-back">, Type.TLiteral<"recovery-required">]>;
385
408
  previousSha: Type.TString;
386
409
  candidateSha: Type.TString;
410
+ failure: Type.TOptional<Type.TString>;
411
+ recoveryCommand: Type.TOptional<Type.TString>;
387
412
  }>>;
388
413
  lastActivation: Type.TOptional<Type.TObject<{
389
414
  operationId: Type.TString;
390
415
  outcome: Type.TUnion<[Type.TLiteral<"succeeded">, Type.TLiteral<"rolled-back">]>;
391
416
  selectedSha: Type.TString;
392
417
  verifiedAtMs: Type.TInteger;
418
+ gateway: Type.TOptional<Type.TObject<{
419
+ pid: Type.TInteger;
420
+ bootId: Type.TString;
421
+ version: Type.TString;
422
+ buildId: Type.TString;
423
+ }>>;
393
424
  }>>;
394
425
  prepared: Type.TOptional<Type.TObject<{
395
426
  sha: Type.TString;
@@ -66,6 +66,14 @@ declare const SessionPlacementSchema: Type.TUnion<[Type.TObject<{
66
66
  startedAtMs: Type.TInteger;
67
67
  updatedAtMs: Type.TInteger;
68
68
  }>>;
69
+ startStatus: Type.TOptional<Type.TUnion<[Type.TObject<{
70
+ mode: Type.TLiteral<"snapshot">;
71
+ phase: Type.TOptional<Type.TLiteral<"saving">>;
72
+ }>, Type.TObject<{
73
+ mode: Type.TLiteral<"cold">;
74
+ reason: Type.TUnion<[Type.TLiteral<"no-snapshot-yet">, Type.TLiteral<"setup-changed">, Type.TLiteral<"snapshot-retiring">, Type.TLiteral<"snapshot-unavailable">, Type.TLiteral<"os-unsupported">, Type.TLiteral<"warm-images-off">, Type.TLiteral<"capture-paused">, Type.TLiteral<"backend-cannot-snapshot">, Type.TLiteral<"class-unknown">]>;
75
+ phase: Type.TUnion<[Type.TLiteral<"provisioning">, Type.TLiteral<"preparing">, Type.TLiteral<"saving">]>;
76
+ }>]>>;
69
77
  }>, Type.TObject<{
70
78
  generation: Type.TInteger;
71
79
  createdAtMs: Type.TInteger;
@@ -469,7 +477,7 @@ declare const SessionMoveTargetSchema: Type.TUnion<[Type.TObject<{
469
477
  kind: Type.TLiteral<"device">;
470
478
  deviceId: Type.TString;
471
479
  }>]>;
472
- /** Durable operator-visible progress for one placement move intent. */
480
+ /** Durable progress and the original request facts needed after a failed move. */
473
481
  declare const SessionPlacementMoveSchema: Type.TObject<{
474
482
  target: Type.TUnion<[Type.TObject<{
475
483
  kind: Type.TLiteral<"gateway">;
@@ -484,11 +492,28 @@ declare const SessionPlacementMoveSchema: Type.TObject<{
484
492
  }>]>;
485
493
  updatedAtMs: Type.TInteger;
486
494
  error: Type.TOptional<Type.TString>;
495
+ retry: Type.TOptional<Type.TObject<{
496
+ expected: Type.TObject<{
497
+ generation: Type.TInteger;
498
+ environmentId: Type.TString;
499
+ ownerEpoch: Type.TInteger;
500
+ }>;
501
+ target: Type.TUnion<[Type.TObject<{
502
+ kind: Type.TLiteral<"gateway">;
503
+ }>, Type.TObject<{
504
+ kind: Type.TLiteral<"profile">;
505
+ profileId: Type.TString;
506
+ machineClass: Type.TOptional<Type.TString>;
507
+ os: Type.TOptional<Type.TString>;
508
+ }>, Type.TObject<{
509
+ kind: Type.TLiteral<"device">;
510
+ deviceId: Type.TString;
511
+ }>]>;
512
+ abandonSource: Type.TOptional<Type.TLiteral<true>>;
513
+ }>>;
487
514
  }>;
488
515
  /** Requests one exact-source placement move without replaying active work. */
489
516
  declare const SessionsMoveParamsSchema: Type.TObject<{
490
- key: Type.TString;
491
- agentId: Type.TOptional<Type.TString>;
492
517
  expected: Type.TObject<{
493
518
  generation: Type.TInteger;
494
519
  environmentId: Type.TString;
@@ -506,6 +531,8 @@ declare const SessionsMoveParamsSchema: Type.TObject<{
506
531
  deviceId: Type.TString;
507
532
  }>]>;
508
533
  abandonSource: Type.TOptional<Type.TLiteral<true>>;
534
+ key: Type.TString;
535
+ agentId: Type.TOptional<Type.TString>;
509
536
  }>;
510
537
  /** Successful terminal states returned by sessions.move. */
511
538
  declare const SessionMovePlacementStateSchema: Type.TUnion<[Type.TLiteral<"local">, Type.TLiteral<"active">]>;
@@ -588,6 +615,14 @@ declare const SessionPlacementProtocolSchemas: {
588
615
  startedAtMs: Type.TInteger;
589
616
  updatedAtMs: Type.TInteger;
590
617
  }>>;
618
+ startStatus: Type.TOptional<Type.TUnion<[Type.TObject<{
619
+ mode: Type.TLiteral<"snapshot">;
620
+ phase: Type.TOptional<Type.TLiteral<"saving">>;
621
+ }>, Type.TObject<{
622
+ mode: Type.TLiteral<"cold">;
623
+ reason: Type.TUnion<[Type.TLiteral<"no-snapshot-yet">, Type.TLiteral<"setup-changed">, Type.TLiteral<"snapshot-retiring">, Type.TLiteral<"snapshot-unavailable">, Type.TLiteral<"os-unsupported">, Type.TLiteral<"warm-images-off">, Type.TLiteral<"capture-paused">, Type.TLiteral<"backend-cannot-snapshot">, Type.TLiteral<"class-unknown">]>;
624
+ phase: Type.TUnion<[Type.TLiteral<"provisioning">, Type.TLiteral<"preparing">, Type.TLiteral<"saving">]>;
625
+ }>]>>;
591
626
  }>;
592
627
  readonly SyncingSessionPlacement: Type.TObject<{
593
628
  generation: Type.TInteger;
@@ -842,6 +877,14 @@ declare const SessionPlacementProtocolSchemas: {
842
877
  startedAtMs: Type.TInteger;
843
878
  updatedAtMs: Type.TInteger;
844
879
  }>>;
880
+ startStatus: Type.TOptional<Type.TUnion<[Type.TObject<{
881
+ mode: Type.TLiteral<"snapshot">;
882
+ phase: Type.TOptional<Type.TLiteral<"saving">>;
883
+ }>, Type.TObject<{
884
+ mode: Type.TLiteral<"cold">;
885
+ reason: Type.TUnion<[Type.TLiteral<"no-snapshot-yet">, Type.TLiteral<"setup-changed">, Type.TLiteral<"snapshot-retiring">, Type.TLiteral<"snapshot-unavailable">, Type.TLiteral<"os-unsupported">, Type.TLiteral<"warm-images-off">, Type.TLiteral<"capture-paused">, Type.TLiteral<"backend-cannot-snapshot">, Type.TLiteral<"class-unknown">]>;
886
+ phase: Type.TUnion<[Type.TLiteral<"provisioning">, Type.TLiteral<"preparing">, Type.TLiteral<"saving">]>;
887
+ }>]>>;
845
888
  }>, Type.TObject<{
846
889
  generation: Type.TInteger;
847
890
  createdAtMs: Type.TInteger;
@@ -1243,10 +1286,27 @@ declare const SessionPlacementProtocolSchemas: {
1243
1286
  }>]>;
1244
1287
  updatedAtMs: Type.TInteger;
1245
1288
  error: Type.TOptional<Type.TString>;
1289
+ retry: Type.TOptional<Type.TObject<{
1290
+ expected: Type.TObject<{
1291
+ generation: Type.TInteger;
1292
+ environmentId: Type.TString;
1293
+ ownerEpoch: Type.TInteger;
1294
+ }>;
1295
+ target: Type.TUnion<[Type.TObject<{
1296
+ kind: Type.TLiteral<"gateway">;
1297
+ }>, Type.TObject<{
1298
+ kind: Type.TLiteral<"profile">;
1299
+ profileId: Type.TString;
1300
+ machineClass: Type.TOptional<Type.TString>;
1301
+ os: Type.TOptional<Type.TString>;
1302
+ }>, Type.TObject<{
1303
+ kind: Type.TLiteral<"device">;
1304
+ deviceId: Type.TString;
1305
+ }>]>;
1306
+ abandonSource: Type.TOptional<Type.TLiteral<true>>;
1307
+ }>>;
1246
1308
  }>;
1247
1309
  readonly SessionsMoveParams: Type.TObject<{
1248
- key: Type.TString;
1249
- agentId: Type.TOptional<Type.TString>;
1250
1310
  expected: Type.TObject<{
1251
1311
  generation: Type.TInteger;
1252
1312
  environmentId: Type.TString;
@@ -1264,6 +1324,8 @@ declare const SessionPlacementProtocolSchemas: {
1264
1324
  deviceId: Type.TString;
1265
1325
  }>]>;
1266
1326
  abandonSource: Type.TOptional<Type.TLiteral<true>>;
1327
+ key: Type.TString;
1328
+ agentId: Type.TOptional<Type.TString>;
1267
1329
  }>;
1268
1330
  readonly SessionMovePlacementState: Type.TUnion<[Type.TLiteral<"local">, Type.TLiteral<"active">]>;
1269
1331
  readonly SessionMovePlacement: Type.TObject<{
@@ -1336,6 +1398,8 @@ declare const GatewayErrorDetailCodes: {
1336
1398
  readonly SESSION_WORKSPACE_RECOVERY_REQUIRED: "SESSION_WORKSPACE_RECOVERY_REQUIRED";
1337
1399
  readonly TASK_WORKTREE_SOURCE_REQUIRED: "TASK_WORKTREE_SOURCE_REQUIRED";
1338
1400
  readonly TASK_HISTORY_PREVIEW_CAPACITY: "TASK_HISTORY_PREVIEW_CAPACITY";
1401
+ readonly CLAWHUB_RISK_ACKNOWLEDGEMENT_REQUIRED: "CLAWHUB_RISK_ACKNOWLEDGEMENT_REQUIRED";
1402
+ readonly CLAW_REVIEW_REQUIRED: "CLAW_REVIEW_REQUIRED";
1339
1403
  };
1340
1404
  /** Missing cron automation identified by its exact store key. */
1341
1405
  type CronJobNotFoundErrorDetails = {
@@ -1396,10 +1460,20 @@ type TaskWorktreeSourceRequiredErrorDetails = {
1396
1460
  code: typeof GatewayErrorDetailCodes.TASK_WORKTREE_SOURCE_REQUIRED;
1397
1461
  cwd: string;
1398
1462
  };
1463
+ type ClawHubRiskAcknowledgementRequiredErrorDetails = {
1464
+ code: typeof GatewayErrorDetailCodes.CLAWHUB_RISK_ACKNOWLEDGEMENT_REQUIRED;
1465
+ warning: string;
1466
+ };
1467
+ type ClawReviewRequiredErrorDetails = {
1468
+ code: typeof GatewayErrorDetailCodes.CLAW_REVIEW_REQUIRED;
1469
+ kind: "plugin" | "skill";
1470
+ };
1399
1471
  /** Structured details emitted by method-level failures. */
1400
- type GatewayErrorDetails = CronJobNotFoundErrorDetails | MissingScopeErrorDetails | McpAppViewExpiredErrorDetails | OutboundDeliveryQueuedErrorDetails | UserPrefsLimitExceededErrorDetails | ProjectCloneErrorDetails | UnknownAgentIdErrorDetails | WizardNotFoundErrorDetails | SetupAdmissionBusyErrorDetails | GitHubPublicationSelectionRejectedErrorDetails | SessionWorkspaceRecoveryRequiredErrorDetails | TaskWorktreeSourceRequiredErrorDetails | {
1472
+ type GatewayErrorDetails = CronJobNotFoundErrorDetails | MissingScopeErrorDetails | McpAppViewExpiredErrorDetails | OutboundDeliveryQueuedErrorDetails | UserPrefsLimitExceededErrorDetails | ProjectCloneErrorDetails | UnknownAgentIdErrorDetails | WizardNotFoundErrorDetails | SetupAdmissionBusyErrorDetails | GitHubPublicationSelectionRejectedErrorDetails | SessionWorkspaceRecoveryRequiredErrorDetails | TaskWorktreeSourceRequiredErrorDetails | ClawHubRiskAcknowledgementRequiredErrorDetails | ClawReviewRequiredErrorDetails | {
1401
1473
  code: typeof GatewayErrorDetailCodes.TASK_HISTORY_PREVIEW_CAPACITY;
1402
1474
  };
1475
+ declare function readClawHubRiskAcknowledgementRequiredError(error: unknown): ClawHubRiskAcknowledgementRequiredErrorDetails | null;
1476
+ declare function readClawReviewRequiredError(error: unknown): ClawReviewRequiredErrorDetails | null;
1403
1477
  declare function readGitHubPublicationSelectionRejectedError(error: unknown): GitHubPublicationSelectionRejectedErrorDetails | null;
1404
1478
  /** Reads a typed cron lookup miss without parsing operator-facing prose. */
1405
1479
  declare function readCronJobNotFoundError(error: unknown): CronJobNotFoundErrorDetails | null;
@@ -1412,4 +1486,4 @@ declare function isMcpAppViewExpiredError(error: unknown): boolean;
1412
1486
  */
1413
1487
  declare function readMissingScopeError(error: unknown): MissingScopeErrorDetails | null;
1414
1488
  //#endregion
1415
- export { SessionsMoveParams as $, SessionMovePlacementState as A, SessionPlacementMove as B, readMissingScopeErrorDetails as C, SessionMoveGatewayTargetSchema as D, SessionMoveExpectedSourceSchema as E, SessionPlacement as F, SessionPlacementSchema as G, SessionPlacementProtocolSchemas as H, SessionPlacementDiskSpace as I, SessionPlacementWorkerRuntimeInstallSchema as J, SessionPlacementStateSchema as K, SessionPlacementDiskSpaceSchema as L, SessionMoveProfileTargetSchema as M, SessionMoveTarget as N, SessionMovePlacement as O, SessionMoveTargetSchema as P, SessionsDispatchResultSchema as Q, SessionPlacementMachine as R, readMissingScopeError as S, SessionMoveExpectedSource as T, SessionPlacementRunner as U, SessionPlacementMoveSchema as V, SessionPlacementRunnerSchema as W, SessionsDispatchParamsSchema as X, SessionsDispatchParams as Y, SessionsDispatchResult as Z, UserPrefsLimitExceededErrorDetails as _, GatewayErrorDetailCodes as a, SessionsReclaimResult as at, readCronJobNotFoundError as b, McpAppViewExpiredErrorDetails as c, SessionsReclaimResultSchema as ct, ProjectCloneErrorDetails as d, SessionsMoveParamsSchema as et, ProjectCloneFailureCause as f, UnknownAgentIdErrorDetails as g, TaskWorktreeSourceRequiredErrorDetails as h, GATEWAY_ASSISTANT_ERROR_FALLBACK_TEXT as i, SessionsReclaimParamsSchema as it, SessionMovePlacementStateSchema as j, SessionMovePlacementSchema as k, MissingScopeErrorDetails as l, SetupAdmissionBusyErrorDetails as m, ErrorCode as n, SessionsMoveResultSchema as nt, GatewayErrorDetails as o, SessionsReclaimResultPlacement as ot, SessionWorkspaceRecoveryRequiredErrorDetails as p, SessionPlacementWorkerRuntimeInstall as q, ErrorCodes as r, SessionsReclaimParams as rt, GitHubPublicationSelectionRejectedErrorDetails as s, SessionsReclaimResultPlacementSchema as st, CronJobNotFoundErrorDetails as t, SessionsMoveResult as tt, OutboundDeliveryQueuedErrorDetails as u, WizardNotFoundErrorDetails as v, SessionMoveDeviceTargetSchema as w, readGitHubPublicationSelectionRejectedError as x, isMcpAppViewExpiredError as y, SessionPlacementMachineSchema as z };
1489
+ export { SessionsDispatchParams as $, SessionMoveExpectedSourceSchema as A, SessionPlacementDiskSpace as B, readClawReviewRequiredError as C, readMissingScopeErrorDetails as D, readMissingScopeError as E, SessionMovePlacementStateSchema as F, SessionPlacementMoveSchema as G, SessionPlacementMachine as H, SessionMoveProfileTargetSchema as I, SessionPlacementRunnerSchema as J, SessionPlacementProtocolSchemas as K, SessionMoveTarget as L, SessionMovePlacement as M, SessionMovePlacementSchema as N, SessionMoveDeviceTargetSchema as O, SessionMovePlacementState as P, SessionPlacementWorkerRuntimeInstallSchema as Q, SessionMoveTargetSchema as R, readClawHubRiskAcknowledgementRequiredError as S, readGitHubPublicationSelectionRejectedError as T, SessionPlacementMachineSchema as U, SessionPlacementDiskSpaceSchema as V, SessionPlacementMove as W, SessionPlacementStateSchema as X, SessionPlacementSchema as Y, SessionPlacementWorkerRuntimeInstall as Z, TaskWorktreeSourceRequiredErrorDetails as _, ErrorCodes as a, SessionsMoveResult as at, WizardNotFoundErrorDetails as b, GatewayErrorDetails as c, SessionsReclaimParamsSchema as ct, MissingScopeErrorDetails as d, SessionsReclaimResultPlacementSchema as dt, SessionsDispatchParamsSchema as et, OutboundDeliveryQueuedErrorDetails as f, SessionsReclaimResultSchema as ft, SetupAdmissionBusyErrorDetails as g, SessionWorkspaceRecoveryRequiredErrorDetails as h, ErrorCode as i, SessionsMoveParamsSchema as it, SessionMoveGatewayTargetSchema as j, SessionMoveExpectedSource as k, GitHubPublicationSelectionRejectedErrorDetails as l, SessionsReclaimResult as lt, ProjectCloneFailureCause as m, ClawReviewRequiredErrorDetails as n, SessionsDispatchResultSchema as nt, GATEWAY_ASSISTANT_ERROR_FALLBACK_TEXT as o, SessionsMoveResultSchema as ot, ProjectCloneErrorDetails as p, SessionPlacementRunner as q, CronJobNotFoundErrorDetails as r, SessionsMoveParams as rt, GatewayErrorDetailCodes as s, SessionsReclaimParams as st, ClawHubRiskAcknowledgementRequiredErrorDetails as t, SessionsDispatchResult as tt, McpAppViewExpiredErrorDetails as u, SessionsReclaimResultPlacement as ut, UnknownAgentIdErrorDetails as v, readCronJobNotFoundError as w, isMcpAppViewExpiredError as x, UserPrefsLimitExceededErrorDetails as y, SessionPlacement as z };
@@ -1,2 +1,2 @@
1
- import { C as readMissingScopeErrorDetails, S as readMissingScopeError, _ as UserPrefsLimitExceededErrorDetails, a as GatewayErrorDetailCodes, b as readCronJobNotFoundError, c as McpAppViewExpiredErrorDetails, d as ProjectCloneErrorDetails, f as ProjectCloneFailureCause, g as UnknownAgentIdErrorDetails, h as TaskWorktreeSourceRequiredErrorDetails, i as GATEWAY_ASSISTANT_ERROR_FALLBACK_TEXT, l as MissingScopeErrorDetails, m as SetupAdmissionBusyErrorDetails, n as ErrorCode, o as GatewayErrorDetails, p as SessionWorkspaceRecoveryRequiredErrorDetails, r as ErrorCodes, s as GitHubPublicationSelectionRejectedErrorDetails, t as CronJobNotFoundErrorDetails, u as OutboundDeliveryQueuedErrorDetails, v as WizardNotFoundErrorDetails, x as readGitHubPublicationSelectionRejectedError, y as isMcpAppViewExpiredError } from "./gateway-error-details-CsyGNcmF.mjs";
2
- export { CronJobNotFoundErrorDetails, ErrorCode, ErrorCodes, GATEWAY_ASSISTANT_ERROR_FALLBACK_TEXT, GatewayErrorDetailCodes, GatewayErrorDetails, GitHubPublicationSelectionRejectedErrorDetails, McpAppViewExpiredErrorDetails, MissingScopeErrorDetails, OutboundDeliveryQueuedErrorDetails, ProjectCloneErrorDetails, ProjectCloneFailureCause, SessionWorkspaceRecoveryRequiredErrorDetails, SetupAdmissionBusyErrorDetails, TaskWorktreeSourceRequiredErrorDetails, UnknownAgentIdErrorDetails, UserPrefsLimitExceededErrorDetails, WizardNotFoundErrorDetails, isMcpAppViewExpiredError, readCronJobNotFoundError, readGitHubPublicationSelectionRejectedError, readMissingScopeError, readMissingScopeErrorDetails };
1
+ import { C as readClawReviewRequiredError, D as readMissingScopeErrorDetails, E as readMissingScopeError, S as readClawHubRiskAcknowledgementRequiredError, T as readGitHubPublicationSelectionRejectedError, _ as TaskWorktreeSourceRequiredErrorDetails, a as ErrorCodes, b as WizardNotFoundErrorDetails, c as GatewayErrorDetails, d as MissingScopeErrorDetails, f as OutboundDeliveryQueuedErrorDetails, g as SetupAdmissionBusyErrorDetails, h as SessionWorkspaceRecoveryRequiredErrorDetails, i as ErrorCode, l as GitHubPublicationSelectionRejectedErrorDetails, m as ProjectCloneFailureCause, n as ClawReviewRequiredErrorDetails, o as GATEWAY_ASSISTANT_ERROR_FALLBACK_TEXT, p as ProjectCloneErrorDetails, r as CronJobNotFoundErrorDetails, s as GatewayErrorDetailCodes, t as ClawHubRiskAcknowledgementRequiredErrorDetails, u as McpAppViewExpiredErrorDetails, v as UnknownAgentIdErrorDetails, w as readCronJobNotFoundError, x as isMcpAppViewExpiredError, y as UserPrefsLimitExceededErrorDetails } from "./gateway-error-details-BqRYhh5h.mjs";
2
+ export { ClawHubRiskAcknowledgementRequiredErrorDetails, ClawReviewRequiredErrorDetails, CronJobNotFoundErrorDetails, ErrorCode, ErrorCodes, GATEWAY_ASSISTANT_ERROR_FALLBACK_TEXT, GatewayErrorDetailCodes, GatewayErrorDetails, GitHubPublicationSelectionRejectedErrorDetails, McpAppViewExpiredErrorDetails, MissingScopeErrorDetails, OutboundDeliveryQueuedErrorDetails, ProjectCloneErrorDetails, ProjectCloneFailureCause, SessionWorkspaceRecoveryRequiredErrorDetails, SetupAdmissionBusyErrorDetails, TaskWorktreeSourceRequiredErrorDetails, UnknownAgentIdErrorDetails, UserPrefsLimitExceededErrorDetails, WizardNotFoundErrorDetails, isMcpAppViewExpiredError, readClawHubRiskAcknowledgementRequiredError, readClawReviewRequiredError, readCronJobNotFoundError, readGitHubPublicationSelectionRejectedError, readMissingScopeError, readMissingScopeErrorDetails };
@@ -34,8 +34,27 @@ const GatewayErrorDetailCodes = {
34
34
  GITHUB_PUBLICATION_SELECTION_REJECTED: "GITHUB_PUBLICATION_SELECTION_REJECTED",
35
35
  SESSION_WORKSPACE_RECOVERY_REQUIRED: "SESSION_WORKSPACE_RECOVERY_REQUIRED",
36
36
  TASK_WORKTREE_SOURCE_REQUIRED: "TASK_WORKTREE_SOURCE_REQUIRED",
37
- TASK_HISTORY_PREVIEW_CAPACITY: "TASK_HISTORY_PREVIEW_CAPACITY"
37
+ TASK_HISTORY_PREVIEW_CAPACITY: "TASK_HISTORY_PREVIEW_CAPACITY",
38
+ CLAWHUB_RISK_ACKNOWLEDGEMENT_REQUIRED: "CLAWHUB_RISK_ACKNOWLEDGEMENT_REQUIRED",
39
+ CLAW_REVIEW_REQUIRED: "CLAW_REVIEW_REQUIRED"
38
40
  };
41
+ function readClawHubRiskAcknowledgementRequiredError(error) {
42
+ const record = asNullableRecord(error);
43
+ const details = asNullableRecord(record?.details);
44
+ const warning = typeof details?.warning === "string" ? details.warning.trim() : "";
45
+ return record?.code === ErrorCodes.INVALID_REQUEST && details?.code === GatewayErrorDetailCodes.CLAWHUB_RISK_ACKNOWLEDGEMENT_REQUIRED && warning ? {
46
+ code: GatewayErrorDetailCodes.CLAWHUB_RISK_ACKNOWLEDGEMENT_REQUIRED,
47
+ warning
48
+ } : null;
49
+ }
50
+ function readClawReviewRequiredError(error) {
51
+ const record = asNullableRecord(error);
52
+ const details = asNullableRecord(record?.details);
53
+ return record?.code === ErrorCodes.INVALID_REQUEST && details?.code === GatewayErrorDetailCodes.CLAW_REVIEW_REQUIRED && (details.kind === "plugin" || details.kind === "skill") ? {
54
+ code: GatewayErrorDetailCodes.CLAW_REVIEW_REQUIRED,
55
+ kind: details.kind
56
+ } : null;
57
+ }
39
58
  const LEGACY_MISSING_SCOPE_PATTERN = /\bmissing scope:\s*([a-z0-9._-]+)/i;
40
59
  function readGitHubPublicationSelectionRejectedError(error) {
41
60
  const record = asNullableRecord(error);
@@ -92,4 +111,4 @@ function readMissingScopeError(error) {
92
111
  } : null;
93
112
  }
94
113
  //#endregion
95
- export { ErrorCodes, GATEWAY_ASSISTANT_ERROR_FALLBACK_TEXT, GatewayErrorDetailCodes, isMcpAppViewExpiredError, readCronJobNotFoundError, readGitHubPublicationSelectionRejectedError, readMissingScopeError, readMissingScopeErrorDetails };
114
+ export { ErrorCodes, GATEWAY_ASSISTANT_ERROR_FALLBACK_TEXT, GatewayErrorDetailCodes, isMcpAppViewExpiredError, readClawHubRiskAcknowledgementRequiredError, readClawReviewRequiredError, readCronJobNotFoundError, readGitHubPublicationSelectionRejectedError, readMissingScopeError, readMissingScopeErrorDetails };