@yinaoxiong/paseo-protocol 0.18.2-personal.1 → 0.19.2-personal.1

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.
Files changed (53) hide show
  1. package/build-info.json +8 -8
  2. package/dist/agent-types.d.ts +18 -1
  3. package/dist/binary-frames/diff.d.ts +2 -0
  4. package/dist/binary-frames/diff.js +6 -0
  5. package/dist/browser-automation/capabilities.d.ts +1 -1
  6. package/dist/browser-automation/rpc-schemas.d.ts +1 -1
  7. package/dist/client-capabilities.d.ts +2 -0
  8. package/dist/client-capabilities.js +6 -0
  9. package/dist/daemon-clients.d.ts +225 -0
  10. package/dist/daemon-clients.js +65 -0
  11. package/dist/daemon-permissions.d.ts +15 -0
  12. package/dist/daemon-permissions.js +14 -0
  13. package/dist/generated/validation/message-defaults.js +50 -40
  14. package/dist/generated/validation/ws-outbound-schema-metadata.d.ts +2361 -453
  15. package/dist/generated/validation/ws-outbound-schema-metadata.js +10 -0
  16. package/dist/generated/validation/ws-outbound.aot.d.ts +20 -0
  17. package/dist/generated/validation/ws-outbound.aot.js +120170 -110610
  18. package/dist/git-remote.js +3 -1
  19. package/dist/host-target.d.ts +16 -0
  20. package/dist/host-target.js +14 -0
  21. package/dist/hosts.d.ts +78 -0
  22. package/dist/hosts.js +5 -0
  23. package/dist/messages.d.ts +11363 -2792
  24. package/dist/messages.js +318 -20
  25. package/dist/paseo-tool-presentation/catalog.js +1 -1
  26. package/dist/path-utils.d.ts +37 -0
  27. package/dist/path-utils.js +129 -0
  28. package/dist/plugin-config.d.ts +1 -0
  29. package/dist/plugin-config.js +4 -1
  30. package/dist/plugin-registry.d.ts +412 -0
  31. package/dist/plugin-registry.js +421 -2
  32. package/dist/plugin-requirements.js +11 -6
  33. package/dist/schedule/normalize-options.d.ts +4 -0
  34. package/dist/schedule/normalize-options.js +23 -0
  35. package/dist/schedule/rpc-schemas.d.ts +74 -72
  36. package/dist/schedule/rpc-schemas.js +12 -9
  37. package/dist/schedule/types.d.ts +143 -5
  38. package/dist/schedule/types.js +16 -2
  39. package/dist/ssh-transport.d.ts +4 -0
  40. package/dist/ssh-transport.js +13 -0
  41. package/dist/sync/descriptor.d.ts +142 -0
  42. package/dist/sync/descriptor.js +23 -0
  43. package/dist/sync/resources.d.ts +125 -0
  44. package/dist/sync/resources.js +9 -0
  45. package/dist/sync/schemas.d.ts +199 -0
  46. package/dist/sync/schemas.js +94 -0
  47. package/dist/timeline-turn.js +1 -0
  48. package/dist/tool-groups.d.ts +9 -0
  49. package/dist/tool-groups.js +14 -0
  50. package/dist/tunnels.d.ts +19 -0
  51. package/dist/tunnels.js +9 -0
  52. package/dist/validation/ws-outbound-envelope.d.ts +2321 -264
  53. package/package.json +6 -6
package/build-info.json CHANGED
@@ -1,18 +1,18 @@
1
1
  {
2
2
  "schemaVersion": 1,
3
- "upstreamVersion": "0.18.2",
3
+ "upstreamVersion": "0.19.2",
4
4
  "revision": 1,
5
- "version": "0.18.2-personal.1",
6
- "appVersion": "0.18.2",
7
- "androidVersionCode": 18002001,
8
- "iosBuildNumber": "18002999",
9
- "sourceSha": "35a005da22b19f1f747c07787b4a779e6d9a3708",
10
- "lockSha256": "8bcf4983ccfa57cfa444ec7ecbad301c8fef0fcc2c495df5176758cf1e2f2faa",
5
+ "version": "0.19.2-personal.1",
6
+ "appVersion": "0.19.2",
7
+ "androidVersionCode": 19002001,
8
+ "iosBuildNumber": "19002001",
9
+ "sourceSha": "9cbe5ba2dd85ec96b031653dfa0bc75cb4c535d7",
10
+ "lockSha256": "09ab224c826745f06f8444ff5c7a842720c26b75bcd609f7112da1b7365f5cd2",
11
11
  "nodeVersion": "v24.21.0",
12
12
  "npmVersion": "11.19.0",
13
13
  "platform": "linux",
14
14
  "arch": "x64",
15
15
  "signature": "unsigned",
16
16
  "packageName": "@yinaoxiong/paseo-protocol",
17
- "desktopVersion": "0.18.2+personal.1"
17
+ "desktopVersion": "0.19.2+personal.1"
18
18
  }
@@ -338,6 +338,23 @@ export interface PluginTimelineItem {
338
338
  version: number;
339
339
  data: JsonValue;
340
340
  }
341
+ export interface ProviderSwitchContextSummary {
342
+ includedItems: number;
343
+ truncated: boolean;
344
+ charCount: number;
345
+ budgetChars: number;
346
+ omittedReasons?: string[];
347
+ }
348
+ export interface ProviderSwitchTimelineItem {
349
+ type: "provider_switch";
350
+ fromProvider: AgentProvider;
351
+ toProvider: AgentProvider;
352
+ fromModel?: string | null;
353
+ toModel?: string | null;
354
+ fromSessionId?: string | null;
355
+ toSessionId?: string | null;
356
+ context: ProviderSwitchContextSummary;
357
+ }
341
358
  export interface AgentTaskItem {
342
359
  text: string;
343
360
  completed: boolean;
@@ -375,7 +392,7 @@ export type AgentTimelineItem = {
375
392
  type: "notification";
376
393
  level: "info" | "warning" | "error";
377
394
  message: string;
378
- } | CompactionTimelineItem | PluginTimelineItem;
395
+ } | CompactionTimelineItem | PluginTimelineItem | ProviderSwitchTimelineItem;
379
396
  export type AgentStreamEvent = {
380
397
  type: "thread_started";
381
398
  sessionId: string;
@@ -4,6 +4,7 @@ export declare const DiffOpcode: {
4
4
  readonly Bodies: 65;
5
5
  readonly End: 66;
6
6
  };
7
+ export declare const DIFF_SUPERSEDED_MESSAGE = "Diff revision superseded by newer changes";
7
8
  export declare const DIFF_HIGHLIGHT_STYLES: readonly [null, "keyword", "comment", "string", "number", "literal", "function", "definition", "class", "type", "tag", "attribute", "property", "variable", "operator", "punctuation", "regexp", "escape", "meta", "heading", "link", "diffAddition", "diffDeletion"];
8
9
  declare const CHANGES: readonly ["added", "modified", "deleted", "renamed"];
9
10
  declare const CONTENTS: readonly ["text", "binary"];
@@ -66,6 +67,7 @@ export interface DiffEnd {
66
67
  } | null;
67
68
  }
68
69
  export type DiffFrame = DiffBegin | DiffBodies | DiffEnd;
70
+ export declare function isSupersededDiffError(error: DiffEnd["error"]): boolean;
69
71
  export declare class InvalidDiffFrameError extends Error {
70
72
  }
71
73
  export declare function encodeDiffFrame(frame: DiffFrame): Uint8Array;
@@ -1,5 +1,8 @@
1
1
  // Opcodes 0x40–0x4f are reserved for diff revisions. Plugins own 0x20–0x2f.
2
2
  export const DiffOpcode = { Begin: 0x40, Bodies: 0x41, End: 0x42 };
3
+ // An UNKNOWN End with this message discards the pending revision. Older
4
+ // readers support the frame and can recover from the following full revision.
5
+ export const DIFF_SUPERSEDED_MESSAGE = "Diff revision superseded by newer changes";
3
6
  export const DIFF_HIGHLIGHT_STYLES = [
4
7
  null,
5
8
  "keyword",
@@ -36,6 +39,9 @@ const ERRORS = [
36
39
  "TOO_MANY_SUBSCRIPTIONS",
37
40
  "UNKNOWN",
38
41
  ];
42
+ export function isSupersededDiffError(error) {
43
+ return error?.code === "UNKNOWN" && error.message === DIFF_SUPERSEDED_MESSAGE;
44
+ }
39
45
  export class InvalidDiffFrameError extends Error {
40
46
  }
41
47
  const textEncoder = new TextEncoder();
@@ -1,6 +1,6 @@
1
1
  import { z } from "zod";
2
2
  export declare const BrowserAutomationHostCapabilitySchema: z.ZodObject<{
3
- supportedCommands: z.ZodPipe<z.ZodArray<z.ZodString>, z.ZodTransform<("type" | "fill" | "select" | "logs" | "list_tabs" | "new_tab" | "snapshot" | "click" | "wait" | "keypress" | "navigate" | "back" | "forward" | "reload" | "screenshot" | "upload" | "hover" | "drag" | "evaluate" | "scroll" | "resize" | "close_tab")[], string[]>>;
3
+ supportedCommands: z.ZodPipe<z.ZodArray<z.ZodString>, z.ZodTransform<("type" | "snapshot" | "fill" | "select" | "logs" | "list_tabs" | "new_tab" | "click" | "wait" | "keypress" | "navigate" | "back" | "forward" | "reload" | "screenshot" | "upload" | "hover" | "drag" | "evaluate" | "scroll" | "resize" | "close_tab")[], string[]>>;
4
4
  hostKind: z.ZodDefault<z.ZodString>;
5
5
  label: z.ZodOptional<z.ZodString>;
6
6
  instanceId: z.ZodOptional<z.ZodUUID>;
@@ -14,12 +14,12 @@ export declare const BrowserAutomationErrorCodeSchema: z.ZodEnum<{
14
14
  export declare const BROWSER_AUTOMATION_COMMAND_NAMES: readonly ["list_tabs", "new_tab", "snapshot", "click", "fill", "wait", "type", "keypress", "navigate", "back", "forward", "reload", "screenshot", "upload", "select", "hover", "drag", "logs", "evaluate", "scroll", "resize", "close_tab"];
15
15
  export declare const BrowserAutomationCommandNameSchema: z.ZodEnum<{
16
16
  type: "type";
17
+ snapshot: "snapshot";
17
18
  fill: "fill";
18
19
  select: "select";
19
20
  logs: "logs";
20
21
  list_tabs: "list_tabs";
21
22
  new_tab: "new_tab";
22
- snapshot: "snapshot";
23
23
  click: "click";
24
24
  wait: "wait";
25
25
  keypress: "keypress";
@@ -15,8 +15,10 @@ export declare const CLIENT_CAPS: {
15
15
  readonly compactProviderSnapshots: "compact_provider_snapshots";
16
16
  readonly providerSnapshotReferences: "provider_snapshot_references";
17
17
  readonly timelineReplacementInvalidation: "timeline_replacement_invalidation";
18
+ readonly timelineRewindOperations: "timeline_rewind_operations";
18
19
  readonly timelineNotifications: "timeline_notifications";
19
20
  readonly pluginTimelineItems: "plugin_timeline_items";
21
+ readonly timelineProviderSwitches: "timeline_provider_switches";
20
22
  readonly workspaceSetupObservation: "workspace_setup_observation";
21
23
  readonly pluginBinaryPayloads: "plugin_binary_payloads";
22
24
  readonly workspaceSetupBlocked: "workspace_setup_blocked";
@@ -39,12 +39,18 @@ export const CLIENT_CAPS = {
39
39
  // COMPAT(timelineReplacementInvalidation): added in v0.5.0, remove legacy
40
40
  // reconstructed timeline replay after 2027-02-21 once the client floor supports invalidation.
41
41
  timelineReplacementInvalidation: "timeline_replacement_invalidation",
42
+ // COMPAT(timelineRewindOperations): added in v0.18.0, remove after 2027-05-25 once the client
43
+ // floor applies rewinds. Clients without it see a rewound history under a derived epoch.
44
+ timelineRewindOperations: "timeline_rewind_operations",
42
45
  // COMPAT(timelineNotifications): added in v0.7.2. The daemon omits notification
43
46
  // timeline items for older clients whose strict timeline union rejects them.
44
47
  // Remove after 2027-03-03 once the supported client floor is >= v0.7.2.
45
48
  timelineNotifications: "timeline_notifications",
46
49
  // COMPAT(pluginTimelineItems): added in v0.8.0, remove after 2027-03-07 once client floor >= v0.8.0.
47
50
  pluginTimelineItems: "plugin_timeline_items",
51
+ // COMPAT(timelineProviderSwitches): added in v0.18.0, remove after 2027-05-25 once client floor >= v0.18.0.
52
+ // The daemon omits provider_switch timeline items for older clients whose strict union rejects them.
53
+ timelineProviderSwitches: "timeline_provider_switches",
48
54
  workspaceSetupObservation: "workspace_setup_observation",
49
55
  // COMPAT(pluginBinaryPayloads): added in v0.15.0, remove after 2027-05-02 once client floor >= v0.15.0.
50
56
  // The daemon sends plugin RPC outputs as binary opcode 0x21 only to clients that decode it.
@@ -0,0 +1,225 @@
1
+ import { z } from "zod";
2
+ export declare const WSClientTypeSchema: z.ZodEnum<{
3
+ mobile: "mobile";
4
+ browser: "browser";
5
+ cli: "cli";
6
+ mcp: "mcp";
7
+ hub: "hub";
8
+ }>;
9
+ export type WSClientType = z.infer<typeof WSClientTypeSchema>;
10
+ export declare const HelloClientPlatformSchema: z.ZodEnum<{
11
+ unknown: "unknown";
12
+ macos: "macos";
13
+ linux: "linux";
14
+ windows: "windows";
15
+ ios: "ios";
16
+ android: "android";
17
+ web: "web";
18
+ }>;
19
+ export type HelloClientPlatform = z.infer<typeof HelloClientPlatformSchema>;
20
+ export declare const HelloClientInfoSchema: z.ZodObject<{
21
+ name: z.ZodOptional<z.ZodString>;
22
+ platform: z.ZodOptional<z.ZodEnum<{
23
+ unknown: "unknown";
24
+ macos: "macos";
25
+ linux: "linux";
26
+ windows: "windows";
27
+ ios: "ios";
28
+ android: "android";
29
+ web: "web";
30
+ }>>;
31
+ }, z.core.$strip>;
32
+ export type HelloClientInfo = z.infer<typeof HelloClientInfoSchema>;
33
+ export declare const DaemonSessionTransportSchema: z.ZodEnum<{
34
+ hub: "hub";
35
+ local_ipc: "local_ipc";
36
+ local: "local";
37
+ tailscale: "tailscale";
38
+ direct: "direct";
39
+ relay: "relay";
40
+ via: "via";
41
+ }>;
42
+ export type DaemonSessionTransport = z.infer<typeof DaemonSessionTransportSchema>;
43
+ export declare const DaemonSessionSummarySchema: z.ZodObject<{
44
+ sessionId: z.ZodString;
45
+ principalId: z.ZodString;
46
+ isCurrentSession: z.ZodBoolean;
47
+ name: z.ZodNullable<z.ZodString>;
48
+ platform: z.ZodNullable<z.ZodString>;
49
+ clientType: z.ZodEnum<{
50
+ mobile: "mobile";
51
+ browser: "browser";
52
+ cli: "cli";
53
+ mcp: "mcp";
54
+ hub: "hub";
55
+ }>;
56
+ appVersion: z.ZodNullable<z.ZodString>;
57
+ transport: z.ZodEnum<{
58
+ hub: "hub";
59
+ local_ipc: "local_ipc";
60
+ local: "local";
61
+ tailscale: "tailscale";
62
+ direct: "direct";
63
+ relay: "relay";
64
+ via: "via";
65
+ }>;
66
+ viaSessionId: z.ZodOptional<z.ZodString>;
67
+ servesHostLink: z.ZodOptional<z.ZodBoolean>;
68
+ permissions: z.ZodArray<z.ZodEnum<{
69
+ "daemon.read": "daemon.read";
70
+ "daemon.manage": "daemon.manage";
71
+ "tunnel.manage": "tunnel.manage";
72
+ "access.manage": "access.manage";
73
+ "workspace.read": "workspace.read";
74
+ "workspace.write": "workspace.write";
75
+ "workspace.manage": "workspace.manage";
76
+ "automation.manage": "automation.manage";
77
+ "hub.execute": "hub.execute";
78
+ }>>;
79
+ connectedAt: z.ZodString;
80
+ socketCount: z.ZodNumber;
81
+ }, z.core.$strip>;
82
+ export type DaemonSessionSummary = z.infer<typeof DaemonSessionSummarySchema>;
83
+ export declare const DaemonClientsSnapshotSchema: z.ZodObject<{
84
+ sessions: z.ZodArray<z.ZodObject<{
85
+ sessionId: z.ZodString;
86
+ principalId: z.ZodString;
87
+ isCurrentSession: z.ZodBoolean;
88
+ name: z.ZodNullable<z.ZodString>;
89
+ platform: z.ZodNullable<z.ZodString>;
90
+ clientType: z.ZodEnum<{
91
+ mobile: "mobile";
92
+ browser: "browser";
93
+ cli: "cli";
94
+ mcp: "mcp";
95
+ hub: "hub";
96
+ }>;
97
+ appVersion: z.ZodNullable<z.ZodString>;
98
+ transport: z.ZodEnum<{
99
+ hub: "hub";
100
+ local_ipc: "local_ipc";
101
+ local: "local";
102
+ tailscale: "tailscale";
103
+ direct: "direct";
104
+ relay: "relay";
105
+ via: "via";
106
+ }>;
107
+ viaSessionId: z.ZodOptional<z.ZodString>;
108
+ servesHostLink: z.ZodOptional<z.ZodBoolean>;
109
+ permissions: z.ZodArray<z.ZodEnum<{
110
+ "daemon.read": "daemon.read";
111
+ "daemon.manage": "daemon.manage";
112
+ "tunnel.manage": "tunnel.manage";
113
+ "access.manage": "access.manage";
114
+ "workspace.read": "workspace.read";
115
+ "workspace.write": "workspace.write";
116
+ "workspace.manage": "workspace.manage";
117
+ "automation.manage": "automation.manage";
118
+ "hub.execute": "hub.execute";
119
+ }>>;
120
+ connectedAt: z.ZodString;
121
+ socketCount: z.ZodNumber;
122
+ }, z.core.$strip>>;
123
+ }, z.core.$strip>;
124
+ export type DaemonClientsSnapshot = z.infer<typeof DaemonClientsSnapshotSchema>;
125
+ export declare const DaemonClientsListRequestSchema: z.ZodObject<{
126
+ type: z.ZodLiteral<"daemon.clients.list.request">;
127
+ requestId: z.ZodString;
128
+ observe: z.ZodOptional<z.ZodBoolean>;
129
+ includeInternal: z.ZodOptional<z.ZodBoolean>;
130
+ }, z.core.$strip>;
131
+ export declare const DaemonClientsListResponseSchema: z.ZodObject<{
132
+ type: z.ZodLiteral<"daemon.clients.list.response">;
133
+ payload: z.ZodObject<{
134
+ requestId: z.ZodString;
135
+ subscriptionId: z.ZodOptional<z.ZodString>;
136
+ sessions: z.ZodArray<z.ZodObject<{
137
+ sessionId: z.ZodString;
138
+ principalId: z.ZodString;
139
+ isCurrentSession: z.ZodBoolean;
140
+ name: z.ZodNullable<z.ZodString>;
141
+ platform: z.ZodNullable<z.ZodString>;
142
+ clientType: z.ZodEnum<{
143
+ mobile: "mobile";
144
+ browser: "browser";
145
+ cli: "cli";
146
+ mcp: "mcp";
147
+ hub: "hub";
148
+ }>;
149
+ appVersion: z.ZodNullable<z.ZodString>;
150
+ transport: z.ZodEnum<{
151
+ hub: "hub";
152
+ local_ipc: "local_ipc";
153
+ local: "local";
154
+ tailscale: "tailscale";
155
+ direct: "direct";
156
+ relay: "relay";
157
+ via: "via";
158
+ }>;
159
+ viaSessionId: z.ZodOptional<z.ZodString>;
160
+ servesHostLink: z.ZodOptional<z.ZodBoolean>;
161
+ permissions: z.ZodArray<z.ZodEnum<{
162
+ "daemon.read": "daemon.read";
163
+ "daemon.manage": "daemon.manage";
164
+ "tunnel.manage": "tunnel.manage";
165
+ "access.manage": "access.manage";
166
+ "workspace.read": "workspace.read";
167
+ "workspace.write": "workspace.write";
168
+ "workspace.manage": "workspace.manage";
169
+ "automation.manage": "automation.manage";
170
+ "hub.execute": "hub.execute";
171
+ }>>;
172
+ connectedAt: z.ZodString;
173
+ socketCount: z.ZodNumber;
174
+ }, z.core.$strip>>;
175
+ }, z.core.$strip>;
176
+ }, z.core.$strip>;
177
+ export declare const DaemonClientsChangedSchema: z.ZodObject<{
178
+ type: z.ZodLiteral<"daemon.clients.changed">;
179
+ payload: z.ZodObject<{
180
+ subscriptionId: z.ZodString;
181
+ sessions: z.ZodArray<z.ZodObject<{
182
+ sessionId: z.ZodString;
183
+ principalId: z.ZodString;
184
+ isCurrentSession: z.ZodBoolean;
185
+ name: z.ZodNullable<z.ZodString>;
186
+ platform: z.ZodNullable<z.ZodString>;
187
+ clientType: z.ZodEnum<{
188
+ mobile: "mobile";
189
+ browser: "browser";
190
+ cli: "cli";
191
+ mcp: "mcp";
192
+ hub: "hub";
193
+ }>;
194
+ appVersion: z.ZodNullable<z.ZodString>;
195
+ transport: z.ZodEnum<{
196
+ hub: "hub";
197
+ local_ipc: "local_ipc";
198
+ local: "local";
199
+ tailscale: "tailscale";
200
+ direct: "direct";
201
+ relay: "relay";
202
+ via: "via";
203
+ }>;
204
+ viaSessionId: z.ZodOptional<z.ZodString>;
205
+ servesHostLink: z.ZodOptional<z.ZodBoolean>;
206
+ permissions: z.ZodArray<z.ZodEnum<{
207
+ "daemon.read": "daemon.read";
208
+ "daemon.manage": "daemon.manage";
209
+ "tunnel.manage": "tunnel.manage";
210
+ "access.manage": "access.manage";
211
+ "workspace.read": "workspace.read";
212
+ "workspace.write": "workspace.write";
213
+ "workspace.manage": "workspace.manage";
214
+ "automation.manage": "automation.manage";
215
+ "hub.execute": "hub.execute";
216
+ }>>;
217
+ connectedAt: z.ZodString;
218
+ socketCount: z.ZodNumber;
219
+ }, z.core.$strip>>;
220
+ }, z.core.$strip>;
221
+ }, z.core.$strip>;
222
+ export type DaemonClientsListRequest = z.infer<typeof DaemonClientsListRequestSchema>;
223
+ export type DaemonClientsListResponse = z.infer<typeof DaemonClientsListResponseSchema>;
224
+ export type DaemonClientsChanged = z.infer<typeof DaemonClientsChangedSchema>;
225
+ //# sourceMappingURL=daemon-clients.d.ts.map
@@ -0,0 +1,65 @@
1
+ import { z } from "zod";
2
+ import { DaemonPermissionSchema } from "./daemon-permissions.js";
3
+ export const WSClientTypeSchema = z.enum(["mobile", "browser", "cli", "mcp", "hub"]);
4
+ export const HelloClientPlatformSchema = z.enum([
5
+ "macos",
6
+ "linux",
7
+ "windows",
8
+ "ios",
9
+ "android",
10
+ "web",
11
+ "unknown",
12
+ ]);
13
+ export const HelloClientInfoSchema = z.object({
14
+ name: z.string().max(128).optional(),
15
+ platform: HelloClientPlatformSchema.optional(),
16
+ });
17
+ export const DaemonSessionTransportSchema = z.enum([
18
+ "local_ipc",
19
+ "local",
20
+ "tailscale",
21
+ "direct",
22
+ "relay",
23
+ "via",
24
+ "hub",
25
+ ]);
26
+ export const DaemonSessionSummarySchema = z.object({
27
+ sessionId: z.string(),
28
+ principalId: z.string(),
29
+ isCurrentSession: z.boolean(),
30
+ name: z.string().nullable(),
31
+ platform: z.string().nullable(),
32
+ clientType: WSClientTypeSchema,
33
+ appVersion: z.string().nullable(),
34
+ transport: DaemonSessionTransportSchema,
35
+ viaSessionId: z.string().optional(),
36
+ servesHostLink: z.boolean().optional(),
37
+ permissions: z.array(DaemonPermissionSchema),
38
+ connectedAt: z.string(),
39
+ socketCount: z.number().int().nonnegative(),
40
+ });
41
+ export const DaemonClientsSnapshotSchema = z.object({
42
+ sessions: z.array(DaemonSessionSummarySchema),
43
+ });
44
+ export const DaemonClientsListRequestSchema = z.object({
45
+ type: z.literal("daemon.clients.list.request"),
46
+ requestId: z.string(),
47
+ observe: z.boolean().optional(),
48
+ includeInternal: z.boolean().optional(),
49
+ });
50
+ export const DaemonClientsListResponseSchema = z.object({
51
+ type: z.literal("daemon.clients.list.response"),
52
+ payload: z.object({
53
+ requestId: z.string(),
54
+ subscriptionId: z.string().optional(),
55
+ sessions: z.array(DaemonSessionSummarySchema),
56
+ }),
57
+ });
58
+ export const DaemonClientsChangedSchema = z.object({
59
+ type: z.literal("daemon.clients.changed"),
60
+ payload: z.object({
61
+ subscriptionId: z.string(),
62
+ sessions: z.array(DaemonSessionSummarySchema),
63
+ }),
64
+ });
65
+ //# sourceMappingURL=daemon-clients.js.map
@@ -0,0 +1,15 @@
1
+ import { z } from "zod";
2
+ export declare const DAEMON_PERMISSIONS: readonly ["daemon.read", "daemon.manage", "tunnel.manage", "access.manage", "workspace.read", "workspace.write", "workspace.manage", "automation.manage", "hub.execute"];
3
+ export declare const DaemonPermissionSchema: z.ZodEnum<{
4
+ "daemon.read": "daemon.read";
5
+ "daemon.manage": "daemon.manage";
6
+ "tunnel.manage": "tunnel.manage";
7
+ "access.manage": "access.manage";
8
+ "workspace.read": "workspace.read";
9
+ "workspace.write": "workspace.write";
10
+ "workspace.manage": "workspace.manage";
11
+ "automation.manage": "automation.manage";
12
+ "hub.execute": "hub.execute";
13
+ }>;
14
+ export type DaemonPermission = z.infer<typeof DaemonPermissionSchema>;
15
+ //# sourceMappingURL=daemon-permissions.d.ts.map
@@ -0,0 +1,14 @@
1
+ import { z } from "zod";
2
+ export const DAEMON_PERMISSIONS = [
3
+ "daemon.read",
4
+ "daemon.manage",
5
+ "tunnel.manage",
6
+ "access.manage",
7
+ "workspace.read",
8
+ "workspace.write",
9
+ "workspace.manage",
10
+ "automation.manage",
11
+ "hub.execute",
12
+ ];
13
+ export const DaemonPermissionSchema = z.enum(DAEMON_PERMISSIONS);
14
+ //# sourceMappingURL=daemon-permissions.js.map
@@ -20,20 +20,24 @@ const d17 = { k: "o", p: { "payload": { k: "o", p: { "entries": { k: "a", e: d10
20
20
  const d18 = { k: "o", p: { "payload": d14 } };
21
21
  const d19 = { k: "o", p: { "payload": { k: "o", p: { "script": d11, "scripts": d12 } } } };
22
22
  const d20 = { k: "a", e: d6 };
23
- const d21 = { k: "o", p: { "workspace": d13, "agent": d3 } };
24
- const d22 = { k: "o", p: { "payload": d21 } };
25
- const d23 = { k: "o", p: { "enabled": { k: "d", v: false } } };
26
- const d24 = { k: "o", p: { "payload": { k: "o", p: { "config": { k: "o", p: { "browserTools": { k: "d", v: { "enabled": false }, i: d23 }, "providers": { k: "d", v: {} }, "metadataGeneration": { k: "d", v: { "providers": [] }, i: { k: "o", p: { "providers": { k: "d", v: [] } } } }, "autoArchiveAfterMerge": { k: "d", v: false }, "enableTerminalAgentHooks": { k: "d", v: false }, "appendSystemPrompt": { k: "d", v: "" } } } } } } };
27
- const d25 = { k: "m", b: [{ m: { "isGit": true, "isPaseoOwnedWorktree": false }, n: { k: "o", p: { "mainRepoRoot": { k: "d", v: null } } } }] };
28
- const d26 = { k: "o", p: { "status": { k: "o", p: { "forge": { k: "d", v: "github" }, "isDraft": { k: "d", v: false }, "mergeable": { k: "d", v: "UNKNOWN" }, "checks": { k: "d", v: [] }, "github": { k: "o", p: { "mergeStateStatus": { k: "d", v: null }, "autoMergeRequest": { k: "d", v: null, i: { k: "o", p: { "enabledAt": { k: "d", v: null }, "mergeMethod": { k: "d", v: null }, "enabledBy": { k: "d", v: null } } } }, "viewerCanEnableAutoMerge": { k: "d", v: false }, "viewerCanDisableAutoMerge": { k: "d", v: false }, "viewerCanMergeAsAdmin": { k: "d", v: false }, "viewerCanUpdateBranch": { k: "d", v: false }, "repository": { k: "d", v: { "autoMergeAllowed": false, "mergeCommitAllowed": false, "squashMergeAllowed": false, "rebaseMergeAllowed": false, "viewerDefaultMergeMethod": null }, i: { k: "o", p: { "autoMergeAllowed": { k: "d", v: false }, "mergeCommitAllowed": { k: "d", v: false }, "squashMergeAllowed": { k: "d", v: false }, "rebaseMergeAllowed": { k: "d", v: false }, "viewerDefaultMergeMethod": { k: "d", v: null } } } }, "isMergeQueueEnabled": { k: "d", v: false }, "isInMergeQueue": { k: "d", v: false } } } } }, "forge": { k: "d", v: "github" } } };
29
- const d27 = { k: "o", p: { "payload": { k: "o", p: { "details": { k: "d", v: null, i: { k: "o", p: { "annotations": { k: "d", v: [] }, "failedJobs": { k: "d", v: [] }, "truncated": { k: "d", v: false }, "pipeline": { k: "o", p: { "url": { k: "d", v: null }, "ref": { k: "d", v: null }, "sha": { k: "d", v: null }, "stages": { k: "d", v: [], i: { k: "a", e: { k: "o", p: { "jobs": { k: "d", v: [], i: { k: "a", e: { k: "o", p: { "url": { k: "d", v: null }, "allowFailure": { k: "d", v: false }, "durationSeconds": { k: "d", v: null } } } } } } } } } } } } } } } } } };
30
- const d28 = { k: "o", p: { "message": { k: "d", v: "" } } };
31
- const d29 = { k: "a", e: { k: "o", p: { "enabled": { k: "d", v: true } } } };
32
- const d30 = { k: "o", p: { "payload": { k: "o", p: { "entries": d29, "compactSnapshot": { k: "o", p: { "entries": d29 } } } } } };
33
- const d31 = { k: "o", p: { "payload": { k: "o", p: { "snapshot": { k: "o", p: { "items": { k: "a", e: d5 }, "pendingPermissions": d2 } } } } } };
34
- const d32 = { k: "o", p: { "payload": { k: "o", p: { "loop": { k: "o", p: { "modeId": { k: "d", v: null }, "verifierModeId": { k: "d", v: null } } } } } } };
35
- const d33 = { k: "o", p: { "forge": { k: "d", v: "github" } } };
36
- const d34 = { k: "o", p: { "attachments": { k: "a", e: { k: "m", b: [{ m: { "type": "forge_change_request", "mimeType": "application/paseo-forge-change-request" }, n: d33 }, { m: { "type": "forge_issue", "mimeType": "application/paseo-forge-issue" }, n: d33 }] } }, "labels": { k: "d", v: {} } } };
23
+ const d21 = { k: "o", p: { "forge": { k: "d", v: "github" } } };
24
+ const d22 = { k: "a", e: { k: "m", b: [{ m: { "type": "forge_change_request", "mimeType": "application/paseo-forge-change-request" }, n: d21 }, { m: { "type": "forge_issue", "mimeType": "application/paseo-forge-issue" }, n: d21 }] } };
25
+ const d23 = { k: "o", p: { "attachments": d22 } };
26
+ const d24 = { k: "a", e: { k: "o", p: { "value": d23 } } };
27
+ const d25 = { k: "o", p: { "upserts": d24 } };
28
+ const d26 = { k: "o", p: { "workspace": d13, "agent": d3 } };
29
+ const d27 = { k: "o", p: { "payload": d26 } };
30
+ const d28 = { k: "o", p: { "enabled": { k: "d", v: false } } };
31
+ const d29 = { k: "o", p: { "payload": { k: "o", p: { "config": { k: "o", p: { "browserTools": { k: "d", v: { "enabled": false }, i: d28 }, "providers": { k: "d", v: {} }, "metadataGeneration": { k: "d", v: { "providers": [] }, i: { k: "o", p: { "providers": { k: "d", v: [] } } } }, "autoArchiveAfterMerge": { k: "d", v: false }, "enableTerminalAgentHooks": { k: "d", v: false }, "appendSystemPrompt": { k: "d", v: "" } } } } } } };
32
+ const d30 = { k: "m", b: [{ m: { "isGit": true, "isPaseoOwnedWorktree": false }, n: { k: "o", p: { "mainRepoRoot": { k: "d", v: null } } } }] };
33
+ const d31 = { k: "o", p: { "status": { k: "o", p: { "forge": { k: "d", v: "github" }, "isDraft": { k: "d", v: false }, "mergeable": { k: "d", v: "UNKNOWN" }, "checks": { k: "d", v: [] }, "github": { k: "o", p: { "mergeStateStatus": { k: "d", v: null }, "autoMergeRequest": { k: "d", v: null, i: { k: "o", p: { "enabledAt": { k: "d", v: null }, "mergeMethod": { k: "d", v: null }, "enabledBy": { k: "d", v: null } } } }, "viewerCanEnableAutoMerge": { k: "d", v: false }, "viewerCanDisableAutoMerge": { k: "d", v: false }, "viewerCanMergeAsAdmin": { k: "d", v: false }, "viewerCanUpdateBranch": { k: "d", v: false }, "repository": { k: "d", v: { "autoMergeAllowed": false, "mergeCommitAllowed": false, "squashMergeAllowed": false, "rebaseMergeAllowed": false, "viewerDefaultMergeMethod": null }, i: { k: "o", p: { "autoMergeAllowed": { k: "d", v: false }, "mergeCommitAllowed": { k: "d", v: false }, "squashMergeAllowed": { k: "d", v: false }, "rebaseMergeAllowed": { k: "d", v: false }, "viewerDefaultMergeMethod": { k: "d", v: null } } } }, "isMergeQueueEnabled": { k: "d", v: false }, "isInMergeQueue": { k: "d", v: false } } } } }, "forge": { k: "d", v: "github" } } };
34
+ const d32 = { k: "o", p: { "payload": { k: "o", p: { "details": { k: "d", v: null, i: { k: "o", p: { "annotations": { k: "d", v: [] }, "failedJobs": { k: "d", v: [] }, "truncated": { k: "d", v: false }, "pipeline": { k: "o", p: { "url": { k: "d", v: null }, "ref": { k: "d", v: null }, "sha": { k: "d", v: null }, "stages": { k: "d", v: [], i: { k: "a", e: { k: "o", p: { "jobs": { k: "d", v: [], i: { k: "a", e: { k: "o", p: { "url": { k: "d", v: null }, "allowFailure": { k: "d", v: false }, "durationSeconds": { k: "d", v: null } } } } } } } } } } } } } } } } } };
35
+ const d33 = { k: "o", p: { "message": { k: "d", v: "" } } };
36
+ const d34 = { k: "a", e: { k: "o", p: { "enabled": { k: "d", v: true } } } };
37
+ const d35 = { k: "o", p: { "payload": { k: "o", p: { "entries": d34, "compactSnapshot": { k: "o", p: { "entries": d34 } } } } } };
38
+ const d36 = { k: "o", p: { "payload": { k: "o", p: { "snapshot": { k: "o", p: { "items": { k: "a", e: d5 }, "pendingPermissions": d2 } } } } } };
39
+ const d37 = { k: "o", p: { "payload": { k: "o", p: { "loop": { k: "o", p: { "modeId": { k: "d", v: null }, "verifierModeId": { k: "d", v: null } } } } } } };
40
+ const d38 = { k: "o", p: { "attachments": d22, "labels": { k: "d", v: {} } } };
37
41
  export const AGENT_SNAPSHOT_DEFAULTS = d3;
38
42
  export const SESSION_OUTBOUND_DEFAULTS = {
39
43
  "hub.execution.agent.create.response": d4,
@@ -55,52 +59,58 @@ export const SESSION_OUTBOUND_DEFAULTS = {
55
59
  "workspace.script.list.response": d19,
56
60
  "workspace.script.start.response": d19,
57
61
  "workspace.script.stop.response": d19,
62
+ "workspace.script.tunnel.open.response": d19,
63
+ "workspace.script.tunnel.close.response": d19,
58
64
  "fetch_agent_response": { k: "o", p: { "payload": d10 } },
59
65
  "fetch_agent_timeline_response": { k: "o", p: { "payload": { k: "o", p: { "agent": d3, "entries": d20 } } } },
60
66
  "agent.provider_subagents.timeline.get.response": { k: "o", p: { "payload": { k: "o", p: { "rows": d20 } } } },
61
67
  "agent.provider_subagents.update": { k: "o", p: { "payload": { k: "m", b: [{ m: { "kind": "timeline" }, n: d6 }] } } },
68
+ "agent.queue.sync.response": { k: "o", p: { "payload": { k: "o", p: { "snapshot": { k: "o", p: { "items": d24 } }, "delta": d25 } } } },
69
+ "agent.queue.withdraw.response": { k: "o", p: { "payload": { k: "o", p: { "item": d23 } } } },
70
+ "agent.queue.update": { k: "o", p: { "payload": { k: "o", p: { "event": d25 } } } },
62
71
  "agent.timeline.set_subscription.response": { k: "o", p: { "payload": { k: "o", p: { "agents": { k: "r", e: d3 } } } } },
63
72
  "cancel_agent_response": d4,
64
73
  "clear_agent_attention_response": { k: "o", p: { "payload": { k: "o", p: { "agents": { k: "a", e: d3 } } } } },
65
- "workspace.create.response": { k: "o", p: { "payload": { k: "o", p: { "agent": d3, "creation": d21, "workspace": d13 } } } },
66
- "agent.create.response": { k: "o", p: { "payload": { k: "o", p: { "agent": d3, "creation": d21 } } } },
67
- "workspace.create.update": d22,
68
- "agent.create.update": d22,
69
- "creation.subscribe.response": { k: "o", p: { "payload": { k: "o", p: { "snapshot": d21 } } } },
70
- "get_daemon_config_response": d24,
71
- "set_daemon_config_response": d24,
74
+ "workspace.create.response": { k: "o", p: { "payload": { k: "o", p: { "agent": d3, "creation": d26, "workspace": d13 } } } },
75
+ "agent.create.response": { k: "o", p: { "payload": { k: "o", p: { "agent": d3, "creation": d26 } } } },
76
+ "workspace.create.update": d27,
77
+ "agent.create.update": d27,
78
+ "creation.subscribe.response": { k: "o", p: { "payload": { k: "o", p: { "snapshot": d26 } } } },
79
+ "agent.provider.switch.response": d4,
80
+ "get_daemon_config_response": d29,
81
+ "set_daemon_config_response": d29,
72
82
  "project.remove.response": { k: "o", p: { "payload": { k: "o", p: { "removedWorkspaceIds": { k: "d", v: [] } } } } },
73
83
  "wait_for_finish_response": { k: "o", p: { "payload": { k: "o", p: { "final": d3 } } } },
74
84
  "agent_permission_request": { k: "o", p: { "payload": d7 } },
75
- "checkout_status_response": { k: "o", p: { "payload": d25 } },
76
- "checkout_status_update": { k: "o", p: { "payload": { k: "s", s: [d25, { k: "o", p: { "prStatus": d26 } }] } } },
77
- "checkout.refresh.response": { k: "o", p: { "payload": { k: "o", p: { "status": d25 } } } },
78
- "checkout.forge.get_check_details.response": d27,
79
- "checkout.github.get_check_details.response": d27,
80
- "checkout_pr_status_response": { k: "o", p: { "payload": d26 } },
81
- "pull_request_timeline_response": { k: "o", p: { "payload": { k: "p", v: {}, i: { k: "o", p: { "cwd": { k: "d", v: "" }, "prNumber": { k: "d", v: null }, "items": { k: "d", v: [], i: { k: "a", e: { k: "m", b: [{ m: { "kind": "review" }, n: { k: "o", p: { "id": { k: "d", v: "" }, "author": { k: "d", v: "unknown" }, "body": { k: "d", v: "" }, "createdAt": { k: "d", v: 0 }, "url": { k: "d", v: "" }, "reviewState": { k: "d", v: "commented" } } } }, { m: { "kind": "comment" }, n: { k: "o", p: { "id": { k: "d", v: "" }, "author": { k: "d", v: "unknown" }, "body": { k: "d", v: "" }, "createdAt": { k: "d", v: 0 }, "url": { k: "d", v: "" } } } }] } } }, "truncated": { k: "d", v: false }, "error": { k: "d", v: null, i: { k: "m", b: [{ m: { "kind": "not_found" }, n: d28 }, { m: { "kind": "forbidden" }, n: d28 }, { m: { "kind": "unknown" }, n: d28 }] } }, "requestId": { k: "d", v: "" }, "githubFeaturesEnabled": { k: "d", v: true } } } } } },
85
+ "checkout_status_response": { k: "o", p: { "payload": d30 } },
86
+ "checkout_status_update": { k: "o", p: { "payload": { k: "s", s: [d30, { k: "o", p: { "prStatus": d31 } }] } } },
87
+ "checkout.refresh.response": { k: "o", p: { "payload": { k: "o", p: { "status": d30 } } } },
88
+ "checkout.forge.get_check_details.response": d32,
89
+ "checkout.github.get_check_details.response": d32,
90
+ "checkout_pr_status_response": { k: "o", p: { "payload": d31 } },
91
+ "pull_request_timeline_response": { k: "o", p: { "payload": { k: "p", v: {}, i: { k: "o", p: { "cwd": { k: "d", v: "" }, "prNumber": { k: "d", v: null }, "items": { k: "d", v: [], i: { k: "a", e: { k: "m", b: [{ m: { "kind": "review" }, n: { k: "o", p: { "id": { k: "d", v: "" }, "author": { k: "d", v: "unknown" }, "body": { k: "d", v: "" }, "createdAt": { k: "d", v: 0 }, "url": { k: "d", v: "" }, "reviewState": { k: "d", v: "commented" } } } }, { m: { "kind": "comment" }, n: { k: "o", p: { "id": { k: "d", v: "" }, "author": { k: "d", v: "unknown" }, "body": { k: "d", v: "" }, "createdAt": { k: "d", v: 0 }, "url": { k: "d", v: "" } } } }] } } }, "truncated": { k: "d", v: false }, "error": { k: "d", v: null, i: { k: "m", b: [{ m: { "kind": "not_found" }, n: d33 }, { m: { "kind": "forbidden" }, n: d33 }, { m: { "kind": "unknown" }, n: d33 }] } }, "requestId": { k: "d", v: "" }, "githubFeaturesEnabled": { k: "d", v: true } } } } } },
82
92
  "directory_suggestions_response": { k: "o", p: { "payload": { k: "o", p: { "entries": { k: "d", v: [] } } } } },
83
93
  "create_paseo_worktree_response": d18,
84
- "get_providers_snapshot_response": d30,
85
- "providers_snapshot_update": d30,
86
- "agent.sidechat.execute.response": d31,
87
- "agent.sidechat.subscribe.response": d31,
88
- "agent.sidechat.update": d31,
89
- "loop/run/response": d32,
90
- "loop/inspect/response": d32,
91
- "loop/logs/response": d32,
92
- "loop/stop/response": d32,
94
+ "get_providers_snapshot_response": d35,
95
+ "providers_snapshot_update": d35,
96
+ "agent.sidechat.execute.response": d36,
97
+ "agent.sidechat.subscribe.response": d36,
98
+ "agent.sidechat.update": d36,
99
+ "loop/run/response": d37,
100
+ "loop/inspect/response": d37,
101
+ "loop/logs/response": d37,
102
+ "loop/stop/response": d37,
93
103
  };
94
104
  export const SESSION_INBOUND_DEFAULTS = {
95
105
  "browser.automation.execute.response": { k: "o", p: { "payload": { k: "m", b: [{ m: { "ok": true }, n: { k: "o", p: { "result": { k: "m", b: [{ m: { "command": "list_tabs" }, n: { k: "o", p: { "tabs": { k: "a", e: { k: "o", p: { "isActive": { k: "d", v: false }, "isLoading": { k: "d", v: false } } } } } } }] } } } }, { m: { "ok": false }, n: { k: "o", p: { "error": { k: "o", p: { "retryable": { k: "d", v: false } } } } } }] } } },
96
106
  "close_items_request": { k: "o", p: { "agentIds": { k: "d", v: [] }, "terminalIds": { k: "d", v: [] } } },
97
107
  "hub.management.daemon.connect.request": { k: "o", p: { "permissions": { k: "d", v: [] } } },
98
108
  "hub.management.daemon.permissions.update.request": { k: "o", p: { "grant": { k: "d", v: [] }, "revoke": { k: "d", v: [] } } },
99
- "set_daemon_config_request": { k: "o", p: { "config": { k: "o", p: { "browserTools": d23 } } } },
109
+ "set_daemon_config_request": { k: "o", p: { "config": { k: "o", p: { "browserTools": d28 } } } },
100
110
  "create_agent_request": { k: "o", p: { "labels": { k: "d", v: {} } } },
101
111
  "paseo_worktree_archive_request": { k: "o", p: { "scope": { k: "d", v: "workspace" }, "deleteWorktreeFromDisk": { k: "d", v: false } } },
102
- "workspace.create.request": { k: "o", p: { "agent": d34 } },
103
- "agent.create.request": d34,
112
+ "workspace.create.request": { k: "o", p: { "agent": d38 } },
113
+ "agent.create.request": d38,
104
114
  "client_heartbeat": { k: "o", p: { "focusedTerminalId": { k: "d", v: null } } },
105
115
  "capture_terminal_request": { k: "o", p: { "stripAnsi": { k: "d", v: true } } },
106
116
  };