@agentdock/wire 0.0.29 → 0.0.31

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.
@@ -34,22 +34,22 @@ export declare const SessionMessageSchema: z.ZodObject<{
34
34
  updatedAt: z.ZodNumber;
35
35
  }, "strip", z.ZodTypeAny, {
36
36
  id: string;
37
- createdAt: number;
38
37
  content: {
39
38
  t: "encrypted";
40
39
  c: string;
41
40
  };
42
41
  seq: number;
42
+ createdAt: number;
43
43
  updatedAt: number;
44
44
  localId?: string | null | undefined;
45
45
  }, {
46
46
  id: string;
47
- createdAt: number;
48
47
  content: {
49
48
  t: "encrypted";
50
49
  c: string;
51
50
  };
52
51
  seq: number;
52
+ createdAt: number;
53
53
  updatedAt: number;
54
54
  localId?: string | null | undefined;
55
55
  }>;
@@ -112,13 +112,13 @@ export declare const SessionProtocolMessageSchema: z.ZodObject<{
112
112
  }, "strip", z.ZodTypeAny, {
113
113
  t: "tool-call-end";
114
114
  call: string;
115
- error?: boolean | undefined;
116
115
  result?: string | undefined;
116
+ error?: boolean | undefined;
117
117
  }, {
118
118
  t: "tool-call-end";
119
119
  call: string;
120
- error?: boolean | undefined;
121
120
  result?: string | undefined;
121
+ error?: boolean | undefined;
122
122
  }>, z.ZodObject<{
123
123
  t: z.ZodLiteral<"file">;
124
124
  ref: z.ZodString;
@@ -366,8 +366,8 @@ export declare const SessionProtocolMessageSchema: z.ZodObject<{
366
366
  } | {
367
367
  t: "tool-call-end";
368
368
  call: string;
369
- error?: boolean | undefined;
370
369
  result?: string | undefined;
370
+ error?: boolean | undefined;
371
371
  } | {
372
372
  t: "file";
373
373
  name: string;
@@ -450,8 +450,8 @@ export declare const SessionProtocolMessageSchema: z.ZodObject<{
450
450
  } | {
451
451
  t: "tool-call-end";
452
452
  call: string;
453
- error?: boolean | undefined;
454
453
  result?: string | undefined;
454
+ error?: boolean | undefined;
455
455
  } | {
456
456
  t: "file";
457
457
  name: string;
@@ -534,8 +534,8 @@ export declare const SessionProtocolMessageSchema: z.ZodObject<{
534
534
  } | {
535
535
  t: "tool-call-end";
536
536
  call: string;
537
- error?: boolean | undefined;
538
537
  result?: string | undefined;
538
+ error?: boolean | undefined;
539
539
  } | {
540
540
  t: "file";
541
541
  name: string;
@@ -618,8 +618,8 @@ export declare const SessionProtocolMessageSchema: z.ZodObject<{
618
618
  } | {
619
619
  t: "tool-call-end";
620
620
  call: string;
621
- error?: boolean | undefined;
622
621
  result?: string | undefined;
622
+ error?: boolean | undefined;
623
623
  } | {
624
624
  t: "file";
625
625
  name: string;
@@ -745,8 +745,8 @@ export declare const SessionProtocolMessageSchema: z.ZodObject<{
745
745
  } | {
746
746
  t: "tool-call-end";
747
747
  call: string;
748
- error?: boolean | undefined;
749
748
  result?: string | undefined;
749
+ error?: boolean | undefined;
750
750
  } | {
751
751
  t: "file";
752
752
  name: string;
@@ -846,8 +846,8 @@ export declare const SessionProtocolMessageSchema: z.ZodObject<{
846
846
  } | {
847
847
  t: "tool-call-end";
848
848
  call: string;
849
- error?: boolean | undefined;
850
849
  result?: string | undefined;
850
+ error?: boolean | undefined;
851
851
  } | {
852
852
  t: "file";
853
853
  name: string;
@@ -1143,13 +1143,13 @@ export declare const MessageContentSchema: z.ZodDiscriminatedUnion<"role", [z.Zo
1143
1143
  }, "strip", z.ZodTypeAny, {
1144
1144
  t: "tool-call-end";
1145
1145
  call: string;
1146
- error?: boolean | undefined;
1147
1146
  result?: string | undefined;
1147
+ error?: boolean | undefined;
1148
1148
  }, {
1149
1149
  t: "tool-call-end";
1150
1150
  call: string;
1151
- error?: boolean | undefined;
1152
1151
  result?: string | undefined;
1152
+ error?: boolean | undefined;
1153
1153
  }>, z.ZodObject<{
1154
1154
  t: z.ZodLiteral<"file">;
1155
1155
  ref: z.ZodString;
@@ -1397,8 +1397,8 @@ export declare const MessageContentSchema: z.ZodDiscriminatedUnion<"role", [z.Zo
1397
1397
  } | {
1398
1398
  t: "tool-call-end";
1399
1399
  call: string;
1400
- error?: boolean | undefined;
1401
1400
  result?: string | undefined;
1401
+ error?: boolean | undefined;
1402
1402
  } | {
1403
1403
  t: "file";
1404
1404
  name: string;
@@ -1481,8 +1481,8 @@ export declare const MessageContentSchema: z.ZodDiscriminatedUnion<"role", [z.Zo
1481
1481
  } | {
1482
1482
  t: "tool-call-end";
1483
1483
  call: string;
1484
- error?: boolean | undefined;
1485
1484
  result?: string | undefined;
1485
+ error?: boolean | undefined;
1486
1486
  } | {
1487
1487
  t: "file";
1488
1488
  name: string;
@@ -1565,8 +1565,8 @@ export declare const MessageContentSchema: z.ZodDiscriminatedUnion<"role", [z.Zo
1565
1565
  } | {
1566
1566
  t: "tool-call-end";
1567
1567
  call: string;
1568
- error?: boolean | undefined;
1569
1568
  result?: string | undefined;
1569
+ error?: boolean | undefined;
1570
1570
  } | {
1571
1571
  t: "file";
1572
1572
  name: string;
@@ -1649,8 +1649,8 @@ export declare const MessageContentSchema: z.ZodDiscriminatedUnion<"role", [z.Zo
1649
1649
  } | {
1650
1650
  t: "tool-call-end";
1651
1651
  call: string;
1652
- error?: boolean | undefined;
1653
1652
  result?: string | undefined;
1653
+ error?: boolean | undefined;
1654
1654
  } | {
1655
1655
  t: "file";
1656
1656
  name: string;
@@ -1776,8 +1776,8 @@ export declare const MessageContentSchema: z.ZodDiscriminatedUnion<"role", [z.Zo
1776
1776
  } | {
1777
1777
  t: "tool-call-end";
1778
1778
  call: string;
1779
- error?: boolean | undefined;
1780
1779
  result?: string | undefined;
1780
+ error?: boolean | undefined;
1781
1781
  } | {
1782
1782
  t: "file";
1783
1783
  name: string;
@@ -1877,8 +1877,8 @@ export declare const MessageContentSchema: z.ZodDiscriminatedUnion<"role", [z.Zo
1877
1877
  } | {
1878
1878
  t: "tool-call-end";
1879
1879
  call: string;
1880
- error?: boolean | undefined;
1881
1880
  result?: string | undefined;
1881
+ error?: boolean | undefined;
1882
1882
  } | {
1883
1883
  t: "file";
1884
1884
  name: string;
package/dist/ops.d.ts CHANGED
@@ -67,17 +67,17 @@ export declare const FileStatSchema: z.ZodObject<{
67
67
  }, "strip", z.ZodTypeAny, {
68
68
  path: string;
69
69
  type: "file" | "directory";
70
- createdAt: string;
71
70
  name: string;
72
71
  size: number;
72
+ createdAt: string;
73
73
  modifiedAt: string;
74
74
  mimeType?: string | undefined;
75
75
  }, {
76
76
  path: string;
77
77
  type: "file" | "directory";
78
- createdAt: string;
79
78
  name: string;
80
79
  size: number;
80
+ createdAt: string;
81
81
  modifiedAt: string;
82
82
  mimeType?: string | undefined;
83
83
  }>;
@@ -105,15 +105,15 @@ export declare const SyncUserSchema: z.ZodObject<{
105
105
  healthStatus: z.ZodNullable<z.ZodString>;
106
106
  enabled: z.ZodBoolean;
107
107
  }, "strip", z.ZodTypeAny, {
108
- displayName: string;
109
108
  machineId: string | null;
109
+ displayName: string;
110
110
  username: string;
111
111
  containerStatus: string;
112
112
  healthStatus: string | null;
113
113
  enabled: boolean;
114
114
  }, {
115
- displayName: string;
116
115
  machineId: string | null;
116
+ displayName: string;
117
117
  username: string;
118
118
  containerStatus: string;
119
119
  healthStatus: string | null;
@@ -130,15 +130,15 @@ export declare const SyncFullPayloadSchema: z.ZodObject<{
130
130
  healthStatus: z.ZodNullable<z.ZodString>;
131
131
  enabled: z.ZodBoolean;
132
132
  }, "strip", z.ZodTypeAny, {
133
- displayName: string;
134
133
  machineId: string | null;
134
+ displayName: string;
135
135
  username: string;
136
136
  containerStatus: string;
137
137
  healthStatus: string | null;
138
138
  enabled: boolean;
139
139
  }, {
140
- displayName: string;
141
140
  machineId: string | null;
141
+ displayName: string;
142
142
  username: string;
143
143
  containerStatus: string;
144
144
  healthStatus: string | null;
@@ -146,8 +146,8 @@ export declare const SyncFullPayloadSchema: z.ZodObject<{
146
146
  }>, "many">;
147
147
  }, "strip", z.ZodTypeAny, {
148
148
  users: {
149
- displayName: string;
150
149
  machineId: string | null;
150
+ displayName: string;
151
151
  username: string;
152
152
  containerStatus: string;
153
153
  healthStatus: string | null;
@@ -155,8 +155,8 @@ export declare const SyncFullPayloadSchema: z.ZodObject<{
155
155
  }[];
156
156
  }, {
157
157
  users: {
158
- displayName: string;
159
158
  machineId: string | null;
159
+ displayName: string;
160
160
  username: string;
161
161
  containerStatus: string;
162
162
  healthStatus: string | null;
package/dist/rpc.d.ts CHANGED
@@ -1,5 +1,6 @@
1
1
  import { z } from 'zod';
2
- export declare const RpcMethod: z.ZodEnum<["spawn-session", "stop-session", "abort", "switch-mode", "approve-permission", "deny-permission", "answer-question", "shutdown-daemon", "get-messages", "get-stats", "get-team-stats", "start-invite", "get-machine-info", "get-agent-settings", "set-agent-settings", "get-labs-settings", "set-labs-settings", "check-path", "backfill-history-session"]>;
2
+ export declare const RpcMethod: z.ZodEnum<["spawn-session", "stop-session", "list-sessions", "abort", "switch-mode", "approve-permission", "deny-permission", "answer-question", "shutdown-daemon", "get-messages", "get-stats", "get-team-stats", "start-invite", "get-machine-info", "get-agent-settings", "set-agent-settings", "get-labs-settings", "set-labs-settings", "check-path", "backfill-history-session", "trigger-upgrade"]>;
3
+ export type RpcMethodType = z.infer<typeof RpcMethod>;
3
4
  /**
4
5
  * Session-scoped RPC methods — registered by `agentdock start` (CLI process).
5
6
  * These operate on a specific session and require the CLI to be running.
@@ -9,14 +10,14 @@ export declare const SESSION_RPC_METHODS: readonly ["answer-question", "approve-
9
10
  * Machine-scoped RPC methods — registered by the persistent daemon only.
10
11
  * These are account/machine-level operations independent of any session.
11
12
  */
12
- export declare const MACHINE_RPC_METHODS: readonly ["start-invite", "get-machine-info", "get-agent-settings", "set-agent-settings", "get-labs-settings", "set-labs-settings", "check-path", "backfill-history-session"];
13
+ export declare const MACHINE_RPC_METHODS: readonly ["start-invite", "get-machine-info", "get-agent-settings", "set-agent-settings", "get-labs-settings", "set-labs-settings", "check-path", "backfill-history-session", "trigger-upgrade"];
13
14
  /**
14
15
  * All RPC methods that must be registered for Web UI to function.
15
16
  * Daemon registers MACHINE_RPC_METHODS; CLI registers SESSION_RPC_METHODS.
16
17
  *
17
18
  * @deprecated Use SESSION_RPC_METHODS or MACHINE_RPC_METHODS directly.
18
19
  */
19
- export declare const DAEMON_REQUIRED_RPC_METHODS: readonly ["answer-question", "approve-permission", "deny-permission", "abort", "stop-session", "start-invite", "get-machine-info", "get-agent-settings", "set-agent-settings", "get-labs-settings", "set-labs-settings", "check-path", "backfill-history-session"];
20
+ export declare const DAEMON_REQUIRED_RPC_METHODS: readonly ["answer-question", "approve-permission", "deny-permission", "abort", "stop-session", "start-invite", "get-machine-info", "get-agent-settings", "set-agent-settings", "get-labs-settings", "set-labs-settings", "check-path", "backfill-history-session", "trigger-upgrade"];
20
21
  export declare const RpcCallSchema: z.ZodObject<{
21
22
  method: z.ZodString;
22
23
  params: z.ZodUnknown;
@@ -43,11 +44,11 @@ export declare const RpcResultSchema: z.ZodDiscriminatedUnion<"ok", [z.ZodObject
43
44
  ok: z.ZodLiteral<false>;
44
45
  error: z.ZodString;
45
46
  }, "strip", z.ZodTypeAny, {
46
- ok: false;
47
47
  error: string;
48
- }, {
49
48
  ok: false;
49
+ }, {
50
50
  error: string;
51
+ ok: false;
51
52
  }>]>;
52
53
  export declare const SpawnSessionParamsSchema: z.ZodObject<{
53
54
  cli: z.ZodEnum<["claude", "copilot", "opencode", "codex", "gemini", "hermes", "openclaw", "qwen"]>;
@@ -129,6 +130,8 @@ export declare const SpawnSessionParamsSchema: z.ZodObject<{
129
130
  dangerouslySkipPermissions: z.ZodOptional<z.ZodBoolean>;
130
131
  /** Enable bypass option without auto-enabling (Claude CLI --allow-dangerously-skip-permissions). */
131
132
  allowDangerouslySkipPermissions: z.ZodOptional<z.ZodBoolean>;
133
+ /** Shell commands to execute before agent starts (same shell, && chained). */
134
+ startupScripts: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
132
135
  }, "strip", z.ZodTypeAny, {
133
136
  permissionMode: "default" | "acceptEdits" | "plan" | "bypassPermissions" | "autoEdit" | "read-only" | "safe-yolo" | "yolo" | "suggest" | "auto-edit" | "full-auto";
134
137
  cli: "claude" | "copilot" | "opencode" | "codex" | "gemini" | "hermes" | "openclaw" | "qwen";
@@ -139,7 +142,6 @@ export declare const SpawnSessionParamsSchema: z.ZodObject<{
139
142
  appendSystemPrompt?: string | undefined;
140
143
  allowedTools?: string[] | undefined;
141
144
  disallowedTools?: string[] | undefined;
142
- machineId?: string | undefined;
143
145
  agent?: string | undefined;
144
146
  prompt?: string | undefined;
145
147
  env?: Record<string, string> | undefined;
@@ -148,6 +150,7 @@ export declare const SpawnSessionParamsSchema: z.ZodObject<{
148
150
  resumeSessionId?: string | undefined;
149
151
  serverSessionId?: string | undefined;
150
152
  maxTurns?: number | undefined;
153
+ machineId?: string | undefined;
151
154
  systemPrompt?: string | undefined;
152
155
  systemPromptFile?: string | undefined;
153
156
  appendSystemPromptFile?: string | undefined;
@@ -173,6 +176,7 @@ export declare const SpawnSessionParamsSchema: z.ZodObject<{
173
176
  pluginDirs?: string[] | undefined;
174
177
  dangerouslySkipPermissions?: boolean | undefined;
175
178
  allowDangerouslySkipPermissions?: boolean | undefined;
179
+ startupScripts?: string[] | undefined;
176
180
  }, {
177
181
  cli: "claude" | "copilot" | "opencode" | "codex" | "gemini" | "hermes" | "openclaw" | "qwen";
178
182
  cwd: string;
@@ -183,7 +187,6 @@ export declare const SpawnSessionParamsSchema: z.ZodObject<{
183
187
  appendSystemPrompt?: string | undefined;
184
188
  allowedTools?: string[] | undefined;
185
189
  disallowedTools?: string[] | undefined;
186
- machineId?: string | undefined;
187
190
  agent?: string | undefined;
188
191
  prompt?: string | undefined;
189
192
  env?: Record<string, string> | undefined;
@@ -192,6 +195,7 @@ export declare const SpawnSessionParamsSchema: z.ZodObject<{
192
195
  resumeSessionId?: string | undefined;
193
196
  serverSessionId?: string | undefined;
194
197
  maxTurns?: number | undefined;
198
+ machineId?: string | undefined;
195
199
  systemPrompt?: string | undefined;
196
200
  systemPromptFile?: string | undefined;
197
201
  appendSystemPromptFile?: string | undefined;
@@ -217,6 +221,7 @@ export declare const SpawnSessionParamsSchema: z.ZodObject<{
217
221
  pluginDirs?: string[] | undefined;
218
222
  dangerouslySkipPermissions?: boolean | undefined;
219
223
  allowDangerouslySkipPermissions?: boolean | undefined;
224
+ startupScripts?: string[] | undefined;
220
225
  }>;
221
226
  export declare const GetMessagesParamsSchema: z.ZodObject<{
222
227
  sessionId: z.ZodString;
@@ -250,22 +255,22 @@ export declare const GetMessagesResponseSchema: z.ZodObject<{
250
255
  updatedAt: z.ZodNumber;
251
256
  }, "strip", z.ZodTypeAny, {
252
257
  id: string;
253
- createdAt: number;
254
258
  content: {
255
259
  t: "encrypted";
256
260
  c: string;
257
261
  };
258
262
  seq: number;
263
+ createdAt: number;
259
264
  updatedAt: number;
260
265
  localId?: string | null | undefined;
261
266
  }, {
262
267
  id: string;
263
- createdAt: number;
264
268
  content: {
265
269
  t: "encrypted";
266
270
  c: string;
267
271
  };
268
272
  seq: number;
273
+ createdAt: number;
269
274
  updatedAt: number;
270
275
  localId?: string | null | undefined;
271
276
  }>, "many">;
@@ -274,12 +279,12 @@ export declare const GetMessagesResponseSchema: z.ZodObject<{
274
279
  }, "strip", z.ZodTypeAny, {
275
280
  messages: {
276
281
  id: string;
277
- createdAt: number;
278
282
  content: {
279
283
  t: "encrypted";
280
284
  c: string;
281
285
  };
282
286
  seq: number;
287
+ createdAt: number;
283
288
  updatedAt: number;
284
289
  localId?: string | null | undefined;
285
290
  }[];
@@ -288,12 +293,12 @@ export declare const GetMessagesResponseSchema: z.ZodObject<{
288
293
  }, {
289
294
  messages: {
290
295
  id: string;
291
- createdAt: number;
292
296
  content: {
293
297
  t: "encrypted";
294
298
  c: string;
295
299
  };
296
300
  seq: number;
301
+ createdAt: number;
297
302
  updatedAt: number;
298
303
  localId?: string | null | undefined;
299
304
  }[];
@@ -334,10 +339,10 @@ export declare const MachineInfoResponseSchema: z.ZodObject<{
334
339
  id: string;
335
340
  }>, "many">>>;
336
341
  }, "strip", z.ZodTypeAny, {
337
- availableAgents: string[];
338
342
  homedir: string;
339
343
  recentCwds: string[];
340
344
  projectPaths: string[];
345
+ availableAgents: string[];
341
346
  defaultCwd?: string | undefined;
342
347
  agentModels?: Record<string, {
343
348
  id: string;
@@ -350,9 +355,9 @@ export declare const MachineInfoResponseSchema: z.ZodObject<{
350
355
  id: string;
351
356
  }[]> | undefined;
352
357
  }, {
353
- availableAgents: string[];
354
358
  homedir: string;
355
359
  recentCwds: string[];
360
+ availableAgents: string[];
356
361
  defaultCwd?: string | undefined;
357
362
  projectPaths?: string[] | undefined;
358
363
  agentModels?: Record<string, {
@@ -413,6 +418,8 @@ export declare const AgentSettingsSchema: z.ZodObject<{
413
418
  httpsProxy?: string | undefined;
414
419
  customEnv?: Record<string, string> | undefined;
415
420
  }>>;
421
+ startupScripts: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
422
+ telemetryEnabled: z.ZodOptional<z.ZodBoolean>;
416
423
  } & {
417
424
  claude: z.ZodOptional<z.ZodObject<{
418
425
  httpProxy: z.ZodOptional<z.ZodString>;
@@ -541,11 +548,13 @@ export declare const AgentSettingsSchema: z.ZodObject<{
541
548
  httpsProxy?: string | undefined;
542
549
  customEnv?: Record<string, string> | undefined;
543
550
  } | undefined;
551
+ startupScripts?: string[] | undefined;
544
552
  defaults?: {
545
553
  httpProxy?: string | undefined;
546
554
  httpsProxy?: string | undefined;
547
555
  customEnv?: Record<string, string> | undefined;
548
556
  } | undefined;
557
+ telemetryEnabled?: boolean | undefined;
549
558
  }, {
550
559
  claude?: {
551
560
  httpProxy?: string | undefined;
@@ -582,11 +591,13 @@ export declare const AgentSettingsSchema: z.ZodObject<{
582
591
  httpsProxy?: string | undefined;
583
592
  customEnv?: Record<string, string> | undefined;
584
593
  } | undefined;
594
+ startupScripts?: string[] | undefined;
585
595
  defaults?: {
586
596
  httpProxy?: string | undefined;
587
597
  httpsProxy?: string | undefined;
588
598
  customEnv?: Record<string, string> | undefined;
589
599
  } | undefined;
600
+ telemetryEnabled?: boolean | undefined;
590
601
  }>;
591
602
  export type RpcCall = z.infer<typeof RpcCallSchema>;
592
603
  export type RpcResult = z.infer<typeof RpcResultSchema>;
package/dist/rpc.d.ts.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"rpc.d.ts","sourceRoot":"","sources":["../src/rpc.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAKxB,eAAO,MAAM,SAAS,wWAoBpB,CAAC;AAEH;;;GAGG;AACH,eAAO,MAAM,mBAAmB,gGAMyB,CAAC;AAE1D;;;GAGG;AACH,eAAO,MAAM,mBAAmB,+KASyB,CAAC;AAE1D;;;;;GAKG;AACH,eAAO,MAAM,2BAA2B,oQAGiB,CAAC;AAE1D,eAAO,MAAM,aAAa;;;;;;;;;;;;EAIxB,CAAC;AAEH,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;IAG1B,CAAC;AAEH,eAAO,MAAM,wBAAwB;;;;;;;;IAQnC,yEAAyE;;IAEzE,sEAAsE;;IAEtE,wEAAwE;;IAExE,+DAA+D;;IAE/D,6DAA6D;;IAE7D,wEAAwE;;IAExE,4EAA4E;;IAE5E,oFAAoF;;IAKpF,+EAA+E;;IAE/E,6EAA6E;;IAE7E,2FAA2F;;IAE3F,+EAA+E;;IAE/E,yEAAyE;;IAEzE,0EAA0E;;IAE1E,oDAAoD;;IAEpD,6EAA6E;;IAE7E,kDAAkD;;IAElD,gEAAgE;;IAEhE,+EAA+E;;IAE/E,+EAA+E;;IAE/E,qEAAqE;;IAErE,qEAAqE;;IAErE,yEAAyE;;IAEzE,6DAA6D;;IAE7D,oEAAoE;;IAEpE,0DAA0D;;IAE1D,wEAAwE;;IAExE,yEAAyE;;IAEzE,8EAA8E;;IAE9E,oFAAoF;;IAEpF,sEAAsE;;IAEtE,+EAA+E;;IAE/E,iEAAiE;;IAEjE,+DAA+D;;IAE/D,gFAAgF;;IAEhF,oGAAoG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAY7B,CAAC;AAEJ,MAAM,MAAM,OAAO,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,aAAa,CAAC,CAAC;AACpD,MAAM,MAAM,SAAS,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,eAAe,CAAC,CAAC;AACxD,MAAM,MAAM,kBAAkB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,wBAAwB,CAAC,CAAC;AAC1E,MAAM,MAAM,iBAAiB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,uBAAuB,CAAC,CAAC;AACxE,MAAM,MAAM,mBAAmB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,yBAAyB,CAAC,CAAC;AAC5E,MAAM,MAAM,mBAAmB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,yBAAyB,CAAC,CAAC;AAC5E,MAAM,MAAM,eAAe,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,qBAAqB,CAAC,CAAC;AACpE,MAAM,MAAM,cAAc,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,oBAAoB,CAAC,CAAC;AAClE,MAAM,MAAM,aAAa,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,mBAAmB,CAAC,CAAC;AAChE,MAAM,MAAM,YAAY,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kBAAkB,CAAC,CAAC"}
package/dist/rpc.js CHANGED
@@ -5,6 +5,7 @@ import { PermissionModeSchema } from './interactionEvents.js';
5
5
  export const RpcMethod = z.enum([
6
6
  'spawn-session',
7
7
  'stop-session',
8
+ 'list-sessions',
8
9
  'abort',
9
10
  'switch-mode',
10
11
  'approve-permission',
@@ -22,6 +23,7 @@ export const RpcMethod = z.enum([
22
23
  'set-labs-settings',
23
24
  'check-path',
24
25
  'backfill-history-session',
26
+ 'trigger-upgrade',
25
27
  ]);
26
28
  /**
27
29
  * Session-scoped RPC methods — registered by `agentdock start` (CLI process).
@@ -47,6 +49,7 @@ export const MACHINE_RPC_METHODS = [
47
49
  'set-labs-settings',
48
50
  'check-path',
49
51
  'backfill-history-session',
52
+ 'trigger-upgrade',
50
53
  ];
51
54
  /**
52
55
  * All RPC methods that must be registered for Web UI to function.
@@ -148,6 +151,8 @@ export const SpawnSessionParamsSchema = z.object({
148
151
  dangerouslySkipPermissions: z.boolean().optional(),
149
152
  /** Enable bypass option without auto-enabling (Claude CLI --allow-dangerously-skip-permissions). */
150
153
  allowDangerouslySkipPermissions: z.boolean().optional(),
154
+ /** Shell commands to execute before agent starts (same shell, && chained). */
155
+ startupScripts: z.array(z.string()).optional(),
151
156
  });
152
157
  // ── Get Messages (session history sync) ─────────────────────────────
153
158
  export const GetMessagesParamsSchema = z.object({
@@ -201,6 +206,8 @@ export const AgentEnvConfigSchema = z.object({
201
206
  export const AgentSettingsSchema = z
202
207
  .object({
203
208
  defaults: AgentEnvConfigSchema.optional(),
209
+ startupScripts: z.array(z.string()).optional(),
210
+ telemetryEnabled: z.boolean().optional(),
204
211
  })
205
212
  .merge(z.object(Object.fromEntries(SPAWNABLE_AGENTS.map((a) => [a, AgentEnvConfigSchema.optional()]))));
206
213
  //# sourceMappingURL=rpc.js.map
package/dist/rpc.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"rpc.js","sourceRoot":"","sources":["../src/rpc.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,oBAAoB,EAAE,MAAM,eAAe,CAAC;AACrD,OAAO,EAAE,eAAe,EAAE,gBAAgB,EAAE,MAAM,kBAAkB,CAAC;AACrE,OAAO,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAC;AAE9D,MAAM,CAAC,MAAM,SAAS,GAAG,CAAC,CAAC,IAAI,CAAC;IAC9B,eAAe;IACf,cAAc;IACd,OAAO;IACP,aAAa;IACb,oBAAoB;IACpB,iBAAiB;IACjB,iBAAiB;IACjB,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3C,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,mBAAmB,GAAG,CAAC;KACjC,MAAM,CAAC;IACN,QAAQ,EAAE,oBAAoB,CAAC,QAAQ,EAAE;IACzC,cAAc,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,CAAC,QAAQ,EAAE;IAC9C,gBAAgB,EAAE,CAAC,CAAC,OAAO,EAAE,CAAC,QAAQ,EAAE;CACzC,CAAC;KACD,KAAK,CACJ,CAAC,CAAC,MAAM,CACN,MAAM,CAAC,WAAW,CAAC,gBAAgB,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,EAAE,oBAAoB,CAAC,QAAQ,EAAE,CAAC,CAAC,CAEnF,CACF,CACF,CAAC"}
@@ -0,0 +1,31 @@
1
+ /**
2
+ * Minimal semver comparison utility.
3
+ *
4
+ * Handles standard semver (major.minor.patch) plus optional pre-release
5
+ * suffixes like `-alpha.1`. No npm dependency needed.
6
+ */
7
+ /** Parsed semver components. */
8
+ export interface SemverParts {
9
+ readonly major: number;
10
+ readonly minor: number;
11
+ readonly patch: number;
12
+ readonly prerelease: string | undefined;
13
+ }
14
+ /**
15
+ * Parse a version string into its components.
16
+ *
17
+ * @returns SemverParts or null if the string doesn't contain a valid version.
18
+ */
19
+ export declare function parseSemver(version: string): SemverParts | null;
20
+ /**
21
+ * Compare two semver version strings.
22
+ *
23
+ * @returns -1 if a < b, 0 if a === b, 1 if a > b.
24
+ * Returns 0 if either version cannot be parsed.
25
+ */
26
+ export declare function compareVersions(a: string, b: string): -1 | 0 | 1;
27
+ /**
28
+ * Check if version `a` satisfies `>= minVersion`.
29
+ */
30
+ export declare function satisfiesMin(version: string, minVersion: string): boolean;
31
+ //# sourceMappingURL=semver.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"semver.d.ts","sourceRoot":"","sources":["../src/semver.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,gCAAgC;AAChC,MAAM,WAAW,WAAW;IAC1B,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;IACvB,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;IACvB,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;IACvB,QAAQ,CAAC,UAAU,EAAE,MAAM,GAAG,SAAS,CAAC;CACzC;AAED;;;;GAIG;AACH,wBAAgB,WAAW,CAAC,OAAO,EAAE,MAAM,GAAG,WAAW,GAAG,IAAI,CAU/D;AAED;;;;;GAKG;AACH,wBAAgB,eAAe,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,GAAG,CAAC,CAAC,GAAG,CAAC,GAAG,CAAC,CAoBhE;AAED;;GAEG;AACH,wBAAgB,YAAY,CAAC,OAAO,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,GAAG,OAAO,CAEzE"}
package/dist/semver.js ADDED
@@ -0,0 +1,60 @@
1
+ /**
2
+ * Minimal semver comparison utility.
3
+ *
4
+ * Handles standard semver (major.minor.patch) plus optional pre-release
5
+ * suffixes like `-alpha.1`. No npm dependency needed.
6
+ */
7
+ /**
8
+ * Parse a version string into its components.
9
+ *
10
+ * @returns SemverParts or null if the string doesn't contain a valid version.
11
+ */
12
+ export function parseSemver(version) {
13
+ const match = version.match(/(\d+)\.(\d+)\.(\d+)(?:-(.+))?/);
14
+ if (!match)
15
+ return null;
16
+ return {
17
+ major: Number(match[1]),
18
+ minor: Number(match[2]),
19
+ patch: Number(match[3]),
20
+ prerelease: match[4],
21
+ };
22
+ }
23
+ /**
24
+ * Compare two semver version strings.
25
+ *
26
+ * @returns -1 if a < b, 0 if a === b, 1 if a > b.
27
+ * Returns 0 if either version cannot be parsed.
28
+ */
29
+ export function compareVersions(a, b) {
30
+ const pa = parseSemver(a);
31
+ const pb = parseSemver(b);
32
+ if (!pa || !pb)
33
+ return 0;
34
+ if (pa.major !== pb.major)
35
+ return pa.major > pb.major ? 1 : -1;
36
+ if (pa.minor !== pb.minor)
37
+ return pa.minor > pb.minor ? 1 : -1;
38
+ if (pa.patch !== pb.patch)
39
+ return pa.patch > pb.patch ? 1 : -1;
40
+ // Pre-release versions have lower precedence than release
41
+ if (pa.prerelease && !pb.prerelease)
42
+ return -1;
43
+ if (!pa.prerelease && pb.prerelease)
44
+ return 1;
45
+ // Both have prerelease — lexicographic compare
46
+ if (pa.prerelease && pb.prerelease) {
47
+ if (pa.prerelease < pb.prerelease)
48
+ return -1;
49
+ if (pa.prerelease > pb.prerelease)
50
+ return 1;
51
+ }
52
+ return 0;
53
+ }
54
+ /**
55
+ * Check if version `a` satisfies `>= minVersion`.
56
+ */
57
+ export function satisfiesMin(version, minVersion) {
58
+ return compareVersions(version, minVersion) >= 0;
59
+ }
60
+ //# sourceMappingURL=semver.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"semver.js","sourceRoot":"","sources":["../src/semver.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAUH;;;;GAIG;AACH,MAAM,UAAU,WAAW,CAAC,OAAe;IACzC,MAAM,KAAK,GAAG,OAAO,CAAC,KAAK,CAAC,+BAA+B,CAAC,CAAC;IAC7D,IAAI,CAAC,KAAK;QAAE,OAAO,IAAI,CAAC;IAExB,OAAO;QACL,KAAK,EAAE,MAAM,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC;QACvB,KAAK,EAAE,MAAM,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC;QACvB,KAAK,EAAE,MAAM,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC;QACvB,UAAU,EAAE,KAAK,CAAC,CAAC,CAAC;KACrB,CAAC;AACJ,CAAC;AAED;;;;;GAKG;AACH,MAAM,UAAU,eAAe,CAAC,CAAS,EAAE,CAAS;IAClD,MAAM,EAAE,GAAG,WAAW,CAAC,CAAC,CAAC,CAAC;IAC1B,MAAM,EAAE,GAAG,WAAW,CAAC,CAAC,CAAC,CAAC;IAC1B,IAAI,CAAC,EAAE,IAAI,CAAC,EAAE;QAA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