@openclaw/gateway-protocol 2026.9.1 → 2026.9.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/dist/frame-guards.d.mts +1 -1
- package/dist/{frames-DNdJEs4Y.d.mts → frames-8A7sw44F.d.mts} +2 -0
- package/dist/{gateway-error-details-GvUeus2z.d.mts → gateway-error-details-qdj19LIh.d.mts} +9 -2
- package/dist/gateway-error-details.d.mts +2 -2
- package/dist/gateway-error-details.mjs +11 -2
- package/dist/index.d.mts +656 -50
- package/dist/index.mjs +36 -3
- package/dist/{schema-modules-Id_e1MtF.d.mts → schema-modules-CYD2e-5u.d.mts} +3591 -2537
- package/dist/schema.d.mts +2273 -1301
- package/dist/schema.mjs +90 -48
- package/dist/{worktrees-brAvxYC8.mjs → transcripts-DiXCa8Z2.mjs} +2676 -2030
- package/package.json +2 -2
- package/protocol.schema.json +11256 -5704
package/dist/frame-guards.d.mts
CHANGED
|
@@ -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 } from "./frames-
|
|
1
|
+
import { a as EventFrame, d as RequestFrame, l as HelloOk, p as ResponseFrame, r as ErrorShape, s as GatewayFrame, t as ConnectParams } from "./frames-8A7sw44F.mjs";
|
|
2
2
|
//#region 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;
|
|
@@ -253,6 +253,7 @@ declare const HelloOkSchema: Type.TObject<{
|
|
|
253
253
|
mainSessionKey: Type.TString;
|
|
254
254
|
scope: Type.TOptional<Type.TString>;
|
|
255
255
|
}>>;
|
|
256
|
+
controlUiIdentityUrl: Type.TOptional<Type.TString>;
|
|
256
257
|
authMode: Type.TOptional<Type.TUnion<[Type.TLiteral<"none">, Type.TLiteral<"token">, Type.TLiteral<"password">, Type.TLiteral<"trusted-proxy">]>>;
|
|
257
258
|
updateAvailable: Type.TOptional<Type.TObject<{
|
|
258
259
|
currentVersion: Type.TString;
|
|
@@ -324,6 +325,7 @@ declare const HelloOkSchema: Type.TObject<{
|
|
|
324
325
|
}>>;
|
|
325
326
|
}>>;
|
|
326
327
|
}>;
|
|
328
|
+
controlUiUrl: Type.TOptional<Type.TString>;
|
|
327
329
|
controlUiTabs: Type.TOptional<Type.TArray<Type.TObject<{
|
|
328
330
|
pluginId: Type.TString;
|
|
329
331
|
id: Type.TString;
|
|
@@ -31,6 +31,7 @@ declare const GatewayErrorDetailCodes: {
|
|
|
31
31
|
readonly UNKNOWN_AGENT_ID: "UNKNOWN_AGENT_ID";
|
|
32
32
|
readonly WIZARD_NOT_FOUND: "WIZARD_NOT_FOUND";
|
|
33
33
|
readonly SETUP_ADMISSION_BUSY: "SETUP_ADMISSION_BUSY";
|
|
34
|
+
readonly GITHUB_PUBLICATION_SELECTION_REJECTED: "GITHUB_PUBLICATION_SELECTION_REJECTED";
|
|
34
35
|
};
|
|
35
36
|
/** Missing cron automation identified by its exact store key. */
|
|
36
37
|
type CronJobNotFoundErrorDetails = {
|
|
@@ -64,6 +65,11 @@ type UnknownAgentIdErrorDetails = {
|
|
|
64
65
|
type SetupAdmissionBusyErrorDetails = {
|
|
65
66
|
code: typeof GatewayErrorDetailCodes.SETUP_ADMISSION_BUSY;
|
|
66
67
|
};
|
|
68
|
+
/** This invocation rejected its selection before admission; earlier calls may still be pending. */
|
|
69
|
+
type GitHubPublicationSelectionRejectedErrorDetails = {
|
|
70
|
+
code: typeof GatewayErrorDetailCodes.GITHUB_PUBLICATION_SELECTION_REJECTED;
|
|
71
|
+
idempotencyKey: string;
|
|
72
|
+
};
|
|
67
73
|
/** Missing or expired process-local setup wizard session. */
|
|
68
74
|
type WizardNotFoundErrorDetails = {
|
|
69
75
|
code: typeof GatewayErrorDetailCodes.WIZARD_NOT_FOUND;
|
|
@@ -80,7 +86,8 @@ type SkillProposalRevisionChangedErrorDetails = {
|
|
|
80
86
|
currentRevisionHash: string;
|
|
81
87
|
};
|
|
82
88
|
/** Structured details emitted by method-level failures. */
|
|
83
|
-
type GatewayErrorDetails = CronJobNotFoundErrorDetails | MissingScopeErrorDetails | McpAppViewExpiredErrorDetails | OutboundDeliveryQueuedErrorDetails | UserPrefsLimitExceededErrorDetails | SkillProposalRevisionChangedErrorDetails | ProjectCloneErrorDetails | UnknownAgentIdErrorDetails | WizardNotFoundErrorDetails | SetupAdmissionBusyErrorDetails;
|
|
89
|
+
type GatewayErrorDetails = CronJobNotFoundErrorDetails | MissingScopeErrorDetails | McpAppViewExpiredErrorDetails | OutboundDeliveryQueuedErrorDetails | UserPrefsLimitExceededErrorDetails | SkillProposalRevisionChangedErrorDetails | ProjectCloneErrorDetails | UnknownAgentIdErrorDetails | WizardNotFoundErrorDetails | SetupAdmissionBusyErrorDetails | GitHubPublicationSelectionRejectedErrorDetails;
|
|
90
|
+
declare function readGitHubPublicationSelectionRejectedError(error: unknown): GitHubPublicationSelectionRejectedErrorDetails | null;
|
|
84
91
|
/** Reads a typed cron lookup miss without parsing operator-facing prose. */
|
|
85
92
|
declare function readCronJobNotFoundError(error: unknown): CronJobNotFoundErrorDetails | null;
|
|
86
93
|
/** Builds the canonical stale-draft details shared by Skill Workshop RPCs. */
|
|
@@ -99,4 +106,4 @@ declare function isMcpAppViewExpiredError(error: unknown): boolean;
|
|
|
99
106
|
*/
|
|
100
107
|
declare function readMissingScopeError(error: unknown): MissingScopeErrorDetails | null;
|
|
101
108
|
//#endregion
|
|
102
|
-
export {
|
|
109
|
+
export { readSkillProposalRevisionChangedError as C, readMissingScopeErrorDetails as S, buildSkillProposalRevisionChangedErrorDetails as _, GatewayErrorDetails as a, readGitHubPublicationSelectionRejectedError as b, MissingScopeErrorDetails as c, ProjectCloneFailureCause as d, SetupAdmissionBusyErrorDetails as f, WizardNotFoundErrorDetails as g, UserPrefsLimitExceededErrorDetails as h, GatewayErrorDetailCodes as i, OutboundDeliveryQueuedErrorDetails as l, UnknownAgentIdErrorDetails as m, ErrorCode as n, GitHubPublicationSelectionRejectedErrorDetails as o, SkillProposalRevisionChangedErrorDetails as p, ErrorCodes as r, McpAppViewExpiredErrorDetails as s, CronJobNotFoundErrorDetails as t, ProjectCloneErrorDetails as u, isMcpAppViewExpiredError as v, readMissingScopeError as x, readCronJobNotFoundError as y };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { _ as
|
|
2
|
-
export { CronJobNotFoundErrorDetails, ErrorCode, ErrorCodes, GatewayErrorDetailCodes, GatewayErrorDetails, McpAppViewExpiredErrorDetails, MissingScopeErrorDetails, OutboundDeliveryQueuedErrorDetails, ProjectCloneErrorDetails, ProjectCloneFailureCause, SetupAdmissionBusyErrorDetails, SkillProposalRevisionChangedErrorDetails, UnknownAgentIdErrorDetails, UserPrefsLimitExceededErrorDetails, WizardNotFoundErrorDetails, buildSkillProposalRevisionChangedErrorDetails, isMcpAppViewExpiredError, readCronJobNotFoundError, readMissingScopeError, readMissingScopeErrorDetails, readSkillProposalRevisionChangedError };
|
|
1
|
+
import { C as readSkillProposalRevisionChangedError, S as readMissingScopeErrorDetails, _ as buildSkillProposalRevisionChangedErrorDetails, a as GatewayErrorDetails, b as readGitHubPublicationSelectionRejectedError, c as MissingScopeErrorDetails, d as ProjectCloneFailureCause, f as SetupAdmissionBusyErrorDetails, g as WizardNotFoundErrorDetails, h as UserPrefsLimitExceededErrorDetails, i as GatewayErrorDetailCodes, l as OutboundDeliveryQueuedErrorDetails, m as UnknownAgentIdErrorDetails, n as ErrorCode, o as GitHubPublicationSelectionRejectedErrorDetails, p as SkillProposalRevisionChangedErrorDetails, r as ErrorCodes, s as McpAppViewExpiredErrorDetails, t as CronJobNotFoundErrorDetails, u as ProjectCloneErrorDetails, v as isMcpAppViewExpiredError, x as readMissingScopeError, y as readCronJobNotFoundError } from "./gateway-error-details-qdj19LIh.mjs";
|
|
2
|
+
export { CronJobNotFoundErrorDetails, ErrorCode, ErrorCodes, GatewayErrorDetailCodes, GatewayErrorDetails, GitHubPublicationSelectionRejectedErrorDetails, McpAppViewExpiredErrorDetails, MissingScopeErrorDetails, OutboundDeliveryQueuedErrorDetails, ProjectCloneErrorDetails, ProjectCloneFailureCause, SetupAdmissionBusyErrorDetails, SkillProposalRevisionChangedErrorDetails, UnknownAgentIdErrorDetails, UserPrefsLimitExceededErrorDetails, WizardNotFoundErrorDetails, buildSkillProposalRevisionChangedErrorDetails, isMcpAppViewExpiredError, readCronJobNotFoundError, readGitHubPublicationSelectionRejectedError, readMissingScopeError, readMissingScopeErrorDetails, readSkillProposalRevisionChangedError };
|
|
@@ -29,10 +29,19 @@ const GatewayErrorDetailCodes = {
|
|
|
29
29
|
PROJECT_CLONE_FAILED: "PROJECT_CLONE_FAILED",
|
|
30
30
|
UNKNOWN_AGENT_ID: "UNKNOWN_AGENT_ID",
|
|
31
31
|
WIZARD_NOT_FOUND: "WIZARD_NOT_FOUND",
|
|
32
|
-
SETUP_ADMISSION_BUSY: "SETUP_ADMISSION_BUSY"
|
|
32
|
+
SETUP_ADMISSION_BUSY: "SETUP_ADMISSION_BUSY",
|
|
33
|
+
GITHUB_PUBLICATION_SELECTION_REJECTED: "GITHUB_PUBLICATION_SELECTION_REJECTED"
|
|
33
34
|
};
|
|
34
35
|
const LEGACY_MISSING_SCOPE_PATTERN = /\bmissing scope:\s*([a-z0-9._-]+)/i;
|
|
35
36
|
const SHA256_PATTERN = /^[a-fA-F0-9]{64}$/;
|
|
37
|
+
function readGitHubPublicationSelectionRejectedError(error) {
|
|
38
|
+
const record = asNullableRecord(error);
|
|
39
|
+
const details = asNullableRecord(record?.details);
|
|
40
|
+
return record?.code === ErrorCodes.UNAVAILABLE && details?.code === GatewayErrorDetailCodes.GITHUB_PUBLICATION_SELECTION_REJECTED && Object.keys(details).length === 2 && typeof details.idempotencyKey === "string" && details.idempotencyKey.length > 0 ? {
|
|
41
|
+
code: details.code,
|
|
42
|
+
idempotencyKey: details.idempotencyKey
|
|
43
|
+
} : null;
|
|
44
|
+
}
|
|
36
45
|
/** Reads a typed cron lookup miss without parsing operator-facing prose. */
|
|
37
46
|
function readCronJobNotFoundError(error) {
|
|
38
47
|
const record = asNullableRecord(error);
|
|
@@ -102,4 +111,4 @@ function readMissingScopeError(error) {
|
|
|
102
111
|
} : null;
|
|
103
112
|
}
|
|
104
113
|
//#endregion
|
|
105
|
-
export { ErrorCodes, GatewayErrorDetailCodes, buildSkillProposalRevisionChangedErrorDetails, isMcpAppViewExpiredError, readCronJobNotFoundError, readMissingScopeError, readMissingScopeErrorDetails, readSkillProposalRevisionChangedError };
|
|
114
|
+
export { ErrorCodes, GatewayErrorDetailCodes, buildSkillProposalRevisionChangedErrorDetails, isMcpAppViewExpiredError, readCronJobNotFoundError, readGitHubPublicationSelectionRejectedError, readMissingScopeError, readMissingScopeErrorDetails, readSkillProposalRevisionChangedError };
|