@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.
- package/README.md +12 -0
- package/dist/client-info.d.mts +3 -1
- package/dist/client-info.mjs +4 -2
- package/dist/connect-error-details.d.mts +4 -3
- package/dist/connect-error-details.mjs +13 -16
- package/dist/frame-guards.d.mts +2 -2
- package/dist/frame-guards.mjs +4 -4
- package/dist/{frames-X2k-UkK8.d.mts → frames-ICrB58JF.d.mts} +54 -11
- package/dist/{gateway-error-details-Djlwga0B.d.mts → gateway-error-details-BH1DM8mu.d.mts} +467 -384
- package/dist/gateway-error-details.d.mts +2 -2
- package/dist/gateway-error-details.mjs +7 -6
- package/dist/index.d.mts +3774 -2694
- package/dist/index.mjs +191 -114
- package/dist/{protocol-value-normalization-DfM01tqg.mjs → protocol-value-normalization-Oati9UF1.mjs} +1 -1
- package/dist/{record-coerce-BVp8Dr-B.mjs → record-coerce-DVQGe6I0.mjs} +1 -1
- package/dist/restart-unavailable.d.mts +3 -1
- package/dist/restart-unavailable.mjs +4 -2
- package/dist/{schema-modules-CsQIRdwb.d.mts → schema-modules-CRgBq9O3.d.mts} +10619 -8499
- package/dist/schema.d.mts +10 -9
- package/dist/schema.mjs +97 -28
- package/dist/{server-capabilities-Gfkxm7Ho.mjs → server-capabilities-BnyAklc1.mjs} +7 -1
- package/dist/startup-unavailable.d.mts +1 -1
- package/dist/startup-unavailable.mjs +1 -1
- package/dist/{string-coerce-BJ6bjzdv.mjs → string-coerce-BSD-wsXs.mjs} +1 -1
- package/dist/system-agent-context.d.mts +8 -1
- package/dist/system-agent-context.mjs +56 -6
- package/dist/theme-_hQKgfH-.mjs +278 -0
- package/dist/theme-s6T9Ck6Z.d.mts +86 -0
- package/dist/theme.d.mts +2 -0
- package/dist/theme.mjs +2 -0
- package/dist/{tools-catalog-CF4aqT9l.mjs → tools-catalog-pKZZLiUu.mjs} +2810 -1982
- package/dist/{version-COV9CEyr.d.mts → version-BL42XeI-.d.mts} +1 -1
- package/dist/version.d.mts +1 -1
- package/dist/version.mjs +1 -1
- package/package.json +8 -3
- package/protocol.schema.json +28424 -17074
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { C as
|
|
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-
|
|
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
|
|
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
|
|
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,
|