@openclaw/gateway-protocol 2026.9.5 → 2026.9.7

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.
Files changed (36) hide show
  1. package/README.md +12 -0
  2. package/dist/client-info.d.mts +3 -1
  3. package/dist/client-info.mjs +4 -2
  4. package/dist/connect-error-details.d.mts +4 -3
  5. package/dist/connect-error-details.mjs +13 -16
  6. package/dist/frame-guards.d.mts +2 -2
  7. package/dist/frame-guards.mjs +4 -4
  8. package/dist/{frames-X2k-UkK8.d.mts → frames-ICrB58JF.d.mts} +54 -11
  9. package/dist/{gateway-error-details-Djlwga0B.d.mts → gateway-error-details-BH1DM8mu.d.mts} +467 -384
  10. package/dist/gateway-error-details.d.mts +2 -2
  11. package/dist/gateway-error-details.mjs +7 -6
  12. package/dist/index.d.mts +3774 -2694
  13. package/dist/index.mjs +191 -114
  14. package/dist/{protocol-value-normalization-DfM01tqg.mjs → protocol-value-normalization-Oati9UF1.mjs} +1 -1
  15. package/dist/{record-coerce-BVp8Dr-B.mjs → record-coerce-DVQGe6I0.mjs} +1 -1
  16. package/dist/restart-unavailable.d.mts +3 -1
  17. package/dist/restart-unavailable.mjs +4 -2
  18. package/dist/{schema-modules-CsQIRdwb.d.mts → schema-modules-CRgBq9O3.d.mts} +10619 -8499
  19. package/dist/schema.d.mts +10 -9
  20. package/dist/schema.mjs +97 -28
  21. package/dist/{server-capabilities-Gfkxm7Ho.mjs → server-capabilities-BnyAklc1.mjs} +7 -1
  22. package/dist/startup-unavailable.d.mts +1 -1
  23. package/dist/startup-unavailable.mjs +1 -1
  24. package/dist/{string-coerce-BJ6bjzdv.mjs → string-coerce-BSD-wsXs.mjs} +1 -1
  25. package/dist/system-agent-context.d.mts +8 -1
  26. package/dist/system-agent-context.mjs +56 -6
  27. package/dist/theme-_hQKgfH-.mjs +278 -0
  28. package/dist/theme-s6T9Ck6Z.d.mts +86 -0
  29. package/dist/theme.d.mts +2 -0
  30. package/dist/theme.mjs +2 -0
  31. package/dist/{tools-catalog-CF4aqT9l.mjs → tools-catalog-pKZZLiUu.mjs} +2810 -1982
  32. package/dist/{version-COV9CEyr.d.mts → version-BL42XeI-.d.mts} +1 -1
  33. package/dist/version.d.mts +1 -1
  34. package/dist/version.mjs +1 -1
  35. package/package.json +8 -3
  36. package/protocol.schema.json +28424 -17074
@@ -1,2 +1,2 @@
1
- import { C as readMissingScopeError, S as readGitHubPublicationSelectionRejectedError, T as readSkillProposalRevisionChangedError, _ as UserPrefsLimitExceededErrorDetails, a as GatewayErrorDetailCodes, b as isMcpAppViewExpiredError, c as McpAppViewExpiredErrorDetails, d as ProjectCloneErrorDetails, f as ProjectCloneFailureCause, g as UnknownAgentIdErrorDetails, h as SkillProposalRevisionChangedErrorDetails, 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, w as readMissingScopeErrorDetails, x as readCronJobNotFoundError, y as buildSkillProposalRevisionChangedErrorDetails } from "./gateway-error-details-Djlwga0B.mjs";
2
- export { CronJobNotFoundErrorDetails, ErrorCode, ErrorCodes, GATEWAY_ASSISTANT_ERROR_FALLBACK_TEXT, GatewayErrorDetailCodes, GatewayErrorDetails, GitHubPublicationSelectionRejectedErrorDetails, McpAppViewExpiredErrorDetails, MissingScopeErrorDetails, OutboundDeliveryQueuedErrorDetails, ProjectCloneErrorDetails, ProjectCloneFailureCause, SessionWorkspaceRecoveryRequiredErrorDetails, SetupAdmissionBusyErrorDetails, SkillProposalRevisionChangedErrorDetails, UnknownAgentIdErrorDetails, UserPrefsLimitExceededErrorDetails, WizardNotFoundErrorDetails, buildSkillProposalRevisionChangedErrorDetails, isMcpAppViewExpiredError, readCronJobNotFoundError, readGitHubPublicationSelectionRejectedError, readMissingScopeError, readMissingScopeErrorDetails, readSkillProposalRevisionChangedError };
1
+ import { C as readGitHubPublicationSelectionRejectedError, E as readSkillProposalRevisionChangedError, S as readCronJobNotFoundError, T as readMissingScopeErrorDetails, _ as UnknownAgentIdErrorDetails, a as GatewayErrorDetailCodes, b as buildSkillProposalRevisionChangedErrorDetails, c as McpAppViewExpiredErrorDetails, d as ProjectCloneErrorDetails, f as ProjectCloneFailureCause, g as TaskWorktreeSourceRequiredErrorDetails, h as SkillProposalRevisionChangedErrorDetails, 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 UserPrefsLimitExceededErrorDetails, w as readMissingScopeError, x as isMcpAppViewExpiredError, y as WizardNotFoundErrorDetails } from "./gateway-error-details-BH1DM8mu.mjs";
2
+ export { CronJobNotFoundErrorDetails, ErrorCode, ErrorCodes, GATEWAY_ASSISTANT_ERROR_FALLBACK_TEXT, GatewayErrorDetailCodes, GatewayErrorDetails, GitHubPublicationSelectionRejectedErrorDetails, McpAppViewExpiredErrorDetails, MissingScopeErrorDetails, OutboundDeliveryQueuedErrorDetails, ProjectCloneErrorDetails, ProjectCloneFailureCause, SessionWorkspaceRecoveryRequiredErrorDetails, SetupAdmissionBusyErrorDetails, SkillProposalRevisionChangedErrorDetails, TaskWorktreeSourceRequiredErrorDetails, UnknownAgentIdErrorDetails, UserPrefsLimitExceededErrorDetails, WizardNotFoundErrorDetails, buildSkillProposalRevisionChangedErrorDetails, isMcpAppViewExpiredError, readCronJobNotFoundError, readGitHubPublicationSelectionRejectedError, readMissingScopeError, readMissingScopeErrorDetails, readSkillProposalRevisionChangedError };
@@ -1,5 +1,5 @@
1
- import { t as asNullableRecord } from "./record-coerce-BVp8Dr-B.mjs";
2
- //#region src/gateway-error-details.ts
1
+ import { t as asNullableRecord } from "./record-coerce-DVQGe6I0.mjs";
2
+ //#region packages/gateway-protocol/src/gateway-error-details.ts
3
3
  /** Display projection for an assistant failure without visible reply content. */
4
4
  const GATEWAY_ASSISTANT_ERROR_FALLBACK_TEXT = "The agent run failed before producing a reply.";
5
5
  /** Gateway JSON-RPC style error codes shared by clients and server handlers. */
@@ -33,7 +33,9 @@ const GatewayErrorDetailCodes = {
33
33
  WIZARD_NOT_FOUND: "WIZARD_NOT_FOUND",
34
34
  SETUP_ADMISSION_BUSY: "SETUP_ADMISSION_BUSY",
35
35
  GITHUB_PUBLICATION_SELECTION_REJECTED: "GITHUB_PUBLICATION_SELECTION_REJECTED",
36
- SESSION_WORKSPACE_RECOVERY_REQUIRED: "SESSION_WORKSPACE_RECOVERY_REQUIRED"
36
+ SESSION_WORKSPACE_RECOVERY_REQUIRED: "SESSION_WORKSPACE_RECOVERY_REQUIRED",
37
+ TASK_WORKTREE_SOURCE_REQUIRED: "TASK_WORKTREE_SOURCE_REQUIRED",
38
+ TASK_HISTORY_PREVIEW_CAPACITY: "TASK_HISTORY_PREVIEW_CAPACITY"
37
39
  };
38
40
  const LEGACY_MISSING_SCOPE_PATTERN = /\bmissing scope:\s*([a-z0-9._-]+)/i;
39
41
  const SHA256_PATTERN = /^[a-fA-F0-9]{64}$/;
@@ -103,10 +105,9 @@ function readMissingScopeError(error) {
103
105
  if (!record) return null;
104
106
  const structured = readMissingScopeErrorDetails(record.details);
105
107
  if (structured) return structured;
106
- const gatewayError = record;
107
- const code = typeof gatewayError.gatewayCode === "string" ? gatewayError.gatewayCode : typeof gatewayError.code === "string" ? gatewayError.code : "";
108
+ const code = typeof record.gatewayCode === "string" ? record.gatewayCode : typeof record.code === "string" ? record.code : "";
108
109
  if (code !== ErrorCodes.FORBIDDEN && code !== ErrorCodes.INVALID_REQUEST) return null;
109
- const missingScope = (typeof gatewayError.message === "string" ? gatewayError.message : "").match(LEGACY_MISSING_SCOPE_PATTERN)?.[1];
110
+ const missingScope = (typeof record.message === "string" ? record.message : "").match(LEGACY_MISSING_SCOPE_PATTERN)?.[1];
110
111
  return missingScope ? {
111
112
  code: GatewayErrorDetailCodes.MISSING_SCOPE,
112
113
  missingScope,