@getpaseo/protocol 0.2.0-beta.2 → 0.2.0-beta.3
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 +16 -1
- package/dist/messages.d.ts +22 -8
- package/dist/messages.js +2 -0
- package/dist/provider-manifest.js +7 -0
- package/dist/validation/ws-outbound-schema-metadata.d.ts +5 -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
|
}
|
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";
|
|
@@ -6209,6 +6210,7 @@ export declare const AgentStreamMessageSchema: z.ZodObject<{
|
|
|
6209
6210
|
body: z.ZodString;
|
|
6210
6211
|
data: z.ZodObject<{
|
|
6211
6212
|
serverId: z.ZodString;
|
|
6213
|
+
workspaceId: z.ZodOptional<z.ZodString>;
|
|
6212
6214
|
agentId: z.ZodString;
|
|
6213
6215
|
reason: z.ZodEnum<{
|
|
6214
6216
|
finished: "finished";
|
|
@@ -8714,6 +8716,7 @@ export declare const AgentAttentionRequiredMessageSchema: z.ZodObject<{
|
|
|
8714
8716
|
body: z.ZodString;
|
|
8715
8717
|
data: z.ZodObject<{
|
|
8716
8718
|
serverId: z.ZodString;
|
|
8719
|
+
workspaceId: z.ZodOptional<z.ZodString>;
|
|
8717
8720
|
agentId: z.ZodString;
|
|
8718
8721
|
reason: z.ZodEnum<{
|
|
8719
8722
|
finished: "finished";
|
|
@@ -12105,10 +12108,10 @@ export declare const ListTerminalsResponseSchema: z.ZodObject<{
|
|
|
12105
12108
|
payload: z.ZodObject<{
|
|
12106
12109
|
cwd: z.ZodOptional<z.ZodString>;
|
|
12107
12110
|
terminals: z.ZodArray<z.ZodObject<{
|
|
12111
|
+
workspaceId: z.ZodOptional<z.ZodString>;
|
|
12108
12112
|
title: z.ZodOptional<z.ZodString>;
|
|
12109
12113
|
name: z.ZodString;
|
|
12110
12114
|
id: z.ZodString;
|
|
12111
|
-
workspaceId: z.ZodOptional<z.ZodString>;
|
|
12112
12115
|
activity: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
12113
12116
|
state: z.ZodCatch<z.ZodEnum<{
|
|
12114
12117
|
idle: "idle";
|
|
@@ -12130,10 +12133,10 @@ export declare const TerminalsChangedSchema: z.ZodObject<{
|
|
|
12130
12133
|
payload: z.ZodObject<{
|
|
12131
12134
|
cwd: z.ZodString;
|
|
12132
12135
|
terminals: z.ZodArray<z.ZodObject<{
|
|
12136
|
+
workspaceId: z.ZodOptional<z.ZodString>;
|
|
12133
12137
|
title: z.ZodOptional<z.ZodString>;
|
|
12134
12138
|
name: z.ZodString;
|
|
12135
12139
|
id: z.ZodString;
|
|
12136
|
-
workspaceId: z.ZodOptional<z.ZodString>;
|
|
12137
12140
|
activity: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
12138
12141
|
state: z.ZodCatch<z.ZodEnum<{
|
|
12139
12142
|
idle: "idle";
|
|
@@ -12453,6 +12456,7 @@ export declare const HubExecutionAgentStreamSchema: z.ZodObject<{
|
|
|
12453
12456
|
body: z.ZodString;
|
|
12454
12457
|
data: z.ZodObject<{
|
|
12455
12458
|
serverId: z.ZodString;
|
|
12459
|
+
workspaceId: z.ZodOptional<z.ZodString>;
|
|
12456
12460
|
agentId: z.ZodString;
|
|
12457
12461
|
reason: z.ZodEnum<{
|
|
12458
12462
|
finished: "finished";
|
|
@@ -12660,6 +12664,7 @@ export declare const HubExecutionOutboundMessageSchema: z.ZodDiscriminatedUnion<
|
|
|
12660
12664
|
body: z.ZodString;
|
|
12661
12665
|
data: z.ZodObject<{
|
|
12662
12666
|
serverId: z.ZodString;
|
|
12667
|
+
workspaceId: z.ZodOptional<z.ZodString>;
|
|
12663
12668
|
agentId: z.ZodString;
|
|
12664
12669
|
reason: z.ZodEnum<{
|
|
12665
12670
|
finished: "finished";
|
|
@@ -12870,6 +12875,7 @@ export declare const SessionOutboundMessageSchema: z.ZodDiscriminatedUnion<[z.Zo
|
|
|
12870
12875
|
body: z.ZodString;
|
|
12871
12876
|
data: z.ZodObject<{
|
|
12872
12877
|
serverId: z.ZodString;
|
|
12878
|
+
workspaceId: z.ZodOptional<z.ZodString>;
|
|
12873
12879
|
agentId: z.ZodString;
|
|
12874
12880
|
reason: z.ZodEnum<{
|
|
12875
12881
|
finished: "finished";
|
|
@@ -13896,6 +13902,7 @@ export declare const SessionOutboundMessageSchema: z.ZodDiscriminatedUnion<[z.Zo
|
|
|
13896
13902
|
body: z.ZodString;
|
|
13897
13903
|
data: z.ZodObject<{
|
|
13898
13904
|
serverId: z.ZodString;
|
|
13905
|
+
workspaceId: z.ZodOptional<z.ZodString>;
|
|
13899
13906
|
agentId: z.ZodString;
|
|
13900
13907
|
reason: z.ZodEnum<{
|
|
13901
13908
|
finished: "finished";
|
|
@@ -15686,6 +15693,7 @@ export declare const SessionOutboundMessageSchema: z.ZodDiscriminatedUnion<[z.Zo
|
|
|
15686
15693
|
body: z.ZodString;
|
|
15687
15694
|
data: z.ZodObject<{
|
|
15688
15695
|
serverId: z.ZodString;
|
|
15696
|
+
workspaceId: z.ZodOptional<z.ZodString>;
|
|
15689
15697
|
agentId: z.ZodString;
|
|
15690
15698
|
reason: z.ZodEnum<{
|
|
15691
15699
|
finished: "finished";
|
|
@@ -18650,10 +18658,10 @@ export declare const SessionOutboundMessageSchema: z.ZodDiscriminatedUnion<[z.Zo
|
|
|
18650
18658
|
payload: z.ZodObject<{
|
|
18651
18659
|
cwd: z.ZodOptional<z.ZodString>;
|
|
18652
18660
|
terminals: z.ZodArray<z.ZodObject<{
|
|
18661
|
+
workspaceId: z.ZodOptional<z.ZodString>;
|
|
18653
18662
|
title: z.ZodOptional<z.ZodString>;
|
|
18654
18663
|
name: z.ZodString;
|
|
18655
18664
|
id: z.ZodString;
|
|
18656
|
-
workspaceId: z.ZodOptional<z.ZodString>;
|
|
18657
18665
|
activity: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
18658
18666
|
state: z.ZodCatch<z.ZodEnum<{
|
|
18659
18667
|
idle: "idle";
|
|
@@ -18674,10 +18682,10 @@ export declare const SessionOutboundMessageSchema: z.ZodDiscriminatedUnion<[z.Zo
|
|
|
18674
18682
|
payload: z.ZodObject<{
|
|
18675
18683
|
cwd: z.ZodString;
|
|
18676
18684
|
terminals: z.ZodArray<z.ZodObject<{
|
|
18685
|
+
workspaceId: z.ZodOptional<z.ZodString>;
|
|
18677
18686
|
title: z.ZodOptional<z.ZodString>;
|
|
18678
18687
|
name: z.ZodString;
|
|
18679
18688
|
id: z.ZodString;
|
|
18680
|
-
workspaceId: z.ZodOptional<z.ZodString>;
|
|
18681
18689
|
activity: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
18682
18690
|
state: z.ZodCatch<z.ZodEnum<{
|
|
18683
18691
|
idle: "idle";
|
|
@@ -22224,6 +22232,7 @@ export declare const WSSessionOutboundSchema: z.ZodObject<{
|
|
|
22224
22232
|
body: z.ZodString;
|
|
22225
22233
|
data: z.ZodObject<{
|
|
22226
22234
|
serverId: z.ZodString;
|
|
22235
|
+
workspaceId: z.ZodOptional<z.ZodString>;
|
|
22227
22236
|
agentId: z.ZodString;
|
|
22228
22237
|
reason: z.ZodEnum<{
|
|
22229
22238
|
finished: "finished";
|
|
@@ -23250,6 +23259,7 @@ export declare const WSSessionOutboundSchema: z.ZodObject<{
|
|
|
23250
23259
|
body: z.ZodString;
|
|
23251
23260
|
data: z.ZodObject<{
|
|
23252
23261
|
serverId: z.ZodString;
|
|
23262
|
+
workspaceId: z.ZodOptional<z.ZodString>;
|
|
23253
23263
|
agentId: z.ZodString;
|
|
23254
23264
|
reason: z.ZodEnum<{
|
|
23255
23265
|
finished: "finished";
|
|
@@ -25040,6 +25050,7 @@ export declare const WSSessionOutboundSchema: z.ZodObject<{
|
|
|
25040
25050
|
body: z.ZodString;
|
|
25041
25051
|
data: z.ZodObject<{
|
|
25042
25052
|
serverId: z.ZodString;
|
|
25053
|
+
workspaceId: z.ZodOptional<z.ZodString>;
|
|
25043
25054
|
agentId: z.ZodString;
|
|
25044
25055
|
reason: z.ZodEnum<{
|
|
25045
25056
|
finished: "finished";
|
|
@@ -28004,10 +28015,10 @@ export declare const WSSessionOutboundSchema: z.ZodObject<{
|
|
|
28004
28015
|
payload: z.ZodObject<{
|
|
28005
28016
|
cwd: z.ZodOptional<z.ZodString>;
|
|
28006
28017
|
terminals: z.ZodArray<z.ZodObject<{
|
|
28018
|
+
workspaceId: z.ZodOptional<z.ZodString>;
|
|
28007
28019
|
title: z.ZodOptional<z.ZodString>;
|
|
28008
28020
|
name: z.ZodString;
|
|
28009
28021
|
id: z.ZodString;
|
|
28010
|
-
workspaceId: z.ZodOptional<z.ZodString>;
|
|
28011
28022
|
activity: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
28012
28023
|
state: z.ZodCatch<z.ZodEnum<{
|
|
28013
28024
|
idle: "idle";
|
|
@@ -28028,10 +28039,10 @@ export declare const WSSessionOutboundSchema: z.ZodObject<{
|
|
|
28028
28039
|
payload: z.ZodObject<{
|
|
28029
28040
|
cwd: z.ZodString;
|
|
28030
28041
|
terminals: z.ZodArray<z.ZodObject<{
|
|
28042
|
+
workspaceId: z.ZodOptional<z.ZodString>;
|
|
28031
28043
|
title: z.ZodOptional<z.ZodString>;
|
|
28032
28044
|
name: z.ZodString;
|
|
28033
28045
|
id: z.ZodString;
|
|
28034
|
-
workspaceId: z.ZodOptional<z.ZodString>;
|
|
28035
28046
|
activity: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
28036
28047
|
state: z.ZodCatch<z.ZodEnum<{
|
|
28037
28048
|
idle: "idle";
|
|
@@ -31256,6 +31267,7 @@ export declare const WSOutboundMessageSchema: z.ZodDiscriminatedUnion<[z.ZodObje
|
|
|
31256
31267
|
body: z.ZodString;
|
|
31257
31268
|
data: z.ZodObject<{
|
|
31258
31269
|
serverId: z.ZodString;
|
|
31270
|
+
workspaceId: z.ZodOptional<z.ZodString>;
|
|
31259
31271
|
agentId: z.ZodString;
|
|
31260
31272
|
reason: z.ZodEnum<{
|
|
31261
31273
|
finished: "finished";
|
|
@@ -32282,6 +32294,7 @@ export declare const WSOutboundMessageSchema: z.ZodDiscriminatedUnion<[z.ZodObje
|
|
|
32282
32294
|
body: z.ZodString;
|
|
32283
32295
|
data: z.ZodObject<{
|
|
32284
32296
|
serverId: z.ZodString;
|
|
32297
|
+
workspaceId: z.ZodOptional<z.ZodString>;
|
|
32285
32298
|
agentId: z.ZodString;
|
|
32286
32299
|
reason: z.ZodEnum<{
|
|
32287
32300
|
finished: "finished";
|
|
@@ -34072,6 +34085,7 @@ export declare const WSOutboundMessageSchema: z.ZodDiscriminatedUnion<[z.ZodObje
|
|
|
34072
34085
|
body: z.ZodString;
|
|
34073
34086
|
data: z.ZodObject<{
|
|
34074
34087
|
serverId: z.ZodString;
|
|
34088
|
+
workspaceId: z.ZodOptional<z.ZodString>;
|
|
34075
34089
|
agentId: z.ZodString;
|
|
34076
34090
|
reason: z.ZodEnum<{
|
|
34077
34091
|
finished: "finished";
|
|
@@ -37036,10 +37050,10 @@ export declare const WSOutboundMessageSchema: z.ZodDiscriminatedUnion<[z.ZodObje
|
|
|
37036
37050
|
payload: z.ZodObject<{
|
|
37037
37051
|
cwd: z.ZodOptional<z.ZodString>;
|
|
37038
37052
|
terminals: z.ZodArray<z.ZodObject<{
|
|
37053
|
+
workspaceId: z.ZodOptional<z.ZodString>;
|
|
37039
37054
|
title: z.ZodOptional<z.ZodString>;
|
|
37040
37055
|
name: z.ZodString;
|
|
37041
37056
|
id: z.ZodString;
|
|
37042
|
-
workspaceId: z.ZodOptional<z.ZodString>;
|
|
37043
37057
|
activity: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
37044
37058
|
state: z.ZodCatch<z.ZodEnum<{
|
|
37045
37059
|
idle: "idle";
|
|
@@ -37060,10 +37074,10 @@ export declare const WSOutboundMessageSchema: z.ZodDiscriminatedUnion<[z.ZodObje
|
|
|
37060
37074
|
payload: z.ZodObject<{
|
|
37061
37075
|
cwd: z.ZodString;
|
|
37062
37076
|
terminals: z.ZodArray<z.ZodObject<{
|
|
37077
|
+
workspaceId: z.ZodOptional<z.ZodString>;
|
|
37063
37078
|
title: z.ZodOptional<z.ZodString>;
|
|
37064
37079
|
name: z.ZodString;
|
|
37065
37080
|
id: z.ZodString;
|
|
37066
|
-
workspaceId: z.ZodOptional<z.ZodString>;
|
|
37067
37081
|
activity: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
37068
37082
|
state: z.ZodCatch<z.ZodEnum<{
|
|
37069
37083
|
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
|
}),
|
|
@@ -3094,6 +3095,7 @@ export const AgentAttentionRequiredMessageSchema = z.object({
|
|
|
3094
3095
|
body: z.string(),
|
|
3095
3096
|
data: z.object({
|
|
3096
3097
|
serverId: z.string(),
|
|
3098
|
+
workspaceId: z.string().optional(),
|
|
3097
3099
|
agentId: z.string(),
|
|
3098
3100
|
reason: z.enum(["finished", "error", "permission"]),
|
|
3099
3101
|
}),
|
|
@@ -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";
|
|
@@ -5976,10 +5979,10 @@ export declare const WSOutboundMessageSchema: {
|
|
|
5976
5979
|
payload: import("zod").ZodObject<{
|
|
5977
5980
|
cwd: import("zod").ZodOptional<import("zod").ZodString>;
|
|
5978
5981
|
terminals: import("zod").ZodArray<import("zod").ZodObject<{
|
|
5982
|
+
workspaceId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
5979
5983
|
title: import("zod").ZodOptional<import("zod").ZodString>;
|
|
5980
5984
|
name: import("zod").ZodString;
|
|
5981
5985
|
id: import("zod").ZodString;
|
|
5982
|
-
workspaceId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
5983
5986
|
activity: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodObject<{
|
|
5984
5987
|
state: import("zod").ZodCatch<import("zod").ZodEnum<{
|
|
5985
5988
|
idle: "idle";
|
|
@@ -6000,10 +6003,10 @@ export declare const WSOutboundMessageSchema: {
|
|
|
6000
6003
|
payload: import("zod").ZodObject<{
|
|
6001
6004
|
cwd: import("zod").ZodString;
|
|
6002
6005
|
terminals: import("zod").ZodArray<import("zod").ZodObject<{
|
|
6006
|
+
workspaceId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
6003
6007
|
title: import("zod").ZodOptional<import("zod").ZodString>;
|
|
6004
6008
|
name: import("zod").ZodString;
|
|
6005
6009
|
id: import("zod").ZodString;
|
|
6006
|
-
workspaceId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
6007
6010
|
activity: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodObject<{
|
|
6008
6011
|
state: import("zod").ZodCatch<import("zod").ZodEnum<{
|
|
6009
6012
|
idle: "idle";
|