@getpaseo/protocol 0.2.0-beta.2 → 0.2.0-beta.4
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/agent-attention-notification.d.ts +2 -0
- package/dist/agent-attention-notification.js +1 -0
- package/dist/agent-deep-link.d.ts +8 -0
- package/dist/agent-deep-link.js +49 -0
- package/dist/generated/validation/ws-outbound.aot.js +21 -1
- package/dist/messages.d.ts +30 -8
- package/dist/messages.js +6 -0
- package/dist/provider-manifest.js +7 -0
- package/dist/validation/ws-outbound-schema-metadata.d.ts +6 -2
- package/package.json +1 -1
|
@@ -2,6 +2,7 @@ export type AgentAttentionReason = "finished" | "error" | "permission";
|
|
|
2
2
|
export interface AgentAttentionNotificationData {
|
|
3
3
|
[key: string]: unknown;
|
|
4
4
|
serverId: string;
|
|
5
|
+
workspaceId?: string;
|
|
5
6
|
agentId: string;
|
|
6
7
|
reason: AgentAttentionReason;
|
|
7
8
|
}
|
|
@@ -13,6 +14,7 @@ export interface AgentAttentionNotificationPayload {
|
|
|
13
14
|
interface BuildAgentAttentionNotificationPayloadInput {
|
|
14
15
|
reason: AgentAttentionReason;
|
|
15
16
|
serverId: string;
|
|
17
|
+
workspaceId: string;
|
|
16
18
|
agentId: string;
|
|
17
19
|
assistantMessage?: string | null;
|
|
18
20
|
permissionRequest?: NotificationPermissionRequest | null;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export interface AgentDeepLinkTarget {
|
|
2
|
+
serverId: string;
|
|
3
|
+
agentId: string;
|
|
4
|
+
}
|
|
5
|
+
export declare function buildAgentDeepLinkRoute(target: AgentDeepLinkTarget): `/h/${string}/agent/${string}`;
|
|
6
|
+
export declare function buildAgentDeepLink(target: AgentDeepLinkTarget): string;
|
|
7
|
+
export declare function parseAgentDeepLink(input: string): AgentDeepLinkTarget | null;
|
|
8
|
+
//# sourceMappingURL=agent-deep-link.d.ts.map
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
function normalizeSegment(value) {
|
|
2
|
+
return value.trim();
|
|
3
|
+
}
|
|
4
|
+
function normalizeAgentDeepLinkTarget(target) {
|
|
5
|
+
const serverId = normalizeSegment(target.serverId);
|
|
6
|
+
const agentId = normalizeSegment(target.agentId);
|
|
7
|
+
if (!serverId || !agentId) {
|
|
8
|
+
throw new Error("Agent deep links require a server ID and agent ID.");
|
|
9
|
+
}
|
|
10
|
+
return { serverId, agentId };
|
|
11
|
+
}
|
|
12
|
+
export function buildAgentDeepLinkRoute(target) {
|
|
13
|
+
const { serverId, agentId } = normalizeAgentDeepLinkTarget(target);
|
|
14
|
+
return `/h/${encodeURIComponent(serverId)}/agent/${encodeURIComponent(agentId)}`;
|
|
15
|
+
}
|
|
16
|
+
export function buildAgentDeepLink(target) {
|
|
17
|
+
return `paseo:/${buildAgentDeepLinkRoute(target)}`;
|
|
18
|
+
}
|
|
19
|
+
export function parseAgentDeepLink(input) {
|
|
20
|
+
let url;
|
|
21
|
+
try {
|
|
22
|
+
url = new URL(input);
|
|
23
|
+
}
|
|
24
|
+
catch {
|
|
25
|
+
return null;
|
|
26
|
+
}
|
|
27
|
+
if (url.protocol !== "paseo:" ||
|
|
28
|
+
url.hostname !== "h" ||
|
|
29
|
+
url.username ||
|
|
30
|
+
url.password ||
|
|
31
|
+
url.port ||
|
|
32
|
+
url.search ||
|
|
33
|
+
url.hash) {
|
|
34
|
+
return null;
|
|
35
|
+
}
|
|
36
|
+
const segments = url.pathname.split("/").filter(Boolean);
|
|
37
|
+
if (segments.length !== 3 || segments[1] !== "agent") {
|
|
38
|
+
return null;
|
|
39
|
+
}
|
|
40
|
+
try {
|
|
41
|
+
const serverId = normalizeSegment(decodeURIComponent(segments[0] ?? ""));
|
|
42
|
+
const agentId = normalizeSegment(decodeURIComponent(segments[2] ?? ""));
|
|
43
|
+
return serverId && agentId ? { serverId, agentId } : null;
|
|
44
|
+
}
|
|
45
|
+
catch {
|
|
46
|
+
return null;
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
//# sourceMappingURL=agent-deep-link.js.map
|
|
@@ -606,7 +606,7 @@ export const WSOutboundMessageSchema = /* @__PURE__ */ (() => {
|
|
|
606
606
|
case "timeline": return typeof __dx_97 === "object" && __dx_97 !== null && !Array.isArray(__dx_97) && __dx_97["type"] === "timeline" && typeof __dx_97["provider"] === "string" && ((typeof __dx_97["item"] === "object" && __dx_97["item"] !== null && !Array.isArray(__dx_97["item"]) && __dx_97["item"]["type"] === "user_message" && typeof __dx_97["item"]["text"] === "string" && (__dx_97["item"]["messageId"] === undefined || (typeof __dx_97["item"]["messageId"] === "string")) && (__dx_97["item"]["clientMessageId"] === undefined || (typeof __dx_97["item"]["clientMessageId"] === "string"))) || (typeof __dx_97["item"] === "object" && __dx_97["item"] !== null && !Array.isArray(__dx_97["item"]) && __dx_97["item"]["type"] === "assistant_message" && typeof __dx_97["item"]["text"] === "string" && (__dx_97["item"]["messageId"] === undefined || (typeof __dx_97["item"]["messageId"] === "string"))) || (typeof __dx_97["item"] === "object" && __dx_97["item"] !== null && !Array.isArray(__dx_97["item"]) && __dx_97["item"]["type"] === "reasoning" && typeof __dx_97["item"]["text"] === "string") || (typeof __dx_97["item"] === "object" && __dx_97["item"] !== null && !Array.isArray(__dx_97["item"]) && __du_98(__dx_97["item"])) || (typeof __dx_97["item"] === "object" && __dx_97["item"] !== null && !Array.isArray(__dx_97["item"]) && __dx_97["item"]["type"] === "todo" && Array.isArray(__dx_97["item"]["items"]) && __af_174(__dx_97["item"]["items"])) || (typeof __dx_97["item"] === "object" && __dx_97["item"] !== null && !Array.isArray(__dx_97["item"]) && __dx_97["item"]["type"] === "error" && typeof __dx_97["item"]["message"] === "string") || (typeof __dx_97["item"] === "object" && __dx_97["item"] !== null && !Array.isArray(__dx_97["item"]) && __dx_97["item"]["type"] === "compaction" && (__dx_97["item"]["status"] === "loading" || __dx_97["item"]["status"] === "completed") && (__dx_97["item"]["trigger"] === undefined || ((__dx_97["item"]["trigger"] === "auto" || __dx_97["item"]["trigger"] === "manual"))) && (__dx_97["item"]["preTokens"] === undefined || (typeof __dx_97["item"]["preTokens"] === "number" && !Number.isNaN(__dx_97["item"]["preTokens"]) && Number.isFinite(__dx_97["item"]["preTokens"])))));
|
|
607
607
|
case "permission_requested": return typeof __dx_97 === "object" && __dx_97 !== null && !Array.isArray(__dx_97) && __dx_97["type"] === "permission_requested" && typeof __dx_97["provider"] === "string" && typeof __dx_97["request"] === "object" && __dx_97["request"] !== null && !Array.isArray(__dx_97["request"]) && typeof __dx_97["request"]["id"] === "string" && typeof __dx_97["request"]["provider"] === "string" && typeof __dx_97["request"]["name"] === "string" && __enumSet_175.has(__dx_97["request"]["kind"]) && (__dx_97["request"]["title"] === undefined || (typeof __dx_97["request"]["title"] === "string")) && (__dx_97["request"]["description"] === undefined || (typeof __dx_97["request"]["description"] === "string")) && (__dx_97["request"]["input"] === undefined || (typeof __dx_97["request"]["input"] === "object" && __dx_97["request"]["input"] !== null && !Array.isArray(__dx_97["request"]["input"]) && __rf_177(__dx_97["request"]["input"]))) && (__dx_97["request"]["detail"] === undefined || (typeof __dx_97["request"]["detail"] === "object" && __dx_97["request"]["detail"] !== null && !Array.isArray(__dx_97["request"]["detail"]) && __du_178(__dx_97["request"]["detail"]))) && (__dx_97["request"]["suggestions"] === undefined || (Array.isArray(__dx_97["request"]["suggestions"]) && __af_197(__dx_97["request"]["suggestions"]))) && (__dx_97["request"]["actions"] === undefined || (Array.isArray(__dx_97["request"]["actions"]) && __af_199(__dx_97["request"]["actions"]))) && (__dx_97["request"]["metadata"] === undefined || (typeof __dx_97["request"]["metadata"] === "object" && __dx_97["request"]["metadata"] !== null && !Array.isArray(__dx_97["request"]["metadata"]) && __rf_201(__dx_97["request"]["metadata"])));
|
|
608
608
|
case "permission_resolved": return typeof __dx_97 === "object" && __dx_97 !== null && !Array.isArray(__dx_97) && __dx_97["type"] === "permission_resolved" && typeof __dx_97["provider"] === "string" && typeof __dx_97["requestId"] === "string" && typeof __dx_97["resolution"] === "object" && __dx_97["resolution"] !== null && !Array.isArray(__dx_97["resolution"]) && __du_202(__dx_97["resolution"]);
|
|
609
|
-
case "attention_required": return typeof __dx_97 === "object" && __dx_97 !== null && !Array.isArray(__dx_97) && __dx_97["type"] === "attention_required" && typeof __dx_97["provider"] === "string" && (__dx_97["reason"] === "finished" || __dx_97["reason"] === "error" || __dx_97["reason"] === "permission") && typeof __dx_97["timestamp"] === "string" && typeof __dx_97["shouldNotify"] === "boolean" && (__dx_97["notification"] === undefined || (typeof __dx_97["notification"] === "object" && __dx_97["notification"] !== null && !Array.isArray(__dx_97["notification"]) && typeof __dx_97["notification"]["title"] === "string" && typeof __dx_97["notification"]["body"] === "string" && typeof __dx_97["notification"]["data"] === "object" && __dx_97["notification"]["data"] !== null && !Array.isArray(__dx_97["notification"]["data"]) && typeof __dx_97["notification"]["data"]["serverId"] === "string" && typeof __dx_97["notification"]["data"]["agentId"] === "string" && (__dx_97["notification"]["data"]["reason"] === "finished" || __dx_97["notification"]["data"]["reason"] === "error" || __dx_97["notification"]["data"]["reason"] === "permission")));
|
|
609
|
+
case "attention_required": return typeof __dx_97 === "object" && __dx_97 !== null && !Array.isArray(__dx_97) && __dx_97["type"] === "attention_required" && typeof __dx_97["provider"] === "string" && (__dx_97["reason"] === "finished" || __dx_97["reason"] === "error" || __dx_97["reason"] === "permission") && typeof __dx_97["timestamp"] === "string" && typeof __dx_97["shouldNotify"] === "boolean" && (__dx_97["notification"] === undefined || (typeof __dx_97["notification"] === "object" && __dx_97["notification"] !== null && !Array.isArray(__dx_97["notification"]) && typeof __dx_97["notification"]["title"] === "string" && typeof __dx_97["notification"]["body"] === "string" && typeof __dx_97["notification"]["data"] === "object" && __dx_97["notification"]["data"] !== null && !Array.isArray(__dx_97["notification"]["data"]) && typeof __dx_97["notification"]["data"]["serverId"] === "string" && (__dx_97["notification"]["data"]["workspaceId"] === undefined || (typeof __dx_97["notification"]["data"]["workspaceId"] === "string")) && typeof __dx_97["notification"]["data"]["agentId"] === "string" && (__dx_97["notification"]["data"]["reason"] === "finished" || __dx_97["notification"]["data"]["reason"] === "error" || __dx_97["notification"]["data"]["reason"] === "permission")));
|
|
610
610
|
default: return false;
|
|
611
611
|
} }
|
|
612
612
|
var __set_enum_229 = new Set(["initializing", "idle", "running", "error", "closed"]);
|
|
@@ -8900,6 +8900,11 @@ export const WSOutboundMessageSchema = /* @__PURE__ */ (() => {
|
|
|
8900
8900
|
if (typeof __o_803["serverId"] !== "string") {
|
|
8901
8901
|
_e.push({ code: "invalid_type", expected: "string", input: __o_803["serverId"], path: ["message"].concat("payload").concat("event").concat("notification").concat("data").concat("serverId") });
|
|
8902
8902
|
}
|
|
8903
|
+
if (__o_803["workspaceId"] !== undefined) {
|
|
8904
|
+
if (typeof __o_803["workspaceId"] !== "string") {
|
|
8905
|
+
_e.push({ code: "invalid_type", expected: "string", input: __o_803["workspaceId"], path: ["message"].concat("payload").concat("event").concat("notification").concat("data").concat("workspaceId") });
|
|
8906
|
+
}
|
|
8907
|
+
}
|
|
8903
8908
|
if (typeof __o_803["agentId"] !== "string") {
|
|
8904
8909
|
_e.push({ code: "invalid_type", expected: "string", input: __o_803["agentId"], path: ["message"].concat("payload").concat("event").concat("notification").concat("data").concat("agentId") });
|
|
8905
8910
|
}
|
|
@@ -18549,6 +18554,11 @@ export const WSOutboundMessageSchema = /* @__PURE__ */ (() => {
|
|
|
18549
18554
|
if (typeof __o_1454["serverId"] !== "string") {
|
|
18550
18555
|
_e.push({ code: "invalid_type", expected: "string", input: __o_1454["serverId"], path: ["message"].concat("payload").concat("event").concat("notification").concat("data").concat("serverId") });
|
|
18551
18556
|
}
|
|
18557
|
+
if (__o_1454["workspaceId"] !== undefined) {
|
|
18558
|
+
if (typeof __o_1454["workspaceId"] !== "string") {
|
|
18559
|
+
_e.push({ code: "invalid_type", expected: "string", input: __o_1454["workspaceId"], path: ["message"].concat("payload").concat("event").concat("notification").concat("data").concat("workspaceId") });
|
|
18560
|
+
}
|
|
18561
|
+
}
|
|
18552
18562
|
if (typeof __o_1454["agentId"] !== "string") {
|
|
18553
18563
|
_e.push({ code: "invalid_type", expected: "string", input: __o_1454["agentId"], path: ["message"].concat("payload").concat("event").concat("notification").concat("data").concat("agentId") });
|
|
18554
18564
|
}
|
|
@@ -40990,6 +41000,11 @@ export const WSOutboundMessageSchema = /* @__PURE__ */ (() => {
|
|
|
40990
41000
|
if (typeof __o_3031["serverId"] !== "string") {
|
|
40991
41001
|
_e.push({ code: "invalid_type", expected: "string", input: __o_3031["serverId"], path: ["message"].concat("payload").concat("notification").concat("data").concat("serverId") });
|
|
40992
41002
|
}
|
|
41003
|
+
if (__o_3031["workspaceId"] !== undefined) {
|
|
41004
|
+
if (typeof __o_3031["workspaceId"] !== "string") {
|
|
41005
|
+
_e.push({ code: "invalid_type", expected: "string", input: __o_3031["workspaceId"], path: ["message"].concat("payload").concat("notification").concat("data").concat("workspaceId") });
|
|
41006
|
+
}
|
|
41007
|
+
}
|
|
40993
41008
|
if (typeof __o_3031["agentId"] !== "string") {
|
|
40994
41009
|
_e.push({ code: "invalid_type", expected: "string", input: __o_3031["agentId"], path: ["message"].concat("payload").concat("notification").concat("data").concat("agentId") });
|
|
40995
41010
|
}
|
|
@@ -52290,6 +52305,11 @@ export const WSOutboundMessageSchema = /* @__PURE__ */ (() => {
|
|
|
52290
52305
|
if (typeof __o_3849["isOnRemote"] !== "boolean") {
|
|
52291
52306
|
_e.push({ code: "invalid_type", expected: "boolean", input: __o_3849["isOnRemote"], path: ["message"].concat("payload").concat("commits").concat(__i_3848).concat("isOnRemote") });
|
|
52292
52307
|
}
|
|
52308
|
+
if (__o_3849["isOnBase"] !== undefined) {
|
|
52309
|
+
if (typeof __o_3849["isOnBase"] !== "boolean") {
|
|
52310
|
+
_e.push({ code: "invalid_type", expected: "boolean", input: __o_3849["isOnBase"], path: ["message"].concat("payload").concat("commits").concat(__i_3848).concat("isOnBase") });
|
|
52311
|
+
}
|
|
52312
|
+
}
|
|
52293
52313
|
if (!Array.isArray(__o_3849["files"])) {
|
|
52294
52314
|
_e.push({ code: "invalid_type", expected: "array", input: __o_3849["files"], path: ["message"].concat("payload").concat("commits").concat(__i_3848).concat("files") });
|
|
52295
52315
|
}
|
package/dist/messages.d.ts
CHANGED
|
@@ -208,6 +208,7 @@ export declare const AgentStreamEventPayloadSchema: z.ZodDiscriminatedUnion<[z.Z
|
|
|
208
208
|
body: z.ZodString;
|
|
209
209
|
data: z.ZodObject<{
|
|
210
210
|
serverId: z.ZodString;
|
|
211
|
+
workspaceId: z.ZodOptional<z.ZodString>;
|
|
211
212
|
agentId: z.ZodString;
|
|
212
213
|
reason: z.ZodEnum<{
|
|
213
214
|
finished: "finished";
|
|
@@ -1818,6 +1819,7 @@ declare const CheckoutCommitSchema: z.ZodObject<{
|
|
|
1818
1819
|
authorName: z.ZodString;
|
|
1819
1820
|
authorDate: z.ZodString;
|
|
1820
1821
|
isOnRemote: z.ZodBoolean;
|
|
1822
|
+
isOnBase: z.ZodOptional<z.ZodBoolean>;
|
|
1821
1823
|
files: z.ZodArray<z.ZodObject<{
|
|
1822
1824
|
path: z.ZodString;
|
|
1823
1825
|
additions: z.ZodNumber;
|
|
@@ -4799,6 +4801,7 @@ export declare const ServerInfoStatusPayloadSchema: z.ZodPipe<z.ZodObject<{
|
|
|
4799
4801
|
workspaceGithubRepositorySearch: z.ZodOptional<z.ZodBoolean>;
|
|
4800
4802
|
projectCreateDirectory: z.ZodOptional<z.ZodBoolean>;
|
|
4801
4803
|
commitsList: z.ZodOptional<z.ZodBoolean>;
|
|
4804
|
+
commitBaseClassification: z.ZodOptional<z.ZodBoolean>;
|
|
4802
4805
|
providerRemoval: z.ZodOptional<z.ZodBoolean>;
|
|
4803
4806
|
importSessionWorkspaceTarget: z.ZodOptional<z.ZodBoolean>;
|
|
4804
4807
|
forgeProviders: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -4854,6 +4857,7 @@ export declare const ServerInfoStatusPayloadSchema: z.ZodPipe<z.ZodObject<{
|
|
|
4854
4857
|
workspaceGithubRepositorySearch?: boolean | undefined;
|
|
4855
4858
|
projectCreateDirectory?: boolean | undefined;
|
|
4856
4859
|
commitsList?: boolean | undefined;
|
|
4860
|
+
commitBaseClassification?: boolean | undefined;
|
|
4857
4861
|
providerRemoval?: boolean | undefined;
|
|
4858
4862
|
importSessionWorkspaceTarget?: boolean | undefined;
|
|
4859
4863
|
forgeProviders?: boolean | undefined;
|
|
@@ -4910,6 +4914,7 @@ export declare const ServerInfoStatusPayloadSchema: z.ZodPipe<z.ZodObject<{
|
|
|
4910
4914
|
workspaceGithubRepositorySearch?: boolean | undefined;
|
|
4911
4915
|
projectCreateDirectory?: boolean | undefined;
|
|
4912
4916
|
commitsList?: boolean | undefined;
|
|
4917
|
+
commitBaseClassification?: boolean | undefined;
|
|
4913
4918
|
providerRemoval?: boolean | undefined;
|
|
4914
4919
|
importSessionWorkspaceTarget?: boolean | undefined;
|
|
4915
4920
|
forgeProviders?: boolean | undefined;
|
|
@@ -6209,6 +6214,7 @@ export declare const AgentStreamMessageSchema: z.ZodObject<{
|
|
|
6209
6214
|
body: z.ZodString;
|
|
6210
6215
|
data: z.ZodObject<{
|
|
6211
6216
|
serverId: z.ZodString;
|
|
6217
|
+
workspaceId: z.ZodOptional<z.ZodString>;
|
|
6212
6218
|
agentId: z.ZodString;
|
|
6213
6219
|
reason: z.ZodEnum<{
|
|
6214
6220
|
finished: "finished";
|
|
@@ -8714,6 +8720,7 @@ export declare const AgentAttentionRequiredMessageSchema: z.ZodObject<{
|
|
|
8714
8720
|
body: z.ZodString;
|
|
8715
8721
|
data: z.ZodObject<{
|
|
8716
8722
|
serverId: z.ZodString;
|
|
8723
|
+
workspaceId: z.ZodOptional<z.ZodString>;
|
|
8717
8724
|
agentId: z.ZodString;
|
|
8718
8725
|
reason: z.ZodEnum<{
|
|
8719
8726
|
finished: "finished";
|
|
@@ -10342,6 +10349,7 @@ export declare const CheckoutCommitsListResponseSchema: z.ZodObject<{
|
|
|
10342
10349
|
authorName: z.ZodString;
|
|
10343
10350
|
authorDate: z.ZodString;
|
|
10344
10351
|
isOnRemote: z.ZodBoolean;
|
|
10352
|
+
isOnBase: z.ZodOptional<z.ZodBoolean>;
|
|
10345
10353
|
files: z.ZodArray<z.ZodObject<{
|
|
10346
10354
|
path: z.ZodString;
|
|
10347
10355
|
additions: z.ZodNumber;
|
|
@@ -12105,10 +12113,10 @@ export declare const ListTerminalsResponseSchema: z.ZodObject<{
|
|
|
12105
12113
|
payload: z.ZodObject<{
|
|
12106
12114
|
cwd: z.ZodOptional<z.ZodString>;
|
|
12107
12115
|
terminals: z.ZodArray<z.ZodObject<{
|
|
12116
|
+
workspaceId: z.ZodOptional<z.ZodString>;
|
|
12108
12117
|
title: z.ZodOptional<z.ZodString>;
|
|
12109
12118
|
name: z.ZodString;
|
|
12110
12119
|
id: z.ZodString;
|
|
12111
|
-
workspaceId: z.ZodOptional<z.ZodString>;
|
|
12112
12120
|
activity: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
12113
12121
|
state: z.ZodCatch<z.ZodEnum<{
|
|
12114
12122
|
idle: "idle";
|
|
@@ -12130,10 +12138,10 @@ export declare const TerminalsChangedSchema: z.ZodObject<{
|
|
|
12130
12138
|
payload: z.ZodObject<{
|
|
12131
12139
|
cwd: z.ZodString;
|
|
12132
12140
|
terminals: z.ZodArray<z.ZodObject<{
|
|
12141
|
+
workspaceId: z.ZodOptional<z.ZodString>;
|
|
12133
12142
|
title: z.ZodOptional<z.ZodString>;
|
|
12134
12143
|
name: z.ZodString;
|
|
12135
12144
|
id: z.ZodString;
|
|
12136
|
-
workspaceId: z.ZodOptional<z.ZodString>;
|
|
12137
12145
|
activity: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
12138
12146
|
state: z.ZodCatch<z.ZodEnum<{
|
|
12139
12147
|
idle: "idle";
|
|
@@ -12453,6 +12461,7 @@ export declare const HubExecutionAgentStreamSchema: z.ZodObject<{
|
|
|
12453
12461
|
body: z.ZodString;
|
|
12454
12462
|
data: z.ZodObject<{
|
|
12455
12463
|
serverId: z.ZodString;
|
|
12464
|
+
workspaceId: z.ZodOptional<z.ZodString>;
|
|
12456
12465
|
agentId: z.ZodString;
|
|
12457
12466
|
reason: z.ZodEnum<{
|
|
12458
12467
|
finished: "finished";
|
|
@@ -12660,6 +12669,7 @@ export declare const HubExecutionOutboundMessageSchema: z.ZodDiscriminatedUnion<
|
|
|
12660
12669
|
body: z.ZodString;
|
|
12661
12670
|
data: z.ZodObject<{
|
|
12662
12671
|
serverId: z.ZodString;
|
|
12672
|
+
workspaceId: z.ZodOptional<z.ZodString>;
|
|
12663
12673
|
agentId: z.ZodString;
|
|
12664
12674
|
reason: z.ZodEnum<{
|
|
12665
12675
|
finished: "finished";
|
|
@@ -12870,6 +12880,7 @@ export declare const SessionOutboundMessageSchema: z.ZodDiscriminatedUnion<[z.Zo
|
|
|
12870
12880
|
body: z.ZodString;
|
|
12871
12881
|
data: z.ZodObject<{
|
|
12872
12882
|
serverId: z.ZodString;
|
|
12883
|
+
workspaceId: z.ZodOptional<z.ZodString>;
|
|
12873
12884
|
agentId: z.ZodString;
|
|
12874
12885
|
reason: z.ZodEnum<{
|
|
12875
12886
|
finished: "finished";
|
|
@@ -13896,6 +13907,7 @@ export declare const SessionOutboundMessageSchema: z.ZodDiscriminatedUnion<[z.Zo
|
|
|
13896
13907
|
body: z.ZodString;
|
|
13897
13908
|
data: z.ZodObject<{
|
|
13898
13909
|
serverId: z.ZodString;
|
|
13910
|
+
workspaceId: z.ZodOptional<z.ZodString>;
|
|
13899
13911
|
agentId: z.ZodString;
|
|
13900
13912
|
reason: z.ZodEnum<{
|
|
13901
13913
|
finished: "finished";
|
|
@@ -15686,6 +15698,7 @@ export declare const SessionOutboundMessageSchema: z.ZodDiscriminatedUnion<[z.Zo
|
|
|
15686
15698
|
body: z.ZodString;
|
|
15687
15699
|
data: z.ZodObject<{
|
|
15688
15700
|
serverId: z.ZodString;
|
|
15701
|
+
workspaceId: z.ZodOptional<z.ZodString>;
|
|
15689
15702
|
agentId: z.ZodString;
|
|
15690
15703
|
reason: z.ZodEnum<{
|
|
15691
15704
|
finished: "finished";
|
|
@@ -17343,6 +17356,7 @@ export declare const SessionOutboundMessageSchema: z.ZodDiscriminatedUnion<[z.Zo
|
|
|
17343
17356
|
authorName: z.ZodString;
|
|
17344
17357
|
authorDate: z.ZodString;
|
|
17345
17358
|
isOnRemote: z.ZodBoolean;
|
|
17359
|
+
isOnBase: z.ZodOptional<z.ZodBoolean>;
|
|
17346
17360
|
files: z.ZodArray<z.ZodObject<{
|
|
17347
17361
|
path: z.ZodString;
|
|
17348
17362
|
additions: z.ZodNumber;
|
|
@@ -18650,10 +18664,10 @@ export declare const SessionOutboundMessageSchema: z.ZodDiscriminatedUnion<[z.Zo
|
|
|
18650
18664
|
payload: z.ZodObject<{
|
|
18651
18665
|
cwd: z.ZodOptional<z.ZodString>;
|
|
18652
18666
|
terminals: z.ZodArray<z.ZodObject<{
|
|
18667
|
+
workspaceId: z.ZodOptional<z.ZodString>;
|
|
18653
18668
|
title: z.ZodOptional<z.ZodString>;
|
|
18654
18669
|
name: z.ZodString;
|
|
18655
18670
|
id: z.ZodString;
|
|
18656
|
-
workspaceId: z.ZodOptional<z.ZodString>;
|
|
18657
18671
|
activity: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
18658
18672
|
state: z.ZodCatch<z.ZodEnum<{
|
|
18659
18673
|
idle: "idle";
|
|
@@ -18674,10 +18688,10 @@ export declare const SessionOutboundMessageSchema: z.ZodDiscriminatedUnion<[z.Zo
|
|
|
18674
18688
|
payload: z.ZodObject<{
|
|
18675
18689
|
cwd: z.ZodString;
|
|
18676
18690
|
terminals: z.ZodArray<z.ZodObject<{
|
|
18691
|
+
workspaceId: z.ZodOptional<z.ZodString>;
|
|
18677
18692
|
title: z.ZodOptional<z.ZodString>;
|
|
18678
18693
|
name: z.ZodString;
|
|
18679
18694
|
id: z.ZodString;
|
|
18680
|
-
workspaceId: z.ZodOptional<z.ZodString>;
|
|
18681
18695
|
activity: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
18682
18696
|
state: z.ZodCatch<z.ZodEnum<{
|
|
18683
18697
|
idle: "idle";
|
|
@@ -22224,6 +22238,7 @@ export declare const WSSessionOutboundSchema: z.ZodObject<{
|
|
|
22224
22238
|
body: z.ZodString;
|
|
22225
22239
|
data: z.ZodObject<{
|
|
22226
22240
|
serverId: z.ZodString;
|
|
22241
|
+
workspaceId: z.ZodOptional<z.ZodString>;
|
|
22227
22242
|
agentId: z.ZodString;
|
|
22228
22243
|
reason: z.ZodEnum<{
|
|
22229
22244
|
finished: "finished";
|
|
@@ -23250,6 +23265,7 @@ export declare const WSSessionOutboundSchema: z.ZodObject<{
|
|
|
23250
23265
|
body: z.ZodString;
|
|
23251
23266
|
data: z.ZodObject<{
|
|
23252
23267
|
serverId: z.ZodString;
|
|
23268
|
+
workspaceId: z.ZodOptional<z.ZodString>;
|
|
23253
23269
|
agentId: z.ZodString;
|
|
23254
23270
|
reason: z.ZodEnum<{
|
|
23255
23271
|
finished: "finished";
|
|
@@ -25040,6 +25056,7 @@ export declare const WSSessionOutboundSchema: z.ZodObject<{
|
|
|
25040
25056
|
body: z.ZodString;
|
|
25041
25057
|
data: z.ZodObject<{
|
|
25042
25058
|
serverId: z.ZodString;
|
|
25059
|
+
workspaceId: z.ZodOptional<z.ZodString>;
|
|
25043
25060
|
agentId: z.ZodString;
|
|
25044
25061
|
reason: z.ZodEnum<{
|
|
25045
25062
|
finished: "finished";
|
|
@@ -26697,6 +26714,7 @@ export declare const WSSessionOutboundSchema: z.ZodObject<{
|
|
|
26697
26714
|
authorName: z.ZodString;
|
|
26698
26715
|
authorDate: z.ZodString;
|
|
26699
26716
|
isOnRemote: z.ZodBoolean;
|
|
26717
|
+
isOnBase: z.ZodOptional<z.ZodBoolean>;
|
|
26700
26718
|
files: z.ZodArray<z.ZodObject<{
|
|
26701
26719
|
path: z.ZodString;
|
|
26702
26720
|
additions: z.ZodNumber;
|
|
@@ -28004,10 +28022,10 @@ export declare const WSSessionOutboundSchema: z.ZodObject<{
|
|
|
28004
28022
|
payload: z.ZodObject<{
|
|
28005
28023
|
cwd: z.ZodOptional<z.ZodString>;
|
|
28006
28024
|
terminals: z.ZodArray<z.ZodObject<{
|
|
28025
|
+
workspaceId: z.ZodOptional<z.ZodString>;
|
|
28007
28026
|
title: z.ZodOptional<z.ZodString>;
|
|
28008
28027
|
name: z.ZodString;
|
|
28009
28028
|
id: z.ZodString;
|
|
28010
|
-
workspaceId: z.ZodOptional<z.ZodString>;
|
|
28011
28029
|
activity: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
28012
28030
|
state: z.ZodCatch<z.ZodEnum<{
|
|
28013
28031
|
idle: "idle";
|
|
@@ -28028,10 +28046,10 @@ export declare const WSSessionOutboundSchema: z.ZodObject<{
|
|
|
28028
28046
|
payload: z.ZodObject<{
|
|
28029
28047
|
cwd: z.ZodString;
|
|
28030
28048
|
terminals: z.ZodArray<z.ZodObject<{
|
|
28049
|
+
workspaceId: z.ZodOptional<z.ZodString>;
|
|
28031
28050
|
title: z.ZodOptional<z.ZodString>;
|
|
28032
28051
|
name: z.ZodString;
|
|
28033
28052
|
id: z.ZodString;
|
|
28034
|
-
workspaceId: z.ZodOptional<z.ZodString>;
|
|
28035
28053
|
activity: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
28036
28054
|
state: z.ZodCatch<z.ZodEnum<{
|
|
28037
28055
|
idle: "idle";
|
|
@@ -31256,6 +31274,7 @@ export declare const WSOutboundMessageSchema: z.ZodDiscriminatedUnion<[z.ZodObje
|
|
|
31256
31274
|
body: z.ZodString;
|
|
31257
31275
|
data: z.ZodObject<{
|
|
31258
31276
|
serverId: z.ZodString;
|
|
31277
|
+
workspaceId: z.ZodOptional<z.ZodString>;
|
|
31259
31278
|
agentId: z.ZodString;
|
|
31260
31279
|
reason: z.ZodEnum<{
|
|
31261
31280
|
finished: "finished";
|
|
@@ -32282,6 +32301,7 @@ export declare const WSOutboundMessageSchema: z.ZodDiscriminatedUnion<[z.ZodObje
|
|
|
32282
32301
|
body: z.ZodString;
|
|
32283
32302
|
data: z.ZodObject<{
|
|
32284
32303
|
serverId: z.ZodString;
|
|
32304
|
+
workspaceId: z.ZodOptional<z.ZodString>;
|
|
32285
32305
|
agentId: z.ZodString;
|
|
32286
32306
|
reason: z.ZodEnum<{
|
|
32287
32307
|
finished: "finished";
|
|
@@ -34072,6 +34092,7 @@ export declare const WSOutboundMessageSchema: z.ZodDiscriminatedUnion<[z.ZodObje
|
|
|
34072
34092
|
body: z.ZodString;
|
|
34073
34093
|
data: z.ZodObject<{
|
|
34074
34094
|
serverId: z.ZodString;
|
|
34095
|
+
workspaceId: z.ZodOptional<z.ZodString>;
|
|
34075
34096
|
agentId: z.ZodString;
|
|
34076
34097
|
reason: z.ZodEnum<{
|
|
34077
34098
|
finished: "finished";
|
|
@@ -35729,6 +35750,7 @@ export declare const WSOutboundMessageSchema: z.ZodDiscriminatedUnion<[z.ZodObje
|
|
|
35729
35750
|
authorName: z.ZodString;
|
|
35730
35751
|
authorDate: z.ZodString;
|
|
35731
35752
|
isOnRemote: z.ZodBoolean;
|
|
35753
|
+
isOnBase: z.ZodOptional<z.ZodBoolean>;
|
|
35732
35754
|
files: z.ZodArray<z.ZodObject<{
|
|
35733
35755
|
path: z.ZodString;
|
|
35734
35756
|
additions: z.ZodNumber;
|
|
@@ -37036,10 +37058,10 @@ export declare const WSOutboundMessageSchema: z.ZodDiscriminatedUnion<[z.ZodObje
|
|
|
37036
37058
|
payload: z.ZodObject<{
|
|
37037
37059
|
cwd: z.ZodOptional<z.ZodString>;
|
|
37038
37060
|
terminals: z.ZodArray<z.ZodObject<{
|
|
37061
|
+
workspaceId: z.ZodOptional<z.ZodString>;
|
|
37039
37062
|
title: z.ZodOptional<z.ZodString>;
|
|
37040
37063
|
name: z.ZodString;
|
|
37041
37064
|
id: z.ZodString;
|
|
37042
|
-
workspaceId: z.ZodOptional<z.ZodString>;
|
|
37043
37065
|
activity: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
37044
37066
|
state: z.ZodCatch<z.ZodEnum<{
|
|
37045
37067
|
idle: "idle";
|
|
@@ -37060,10 +37082,10 @@ export declare const WSOutboundMessageSchema: z.ZodDiscriminatedUnion<[z.ZodObje
|
|
|
37060
37082
|
payload: z.ZodObject<{
|
|
37061
37083
|
cwd: z.ZodString;
|
|
37062
37084
|
terminals: z.ZodArray<z.ZodObject<{
|
|
37085
|
+
workspaceId: z.ZodOptional<z.ZodString>;
|
|
37063
37086
|
title: z.ZodOptional<z.ZodString>;
|
|
37064
37087
|
name: z.ZodString;
|
|
37065
37088
|
id: z.ZodString;
|
|
37066
|
-
workspaceId: z.ZodOptional<z.ZodString>;
|
|
37067
37089
|
activity: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
37068
37090
|
state: z.ZodCatch<z.ZodEnum<{
|
|
37069
37091
|
idle: "idle";
|
package/dist/messages.js
CHANGED
|
@@ -510,6 +510,7 @@ export const AgentStreamEventPayloadSchema = z.discriminatedUnion("type", [
|
|
|
510
510
|
body: z.string(),
|
|
511
511
|
data: z.object({
|
|
512
512
|
serverId: z.string(),
|
|
513
|
+
workspaceId: z.string().optional(),
|
|
513
514
|
agentId: z.string(),
|
|
514
515
|
reason: z.enum(["finished", "error", "permission"]),
|
|
515
516
|
}),
|
|
@@ -1436,6 +1437,8 @@ const CheckoutCommitSchema = z.object({
|
|
|
1436
1437
|
authorName: z.string(),
|
|
1437
1438
|
authorDate: z.string(), // ISO 8601
|
|
1438
1439
|
isOnRemote: z.boolean(), // false = local-only (unpushed)
|
|
1440
|
+
// COMPAT(commitBaseClassification): added in v0.2.0, remove optional after 2027-01-23.
|
|
1441
|
+
isOnBase: z.boolean().optional(),
|
|
1439
1442
|
files: z.array(CheckoutCommitFileSchema),
|
|
1440
1443
|
});
|
|
1441
1444
|
export const CheckoutCommitsListRequestSchema = z.object({
|
|
@@ -2379,6 +2382,8 @@ export const ServerInfoStatusPayloadSchema = z
|
|
|
2379
2382
|
projectCreateDirectory: z.boolean().optional(),
|
|
2380
2383
|
// COMPAT(commitsList): added in v0.1.110, remove gate after 2027-01-16.
|
|
2381
2384
|
commitsList: z.boolean().optional(),
|
|
2385
|
+
// COMPAT(commitBaseClassification): added in v0.2.0, remove gate after 2027-01-23.
|
|
2386
|
+
commitBaseClassification: z.boolean().optional(),
|
|
2382
2387
|
// COMPAT(providerRemoval): added in v0.1.105, drop the gate when floor >= v0.1.105.
|
|
2383
2388
|
providerRemoval: z.boolean().optional(),
|
|
2384
2389
|
// COMPAT(importSessionWorkspaceTarget): added in v0.1.110, remove gate after 2027-01-16.
|
|
@@ -3094,6 +3099,7 @@ export const AgentAttentionRequiredMessageSchema = z.object({
|
|
|
3094
3099
|
body: z.string(),
|
|
3095
3100
|
data: z.object({
|
|
3096
3101
|
serverId: z.string(),
|
|
3102
|
+
workspaceId: z.string().optional(),
|
|
3097
3103
|
agentId: z.string(),
|
|
3098
3104
|
reason: z.enum(["finished", "error", "permission"]),
|
|
3099
3105
|
}),
|
|
@@ -110,6 +110,13 @@ export const OMP_MODES = [
|
|
|
110
110
|
colorTier: "dangerous",
|
|
111
111
|
isUnattended: true,
|
|
112
112
|
},
|
|
113
|
+
{
|
|
114
|
+
id: "write",
|
|
115
|
+
label: "Write Approval",
|
|
116
|
+
description: "Launches OMP with write approval mode — reads are free, writes require approval.",
|
|
117
|
+
icon: "ShieldAlert",
|
|
118
|
+
colorTier: "moderate",
|
|
119
|
+
},
|
|
113
120
|
{
|
|
114
121
|
id: "ask",
|
|
115
122
|
label: "Always Ask",
|
|
@@ -196,6 +196,7 @@ export declare const WSOutboundMessageSchema: {
|
|
|
196
196
|
body: import("zod").ZodString;
|
|
197
197
|
data: import("zod").ZodObject<{
|
|
198
198
|
serverId: import("zod").ZodString;
|
|
199
|
+
workspaceId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
199
200
|
agentId: import("zod").ZodString;
|
|
200
201
|
reason: import("zod").ZodEnum<{
|
|
201
202
|
finished: "finished";
|
|
@@ -1222,6 +1223,7 @@ export declare const WSOutboundMessageSchema: {
|
|
|
1222
1223
|
body: import("zod").ZodString;
|
|
1223
1224
|
data: import("zod").ZodObject<{
|
|
1224
1225
|
serverId: import("zod").ZodString;
|
|
1226
|
+
workspaceId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
1225
1227
|
agentId: import("zod").ZodString;
|
|
1226
1228
|
reason: import("zod").ZodEnum<{
|
|
1227
1229
|
finished: "finished";
|
|
@@ -3012,6 +3014,7 @@ export declare const WSOutboundMessageSchema: {
|
|
|
3012
3014
|
body: import("zod").ZodString;
|
|
3013
3015
|
data: import("zod").ZodObject<{
|
|
3014
3016
|
serverId: import("zod").ZodString;
|
|
3017
|
+
workspaceId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
3015
3018
|
agentId: import("zod").ZodString;
|
|
3016
3019
|
reason: import("zod").ZodEnum<{
|
|
3017
3020
|
finished: "finished";
|
|
@@ -4669,6 +4672,7 @@ export declare const WSOutboundMessageSchema: {
|
|
|
4669
4672
|
authorName: import("zod").ZodString;
|
|
4670
4673
|
authorDate: import("zod").ZodString;
|
|
4671
4674
|
isOnRemote: import("zod").ZodBoolean;
|
|
4675
|
+
isOnBase: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
4672
4676
|
files: import("zod").ZodArray<import("zod").ZodObject<{
|
|
4673
4677
|
path: import("zod").ZodString;
|
|
4674
4678
|
additions: import("zod").ZodNumber;
|
|
@@ -5976,10 +5980,10 @@ export declare const WSOutboundMessageSchema: {
|
|
|
5976
5980
|
payload: import("zod").ZodObject<{
|
|
5977
5981
|
cwd: import("zod").ZodOptional<import("zod").ZodString>;
|
|
5978
5982
|
terminals: import("zod").ZodArray<import("zod").ZodObject<{
|
|
5983
|
+
workspaceId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
5979
5984
|
title: import("zod").ZodOptional<import("zod").ZodString>;
|
|
5980
5985
|
name: import("zod").ZodString;
|
|
5981
5986
|
id: import("zod").ZodString;
|
|
5982
|
-
workspaceId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
5983
5987
|
activity: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodObject<{
|
|
5984
5988
|
state: import("zod").ZodCatch<import("zod").ZodEnum<{
|
|
5985
5989
|
idle: "idle";
|
|
@@ -6000,10 +6004,10 @@ export declare const WSOutboundMessageSchema: {
|
|
|
6000
6004
|
payload: import("zod").ZodObject<{
|
|
6001
6005
|
cwd: import("zod").ZodString;
|
|
6002
6006
|
terminals: import("zod").ZodArray<import("zod").ZodObject<{
|
|
6007
|
+
workspaceId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
6003
6008
|
title: import("zod").ZodOptional<import("zod").ZodString>;
|
|
6004
6009
|
name: import("zod").ZodString;
|
|
6005
6010
|
id: import("zod").ZodString;
|
|
6006
|
-
workspaceId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
6007
6011
|
activity: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodObject<{
|
|
6008
6012
|
state: import("zod").ZodCatch<import("zod").ZodEnum<{
|
|
6009
6013
|
idle: "idle";
|