@openclaw/gateway-protocol 2026.9.6 → 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 +4 -0
- package/dist/client-info.d.mts +2 -1
- package/dist/client-info.mjs +3 -2
- package/dist/connect-error-details.d.mts +4 -3
- package/dist/connect-error-details.mjs +13 -16
- package/dist/frame-guards.d.mts +2 -2
- package/dist/frame-guards.mjs +4 -4
- package/dist/{frames-DrA9fYYy.d.mts → frames-ICrB58JF.d.mts} +32 -11
- package/dist/{gateway-error-details-B0Ms-xqB.d.mts → gateway-error-details-BH1DM8mu.d.mts} +462 -385
- package/dist/gateway-error-details.d.mts +1 -1
- package/dist/gateway-error-details.mjs +6 -6
- package/dist/index.d.mts +3210 -2803
- package/dist/index.mjs +40 -110
- package/dist/{protocol-value-normalization-DfM01tqg.mjs → protocol-value-normalization-Oati9UF1.mjs} +1 -1
- package/dist/{record-coerce-BVp8Dr-B.mjs → record-coerce-DVQGe6I0.mjs} +1 -1
- package/dist/restart-unavailable.d.mts +3 -1
- package/dist/restart-unavailable.mjs +4 -2
- package/dist/{schema-modules-CClcdadz.d.mts → schema-modules-CRgBq9O3.d.mts} +2759 -1911
- package/dist/schema.d.mts +10 -9
- package/dist/schema.mjs +50 -21
- package/dist/{server-capabilities-CBMEqI9z.mjs → server-capabilities-BnyAklc1.mjs} +6 -1
- package/dist/startup-unavailable.d.mts +1 -1
- package/dist/startup-unavailable.mjs +1 -1
- package/dist/{string-coerce-BJ6bjzdv.mjs → string-coerce-BSD-wsXs.mjs} +1 -1
- package/dist/system-agent-context.d.mts +1 -1
- package/dist/system-agent-context.mjs +8 -7
- package/dist/{theme-DEbDprgp.mjs → theme-_hQKgfH-.mjs} +2 -2
- package/dist/{theme-C4mhgADx.d.mts → theme-s6T9Ck6Z.d.mts} +2 -2
- package/dist/theme.d.mts +1 -1
- package/dist/theme.mjs +1 -1
- package/dist/{tools-catalog-CRxZFldZ.mjs → tools-catalog-pKZZLiUu.mjs} +1046 -768
- package/dist/{version-COV9CEyr.d.mts → version-BL42XeI-.d.mts} +1 -1
- package/dist/version.d.mts +1 -1
- package/dist/version.mjs +1 -1
- package/package.json +3 -3
- package/protocol.schema.json +8776 -4444
|
@@ -1,2 +1,2 @@
|
|
|
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-
|
|
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
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. */
|
|
@@ -34,7 +34,8 @@ const GatewayErrorDetailCodes = {
|
|
|
34
34
|
SETUP_ADMISSION_BUSY: "SETUP_ADMISSION_BUSY",
|
|
35
35
|
GITHUB_PUBLICATION_SELECTION_REJECTED: "GITHUB_PUBLICATION_SELECTION_REJECTED",
|
|
36
36
|
SESSION_WORKSPACE_RECOVERY_REQUIRED: "SESSION_WORKSPACE_RECOVERY_REQUIRED",
|
|
37
|
-
TASK_WORKTREE_SOURCE_REQUIRED: "TASK_WORKTREE_SOURCE_REQUIRED"
|
|
37
|
+
TASK_WORKTREE_SOURCE_REQUIRED: "TASK_WORKTREE_SOURCE_REQUIRED",
|
|
38
|
+
TASK_HISTORY_PREVIEW_CAPACITY: "TASK_HISTORY_PREVIEW_CAPACITY"
|
|
38
39
|
};
|
|
39
40
|
const LEGACY_MISSING_SCOPE_PATTERN = /\bmissing scope:\s*([a-z0-9._-]+)/i;
|
|
40
41
|
const SHA256_PATTERN = /^[a-fA-F0-9]{64}$/;
|
|
@@ -104,10 +105,9 @@ function readMissingScopeError(error) {
|
|
|
104
105
|
if (!record) return null;
|
|
105
106
|
const structured = readMissingScopeErrorDetails(record.details);
|
|
106
107
|
if (structured) return structured;
|
|
107
|
-
const
|
|
108
|
-
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 : "";
|
|
109
109
|
if (code !== ErrorCodes.FORBIDDEN && code !== ErrorCodes.INVALID_REQUEST) return null;
|
|
110
|
-
const missingScope = (typeof
|
|
110
|
+
const missingScope = (typeof record.message === "string" ? record.message : "").match(LEGACY_MISSING_SCOPE_PATTERN)?.[1];
|
|
111
111
|
return missingScope ? {
|
|
112
112
|
code: GatewayErrorDetailCodes.MISSING_SCOPE,
|
|
113
113
|
missingScope,
|