@getmateo/protocol 0.19.13 → 0.19.14
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/browser-automation/capabilities.d.ts +1 -1
- package/dist/browser-automation/rpc-schemas.d.ts +1 -1
- package/dist/generated/validation/ws-outbound-schema-metadata.d.ts +93 -55
- package/dist/generated/validation/ws-outbound-schema-metadata.js +1 -0
- package/dist/generated/validation/ws-outbound.aot.d.ts +2 -0
- package/dist/generated/validation/ws-outbound.aot.js +560 -299
- package/dist/messages.d.ts +355 -133
- package/dist/messages.js +48 -0
- package/dist/notification-preferences.d.ts +59 -0
- package/dist/notification-preferences.js +119 -0
- package/dist/validation/ws-outbound-envelope.d.ts +67 -32
- package/package.json +1 -1
|
@@ -11,7 +11,7 @@ function __fin(e, d) { for (var i = 0; i < e.length; i++) {
|
|
|
11
11
|
e[i].message = __msg(e[i]);
|
|
12
12
|
e[i].input = undefined;
|
|
13
13
|
} return e.length ? { success: false, error: new __ZodError(e) } : { success: true, data: d }; }
|
|
14
|
-
import { SessionOutboundMessage102 as __src_SessionOutboundMessage102, SessionOutboundMessage103 as __src_SessionOutboundMessage103, SessionOutboundMessage111 as __src_SessionOutboundMessage111, SessionOutboundMessage112 as __src_SessionOutboundMessage112, SessionOutboundMessage116 as __src_SessionOutboundMessage116, SessionOutboundMessage117 as __src_SessionOutboundMessage117, SessionOutboundMessage118 as __src_SessionOutboundMessage118, SessionOutboundMessage119 as __src_SessionOutboundMessage119, SessionOutboundMessage120 as __src_SessionOutboundMessage120, SessionOutboundMessage121 as __src_SessionOutboundMessage121, SessionOutboundMessage122 as __src_SessionOutboundMessage122, SessionOutboundMessage135 as __src_SessionOutboundMessage135, SessionOutboundMessage136 as __src_SessionOutboundMessage136, SessionOutboundMessage137 as __src_SessionOutboundMessage137, SessionOutboundMessage138 as __src_SessionOutboundMessage138, SessionOutboundMessage149 as __src_SessionOutboundMessage149, SessionOutboundMessage155 as __src_SessionOutboundMessage155, SessionOutboundMessage156 as __src_SessionOutboundMessage156, SessionOutboundMessage161 as __src_SessionOutboundMessage161, SessionOutboundMessage162 as __src_SessionOutboundMessage162, SessionOutboundMessage179 as __src_SessionOutboundMessage179, SessionOutboundMessage180 as __src_SessionOutboundMessage180, SessionOutboundMessage181 as __src_SessionOutboundMessage181, SessionOutboundMessage182 as __src_SessionOutboundMessage182, SessionOutboundMessage192 as __src_SessionOutboundMessage192, SessionOutboundMessage195 as __src_SessionOutboundMessage195, SessionOutboundMessage216 as __src_SessionOutboundMessage216, SessionOutboundMessage217 as __src_SessionOutboundMessage217, SessionOutboundMessage23 as __src_SessionOutboundMessage23,
|
|
14
|
+
import { SessionOutboundMessage102 as __src_SessionOutboundMessage102, SessionOutboundMessage103 as __src_SessionOutboundMessage103, SessionOutboundMessage111 as __src_SessionOutboundMessage111, SessionOutboundMessage112 as __src_SessionOutboundMessage112, SessionOutboundMessage116 as __src_SessionOutboundMessage116, SessionOutboundMessage117 as __src_SessionOutboundMessage117, SessionOutboundMessage118 as __src_SessionOutboundMessage118, SessionOutboundMessage119 as __src_SessionOutboundMessage119, SessionOutboundMessage120 as __src_SessionOutboundMessage120, SessionOutboundMessage121 as __src_SessionOutboundMessage121, SessionOutboundMessage122 as __src_SessionOutboundMessage122, SessionOutboundMessage135 as __src_SessionOutboundMessage135, SessionOutboundMessage136 as __src_SessionOutboundMessage136, SessionOutboundMessage137 as __src_SessionOutboundMessage137, SessionOutboundMessage138 as __src_SessionOutboundMessage138, SessionOutboundMessage149 as __src_SessionOutboundMessage149, SessionOutboundMessage155 as __src_SessionOutboundMessage155, SessionOutboundMessage156 as __src_SessionOutboundMessage156, SessionOutboundMessage161 as __src_SessionOutboundMessage161, SessionOutboundMessage162 as __src_SessionOutboundMessage162, SessionOutboundMessage179 as __src_SessionOutboundMessage179, SessionOutboundMessage180 as __src_SessionOutboundMessage180, SessionOutboundMessage181 as __src_SessionOutboundMessage181, SessionOutboundMessage182 as __src_SessionOutboundMessage182, SessionOutboundMessage192 as __src_SessionOutboundMessage192, SessionOutboundMessage195 as __src_SessionOutboundMessage195, SessionOutboundMessage216 as __src_SessionOutboundMessage216, SessionOutboundMessage217 as __src_SessionOutboundMessage217, SessionOutboundMessage23 as __src_SessionOutboundMessage23, SessionOutboundMessage251 as __src_SessionOutboundMessage251, SessionOutboundMessage253 as __src_SessionOutboundMessage253, SessionOutboundMessage254 as __src_SessionOutboundMessage254, SessionOutboundMessage255 as __src_SessionOutboundMessage255, SessionOutboundMessage27 as __src_SessionOutboundMessage27, SessionOutboundMessage30 as __src_SessionOutboundMessage30, SessionOutboundMessage31 as __src_SessionOutboundMessage31, SessionOutboundMessage32 as __src_SessionOutboundMessage32, SessionOutboundMessage69 as __src_SessionOutboundMessage69, SessionOutboundMessage70 as __src_SessionOutboundMessage70, SessionOutboundMessage79 as __src_SessionOutboundMessage79, SessionOutboundMessage80 as __src_SessionOutboundMessage80, SessionOutboundMessage81 as __src_SessionOutboundMessage81, SessionOutboundMessage82 as __src_SessionOutboundMessage82, SessionOutboundMessage84 as __src_SessionOutboundMessage84, SessionOutboundMessage85 as __src_SessionOutboundMessage85, SessionOutboundMessage86 as __src_SessionOutboundMessage86, SessionOutboundMessage87 as __src_SessionOutboundMessage87, SessionOutboundMessage89 as __src_SessionOutboundMessage89, SessionOutboundMessage92 as __src_SessionOutboundMessage92, SessionOutboundMessage96 as __src_SessionOutboundMessage96, SessionOutboundMessage97 as __src_SessionOutboundMessage97, SessionOutboundMessage98 as __src_SessionOutboundMessage98 } from "./ws-outbound-schema-metadata.js";
|
|
15
15
|
export const SessionOutboundMessage0 = /* @__PURE__ */ (() => {
|
|
16
16
|
var __enumSet_1 = new Set(["none", "password", "localCredential", "device", "peer", "service"]);
|
|
17
17
|
var __enumSet_2 = new Set(["local", "direct", "relay", "hub"]);
|
|
@@ -48264,7 +48264,7 @@ export const SessionOutboundMessage161 = /* @__PURE__ */ (() => {
|
|
|
48264
48264
|
var __set_enum_29 = new Set(["NOT_GIT_REPO", "NOT_ALLOWED", "MERGE_CONFLICT", "UNKNOWN"]);
|
|
48265
48265
|
var __set_enum_30 = new Set(["tracked", "none", "gone", "unknown"]);
|
|
48266
48266
|
function safeParse_SessionOutboundMessage161(input) {
|
|
48267
|
-
if (typeof input === "object" && input !== null && !Array.isArray(input) && input["type"] === "checkout_status_response" && ((typeof input["payload"] === "object" && input["payload"] !== null && !Array.isArray(input["payload"]) && typeof input["payload"]["cwd"] === "string" && (input["payload"]["error"] === null || (typeof input["payload"]["error"] === "object" && input["payload"]["error"] !== null && !Array.isArray(input["payload"]["error"]) && __enumSet_0.has(input["payload"]["error"]["code"]) && typeof input["payload"]["error"]["message"] === "string")) && typeof input["payload"]["requestId"] === "string" && (input["payload"]["upstreamRef"] === undefined || ((input["payload"]["upstreamRef"] === null || (typeof input["payload"]["upstreamRef"] === "string")))) && (input["payload"]["upstreamState"] === undefined || (__enumSet_1.has(input["payload"]["upstreamState"]))) && (input["payload"]["firstPushRemote"] === undefined || ((input["payload"]["firstPushRemote"] === null || (typeof input["payload"]["firstPushRemote"] === "string")))) && input["payload"]["isGit"] === false && input["payload"]["isMateoOwnedWorktree"] === false && input["payload"]["repoRoot"] === null && input["payload"]["currentBranch"] === null && input["payload"]["isDirty"] === null && input["payload"]["baseRef"] === null && input["payload"]["aheadBehind"] === null && input["payload"]["aheadOfOrigin"] === null && input["payload"]["behindOfOrigin"] === null && typeof input["payload"]["hasRemote"] === "boolean" && input["payload"]["remoteUrl"] === null) || (typeof input["payload"] === "object" && input["payload"] !== null && !Array.isArray(input["payload"]) && typeof input["payload"]["cwd"] === "string" && (input["payload"]["error"] === null || (typeof input["payload"]["error"] === "object" && input["payload"]["error"] !== null && !Array.isArray(input["payload"]["error"]) && __enumSet_2.has(input["payload"]["error"]["code"]) && typeof input["payload"]["error"]["message"] === "string")) && typeof input["payload"]["requestId"] === "string" && (input["payload"]["upstreamRef"] === undefined || ((input["payload"]["upstreamRef"] === null || (typeof input["payload"]["upstreamRef"] === "string")))) && (input["payload"]["upstreamState"] === undefined || (__enumSet_3.has(input["payload"]["upstreamState"]))) && (input["payload"]["firstPushRemote"] === undefined || ((input["payload"]["firstPushRemote"] === null || (typeof input["payload"]["firstPushRemote"] === "string")))) && input["payload"]["isGit"] === true && input["payload"]["isMateoOwnedWorktree"] === false && typeof input["payload"]["repoRoot"] === "string" && (input["payload"]["mainRepoRoot"] !== undefined && ((input["payload"]["mainRepoRoot"] === undefined || ((input["payload"]["mainRepoRoot"] === null || (typeof input["payload"]["mainRepoRoot"] === "string")))))) && (input["payload"]["currentBranch"] === null || (typeof input["payload"]["currentBranch"] === "string")) && typeof input["payload"]["isDirty"] === "boolean" && (input["payload"]["baseRef"] === null || (typeof input["payload"]["baseRef"] === "string")) && (input["payload"]["aheadBehind"] === null || (typeof input["payload"]["aheadBehind"] === "object" && input["payload"]["aheadBehind"] !== null && !Array.isArray(input["payload"]["aheadBehind"]) && typeof input["payload"]["aheadBehind"]["ahead"] === "number" && !Number.isNaN(input["payload"]["aheadBehind"]["ahead"]) && Number.isFinite(input["payload"]["aheadBehind"]["ahead"]) && typeof input["payload"]["aheadBehind"]["behind"] === "number" && !Number.isNaN(input["payload"]["aheadBehind"]["behind"]) && Number.isFinite(input["payload"]["aheadBehind"]["behind"]))) && (input["payload"]["aheadOfOrigin"] === null || (typeof input["payload"]["aheadOfOrigin"] === "number" && !Number.isNaN(input["payload"]["aheadOfOrigin"]) && Number.isFinite(input["payload"]["aheadOfOrigin"]))) && (input["payload"]["behindOfOrigin"] === null || (typeof input["payload"]["behindOfOrigin"] === "number" && !Number.isNaN(input["payload"]["behindOfOrigin"]) && Number.isFinite(input["payload"]["behindOfOrigin"]))) && typeof input["payload"]["hasRemote"] === "boolean" && (input["payload"]["remoteUrl"] === null || (typeof input["payload"]["remoteUrl"] === "string"))) || (typeof input["payload"] === "object" && input["payload"] !== null && !Array.isArray(input["payload"]) && typeof input["payload"]["cwd"] === "string" && (input["payload"]["error"] === null || (typeof input["payload"]["error"] === "object" && input["payload"]["error"] !== null && !Array.isArray(input["payload"]["error"]) && __enumSet_4.has(input["payload"]["error"]["code"]) && typeof input["payload"]["error"]["message"] === "string")) && typeof input["payload"]["requestId"] === "string" && (input["payload"]["upstreamRef"] === undefined || ((input["payload"]["upstreamRef"] === null || (typeof input["payload"]["upstreamRef"] === "string")))) && (input["payload"]["upstreamState"] === undefined || (__enumSet_5.has(input["payload"]["upstreamState"]))) && (input["payload"]["firstPushRemote"] === undefined || ((input["payload"]["firstPushRemote"] === null || (typeof input["payload"]["firstPushRemote"] === "string")))) && input["payload"]["isGit"] === true && input["payload"]["isMateoOwnedWorktree"] === true && typeof input["payload"]["repoRoot"] === "string" && typeof input["payload"]["mainRepoRoot"] === "string" && (input["payload"]["currentBranch"] === null || (typeof input["payload"]["currentBranch"] === "string")) && typeof input["payload"]["isDirty"] === "boolean" && typeof input["payload"]["baseRef"] === "string" && (input["payload"]["aheadBehind"] === null || (typeof input["payload"]["aheadBehind"] === "object" && input["payload"]["aheadBehind"] !== null && !Array.isArray(input["payload"]["aheadBehind"]) && typeof input["payload"]["aheadBehind"]["ahead"] === "number" && !Number.isNaN(input["payload"]["aheadBehind"]["ahead"]) && Number.isFinite(input["payload"]["aheadBehind"]["ahead"]) && typeof input["payload"]["aheadBehind"]["behind"] === "number" && !Number.isNaN(input["payload"]["aheadBehind"]["behind"]) && Number.isFinite(input["payload"]["aheadBehind"]["behind"]))) && (input["payload"]["aheadOfOrigin"] === null || (typeof input["payload"]["aheadOfOrigin"] === "number" && !Number.isNaN(input["payload"]["aheadOfOrigin"]) && Number.isFinite(input["payload"]["aheadOfOrigin"]))) && (input["payload"]["behindOfOrigin"] === null || (typeof input["payload"]["behindOfOrigin"] === "number" && !Number.isNaN(input["payload"]["behindOfOrigin"]) && Number.isFinite(input["payload"]["behindOfOrigin"]))) && typeof input["payload"]["hasRemote"] === "boolean" && (input["payload"]["remoteUrl"] === null || (typeof input["payload"]["remoteUrl"] === "string"))))) {
|
|
48267
|
+
if (typeof input === "object" && input !== null && !Array.isArray(input) && input["type"] === "checkout_status_response" && ((typeof input["payload"] === "object" && input["payload"] !== null && !Array.isArray(input["payload"]) && typeof input["payload"]["cwd"] === "string" && (input["payload"]["error"] === null || (typeof input["payload"]["error"] === "object" && input["payload"]["error"] !== null && !Array.isArray(input["payload"]["error"]) && __enumSet_0.has(input["payload"]["error"]["code"]) && typeof input["payload"]["error"]["message"] === "string")) && typeof input["payload"]["requestId"] === "string" && (input["payload"]["upstreamRef"] === undefined || ((input["payload"]["upstreamRef"] === null || (typeof input["payload"]["upstreamRef"] === "string")))) && (input["payload"]["upstreamState"] === undefined || (__enumSet_1.has(input["payload"]["upstreamState"]))) && (input["payload"]["pullRemote"] === undefined || ((input["payload"]["pullRemote"] === null || (typeof input["payload"]["pullRemote"] === "string")))) && (input["payload"]["pushRemote"] === undefined || ((input["payload"]["pushRemote"] === null || (typeof input["payload"]["pushRemote"] === "string")))) && (input["payload"]["firstPushRemote"] === undefined || ((input["payload"]["firstPushRemote"] === null || (typeof input["payload"]["firstPushRemote"] === "string")))) && input["payload"]["isGit"] === false && input["payload"]["isMateoOwnedWorktree"] === false && input["payload"]["repoRoot"] === null && input["payload"]["currentBranch"] === null && input["payload"]["isDirty"] === null && input["payload"]["baseRef"] === null && input["payload"]["aheadBehind"] === null && input["payload"]["aheadOfOrigin"] === null && input["payload"]["behindOfOrigin"] === null && typeof input["payload"]["hasRemote"] === "boolean" && input["payload"]["remoteUrl"] === null) || (typeof input["payload"] === "object" && input["payload"] !== null && !Array.isArray(input["payload"]) && typeof input["payload"]["cwd"] === "string" && (input["payload"]["error"] === null || (typeof input["payload"]["error"] === "object" && input["payload"]["error"] !== null && !Array.isArray(input["payload"]["error"]) && __enumSet_2.has(input["payload"]["error"]["code"]) && typeof input["payload"]["error"]["message"] === "string")) && typeof input["payload"]["requestId"] === "string" && (input["payload"]["upstreamRef"] === undefined || ((input["payload"]["upstreamRef"] === null || (typeof input["payload"]["upstreamRef"] === "string")))) && (input["payload"]["upstreamState"] === undefined || (__enumSet_3.has(input["payload"]["upstreamState"]))) && (input["payload"]["pullRemote"] === undefined || ((input["payload"]["pullRemote"] === null || (typeof input["payload"]["pullRemote"] === "string")))) && (input["payload"]["pushRemote"] === undefined || ((input["payload"]["pushRemote"] === null || (typeof input["payload"]["pushRemote"] === "string")))) && (input["payload"]["firstPushRemote"] === undefined || ((input["payload"]["firstPushRemote"] === null || (typeof input["payload"]["firstPushRemote"] === "string")))) && input["payload"]["isGit"] === true && input["payload"]["isMateoOwnedWorktree"] === false && typeof input["payload"]["repoRoot"] === "string" && (input["payload"]["mainRepoRoot"] !== undefined && ((input["payload"]["mainRepoRoot"] === undefined || ((input["payload"]["mainRepoRoot"] === null || (typeof input["payload"]["mainRepoRoot"] === "string")))))) && (input["payload"]["currentBranch"] === null || (typeof input["payload"]["currentBranch"] === "string")) && typeof input["payload"]["isDirty"] === "boolean" && (input["payload"]["baseRef"] === null || (typeof input["payload"]["baseRef"] === "string")) && (input["payload"]["aheadBehind"] === null || (typeof input["payload"]["aheadBehind"] === "object" && input["payload"]["aheadBehind"] !== null && !Array.isArray(input["payload"]["aheadBehind"]) && typeof input["payload"]["aheadBehind"]["ahead"] === "number" && !Number.isNaN(input["payload"]["aheadBehind"]["ahead"]) && Number.isFinite(input["payload"]["aheadBehind"]["ahead"]) && typeof input["payload"]["aheadBehind"]["behind"] === "number" && !Number.isNaN(input["payload"]["aheadBehind"]["behind"]) && Number.isFinite(input["payload"]["aheadBehind"]["behind"]))) && (input["payload"]["aheadOfOrigin"] === null || (typeof input["payload"]["aheadOfOrigin"] === "number" && !Number.isNaN(input["payload"]["aheadOfOrigin"]) && Number.isFinite(input["payload"]["aheadOfOrigin"]))) && (input["payload"]["behindOfOrigin"] === null || (typeof input["payload"]["behindOfOrigin"] === "number" && !Number.isNaN(input["payload"]["behindOfOrigin"]) && Number.isFinite(input["payload"]["behindOfOrigin"]))) && typeof input["payload"]["hasRemote"] === "boolean" && (input["payload"]["remoteUrl"] === null || (typeof input["payload"]["remoteUrl"] === "string"))) || (typeof input["payload"] === "object" && input["payload"] !== null && !Array.isArray(input["payload"]) && typeof input["payload"]["cwd"] === "string" && (input["payload"]["error"] === null || (typeof input["payload"]["error"] === "object" && input["payload"]["error"] !== null && !Array.isArray(input["payload"]["error"]) && __enumSet_4.has(input["payload"]["error"]["code"]) && typeof input["payload"]["error"]["message"] === "string")) && typeof input["payload"]["requestId"] === "string" && (input["payload"]["upstreamRef"] === undefined || ((input["payload"]["upstreamRef"] === null || (typeof input["payload"]["upstreamRef"] === "string")))) && (input["payload"]["upstreamState"] === undefined || (__enumSet_5.has(input["payload"]["upstreamState"]))) && (input["payload"]["pullRemote"] === undefined || ((input["payload"]["pullRemote"] === null || (typeof input["payload"]["pullRemote"] === "string")))) && (input["payload"]["pushRemote"] === undefined || ((input["payload"]["pushRemote"] === null || (typeof input["payload"]["pushRemote"] === "string")))) && (input["payload"]["firstPushRemote"] === undefined || ((input["payload"]["firstPushRemote"] === null || (typeof input["payload"]["firstPushRemote"] === "string")))) && input["payload"]["isGit"] === true && input["payload"]["isMateoOwnedWorktree"] === true && typeof input["payload"]["repoRoot"] === "string" && typeof input["payload"]["mainRepoRoot"] === "string" && (input["payload"]["currentBranch"] === null || (typeof input["payload"]["currentBranch"] === "string")) && typeof input["payload"]["isDirty"] === "boolean" && typeof input["payload"]["baseRef"] === "string" && (input["payload"]["aheadBehind"] === null || (typeof input["payload"]["aheadBehind"] === "object" && input["payload"]["aheadBehind"] !== null && !Array.isArray(input["payload"]["aheadBehind"]) && typeof input["payload"]["aheadBehind"]["ahead"] === "number" && !Number.isNaN(input["payload"]["aheadBehind"]["ahead"]) && Number.isFinite(input["payload"]["aheadBehind"]["ahead"]) && typeof input["payload"]["aheadBehind"]["behind"] === "number" && !Number.isNaN(input["payload"]["aheadBehind"]["behind"]) && Number.isFinite(input["payload"]["aheadBehind"]["behind"]))) && (input["payload"]["aheadOfOrigin"] === null || (typeof input["payload"]["aheadOfOrigin"] === "number" && !Number.isNaN(input["payload"]["aheadOfOrigin"]) && Number.isFinite(input["payload"]["aheadOfOrigin"]))) && (input["payload"]["behindOfOrigin"] === null || (typeof input["payload"]["behindOfOrigin"] === "number" && !Number.isNaN(input["payload"]["behindOfOrigin"]) && Number.isFinite(input["payload"]["behindOfOrigin"]))) && typeof input["payload"]["hasRemote"] === "boolean" && (input["payload"]["remoteUrl"] === null || (typeof input["payload"]["remoteUrl"] === "string"))))) {
|
|
48268
48268
|
return { success: true, data: input };
|
|
48269
48269
|
}
|
|
48270
48270
|
var _e = [];
|
|
@@ -48319,6 +48319,20 @@ export const SessionOutboundMessage161 = /* @__PURE__ */ (() => {
|
|
|
48319
48319
|
__ui_9.push({ code: "invalid_value", values: ["tracked", "none", "gone", "unknown"], input: __o_12["upstreamState"], path: ["payload"].concat("upstreamState") });
|
|
48320
48320
|
}
|
|
48321
48321
|
}
|
|
48322
|
+
if (__o_12["pullRemote"] !== undefined) {
|
|
48323
|
+
if (__o_12["pullRemote"] !== null) {
|
|
48324
|
+
if (typeof __o_12["pullRemote"] !== "string") {
|
|
48325
|
+
__ui_9.push({ code: "invalid_type", expected: "string", input: __o_12["pullRemote"], path: ["payload"].concat("pullRemote") });
|
|
48326
|
+
}
|
|
48327
|
+
}
|
|
48328
|
+
}
|
|
48329
|
+
if (__o_12["pushRemote"] !== undefined) {
|
|
48330
|
+
if (__o_12["pushRemote"] !== null) {
|
|
48331
|
+
if (typeof __o_12["pushRemote"] !== "string") {
|
|
48332
|
+
__ui_9.push({ code: "invalid_type", expected: "string", input: __o_12["pushRemote"], path: ["payload"].concat("pushRemote") });
|
|
48333
|
+
}
|
|
48334
|
+
}
|
|
48335
|
+
}
|
|
48322
48336
|
if (__o_12["firstPushRemote"] !== undefined) {
|
|
48323
48337
|
if (__o_12["firstPushRemote"] !== null) {
|
|
48324
48338
|
if (typeof __o_12["firstPushRemote"] !== "string") {
|
|
@@ -48414,6 +48428,20 @@ export const SessionOutboundMessage161 = /* @__PURE__ */ (() => {
|
|
|
48414
48428
|
__ui_16.push({ code: "invalid_value", values: ["tracked", "none", "gone", "unknown"], input: __o_19["upstreamState"], path: ["payload"].concat("upstreamState") });
|
|
48415
48429
|
}
|
|
48416
48430
|
}
|
|
48431
|
+
if (__o_19["pullRemote"] !== undefined) {
|
|
48432
|
+
if (__o_19["pullRemote"] !== null) {
|
|
48433
|
+
if (typeof __o_19["pullRemote"] !== "string") {
|
|
48434
|
+
__ui_16.push({ code: "invalid_type", expected: "string", input: __o_19["pullRemote"], path: ["payload"].concat("pullRemote") });
|
|
48435
|
+
}
|
|
48436
|
+
}
|
|
48437
|
+
}
|
|
48438
|
+
if (__o_19["pushRemote"] !== undefined) {
|
|
48439
|
+
if (__o_19["pushRemote"] !== null) {
|
|
48440
|
+
if (typeof __o_19["pushRemote"] !== "string") {
|
|
48441
|
+
__ui_16.push({ code: "invalid_type", expected: "string", input: __o_19["pushRemote"], path: ["payload"].concat("pushRemote") });
|
|
48442
|
+
}
|
|
48443
|
+
}
|
|
48444
|
+
}
|
|
48417
48445
|
if (__o_19["firstPushRemote"] !== undefined) {
|
|
48418
48446
|
if (__o_19["firstPushRemote"] !== null) {
|
|
48419
48447
|
if (typeof __o_19["firstPushRemote"] !== "string") {
|
|
@@ -48567,6 +48595,20 @@ export const SessionOutboundMessage161 = /* @__PURE__ */ (() => {
|
|
|
48567
48595
|
__ui_24.push({ code: "invalid_value", values: ["tracked", "none", "gone", "unknown"], input: __o_27["upstreamState"], path: ["payload"].concat("upstreamState") });
|
|
48568
48596
|
}
|
|
48569
48597
|
}
|
|
48598
|
+
if (__o_27["pullRemote"] !== undefined) {
|
|
48599
|
+
if (__o_27["pullRemote"] !== null) {
|
|
48600
|
+
if (typeof __o_27["pullRemote"] !== "string") {
|
|
48601
|
+
__ui_24.push({ code: "invalid_type", expected: "string", input: __o_27["pullRemote"], path: ["payload"].concat("pullRemote") });
|
|
48602
|
+
}
|
|
48603
|
+
}
|
|
48604
|
+
}
|
|
48605
|
+
if (__o_27["pushRemote"] !== undefined) {
|
|
48606
|
+
if (__o_27["pushRemote"] !== null) {
|
|
48607
|
+
if (typeof __o_27["pushRemote"] !== "string") {
|
|
48608
|
+
__ui_24.push({ code: "invalid_type", expected: "string", input: __o_27["pushRemote"], path: ["payload"].concat("pushRemote") });
|
|
48609
|
+
}
|
|
48610
|
+
}
|
|
48611
|
+
}
|
|
48570
48612
|
if (__o_27["firstPushRemote"] !== undefined) {
|
|
48571
48613
|
if (__o_27["firstPushRemote"] !== null) {
|
|
48572
48614
|
if (typeof __o_27["firstPushRemote"] !== "string") {
|
|
@@ -48706,7 +48748,7 @@ export const SessionOutboundMessage162 = /* @__PURE__ */ (() => {
|
|
|
48706
48748
|
var __set_enum_35 = new Set(["tracked", "none", "gone", "unknown"]);
|
|
48707
48749
|
var __set_enum_48 = new Set(["NOT_GIT_REPO", "NOT_ALLOWED", "MERGE_CONFLICT", "UNKNOWN"]);
|
|
48708
48750
|
function safeParse_SessionOutboundMessage162(input) {
|
|
48709
|
-
if (typeof input === "object" && input !== null && !Array.isArray(input) && input["type"] === "checkout_status_update" && ((typeof input["payload"] === "object" && input["payload"] !== null && !Array.isArray(input["payload"]) && typeof input["payload"]["cwd"] === "string" && (input["payload"]["error"] === null || (typeof input["payload"]["error"] === "object" && input["payload"]["error"] !== null && !Array.isArray(input["payload"]["error"]) && __enumSet_0.has(input["payload"]["error"]["code"]) && typeof input["payload"]["error"]["message"] === "string")) && typeof input["payload"]["requestId"] === "string" && (input["payload"]["upstreamRef"] === undefined || ((input["payload"]["upstreamRef"] === null || (typeof input["payload"]["upstreamRef"] === "string")))) && (input["payload"]["upstreamState"] === undefined || (__enumSet_1.has(input["payload"]["upstreamState"]))) && (input["payload"]["firstPushRemote"] === undefined || ((input["payload"]["firstPushRemote"] === null || (typeof input["payload"]["firstPushRemote"] === "string")))) && input["payload"]["isGit"] === false && input["payload"]["isMateoOwnedWorktree"] === false && input["payload"]["repoRoot"] === null && input["payload"]["currentBranch"] === null && input["payload"]["isDirty"] === null && input["payload"]["baseRef"] === null && input["payload"]["aheadBehind"] === null && input["payload"]["aheadOfOrigin"] === null && input["payload"]["behindOfOrigin"] === null && typeof input["payload"]["hasRemote"] === "boolean" && input["payload"]["remoteUrl"] === null) || (typeof input["payload"] === "object" && input["payload"] !== null && !Array.isArray(input["payload"]) && typeof input["payload"]["cwd"] === "string" && (input["payload"]["error"] === null || (typeof input["payload"]["error"] === "object" && input["payload"]["error"] !== null && !Array.isArray(input["payload"]["error"]) && __enumSet_2.has(input["payload"]["error"]["code"]) && typeof input["payload"]["error"]["message"] === "string")) && typeof input["payload"]["requestId"] === "string" && (input["payload"]["upstreamRef"] === undefined || ((input["payload"]["upstreamRef"] === null || (typeof input["payload"]["upstreamRef"] === "string")))) && (input["payload"]["upstreamState"] === undefined || (__enumSet_3.has(input["payload"]["upstreamState"]))) && (input["payload"]["firstPushRemote"] === undefined || ((input["payload"]["firstPushRemote"] === null || (typeof input["payload"]["firstPushRemote"] === "string")))) && input["payload"]["isGit"] === true && input["payload"]["isMateoOwnedWorktree"] === false && typeof input["payload"]["repoRoot"] === "string" && (input["payload"]["mainRepoRoot"] !== undefined && ((input["payload"]["mainRepoRoot"] === undefined || ((input["payload"]["mainRepoRoot"] === null || (typeof input["payload"]["mainRepoRoot"] === "string")))))) && (input["payload"]["currentBranch"] === null || (typeof input["payload"]["currentBranch"] === "string")) && typeof input["payload"]["isDirty"] === "boolean" && (input["payload"]["baseRef"] === null || (typeof input["payload"]["baseRef"] === "string")) && (input["payload"]["aheadBehind"] === null || (typeof input["payload"]["aheadBehind"] === "object" && input["payload"]["aheadBehind"] !== null && !Array.isArray(input["payload"]["aheadBehind"]) && typeof input["payload"]["aheadBehind"]["ahead"] === "number" && !Number.isNaN(input["payload"]["aheadBehind"]["ahead"]) && Number.isFinite(input["payload"]["aheadBehind"]["ahead"]) && typeof input["payload"]["aheadBehind"]["behind"] === "number" && !Number.isNaN(input["payload"]["aheadBehind"]["behind"]) && Number.isFinite(input["payload"]["aheadBehind"]["behind"]))) && (input["payload"]["aheadOfOrigin"] === null || (typeof input["payload"]["aheadOfOrigin"] === "number" && !Number.isNaN(input["payload"]["aheadOfOrigin"]) && Number.isFinite(input["payload"]["aheadOfOrigin"]))) && (input["payload"]["behindOfOrigin"] === null || (typeof input["payload"]["behindOfOrigin"] === "number" && !Number.isNaN(input["payload"]["behindOfOrigin"]) && Number.isFinite(input["payload"]["behindOfOrigin"]))) && typeof input["payload"]["hasRemote"] === "boolean" && (input["payload"]["remoteUrl"] === null || (typeof input["payload"]["remoteUrl"] === "string"))) || (typeof input["payload"] === "object" && input["payload"] !== null && !Array.isArray(input["payload"]) && typeof input["payload"]["cwd"] === "string" && (input["payload"]["error"] === null || (typeof input["payload"]["error"] === "object" && input["payload"]["error"] !== null && !Array.isArray(input["payload"]["error"]) && __enumSet_4.has(input["payload"]["error"]["code"]) && typeof input["payload"]["error"]["message"] === "string")) && typeof input["payload"]["requestId"] === "string" && (input["payload"]["upstreamRef"] === undefined || ((input["payload"]["upstreamRef"] === null || (typeof input["payload"]["upstreamRef"] === "string")))) && (input["payload"]["upstreamState"] === undefined || (__enumSet_5.has(input["payload"]["upstreamState"]))) && (input["payload"]["firstPushRemote"] === undefined || ((input["payload"]["firstPushRemote"] === null || (typeof input["payload"]["firstPushRemote"] === "string")))) && input["payload"]["isGit"] === true && input["payload"]["isMateoOwnedWorktree"] === true && typeof input["payload"]["repoRoot"] === "string" && typeof input["payload"]["mainRepoRoot"] === "string" && (input["payload"]["currentBranch"] === null || (typeof input["payload"]["currentBranch"] === "string")) && typeof input["payload"]["isDirty"] === "boolean" && typeof input["payload"]["baseRef"] === "string" && (input["payload"]["aheadBehind"] === null || (typeof input["payload"]["aheadBehind"] === "object" && input["payload"]["aheadBehind"] !== null && !Array.isArray(input["payload"]["aheadBehind"]) && typeof input["payload"]["aheadBehind"]["ahead"] === "number" && !Number.isNaN(input["payload"]["aheadBehind"]["ahead"]) && Number.isFinite(input["payload"]["aheadBehind"]["ahead"]) && typeof input["payload"]["aheadBehind"]["behind"] === "number" && !Number.isNaN(input["payload"]["aheadBehind"]["behind"]) && Number.isFinite(input["payload"]["aheadBehind"]["behind"]))) && (input["payload"]["aheadOfOrigin"] === null || (typeof input["payload"]["aheadOfOrigin"] === "number" && !Number.isNaN(input["payload"]["aheadOfOrigin"]) && Number.isFinite(input["payload"]["aheadOfOrigin"]))) && (input["payload"]["behindOfOrigin"] === null || (typeof input["payload"]["behindOfOrigin"] === "number" && !Number.isNaN(input["payload"]["behindOfOrigin"]) && Number.isFinite(input["payload"]["behindOfOrigin"]))) && typeof input["payload"]["hasRemote"] === "boolean" && (input["payload"]["remoteUrl"] === null || (typeof input["payload"]["remoteUrl"] === "string")))) && typeof input["payload"] === "object" && input["payload"] !== null && !Array.isArray(input["payload"]) && (input["payload"]["subscriptionId"] === undefined || (typeof input["payload"]["subscriptionId"] === "string")) && (input["payload"]["prStatus"] === undefined || (typeof input["payload"]["prStatus"] === "object" && input["payload"]["prStatus"] !== null && !Array.isArray(input["payload"]["prStatus"]) && typeof input["payload"]["prStatus"]["cwd"] === "string" && (input["payload"]["prStatus"]["status"] === null || (typeof input["payload"]["prStatus"]["status"] === "object" && input["payload"]["prStatus"]["status"] !== null && !Array.isArray(input["payload"]["prStatus"]["status"]) && (input["payload"]["prStatus"]["status"]["forge"] !== undefined && ((input["payload"]["prStatus"]["status"]["forge"] === undefined || (typeof input["payload"]["prStatus"]["status"]["forge"] === "string")))) && (input["payload"]["prStatus"]["status"]["projectPath"] === undefined || (typeof input["payload"]["prStatus"]["status"]["projectPath"] === "string")) && (input["payload"]["prStatus"]["status"]["number"] === undefined || (typeof input["payload"]["prStatus"]["status"]["number"] === "number" && !Number.isNaN(input["payload"]["prStatus"]["status"]["number"]) && Number.isFinite(input["payload"]["prStatus"]["status"]["number"]))) && typeof input["payload"]["prStatus"]["status"]["url"] === "string" && typeof input["payload"]["prStatus"]["status"]["title"] === "string" && typeof input["payload"]["prStatus"]["status"]["state"] === "string" && typeof input["payload"]["prStatus"]["status"]["baseRefName"] === "string" && typeof input["payload"]["prStatus"]["status"]["headRefName"] === "string" && typeof input["payload"]["prStatus"]["status"]["isMerged"] === "boolean" && (input["payload"]["prStatus"]["status"]["isDraft"] !== undefined && ((input["payload"]["prStatus"]["status"]["isDraft"] === undefined || (typeof input["payload"]["prStatus"]["status"]["isDraft"] === "boolean")))) && (input["payload"]["prStatus"]["status"]["mergeable"] !== undefined && ((input["payload"]["prStatus"]["status"]["mergeable"] === undefined || ((input["payload"]["prStatus"]["status"]["mergeable"] === "MERGEABLE" || input["payload"]["prStatus"]["status"]["mergeable"] === "CONFLICTING" || input["payload"]["prStatus"]["status"]["mergeable"] === "UNKNOWN"))))) && (input["payload"]["prStatus"]["status"]["checks"] !== undefined && ((input["payload"]["prStatus"]["status"]["checks"] === undefined || (Array.isArray(input["payload"]["prStatus"]["status"]["checks"]) && __af_9(input["payload"]["prStatus"]["status"]["checks"]))))) && (input["payload"]["prStatus"]["status"]["checksStatus"] === undefined || (typeof input["payload"]["prStatus"]["status"]["checksStatus"] === "string")) && (input["payload"]["prStatus"]["status"]["reviewDecision"] === undefined || ((input["payload"]["prStatus"]["status"]["reviewDecision"] === null || (typeof input["payload"]["prStatus"]["status"]["reviewDecision"] === "string")))) && (input["payload"]["prStatus"]["status"]["repoOwner"] === undefined || (typeof input["payload"]["prStatus"]["status"]["repoOwner"] === "string")) && (input["payload"]["prStatus"]["status"]["repoName"] === undefined || (typeof input["payload"]["prStatus"]["status"]["repoName"] === "string")) && (input["payload"]["prStatus"]["status"]["github"] === undefined || (typeof input["payload"]["prStatus"]["status"]["github"] === "object" && input["payload"]["prStatus"]["status"]["github"] !== null && !Array.isArray(input["payload"]["prStatus"]["status"]["github"]) && (input["payload"]["prStatus"]["status"]["github"]["mergeStateStatus"] !== undefined && ((input["payload"]["prStatus"]["status"]["github"]["mergeStateStatus"] === undefined || ((input["payload"]["prStatus"]["status"]["github"]["mergeStateStatus"] === null || (typeof input["payload"]["prStatus"]["status"]["github"]["mergeStateStatus"] === "string")))))) && (input["payload"]["prStatus"]["status"]["github"]["autoMergeRequest"] !== undefined && ((input["payload"]["prStatus"]["status"]["github"]["autoMergeRequest"] === undefined || ((input["payload"]["prStatus"]["status"]["github"]["autoMergeRequest"] === null || (typeof input["payload"]["prStatus"]["status"]["github"]["autoMergeRequest"] === "object" && input["payload"]["prStatus"]["status"]["github"]["autoMergeRequest"] !== null && !Array.isArray(input["payload"]["prStatus"]["status"]["github"]["autoMergeRequest"]) && (input["payload"]["prStatus"]["status"]["github"]["autoMergeRequest"]["enabledAt"] !== undefined && ((input["payload"]["prStatus"]["status"]["github"]["autoMergeRequest"]["enabledAt"] === undefined || ((input["payload"]["prStatus"]["status"]["github"]["autoMergeRequest"]["enabledAt"] === null || (typeof input["payload"]["prStatus"]["status"]["github"]["autoMergeRequest"]["enabledAt"] === "string")))))) && (input["payload"]["prStatus"]["status"]["github"]["autoMergeRequest"]["mergeMethod"] !== undefined && ((input["payload"]["prStatus"]["status"]["github"]["autoMergeRequest"]["mergeMethod"] === undefined || ((input["payload"]["prStatus"]["status"]["github"]["autoMergeRequest"]["mergeMethod"] === null || (typeof input["payload"]["prStatus"]["status"]["github"]["autoMergeRequest"]["mergeMethod"] === "string")))))) && (input["payload"]["prStatus"]["status"]["github"]["autoMergeRequest"]["enabledBy"] !== undefined && ((input["payload"]["prStatus"]["status"]["github"]["autoMergeRequest"]["enabledBy"] === undefined || ((input["payload"]["prStatus"]["status"]["github"]["autoMergeRequest"]["enabledBy"] === null || (typeof input["payload"]["prStatus"]["status"]["github"]["autoMergeRequest"]["enabledBy"] === "string")))))))))))) && (input["payload"]["prStatus"]["status"]["github"]["viewerCanEnableAutoMerge"] !== undefined && ((input["payload"]["prStatus"]["status"]["github"]["viewerCanEnableAutoMerge"] === undefined || (typeof input["payload"]["prStatus"]["status"]["github"]["viewerCanEnableAutoMerge"] === "boolean")))) && (input["payload"]["prStatus"]["status"]["github"]["viewerCanDisableAutoMerge"] !== undefined && ((input["payload"]["prStatus"]["status"]["github"]["viewerCanDisableAutoMerge"] === undefined || (typeof input["payload"]["prStatus"]["status"]["github"]["viewerCanDisableAutoMerge"] === "boolean")))) && (input["payload"]["prStatus"]["status"]["github"]["viewerCanMergeAsAdmin"] !== undefined && ((input["payload"]["prStatus"]["status"]["github"]["viewerCanMergeAsAdmin"] === undefined || (typeof input["payload"]["prStatus"]["status"]["github"]["viewerCanMergeAsAdmin"] === "boolean")))) && (input["payload"]["prStatus"]["status"]["github"]["viewerCanUpdateBranch"] !== undefined && ((input["payload"]["prStatus"]["status"]["github"]["viewerCanUpdateBranch"] === undefined || (typeof input["payload"]["prStatus"]["status"]["github"]["viewerCanUpdateBranch"] === "boolean")))) && (input["payload"]["prStatus"]["status"]["github"]["repository"] !== undefined && ((input["payload"]["prStatus"]["status"]["github"]["repository"] === undefined || (typeof input["payload"]["prStatus"]["status"]["github"]["repository"] === "object" && input["payload"]["prStatus"]["status"]["github"]["repository"] !== null && !Array.isArray(input["payload"]["prStatus"]["status"]["github"]["repository"]) && (input["payload"]["prStatus"]["status"]["github"]["repository"]["autoMergeAllowed"] !== undefined && ((input["payload"]["prStatus"]["status"]["github"]["repository"]["autoMergeAllowed"] === undefined || (typeof input["payload"]["prStatus"]["status"]["github"]["repository"]["autoMergeAllowed"] === "boolean")))) && (input["payload"]["prStatus"]["status"]["github"]["repository"]["mergeCommitAllowed"] !== undefined && ((input["payload"]["prStatus"]["status"]["github"]["repository"]["mergeCommitAllowed"] === undefined || (typeof input["payload"]["prStatus"]["status"]["github"]["repository"]["mergeCommitAllowed"] === "boolean")))) && (input["payload"]["prStatus"]["status"]["github"]["repository"]["squashMergeAllowed"] !== undefined && ((input["payload"]["prStatus"]["status"]["github"]["repository"]["squashMergeAllowed"] === undefined || (typeof input["payload"]["prStatus"]["status"]["github"]["repository"]["squashMergeAllowed"] === "boolean")))) && (input["payload"]["prStatus"]["status"]["github"]["repository"]["rebaseMergeAllowed"] !== undefined && ((input["payload"]["prStatus"]["status"]["github"]["repository"]["rebaseMergeAllowed"] === undefined || (typeof input["payload"]["prStatus"]["status"]["github"]["repository"]["rebaseMergeAllowed"] === "boolean")))) && (input["payload"]["prStatus"]["status"]["github"]["repository"]["viewerDefaultMergeMethod"] !== undefined && ((input["payload"]["prStatus"]["status"]["github"]["repository"]["viewerDefaultMergeMethod"] === undefined || ((input["payload"]["prStatus"]["status"]["github"]["repository"]["viewerDefaultMergeMethod"] === null || (typeof input["payload"]["prStatus"]["status"]["github"]["repository"]["viewerDefaultMergeMethod"] === "string")))))))))) && (input["payload"]["prStatus"]["status"]["github"]["isMergeQueueEnabled"] !== undefined && ((input["payload"]["prStatus"]["status"]["github"]["isMergeQueueEnabled"] === undefined || (typeof input["payload"]["prStatus"]["status"]["github"]["isMergeQueueEnabled"] === "boolean")))) && (input["payload"]["prStatus"]["status"]["github"]["isInMergeQueue"] !== undefined && ((input["payload"]["prStatus"]["status"]["github"]["isInMergeQueue"] === undefined || (typeof input["payload"]["prStatus"]["status"]["github"]["isInMergeQueue"] === "boolean")))))) && (input["payload"]["prStatus"]["status"]["forgeSpecific"] === undefined || (true)))) && typeof input["payload"]["prStatus"]["githubFeaturesEnabled"] === "boolean" && (input["payload"]["prStatus"]["authState"] === undefined || (true)) && (input["payload"]["prStatus"]["forge"] !== undefined && ((input["payload"]["prStatus"]["forge"] === undefined || (typeof input["payload"]["prStatus"]["forge"] === "string")))) && (input["payload"]["prStatus"]["error"] === null || (typeof input["payload"]["prStatus"]["error"] === "object" && input["payload"]["prStatus"]["error"] !== null && !Array.isArray(input["payload"]["prStatus"]["error"]) && __enumSet_10.has(input["payload"]["prStatus"]["error"]["code"]) && typeof input["payload"]["prStatus"]["error"]["message"] === "string")) && typeof input["payload"]["prStatus"]["requestId"] === "string"))) {
|
|
48751
|
+
if (typeof input === "object" && input !== null && !Array.isArray(input) && input["type"] === "checkout_status_update" && ((typeof input["payload"] === "object" && input["payload"] !== null && !Array.isArray(input["payload"]) && typeof input["payload"]["cwd"] === "string" && (input["payload"]["error"] === null || (typeof input["payload"]["error"] === "object" && input["payload"]["error"] !== null && !Array.isArray(input["payload"]["error"]) && __enumSet_0.has(input["payload"]["error"]["code"]) && typeof input["payload"]["error"]["message"] === "string")) && typeof input["payload"]["requestId"] === "string" && (input["payload"]["upstreamRef"] === undefined || ((input["payload"]["upstreamRef"] === null || (typeof input["payload"]["upstreamRef"] === "string")))) && (input["payload"]["upstreamState"] === undefined || (__enumSet_1.has(input["payload"]["upstreamState"]))) && (input["payload"]["pullRemote"] === undefined || ((input["payload"]["pullRemote"] === null || (typeof input["payload"]["pullRemote"] === "string")))) && (input["payload"]["pushRemote"] === undefined || ((input["payload"]["pushRemote"] === null || (typeof input["payload"]["pushRemote"] === "string")))) && (input["payload"]["firstPushRemote"] === undefined || ((input["payload"]["firstPushRemote"] === null || (typeof input["payload"]["firstPushRemote"] === "string")))) && input["payload"]["isGit"] === false && input["payload"]["isMateoOwnedWorktree"] === false && input["payload"]["repoRoot"] === null && input["payload"]["currentBranch"] === null && input["payload"]["isDirty"] === null && input["payload"]["baseRef"] === null && input["payload"]["aheadBehind"] === null && input["payload"]["aheadOfOrigin"] === null && input["payload"]["behindOfOrigin"] === null && typeof input["payload"]["hasRemote"] === "boolean" && input["payload"]["remoteUrl"] === null) || (typeof input["payload"] === "object" && input["payload"] !== null && !Array.isArray(input["payload"]) && typeof input["payload"]["cwd"] === "string" && (input["payload"]["error"] === null || (typeof input["payload"]["error"] === "object" && input["payload"]["error"] !== null && !Array.isArray(input["payload"]["error"]) && __enumSet_2.has(input["payload"]["error"]["code"]) && typeof input["payload"]["error"]["message"] === "string")) && typeof input["payload"]["requestId"] === "string" && (input["payload"]["upstreamRef"] === undefined || ((input["payload"]["upstreamRef"] === null || (typeof input["payload"]["upstreamRef"] === "string")))) && (input["payload"]["upstreamState"] === undefined || (__enumSet_3.has(input["payload"]["upstreamState"]))) && (input["payload"]["pullRemote"] === undefined || ((input["payload"]["pullRemote"] === null || (typeof input["payload"]["pullRemote"] === "string")))) && (input["payload"]["pushRemote"] === undefined || ((input["payload"]["pushRemote"] === null || (typeof input["payload"]["pushRemote"] === "string")))) && (input["payload"]["firstPushRemote"] === undefined || ((input["payload"]["firstPushRemote"] === null || (typeof input["payload"]["firstPushRemote"] === "string")))) && input["payload"]["isGit"] === true && input["payload"]["isMateoOwnedWorktree"] === false && typeof input["payload"]["repoRoot"] === "string" && (input["payload"]["mainRepoRoot"] !== undefined && ((input["payload"]["mainRepoRoot"] === undefined || ((input["payload"]["mainRepoRoot"] === null || (typeof input["payload"]["mainRepoRoot"] === "string")))))) && (input["payload"]["currentBranch"] === null || (typeof input["payload"]["currentBranch"] === "string")) && typeof input["payload"]["isDirty"] === "boolean" && (input["payload"]["baseRef"] === null || (typeof input["payload"]["baseRef"] === "string")) && (input["payload"]["aheadBehind"] === null || (typeof input["payload"]["aheadBehind"] === "object" && input["payload"]["aheadBehind"] !== null && !Array.isArray(input["payload"]["aheadBehind"]) && typeof input["payload"]["aheadBehind"]["ahead"] === "number" && !Number.isNaN(input["payload"]["aheadBehind"]["ahead"]) && Number.isFinite(input["payload"]["aheadBehind"]["ahead"]) && typeof input["payload"]["aheadBehind"]["behind"] === "number" && !Number.isNaN(input["payload"]["aheadBehind"]["behind"]) && Number.isFinite(input["payload"]["aheadBehind"]["behind"]))) && (input["payload"]["aheadOfOrigin"] === null || (typeof input["payload"]["aheadOfOrigin"] === "number" && !Number.isNaN(input["payload"]["aheadOfOrigin"]) && Number.isFinite(input["payload"]["aheadOfOrigin"]))) && (input["payload"]["behindOfOrigin"] === null || (typeof input["payload"]["behindOfOrigin"] === "number" && !Number.isNaN(input["payload"]["behindOfOrigin"]) && Number.isFinite(input["payload"]["behindOfOrigin"]))) && typeof input["payload"]["hasRemote"] === "boolean" && (input["payload"]["remoteUrl"] === null || (typeof input["payload"]["remoteUrl"] === "string"))) || (typeof input["payload"] === "object" && input["payload"] !== null && !Array.isArray(input["payload"]) && typeof input["payload"]["cwd"] === "string" && (input["payload"]["error"] === null || (typeof input["payload"]["error"] === "object" && input["payload"]["error"] !== null && !Array.isArray(input["payload"]["error"]) && __enumSet_4.has(input["payload"]["error"]["code"]) && typeof input["payload"]["error"]["message"] === "string")) && typeof input["payload"]["requestId"] === "string" && (input["payload"]["upstreamRef"] === undefined || ((input["payload"]["upstreamRef"] === null || (typeof input["payload"]["upstreamRef"] === "string")))) && (input["payload"]["upstreamState"] === undefined || (__enumSet_5.has(input["payload"]["upstreamState"]))) && (input["payload"]["pullRemote"] === undefined || ((input["payload"]["pullRemote"] === null || (typeof input["payload"]["pullRemote"] === "string")))) && (input["payload"]["pushRemote"] === undefined || ((input["payload"]["pushRemote"] === null || (typeof input["payload"]["pushRemote"] === "string")))) && (input["payload"]["firstPushRemote"] === undefined || ((input["payload"]["firstPushRemote"] === null || (typeof input["payload"]["firstPushRemote"] === "string")))) && input["payload"]["isGit"] === true && input["payload"]["isMateoOwnedWorktree"] === true && typeof input["payload"]["repoRoot"] === "string" && typeof input["payload"]["mainRepoRoot"] === "string" && (input["payload"]["currentBranch"] === null || (typeof input["payload"]["currentBranch"] === "string")) && typeof input["payload"]["isDirty"] === "boolean" && typeof input["payload"]["baseRef"] === "string" && (input["payload"]["aheadBehind"] === null || (typeof input["payload"]["aheadBehind"] === "object" && input["payload"]["aheadBehind"] !== null && !Array.isArray(input["payload"]["aheadBehind"]) && typeof input["payload"]["aheadBehind"]["ahead"] === "number" && !Number.isNaN(input["payload"]["aheadBehind"]["ahead"]) && Number.isFinite(input["payload"]["aheadBehind"]["ahead"]) && typeof input["payload"]["aheadBehind"]["behind"] === "number" && !Number.isNaN(input["payload"]["aheadBehind"]["behind"]) && Number.isFinite(input["payload"]["aheadBehind"]["behind"]))) && (input["payload"]["aheadOfOrigin"] === null || (typeof input["payload"]["aheadOfOrigin"] === "number" && !Number.isNaN(input["payload"]["aheadOfOrigin"]) && Number.isFinite(input["payload"]["aheadOfOrigin"]))) && (input["payload"]["behindOfOrigin"] === null || (typeof input["payload"]["behindOfOrigin"] === "number" && !Number.isNaN(input["payload"]["behindOfOrigin"]) && Number.isFinite(input["payload"]["behindOfOrigin"]))) && typeof input["payload"]["hasRemote"] === "boolean" && (input["payload"]["remoteUrl"] === null || (typeof input["payload"]["remoteUrl"] === "string")))) && typeof input["payload"] === "object" && input["payload"] !== null && !Array.isArray(input["payload"]) && (input["payload"]["subscriptionId"] === undefined || (typeof input["payload"]["subscriptionId"] === "string")) && (input["payload"]["prStatus"] === undefined || (typeof input["payload"]["prStatus"] === "object" && input["payload"]["prStatus"] !== null && !Array.isArray(input["payload"]["prStatus"]) && typeof input["payload"]["prStatus"]["cwd"] === "string" && (input["payload"]["prStatus"]["status"] === null || (typeof input["payload"]["prStatus"]["status"] === "object" && input["payload"]["prStatus"]["status"] !== null && !Array.isArray(input["payload"]["prStatus"]["status"]) && (input["payload"]["prStatus"]["status"]["forge"] !== undefined && ((input["payload"]["prStatus"]["status"]["forge"] === undefined || (typeof input["payload"]["prStatus"]["status"]["forge"] === "string")))) && (input["payload"]["prStatus"]["status"]["projectPath"] === undefined || (typeof input["payload"]["prStatus"]["status"]["projectPath"] === "string")) && (input["payload"]["prStatus"]["status"]["number"] === undefined || (typeof input["payload"]["prStatus"]["status"]["number"] === "number" && !Number.isNaN(input["payload"]["prStatus"]["status"]["number"]) && Number.isFinite(input["payload"]["prStatus"]["status"]["number"]))) && typeof input["payload"]["prStatus"]["status"]["url"] === "string" && typeof input["payload"]["prStatus"]["status"]["title"] === "string" && typeof input["payload"]["prStatus"]["status"]["state"] === "string" && typeof input["payload"]["prStatus"]["status"]["baseRefName"] === "string" && typeof input["payload"]["prStatus"]["status"]["headRefName"] === "string" && typeof input["payload"]["prStatus"]["status"]["isMerged"] === "boolean" && (input["payload"]["prStatus"]["status"]["isDraft"] !== undefined && ((input["payload"]["prStatus"]["status"]["isDraft"] === undefined || (typeof input["payload"]["prStatus"]["status"]["isDraft"] === "boolean")))) && (input["payload"]["prStatus"]["status"]["mergeable"] !== undefined && ((input["payload"]["prStatus"]["status"]["mergeable"] === undefined || ((input["payload"]["prStatus"]["status"]["mergeable"] === "MERGEABLE" || input["payload"]["prStatus"]["status"]["mergeable"] === "CONFLICTING" || input["payload"]["prStatus"]["status"]["mergeable"] === "UNKNOWN"))))) && (input["payload"]["prStatus"]["status"]["checks"] !== undefined && ((input["payload"]["prStatus"]["status"]["checks"] === undefined || (Array.isArray(input["payload"]["prStatus"]["status"]["checks"]) && __af_9(input["payload"]["prStatus"]["status"]["checks"]))))) && (input["payload"]["prStatus"]["status"]["checksStatus"] === undefined || (typeof input["payload"]["prStatus"]["status"]["checksStatus"] === "string")) && (input["payload"]["prStatus"]["status"]["reviewDecision"] === undefined || ((input["payload"]["prStatus"]["status"]["reviewDecision"] === null || (typeof input["payload"]["prStatus"]["status"]["reviewDecision"] === "string")))) && (input["payload"]["prStatus"]["status"]["repoOwner"] === undefined || (typeof input["payload"]["prStatus"]["status"]["repoOwner"] === "string")) && (input["payload"]["prStatus"]["status"]["repoName"] === undefined || (typeof input["payload"]["prStatus"]["status"]["repoName"] === "string")) && (input["payload"]["prStatus"]["status"]["github"] === undefined || (typeof input["payload"]["prStatus"]["status"]["github"] === "object" && input["payload"]["prStatus"]["status"]["github"] !== null && !Array.isArray(input["payload"]["prStatus"]["status"]["github"]) && (input["payload"]["prStatus"]["status"]["github"]["mergeStateStatus"] !== undefined && ((input["payload"]["prStatus"]["status"]["github"]["mergeStateStatus"] === undefined || ((input["payload"]["prStatus"]["status"]["github"]["mergeStateStatus"] === null || (typeof input["payload"]["prStatus"]["status"]["github"]["mergeStateStatus"] === "string")))))) && (input["payload"]["prStatus"]["status"]["github"]["autoMergeRequest"] !== undefined && ((input["payload"]["prStatus"]["status"]["github"]["autoMergeRequest"] === undefined || ((input["payload"]["prStatus"]["status"]["github"]["autoMergeRequest"] === null || (typeof input["payload"]["prStatus"]["status"]["github"]["autoMergeRequest"] === "object" && input["payload"]["prStatus"]["status"]["github"]["autoMergeRequest"] !== null && !Array.isArray(input["payload"]["prStatus"]["status"]["github"]["autoMergeRequest"]) && (input["payload"]["prStatus"]["status"]["github"]["autoMergeRequest"]["enabledAt"] !== undefined && ((input["payload"]["prStatus"]["status"]["github"]["autoMergeRequest"]["enabledAt"] === undefined || ((input["payload"]["prStatus"]["status"]["github"]["autoMergeRequest"]["enabledAt"] === null || (typeof input["payload"]["prStatus"]["status"]["github"]["autoMergeRequest"]["enabledAt"] === "string")))))) && (input["payload"]["prStatus"]["status"]["github"]["autoMergeRequest"]["mergeMethod"] !== undefined && ((input["payload"]["prStatus"]["status"]["github"]["autoMergeRequest"]["mergeMethod"] === undefined || ((input["payload"]["prStatus"]["status"]["github"]["autoMergeRequest"]["mergeMethod"] === null || (typeof input["payload"]["prStatus"]["status"]["github"]["autoMergeRequest"]["mergeMethod"] === "string")))))) && (input["payload"]["prStatus"]["status"]["github"]["autoMergeRequest"]["enabledBy"] !== undefined && ((input["payload"]["prStatus"]["status"]["github"]["autoMergeRequest"]["enabledBy"] === undefined || ((input["payload"]["prStatus"]["status"]["github"]["autoMergeRequest"]["enabledBy"] === null || (typeof input["payload"]["prStatus"]["status"]["github"]["autoMergeRequest"]["enabledBy"] === "string")))))))))))) && (input["payload"]["prStatus"]["status"]["github"]["viewerCanEnableAutoMerge"] !== undefined && ((input["payload"]["prStatus"]["status"]["github"]["viewerCanEnableAutoMerge"] === undefined || (typeof input["payload"]["prStatus"]["status"]["github"]["viewerCanEnableAutoMerge"] === "boolean")))) && (input["payload"]["prStatus"]["status"]["github"]["viewerCanDisableAutoMerge"] !== undefined && ((input["payload"]["prStatus"]["status"]["github"]["viewerCanDisableAutoMerge"] === undefined || (typeof input["payload"]["prStatus"]["status"]["github"]["viewerCanDisableAutoMerge"] === "boolean")))) && (input["payload"]["prStatus"]["status"]["github"]["viewerCanMergeAsAdmin"] !== undefined && ((input["payload"]["prStatus"]["status"]["github"]["viewerCanMergeAsAdmin"] === undefined || (typeof input["payload"]["prStatus"]["status"]["github"]["viewerCanMergeAsAdmin"] === "boolean")))) && (input["payload"]["prStatus"]["status"]["github"]["viewerCanUpdateBranch"] !== undefined && ((input["payload"]["prStatus"]["status"]["github"]["viewerCanUpdateBranch"] === undefined || (typeof input["payload"]["prStatus"]["status"]["github"]["viewerCanUpdateBranch"] === "boolean")))) && (input["payload"]["prStatus"]["status"]["github"]["repository"] !== undefined && ((input["payload"]["prStatus"]["status"]["github"]["repository"] === undefined || (typeof input["payload"]["prStatus"]["status"]["github"]["repository"] === "object" && input["payload"]["prStatus"]["status"]["github"]["repository"] !== null && !Array.isArray(input["payload"]["prStatus"]["status"]["github"]["repository"]) && (input["payload"]["prStatus"]["status"]["github"]["repository"]["autoMergeAllowed"] !== undefined && ((input["payload"]["prStatus"]["status"]["github"]["repository"]["autoMergeAllowed"] === undefined || (typeof input["payload"]["prStatus"]["status"]["github"]["repository"]["autoMergeAllowed"] === "boolean")))) && (input["payload"]["prStatus"]["status"]["github"]["repository"]["mergeCommitAllowed"] !== undefined && ((input["payload"]["prStatus"]["status"]["github"]["repository"]["mergeCommitAllowed"] === undefined || (typeof input["payload"]["prStatus"]["status"]["github"]["repository"]["mergeCommitAllowed"] === "boolean")))) && (input["payload"]["prStatus"]["status"]["github"]["repository"]["squashMergeAllowed"] !== undefined && ((input["payload"]["prStatus"]["status"]["github"]["repository"]["squashMergeAllowed"] === undefined || (typeof input["payload"]["prStatus"]["status"]["github"]["repository"]["squashMergeAllowed"] === "boolean")))) && (input["payload"]["prStatus"]["status"]["github"]["repository"]["rebaseMergeAllowed"] !== undefined && ((input["payload"]["prStatus"]["status"]["github"]["repository"]["rebaseMergeAllowed"] === undefined || (typeof input["payload"]["prStatus"]["status"]["github"]["repository"]["rebaseMergeAllowed"] === "boolean")))) && (input["payload"]["prStatus"]["status"]["github"]["repository"]["viewerDefaultMergeMethod"] !== undefined && ((input["payload"]["prStatus"]["status"]["github"]["repository"]["viewerDefaultMergeMethod"] === undefined || ((input["payload"]["prStatus"]["status"]["github"]["repository"]["viewerDefaultMergeMethod"] === null || (typeof input["payload"]["prStatus"]["status"]["github"]["repository"]["viewerDefaultMergeMethod"] === "string")))))))))) && (input["payload"]["prStatus"]["status"]["github"]["isMergeQueueEnabled"] !== undefined && ((input["payload"]["prStatus"]["status"]["github"]["isMergeQueueEnabled"] === undefined || (typeof input["payload"]["prStatus"]["status"]["github"]["isMergeQueueEnabled"] === "boolean")))) && (input["payload"]["prStatus"]["status"]["github"]["isInMergeQueue"] !== undefined && ((input["payload"]["prStatus"]["status"]["github"]["isInMergeQueue"] === undefined || (typeof input["payload"]["prStatus"]["status"]["github"]["isInMergeQueue"] === "boolean")))))) && (input["payload"]["prStatus"]["status"]["forgeSpecific"] === undefined || (true)))) && typeof input["payload"]["prStatus"]["githubFeaturesEnabled"] === "boolean" && (input["payload"]["prStatus"]["authState"] === undefined || (true)) && (input["payload"]["prStatus"]["forge"] !== undefined && ((input["payload"]["prStatus"]["forge"] === undefined || (typeof input["payload"]["prStatus"]["forge"] === "string")))) && (input["payload"]["prStatus"]["error"] === null || (typeof input["payload"]["prStatus"]["error"] === "object" && input["payload"]["prStatus"]["error"] !== null && !Array.isArray(input["payload"]["prStatus"]["error"]) && __enumSet_10.has(input["payload"]["prStatus"]["error"]["code"]) && typeof input["payload"]["prStatus"]["error"]["message"] === "string")) && typeof input["payload"]["prStatus"]["requestId"] === "string"))) {
|
|
48710
48752
|
return { success: true, data: input };
|
|
48711
48753
|
}
|
|
48712
48754
|
var _e = [];
|
|
@@ -48761,6 +48803,20 @@ export const SessionOutboundMessage162 = /* @__PURE__ */ (() => {
|
|
|
48761
48803
|
__ui_14.push({ code: "invalid_value", values: ["tracked", "none", "gone", "unknown"], input: __o_17["upstreamState"], path: ["payload"].concat("upstreamState") });
|
|
48762
48804
|
}
|
|
48763
48805
|
}
|
|
48806
|
+
if (__o_17["pullRemote"] !== undefined) {
|
|
48807
|
+
if (__o_17["pullRemote"] !== null) {
|
|
48808
|
+
if (typeof __o_17["pullRemote"] !== "string") {
|
|
48809
|
+
__ui_14.push({ code: "invalid_type", expected: "string", input: __o_17["pullRemote"], path: ["payload"].concat("pullRemote") });
|
|
48810
|
+
}
|
|
48811
|
+
}
|
|
48812
|
+
}
|
|
48813
|
+
if (__o_17["pushRemote"] !== undefined) {
|
|
48814
|
+
if (__o_17["pushRemote"] !== null) {
|
|
48815
|
+
if (typeof __o_17["pushRemote"] !== "string") {
|
|
48816
|
+
__ui_14.push({ code: "invalid_type", expected: "string", input: __o_17["pushRemote"], path: ["payload"].concat("pushRemote") });
|
|
48817
|
+
}
|
|
48818
|
+
}
|
|
48819
|
+
}
|
|
48764
48820
|
if (__o_17["firstPushRemote"] !== undefined) {
|
|
48765
48821
|
if (__o_17["firstPushRemote"] !== null) {
|
|
48766
48822
|
if (typeof __o_17["firstPushRemote"] !== "string") {
|
|
@@ -48856,6 +48912,20 @@ export const SessionOutboundMessage162 = /* @__PURE__ */ (() => {
|
|
|
48856
48912
|
__ui_21.push({ code: "invalid_value", values: ["tracked", "none", "gone", "unknown"], input: __o_24["upstreamState"], path: ["payload"].concat("upstreamState") });
|
|
48857
48913
|
}
|
|
48858
48914
|
}
|
|
48915
|
+
if (__o_24["pullRemote"] !== undefined) {
|
|
48916
|
+
if (__o_24["pullRemote"] !== null) {
|
|
48917
|
+
if (typeof __o_24["pullRemote"] !== "string") {
|
|
48918
|
+
__ui_21.push({ code: "invalid_type", expected: "string", input: __o_24["pullRemote"], path: ["payload"].concat("pullRemote") });
|
|
48919
|
+
}
|
|
48920
|
+
}
|
|
48921
|
+
}
|
|
48922
|
+
if (__o_24["pushRemote"] !== undefined) {
|
|
48923
|
+
if (__o_24["pushRemote"] !== null) {
|
|
48924
|
+
if (typeof __o_24["pushRemote"] !== "string") {
|
|
48925
|
+
__ui_21.push({ code: "invalid_type", expected: "string", input: __o_24["pushRemote"], path: ["payload"].concat("pushRemote") });
|
|
48926
|
+
}
|
|
48927
|
+
}
|
|
48928
|
+
}
|
|
48859
48929
|
if (__o_24["firstPushRemote"] !== undefined) {
|
|
48860
48930
|
if (__o_24["firstPushRemote"] !== null) {
|
|
48861
48931
|
if (typeof __o_24["firstPushRemote"] !== "string") {
|
|
@@ -49009,6 +49079,20 @@ export const SessionOutboundMessage162 = /* @__PURE__ */ (() => {
|
|
|
49009
49079
|
__ui_29.push({ code: "invalid_value", values: ["tracked", "none", "gone", "unknown"], input: __o_32["upstreamState"], path: ["payload"].concat("upstreamState") });
|
|
49010
49080
|
}
|
|
49011
49081
|
}
|
|
49082
|
+
if (__o_32["pullRemote"] !== undefined) {
|
|
49083
|
+
if (__o_32["pullRemote"] !== null) {
|
|
49084
|
+
if (typeof __o_32["pullRemote"] !== "string") {
|
|
49085
|
+
__ui_29.push({ code: "invalid_type", expected: "string", input: __o_32["pullRemote"], path: ["payload"].concat("pullRemote") });
|
|
49086
|
+
}
|
|
49087
|
+
}
|
|
49088
|
+
}
|
|
49089
|
+
if (__o_32["pushRemote"] !== undefined) {
|
|
49090
|
+
if (__o_32["pushRemote"] !== null) {
|
|
49091
|
+
if (typeof __o_32["pushRemote"] !== "string") {
|
|
49092
|
+
__ui_29.push({ code: "invalid_type", expected: "string", input: __o_32["pushRemote"], path: ["payload"].concat("pushRemote") });
|
|
49093
|
+
}
|
|
49094
|
+
}
|
|
49095
|
+
}
|
|
49012
49096
|
if (__o_32["firstPushRemote"] !== undefined) {
|
|
49013
49097
|
if (__o_32["firstPushRemote"] !== null) {
|
|
49014
49098
|
if (typeof __o_32["firstPushRemote"] !== "string") {
|
|
@@ -61882,7 +61966,171 @@ export const SessionOutboundMessage233 = /* @__PURE__ */ (() => {
|
|
|
61882
61966
|
return __mkv(safeParse_SessionOutboundMessage233, null);
|
|
61883
61967
|
})();
|
|
61884
61968
|
export const SessionOutboundMessage234 = /* @__PURE__ */ (() => {
|
|
61969
|
+
function __rf_3(o) { var __rk_2, ks = Object.keys(o); for (var i = 0; i < ks.length; i++) {
|
|
61970
|
+
__rk_2 = ks[i];
|
|
61971
|
+
if (!(typeof __rk_2 === "string" && typeof o[__rk_2] === "string")) {
|
|
61972
|
+
return false;
|
|
61973
|
+
}
|
|
61974
|
+
} return true; }
|
|
61975
|
+
function __du_0(__dx_1) { switch (__dx_1["type"]) {
|
|
61976
|
+
case "agent": return typeof __dx_1 === "object" && __dx_1 !== null && !Array.isArray(__dx_1) && __dx_1["type"] === "agent" && typeof __dx_1["agentId"] === "string";
|
|
61977
|
+
case "workspace": return typeof __dx_1 === "object" && __dx_1 !== null && !Array.isArray(__dx_1) && __dx_1["type"] === "workspace" && typeof __dx_1["workspaceId"] === "string";
|
|
61978
|
+
case "screen": return typeof __dx_1 === "object" && __dx_1 !== null && !Array.isArray(__dx_1) && __dx_1["type"] === "screen" && typeof __dx_1["screenId"] === "string" && (__dx_1["params"] === undefined || (typeof __dx_1["params"] === "object" && __dx_1["params"] !== null && !Array.isArray(__dx_1["params"]) && __rf_3(__dx_1["params"])));
|
|
61979
|
+
default: return false;
|
|
61980
|
+
} }
|
|
61981
|
+
function __rf_5(o) { var __rk_4, ks = Object.keys(o); for (var i = 0; i < ks.length; i++) {
|
|
61982
|
+
__rk_4 = ks[i];
|
|
61983
|
+
if (!(typeof __rk_4 === "string")) {
|
|
61984
|
+
return false;
|
|
61985
|
+
}
|
|
61986
|
+
} return true; }
|
|
61885
61987
|
function safeParse_SessionOutboundMessage234(input) {
|
|
61988
|
+
if (typeof input === "object" && input !== null && !Array.isArray(input) && input["type"] === "plugin.notification" && typeof input["payload"] === "object" && input["payload"] !== null && !Array.isArray(input["payload"]) && (input["payload"]["subscriptionId"] === undefined || (typeof input["payload"]["subscriptionId"] === "string")) && (input["payload"]["serverId"] === undefined || (typeof input["payload"]["serverId"] === "string")) && typeof input["payload"]["pluginId"] === "string" && typeof input["payload"]["notificationId"] === "string" && typeof input["payload"]["title"] === "string" && typeof input["payload"]["body"] === "string" && (input["payload"]["open"] === undefined || (typeof input["payload"]["open"] === "object" && input["payload"]["open"] !== null && !Array.isArray(input["payload"]["open"]) && __du_0(input["payload"]["open"]))) && (input["payload"]["data"] === undefined || (typeof input["payload"]["data"] === "object" && input["payload"]["data"] !== null && !Array.isArray(input["payload"]["data"]) && __rf_5(input["payload"]["data"]))) && typeof input["payload"]["shouldNotify"] === "boolean") {
|
|
61989
|
+
return { success: true, data: input };
|
|
61990
|
+
}
|
|
61991
|
+
var _e = [];
|
|
61992
|
+
var _d = input;
|
|
61993
|
+
if (typeof _d !== "object" || _d === null || Array.isArray(_d)) {
|
|
61994
|
+
_e.push({ code: "invalid_type", expected: "object", input: _d, path: [] });
|
|
61995
|
+
}
|
|
61996
|
+
else {
|
|
61997
|
+
var __o_6 = _d;
|
|
61998
|
+
if (__o_6["type"] !== "plugin.notification") {
|
|
61999
|
+
_e.push({ code: "invalid_value", values: ["plugin.notification"], input: __o_6["type"], path: ["type"] });
|
|
62000
|
+
}
|
|
62001
|
+
if (typeof __o_6["payload"] !== "object" || __o_6["payload"] === null || Array.isArray(__o_6["payload"])) {
|
|
62002
|
+
_e.push({ code: "invalid_type", expected: "object", input: __o_6["payload"], path: ["payload"] });
|
|
62003
|
+
}
|
|
62004
|
+
else {
|
|
62005
|
+
var __o_7 = __o_6["payload"];
|
|
62006
|
+
if (__o_7["subscriptionId"] !== undefined) {
|
|
62007
|
+
if (typeof __o_7["subscriptionId"] !== "string") {
|
|
62008
|
+
_e.push({ code: "invalid_type", expected: "string", input: __o_7["subscriptionId"], path: ["payload"].concat("subscriptionId") });
|
|
62009
|
+
}
|
|
62010
|
+
}
|
|
62011
|
+
if (__o_7["serverId"] !== undefined) {
|
|
62012
|
+
if (typeof __o_7["serverId"] !== "string") {
|
|
62013
|
+
_e.push({ code: "invalid_type", expected: "string", input: __o_7["serverId"], path: ["payload"].concat("serverId") });
|
|
62014
|
+
}
|
|
62015
|
+
}
|
|
62016
|
+
if (typeof __o_7["pluginId"] !== "string") {
|
|
62017
|
+
_e.push({ code: "invalid_type", expected: "string", input: __o_7["pluginId"], path: ["payload"].concat("pluginId") });
|
|
62018
|
+
}
|
|
62019
|
+
if (typeof __o_7["notificationId"] !== "string") {
|
|
62020
|
+
_e.push({ code: "invalid_type", expected: "string", input: __o_7["notificationId"], path: ["payload"].concat("notificationId") });
|
|
62021
|
+
}
|
|
62022
|
+
if (typeof __o_7["title"] !== "string") {
|
|
62023
|
+
_e.push({ code: "invalid_type", expected: "string", input: __o_7["title"], path: ["payload"].concat("title") });
|
|
62024
|
+
}
|
|
62025
|
+
if (typeof __o_7["body"] !== "string") {
|
|
62026
|
+
_e.push({ code: "invalid_type", expected: "string", input: __o_7["body"], path: ["payload"].concat("body") });
|
|
62027
|
+
}
|
|
62028
|
+
if (__o_7["open"] !== undefined) {
|
|
62029
|
+
if (typeof __o_7["open"] !== "object" || __o_7["open"] === null || Array.isArray(__o_7["open"])) {
|
|
62030
|
+
_e.push({ code: "invalid_type", expected: "object", input: __o_7["open"], path: ["payload"].concat("open") });
|
|
62031
|
+
}
|
|
62032
|
+
else {
|
|
62033
|
+
var __du_8 = __o_7["open"];
|
|
62034
|
+
switch (__du_8["type"]) {
|
|
62035
|
+
case "agent":
|
|
62036
|
+
if (typeof __du_8 !== "object" || __du_8 === null || Array.isArray(__du_8)) {
|
|
62037
|
+
_e.push({ code: "invalid_type", expected: "object", input: __du_8, path: ["payload"].concat("open") });
|
|
62038
|
+
}
|
|
62039
|
+
else {
|
|
62040
|
+
var __o_9 = __du_8;
|
|
62041
|
+
if (__o_9["type"] !== "agent") {
|
|
62042
|
+
_e.push({ code: "invalid_value", values: ["agent"], input: __o_9["type"], path: ["payload"].concat("open").concat("type") });
|
|
62043
|
+
}
|
|
62044
|
+
if (typeof __o_9["agentId"] !== "string") {
|
|
62045
|
+
_e.push({ code: "invalid_type", expected: "string", input: __o_9["agentId"], path: ["payload"].concat("open").concat("agentId") });
|
|
62046
|
+
}
|
|
62047
|
+
}
|
|
62048
|
+
break;
|
|
62049
|
+
case "workspace":
|
|
62050
|
+
if (typeof __du_8 !== "object" || __du_8 === null || Array.isArray(__du_8)) {
|
|
62051
|
+
_e.push({ code: "invalid_type", expected: "object", input: __du_8, path: ["payload"].concat("open") });
|
|
62052
|
+
}
|
|
62053
|
+
else {
|
|
62054
|
+
var __o_10 = __du_8;
|
|
62055
|
+
if (__o_10["type"] !== "workspace") {
|
|
62056
|
+
_e.push({ code: "invalid_value", values: ["workspace"], input: __o_10["type"], path: ["payload"].concat("open").concat("type") });
|
|
62057
|
+
}
|
|
62058
|
+
if (typeof __o_10["workspaceId"] !== "string") {
|
|
62059
|
+
_e.push({ code: "invalid_type", expected: "string", input: __o_10["workspaceId"], path: ["payload"].concat("open").concat("workspaceId") });
|
|
62060
|
+
}
|
|
62061
|
+
}
|
|
62062
|
+
break;
|
|
62063
|
+
case "screen":
|
|
62064
|
+
if (typeof __du_8 !== "object" || __du_8 === null || Array.isArray(__du_8)) {
|
|
62065
|
+
_e.push({ code: "invalid_type", expected: "object", input: __du_8, path: ["payload"].concat("open") });
|
|
62066
|
+
}
|
|
62067
|
+
else {
|
|
62068
|
+
var __o_11 = __du_8;
|
|
62069
|
+
if (__o_11["type"] !== "screen") {
|
|
62070
|
+
_e.push({ code: "invalid_value", values: ["screen"], input: __o_11["type"], path: ["payload"].concat("open").concat("type") });
|
|
62071
|
+
}
|
|
62072
|
+
if (typeof __o_11["screenId"] !== "string") {
|
|
62073
|
+
_e.push({ code: "invalid_type", expected: "string", input: __o_11["screenId"], path: ["payload"].concat("open").concat("screenId") });
|
|
62074
|
+
}
|
|
62075
|
+
if (__o_11["params"] !== undefined) {
|
|
62076
|
+
if (typeof __o_11["params"] !== "object" || __o_11["params"] === null || Array.isArray(__o_11["params"])) {
|
|
62077
|
+
_e.push({ code: "invalid_type", expected: "record", input: __o_11["params"], path: ["payload"].concat("open").concat("params") });
|
|
62078
|
+
}
|
|
62079
|
+
else {
|
|
62080
|
+
var __rk_12 = Object.keys(__o_11["params"]);
|
|
62081
|
+
for (var __ri_13 = 0; __ri_13 < __rk_12.length; __ri_13++) {
|
|
62082
|
+
var __rkey_14 = __rk_12[__ri_13];
|
|
62083
|
+
var __rki_15 = [];
|
|
62084
|
+
if (typeof __rkey_14 !== "string") {
|
|
62085
|
+
__rki_15.push({ code: "invalid_type", expected: "string", input: __rkey_14, path: ["payload"].concat("open").concat("params").concat(__rkey_14) });
|
|
62086
|
+
}
|
|
62087
|
+
if (__rki_15.length > 0) {
|
|
62088
|
+
_e.push({ code: "invalid_key", origin: "record", path: ["payload"].concat("open").concat("params").concat(__rkey_14), issues: __rki_15 });
|
|
62089
|
+
}
|
|
62090
|
+
else {
|
|
62091
|
+
if (typeof __o_11["params"][__rkey_14] !== "string") {
|
|
62092
|
+
_e.push({ code: "invalid_type", expected: "string", input: __o_11["params"][__rkey_14], path: ["payload"].concat("open").concat("params").concat(__rkey_14) });
|
|
62093
|
+
}
|
|
62094
|
+
}
|
|
62095
|
+
}
|
|
62096
|
+
}
|
|
62097
|
+
}
|
|
62098
|
+
}
|
|
62099
|
+
break;
|
|
62100
|
+
default: _e.push({ code: "invalid_union", errors: [], note: "No matching discriminator", discriminator: "type", options: ["agent", "workspace", "screen"], input: __o_7["open"], path: ["payload"].concat("open").concat("type") });
|
|
62101
|
+
}
|
|
62102
|
+
}
|
|
62103
|
+
}
|
|
62104
|
+
if (__o_7["data"] !== undefined) {
|
|
62105
|
+
if (typeof __o_7["data"] !== "object" || __o_7["data"] === null || Array.isArray(__o_7["data"])) {
|
|
62106
|
+
_e.push({ code: "invalid_type", expected: "record", input: __o_7["data"], path: ["payload"].concat("data") });
|
|
62107
|
+
}
|
|
62108
|
+
else {
|
|
62109
|
+
var __rk_16 = Object.keys(__o_7["data"]);
|
|
62110
|
+
for (var __ri_17 = 0; __ri_17 < __rk_16.length; __ri_17++) {
|
|
62111
|
+
var __rkey_18 = __rk_16[__ri_17];
|
|
62112
|
+
var __rki_19 = [];
|
|
62113
|
+
if (typeof __rkey_18 !== "string") {
|
|
62114
|
+
__rki_19.push({ code: "invalid_type", expected: "string", input: __rkey_18, path: ["payload"].concat("data").concat(__rkey_18) });
|
|
62115
|
+
}
|
|
62116
|
+
if (__rki_19.length > 0) {
|
|
62117
|
+
_e.push({ code: "invalid_key", origin: "record", path: ["payload"].concat("data").concat(__rkey_18), issues: __rki_19 });
|
|
62118
|
+
}
|
|
62119
|
+
else { }
|
|
62120
|
+
}
|
|
62121
|
+
}
|
|
62122
|
+
}
|
|
62123
|
+
if (typeof __o_7["shouldNotify"] !== "boolean") {
|
|
62124
|
+
_e.push({ code: "invalid_type", expected: "boolean", input: __o_7["shouldNotify"], path: ["payload"].concat("shouldNotify") });
|
|
62125
|
+
}
|
|
62126
|
+
}
|
|
62127
|
+
}
|
|
62128
|
+
return __fin(_e, _d);
|
|
62129
|
+
}
|
|
62130
|
+
return __mkv(safeParse_SessionOutboundMessage234, null);
|
|
62131
|
+
})();
|
|
62132
|
+
export const SessionOutboundMessage235 = /* @__PURE__ */ (() => {
|
|
62133
|
+
function safeParse_SessionOutboundMessage235(input) {
|
|
61886
62134
|
if (typeof input === "object" && input !== null && !Array.isArray(input) && input["type"] === "chat/create/response" && typeof input["payload"] === "object" && input["payload"] !== null && !Array.isArray(input["payload"]) && typeof input["payload"]["requestId"] === "string" && (input["payload"]["room"] === null || (typeof input["payload"]["room"] === "object" && input["payload"]["room"] !== null && !Array.isArray(input["payload"]["room"]) && typeof input["payload"]["room"]["id"] === "string" && typeof input["payload"]["room"]["name"] === "string" && (input["payload"]["room"]["purpose"] === null || (typeof input["payload"]["room"]["purpose"] === "string")) && typeof input["payload"]["room"]["createdAt"] === "string" && typeof input["payload"]["room"]["updatedAt"] === "string" && typeof input["payload"]["room"]["messageCount"] === "number" && Number.isSafeInteger(input["payload"]["room"]["messageCount"]) && input["payload"]["room"]["messageCount"] >= 0 && (input["payload"]["room"]["lastMessageAt"] === null || (typeof input["payload"]["room"]["lastMessageAt"] === "string")))) && (input["payload"]["error"] === null || (typeof input["payload"]["error"] === "string"))) {
|
|
61887
62135
|
return { success: true, data: input };
|
|
61888
62136
|
}
|
|
@@ -61960,16 +62208,16 @@ export const SessionOutboundMessage234 = /* @__PURE__ */ (() => {
|
|
|
61960
62208
|
}
|
|
61961
62209
|
return __fin(_e, _d);
|
|
61962
62210
|
}
|
|
61963
|
-
return __mkv(
|
|
62211
|
+
return __mkv(safeParse_SessionOutboundMessage235, null);
|
|
61964
62212
|
})();
|
|
61965
|
-
export const
|
|
62213
|
+
export const SessionOutboundMessage236 = /* @__PURE__ */ (() => {
|
|
61966
62214
|
function __af_1(a) { for (var __ae_0, i = 0; i < a.length; i++) {
|
|
61967
62215
|
__ae_0 = a[i];
|
|
61968
62216
|
if (!(typeof __ae_0 === "object" && __ae_0 !== null && !Array.isArray(__ae_0) && typeof __ae_0["id"] === "string" && typeof __ae_0["name"] === "string" && (__ae_0["purpose"] === null || (typeof __ae_0["purpose"] === "string")) && typeof __ae_0["createdAt"] === "string" && typeof __ae_0["updatedAt"] === "string" && typeof __ae_0["messageCount"] === "number" && Number.isSafeInteger(__ae_0["messageCount"]) && __ae_0["messageCount"] >= 0 && (__ae_0["lastMessageAt"] === null || (typeof __ae_0["lastMessageAt"] === "string")))) {
|
|
61969
62217
|
return false;
|
|
61970
62218
|
}
|
|
61971
62219
|
} return true; }
|
|
61972
|
-
function
|
|
62220
|
+
function safeParse_SessionOutboundMessage236(input) {
|
|
61973
62221
|
if (typeof input === "object" && input !== null && !Array.isArray(input) && input["type"] === "chat/list/response" && typeof input["payload"] === "object" && input["payload"] !== null && !Array.isArray(input["payload"]) && typeof input["payload"]["requestId"] === "string" && Array.isArray(input["payload"]["rooms"]) && __af_1(input["payload"]["rooms"]) && (input["payload"]["error"] === null || (typeof input["payload"]["error"] === "string"))) {
|
|
61974
62222
|
return { success: true, data: input };
|
|
61975
62223
|
}
|
|
@@ -62052,10 +62300,10 @@ export const SessionOutboundMessage235 = /* @__PURE__ */ (() => {
|
|
|
62052
62300
|
}
|
|
62053
62301
|
return __fin(_e, _d);
|
|
62054
62302
|
}
|
|
62055
|
-
return __mkv(
|
|
62303
|
+
return __mkv(safeParse_SessionOutboundMessage236, null);
|
|
62056
62304
|
})();
|
|
62057
|
-
export const
|
|
62058
|
-
function
|
|
62305
|
+
export const SessionOutboundMessage237 = /* @__PURE__ */ (() => {
|
|
62306
|
+
function safeParse_SessionOutboundMessage237(input) {
|
|
62059
62307
|
if (typeof input === "object" && input !== null && !Array.isArray(input) && input["type"] === "chat/inspect/response" && typeof input["payload"] === "object" && input["payload"] !== null && !Array.isArray(input["payload"]) && typeof input["payload"]["requestId"] === "string" && (input["payload"]["room"] === null || (typeof input["payload"]["room"] === "object" && input["payload"]["room"] !== null && !Array.isArray(input["payload"]["room"]) && typeof input["payload"]["room"]["id"] === "string" && typeof input["payload"]["room"]["name"] === "string" && (input["payload"]["room"]["purpose"] === null || (typeof input["payload"]["room"]["purpose"] === "string")) && typeof input["payload"]["room"]["createdAt"] === "string" && typeof input["payload"]["room"]["updatedAt"] === "string" && typeof input["payload"]["room"]["messageCount"] === "number" && Number.isSafeInteger(input["payload"]["room"]["messageCount"]) && input["payload"]["room"]["messageCount"] >= 0 && (input["payload"]["room"]["lastMessageAt"] === null || (typeof input["payload"]["room"]["lastMessageAt"] === "string")))) && (input["payload"]["error"] === null || (typeof input["payload"]["error"] === "string"))) {
|
|
62060
62308
|
return { success: true, data: input };
|
|
62061
62309
|
}
|
|
@@ -62133,10 +62381,10 @@ export const SessionOutboundMessage236 = /* @__PURE__ */ (() => {
|
|
|
62133
62381
|
}
|
|
62134
62382
|
return __fin(_e, _d);
|
|
62135
62383
|
}
|
|
62136
|
-
return __mkv(
|
|
62384
|
+
return __mkv(safeParse_SessionOutboundMessage237, null);
|
|
62137
62385
|
})();
|
|
62138
|
-
export const
|
|
62139
|
-
function
|
|
62386
|
+
export const SessionOutboundMessage238 = /* @__PURE__ */ (() => {
|
|
62387
|
+
function safeParse_SessionOutboundMessage238(input) {
|
|
62140
62388
|
if (typeof input === "object" && input !== null && !Array.isArray(input) && input["type"] === "chat/delete/response" && typeof input["payload"] === "object" && input["payload"] !== null && !Array.isArray(input["payload"]) && typeof input["payload"]["requestId"] === "string" && (input["payload"]["room"] === null || (typeof input["payload"]["room"] === "object" && input["payload"]["room"] !== null && !Array.isArray(input["payload"]["room"]) && typeof input["payload"]["room"]["id"] === "string" && typeof input["payload"]["room"]["name"] === "string" && (input["payload"]["room"]["purpose"] === null || (typeof input["payload"]["room"]["purpose"] === "string")) && typeof input["payload"]["room"]["createdAt"] === "string" && typeof input["payload"]["room"]["updatedAt"] === "string" && typeof input["payload"]["room"]["messageCount"] === "number" && Number.isSafeInteger(input["payload"]["room"]["messageCount"]) && input["payload"]["room"]["messageCount"] >= 0 && (input["payload"]["room"]["lastMessageAt"] === null || (typeof input["payload"]["room"]["lastMessageAt"] === "string")))) && (input["payload"]["error"] === null || (typeof input["payload"]["error"] === "string"))) {
|
|
62141
62389
|
return { success: true, data: input };
|
|
62142
62390
|
}
|
|
@@ -62214,16 +62462,16 @@ export const SessionOutboundMessage237 = /* @__PURE__ */ (() => {
|
|
|
62214
62462
|
}
|
|
62215
62463
|
return __fin(_e, _d);
|
|
62216
62464
|
}
|
|
62217
|
-
return __mkv(
|
|
62465
|
+
return __mkv(safeParse_SessionOutboundMessage238, null);
|
|
62218
62466
|
})();
|
|
62219
|
-
export const
|
|
62467
|
+
export const SessionOutboundMessage239 = /* @__PURE__ */ (() => {
|
|
62220
62468
|
function __af_1(a) { for (var __ae_0, i = 0; i < a.length; i++) {
|
|
62221
62469
|
__ae_0 = a[i];
|
|
62222
62470
|
if (!(typeof __ae_0 === "string")) {
|
|
62223
62471
|
return false;
|
|
62224
62472
|
}
|
|
62225
62473
|
} return true; }
|
|
62226
|
-
function
|
|
62474
|
+
function safeParse_SessionOutboundMessage239(input) {
|
|
62227
62475
|
if (typeof input === "object" && input !== null && !Array.isArray(input) && input["type"] === "chat/post/response" && typeof input["payload"] === "object" && input["payload"] !== null && !Array.isArray(input["payload"]) && typeof input["payload"]["requestId"] === "string" && (input["payload"]["message"] === null || (typeof input["payload"]["message"] === "object" && input["payload"]["message"] !== null && !Array.isArray(input["payload"]["message"]) && typeof input["payload"]["message"]["id"] === "string" && typeof input["payload"]["message"]["roomId"] === "string" && typeof input["payload"]["message"]["authorAgentId"] === "string" && typeof input["payload"]["message"]["body"] === "string" && (input["payload"]["message"]["replyToMessageId"] === null || (typeof input["payload"]["message"]["replyToMessageId"] === "string")) && Array.isArray(input["payload"]["message"]["mentionAgentIds"]) && __af_1(input["payload"]["message"]["mentionAgentIds"]) && typeof input["payload"]["message"]["createdAt"] === "string")) && (input["payload"]["error"] === null || (typeof input["payload"]["error"] === "string"))) {
|
|
62228
62476
|
return { success: true, data: input };
|
|
62229
62477
|
}
|
|
@@ -62292,95 +62540,6 @@ export const SessionOutboundMessage238 = /* @__PURE__ */ (() => {
|
|
|
62292
62540
|
}
|
|
62293
62541
|
return __fin(_e, _d);
|
|
62294
62542
|
}
|
|
62295
|
-
return __mkv(safeParse_SessionOutboundMessage238, null);
|
|
62296
|
-
})();
|
|
62297
|
-
export const SessionOutboundMessage239 = /* @__PURE__ */ (() => {
|
|
62298
|
-
function __af_2(a) { for (var __ae_1, i = 0; i < a.length; i++) {
|
|
62299
|
-
__ae_1 = a[i];
|
|
62300
|
-
if (!(typeof __ae_1 === "string")) {
|
|
62301
|
-
return false;
|
|
62302
|
-
}
|
|
62303
|
-
} return true; }
|
|
62304
|
-
function __af_3(a) { for (var __ae_0, i = 0; i < a.length; i++) {
|
|
62305
|
-
__ae_0 = a[i];
|
|
62306
|
-
if (!(typeof __ae_0 === "object" && __ae_0 !== null && !Array.isArray(__ae_0) && typeof __ae_0["id"] === "string" && typeof __ae_0["roomId"] === "string" && typeof __ae_0["authorAgentId"] === "string" && typeof __ae_0["body"] === "string" && (__ae_0["replyToMessageId"] === null || (typeof __ae_0["replyToMessageId"] === "string")) && Array.isArray(__ae_0["mentionAgentIds"]) && __af_2(__ae_0["mentionAgentIds"]) && typeof __ae_0["createdAt"] === "string")) {
|
|
62307
|
-
return false;
|
|
62308
|
-
}
|
|
62309
|
-
} return true; }
|
|
62310
|
-
function safeParse_SessionOutboundMessage239(input) {
|
|
62311
|
-
if (typeof input === "object" && input !== null && !Array.isArray(input) && input["type"] === "chat/read/response" && typeof input["payload"] === "object" && input["payload"] !== null && !Array.isArray(input["payload"]) && typeof input["payload"]["requestId"] === "string" && Array.isArray(input["payload"]["messages"]) && __af_3(input["payload"]["messages"]) && (input["payload"]["error"] === null || (typeof input["payload"]["error"] === "string"))) {
|
|
62312
|
-
return { success: true, data: input };
|
|
62313
|
-
}
|
|
62314
|
-
var _e = [];
|
|
62315
|
-
var _d = input;
|
|
62316
|
-
if (typeof _d !== "object" || _d === null || Array.isArray(_d)) {
|
|
62317
|
-
_e.push({ code: "invalid_type", expected: "object", input: _d, path: [] });
|
|
62318
|
-
}
|
|
62319
|
-
else {
|
|
62320
|
-
var __o_4 = _d;
|
|
62321
|
-
if (__o_4["type"] !== "chat/read/response") {
|
|
62322
|
-
_e.push({ code: "invalid_value", values: ["chat/read/response"], input: __o_4["type"], path: ["type"] });
|
|
62323
|
-
}
|
|
62324
|
-
if (typeof __o_4["payload"] !== "object" || __o_4["payload"] === null || Array.isArray(__o_4["payload"])) {
|
|
62325
|
-
_e.push({ code: "invalid_type", expected: "object", input: __o_4["payload"], path: ["payload"] });
|
|
62326
|
-
}
|
|
62327
|
-
else {
|
|
62328
|
-
var __o_5 = __o_4["payload"];
|
|
62329
|
-
if (typeof __o_5["requestId"] !== "string") {
|
|
62330
|
-
_e.push({ code: "invalid_type", expected: "string", input: __o_5["requestId"], path: ["payload"].concat("requestId") });
|
|
62331
|
-
}
|
|
62332
|
-
if (!Array.isArray(__o_5["messages"])) {
|
|
62333
|
-
_e.push({ code: "invalid_type", expected: "array", input: __o_5["messages"], path: ["payload"].concat("messages") });
|
|
62334
|
-
}
|
|
62335
|
-
else {
|
|
62336
|
-
for (var __i_6 = 0; __i_6 < __o_5["messages"].length; __i_6++) {
|
|
62337
|
-
if (typeof __o_5["messages"][__i_6] !== "object" || __o_5["messages"][__i_6] === null || Array.isArray(__o_5["messages"][__i_6])) {
|
|
62338
|
-
_e.push({ code: "invalid_type", expected: "object", input: __o_5["messages"][__i_6], path: ["payload"].concat("messages").concat(__i_6) });
|
|
62339
|
-
}
|
|
62340
|
-
else {
|
|
62341
|
-
var __o_7 = __o_5["messages"][__i_6];
|
|
62342
|
-
if (typeof __o_7["id"] !== "string") {
|
|
62343
|
-
_e.push({ code: "invalid_type", expected: "string", input: __o_7["id"], path: ["payload"].concat("messages").concat(__i_6).concat("id") });
|
|
62344
|
-
}
|
|
62345
|
-
if (typeof __o_7["roomId"] !== "string") {
|
|
62346
|
-
_e.push({ code: "invalid_type", expected: "string", input: __o_7["roomId"], path: ["payload"].concat("messages").concat(__i_6).concat("roomId") });
|
|
62347
|
-
}
|
|
62348
|
-
if (typeof __o_7["authorAgentId"] !== "string") {
|
|
62349
|
-
_e.push({ code: "invalid_type", expected: "string", input: __o_7["authorAgentId"], path: ["payload"].concat("messages").concat(__i_6).concat("authorAgentId") });
|
|
62350
|
-
}
|
|
62351
|
-
if (typeof __o_7["body"] !== "string") {
|
|
62352
|
-
_e.push({ code: "invalid_type", expected: "string", input: __o_7["body"], path: ["payload"].concat("messages").concat(__i_6).concat("body") });
|
|
62353
|
-
}
|
|
62354
|
-
if (__o_7["replyToMessageId"] !== null) {
|
|
62355
|
-
if (typeof __o_7["replyToMessageId"] !== "string") {
|
|
62356
|
-
_e.push({ code: "invalid_type", expected: "string", input: __o_7["replyToMessageId"], path: ["payload"].concat("messages").concat(__i_6).concat("replyToMessageId") });
|
|
62357
|
-
}
|
|
62358
|
-
}
|
|
62359
|
-
if (!Array.isArray(__o_7["mentionAgentIds"])) {
|
|
62360
|
-
_e.push({ code: "invalid_type", expected: "array", input: __o_7["mentionAgentIds"], path: ["payload"].concat("messages").concat(__i_6).concat("mentionAgentIds") });
|
|
62361
|
-
}
|
|
62362
|
-
else {
|
|
62363
|
-
for (var __i_8 = 0; __i_8 < __o_7["mentionAgentIds"].length; __i_8++) {
|
|
62364
|
-
if (typeof __o_7["mentionAgentIds"][__i_8] !== "string") {
|
|
62365
|
-
_e.push({ code: "invalid_type", expected: "string", input: __o_7["mentionAgentIds"][__i_8], path: ["payload"].concat("messages").concat(__i_6).concat("mentionAgentIds").concat(__i_8) });
|
|
62366
|
-
}
|
|
62367
|
-
}
|
|
62368
|
-
}
|
|
62369
|
-
if (typeof __o_7["createdAt"] !== "string") {
|
|
62370
|
-
_e.push({ code: "invalid_type", expected: "string", input: __o_7["createdAt"], path: ["payload"].concat("messages").concat(__i_6).concat("createdAt") });
|
|
62371
|
-
}
|
|
62372
|
-
}
|
|
62373
|
-
}
|
|
62374
|
-
}
|
|
62375
|
-
if (__o_5["error"] !== null) {
|
|
62376
|
-
if (typeof __o_5["error"] !== "string") {
|
|
62377
|
-
_e.push({ code: "invalid_type", expected: "string", input: __o_5["error"], path: ["payload"].concat("error") });
|
|
62378
|
-
}
|
|
62379
|
-
}
|
|
62380
|
-
}
|
|
62381
|
-
}
|
|
62382
|
-
return __fin(_e, _d);
|
|
62383
|
-
}
|
|
62384
62543
|
return __mkv(safeParse_SessionOutboundMessage239, null);
|
|
62385
62544
|
})();
|
|
62386
62545
|
export const SessionOutboundMessage24 = /* @__PURE__ */ (() => {
|
|
@@ -62762,6 +62921,95 @@ export const SessionOutboundMessage240 = /* @__PURE__ */ (() => {
|
|
|
62762
62921
|
}
|
|
62763
62922
|
} return true; }
|
|
62764
62923
|
function safeParse_SessionOutboundMessage240(input) {
|
|
62924
|
+
if (typeof input === "object" && input !== null && !Array.isArray(input) && input["type"] === "chat/read/response" && typeof input["payload"] === "object" && input["payload"] !== null && !Array.isArray(input["payload"]) && typeof input["payload"]["requestId"] === "string" && Array.isArray(input["payload"]["messages"]) && __af_3(input["payload"]["messages"]) && (input["payload"]["error"] === null || (typeof input["payload"]["error"] === "string"))) {
|
|
62925
|
+
return { success: true, data: input };
|
|
62926
|
+
}
|
|
62927
|
+
var _e = [];
|
|
62928
|
+
var _d = input;
|
|
62929
|
+
if (typeof _d !== "object" || _d === null || Array.isArray(_d)) {
|
|
62930
|
+
_e.push({ code: "invalid_type", expected: "object", input: _d, path: [] });
|
|
62931
|
+
}
|
|
62932
|
+
else {
|
|
62933
|
+
var __o_4 = _d;
|
|
62934
|
+
if (__o_4["type"] !== "chat/read/response") {
|
|
62935
|
+
_e.push({ code: "invalid_value", values: ["chat/read/response"], input: __o_4["type"], path: ["type"] });
|
|
62936
|
+
}
|
|
62937
|
+
if (typeof __o_4["payload"] !== "object" || __o_4["payload"] === null || Array.isArray(__o_4["payload"])) {
|
|
62938
|
+
_e.push({ code: "invalid_type", expected: "object", input: __o_4["payload"], path: ["payload"] });
|
|
62939
|
+
}
|
|
62940
|
+
else {
|
|
62941
|
+
var __o_5 = __o_4["payload"];
|
|
62942
|
+
if (typeof __o_5["requestId"] !== "string") {
|
|
62943
|
+
_e.push({ code: "invalid_type", expected: "string", input: __o_5["requestId"], path: ["payload"].concat("requestId") });
|
|
62944
|
+
}
|
|
62945
|
+
if (!Array.isArray(__o_5["messages"])) {
|
|
62946
|
+
_e.push({ code: "invalid_type", expected: "array", input: __o_5["messages"], path: ["payload"].concat("messages") });
|
|
62947
|
+
}
|
|
62948
|
+
else {
|
|
62949
|
+
for (var __i_6 = 0; __i_6 < __o_5["messages"].length; __i_6++) {
|
|
62950
|
+
if (typeof __o_5["messages"][__i_6] !== "object" || __o_5["messages"][__i_6] === null || Array.isArray(__o_5["messages"][__i_6])) {
|
|
62951
|
+
_e.push({ code: "invalid_type", expected: "object", input: __o_5["messages"][__i_6], path: ["payload"].concat("messages").concat(__i_6) });
|
|
62952
|
+
}
|
|
62953
|
+
else {
|
|
62954
|
+
var __o_7 = __o_5["messages"][__i_6];
|
|
62955
|
+
if (typeof __o_7["id"] !== "string") {
|
|
62956
|
+
_e.push({ code: "invalid_type", expected: "string", input: __o_7["id"], path: ["payload"].concat("messages").concat(__i_6).concat("id") });
|
|
62957
|
+
}
|
|
62958
|
+
if (typeof __o_7["roomId"] !== "string") {
|
|
62959
|
+
_e.push({ code: "invalid_type", expected: "string", input: __o_7["roomId"], path: ["payload"].concat("messages").concat(__i_6).concat("roomId") });
|
|
62960
|
+
}
|
|
62961
|
+
if (typeof __o_7["authorAgentId"] !== "string") {
|
|
62962
|
+
_e.push({ code: "invalid_type", expected: "string", input: __o_7["authorAgentId"], path: ["payload"].concat("messages").concat(__i_6).concat("authorAgentId") });
|
|
62963
|
+
}
|
|
62964
|
+
if (typeof __o_7["body"] !== "string") {
|
|
62965
|
+
_e.push({ code: "invalid_type", expected: "string", input: __o_7["body"], path: ["payload"].concat("messages").concat(__i_6).concat("body") });
|
|
62966
|
+
}
|
|
62967
|
+
if (__o_7["replyToMessageId"] !== null) {
|
|
62968
|
+
if (typeof __o_7["replyToMessageId"] !== "string") {
|
|
62969
|
+
_e.push({ code: "invalid_type", expected: "string", input: __o_7["replyToMessageId"], path: ["payload"].concat("messages").concat(__i_6).concat("replyToMessageId") });
|
|
62970
|
+
}
|
|
62971
|
+
}
|
|
62972
|
+
if (!Array.isArray(__o_7["mentionAgentIds"])) {
|
|
62973
|
+
_e.push({ code: "invalid_type", expected: "array", input: __o_7["mentionAgentIds"], path: ["payload"].concat("messages").concat(__i_6).concat("mentionAgentIds") });
|
|
62974
|
+
}
|
|
62975
|
+
else {
|
|
62976
|
+
for (var __i_8 = 0; __i_8 < __o_7["mentionAgentIds"].length; __i_8++) {
|
|
62977
|
+
if (typeof __o_7["mentionAgentIds"][__i_8] !== "string") {
|
|
62978
|
+
_e.push({ code: "invalid_type", expected: "string", input: __o_7["mentionAgentIds"][__i_8], path: ["payload"].concat("messages").concat(__i_6).concat("mentionAgentIds").concat(__i_8) });
|
|
62979
|
+
}
|
|
62980
|
+
}
|
|
62981
|
+
}
|
|
62982
|
+
if (typeof __o_7["createdAt"] !== "string") {
|
|
62983
|
+
_e.push({ code: "invalid_type", expected: "string", input: __o_7["createdAt"], path: ["payload"].concat("messages").concat(__i_6).concat("createdAt") });
|
|
62984
|
+
}
|
|
62985
|
+
}
|
|
62986
|
+
}
|
|
62987
|
+
}
|
|
62988
|
+
if (__o_5["error"] !== null) {
|
|
62989
|
+
if (typeof __o_5["error"] !== "string") {
|
|
62990
|
+
_e.push({ code: "invalid_type", expected: "string", input: __o_5["error"], path: ["payload"].concat("error") });
|
|
62991
|
+
}
|
|
62992
|
+
}
|
|
62993
|
+
}
|
|
62994
|
+
}
|
|
62995
|
+
return __fin(_e, _d);
|
|
62996
|
+
}
|
|
62997
|
+
return __mkv(safeParse_SessionOutboundMessage240, null);
|
|
62998
|
+
})();
|
|
62999
|
+
export const SessionOutboundMessage241 = /* @__PURE__ */ (() => {
|
|
63000
|
+
function __af_2(a) { for (var __ae_1, i = 0; i < a.length; i++) {
|
|
63001
|
+
__ae_1 = a[i];
|
|
63002
|
+
if (!(typeof __ae_1 === "string")) {
|
|
63003
|
+
return false;
|
|
63004
|
+
}
|
|
63005
|
+
} return true; }
|
|
63006
|
+
function __af_3(a) { for (var __ae_0, i = 0; i < a.length; i++) {
|
|
63007
|
+
__ae_0 = a[i];
|
|
63008
|
+
if (!(typeof __ae_0 === "object" && __ae_0 !== null && !Array.isArray(__ae_0) && typeof __ae_0["id"] === "string" && typeof __ae_0["roomId"] === "string" && typeof __ae_0["authorAgentId"] === "string" && typeof __ae_0["body"] === "string" && (__ae_0["replyToMessageId"] === null || (typeof __ae_0["replyToMessageId"] === "string")) && Array.isArray(__ae_0["mentionAgentIds"]) && __af_2(__ae_0["mentionAgentIds"]) && typeof __ae_0["createdAt"] === "string")) {
|
|
63009
|
+
return false;
|
|
63010
|
+
}
|
|
63011
|
+
} return true; }
|
|
63012
|
+
function safeParse_SessionOutboundMessage241(input) {
|
|
62765
63013
|
if (typeof input === "object" && input !== null && !Array.isArray(input) && input["type"] === "chat/wait/response" && typeof input["payload"] === "object" && input["payload"] !== null && !Array.isArray(input["payload"]) && typeof input["payload"]["requestId"] === "string" && Array.isArray(input["payload"]["messages"]) && __af_3(input["payload"]["messages"]) && typeof input["payload"]["timedOut"] === "boolean" && (input["payload"]["error"] === null || (typeof input["payload"]["error"] === "string"))) {
|
|
62766
63014
|
return { success: true, data: input };
|
|
62767
63015
|
}
|
|
@@ -62838,9 +63086,9 @@ export const SessionOutboundMessage240 = /* @__PURE__ */ (() => {
|
|
|
62838
63086
|
}
|
|
62839
63087
|
return __fin(_e, _d);
|
|
62840
63088
|
}
|
|
62841
|
-
return __mkv(
|
|
63089
|
+
return __mkv(safeParse_SessionOutboundMessage241, null);
|
|
62842
63090
|
})();
|
|
62843
|
-
export const
|
|
63091
|
+
export const SessionOutboundMessage242 = /* @__PURE__ */ (() => {
|
|
62844
63092
|
function __du_0(__dx_1) { switch (__dx_1["type"]) {
|
|
62845
63093
|
case "every": return typeof __dx_1 === "object" && __dx_1 !== null && !Array.isArray(__dx_1) && __dx_1["type"] === "every" && typeof __dx_1["everyMs"] === "number" && Number.isSafeInteger(__dx_1["everyMs"]) && __dx_1["everyMs"] > 0;
|
|
62846
63094
|
case "cron": return typeof __dx_1 === "object" && __dx_1 !== null && !Array.isArray(__dx_1) && __dx_1["type"] === "cron" && typeof __dx_1["expression"] === "string" && __dx_1["expression"].length >= 1 && (__dx_1["timezone"] === undefined || (typeof __dx_1["timezone"] === "string" && __dx_1["timezone"].length >= 1));
|
|
@@ -62870,7 +63118,7 @@ export const SessionOutboundMessage241 = /* @__PURE__ */ (() => {
|
|
|
62870
63118
|
case "new-agent": return typeof __dx_3 === "object" && __dx_3 !== null && !Array.isArray(__dx_3) && __dx_3["type"] === "new-agent" && typeof __dx_3["config"] === "object" && __dx_3["config"] !== null && !Array.isArray(__dx_3["config"]) && typeof __dx_3["config"]["provider"] === "string" && typeof __dx_3["config"]["cwd"] === "string" && __dx_3["config"]["cwd"].length >= 1 && (__dx_3["config"]["modeId"] === undefined || (typeof __dx_3["config"]["modeId"] === "string" && __dx_3["config"]["modeId"].length >= 1)) && (__dx_3["config"]["model"] === undefined || (typeof __dx_3["config"]["model"] === "string" && __dx_3["config"]["model"].length >= 1)) && (__dx_3["config"]["thinkingOptionId"] === undefined || (typeof __dx_3["config"]["thinkingOptionId"] === "string" && __dx_3["config"]["thinkingOptionId"].length >= 1)) && (__dx_3["config"]["archiveOnFinish"] === undefined || (typeof __dx_3["config"]["archiveOnFinish"] === "boolean")) && (__dx_3["config"]["isolation"] === undefined || ((__dx_3["config"]["isolation"] === "local" || __dx_3["config"]["isolation"] === "worktree"))) && (__dx_3["config"]["title"] === undefined || ((__dx_3["config"]["title"] === null || (typeof __dx_3["config"]["title"] === "string" && __dx_3["config"]["title"].length >= 1)))) && (__dx_3["config"]["providerOptions"] === undefined || (typeof __dx_3["config"]["providerOptions"] === "object" && __dx_3["config"]["providerOptions"] !== null && !Array.isArray(__dx_3["config"]["providerOptions"]) && __rf_6(__dx_3["config"]["providerOptions"]))) && (__dx_3["config"]["featureValues"] === undefined || (typeof __dx_3["config"]["featureValues"] === "object" && __dx_3["config"]["featureValues"] !== null && !Array.isArray(__dx_3["config"]["featureValues"]) && __rf_8(__dx_3["config"]["featureValues"]))) && (__dx_3["config"]["systemPrompt"] === undefined || (typeof __dx_3["config"]["systemPrompt"] === "string")) && (__dx_3["config"]["mcpServers"] === undefined || (typeof __dx_3["config"]["mcpServers"] === "object" && __dx_3["config"]["mcpServers"] !== null && !Array.isArray(__dx_3["config"]["mcpServers"]) && __rf_10(__dx_3["config"]["mcpServers"])));
|
|
62871
63119
|
default: return false;
|
|
62872
63120
|
} }
|
|
62873
|
-
function
|
|
63121
|
+
function safeParse_SessionOutboundMessage242(input) {
|
|
62874
63122
|
if (typeof input === "object" && input !== null && !Array.isArray(input) && input["type"] === "schedule/create/response" && typeof input["payload"] === "object" && input["payload"] !== null && !Array.isArray(input["payload"]) && typeof input["payload"]["requestId"] === "string" && (input["payload"]["schedule"] === null || (typeof input["payload"]["schedule"] === "object" && input["payload"]["schedule"] !== null && !Array.isArray(input["payload"]["schedule"]) && typeof input["payload"]["schedule"]["id"] === "string" && (input["payload"]["schedule"]["name"] === null || (typeof input["payload"]["schedule"]["name"] === "string")) && typeof input["payload"]["schedule"]["prompt"] === "string" && input["payload"]["schedule"]["prompt"].length >= 1 && typeof input["payload"]["schedule"]["cadence"] === "object" && input["payload"]["schedule"]["cadence"] !== null && !Array.isArray(input["payload"]["schedule"]["cadence"]) && __du_0(input["payload"]["schedule"]["cadence"]) && typeof input["payload"]["schedule"]["target"] === "object" && input["payload"]["schedule"]["target"] !== null && !Array.isArray(input["payload"]["schedule"]["target"]) && __du_2(input["payload"]["schedule"]["target"]) && (input["payload"]["schedule"]["status"] === "active" || input["payload"]["schedule"]["status"] === "paused" || input["payload"]["schedule"]["status"] === "completed") && typeof input["payload"]["schedule"]["createdAt"] === "string" && typeof input["payload"]["schedule"]["updatedAt"] === "string" && (input["payload"]["schedule"]["nextRunAt"] === null || (typeof input["payload"]["schedule"]["nextRunAt"] === "string")) && (input["payload"]["schedule"]["lastRunAt"] === null || (typeof input["payload"]["schedule"]["lastRunAt"] === "string")) && (input["payload"]["schedule"]["pausedAt"] === null || (typeof input["payload"]["schedule"]["pausedAt"] === "string")) && (input["payload"]["schedule"]["expiresAt"] === null || (typeof input["payload"]["schedule"]["expiresAt"] === "string")) && (input["payload"]["schedule"]["maxRuns"] === null || (typeof input["payload"]["schedule"]["maxRuns"] === "number" && Number.isSafeInteger(input["payload"]["schedule"]["maxRuns"]) && input["payload"]["schedule"]["maxRuns"] > 0)))) && (input["payload"]["error"] === null || (typeof input["payload"]["error"] === "string"))) {
|
|
62875
63123
|
return { success: true, data: input };
|
|
62876
63124
|
}
|
|
@@ -63209,9 +63457,9 @@ export const SessionOutboundMessage241 = /* @__PURE__ */ (() => {
|
|
|
63209
63457
|
}
|
|
63210
63458
|
return __fin(_e, _d);
|
|
63211
63459
|
}
|
|
63212
|
-
return __mkv(
|
|
63460
|
+
return __mkv(safeParse_SessionOutboundMessage242, null);
|
|
63213
63461
|
})();
|
|
63214
|
-
export const
|
|
63462
|
+
export const SessionOutboundMessage243 = /* @__PURE__ */ (() => {
|
|
63215
63463
|
function __du_1(__dx_2) { switch (__dx_2["type"]) {
|
|
63216
63464
|
case "every": return typeof __dx_2 === "object" && __dx_2 !== null && !Array.isArray(__dx_2) && __dx_2["type"] === "every" && typeof __dx_2["everyMs"] === "number" && Number.isSafeInteger(__dx_2["everyMs"]) && __dx_2["everyMs"] > 0;
|
|
63217
63465
|
case "cron": return typeof __dx_2 === "object" && __dx_2 !== null && !Array.isArray(__dx_2) && __dx_2["type"] === "cron" && typeof __dx_2["expression"] === "string" && __dx_2["expression"].length >= 1 && (__dx_2["timezone"] === undefined || (typeof __dx_2["timezone"] === "string" && __dx_2["timezone"].length >= 1));
|
|
@@ -63247,7 +63495,7 @@ export const SessionOutboundMessage242 = /* @__PURE__ */ (() => {
|
|
|
63247
63495
|
return false;
|
|
63248
63496
|
}
|
|
63249
63497
|
} return true; }
|
|
63250
|
-
function
|
|
63498
|
+
function safeParse_SessionOutboundMessage243(input) {
|
|
63251
63499
|
if (typeof input === "object" && input !== null && !Array.isArray(input) && input["type"] === "schedule/list/response" && typeof input["payload"] === "object" && input["payload"] !== null && !Array.isArray(input["payload"]) && typeof input["payload"]["requestId"] === "string" && Array.isArray(input["payload"]["schedules"]) && __af_12(input["payload"]["schedules"]) && (input["payload"]["error"] === null || (typeof input["payload"]["error"] === "string"))) {
|
|
63252
63500
|
return { success: true, data: input };
|
|
63253
63501
|
}
|
|
@@ -63591,9 +63839,9 @@ export const SessionOutboundMessage242 = /* @__PURE__ */ (() => {
|
|
|
63591
63839
|
}
|
|
63592
63840
|
return __fin(_e, _d);
|
|
63593
63841
|
}
|
|
63594
|
-
return __mkv(
|
|
63842
|
+
return __mkv(safeParse_SessionOutboundMessage243, null);
|
|
63595
63843
|
})();
|
|
63596
|
-
export const
|
|
63844
|
+
export const SessionOutboundMessage244 = /* @__PURE__ */ (() => {
|
|
63597
63845
|
function __du_0(__dx_1) { switch (__dx_1["type"]) {
|
|
63598
63846
|
case "every": return typeof __dx_1 === "object" && __dx_1 !== null && !Array.isArray(__dx_1) && __dx_1["type"] === "every" && typeof __dx_1["everyMs"] === "number" && Number.isSafeInteger(__dx_1["everyMs"]) && __dx_1["everyMs"] > 0;
|
|
63599
63847
|
case "cron": return typeof __dx_1 === "object" && __dx_1 !== null && !Array.isArray(__dx_1) && __dx_1["type"] === "cron" && typeof __dx_1["expression"] === "string" && __dx_1["expression"].length >= 1 && (__dx_1["timezone"] === undefined || (typeof __dx_1["timezone"] === "string" && __dx_1["timezone"].length >= 1));
|
|
@@ -63629,7 +63877,7 @@ export const SessionOutboundMessage243 = /* @__PURE__ */ (() => {
|
|
|
63629
63877
|
return false;
|
|
63630
63878
|
}
|
|
63631
63879
|
} return true; }
|
|
63632
|
-
function
|
|
63880
|
+
function safeParse_SessionOutboundMessage244(input) {
|
|
63633
63881
|
if (typeof input === "object" && input !== null && !Array.isArray(input) && input["type"] === "schedule/inspect/response" && typeof input["payload"] === "object" && input["payload"] !== null && !Array.isArray(input["payload"]) && typeof input["payload"]["requestId"] === "string" && (input["payload"]["schedule"] === null || (typeof input["payload"]["schedule"] === "object" && input["payload"]["schedule"] !== null && !Array.isArray(input["payload"]["schedule"]) && typeof input["payload"]["schedule"]["id"] === "string" && (input["payload"]["schedule"]["name"] === null || (typeof input["payload"]["schedule"]["name"] === "string")) && typeof input["payload"]["schedule"]["prompt"] === "string" && input["payload"]["schedule"]["prompt"].length >= 1 && typeof input["payload"]["schedule"]["cadence"] === "object" && input["payload"]["schedule"]["cadence"] !== null && !Array.isArray(input["payload"]["schedule"]["cadence"]) && __du_0(input["payload"]["schedule"]["cadence"]) && typeof input["payload"]["schedule"]["target"] === "object" && input["payload"]["schedule"]["target"] !== null && !Array.isArray(input["payload"]["schedule"]["target"]) && __du_2(input["payload"]["schedule"]["target"]) && (input["payload"]["schedule"]["status"] === "active" || input["payload"]["schedule"]["status"] === "paused" || input["payload"]["schedule"]["status"] === "completed") && typeof input["payload"]["schedule"]["createdAt"] === "string" && typeof input["payload"]["schedule"]["updatedAt"] === "string" && (input["payload"]["schedule"]["nextRunAt"] === null || (typeof input["payload"]["schedule"]["nextRunAt"] === "string")) && (input["payload"]["schedule"]["lastRunAt"] === null || (typeof input["payload"]["schedule"]["lastRunAt"] === "string")) && (input["payload"]["schedule"]["pausedAt"] === null || (typeof input["payload"]["schedule"]["pausedAt"] === "string")) && (input["payload"]["schedule"]["expiresAt"] === null || (typeof input["payload"]["schedule"]["expiresAt"] === "string")) && (input["payload"]["schedule"]["maxRuns"] === null || (typeof input["payload"]["schedule"]["maxRuns"] === "number" && Number.isSafeInteger(input["payload"]["schedule"]["maxRuns"]) && input["payload"]["schedule"]["maxRuns"] > 0)) && Array.isArray(input["payload"]["schedule"]["runs"]) && __af_12(input["payload"]["schedule"]["runs"]))) && (input["payload"]["error"] === null || (typeof input["payload"]["error"] === "string"))) {
|
|
63634
63882
|
return { success: true, data: input };
|
|
63635
63883
|
}
|
|
@@ -64025,9 +64273,9 @@ export const SessionOutboundMessage243 = /* @__PURE__ */ (() => {
|
|
|
64025
64273
|
}
|
|
64026
64274
|
return __fin(_e, _d);
|
|
64027
64275
|
}
|
|
64028
|
-
return __mkv(
|
|
64276
|
+
return __mkv(safeParse_SessionOutboundMessage244, null);
|
|
64029
64277
|
})();
|
|
64030
|
-
export const
|
|
64278
|
+
export const SessionOutboundMessage245 = /* @__PURE__ */ (() => {
|
|
64031
64279
|
var __re_re_1 = new RegExp("^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$");
|
|
64032
64280
|
function __af_2(a) { for (var __ae_0, i = 0; i < a.length; i++) {
|
|
64033
64281
|
__ae_0 = a[i];
|
|
@@ -64035,7 +64283,7 @@ export const SessionOutboundMessage244 = /* @__PURE__ */ (() => {
|
|
|
64035
64283
|
return false;
|
|
64036
64284
|
}
|
|
64037
64285
|
} return true; }
|
|
64038
|
-
function
|
|
64286
|
+
function safeParse_SessionOutboundMessage245(input) {
|
|
64039
64287
|
if (typeof input === "object" && input !== null && !Array.isArray(input) && input["type"] === "schedule/logs/response" && typeof input["payload"] === "object" && input["payload"] !== null && !Array.isArray(input["payload"]) && typeof input["payload"]["requestId"] === "string" && Array.isArray(input["payload"]["runs"]) && __af_2(input["payload"]["runs"]) && (input["payload"]["error"] === null || (typeof input["payload"]["error"] === "string"))) {
|
|
64040
64288
|
return { success: true, data: input };
|
|
64041
64289
|
}
|
|
@@ -64123,9 +64371,9 @@ export const SessionOutboundMessage244 = /* @__PURE__ */ (() => {
|
|
|
64123
64371
|
}
|
|
64124
64372
|
return __fin(_e, _d);
|
|
64125
64373
|
}
|
|
64126
|
-
return __mkv(
|
|
64374
|
+
return __mkv(safeParse_SessionOutboundMessage245, null);
|
|
64127
64375
|
})();
|
|
64128
|
-
export const
|
|
64376
|
+
export const SessionOutboundMessage246 = /* @__PURE__ */ (() => {
|
|
64129
64377
|
function __du_0(__dx_1) { switch (__dx_1["type"]) {
|
|
64130
64378
|
case "every": return typeof __dx_1 === "object" && __dx_1 !== null && !Array.isArray(__dx_1) && __dx_1["type"] === "every" && typeof __dx_1["everyMs"] === "number" && Number.isSafeInteger(__dx_1["everyMs"]) && __dx_1["everyMs"] > 0;
|
|
64131
64379
|
case "cron": return typeof __dx_1 === "object" && __dx_1 !== null && !Array.isArray(__dx_1) && __dx_1["type"] === "cron" && typeof __dx_1["expression"] === "string" && __dx_1["expression"].length >= 1 && (__dx_1["timezone"] === undefined || (typeof __dx_1["timezone"] === "string" && __dx_1["timezone"].length >= 1));
|
|
@@ -64155,7 +64403,7 @@ export const SessionOutboundMessage245 = /* @__PURE__ */ (() => {
|
|
|
64155
64403
|
case "new-agent": return typeof __dx_3 === "object" && __dx_3 !== null && !Array.isArray(__dx_3) && __dx_3["type"] === "new-agent" && typeof __dx_3["config"] === "object" && __dx_3["config"] !== null && !Array.isArray(__dx_3["config"]) && typeof __dx_3["config"]["provider"] === "string" && typeof __dx_3["config"]["cwd"] === "string" && __dx_3["config"]["cwd"].length >= 1 && (__dx_3["config"]["modeId"] === undefined || (typeof __dx_3["config"]["modeId"] === "string" && __dx_3["config"]["modeId"].length >= 1)) && (__dx_3["config"]["model"] === undefined || (typeof __dx_3["config"]["model"] === "string" && __dx_3["config"]["model"].length >= 1)) && (__dx_3["config"]["thinkingOptionId"] === undefined || (typeof __dx_3["config"]["thinkingOptionId"] === "string" && __dx_3["config"]["thinkingOptionId"].length >= 1)) && (__dx_3["config"]["archiveOnFinish"] === undefined || (typeof __dx_3["config"]["archiveOnFinish"] === "boolean")) && (__dx_3["config"]["isolation"] === undefined || ((__dx_3["config"]["isolation"] === "local" || __dx_3["config"]["isolation"] === "worktree"))) && (__dx_3["config"]["title"] === undefined || ((__dx_3["config"]["title"] === null || (typeof __dx_3["config"]["title"] === "string" && __dx_3["config"]["title"].length >= 1)))) && (__dx_3["config"]["providerOptions"] === undefined || (typeof __dx_3["config"]["providerOptions"] === "object" && __dx_3["config"]["providerOptions"] !== null && !Array.isArray(__dx_3["config"]["providerOptions"]) && __rf_6(__dx_3["config"]["providerOptions"]))) && (__dx_3["config"]["featureValues"] === undefined || (typeof __dx_3["config"]["featureValues"] === "object" && __dx_3["config"]["featureValues"] !== null && !Array.isArray(__dx_3["config"]["featureValues"]) && __rf_8(__dx_3["config"]["featureValues"]))) && (__dx_3["config"]["systemPrompt"] === undefined || (typeof __dx_3["config"]["systemPrompt"] === "string")) && (__dx_3["config"]["mcpServers"] === undefined || (typeof __dx_3["config"]["mcpServers"] === "object" && __dx_3["config"]["mcpServers"] !== null && !Array.isArray(__dx_3["config"]["mcpServers"]) && __rf_10(__dx_3["config"]["mcpServers"])));
|
|
64156
64404
|
default: return false;
|
|
64157
64405
|
} }
|
|
64158
|
-
function
|
|
64406
|
+
function safeParse_SessionOutboundMessage246(input) {
|
|
64159
64407
|
if (typeof input === "object" && input !== null && !Array.isArray(input) && input["type"] === "schedule/pause/response" && typeof input["payload"] === "object" && input["payload"] !== null && !Array.isArray(input["payload"]) && typeof input["payload"]["requestId"] === "string" && (input["payload"]["schedule"] === null || (typeof input["payload"]["schedule"] === "object" && input["payload"]["schedule"] !== null && !Array.isArray(input["payload"]["schedule"]) && typeof input["payload"]["schedule"]["id"] === "string" && (input["payload"]["schedule"]["name"] === null || (typeof input["payload"]["schedule"]["name"] === "string")) && typeof input["payload"]["schedule"]["prompt"] === "string" && input["payload"]["schedule"]["prompt"].length >= 1 && typeof input["payload"]["schedule"]["cadence"] === "object" && input["payload"]["schedule"]["cadence"] !== null && !Array.isArray(input["payload"]["schedule"]["cadence"]) && __du_0(input["payload"]["schedule"]["cadence"]) && typeof input["payload"]["schedule"]["target"] === "object" && input["payload"]["schedule"]["target"] !== null && !Array.isArray(input["payload"]["schedule"]["target"]) && __du_2(input["payload"]["schedule"]["target"]) && (input["payload"]["schedule"]["status"] === "active" || input["payload"]["schedule"]["status"] === "paused" || input["payload"]["schedule"]["status"] === "completed") && typeof input["payload"]["schedule"]["createdAt"] === "string" && typeof input["payload"]["schedule"]["updatedAt"] === "string" && (input["payload"]["schedule"]["nextRunAt"] === null || (typeof input["payload"]["schedule"]["nextRunAt"] === "string")) && (input["payload"]["schedule"]["lastRunAt"] === null || (typeof input["payload"]["schedule"]["lastRunAt"] === "string")) && (input["payload"]["schedule"]["pausedAt"] === null || (typeof input["payload"]["schedule"]["pausedAt"] === "string")) && (input["payload"]["schedule"]["expiresAt"] === null || (typeof input["payload"]["schedule"]["expiresAt"] === "string")) && (input["payload"]["schedule"]["maxRuns"] === null || (typeof input["payload"]["schedule"]["maxRuns"] === "number" && Number.isSafeInteger(input["payload"]["schedule"]["maxRuns"]) && input["payload"]["schedule"]["maxRuns"] > 0)))) && (input["payload"]["error"] === null || (typeof input["payload"]["error"] === "string"))) {
|
|
64160
64408
|
return { success: true, data: input };
|
|
64161
64409
|
}
|
|
@@ -64494,9 +64742,9 @@ export const SessionOutboundMessage245 = /* @__PURE__ */ (() => {
|
|
|
64494
64742
|
}
|
|
64495
64743
|
return __fin(_e, _d);
|
|
64496
64744
|
}
|
|
64497
|
-
return __mkv(
|
|
64745
|
+
return __mkv(safeParse_SessionOutboundMessage246, null);
|
|
64498
64746
|
})();
|
|
64499
|
-
export const
|
|
64747
|
+
export const SessionOutboundMessage247 = /* @__PURE__ */ (() => {
|
|
64500
64748
|
function __du_0(__dx_1) { switch (__dx_1["type"]) {
|
|
64501
64749
|
case "every": return typeof __dx_1 === "object" && __dx_1 !== null && !Array.isArray(__dx_1) && __dx_1["type"] === "every" && typeof __dx_1["everyMs"] === "number" && Number.isSafeInteger(__dx_1["everyMs"]) && __dx_1["everyMs"] > 0;
|
|
64502
64750
|
case "cron": return typeof __dx_1 === "object" && __dx_1 !== null && !Array.isArray(__dx_1) && __dx_1["type"] === "cron" && typeof __dx_1["expression"] === "string" && __dx_1["expression"].length >= 1 && (__dx_1["timezone"] === undefined || (typeof __dx_1["timezone"] === "string" && __dx_1["timezone"].length >= 1));
|
|
@@ -64526,7 +64774,7 @@ export const SessionOutboundMessage246 = /* @__PURE__ */ (() => {
|
|
|
64526
64774
|
case "new-agent": return typeof __dx_3 === "object" && __dx_3 !== null && !Array.isArray(__dx_3) && __dx_3["type"] === "new-agent" && typeof __dx_3["config"] === "object" && __dx_3["config"] !== null && !Array.isArray(__dx_3["config"]) && typeof __dx_3["config"]["provider"] === "string" && typeof __dx_3["config"]["cwd"] === "string" && __dx_3["config"]["cwd"].length >= 1 && (__dx_3["config"]["modeId"] === undefined || (typeof __dx_3["config"]["modeId"] === "string" && __dx_3["config"]["modeId"].length >= 1)) && (__dx_3["config"]["model"] === undefined || (typeof __dx_3["config"]["model"] === "string" && __dx_3["config"]["model"].length >= 1)) && (__dx_3["config"]["thinkingOptionId"] === undefined || (typeof __dx_3["config"]["thinkingOptionId"] === "string" && __dx_3["config"]["thinkingOptionId"].length >= 1)) && (__dx_3["config"]["archiveOnFinish"] === undefined || (typeof __dx_3["config"]["archiveOnFinish"] === "boolean")) && (__dx_3["config"]["isolation"] === undefined || ((__dx_3["config"]["isolation"] === "local" || __dx_3["config"]["isolation"] === "worktree"))) && (__dx_3["config"]["title"] === undefined || ((__dx_3["config"]["title"] === null || (typeof __dx_3["config"]["title"] === "string" && __dx_3["config"]["title"].length >= 1)))) && (__dx_3["config"]["providerOptions"] === undefined || (typeof __dx_3["config"]["providerOptions"] === "object" && __dx_3["config"]["providerOptions"] !== null && !Array.isArray(__dx_3["config"]["providerOptions"]) && __rf_6(__dx_3["config"]["providerOptions"]))) && (__dx_3["config"]["featureValues"] === undefined || (typeof __dx_3["config"]["featureValues"] === "object" && __dx_3["config"]["featureValues"] !== null && !Array.isArray(__dx_3["config"]["featureValues"]) && __rf_8(__dx_3["config"]["featureValues"]))) && (__dx_3["config"]["systemPrompt"] === undefined || (typeof __dx_3["config"]["systemPrompt"] === "string")) && (__dx_3["config"]["mcpServers"] === undefined || (typeof __dx_3["config"]["mcpServers"] === "object" && __dx_3["config"]["mcpServers"] !== null && !Array.isArray(__dx_3["config"]["mcpServers"]) && __rf_10(__dx_3["config"]["mcpServers"])));
|
|
64527
64775
|
default: return false;
|
|
64528
64776
|
} }
|
|
64529
|
-
function
|
|
64777
|
+
function safeParse_SessionOutboundMessage247(input) {
|
|
64530
64778
|
if (typeof input === "object" && input !== null && !Array.isArray(input) && input["type"] === "schedule/resume/response" && typeof input["payload"] === "object" && input["payload"] !== null && !Array.isArray(input["payload"]) && typeof input["payload"]["requestId"] === "string" && (input["payload"]["schedule"] === null || (typeof input["payload"]["schedule"] === "object" && input["payload"]["schedule"] !== null && !Array.isArray(input["payload"]["schedule"]) && typeof input["payload"]["schedule"]["id"] === "string" && (input["payload"]["schedule"]["name"] === null || (typeof input["payload"]["schedule"]["name"] === "string")) && typeof input["payload"]["schedule"]["prompt"] === "string" && input["payload"]["schedule"]["prompt"].length >= 1 && typeof input["payload"]["schedule"]["cadence"] === "object" && input["payload"]["schedule"]["cadence"] !== null && !Array.isArray(input["payload"]["schedule"]["cadence"]) && __du_0(input["payload"]["schedule"]["cadence"]) && typeof input["payload"]["schedule"]["target"] === "object" && input["payload"]["schedule"]["target"] !== null && !Array.isArray(input["payload"]["schedule"]["target"]) && __du_2(input["payload"]["schedule"]["target"]) && (input["payload"]["schedule"]["status"] === "active" || input["payload"]["schedule"]["status"] === "paused" || input["payload"]["schedule"]["status"] === "completed") && typeof input["payload"]["schedule"]["createdAt"] === "string" && typeof input["payload"]["schedule"]["updatedAt"] === "string" && (input["payload"]["schedule"]["nextRunAt"] === null || (typeof input["payload"]["schedule"]["nextRunAt"] === "string")) && (input["payload"]["schedule"]["lastRunAt"] === null || (typeof input["payload"]["schedule"]["lastRunAt"] === "string")) && (input["payload"]["schedule"]["pausedAt"] === null || (typeof input["payload"]["schedule"]["pausedAt"] === "string")) && (input["payload"]["schedule"]["expiresAt"] === null || (typeof input["payload"]["schedule"]["expiresAt"] === "string")) && (input["payload"]["schedule"]["maxRuns"] === null || (typeof input["payload"]["schedule"]["maxRuns"] === "number" && Number.isSafeInteger(input["payload"]["schedule"]["maxRuns"]) && input["payload"]["schedule"]["maxRuns"] > 0)))) && (input["payload"]["error"] === null || (typeof input["payload"]["error"] === "string"))) {
|
|
64531
64779
|
return { success: true, data: input };
|
|
64532
64780
|
}
|
|
@@ -64865,10 +65113,10 @@ export const SessionOutboundMessage246 = /* @__PURE__ */ (() => {
|
|
|
64865
65113
|
}
|
|
64866
65114
|
return __fin(_e, _d);
|
|
64867
65115
|
}
|
|
64868
|
-
return __mkv(
|
|
65116
|
+
return __mkv(safeParse_SessionOutboundMessage247, null);
|
|
64869
65117
|
})();
|
|
64870
|
-
export const
|
|
64871
|
-
function
|
|
65118
|
+
export const SessionOutboundMessage248 = /* @__PURE__ */ (() => {
|
|
65119
|
+
function safeParse_SessionOutboundMessage248(input) {
|
|
64872
65120
|
if (typeof input === "object" && input !== null && !Array.isArray(input) && input["type"] === "schedule/delete/response" && typeof input["payload"] === "object" && input["payload"] !== null && !Array.isArray(input["payload"]) && typeof input["payload"]["requestId"] === "string" && typeof input["payload"]["scheduleId"] === "string" && (input["payload"]["error"] === null || (typeof input["payload"]["error"] === "string"))) {
|
|
64873
65121
|
return { success: true, data: input };
|
|
64874
65122
|
}
|
|
@@ -64902,9 +65150,9 @@ export const SessionOutboundMessage247 = /* @__PURE__ */ (() => {
|
|
|
64902
65150
|
}
|
|
64903
65151
|
return __fin(_e, _d);
|
|
64904
65152
|
}
|
|
64905
|
-
return __mkv(
|
|
65153
|
+
return __mkv(safeParse_SessionOutboundMessage248, null);
|
|
64906
65154
|
})();
|
|
64907
|
-
export const
|
|
65155
|
+
export const SessionOutboundMessage249 = /* @__PURE__ */ (() => {
|
|
64908
65156
|
function __du_0(__dx_1) { switch (__dx_1["type"]) {
|
|
64909
65157
|
case "every": return typeof __dx_1 === "object" && __dx_1 !== null && !Array.isArray(__dx_1) && __dx_1["type"] === "every" && typeof __dx_1["everyMs"] === "number" && Number.isSafeInteger(__dx_1["everyMs"]) && __dx_1["everyMs"] > 0;
|
|
64910
65158
|
case "cron": return typeof __dx_1 === "object" && __dx_1 !== null && !Array.isArray(__dx_1) && __dx_1["type"] === "cron" && typeof __dx_1["expression"] === "string" && __dx_1["expression"].length >= 1 && (__dx_1["timezone"] === undefined || (typeof __dx_1["timezone"] === "string" && __dx_1["timezone"].length >= 1));
|
|
@@ -64940,7 +65188,7 @@ export const SessionOutboundMessage248 = /* @__PURE__ */ (() => {
|
|
|
64940
65188
|
return false;
|
|
64941
65189
|
}
|
|
64942
65190
|
} return true; }
|
|
64943
|
-
function
|
|
65191
|
+
function safeParse_SessionOutboundMessage249(input) {
|
|
64944
65192
|
if (typeof input === "object" && input !== null && !Array.isArray(input) && input["type"] === "schedule/run-once/response" && typeof input["payload"] === "object" && input["payload"] !== null && !Array.isArray(input["payload"]) && typeof input["payload"]["requestId"] === "string" && (input["payload"]["runId"] === undefined || (typeof input["payload"]["runId"] === "string")) && (input["payload"]["schedule"] === null || (typeof input["payload"]["schedule"] === "object" && input["payload"]["schedule"] !== null && !Array.isArray(input["payload"]["schedule"]) && typeof input["payload"]["schedule"]["id"] === "string" && (input["payload"]["schedule"]["name"] === null || (typeof input["payload"]["schedule"]["name"] === "string")) && typeof input["payload"]["schedule"]["prompt"] === "string" && input["payload"]["schedule"]["prompt"].length >= 1 && typeof input["payload"]["schedule"]["cadence"] === "object" && input["payload"]["schedule"]["cadence"] !== null && !Array.isArray(input["payload"]["schedule"]["cadence"]) && __du_0(input["payload"]["schedule"]["cadence"]) && typeof input["payload"]["schedule"]["target"] === "object" && input["payload"]["schedule"]["target"] !== null && !Array.isArray(input["payload"]["schedule"]["target"]) && __du_2(input["payload"]["schedule"]["target"]) && (input["payload"]["schedule"]["status"] === "active" || input["payload"]["schedule"]["status"] === "paused" || input["payload"]["schedule"]["status"] === "completed") && typeof input["payload"]["schedule"]["createdAt"] === "string" && typeof input["payload"]["schedule"]["updatedAt"] === "string" && (input["payload"]["schedule"]["nextRunAt"] === null || (typeof input["payload"]["schedule"]["nextRunAt"] === "string")) && (input["payload"]["schedule"]["lastRunAt"] === null || (typeof input["payload"]["schedule"]["lastRunAt"] === "string")) && (input["payload"]["schedule"]["pausedAt"] === null || (typeof input["payload"]["schedule"]["pausedAt"] === "string")) && (input["payload"]["schedule"]["expiresAt"] === null || (typeof input["payload"]["schedule"]["expiresAt"] === "string")) && (input["payload"]["schedule"]["maxRuns"] === null || (typeof input["payload"]["schedule"]["maxRuns"] === "number" && Number.isSafeInteger(input["payload"]["schedule"]["maxRuns"]) && input["payload"]["schedule"]["maxRuns"] > 0)) && Array.isArray(input["payload"]["schedule"]["runs"]) && __af_12(input["payload"]["schedule"]["runs"]))) && (input["payload"]["error"] === null || (typeof input["payload"]["error"] === "string"))) {
|
|
64945
65193
|
return { success: true, data: input };
|
|
64946
65194
|
}
|
|
@@ -65341,9 +65589,41 @@ export const SessionOutboundMessage248 = /* @__PURE__ */ (() => {
|
|
|
65341
65589
|
}
|
|
65342
65590
|
return __fin(_e, _d);
|
|
65343
65591
|
}
|
|
65344
|
-
return __mkv(
|
|
65592
|
+
return __mkv(safeParse_SessionOutboundMessage249, null);
|
|
65345
65593
|
})();
|
|
65346
|
-
export const
|
|
65594
|
+
export const SessionOutboundMessage25 = /* @__PURE__ */ (() => {
|
|
65595
|
+
function safeParse_SessionOutboundMessage25(input) {
|
|
65596
|
+
if (typeof input === "object" && input !== null && !Array.isArray(input) && input["type"] === "subscription.release.response" && typeof input["payload"] === "object" && input["payload"] !== null && !Array.isArray(input["payload"]) && typeof input["payload"]["requestId"] === "string" && typeof input["payload"]["subscriptionId"] === "string") {
|
|
65597
|
+
return { success: true, data: input };
|
|
65598
|
+
}
|
|
65599
|
+
var _e = [];
|
|
65600
|
+
var _d = input;
|
|
65601
|
+
if (typeof _d !== "object" || _d === null || Array.isArray(_d)) {
|
|
65602
|
+
_e.push({ code: "invalid_type", expected: "object", input: _d, path: [] });
|
|
65603
|
+
}
|
|
65604
|
+
else {
|
|
65605
|
+
var __o_0 = _d;
|
|
65606
|
+
if (__o_0["type"] !== "subscription.release.response") {
|
|
65607
|
+
_e.push({ code: "invalid_value", values: ["subscription.release.response"], input: __o_0["type"], path: ["type"] });
|
|
65608
|
+
}
|
|
65609
|
+
if (typeof __o_0["payload"] !== "object" || __o_0["payload"] === null || Array.isArray(__o_0["payload"])) {
|
|
65610
|
+
_e.push({ code: "invalid_type", expected: "object", input: __o_0["payload"], path: ["payload"] });
|
|
65611
|
+
}
|
|
65612
|
+
else {
|
|
65613
|
+
var __o_1 = __o_0["payload"];
|
|
65614
|
+
if (typeof __o_1["requestId"] !== "string") {
|
|
65615
|
+
_e.push({ code: "invalid_type", expected: "string", input: __o_1["requestId"], path: ["payload"].concat("requestId") });
|
|
65616
|
+
}
|
|
65617
|
+
if (typeof __o_1["subscriptionId"] !== "string") {
|
|
65618
|
+
_e.push({ code: "invalid_type", expected: "string", input: __o_1["subscriptionId"], path: ["payload"].concat("subscriptionId") });
|
|
65619
|
+
}
|
|
65620
|
+
}
|
|
65621
|
+
}
|
|
65622
|
+
return __fin(_e, _d);
|
|
65623
|
+
}
|
|
65624
|
+
return __mkv(safeParse_SessionOutboundMessage25, null);
|
|
65625
|
+
})();
|
|
65626
|
+
export const SessionOutboundMessage250 = /* @__PURE__ */ (() => {
|
|
65347
65627
|
function __du_0(__dx_1) { switch (__dx_1["type"]) {
|
|
65348
65628
|
case "every": return typeof __dx_1 === "object" && __dx_1 !== null && !Array.isArray(__dx_1) && __dx_1["type"] === "every" && typeof __dx_1["everyMs"] === "number" && Number.isSafeInteger(__dx_1["everyMs"]) && __dx_1["everyMs"] > 0;
|
|
65349
65629
|
case "cron": return typeof __dx_1 === "object" && __dx_1 !== null && !Array.isArray(__dx_1) && __dx_1["type"] === "cron" && typeof __dx_1["expression"] === "string" && __dx_1["expression"].length >= 1 && (__dx_1["timezone"] === undefined || (typeof __dx_1["timezone"] === "string" && __dx_1["timezone"].length >= 1));
|
|
@@ -65379,7 +65659,7 @@ export const SessionOutboundMessage249 = /* @__PURE__ */ (() => {
|
|
|
65379
65659
|
return false;
|
|
65380
65660
|
}
|
|
65381
65661
|
} return true; }
|
|
65382
|
-
function
|
|
65662
|
+
function safeParse_SessionOutboundMessage250(input) {
|
|
65383
65663
|
if (typeof input === "object" && input !== null && !Array.isArray(input) && input["type"] === "schedule/update/response" && typeof input["payload"] === "object" && input["payload"] !== null && !Array.isArray(input["payload"]) && typeof input["payload"]["requestId"] === "string" && (input["payload"]["schedule"] === null || (typeof input["payload"]["schedule"] === "object" && input["payload"]["schedule"] !== null && !Array.isArray(input["payload"]["schedule"]) && typeof input["payload"]["schedule"]["id"] === "string" && (input["payload"]["schedule"]["name"] === null || (typeof input["payload"]["schedule"]["name"] === "string")) && typeof input["payload"]["schedule"]["prompt"] === "string" && input["payload"]["schedule"]["prompt"].length >= 1 && typeof input["payload"]["schedule"]["cadence"] === "object" && input["payload"]["schedule"]["cadence"] !== null && !Array.isArray(input["payload"]["schedule"]["cadence"]) && __du_0(input["payload"]["schedule"]["cadence"]) && typeof input["payload"]["schedule"]["target"] === "object" && input["payload"]["schedule"]["target"] !== null && !Array.isArray(input["payload"]["schedule"]["target"]) && __du_2(input["payload"]["schedule"]["target"]) && (input["payload"]["schedule"]["status"] === "active" || input["payload"]["schedule"]["status"] === "paused" || input["payload"]["schedule"]["status"] === "completed") && typeof input["payload"]["schedule"]["createdAt"] === "string" && typeof input["payload"]["schedule"]["updatedAt"] === "string" && (input["payload"]["schedule"]["nextRunAt"] === null || (typeof input["payload"]["schedule"]["nextRunAt"] === "string")) && (input["payload"]["schedule"]["lastRunAt"] === null || (typeof input["payload"]["schedule"]["lastRunAt"] === "string")) && (input["payload"]["schedule"]["pausedAt"] === null || (typeof input["payload"]["schedule"]["pausedAt"] === "string")) && (input["payload"]["schedule"]["expiresAt"] === null || (typeof input["payload"]["schedule"]["expiresAt"] === "string")) && (input["payload"]["schedule"]["maxRuns"] === null || (typeof input["payload"]["schedule"]["maxRuns"] === "number" && Number.isSafeInteger(input["payload"]["schedule"]["maxRuns"]) && input["payload"]["schedule"]["maxRuns"] > 0)) && Array.isArray(input["payload"]["schedule"]["runs"]) && __af_12(input["payload"]["schedule"]["runs"]))) && (input["payload"]["error"] === null || (typeof input["payload"]["error"] === "string"))) {
|
|
65384
65664
|
return { success: true, data: input };
|
|
65385
65665
|
}
|
|
@@ -65775,42 +66055,10 @@ export const SessionOutboundMessage249 = /* @__PURE__ */ (() => {
|
|
|
65775
66055
|
}
|
|
65776
66056
|
return __fin(_e, _d);
|
|
65777
66057
|
}
|
|
65778
|
-
return __mkv(
|
|
65779
|
-
})();
|
|
65780
|
-
export const SessionOutboundMessage25 = /* @__PURE__ */ (() => {
|
|
65781
|
-
function safeParse_SessionOutboundMessage25(input) {
|
|
65782
|
-
if (typeof input === "object" && input !== null && !Array.isArray(input) && input["type"] === "subscription.release.response" && typeof input["payload"] === "object" && input["payload"] !== null && !Array.isArray(input["payload"]) && typeof input["payload"]["requestId"] === "string" && typeof input["payload"]["subscriptionId"] === "string") {
|
|
65783
|
-
return { success: true, data: input };
|
|
65784
|
-
}
|
|
65785
|
-
var _e = [];
|
|
65786
|
-
var _d = input;
|
|
65787
|
-
if (typeof _d !== "object" || _d === null || Array.isArray(_d)) {
|
|
65788
|
-
_e.push({ code: "invalid_type", expected: "object", input: _d, path: [] });
|
|
65789
|
-
}
|
|
65790
|
-
else {
|
|
65791
|
-
var __o_0 = _d;
|
|
65792
|
-
if (__o_0["type"] !== "subscription.release.response") {
|
|
65793
|
-
_e.push({ code: "invalid_value", values: ["subscription.release.response"], input: __o_0["type"], path: ["type"] });
|
|
65794
|
-
}
|
|
65795
|
-
if (typeof __o_0["payload"] !== "object" || __o_0["payload"] === null || Array.isArray(__o_0["payload"])) {
|
|
65796
|
-
_e.push({ code: "invalid_type", expected: "object", input: __o_0["payload"], path: ["payload"] });
|
|
65797
|
-
}
|
|
65798
|
-
else {
|
|
65799
|
-
var __o_1 = __o_0["payload"];
|
|
65800
|
-
if (typeof __o_1["requestId"] !== "string") {
|
|
65801
|
-
_e.push({ code: "invalid_type", expected: "string", input: __o_1["requestId"], path: ["payload"].concat("requestId") });
|
|
65802
|
-
}
|
|
65803
|
-
if (typeof __o_1["subscriptionId"] !== "string") {
|
|
65804
|
-
_e.push({ code: "invalid_type", expected: "string", input: __o_1["subscriptionId"], path: ["payload"].concat("subscriptionId") });
|
|
65805
|
-
}
|
|
65806
|
-
}
|
|
65807
|
-
}
|
|
65808
|
-
return __fin(_e, _d);
|
|
65809
|
-
}
|
|
65810
|
-
return __mkv(safeParse_SessionOutboundMessage25, null);
|
|
66058
|
+
return __mkv(safeParse_SessionOutboundMessage250, null);
|
|
65811
66059
|
})();
|
|
65812
|
-
export const
|
|
65813
|
-
var __rf = [
|
|
66060
|
+
export const SessionOutboundMessage251 = /* @__PURE__ */ (() => {
|
|
66061
|
+
var __rf = [__src_SessionOutboundMessage251.schema.shape["payload"].shape["loop"]._zod.def.innerType.shape["modeId"], __src_SessionOutboundMessage251.schema.shape["payload"].shape["loop"]._zod.def.innerType.shape["verifierModeId"]];
|
|
65814
66062
|
function __af_1(a) { for (var __ae_0, i = 0; i < a.length; i++) {
|
|
65815
66063
|
__ae_0 = a[i];
|
|
65816
66064
|
if (!(typeof __ae_0 === "string")) {
|
|
@@ -65841,7 +66089,7 @@ export const SessionOutboundMessage250 = /* @__PURE__ */ (() => {
|
|
|
65841
66089
|
var __set_enum_15 = new Set(["running", "succeeded", "failed", "stopped"]);
|
|
65842
66090
|
var __set_enum_18 = new Set(["running", "succeeded", "failed", "stopped"]);
|
|
65843
66091
|
var __set_enum_24 = new Set(["loop", "worker", "verifier", "verify-check"]);
|
|
65844
|
-
function
|
|
66092
|
+
function safeParse_SessionOutboundMessage251(input) {
|
|
65845
66093
|
if (typeof input === "object" && input !== null && !Array.isArray(input) && input["type"] === "loop/run/response" && typeof input["payload"] === "object" && input["payload"] !== null && !Array.isArray(input["payload"]) && typeof input["payload"]["requestId"] === "string" && (input["payload"]["loop"] === null || (typeof input["payload"]["loop"] === "object" && input["payload"]["loop"] !== null && !Array.isArray(input["payload"]["loop"]) && typeof input["payload"]["loop"]["id"] === "string" && (input["payload"]["loop"]["name"] === null || (typeof input["payload"]["loop"]["name"] === "string")) && typeof input["payload"]["loop"]["prompt"] === "string" && typeof input["payload"]["loop"]["cwd"] === "string" && typeof input["payload"]["loop"]["provider"] === "string" && (input["payload"]["loop"]["model"] === null || (typeof input["payload"]["loop"]["model"] === "string")) && (input["payload"]["loop"]["modeId"] !== undefined && ((input["payload"]["loop"]["modeId"] === null || (typeof input["payload"]["loop"]["modeId"] === "string")))) && (input["payload"]["loop"]["workerProvider"] === null || (typeof input["payload"]["loop"]["workerProvider"] === "string")) && (input["payload"]["loop"]["workerModel"] === null || (typeof input["payload"]["loop"]["workerModel"] === "string")) && (input["payload"]["loop"]["verifierProvider"] === null || (typeof input["payload"]["loop"]["verifierProvider"] === "string")) && (input["payload"]["loop"]["verifierModel"] === null || (typeof input["payload"]["loop"]["verifierModel"] === "string")) && (input["payload"]["loop"]["verifierModeId"] !== undefined && ((input["payload"]["loop"]["verifierModeId"] === null || (typeof input["payload"]["loop"]["verifierModeId"] === "string")))) && (input["payload"]["loop"]["verifyPrompt"] === null || (typeof input["payload"]["loop"]["verifyPrompt"] === "string")) && Array.isArray(input["payload"]["loop"]["verifyChecks"]) && __af_1(input["payload"]["loop"]["verifyChecks"]) && typeof input["payload"]["loop"]["archive"] === "boolean" && typeof input["payload"]["loop"]["sleepMs"] === "number" && Number.isSafeInteger(input["payload"]["loop"]["sleepMs"]) && input["payload"]["loop"]["sleepMs"] >= 0 && (input["payload"]["loop"]["maxIterations"] === null || (typeof input["payload"]["loop"]["maxIterations"] === "number" && Number.isSafeInteger(input["payload"]["loop"]["maxIterations"]) && input["payload"]["loop"]["maxIterations"] > 0)) && (input["payload"]["loop"]["maxTimeMs"] === null || (typeof input["payload"]["loop"]["maxTimeMs"] === "number" && Number.isSafeInteger(input["payload"]["loop"]["maxTimeMs"]) && input["payload"]["loop"]["maxTimeMs"] > 0)) && __enumSet_2.has(input["payload"]["loop"]["status"]) && typeof input["payload"]["loop"]["createdAt"] === "string" && typeof input["payload"]["loop"]["updatedAt"] === "string" && typeof input["payload"]["loop"]["startedAt"] === "string" && (input["payload"]["loop"]["completedAt"] === null || (typeof input["payload"]["loop"]["completedAt"] === "string")) && (input["payload"]["loop"]["stopRequestedAt"] === null || (typeof input["payload"]["loop"]["stopRequestedAt"] === "string")) && Array.isArray(input["payload"]["loop"]["iterations"]) && __af_7(input["payload"]["loop"]["iterations"]) && Array.isArray(input["payload"]["loop"]["logs"]) && __af_10(input["payload"]["loop"]["logs"]) && typeof input["payload"]["loop"]["nextLogSeq"] === "number" && Number.isSafeInteger(input["payload"]["loop"]["nextLogSeq"]) && input["payload"]["loop"]["nextLogSeq"] > 0 && (input["payload"]["loop"]["activeIteration"] === null || (typeof input["payload"]["loop"]["activeIteration"] === "number" && Number.isSafeInteger(input["payload"]["loop"]["activeIteration"]) && input["payload"]["loop"]["activeIteration"] > 0)) && (input["payload"]["loop"]["activeWorkerAgentId"] === null || (typeof input["payload"]["loop"]["activeWorkerAgentId"] === "string")) && (input["payload"]["loop"]["activeVerifierAgentId"] === null || (typeof input["payload"]["loop"]["activeVerifierAgentId"] === "string")))) && (input["payload"]["error"] === null || (typeof input["payload"]["error"] === "string"))) {
|
|
65846
66094
|
return { success: true, data: input };
|
|
65847
66095
|
}
|
|
@@ -66278,9 +66526,9 @@ export const SessionOutboundMessage250 = /* @__PURE__ */ (() => {
|
|
|
66278
66526
|
}
|
|
66279
66527
|
return __fin(_e, _d);
|
|
66280
66528
|
}
|
|
66281
|
-
return __mkv(
|
|
66529
|
+
return __mkv(safeParse_SessionOutboundMessage251, null);
|
|
66282
66530
|
})();
|
|
66283
|
-
export const
|
|
66531
|
+
export const SessionOutboundMessage252 = /* @__PURE__ */ (() => {
|
|
66284
66532
|
var __enumSet_1 = new Set(["running", "succeeded", "failed", "stopped"]);
|
|
66285
66533
|
function __af_2(a) { for (var __ae_0, i = 0; i < a.length; i++) {
|
|
66286
66534
|
__ae_0 = a[i];
|
|
@@ -66289,7 +66537,7 @@ export const SessionOutboundMessage251 = /* @__PURE__ */ (() => {
|
|
|
66289
66537
|
}
|
|
66290
66538
|
} return true; }
|
|
66291
66539
|
var __set_enum_7 = new Set(["running", "succeeded", "failed", "stopped"]);
|
|
66292
|
-
function
|
|
66540
|
+
function safeParse_SessionOutboundMessage252(input) {
|
|
66293
66541
|
if (typeof input === "object" && input !== null && !Array.isArray(input) && input["type"] === "loop/list/response" && typeof input["payload"] === "object" && input["payload"] !== null && !Array.isArray(input["payload"]) && typeof input["payload"]["requestId"] === "string" && Array.isArray(input["payload"]["loops"]) && __af_2(input["payload"]["loops"]) && (input["payload"]["error"] === null || (typeof input["payload"]["error"] === "string"))) {
|
|
66294
66542
|
return { success: true, data: input };
|
|
66295
66543
|
}
|
|
@@ -66372,10 +66620,10 @@ export const SessionOutboundMessage251 = /* @__PURE__ */ (() => {
|
|
|
66372
66620
|
}
|
|
66373
66621
|
return __fin(_e, _d);
|
|
66374
66622
|
}
|
|
66375
|
-
return __mkv(
|
|
66623
|
+
return __mkv(safeParse_SessionOutboundMessage252, null);
|
|
66376
66624
|
})();
|
|
66377
|
-
export const
|
|
66378
|
-
var __rf = [
|
|
66625
|
+
export const SessionOutboundMessage253 = /* @__PURE__ */ (() => {
|
|
66626
|
+
var __rf = [__src_SessionOutboundMessage253.schema.shape["payload"].shape["loop"]._zod.def.innerType.shape["modeId"], __src_SessionOutboundMessage253.schema.shape["payload"].shape["loop"]._zod.def.innerType.shape["verifierModeId"]];
|
|
66379
66627
|
function __af_1(a) { for (var __ae_0, i = 0; i < a.length; i++) {
|
|
66380
66628
|
__ae_0 = a[i];
|
|
66381
66629
|
if (!(typeof __ae_0 === "string")) {
|
|
@@ -66406,7 +66654,7 @@ export const SessionOutboundMessage252 = /* @__PURE__ */ (() => {
|
|
|
66406
66654
|
var __set_enum_15 = new Set(["running", "succeeded", "failed", "stopped"]);
|
|
66407
66655
|
var __set_enum_18 = new Set(["running", "succeeded", "failed", "stopped"]);
|
|
66408
66656
|
var __set_enum_24 = new Set(["loop", "worker", "verifier", "verify-check"]);
|
|
66409
|
-
function
|
|
66657
|
+
function safeParse_SessionOutboundMessage253(input) {
|
|
66410
66658
|
if (typeof input === "object" && input !== null && !Array.isArray(input) && input["type"] === "loop/inspect/response" && typeof input["payload"] === "object" && input["payload"] !== null && !Array.isArray(input["payload"]) && typeof input["payload"]["requestId"] === "string" && (input["payload"]["loop"] === null || (typeof input["payload"]["loop"] === "object" && input["payload"]["loop"] !== null && !Array.isArray(input["payload"]["loop"]) && typeof input["payload"]["loop"]["id"] === "string" && (input["payload"]["loop"]["name"] === null || (typeof input["payload"]["loop"]["name"] === "string")) && typeof input["payload"]["loop"]["prompt"] === "string" && typeof input["payload"]["loop"]["cwd"] === "string" && typeof input["payload"]["loop"]["provider"] === "string" && (input["payload"]["loop"]["model"] === null || (typeof input["payload"]["loop"]["model"] === "string")) && (input["payload"]["loop"]["modeId"] !== undefined && ((input["payload"]["loop"]["modeId"] === null || (typeof input["payload"]["loop"]["modeId"] === "string")))) && (input["payload"]["loop"]["workerProvider"] === null || (typeof input["payload"]["loop"]["workerProvider"] === "string")) && (input["payload"]["loop"]["workerModel"] === null || (typeof input["payload"]["loop"]["workerModel"] === "string")) && (input["payload"]["loop"]["verifierProvider"] === null || (typeof input["payload"]["loop"]["verifierProvider"] === "string")) && (input["payload"]["loop"]["verifierModel"] === null || (typeof input["payload"]["loop"]["verifierModel"] === "string")) && (input["payload"]["loop"]["verifierModeId"] !== undefined && ((input["payload"]["loop"]["verifierModeId"] === null || (typeof input["payload"]["loop"]["verifierModeId"] === "string")))) && (input["payload"]["loop"]["verifyPrompt"] === null || (typeof input["payload"]["loop"]["verifyPrompt"] === "string")) && Array.isArray(input["payload"]["loop"]["verifyChecks"]) && __af_1(input["payload"]["loop"]["verifyChecks"]) && typeof input["payload"]["loop"]["archive"] === "boolean" && typeof input["payload"]["loop"]["sleepMs"] === "number" && Number.isSafeInteger(input["payload"]["loop"]["sleepMs"]) && input["payload"]["loop"]["sleepMs"] >= 0 && (input["payload"]["loop"]["maxIterations"] === null || (typeof input["payload"]["loop"]["maxIterations"] === "number" && Number.isSafeInteger(input["payload"]["loop"]["maxIterations"]) && input["payload"]["loop"]["maxIterations"] > 0)) && (input["payload"]["loop"]["maxTimeMs"] === null || (typeof input["payload"]["loop"]["maxTimeMs"] === "number" && Number.isSafeInteger(input["payload"]["loop"]["maxTimeMs"]) && input["payload"]["loop"]["maxTimeMs"] > 0)) && __enumSet_2.has(input["payload"]["loop"]["status"]) && typeof input["payload"]["loop"]["createdAt"] === "string" && typeof input["payload"]["loop"]["updatedAt"] === "string" && typeof input["payload"]["loop"]["startedAt"] === "string" && (input["payload"]["loop"]["completedAt"] === null || (typeof input["payload"]["loop"]["completedAt"] === "string")) && (input["payload"]["loop"]["stopRequestedAt"] === null || (typeof input["payload"]["loop"]["stopRequestedAt"] === "string")) && Array.isArray(input["payload"]["loop"]["iterations"]) && __af_7(input["payload"]["loop"]["iterations"]) && Array.isArray(input["payload"]["loop"]["logs"]) && __af_10(input["payload"]["loop"]["logs"]) && typeof input["payload"]["loop"]["nextLogSeq"] === "number" && Number.isSafeInteger(input["payload"]["loop"]["nextLogSeq"]) && input["payload"]["loop"]["nextLogSeq"] > 0 && (input["payload"]["loop"]["activeIteration"] === null || (typeof input["payload"]["loop"]["activeIteration"] === "number" && Number.isSafeInteger(input["payload"]["loop"]["activeIteration"]) && input["payload"]["loop"]["activeIteration"] > 0)) && (input["payload"]["loop"]["activeWorkerAgentId"] === null || (typeof input["payload"]["loop"]["activeWorkerAgentId"] === "string")) && (input["payload"]["loop"]["activeVerifierAgentId"] === null || (typeof input["payload"]["loop"]["activeVerifierAgentId"] === "string")))) && (input["payload"]["error"] === null || (typeof input["payload"]["error"] === "string"))) {
|
|
66411
66659
|
return { success: true, data: input };
|
|
66412
66660
|
}
|
|
@@ -66843,10 +67091,10 @@ export const SessionOutboundMessage252 = /* @__PURE__ */ (() => {
|
|
|
66843
67091
|
}
|
|
66844
67092
|
return __fin(_e, _d);
|
|
66845
67093
|
}
|
|
66846
|
-
return __mkv(
|
|
67094
|
+
return __mkv(safeParse_SessionOutboundMessage253, null);
|
|
66847
67095
|
})();
|
|
66848
|
-
export const
|
|
66849
|
-
var __rf = [
|
|
67096
|
+
export const SessionOutboundMessage254 = /* @__PURE__ */ (() => {
|
|
67097
|
+
var __rf = [__src_SessionOutboundMessage254.schema.shape["payload"].shape["loop"]._zod.def.innerType.shape["modeId"], __src_SessionOutboundMessage254.schema.shape["payload"].shape["loop"]._zod.def.innerType.shape["verifierModeId"]];
|
|
66850
67098
|
function __af_1(a) { for (var __ae_0, i = 0; i < a.length; i++) {
|
|
66851
67099
|
__ae_0 = a[i];
|
|
66852
67100
|
if (!(typeof __ae_0 === "string")) {
|
|
@@ -66885,7 +67133,7 @@ export const SessionOutboundMessage253 = /* @__PURE__ */ (() => {
|
|
|
66885
67133
|
var __set_enum_21 = new Set(["running", "succeeded", "failed", "stopped"]);
|
|
66886
67134
|
var __set_enum_27 = new Set(["loop", "worker", "verifier", "verify-check"]);
|
|
66887
67135
|
var __set_enum_30 = new Set(["loop", "worker", "verifier", "verify-check"]);
|
|
66888
|
-
function
|
|
67136
|
+
function safeParse_SessionOutboundMessage254(input) {
|
|
66889
67137
|
if (typeof input === "object" && input !== null && !Array.isArray(input) && input["type"] === "loop/logs/response" && typeof input["payload"] === "object" && input["payload"] !== null && !Array.isArray(input["payload"]) && typeof input["payload"]["requestId"] === "string" && (input["payload"]["loop"] === null || (typeof input["payload"]["loop"] === "object" && input["payload"]["loop"] !== null && !Array.isArray(input["payload"]["loop"]) && typeof input["payload"]["loop"]["id"] === "string" && (input["payload"]["loop"]["name"] === null || (typeof input["payload"]["loop"]["name"] === "string")) && typeof input["payload"]["loop"]["prompt"] === "string" && typeof input["payload"]["loop"]["cwd"] === "string" && typeof input["payload"]["loop"]["provider"] === "string" && (input["payload"]["loop"]["model"] === null || (typeof input["payload"]["loop"]["model"] === "string")) && (input["payload"]["loop"]["modeId"] !== undefined && ((input["payload"]["loop"]["modeId"] === null || (typeof input["payload"]["loop"]["modeId"] === "string")))) && (input["payload"]["loop"]["workerProvider"] === null || (typeof input["payload"]["loop"]["workerProvider"] === "string")) && (input["payload"]["loop"]["workerModel"] === null || (typeof input["payload"]["loop"]["workerModel"] === "string")) && (input["payload"]["loop"]["verifierProvider"] === null || (typeof input["payload"]["loop"]["verifierProvider"] === "string")) && (input["payload"]["loop"]["verifierModel"] === null || (typeof input["payload"]["loop"]["verifierModel"] === "string")) && (input["payload"]["loop"]["verifierModeId"] !== undefined && ((input["payload"]["loop"]["verifierModeId"] === null || (typeof input["payload"]["loop"]["verifierModeId"] === "string")))) && (input["payload"]["loop"]["verifyPrompt"] === null || (typeof input["payload"]["loop"]["verifyPrompt"] === "string")) && Array.isArray(input["payload"]["loop"]["verifyChecks"]) && __af_1(input["payload"]["loop"]["verifyChecks"]) && typeof input["payload"]["loop"]["archive"] === "boolean" && typeof input["payload"]["loop"]["sleepMs"] === "number" && Number.isSafeInteger(input["payload"]["loop"]["sleepMs"]) && input["payload"]["loop"]["sleepMs"] >= 0 && (input["payload"]["loop"]["maxIterations"] === null || (typeof input["payload"]["loop"]["maxIterations"] === "number" && Number.isSafeInteger(input["payload"]["loop"]["maxIterations"]) && input["payload"]["loop"]["maxIterations"] > 0)) && (input["payload"]["loop"]["maxTimeMs"] === null || (typeof input["payload"]["loop"]["maxTimeMs"] === "number" && Number.isSafeInteger(input["payload"]["loop"]["maxTimeMs"]) && input["payload"]["loop"]["maxTimeMs"] > 0)) && __enumSet_2.has(input["payload"]["loop"]["status"]) && typeof input["payload"]["loop"]["createdAt"] === "string" && typeof input["payload"]["loop"]["updatedAt"] === "string" && typeof input["payload"]["loop"]["startedAt"] === "string" && (input["payload"]["loop"]["completedAt"] === null || (typeof input["payload"]["loop"]["completedAt"] === "string")) && (input["payload"]["loop"]["stopRequestedAt"] === null || (typeof input["payload"]["loop"]["stopRequestedAt"] === "string")) && Array.isArray(input["payload"]["loop"]["iterations"]) && __af_7(input["payload"]["loop"]["iterations"]) && Array.isArray(input["payload"]["loop"]["logs"]) && __af_10(input["payload"]["loop"]["logs"]) && typeof input["payload"]["loop"]["nextLogSeq"] === "number" && Number.isSafeInteger(input["payload"]["loop"]["nextLogSeq"]) && input["payload"]["loop"]["nextLogSeq"] > 0 && (input["payload"]["loop"]["activeIteration"] === null || (typeof input["payload"]["loop"]["activeIteration"] === "number" && Number.isSafeInteger(input["payload"]["loop"]["activeIteration"]) && input["payload"]["loop"]["activeIteration"] > 0)) && (input["payload"]["loop"]["activeWorkerAgentId"] === null || (typeof input["payload"]["loop"]["activeWorkerAgentId"] === "string")) && (input["payload"]["loop"]["activeVerifierAgentId"] === null || (typeof input["payload"]["loop"]["activeVerifierAgentId"] === "string")))) && Array.isArray(input["payload"]["entries"]) && __af_13(input["payload"]["entries"]) && typeof input["payload"]["nextCursor"] === "number" && Number.isSafeInteger(input["payload"]["nextCursor"]) && input["payload"]["nextCursor"] >= 0 && (input["payload"]["error"] === null || (typeof input["payload"]["error"] === "string"))) {
|
|
66890
67138
|
return { success: true, data: input };
|
|
66891
67139
|
}
|
|
@@ -67400,10 +67648,10 @@ export const SessionOutboundMessage253 = /* @__PURE__ */ (() => {
|
|
|
67400
67648
|
}
|
|
67401
67649
|
return __fin(_e, _d);
|
|
67402
67650
|
}
|
|
67403
|
-
return __mkv(
|
|
67651
|
+
return __mkv(safeParse_SessionOutboundMessage254, null);
|
|
67404
67652
|
})();
|
|
67405
|
-
export const
|
|
67406
|
-
var __rf = [
|
|
67653
|
+
export const SessionOutboundMessage255 = /* @__PURE__ */ (() => {
|
|
67654
|
+
var __rf = [__src_SessionOutboundMessage255.schema.shape["payload"].shape["loop"]._zod.def.innerType.shape["modeId"], __src_SessionOutboundMessage255.schema.shape["payload"].shape["loop"]._zod.def.innerType.shape["verifierModeId"]];
|
|
67407
67655
|
function __af_1(a) { for (var __ae_0, i = 0; i < a.length; i++) {
|
|
67408
67656
|
__ae_0 = a[i];
|
|
67409
67657
|
if (!(typeof __ae_0 === "string")) {
|
|
@@ -67434,7 +67682,7 @@ export const SessionOutboundMessage254 = /* @__PURE__ */ (() => {
|
|
|
67434
67682
|
var __set_enum_15 = new Set(["running", "succeeded", "failed", "stopped"]);
|
|
67435
67683
|
var __set_enum_18 = new Set(["running", "succeeded", "failed", "stopped"]);
|
|
67436
67684
|
var __set_enum_24 = new Set(["loop", "worker", "verifier", "verify-check"]);
|
|
67437
|
-
function
|
|
67685
|
+
function safeParse_SessionOutboundMessage255(input) {
|
|
67438
67686
|
if (typeof input === "object" && input !== null && !Array.isArray(input) && input["type"] === "loop/stop/response" && typeof input["payload"] === "object" && input["payload"] !== null && !Array.isArray(input["payload"]) && typeof input["payload"]["requestId"] === "string" && (input["payload"]["loop"] === null || (typeof input["payload"]["loop"] === "object" && input["payload"]["loop"] !== null && !Array.isArray(input["payload"]["loop"]) && typeof input["payload"]["loop"]["id"] === "string" && (input["payload"]["loop"]["name"] === null || (typeof input["payload"]["loop"]["name"] === "string")) && typeof input["payload"]["loop"]["prompt"] === "string" && typeof input["payload"]["loop"]["cwd"] === "string" && typeof input["payload"]["loop"]["provider"] === "string" && (input["payload"]["loop"]["model"] === null || (typeof input["payload"]["loop"]["model"] === "string")) && (input["payload"]["loop"]["modeId"] !== undefined && ((input["payload"]["loop"]["modeId"] === null || (typeof input["payload"]["loop"]["modeId"] === "string")))) && (input["payload"]["loop"]["workerProvider"] === null || (typeof input["payload"]["loop"]["workerProvider"] === "string")) && (input["payload"]["loop"]["workerModel"] === null || (typeof input["payload"]["loop"]["workerModel"] === "string")) && (input["payload"]["loop"]["verifierProvider"] === null || (typeof input["payload"]["loop"]["verifierProvider"] === "string")) && (input["payload"]["loop"]["verifierModel"] === null || (typeof input["payload"]["loop"]["verifierModel"] === "string")) && (input["payload"]["loop"]["verifierModeId"] !== undefined && ((input["payload"]["loop"]["verifierModeId"] === null || (typeof input["payload"]["loop"]["verifierModeId"] === "string")))) && (input["payload"]["loop"]["verifyPrompt"] === null || (typeof input["payload"]["loop"]["verifyPrompt"] === "string")) && Array.isArray(input["payload"]["loop"]["verifyChecks"]) && __af_1(input["payload"]["loop"]["verifyChecks"]) && typeof input["payload"]["loop"]["archive"] === "boolean" && typeof input["payload"]["loop"]["sleepMs"] === "number" && Number.isSafeInteger(input["payload"]["loop"]["sleepMs"]) && input["payload"]["loop"]["sleepMs"] >= 0 && (input["payload"]["loop"]["maxIterations"] === null || (typeof input["payload"]["loop"]["maxIterations"] === "number" && Number.isSafeInteger(input["payload"]["loop"]["maxIterations"]) && input["payload"]["loop"]["maxIterations"] > 0)) && (input["payload"]["loop"]["maxTimeMs"] === null || (typeof input["payload"]["loop"]["maxTimeMs"] === "number" && Number.isSafeInteger(input["payload"]["loop"]["maxTimeMs"]) && input["payload"]["loop"]["maxTimeMs"] > 0)) && __enumSet_2.has(input["payload"]["loop"]["status"]) && typeof input["payload"]["loop"]["createdAt"] === "string" && typeof input["payload"]["loop"]["updatedAt"] === "string" && typeof input["payload"]["loop"]["startedAt"] === "string" && (input["payload"]["loop"]["completedAt"] === null || (typeof input["payload"]["loop"]["completedAt"] === "string")) && (input["payload"]["loop"]["stopRequestedAt"] === null || (typeof input["payload"]["loop"]["stopRequestedAt"] === "string")) && Array.isArray(input["payload"]["loop"]["iterations"]) && __af_7(input["payload"]["loop"]["iterations"]) && Array.isArray(input["payload"]["loop"]["logs"]) && __af_10(input["payload"]["loop"]["logs"]) && typeof input["payload"]["loop"]["nextLogSeq"] === "number" && Number.isSafeInteger(input["payload"]["loop"]["nextLogSeq"]) && input["payload"]["loop"]["nextLogSeq"] > 0 && (input["payload"]["loop"]["activeIteration"] === null || (typeof input["payload"]["loop"]["activeIteration"] === "number" && Number.isSafeInteger(input["payload"]["loop"]["activeIteration"]) && input["payload"]["loop"]["activeIteration"] > 0)) && (input["payload"]["loop"]["activeWorkerAgentId"] === null || (typeof input["payload"]["loop"]["activeWorkerAgentId"] === "string")) && (input["payload"]["loop"]["activeVerifierAgentId"] === null || (typeof input["payload"]["loop"]["activeVerifierAgentId"] === "string")))) && (input["payload"]["error"] === null || (typeof input["payload"]["error"] === "string"))) {
|
|
67439
67687
|
return { success: true, data: input };
|
|
67440
67688
|
}
|
|
@@ -67871,12 +68119,12 @@ export const SessionOutboundMessage254 = /* @__PURE__ */ (() => {
|
|
|
67871
68119
|
}
|
|
67872
68120
|
return __fin(_e, _d);
|
|
67873
68121
|
}
|
|
67874
|
-
return __mkv(
|
|
68122
|
+
return __mkv(safeParse_SessionOutboundMessage255, null);
|
|
67875
68123
|
})();
|
|
67876
|
-
export const
|
|
68124
|
+
export const SessionOutboundMessage256 = /* @__PURE__ */ (() => {
|
|
67877
68125
|
var __enumSet_0 = new Set(["starting", "downloading", "installing", "complete"]);
|
|
67878
68126
|
var __set_enum_3 = new Set(["starting", "downloading", "installing", "complete"]);
|
|
67879
|
-
function
|
|
68127
|
+
function safeParse_SessionOutboundMessage256(input) {
|
|
67880
68128
|
if (typeof input === "object" && input !== null && !Array.isArray(input) && input["type"] === "daemon.update.progress" && typeof input["payload"] === "object" && input["payload"] !== null && !Array.isArray(input["payload"]) && typeof input["payload"]["requestId"] === "string" && __enumSet_0.has(input["payload"]["phase"])) {
|
|
67881
68129
|
return { success: true, data: input };
|
|
67882
68130
|
}
|
|
@@ -67905,10 +68153,10 @@ export const SessionOutboundMessage255 = /* @__PURE__ */ (() => {
|
|
|
67905
68153
|
}
|
|
67906
68154
|
return __fin(_e, _d);
|
|
67907
68155
|
}
|
|
67908
|
-
return __mkv(
|
|
68156
|
+
return __mkv(safeParse_SessionOutboundMessage256, null);
|
|
67909
68157
|
})();
|
|
67910
|
-
export const
|
|
67911
|
-
function
|
|
68158
|
+
export const SessionOutboundMessage257 = /* @__PURE__ */ (() => {
|
|
68159
|
+
function safeParse_SessionOutboundMessage257(input) {
|
|
67912
68160
|
if (typeof input === "object" && input !== null && !Array.isArray(input) && input["type"] === "daemon.update.response" && typeof input["payload"] === "object" && input["payload"] !== null && !Array.isArray(input["payload"]) && typeof input["payload"]["requestId"] === "string" && typeof input["payload"]["success"] === "boolean" && (input["payload"]["error"] === null || (typeof input["payload"]["error"] === "string")) && (input["payload"]["previousVersion"] === null || (typeof input["payload"]["previousVersion"] === "string")) && (input["payload"]["newVersion"] === null || (typeof input["payload"]["newVersion"] === "string"))) {
|
|
67913
68161
|
return { success: true, data: input };
|
|
67914
68162
|
}
|
|
@@ -67952,16 +68200,16 @@ export const SessionOutboundMessage256 = /* @__PURE__ */ (() => {
|
|
|
67952
68200
|
}
|
|
67953
68201
|
return __fin(_e, _d);
|
|
67954
68202
|
}
|
|
67955
|
-
return __mkv(
|
|
68203
|
+
return __mkv(safeParse_SessionOutboundMessage257, null);
|
|
67956
68204
|
})();
|
|
67957
|
-
export const
|
|
68205
|
+
export const SessionOutboundMessage258 = /* @__PURE__ */ (() => {
|
|
67958
68206
|
function __af_1(a) { for (var __ae_0, i = 0; i < a.length; i++) {
|
|
67959
68207
|
__ae_0 = a[i];
|
|
67960
68208
|
if (!(typeof __ae_0 === "object" && __ae_0 !== null && !Array.isArray(__ae_0) && typeof __ae_0["kind"] === "string" && (__ae_0["id"] === undefined || (typeof __ae_0["id"] === "string")) && (__ae_0["provider"] === undefined || (typeof __ae_0["provider"] === "string")) && typeof __ae_0["reason"] === "string")) {
|
|
67961
68209
|
return false;
|
|
67962
68210
|
}
|
|
67963
68211
|
} return true; }
|
|
67964
|
-
function
|
|
68212
|
+
function safeParse_SessionOutboundMessage258(input) {
|
|
67965
68213
|
if (typeof input === "object" && input !== null && !Array.isArray(input) && input["type"] === "daemon.runtime_handoff.restart.response" && typeof input["payload"] === "object" && input["payload"] !== null && !Array.isArray(input["payload"]) && typeof input["payload"]["requestId"] === "string" && typeof input["payload"]["status"] === "string" && Array.isArray(input["payload"]["blockers"]) && __af_1(input["payload"]["blockers"])) {
|
|
67966
68214
|
return { success: true, data: input };
|
|
67967
68215
|
}
|
|
@@ -68019,7 +68267,7 @@ export const SessionOutboundMessage257 = /* @__PURE__ */ (() => {
|
|
|
68019
68267
|
}
|
|
68020
68268
|
return __fin(_e, _d);
|
|
68021
68269
|
}
|
|
68022
|
-
return __mkv(
|
|
68270
|
+
return __mkv(safeParse_SessionOutboundMessage258, null);
|
|
68023
68271
|
})();
|
|
68024
68272
|
export const SessionOutboundMessage26 = /* @__PURE__ */ (() => {
|
|
68025
68273
|
function safeParse_SessionOutboundMessage26(input) {
|
|
@@ -104962,6 +105210,7 @@ export const WSOutboundEnvelope = /* @__PURE__ */ (() => {
|
|
|
104962
105210
|
case "capture_terminal_response": return typeof __dx_3 === "object" && __dx_3 !== null && !Array.isArray(__dx_3) && __dx_3["type"] === "capture_terminal_response";
|
|
104963
105211
|
case "terminal_stream_exit": return typeof __dx_3 === "object" && __dx_3 !== null && !Array.isArray(__dx_3) && __dx_3["type"] === "terminal_stream_exit";
|
|
104964
105212
|
case "terminal_attention_required": return typeof __dx_3 === "object" && __dx_3 !== null && !Array.isArray(__dx_3) && __dx_3["type"] === "terminal_attention_required";
|
|
105213
|
+
case "plugin.notification": return typeof __dx_3 === "object" && __dx_3 !== null && !Array.isArray(__dx_3) && __dx_3["type"] === "plugin.notification";
|
|
104965
105214
|
case "chat/create/response": return typeof __dx_3 === "object" && __dx_3 !== null && !Array.isArray(__dx_3) && __dx_3["type"] === "chat/create/response";
|
|
104966
105215
|
case "chat/list/response": return typeof __dx_3 === "object" && __dx_3 !== null && !Array.isArray(__dx_3) && __dx_3["type"] === "chat/list/response";
|
|
104967
105216
|
case "chat/inspect/response": return typeof __dx_3 === "object" && __dx_3 !== null && !Array.isArray(__dx_3) && __dx_3["type"] === "chat/inspect/response";
|
|
@@ -107612,271 +107861,282 @@ export const WSOutboundEnvelope = /* @__PURE__ */ (() => {
|
|
|
107612
107861
|
}
|
|
107613
107862
|
}
|
|
107614
107863
|
break;
|
|
107615
|
-
case "
|
|
107864
|
+
case "plugin.notification":
|
|
107616
107865
|
if (typeof __du_9 !== "object" || __du_9 === null || Array.isArray(__du_9)) {
|
|
107617
107866
|
_e.push({ code: "invalid_type", expected: "object", input: __du_9, path: ["message"] });
|
|
107618
107867
|
}
|
|
107619
107868
|
else {
|
|
107620
107869
|
var __o_244 = __du_9;
|
|
107621
|
-
if (__o_244["type"] !== "
|
|
107622
|
-
_e.push({ code: "invalid_value", values: ["
|
|
107870
|
+
if (__o_244["type"] !== "plugin.notification") {
|
|
107871
|
+
_e.push({ code: "invalid_value", values: ["plugin.notification"], input: __o_244["type"], path: ["message"].concat("type") });
|
|
107623
107872
|
}
|
|
107624
107873
|
}
|
|
107625
107874
|
break;
|
|
107626
|
-
case "chat/
|
|
107875
|
+
case "chat/create/response":
|
|
107627
107876
|
if (typeof __du_9 !== "object" || __du_9 === null || Array.isArray(__du_9)) {
|
|
107628
107877
|
_e.push({ code: "invalid_type", expected: "object", input: __du_9, path: ["message"] });
|
|
107629
107878
|
}
|
|
107630
107879
|
else {
|
|
107631
107880
|
var __o_245 = __du_9;
|
|
107632
|
-
if (__o_245["type"] !== "chat/
|
|
107633
|
-
_e.push({ code: "invalid_value", values: ["chat/
|
|
107881
|
+
if (__o_245["type"] !== "chat/create/response") {
|
|
107882
|
+
_e.push({ code: "invalid_value", values: ["chat/create/response"], input: __o_245["type"], path: ["message"].concat("type") });
|
|
107634
107883
|
}
|
|
107635
107884
|
}
|
|
107636
107885
|
break;
|
|
107637
|
-
case "chat/
|
|
107886
|
+
case "chat/list/response":
|
|
107638
107887
|
if (typeof __du_9 !== "object" || __du_9 === null || Array.isArray(__du_9)) {
|
|
107639
107888
|
_e.push({ code: "invalid_type", expected: "object", input: __du_9, path: ["message"] });
|
|
107640
107889
|
}
|
|
107641
107890
|
else {
|
|
107642
107891
|
var __o_246 = __du_9;
|
|
107643
|
-
if (__o_246["type"] !== "chat/
|
|
107644
|
-
_e.push({ code: "invalid_value", values: ["chat/
|
|
107892
|
+
if (__o_246["type"] !== "chat/list/response") {
|
|
107893
|
+
_e.push({ code: "invalid_value", values: ["chat/list/response"], input: __o_246["type"], path: ["message"].concat("type") });
|
|
107645
107894
|
}
|
|
107646
107895
|
}
|
|
107647
107896
|
break;
|
|
107648
|
-
case "chat/
|
|
107897
|
+
case "chat/inspect/response":
|
|
107649
107898
|
if (typeof __du_9 !== "object" || __du_9 === null || Array.isArray(__du_9)) {
|
|
107650
107899
|
_e.push({ code: "invalid_type", expected: "object", input: __du_9, path: ["message"] });
|
|
107651
107900
|
}
|
|
107652
107901
|
else {
|
|
107653
107902
|
var __o_247 = __du_9;
|
|
107654
|
-
if (__o_247["type"] !== "chat/
|
|
107655
|
-
_e.push({ code: "invalid_value", values: ["chat/
|
|
107903
|
+
if (__o_247["type"] !== "chat/inspect/response") {
|
|
107904
|
+
_e.push({ code: "invalid_value", values: ["chat/inspect/response"], input: __o_247["type"], path: ["message"].concat("type") });
|
|
107656
107905
|
}
|
|
107657
107906
|
}
|
|
107658
107907
|
break;
|
|
107659
|
-
case "chat/
|
|
107908
|
+
case "chat/delete/response":
|
|
107660
107909
|
if (typeof __du_9 !== "object" || __du_9 === null || Array.isArray(__du_9)) {
|
|
107661
107910
|
_e.push({ code: "invalid_type", expected: "object", input: __du_9, path: ["message"] });
|
|
107662
107911
|
}
|
|
107663
107912
|
else {
|
|
107664
107913
|
var __o_248 = __du_9;
|
|
107665
|
-
if (__o_248["type"] !== "chat/
|
|
107666
|
-
_e.push({ code: "invalid_value", values: ["chat/
|
|
107914
|
+
if (__o_248["type"] !== "chat/delete/response") {
|
|
107915
|
+
_e.push({ code: "invalid_value", values: ["chat/delete/response"], input: __o_248["type"], path: ["message"].concat("type") });
|
|
107667
107916
|
}
|
|
107668
107917
|
}
|
|
107669
107918
|
break;
|
|
107670
|
-
case "chat/
|
|
107919
|
+
case "chat/post/response":
|
|
107671
107920
|
if (typeof __du_9 !== "object" || __du_9 === null || Array.isArray(__du_9)) {
|
|
107672
107921
|
_e.push({ code: "invalid_type", expected: "object", input: __du_9, path: ["message"] });
|
|
107673
107922
|
}
|
|
107674
107923
|
else {
|
|
107675
107924
|
var __o_249 = __du_9;
|
|
107676
|
-
if (__o_249["type"] !== "chat/
|
|
107677
|
-
_e.push({ code: "invalid_value", values: ["chat/
|
|
107925
|
+
if (__o_249["type"] !== "chat/post/response") {
|
|
107926
|
+
_e.push({ code: "invalid_value", values: ["chat/post/response"], input: __o_249["type"], path: ["message"].concat("type") });
|
|
107678
107927
|
}
|
|
107679
107928
|
}
|
|
107680
107929
|
break;
|
|
107681
|
-
case "chat/
|
|
107930
|
+
case "chat/read/response":
|
|
107682
107931
|
if (typeof __du_9 !== "object" || __du_9 === null || Array.isArray(__du_9)) {
|
|
107683
107932
|
_e.push({ code: "invalid_type", expected: "object", input: __du_9, path: ["message"] });
|
|
107684
107933
|
}
|
|
107685
107934
|
else {
|
|
107686
107935
|
var __o_250 = __du_9;
|
|
107687
|
-
if (__o_250["type"] !== "chat/
|
|
107688
|
-
_e.push({ code: "invalid_value", values: ["chat/
|
|
107936
|
+
if (__o_250["type"] !== "chat/read/response") {
|
|
107937
|
+
_e.push({ code: "invalid_value", values: ["chat/read/response"], input: __o_250["type"], path: ["message"].concat("type") });
|
|
107689
107938
|
}
|
|
107690
107939
|
}
|
|
107691
107940
|
break;
|
|
107692
|
-
case "
|
|
107941
|
+
case "chat/wait/response":
|
|
107693
107942
|
if (typeof __du_9 !== "object" || __du_9 === null || Array.isArray(__du_9)) {
|
|
107694
107943
|
_e.push({ code: "invalid_type", expected: "object", input: __du_9, path: ["message"] });
|
|
107695
107944
|
}
|
|
107696
107945
|
else {
|
|
107697
107946
|
var __o_251 = __du_9;
|
|
107698
|
-
if (__o_251["type"] !== "
|
|
107699
|
-
_e.push({ code: "invalid_value", values: ["
|
|
107947
|
+
if (__o_251["type"] !== "chat/wait/response") {
|
|
107948
|
+
_e.push({ code: "invalid_value", values: ["chat/wait/response"], input: __o_251["type"], path: ["message"].concat("type") });
|
|
107700
107949
|
}
|
|
107701
107950
|
}
|
|
107702
107951
|
break;
|
|
107703
|
-
case "schedule/
|
|
107952
|
+
case "schedule/create/response":
|
|
107704
107953
|
if (typeof __du_9 !== "object" || __du_9 === null || Array.isArray(__du_9)) {
|
|
107705
107954
|
_e.push({ code: "invalid_type", expected: "object", input: __du_9, path: ["message"] });
|
|
107706
107955
|
}
|
|
107707
107956
|
else {
|
|
107708
107957
|
var __o_252 = __du_9;
|
|
107709
|
-
if (__o_252["type"] !== "schedule/
|
|
107710
|
-
_e.push({ code: "invalid_value", values: ["schedule/
|
|
107958
|
+
if (__o_252["type"] !== "schedule/create/response") {
|
|
107959
|
+
_e.push({ code: "invalid_value", values: ["schedule/create/response"], input: __o_252["type"], path: ["message"].concat("type") });
|
|
107711
107960
|
}
|
|
107712
107961
|
}
|
|
107713
107962
|
break;
|
|
107714
|
-
case "schedule/
|
|
107963
|
+
case "schedule/list/response":
|
|
107715
107964
|
if (typeof __du_9 !== "object" || __du_9 === null || Array.isArray(__du_9)) {
|
|
107716
107965
|
_e.push({ code: "invalid_type", expected: "object", input: __du_9, path: ["message"] });
|
|
107717
107966
|
}
|
|
107718
107967
|
else {
|
|
107719
107968
|
var __o_253 = __du_9;
|
|
107720
|
-
if (__o_253["type"] !== "schedule/
|
|
107721
|
-
_e.push({ code: "invalid_value", values: ["schedule/
|
|
107969
|
+
if (__o_253["type"] !== "schedule/list/response") {
|
|
107970
|
+
_e.push({ code: "invalid_value", values: ["schedule/list/response"], input: __o_253["type"], path: ["message"].concat("type") });
|
|
107722
107971
|
}
|
|
107723
107972
|
}
|
|
107724
107973
|
break;
|
|
107725
|
-
case "schedule/
|
|
107974
|
+
case "schedule/inspect/response":
|
|
107726
107975
|
if (typeof __du_9 !== "object" || __du_9 === null || Array.isArray(__du_9)) {
|
|
107727
107976
|
_e.push({ code: "invalid_type", expected: "object", input: __du_9, path: ["message"] });
|
|
107728
107977
|
}
|
|
107729
107978
|
else {
|
|
107730
107979
|
var __o_254 = __du_9;
|
|
107731
|
-
if (__o_254["type"] !== "schedule/
|
|
107732
|
-
_e.push({ code: "invalid_value", values: ["schedule/
|
|
107980
|
+
if (__o_254["type"] !== "schedule/inspect/response") {
|
|
107981
|
+
_e.push({ code: "invalid_value", values: ["schedule/inspect/response"], input: __o_254["type"], path: ["message"].concat("type") });
|
|
107733
107982
|
}
|
|
107734
107983
|
}
|
|
107735
107984
|
break;
|
|
107736
|
-
case "schedule/
|
|
107985
|
+
case "schedule/logs/response":
|
|
107737
107986
|
if (typeof __du_9 !== "object" || __du_9 === null || Array.isArray(__du_9)) {
|
|
107738
107987
|
_e.push({ code: "invalid_type", expected: "object", input: __du_9, path: ["message"] });
|
|
107739
107988
|
}
|
|
107740
107989
|
else {
|
|
107741
107990
|
var __o_255 = __du_9;
|
|
107742
|
-
if (__o_255["type"] !== "schedule/
|
|
107743
|
-
_e.push({ code: "invalid_value", values: ["schedule/
|
|
107991
|
+
if (__o_255["type"] !== "schedule/logs/response") {
|
|
107992
|
+
_e.push({ code: "invalid_value", values: ["schedule/logs/response"], input: __o_255["type"], path: ["message"].concat("type") });
|
|
107744
107993
|
}
|
|
107745
107994
|
}
|
|
107746
107995
|
break;
|
|
107747
|
-
case "schedule/
|
|
107996
|
+
case "schedule/pause/response":
|
|
107748
107997
|
if (typeof __du_9 !== "object" || __du_9 === null || Array.isArray(__du_9)) {
|
|
107749
107998
|
_e.push({ code: "invalid_type", expected: "object", input: __du_9, path: ["message"] });
|
|
107750
107999
|
}
|
|
107751
108000
|
else {
|
|
107752
108001
|
var __o_256 = __du_9;
|
|
107753
|
-
if (__o_256["type"] !== "schedule/
|
|
107754
|
-
_e.push({ code: "invalid_value", values: ["schedule/
|
|
108002
|
+
if (__o_256["type"] !== "schedule/pause/response") {
|
|
108003
|
+
_e.push({ code: "invalid_value", values: ["schedule/pause/response"], input: __o_256["type"], path: ["message"].concat("type") });
|
|
107755
108004
|
}
|
|
107756
108005
|
}
|
|
107757
108006
|
break;
|
|
107758
|
-
case "schedule/
|
|
108007
|
+
case "schedule/resume/response":
|
|
107759
108008
|
if (typeof __du_9 !== "object" || __du_9 === null || Array.isArray(__du_9)) {
|
|
107760
108009
|
_e.push({ code: "invalid_type", expected: "object", input: __du_9, path: ["message"] });
|
|
107761
108010
|
}
|
|
107762
108011
|
else {
|
|
107763
108012
|
var __o_257 = __du_9;
|
|
107764
|
-
if (__o_257["type"] !== "schedule/
|
|
107765
|
-
_e.push({ code: "invalid_value", values: ["schedule/
|
|
108013
|
+
if (__o_257["type"] !== "schedule/resume/response") {
|
|
108014
|
+
_e.push({ code: "invalid_value", values: ["schedule/resume/response"], input: __o_257["type"], path: ["message"].concat("type") });
|
|
107766
108015
|
}
|
|
107767
108016
|
}
|
|
107768
108017
|
break;
|
|
107769
|
-
case "schedule/
|
|
108018
|
+
case "schedule/delete/response":
|
|
107770
108019
|
if (typeof __du_9 !== "object" || __du_9 === null || Array.isArray(__du_9)) {
|
|
107771
108020
|
_e.push({ code: "invalid_type", expected: "object", input: __du_9, path: ["message"] });
|
|
107772
108021
|
}
|
|
107773
108022
|
else {
|
|
107774
108023
|
var __o_258 = __du_9;
|
|
107775
|
-
if (__o_258["type"] !== "schedule/
|
|
107776
|
-
_e.push({ code: "invalid_value", values: ["schedule/
|
|
108024
|
+
if (__o_258["type"] !== "schedule/delete/response") {
|
|
108025
|
+
_e.push({ code: "invalid_value", values: ["schedule/delete/response"], input: __o_258["type"], path: ["message"].concat("type") });
|
|
107777
108026
|
}
|
|
107778
108027
|
}
|
|
107779
108028
|
break;
|
|
107780
|
-
case "schedule/
|
|
108029
|
+
case "schedule/run-once/response":
|
|
107781
108030
|
if (typeof __du_9 !== "object" || __du_9 === null || Array.isArray(__du_9)) {
|
|
107782
108031
|
_e.push({ code: "invalid_type", expected: "object", input: __du_9, path: ["message"] });
|
|
107783
108032
|
}
|
|
107784
108033
|
else {
|
|
107785
108034
|
var __o_259 = __du_9;
|
|
107786
|
-
if (__o_259["type"] !== "schedule/
|
|
107787
|
-
_e.push({ code: "invalid_value", values: ["schedule/
|
|
108035
|
+
if (__o_259["type"] !== "schedule/run-once/response") {
|
|
108036
|
+
_e.push({ code: "invalid_value", values: ["schedule/run-once/response"], input: __o_259["type"], path: ["message"].concat("type") });
|
|
107788
108037
|
}
|
|
107789
108038
|
}
|
|
107790
108039
|
break;
|
|
107791
|
-
case "
|
|
108040
|
+
case "schedule/update/response":
|
|
107792
108041
|
if (typeof __du_9 !== "object" || __du_9 === null || Array.isArray(__du_9)) {
|
|
107793
108042
|
_e.push({ code: "invalid_type", expected: "object", input: __du_9, path: ["message"] });
|
|
107794
108043
|
}
|
|
107795
108044
|
else {
|
|
107796
108045
|
var __o_260 = __du_9;
|
|
107797
|
-
if (__o_260["type"] !== "
|
|
107798
|
-
_e.push({ code: "invalid_value", values: ["
|
|
108046
|
+
if (__o_260["type"] !== "schedule/update/response") {
|
|
108047
|
+
_e.push({ code: "invalid_value", values: ["schedule/update/response"], input: __o_260["type"], path: ["message"].concat("type") });
|
|
107799
108048
|
}
|
|
107800
108049
|
}
|
|
107801
108050
|
break;
|
|
107802
|
-
case "loop/
|
|
108051
|
+
case "loop/run/response":
|
|
107803
108052
|
if (typeof __du_9 !== "object" || __du_9 === null || Array.isArray(__du_9)) {
|
|
107804
108053
|
_e.push({ code: "invalid_type", expected: "object", input: __du_9, path: ["message"] });
|
|
107805
108054
|
}
|
|
107806
108055
|
else {
|
|
107807
108056
|
var __o_261 = __du_9;
|
|
107808
|
-
if (__o_261["type"] !== "loop/
|
|
107809
|
-
_e.push({ code: "invalid_value", values: ["loop/
|
|
108057
|
+
if (__o_261["type"] !== "loop/run/response") {
|
|
108058
|
+
_e.push({ code: "invalid_value", values: ["loop/run/response"], input: __o_261["type"], path: ["message"].concat("type") });
|
|
107810
108059
|
}
|
|
107811
108060
|
}
|
|
107812
108061
|
break;
|
|
107813
|
-
case "loop/
|
|
108062
|
+
case "loop/list/response":
|
|
107814
108063
|
if (typeof __du_9 !== "object" || __du_9 === null || Array.isArray(__du_9)) {
|
|
107815
108064
|
_e.push({ code: "invalid_type", expected: "object", input: __du_9, path: ["message"] });
|
|
107816
108065
|
}
|
|
107817
108066
|
else {
|
|
107818
108067
|
var __o_262 = __du_9;
|
|
107819
|
-
if (__o_262["type"] !== "loop/
|
|
107820
|
-
_e.push({ code: "invalid_value", values: ["loop/
|
|
108068
|
+
if (__o_262["type"] !== "loop/list/response") {
|
|
108069
|
+
_e.push({ code: "invalid_value", values: ["loop/list/response"], input: __o_262["type"], path: ["message"].concat("type") });
|
|
107821
108070
|
}
|
|
107822
108071
|
}
|
|
107823
108072
|
break;
|
|
107824
|
-
case "loop/
|
|
108073
|
+
case "loop/inspect/response":
|
|
107825
108074
|
if (typeof __du_9 !== "object" || __du_9 === null || Array.isArray(__du_9)) {
|
|
107826
108075
|
_e.push({ code: "invalid_type", expected: "object", input: __du_9, path: ["message"] });
|
|
107827
108076
|
}
|
|
107828
108077
|
else {
|
|
107829
108078
|
var __o_263 = __du_9;
|
|
107830
|
-
if (__o_263["type"] !== "loop/
|
|
107831
|
-
_e.push({ code: "invalid_value", values: ["loop/
|
|
108079
|
+
if (__o_263["type"] !== "loop/inspect/response") {
|
|
108080
|
+
_e.push({ code: "invalid_value", values: ["loop/inspect/response"], input: __o_263["type"], path: ["message"].concat("type") });
|
|
107832
108081
|
}
|
|
107833
108082
|
}
|
|
107834
108083
|
break;
|
|
107835
|
-
case "loop/
|
|
108084
|
+
case "loop/logs/response":
|
|
107836
108085
|
if (typeof __du_9 !== "object" || __du_9 === null || Array.isArray(__du_9)) {
|
|
107837
108086
|
_e.push({ code: "invalid_type", expected: "object", input: __du_9, path: ["message"] });
|
|
107838
108087
|
}
|
|
107839
108088
|
else {
|
|
107840
108089
|
var __o_264 = __du_9;
|
|
107841
|
-
if (__o_264["type"] !== "loop/
|
|
107842
|
-
_e.push({ code: "invalid_value", values: ["loop/
|
|
108090
|
+
if (__o_264["type"] !== "loop/logs/response") {
|
|
108091
|
+
_e.push({ code: "invalid_value", values: ["loop/logs/response"], input: __o_264["type"], path: ["message"].concat("type") });
|
|
107843
108092
|
}
|
|
107844
108093
|
}
|
|
107845
108094
|
break;
|
|
107846
|
-
case "
|
|
108095
|
+
case "loop/stop/response":
|
|
107847
108096
|
if (typeof __du_9 !== "object" || __du_9 === null || Array.isArray(__du_9)) {
|
|
107848
108097
|
_e.push({ code: "invalid_type", expected: "object", input: __du_9, path: ["message"] });
|
|
107849
108098
|
}
|
|
107850
108099
|
else {
|
|
107851
108100
|
var __o_265 = __du_9;
|
|
107852
|
-
if (__o_265["type"] !== "
|
|
107853
|
-
_e.push({ code: "invalid_value", values: ["
|
|
108101
|
+
if (__o_265["type"] !== "loop/stop/response") {
|
|
108102
|
+
_e.push({ code: "invalid_value", values: ["loop/stop/response"], input: __o_265["type"], path: ["message"].concat("type") });
|
|
107854
108103
|
}
|
|
107855
108104
|
}
|
|
107856
108105
|
break;
|
|
107857
|
-
case "daemon.update.
|
|
108106
|
+
case "daemon.update.progress":
|
|
107858
108107
|
if (typeof __du_9 !== "object" || __du_9 === null || Array.isArray(__du_9)) {
|
|
107859
108108
|
_e.push({ code: "invalid_type", expected: "object", input: __du_9, path: ["message"] });
|
|
107860
108109
|
}
|
|
107861
108110
|
else {
|
|
107862
108111
|
var __o_266 = __du_9;
|
|
107863
|
-
if (__o_266["type"] !== "daemon.update.
|
|
107864
|
-
_e.push({ code: "invalid_value", values: ["daemon.update.
|
|
108112
|
+
if (__o_266["type"] !== "daemon.update.progress") {
|
|
108113
|
+
_e.push({ code: "invalid_value", values: ["daemon.update.progress"], input: __o_266["type"], path: ["message"].concat("type") });
|
|
107865
108114
|
}
|
|
107866
108115
|
}
|
|
107867
108116
|
break;
|
|
107868
|
-
case "daemon.
|
|
108117
|
+
case "daemon.update.response":
|
|
107869
108118
|
if (typeof __du_9 !== "object" || __du_9 === null || Array.isArray(__du_9)) {
|
|
107870
108119
|
_e.push({ code: "invalid_type", expected: "object", input: __du_9, path: ["message"] });
|
|
107871
108120
|
}
|
|
107872
108121
|
else {
|
|
107873
108122
|
var __o_267 = __du_9;
|
|
107874
|
-
if (__o_267["type"] !== "daemon.
|
|
107875
|
-
_e.push({ code: "invalid_value", values: ["daemon.
|
|
108123
|
+
if (__o_267["type"] !== "daemon.update.response") {
|
|
108124
|
+
_e.push({ code: "invalid_value", values: ["daemon.update.response"], input: __o_267["type"], path: ["message"].concat("type") });
|
|
108125
|
+
}
|
|
108126
|
+
}
|
|
108127
|
+
break;
|
|
108128
|
+
case "daemon.runtime_handoff.restart.response":
|
|
108129
|
+
if (typeof __du_9 !== "object" || __du_9 === null || Array.isArray(__du_9)) {
|
|
108130
|
+
_e.push({ code: "invalid_type", expected: "object", input: __du_9, path: ["message"] });
|
|
108131
|
+
}
|
|
108132
|
+
else {
|
|
108133
|
+
var __o_268 = __du_9;
|
|
108134
|
+
if (__o_268["type"] !== "daemon.runtime_handoff.restart.response") {
|
|
108135
|
+
_e.push({ code: "invalid_value", values: ["daemon.runtime_handoff.restart.response"], input: __o_268["type"], path: ["message"].concat("type") });
|
|
107876
108136
|
}
|
|
107877
108137
|
}
|
|
107878
108138
|
break;
|
|
107879
|
-
default: _e.push({ code: "invalid_union", errors: [], note: "No matching discriminator", discriminator: "type", options: ["daemon.auth.status.response", "daemon.auth.password.set.response", "daemon.auth.device.revoke.response", "daemon.auth.device.subscribe.response", "daemon.auth.device.credential", "daemon.auth.session.disconnect.response", "daemon.auth.status.subscribe.response", "daemon.auth.status.changed", "fleet.status.response", "fleet.credential.issue.response", "fleet.join.response", "fleet.leave.response", "fleet.member.remove.response", "fleet.dispatch.set.response", "fleet.projects.list.response", "fleet.workspace.resolve.response", "hosts.link.open.response", "hosts.route.open.response", "hosts.route.frame", "hosts.route.closed", "browser.host.register.response", "browser.list_downloads.response", "plugin.browser.execute.response", "plugin.browser.automation.execute.response", "browser.plugin_host.execute.request", "subscription.release.response", "session.events.set_subscription.response", "hub.execution.agent.create.response", "hub.execution.agent.validate.response", "hub.execution.control.response", "hub.execution.agent.update", "hub.execution.agent.stream", "browser.automation.execute.request", "plugin.catalog.get.response", "plugin.list.response", "plugin.logs.get.response", "plugin.directory.install.response", "plugin.directory.inspect.response", "plugin.source.install.response", "plugin.source.status.response", "plugin.source.update.response", "plugin.source.update.preview.response", "plugin.source.update.apply.response", "plugin.reload.response", "plugin.enable.response", "plugin.disable.response", "plugin.remove.response", "plugin.rpc.invoke.response", "agent.timeline.append.response", "agent.skills.get_status.response", "agent.skills.reconcile.response", "agent.skills.uninstall.response", "agent.skills.save_selection.response", "agent.skills.import_legacy_selection.response", "activity_log", "assistant_chunk", "audio_output", "transcription_result", "voice_input_state", "dictation_stream_ack", "dictation_stream_finish_accepted", "dictation_stream_partial", "dictation_stream_final", "dictation_stream_error", "status", "pong", "push.unregister.response", "rpc_error", "artifact", "agent_update", "workspace_update", "workspace.label.list.response", "workspace.label.update", "workspace.label.assignment.set.response", "workspace.label.update.response", "workspace.label.delete.response", "workspace.label.delete.inspect.response", "project.update", "project.list.response", "script_status_update", "workspace_setup_progress", "workspace_setup_status_response", "workspace.setup.subscribe.response", "workspace.setup.run.response", "agent_stream", "agent_status", "fetch_agents_response", "fetch_agent_history_response", "fetch_recent_provider_sessions_response", "fetch_workspaces_response", "project.add.response", "project.create_directory.response", "open_project_response", "workspace.github.search_repositories.response", "project.github.clone.response", "start_workspace_script_response", "workspace.script.list.response", "workspace.script.start.response", "workspace.script.stop.response", "list_available_editors_response", "open_in_editor_response", "archive_workspace_response", "fetch_agent_response", "fetch_agent_timeline_response", "agent.timeline.replacement", "agent.history.search_conversations.response", "agent.timeline.search.response", "agent.timeline.list_prompts.response", "agent.shells.list.response", "agent.shells.stop.response", "agent.provider_subagents.list.response", "agent.provider_subagents.timeline.get.response", "agent.provider_subagents.update", "agent.timeline.set_subscription.response", "agent_attention_required", "agent.fork_context.response", "cancel_agent_response", "clear_agent_attention_response", "workspace.create.response", "agent.create.response", "workspace.create.update", "agent.create.update", "creation.subscribe.response", "workspace.clear_attention.response", "workspace.mark_unread.response", "send_agent_message_response", "set_voice_mode_response", "daemon.get_status.response", "daemon.get_pairing_offer.response", "daemon.config.reload.response", "hub.management.daemon.connect.response", "hub.management.daemon.get_status.response", "hub.management.daemon.disconnect.response", "hub.management.daemon.permissions.update.response", "diagnostics.response", "get_daemon_config_response", "set_daemon_config_response", "read_project_config_response", "write_project_config_response", "set_agent_mode_response", "set_agent_model_response", "set_agent_thinking_response", "set_agent_feature_response", "agent.config.apply.response", "agent.detach.response", "agent.rewind.response", "update_agent_response", "project.rename.response", "project.icon.set.response", "project.remove.response", "workspace.project.merge.response", "workspace.title.set.response", "workspace.pin.set.response", "workspace.recovery.inspect.response", "workspace.recovery.restore.response", "wait_for_finish_response", "agent_permission_request", "agent_permission_resolved", "agent_deleted", "agent_archived", "close_items_response", "checkout_status_response", "checkout_status_update", "checkout.diff.get.response", "subscribe_checkout_diff_response", "checkout_diff_update", "checkout_commit_response", "checkout_merge_response", "checkout_merge_from_base_response", "checkout_pull_response", "checkout_push_response", "checkout.refresh.response", "checkout.discard_changes.response", "checkout_pr_create_response", "checkout_pr_merge_response", "checkout.forge.set_auto_merge.response", "checkout.github.set_auto_merge.response", "checkout.commits.list.response", "checkout.commits.file_diff.response", "checkout.forge.get_check_details.response", "checkout.github.get_check_details.response", "checkout_pr_status_response", "pull_request_timeline_response", "checkout_switch_branch_response", "checkout.rename_branch.response", "stash_save_response", "stash_pop_response", "stash_list_response", "validate_branch_response", "branch_suggestions_response", "forge.search.response", "github_search_response", "directory_suggestions_response", "mateo_worktree_list_response", "mateo_worktree_archive_response", "create_mateo_worktree_response", "file_explorer_response", "fs.file.subscribe.response", "fs.file.unsubscribe.response", "fs.file.write.response", "fs.entry.create.response", "fs.entry.rename.response", "fs.entry.duplicate.response", "fs.entry.delete.response", "fs.file.update", "project_icon_response", "project.icon.get.response", "workspace.file.preview.open.response", "workspace.file.preview.read.response", "workspace.file.preview.close.response", "file_download_token_response", "file.upload.response", "list_provider_models_response", "list_provider_modes_response", "list_provider_features_response", "list_available_providers_response", "get_providers_snapshot_response", "providers_snapshot_update", "refresh_providers_snapshot_response", "provider_diagnostic_response", "provider.usage.list.response", "usage.list_reports.update", "usage.list_reports.response", "list_commands_response", "list_terminals_response", "terminals_changed", "create_terminal_response", "terminal.rename.response", "terminal.count_busy.response", "subscribe_terminal_response", "kill_terminal_response", "capture_terminal_response", "terminal_stream_exit", "terminal_attention_required", "chat/create/response", "chat/list/response", "chat/inspect/response", "chat/delete/response", "chat/post/response", "chat/read/response", "chat/wait/response", "schedule/create/response", "schedule/list/response", "schedule/inspect/response", "schedule/logs/response", "schedule/pause/response", "schedule/resume/response", "schedule/delete/response", "schedule/run-once/response", "schedule/update/response", "loop/run/response", "loop/list/response", "loop/inspect/response", "loop/logs/response", "loop/stop/response", "daemon.update.progress", "daemon.update.response", "daemon.runtime_handoff.restart.response"], input: __o_8["message"], path: ["message"].concat("type") });
|
|
108139
|
+
default: _e.push({ code: "invalid_union", errors: [], note: "No matching discriminator", discriminator: "type", options: ["daemon.auth.status.response", "daemon.auth.password.set.response", "daemon.auth.device.revoke.response", "daemon.auth.device.subscribe.response", "daemon.auth.device.credential", "daemon.auth.session.disconnect.response", "daemon.auth.status.subscribe.response", "daemon.auth.status.changed", "fleet.status.response", "fleet.credential.issue.response", "fleet.join.response", "fleet.leave.response", "fleet.member.remove.response", "fleet.dispatch.set.response", "fleet.projects.list.response", "fleet.workspace.resolve.response", "hosts.link.open.response", "hosts.route.open.response", "hosts.route.frame", "hosts.route.closed", "browser.host.register.response", "browser.list_downloads.response", "plugin.browser.execute.response", "plugin.browser.automation.execute.response", "browser.plugin_host.execute.request", "subscription.release.response", "session.events.set_subscription.response", "hub.execution.agent.create.response", "hub.execution.agent.validate.response", "hub.execution.control.response", "hub.execution.agent.update", "hub.execution.agent.stream", "browser.automation.execute.request", "plugin.catalog.get.response", "plugin.list.response", "plugin.logs.get.response", "plugin.directory.install.response", "plugin.directory.inspect.response", "plugin.source.install.response", "plugin.source.status.response", "plugin.source.update.response", "plugin.source.update.preview.response", "plugin.source.update.apply.response", "plugin.reload.response", "plugin.enable.response", "plugin.disable.response", "plugin.remove.response", "plugin.rpc.invoke.response", "agent.timeline.append.response", "agent.skills.get_status.response", "agent.skills.reconcile.response", "agent.skills.uninstall.response", "agent.skills.save_selection.response", "agent.skills.import_legacy_selection.response", "activity_log", "assistant_chunk", "audio_output", "transcription_result", "voice_input_state", "dictation_stream_ack", "dictation_stream_finish_accepted", "dictation_stream_partial", "dictation_stream_final", "dictation_stream_error", "status", "pong", "push.unregister.response", "rpc_error", "artifact", "agent_update", "workspace_update", "workspace.label.list.response", "workspace.label.update", "workspace.label.assignment.set.response", "workspace.label.update.response", "workspace.label.delete.response", "workspace.label.delete.inspect.response", "project.update", "project.list.response", "script_status_update", "workspace_setup_progress", "workspace_setup_status_response", "workspace.setup.subscribe.response", "workspace.setup.run.response", "agent_stream", "agent_status", "fetch_agents_response", "fetch_agent_history_response", "fetch_recent_provider_sessions_response", "fetch_workspaces_response", "project.add.response", "project.create_directory.response", "open_project_response", "workspace.github.search_repositories.response", "project.github.clone.response", "start_workspace_script_response", "workspace.script.list.response", "workspace.script.start.response", "workspace.script.stop.response", "list_available_editors_response", "open_in_editor_response", "archive_workspace_response", "fetch_agent_response", "fetch_agent_timeline_response", "agent.timeline.replacement", "agent.history.search_conversations.response", "agent.timeline.search.response", "agent.timeline.list_prompts.response", "agent.shells.list.response", "agent.shells.stop.response", "agent.provider_subagents.list.response", "agent.provider_subagents.timeline.get.response", "agent.provider_subagents.update", "agent.timeline.set_subscription.response", "agent_attention_required", "agent.fork_context.response", "cancel_agent_response", "clear_agent_attention_response", "workspace.create.response", "agent.create.response", "workspace.create.update", "agent.create.update", "creation.subscribe.response", "workspace.clear_attention.response", "workspace.mark_unread.response", "send_agent_message_response", "set_voice_mode_response", "daemon.get_status.response", "daemon.get_pairing_offer.response", "daemon.config.reload.response", "hub.management.daemon.connect.response", "hub.management.daemon.get_status.response", "hub.management.daemon.disconnect.response", "hub.management.daemon.permissions.update.response", "diagnostics.response", "get_daemon_config_response", "set_daemon_config_response", "read_project_config_response", "write_project_config_response", "set_agent_mode_response", "set_agent_model_response", "set_agent_thinking_response", "set_agent_feature_response", "agent.config.apply.response", "agent.detach.response", "agent.rewind.response", "update_agent_response", "project.rename.response", "project.icon.set.response", "project.remove.response", "workspace.project.merge.response", "workspace.title.set.response", "workspace.pin.set.response", "workspace.recovery.inspect.response", "workspace.recovery.restore.response", "wait_for_finish_response", "agent_permission_request", "agent_permission_resolved", "agent_deleted", "agent_archived", "close_items_response", "checkout_status_response", "checkout_status_update", "checkout.diff.get.response", "subscribe_checkout_diff_response", "checkout_diff_update", "checkout_commit_response", "checkout_merge_response", "checkout_merge_from_base_response", "checkout_pull_response", "checkout_push_response", "checkout.refresh.response", "checkout.discard_changes.response", "checkout_pr_create_response", "checkout_pr_merge_response", "checkout.forge.set_auto_merge.response", "checkout.github.set_auto_merge.response", "checkout.commits.list.response", "checkout.commits.file_diff.response", "checkout.forge.get_check_details.response", "checkout.github.get_check_details.response", "checkout_pr_status_response", "pull_request_timeline_response", "checkout_switch_branch_response", "checkout.rename_branch.response", "stash_save_response", "stash_pop_response", "stash_list_response", "validate_branch_response", "branch_suggestions_response", "forge.search.response", "github_search_response", "directory_suggestions_response", "mateo_worktree_list_response", "mateo_worktree_archive_response", "create_mateo_worktree_response", "file_explorer_response", "fs.file.subscribe.response", "fs.file.unsubscribe.response", "fs.file.write.response", "fs.entry.create.response", "fs.entry.rename.response", "fs.entry.duplicate.response", "fs.entry.delete.response", "fs.file.update", "project_icon_response", "project.icon.get.response", "workspace.file.preview.open.response", "workspace.file.preview.read.response", "workspace.file.preview.close.response", "file_download_token_response", "file.upload.response", "list_provider_models_response", "list_provider_modes_response", "list_provider_features_response", "list_available_providers_response", "get_providers_snapshot_response", "providers_snapshot_update", "refresh_providers_snapshot_response", "provider_diagnostic_response", "provider.usage.list.response", "usage.list_reports.update", "usage.list_reports.response", "list_commands_response", "list_terminals_response", "terminals_changed", "create_terminal_response", "terminal.rename.response", "terminal.count_busy.response", "subscribe_terminal_response", "kill_terminal_response", "capture_terminal_response", "terminal_stream_exit", "terminal_attention_required", "plugin.notification", "chat/create/response", "chat/list/response", "chat/inspect/response", "chat/delete/response", "chat/post/response", "chat/read/response", "chat/wait/response", "schedule/create/response", "schedule/list/response", "schedule/inspect/response", "schedule/logs/response", "schedule/pause/response", "schedule/resume/response", "schedule/delete/response", "schedule/run-once/response", "schedule/update/response", "loop/run/response", "loop/list/response", "loop/inspect/response", "loop/logs/response", "loop/stop/response", "daemon.update.progress", "daemon.update.response", "daemon.runtime_handoff.restart.response"], input: __o_8["message"], path: ["message"].concat("type") });
|
|
107880
108140
|
}
|
|
107881
108141
|
}
|
|
107882
108142
|
}
|
|
@@ -107886,20 +108146,20 @@ export const WSOutboundEnvelope = /* @__PURE__ */ (() => {
|
|
|
107886
108146
|
_e.push({ code: "invalid_type", expected: "object", input: __du_6, path: [] });
|
|
107887
108147
|
}
|
|
107888
108148
|
else {
|
|
107889
|
-
var
|
|
107890
|
-
if (
|
|
107891
|
-
_e.push({ code: "invalid_value", values: ["hello.rejected"], input:
|
|
108149
|
+
var __o_269 = __du_6;
|
|
108150
|
+
if (__o_269["type"] !== "hello.rejected") {
|
|
108151
|
+
_e.push({ code: "invalid_value", values: ["hello.rejected"], input: __o_269["type"], path: ["type"] });
|
|
107892
108152
|
}
|
|
107893
|
-
if (
|
|
107894
|
-
_e.push({ code: "invalid_value", values: ["password_required", "incorrect_password", "incompatible_protocol"], input:
|
|
108153
|
+
if (__o_269["reason"] !== "password_required" && __o_269["reason"] !== "incorrect_password" && __o_269["reason"] !== "incompatible_protocol") {
|
|
108154
|
+
_e.push({ code: "invalid_value", values: ["password_required", "incorrect_password", "incompatible_protocol"], input: __o_269["reason"], path: ["reason"] });
|
|
107895
108155
|
}
|
|
107896
|
-
if (!Array.isArray(
|
|
107897
|
-
_e.push({ code: "invalid_type", expected: "array", input:
|
|
108156
|
+
if (!Array.isArray(__o_269["accepts"])) {
|
|
108157
|
+
_e.push({ code: "invalid_type", expected: "array", input: __o_269["accepts"], path: ["accepts"] });
|
|
107898
108158
|
}
|
|
107899
108159
|
else {
|
|
107900
|
-
for (var
|
|
107901
|
-
if (
|
|
107902
|
-
_e.push({ code: "invalid_value", values: ["password"], input:
|
|
108160
|
+
for (var __i_270 = 0; __i_270 < __o_269["accepts"].length; __i_270++) {
|
|
108161
|
+
if (__o_269["accepts"][__i_270] !== "password") {
|
|
108162
|
+
_e.push({ code: "invalid_value", values: ["password"], input: __o_269["accepts"][__i_270], path: ["accepts"].concat(__i_270) });
|
|
107903
108163
|
}
|
|
107904
108164
|
}
|
|
107905
108165
|
}
|
|
@@ -108147,29 +108407,30 @@ export const SessionOutboundMessageValidators = {
|
|
|
108147
108407
|
"capture_terminal_response": SessionOutboundMessage231,
|
|
108148
108408
|
"terminal_stream_exit": SessionOutboundMessage232,
|
|
108149
108409
|
"terminal_attention_required": SessionOutboundMessage233,
|
|
108150
|
-
"
|
|
108151
|
-
"chat/
|
|
108152
|
-
"chat/
|
|
108153
|
-
"chat/
|
|
108154
|
-
"chat/
|
|
108155
|
-
"chat/
|
|
108156
|
-
"chat/
|
|
108157
|
-
"
|
|
108158
|
-
"schedule/
|
|
108159
|
-
"schedule/
|
|
108160
|
-
"schedule/
|
|
108161
|
-
"schedule/
|
|
108162
|
-
"schedule/
|
|
108163
|
-
"schedule/
|
|
108164
|
-
"schedule/
|
|
108165
|
-
"schedule/
|
|
108166
|
-
"
|
|
108167
|
-
"loop/
|
|
108168
|
-
"loop/
|
|
108169
|
-
"loop/
|
|
108170
|
-
"loop/
|
|
108171
|
-
"
|
|
108172
|
-
"daemon.update.
|
|
108173
|
-
"daemon.
|
|
108410
|
+
"plugin.notification": SessionOutboundMessage234,
|
|
108411
|
+
"chat/create/response": SessionOutboundMessage235,
|
|
108412
|
+
"chat/list/response": SessionOutboundMessage236,
|
|
108413
|
+
"chat/inspect/response": SessionOutboundMessage237,
|
|
108414
|
+
"chat/delete/response": SessionOutboundMessage238,
|
|
108415
|
+
"chat/post/response": SessionOutboundMessage239,
|
|
108416
|
+
"chat/read/response": SessionOutboundMessage240,
|
|
108417
|
+
"chat/wait/response": SessionOutboundMessage241,
|
|
108418
|
+
"schedule/create/response": SessionOutboundMessage242,
|
|
108419
|
+
"schedule/list/response": SessionOutboundMessage243,
|
|
108420
|
+
"schedule/inspect/response": SessionOutboundMessage244,
|
|
108421
|
+
"schedule/logs/response": SessionOutboundMessage245,
|
|
108422
|
+
"schedule/pause/response": SessionOutboundMessage246,
|
|
108423
|
+
"schedule/resume/response": SessionOutboundMessage247,
|
|
108424
|
+
"schedule/delete/response": SessionOutboundMessage248,
|
|
108425
|
+
"schedule/run-once/response": SessionOutboundMessage249,
|
|
108426
|
+
"schedule/update/response": SessionOutboundMessage250,
|
|
108427
|
+
"loop/run/response": SessionOutboundMessage251,
|
|
108428
|
+
"loop/list/response": SessionOutboundMessage252,
|
|
108429
|
+
"loop/inspect/response": SessionOutboundMessage253,
|
|
108430
|
+
"loop/logs/response": SessionOutboundMessage254,
|
|
108431
|
+
"loop/stop/response": SessionOutboundMessage255,
|
|
108432
|
+
"daemon.update.progress": SessionOutboundMessage256,
|
|
108433
|
+
"daemon.update.response": SessionOutboundMessage257,
|
|
108434
|
+
"daemon.runtime_handoff.restart.response": SessionOutboundMessage258,
|
|
108174
108435
|
};
|
|
108175
108436
|
//# sourceMappingURL=ws-outbound.aot.js.map
|