@openclaw/gateway-protocol 2026.8.1-beta.3 → 2026.8.2
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/CHANGELOG.md +111 -17
- package/README.md +13 -2
- package/dist/client-info.d.mts +34 -23
- package/dist/client-info.mjs +2 -1
- package/dist/connect-error-details.d.mts +20 -21
- package/dist/frame-guards.d.mts +4 -5
- package/dist/{frames-BKvowx_k.d.mts → frames-CAy_vx4s.d.mts} +15 -14
- package/dist/{gateway-error-details-DR-CyzeW.d.mts → gateway-error-details-GvUeus2z.d.mts} +20 -8
- package/dist/gateway-error-details.d.mts +2 -2
- package/dist/gateway-error-details.mjs +8 -4
- package/dist/index.d.mts +1419 -440
- package/dist/index.mjs +77 -5
- package/dist/restart-unavailable.d.mts +8 -0
- package/dist/restart-unavailable.mjs +13 -0
- package/dist/{schema-modules-CriS_x5c.d.mts → schema-modules-BtfLOmFu.d.mts} +4903 -833
- package/dist/schema.d.mts +3494 -48
- package/dist/schema.mjs +45 -4
- package/dist/startup-unavailable.d.mts +9 -10
- package/dist/{worktrees-D1V7ClOO.mjs → worktrees-DtrYnQGm.mjs} +1123 -173
- package/package.json +8 -3
- package/protocol.schema.json +24973 -1679
|
@@ -28,13 +28,15 @@ const GatewayErrorDetailCodes = {
|
|
|
28
28
|
SKILL_PROPOSAL_REVISION_CHANGED: "SKILL_PROPOSAL_REVISION_CHANGED",
|
|
29
29
|
PROJECT_CLONE_FAILED: "PROJECT_CLONE_FAILED",
|
|
30
30
|
UNKNOWN_AGENT_ID: "UNKNOWN_AGENT_ID",
|
|
31
|
-
WIZARD_NOT_FOUND: "WIZARD_NOT_FOUND"
|
|
31
|
+
WIZARD_NOT_FOUND: "WIZARD_NOT_FOUND",
|
|
32
|
+
SETUP_ADMISSION_BUSY: "SETUP_ADMISSION_BUSY"
|
|
32
33
|
};
|
|
33
34
|
const LEGACY_MISSING_SCOPE_PATTERN = /\bmissing scope:\s*([a-z0-9._-]+)/i;
|
|
34
35
|
const SHA256_PATTERN = /^[a-fA-F0-9]{64}$/;
|
|
35
36
|
/** Reads a typed cron lookup miss without parsing operator-facing prose. */
|
|
36
37
|
function readCronJobNotFoundError(error) {
|
|
37
|
-
const
|
|
38
|
+
const record = asNullableRecord(error);
|
|
39
|
+
const details = asNullableRecord(record?.details);
|
|
38
40
|
if (details?.code !== GatewayErrorDetailCodes.CRON_JOB_NOT_FOUND) return null;
|
|
39
41
|
const jobId = typeof details.jobId === "string" ? details.jobId.trim() : "";
|
|
40
42
|
return jobId ? {
|
|
@@ -52,7 +54,8 @@ function buildSkillProposalRevisionChangedErrorDetails(params) {
|
|
|
52
54
|
}
|
|
53
55
|
/** Reads a stale Skill Workshop decision without parsing operator-facing prose. */
|
|
54
56
|
function readSkillProposalRevisionChangedError(error) {
|
|
55
|
-
const
|
|
57
|
+
const record = asNullableRecord(error);
|
|
58
|
+
const details = asNullableRecord(record?.details);
|
|
56
59
|
if (details?.code !== GatewayErrorDetailCodes.SKILL_PROPOSAL_REVISION_CHANGED) return null;
|
|
57
60
|
const expectedRevisionHash = typeof details.expectedRevisionHash === "string" ? details.expectedRevisionHash : "";
|
|
58
61
|
const currentRevisionHash = typeof details.currentRevisionHash === "string" ? details.currentRevisionHash : "";
|
|
@@ -76,7 +79,8 @@ function readMissingScopeErrorDetails(details) {
|
|
|
76
79
|
};
|
|
77
80
|
}
|
|
78
81
|
function isMcpAppViewExpiredError(error) {
|
|
79
|
-
|
|
82
|
+
const record = asNullableRecord(error);
|
|
83
|
+
return asNullableRecord(record?.details)?.code === GatewayErrorDetailCodes.MCP_APP_VIEW_EXPIRED;
|
|
80
84
|
}
|
|
81
85
|
/**
|
|
82
86
|
* Reads a method-level missing-scope failure, preferring structured details.
|