@agentdock/wire 0.0.96 → 0.0.97

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 (65) hide show
  1. package/dist/agentCapabilities.d.ts +5 -2
  2. package/dist/agentCapabilities.js +1 -1
  3. package/dist/agentCompatibility.d.ts +83 -0
  4. package/dist/agentCompatibility.js +1 -0
  5. package/dist/agentInstallGuide.js +1 -1
  6. package/dist/checkpointSchemas.d.ts +5 -0
  7. package/dist/checkpointSchemas.js +1 -1
  8. package/dist/enterpriseDirectory.d.ts +8 -8
  9. package/dist/enterpriseFileService.d.ts +7 -0
  10. package/dist/enterpriseFileService.js +1 -0
  11. package/dist/enterprisePolicy.d.ts +169 -0
  12. package/dist/enterprisePolicy.js +1 -1
  13. package/dist/enterprisePolicyExports.d.ts +4 -2
  14. package/dist/enterprisePolicyExports.js +1 -1
  15. package/dist/enterpriseRuntime.d.ts +445 -20
  16. package/dist/enterpriseRuntime.js +1 -1
  17. package/dist/enterpriseUserContainer.d.ts +2 -0
  18. package/dist/enterpriseUserContainer.js +1 -0
  19. package/dist/gateway.d.ts +6 -6
  20. package/dist/gatewayUsage.d.ts +26 -10
  21. package/dist/gatewayUsage.js +1 -1
  22. package/dist/inboundEvents.d.ts +0 -6
  23. package/dist/inboundEvents.js +1 -1
  24. package/dist/index.d.ts +10 -4
  25. package/dist/index.js +1 -1
  26. package/dist/interactionEvents.d.ts +2 -2
  27. package/dist/legacyProtocol.d.ts +36 -36
  28. package/dist/machine.d.ts +1 -6
  29. package/dist/machine.js +1 -1
  30. package/dist/messageMeta.d.ts +9 -7
  31. package/dist/messageMeta.js +1 -1
  32. package/dist/messages.d.ts +36 -36
  33. package/dist/ops.d.ts +112 -0
  34. package/dist/ops.js +1 -1
  35. package/dist/opsExports.d.ts +4 -0
  36. package/dist/opsExports.js +1 -0
  37. package/dist/pushPreferences.d.ts +12 -0
  38. package/dist/pushPreferences.js +1 -0
  39. package/dist/rpc.d.ts +537 -66
  40. package/dist/rpc.js +1 -1
  41. package/dist/scheduledTasks.d.ts +96 -21
  42. package/dist/scheduledTasks.js +1 -1
  43. package/dist/session.d.ts +4 -0
  44. package/dist/session.js +1 -0
  45. package/dist/sessionFiles.d.ts +70 -0
  46. package/dist/sessionFiles.js +1 -0
  47. package/dist/sessionSlashCommands.d.ts +15 -0
  48. package/dist/sessionSlashCommands.js +1 -0
  49. package/dist/spawnError.d.ts +3 -3
  50. package/dist/stats.d.ts +31 -31
  51. package/dist/sync.d.ts +45 -45
  52. package/dist/sync.js +1 -1
  53. package/dist/telemetry.d.ts +13 -13
  54. package/dist/telemetry.js +1 -1
  55. package/dist/workspaceFileReaderProtocol.d.ts +270 -0
  56. package/dist/workspaceFileReaderProtocol.js +1 -0
  57. package/dist/workspaceFileRelay.d.ts +188 -0
  58. package/dist/workspaceFileRelay.js +1 -0
  59. package/package.json +1 -1
  60. package/dist/agentRuntimeSettings.d.ts +0 -139
  61. package/dist/agentRuntimeSettings.js +0 -1
  62. package/dist/enterpriseGateway.d.ts +0 -214
  63. package/dist/enterpriseGateway.js +0 -1
  64. package/dist/goals.d.ts +0 -829
  65. package/dist/goals.js +0 -1
@@ -22,7 +22,7 @@ export declare const UserMessageSchema: z.ZodObject<{
22
22
  allowedTools: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString, "many">>>;
23
23
  disallowedTools: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString, "many">>>;
24
24
  displayText: z.ZodOptional<z.ZodString>;
25
- agentType: z.ZodOptional<z.ZodNullable<z.ZodEnum<["claude", "copilot", "codex", "gemini", "opencode", "hermes", "openclaw", "custom"]>>>;
25
+ agentType: z.ZodOptional<z.ZodNullable<z.ZodEnum<["claude", "codex", "opencode", "pi", "copilot", "gemini", "hermes", "openclaw", "custom"]>>>;
26
26
  startedAt: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
27
27
  sessionStatus: z.ZodOptional<z.ZodNullable<z.ZodEnum<["running", "idle", "completed", "failed", "cancelled"]>>>;
28
28
  }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
@@ -35,7 +35,7 @@ export declare const UserMessageSchema: z.ZodObject<{
35
35
  allowedTools: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString, "many">>>;
36
36
  disallowedTools: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString, "many">>>;
37
37
  displayText: z.ZodOptional<z.ZodString>;
38
- agentType: z.ZodOptional<z.ZodNullable<z.ZodEnum<["claude", "copilot", "codex", "gemini", "opencode", "hermes", "openclaw", "custom"]>>>;
38
+ agentType: z.ZodOptional<z.ZodNullable<z.ZodEnum<["claude", "codex", "opencode", "pi", "copilot", "gemini", "hermes", "openclaw", "custom"]>>>;
39
39
  startedAt: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
40
40
  sessionStatus: z.ZodOptional<z.ZodNullable<z.ZodEnum<["running", "idle", "completed", "failed", "cancelled"]>>>;
41
41
  }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
@@ -48,7 +48,7 @@ export declare const UserMessageSchema: z.ZodObject<{
48
48
  allowedTools: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString, "many">>>;
49
49
  disallowedTools: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString, "many">>>;
50
50
  displayText: z.ZodOptional<z.ZodString>;
51
- agentType: z.ZodOptional<z.ZodNullable<z.ZodEnum<["claude", "copilot", "codex", "gemini", "opencode", "hermes", "openclaw", "custom"]>>>;
51
+ agentType: z.ZodOptional<z.ZodNullable<z.ZodEnum<["claude", "codex", "opencode", "pi", "copilot", "gemini", "hermes", "openclaw", "custom"]>>>;
52
52
  startedAt: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
53
53
  sessionStatus: z.ZodOptional<z.ZodNullable<z.ZodEnum<["running", "idle", "completed", "failed", "cancelled"]>>>;
54
54
  }, z.ZodTypeAny, "passthrough">>>;
@@ -75,7 +75,7 @@ export declare const UserMessageSchema: z.ZodObject<{
75
75
  allowedTools: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString, "many">>>;
76
76
  disallowedTools: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString, "many">>>;
77
77
  displayText: z.ZodOptional<z.ZodString>;
78
- agentType: z.ZodOptional<z.ZodNullable<z.ZodEnum<["claude", "copilot", "codex", "gemini", "opencode", "hermes", "openclaw", "custom"]>>>;
78
+ agentType: z.ZodOptional<z.ZodNullable<z.ZodEnum<["claude", "codex", "opencode", "pi", "copilot", "gemini", "hermes", "openclaw", "custom"]>>>;
79
79
  startedAt: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
80
80
  sessionStatus: z.ZodOptional<z.ZodNullable<z.ZodEnum<["running", "idle", "completed", "failed", "cancelled"]>>>;
81
81
  }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
@@ -88,7 +88,7 @@ export declare const UserMessageSchema: z.ZodObject<{
88
88
  allowedTools: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString, "many">>>;
89
89
  disallowedTools: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString, "many">>>;
90
90
  displayText: z.ZodOptional<z.ZodString>;
91
- agentType: z.ZodOptional<z.ZodNullable<z.ZodEnum<["claude", "copilot", "codex", "gemini", "opencode", "hermes", "openclaw", "custom"]>>>;
91
+ agentType: z.ZodOptional<z.ZodNullable<z.ZodEnum<["claude", "codex", "opencode", "pi", "copilot", "gemini", "hermes", "openclaw", "custom"]>>>;
92
92
  startedAt: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
93
93
  sessionStatus: z.ZodOptional<z.ZodNullable<z.ZodEnum<["running", "idle", "completed", "failed", "cancelled"]>>>;
94
94
  }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
@@ -101,7 +101,7 @@ export declare const UserMessageSchema: z.ZodObject<{
101
101
  allowedTools: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString, "many">>>;
102
102
  disallowedTools: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString, "many">>>;
103
103
  displayText: z.ZodOptional<z.ZodString>;
104
- agentType: z.ZodOptional<z.ZodNullable<z.ZodEnum<["claude", "copilot", "codex", "gemini", "opencode", "hermes", "openclaw", "custom"]>>>;
104
+ agentType: z.ZodOptional<z.ZodNullable<z.ZodEnum<["claude", "codex", "opencode", "pi", "copilot", "gemini", "hermes", "openclaw", "custom"]>>>;
105
105
  startedAt: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
106
106
  sessionStatus: z.ZodOptional<z.ZodNullable<z.ZodEnum<["running", "idle", "completed", "failed", "cancelled"]>>>;
107
107
  }, z.ZodTypeAny, "passthrough">>>;
@@ -128,7 +128,7 @@ export declare const UserMessageSchema: z.ZodObject<{
128
128
  allowedTools: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString, "many">>>;
129
129
  disallowedTools: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString, "many">>>;
130
130
  displayText: z.ZodOptional<z.ZodString>;
131
- agentType: z.ZodOptional<z.ZodNullable<z.ZodEnum<["claude", "copilot", "codex", "gemini", "opencode", "hermes", "openclaw", "custom"]>>>;
131
+ agentType: z.ZodOptional<z.ZodNullable<z.ZodEnum<["claude", "codex", "opencode", "pi", "copilot", "gemini", "hermes", "openclaw", "custom"]>>>;
132
132
  startedAt: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
133
133
  sessionStatus: z.ZodOptional<z.ZodNullable<z.ZodEnum<["running", "idle", "completed", "failed", "cancelled"]>>>;
134
134
  }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
@@ -141,7 +141,7 @@ export declare const UserMessageSchema: z.ZodObject<{
141
141
  allowedTools: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString, "many">>>;
142
142
  disallowedTools: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString, "many">>>;
143
143
  displayText: z.ZodOptional<z.ZodString>;
144
- agentType: z.ZodOptional<z.ZodNullable<z.ZodEnum<["claude", "copilot", "codex", "gemini", "opencode", "hermes", "openclaw", "custom"]>>>;
144
+ agentType: z.ZodOptional<z.ZodNullable<z.ZodEnum<["claude", "codex", "opencode", "pi", "copilot", "gemini", "hermes", "openclaw", "custom"]>>>;
145
145
  startedAt: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
146
146
  sessionStatus: z.ZodOptional<z.ZodNullable<z.ZodEnum<["running", "idle", "completed", "failed", "cancelled"]>>>;
147
147
  }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
@@ -154,7 +154,7 @@ export declare const UserMessageSchema: z.ZodObject<{
154
154
  allowedTools: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString, "many">>>;
155
155
  disallowedTools: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString, "many">>>;
156
156
  displayText: z.ZodOptional<z.ZodString>;
157
- agentType: z.ZodOptional<z.ZodNullable<z.ZodEnum<["claude", "copilot", "codex", "gemini", "opencode", "hermes", "openclaw", "custom"]>>>;
157
+ agentType: z.ZodOptional<z.ZodNullable<z.ZodEnum<["claude", "codex", "opencode", "pi", "copilot", "gemini", "hermes", "openclaw", "custom"]>>>;
158
158
  startedAt: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
159
159
  sessionStatus: z.ZodOptional<z.ZodNullable<z.ZodEnum<["running", "idle", "completed", "failed", "cancelled"]>>>;
160
160
  }, z.ZodTypeAny, "passthrough">>>;
@@ -179,7 +179,7 @@ export declare const AgentMessageSchema: z.ZodObject<{
179
179
  allowedTools: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString, "many">>>;
180
180
  disallowedTools: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString, "many">>>;
181
181
  displayText: z.ZodOptional<z.ZodString>;
182
- agentType: z.ZodOptional<z.ZodNullable<z.ZodEnum<["claude", "copilot", "codex", "gemini", "opencode", "hermes", "openclaw", "custom"]>>>;
182
+ agentType: z.ZodOptional<z.ZodNullable<z.ZodEnum<["claude", "codex", "opencode", "pi", "copilot", "gemini", "hermes", "openclaw", "custom"]>>>;
183
183
  startedAt: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
184
184
  sessionStatus: z.ZodOptional<z.ZodNullable<z.ZodEnum<["running", "idle", "completed", "failed", "cancelled"]>>>;
185
185
  }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
@@ -192,7 +192,7 @@ export declare const AgentMessageSchema: z.ZodObject<{
192
192
  allowedTools: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString, "many">>>;
193
193
  disallowedTools: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString, "many">>>;
194
194
  displayText: z.ZodOptional<z.ZodString>;
195
- agentType: z.ZodOptional<z.ZodNullable<z.ZodEnum<["claude", "copilot", "codex", "gemini", "opencode", "hermes", "openclaw", "custom"]>>>;
195
+ agentType: z.ZodOptional<z.ZodNullable<z.ZodEnum<["claude", "codex", "opencode", "pi", "copilot", "gemini", "hermes", "openclaw", "custom"]>>>;
196
196
  startedAt: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
197
197
  sessionStatus: z.ZodOptional<z.ZodNullable<z.ZodEnum<["running", "idle", "completed", "failed", "cancelled"]>>>;
198
198
  }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
@@ -205,7 +205,7 @@ export declare const AgentMessageSchema: z.ZodObject<{
205
205
  allowedTools: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString, "many">>>;
206
206
  disallowedTools: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString, "many">>>;
207
207
  displayText: z.ZodOptional<z.ZodString>;
208
- agentType: z.ZodOptional<z.ZodNullable<z.ZodEnum<["claude", "copilot", "codex", "gemini", "opencode", "hermes", "openclaw", "custom"]>>>;
208
+ agentType: z.ZodOptional<z.ZodNullable<z.ZodEnum<["claude", "codex", "opencode", "pi", "copilot", "gemini", "hermes", "openclaw", "custom"]>>>;
209
209
  startedAt: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
210
210
  sessionStatus: z.ZodOptional<z.ZodNullable<z.ZodEnum<["running", "idle", "completed", "failed", "cancelled"]>>>;
211
211
  }, z.ZodTypeAny, "passthrough">>>;
@@ -228,7 +228,7 @@ export declare const AgentMessageSchema: z.ZodObject<{
228
228
  allowedTools: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString, "many">>>;
229
229
  disallowedTools: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString, "many">>>;
230
230
  displayText: z.ZodOptional<z.ZodString>;
231
- agentType: z.ZodOptional<z.ZodNullable<z.ZodEnum<["claude", "copilot", "codex", "gemini", "opencode", "hermes", "openclaw", "custom"]>>>;
231
+ agentType: z.ZodOptional<z.ZodNullable<z.ZodEnum<["claude", "codex", "opencode", "pi", "copilot", "gemini", "hermes", "openclaw", "custom"]>>>;
232
232
  startedAt: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
233
233
  sessionStatus: z.ZodOptional<z.ZodNullable<z.ZodEnum<["running", "idle", "completed", "failed", "cancelled"]>>>;
234
234
  }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
@@ -241,7 +241,7 @@ export declare const AgentMessageSchema: z.ZodObject<{
241
241
  allowedTools: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString, "many">>>;
242
242
  disallowedTools: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString, "many">>>;
243
243
  displayText: z.ZodOptional<z.ZodString>;
244
- agentType: z.ZodOptional<z.ZodNullable<z.ZodEnum<["claude", "copilot", "codex", "gemini", "opencode", "hermes", "openclaw", "custom"]>>>;
244
+ agentType: z.ZodOptional<z.ZodNullable<z.ZodEnum<["claude", "codex", "opencode", "pi", "copilot", "gemini", "hermes", "openclaw", "custom"]>>>;
245
245
  startedAt: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
246
246
  sessionStatus: z.ZodOptional<z.ZodNullable<z.ZodEnum<["running", "idle", "completed", "failed", "cancelled"]>>>;
247
247
  }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
@@ -254,7 +254,7 @@ export declare const AgentMessageSchema: z.ZodObject<{
254
254
  allowedTools: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString, "many">>>;
255
255
  disallowedTools: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString, "many">>>;
256
256
  displayText: z.ZodOptional<z.ZodString>;
257
- agentType: z.ZodOptional<z.ZodNullable<z.ZodEnum<["claude", "copilot", "codex", "gemini", "opencode", "hermes", "openclaw", "custom"]>>>;
257
+ agentType: z.ZodOptional<z.ZodNullable<z.ZodEnum<["claude", "codex", "opencode", "pi", "copilot", "gemini", "hermes", "openclaw", "custom"]>>>;
258
258
  startedAt: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
259
259
  sessionStatus: z.ZodOptional<z.ZodNullable<z.ZodEnum<["running", "idle", "completed", "failed", "cancelled"]>>>;
260
260
  }, z.ZodTypeAny, "passthrough">>>;
@@ -277,7 +277,7 @@ export declare const AgentMessageSchema: z.ZodObject<{
277
277
  allowedTools: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString, "many">>>;
278
278
  disallowedTools: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString, "many">>>;
279
279
  displayText: z.ZodOptional<z.ZodString>;
280
- agentType: z.ZodOptional<z.ZodNullable<z.ZodEnum<["claude", "copilot", "codex", "gemini", "opencode", "hermes", "openclaw", "custom"]>>>;
280
+ agentType: z.ZodOptional<z.ZodNullable<z.ZodEnum<["claude", "codex", "opencode", "pi", "copilot", "gemini", "hermes", "openclaw", "custom"]>>>;
281
281
  startedAt: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
282
282
  sessionStatus: z.ZodOptional<z.ZodNullable<z.ZodEnum<["running", "idle", "completed", "failed", "cancelled"]>>>;
283
283
  }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
@@ -290,7 +290,7 @@ export declare const AgentMessageSchema: z.ZodObject<{
290
290
  allowedTools: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString, "many">>>;
291
291
  disallowedTools: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString, "many">>>;
292
292
  displayText: z.ZodOptional<z.ZodString>;
293
- agentType: z.ZodOptional<z.ZodNullable<z.ZodEnum<["claude", "copilot", "codex", "gemini", "opencode", "hermes", "openclaw", "custom"]>>>;
293
+ agentType: z.ZodOptional<z.ZodNullable<z.ZodEnum<["claude", "codex", "opencode", "pi", "copilot", "gemini", "hermes", "openclaw", "custom"]>>>;
294
294
  startedAt: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
295
295
  sessionStatus: z.ZodOptional<z.ZodNullable<z.ZodEnum<["running", "idle", "completed", "failed", "cancelled"]>>>;
296
296
  }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
@@ -303,7 +303,7 @@ export declare const AgentMessageSchema: z.ZodObject<{
303
303
  allowedTools: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString, "many">>>;
304
304
  disallowedTools: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString, "many">>>;
305
305
  displayText: z.ZodOptional<z.ZodString>;
306
- agentType: z.ZodOptional<z.ZodNullable<z.ZodEnum<["claude", "copilot", "codex", "gemini", "opencode", "hermes", "openclaw", "custom"]>>>;
306
+ agentType: z.ZodOptional<z.ZodNullable<z.ZodEnum<["claude", "codex", "opencode", "pi", "copilot", "gemini", "hermes", "openclaw", "custom"]>>>;
307
307
  startedAt: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
308
308
  sessionStatus: z.ZodOptional<z.ZodNullable<z.ZodEnum<["running", "idle", "completed", "failed", "cancelled"]>>>;
309
309
  }, z.ZodTypeAny, "passthrough">>>;
@@ -332,7 +332,7 @@ export declare const LegacyMessageContentSchema: z.ZodDiscriminatedUnion<"role",
332
332
  allowedTools: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString, "many">>>;
333
333
  disallowedTools: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString, "many">>>;
334
334
  displayText: z.ZodOptional<z.ZodString>;
335
- agentType: z.ZodOptional<z.ZodNullable<z.ZodEnum<["claude", "copilot", "codex", "gemini", "opencode", "hermes", "openclaw", "custom"]>>>;
335
+ agentType: z.ZodOptional<z.ZodNullable<z.ZodEnum<["claude", "codex", "opencode", "pi", "copilot", "gemini", "hermes", "openclaw", "custom"]>>>;
336
336
  startedAt: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
337
337
  sessionStatus: z.ZodOptional<z.ZodNullable<z.ZodEnum<["running", "idle", "completed", "failed", "cancelled"]>>>;
338
338
  }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
@@ -345,7 +345,7 @@ export declare const LegacyMessageContentSchema: z.ZodDiscriminatedUnion<"role",
345
345
  allowedTools: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString, "many">>>;
346
346
  disallowedTools: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString, "many">>>;
347
347
  displayText: z.ZodOptional<z.ZodString>;
348
- agentType: z.ZodOptional<z.ZodNullable<z.ZodEnum<["claude", "copilot", "codex", "gemini", "opencode", "hermes", "openclaw", "custom"]>>>;
348
+ agentType: z.ZodOptional<z.ZodNullable<z.ZodEnum<["claude", "codex", "opencode", "pi", "copilot", "gemini", "hermes", "openclaw", "custom"]>>>;
349
349
  startedAt: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
350
350
  sessionStatus: z.ZodOptional<z.ZodNullable<z.ZodEnum<["running", "idle", "completed", "failed", "cancelled"]>>>;
351
351
  }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
@@ -358,7 +358,7 @@ export declare const LegacyMessageContentSchema: z.ZodDiscriminatedUnion<"role",
358
358
  allowedTools: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString, "many">>>;
359
359
  disallowedTools: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString, "many">>>;
360
360
  displayText: z.ZodOptional<z.ZodString>;
361
- agentType: z.ZodOptional<z.ZodNullable<z.ZodEnum<["claude", "copilot", "codex", "gemini", "opencode", "hermes", "openclaw", "custom"]>>>;
361
+ agentType: z.ZodOptional<z.ZodNullable<z.ZodEnum<["claude", "codex", "opencode", "pi", "copilot", "gemini", "hermes", "openclaw", "custom"]>>>;
362
362
  startedAt: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
363
363
  sessionStatus: z.ZodOptional<z.ZodNullable<z.ZodEnum<["running", "idle", "completed", "failed", "cancelled"]>>>;
364
364
  }, z.ZodTypeAny, "passthrough">>>;
@@ -385,7 +385,7 @@ export declare const LegacyMessageContentSchema: z.ZodDiscriminatedUnion<"role",
385
385
  allowedTools: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString, "many">>>;
386
386
  disallowedTools: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString, "many">>>;
387
387
  displayText: z.ZodOptional<z.ZodString>;
388
- agentType: z.ZodOptional<z.ZodNullable<z.ZodEnum<["claude", "copilot", "codex", "gemini", "opencode", "hermes", "openclaw", "custom"]>>>;
388
+ agentType: z.ZodOptional<z.ZodNullable<z.ZodEnum<["claude", "codex", "opencode", "pi", "copilot", "gemini", "hermes", "openclaw", "custom"]>>>;
389
389
  startedAt: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
390
390
  sessionStatus: z.ZodOptional<z.ZodNullable<z.ZodEnum<["running", "idle", "completed", "failed", "cancelled"]>>>;
391
391
  }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
@@ -398,7 +398,7 @@ export declare const LegacyMessageContentSchema: z.ZodDiscriminatedUnion<"role",
398
398
  allowedTools: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString, "many">>>;
399
399
  disallowedTools: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString, "many">>>;
400
400
  displayText: z.ZodOptional<z.ZodString>;
401
- agentType: z.ZodOptional<z.ZodNullable<z.ZodEnum<["claude", "copilot", "codex", "gemini", "opencode", "hermes", "openclaw", "custom"]>>>;
401
+ agentType: z.ZodOptional<z.ZodNullable<z.ZodEnum<["claude", "codex", "opencode", "pi", "copilot", "gemini", "hermes", "openclaw", "custom"]>>>;
402
402
  startedAt: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
403
403
  sessionStatus: z.ZodOptional<z.ZodNullable<z.ZodEnum<["running", "idle", "completed", "failed", "cancelled"]>>>;
404
404
  }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
@@ -411,7 +411,7 @@ export declare const LegacyMessageContentSchema: z.ZodDiscriminatedUnion<"role",
411
411
  allowedTools: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString, "many">>>;
412
412
  disallowedTools: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString, "many">>>;
413
413
  displayText: z.ZodOptional<z.ZodString>;
414
- agentType: z.ZodOptional<z.ZodNullable<z.ZodEnum<["claude", "copilot", "codex", "gemini", "opencode", "hermes", "openclaw", "custom"]>>>;
414
+ agentType: z.ZodOptional<z.ZodNullable<z.ZodEnum<["claude", "codex", "opencode", "pi", "copilot", "gemini", "hermes", "openclaw", "custom"]>>>;
415
415
  startedAt: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
416
416
  sessionStatus: z.ZodOptional<z.ZodNullable<z.ZodEnum<["running", "idle", "completed", "failed", "cancelled"]>>>;
417
417
  }, z.ZodTypeAny, "passthrough">>>;
@@ -438,7 +438,7 @@ export declare const LegacyMessageContentSchema: z.ZodDiscriminatedUnion<"role",
438
438
  allowedTools: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString, "many">>>;
439
439
  disallowedTools: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString, "many">>>;
440
440
  displayText: z.ZodOptional<z.ZodString>;
441
- agentType: z.ZodOptional<z.ZodNullable<z.ZodEnum<["claude", "copilot", "codex", "gemini", "opencode", "hermes", "openclaw", "custom"]>>>;
441
+ agentType: z.ZodOptional<z.ZodNullable<z.ZodEnum<["claude", "codex", "opencode", "pi", "copilot", "gemini", "hermes", "openclaw", "custom"]>>>;
442
442
  startedAt: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
443
443
  sessionStatus: z.ZodOptional<z.ZodNullable<z.ZodEnum<["running", "idle", "completed", "failed", "cancelled"]>>>;
444
444
  }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
@@ -451,7 +451,7 @@ export declare const LegacyMessageContentSchema: z.ZodDiscriminatedUnion<"role",
451
451
  allowedTools: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString, "many">>>;
452
452
  disallowedTools: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString, "many">>>;
453
453
  displayText: z.ZodOptional<z.ZodString>;
454
- agentType: z.ZodOptional<z.ZodNullable<z.ZodEnum<["claude", "copilot", "codex", "gemini", "opencode", "hermes", "openclaw", "custom"]>>>;
454
+ agentType: z.ZodOptional<z.ZodNullable<z.ZodEnum<["claude", "codex", "opencode", "pi", "copilot", "gemini", "hermes", "openclaw", "custom"]>>>;
455
455
  startedAt: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
456
456
  sessionStatus: z.ZodOptional<z.ZodNullable<z.ZodEnum<["running", "idle", "completed", "failed", "cancelled"]>>>;
457
457
  }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
@@ -464,7 +464,7 @@ export declare const LegacyMessageContentSchema: z.ZodDiscriminatedUnion<"role",
464
464
  allowedTools: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString, "many">>>;
465
465
  disallowedTools: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString, "many">>>;
466
466
  displayText: z.ZodOptional<z.ZodString>;
467
- agentType: z.ZodOptional<z.ZodNullable<z.ZodEnum<["claude", "copilot", "codex", "gemini", "opencode", "hermes", "openclaw", "custom"]>>>;
467
+ agentType: z.ZodOptional<z.ZodNullable<z.ZodEnum<["claude", "codex", "opencode", "pi", "copilot", "gemini", "hermes", "openclaw", "custom"]>>>;
468
468
  startedAt: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
469
469
  sessionStatus: z.ZodOptional<z.ZodNullable<z.ZodEnum<["running", "idle", "completed", "failed", "cancelled"]>>>;
470
470
  }, z.ZodTypeAny, "passthrough">>>;
@@ -487,7 +487,7 @@ export declare const LegacyMessageContentSchema: z.ZodDiscriminatedUnion<"role",
487
487
  allowedTools: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString, "many">>>;
488
488
  disallowedTools: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString, "many">>>;
489
489
  displayText: z.ZodOptional<z.ZodString>;
490
- agentType: z.ZodOptional<z.ZodNullable<z.ZodEnum<["claude", "copilot", "codex", "gemini", "opencode", "hermes", "openclaw", "custom"]>>>;
490
+ agentType: z.ZodOptional<z.ZodNullable<z.ZodEnum<["claude", "codex", "opencode", "pi", "copilot", "gemini", "hermes", "openclaw", "custom"]>>>;
491
491
  startedAt: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
492
492
  sessionStatus: z.ZodOptional<z.ZodNullable<z.ZodEnum<["running", "idle", "completed", "failed", "cancelled"]>>>;
493
493
  }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
@@ -500,7 +500,7 @@ export declare const LegacyMessageContentSchema: z.ZodDiscriminatedUnion<"role",
500
500
  allowedTools: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString, "many">>>;
501
501
  disallowedTools: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString, "many">>>;
502
502
  displayText: z.ZodOptional<z.ZodString>;
503
- agentType: z.ZodOptional<z.ZodNullable<z.ZodEnum<["claude", "copilot", "codex", "gemini", "opencode", "hermes", "openclaw", "custom"]>>>;
503
+ agentType: z.ZodOptional<z.ZodNullable<z.ZodEnum<["claude", "codex", "opencode", "pi", "copilot", "gemini", "hermes", "openclaw", "custom"]>>>;
504
504
  startedAt: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
505
505
  sessionStatus: z.ZodOptional<z.ZodNullable<z.ZodEnum<["running", "idle", "completed", "failed", "cancelled"]>>>;
506
506
  }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
@@ -513,7 +513,7 @@ export declare const LegacyMessageContentSchema: z.ZodDiscriminatedUnion<"role",
513
513
  allowedTools: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString, "many">>>;
514
514
  disallowedTools: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString, "many">>>;
515
515
  displayText: z.ZodOptional<z.ZodString>;
516
- agentType: z.ZodOptional<z.ZodNullable<z.ZodEnum<["claude", "copilot", "codex", "gemini", "opencode", "hermes", "openclaw", "custom"]>>>;
516
+ agentType: z.ZodOptional<z.ZodNullable<z.ZodEnum<["claude", "codex", "opencode", "pi", "copilot", "gemini", "hermes", "openclaw", "custom"]>>>;
517
517
  startedAt: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
518
518
  sessionStatus: z.ZodOptional<z.ZodNullable<z.ZodEnum<["running", "idle", "completed", "failed", "cancelled"]>>>;
519
519
  }, z.ZodTypeAny, "passthrough">>>;
@@ -536,7 +536,7 @@ export declare const LegacyMessageContentSchema: z.ZodDiscriminatedUnion<"role",
536
536
  allowedTools: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString, "many">>>;
537
537
  disallowedTools: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString, "many">>>;
538
538
  displayText: z.ZodOptional<z.ZodString>;
539
- agentType: z.ZodOptional<z.ZodNullable<z.ZodEnum<["claude", "copilot", "codex", "gemini", "opencode", "hermes", "openclaw", "custom"]>>>;
539
+ agentType: z.ZodOptional<z.ZodNullable<z.ZodEnum<["claude", "codex", "opencode", "pi", "copilot", "gemini", "hermes", "openclaw", "custom"]>>>;
540
540
  startedAt: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
541
541
  sessionStatus: z.ZodOptional<z.ZodNullable<z.ZodEnum<["running", "idle", "completed", "failed", "cancelled"]>>>;
542
542
  }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
@@ -549,7 +549,7 @@ export declare const LegacyMessageContentSchema: z.ZodDiscriminatedUnion<"role",
549
549
  allowedTools: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString, "many">>>;
550
550
  disallowedTools: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString, "many">>>;
551
551
  displayText: z.ZodOptional<z.ZodString>;
552
- agentType: z.ZodOptional<z.ZodNullable<z.ZodEnum<["claude", "copilot", "codex", "gemini", "opencode", "hermes", "openclaw", "custom"]>>>;
552
+ agentType: z.ZodOptional<z.ZodNullable<z.ZodEnum<["claude", "codex", "opencode", "pi", "copilot", "gemini", "hermes", "openclaw", "custom"]>>>;
553
553
  startedAt: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
554
554
  sessionStatus: z.ZodOptional<z.ZodNullable<z.ZodEnum<["running", "idle", "completed", "failed", "cancelled"]>>>;
555
555
  }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
@@ -562,7 +562,7 @@ export declare const LegacyMessageContentSchema: z.ZodDiscriminatedUnion<"role",
562
562
  allowedTools: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString, "many">>>;
563
563
  disallowedTools: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString, "many">>>;
564
564
  displayText: z.ZodOptional<z.ZodString>;
565
- agentType: z.ZodOptional<z.ZodNullable<z.ZodEnum<["claude", "copilot", "codex", "gemini", "opencode", "hermes", "openclaw", "custom"]>>>;
565
+ agentType: z.ZodOptional<z.ZodNullable<z.ZodEnum<["claude", "codex", "opencode", "pi", "copilot", "gemini", "hermes", "openclaw", "custom"]>>>;
566
566
  startedAt: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
567
567
  sessionStatus: z.ZodOptional<z.ZodNullable<z.ZodEnum<["running", "idle", "completed", "failed", "cancelled"]>>>;
568
568
  }, z.ZodTypeAny, "passthrough">>>;
@@ -585,7 +585,7 @@ export declare const LegacyMessageContentSchema: z.ZodDiscriminatedUnion<"role",
585
585
  allowedTools: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString, "many">>>;
586
586
  disallowedTools: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString, "many">>>;
587
587
  displayText: z.ZodOptional<z.ZodString>;
588
- agentType: z.ZodOptional<z.ZodNullable<z.ZodEnum<["claude", "copilot", "codex", "gemini", "opencode", "hermes", "openclaw", "custom"]>>>;
588
+ agentType: z.ZodOptional<z.ZodNullable<z.ZodEnum<["claude", "codex", "opencode", "pi", "copilot", "gemini", "hermes", "openclaw", "custom"]>>>;
589
589
  startedAt: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
590
590
  sessionStatus: z.ZodOptional<z.ZodNullable<z.ZodEnum<["running", "idle", "completed", "failed", "cancelled"]>>>;
591
591
  }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
@@ -598,7 +598,7 @@ export declare const LegacyMessageContentSchema: z.ZodDiscriminatedUnion<"role",
598
598
  allowedTools: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString, "many">>>;
599
599
  disallowedTools: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString, "many">>>;
600
600
  displayText: z.ZodOptional<z.ZodString>;
601
- agentType: z.ZodOptional<z.ZodNullable<z.ZodEnum<["claude", "copilot", "codex", "gemini", "opencode", "hermes", "openclaw", "custom"]>>>;
601
+ agentType: z.ZodOptional<z.ZodNullable<z.ZodEnum<["claude", "codex", "opencode", "pi", "copilot", "gemini", "hermes", "openclaw", "custom"]>>>;
602
602
  startedAt: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
603
603
  sessionStatus: z.ZodOptional<z.ZodNullable<z.ZodEnum<["running", "idle", "completed", "failed", "cancelled"]>>>;
604
604
  }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
@@ -611,7 +611,7 @@ export declare const LegacyMessageContentSchema: z.ZodDiscriminatedUnion<"role",
611
611
  allowedTools: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString, "many">>>;
612
612
  disallowedTools: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString, "many">>>;
613
613
  displayText: z.ZodOptional<z.ZodString>;
614
- agentType: z.ZodOptional<z.ZodNullable<z.ZodEnum<["claude", "copilot", "codex", "gemini", "opencode", "hermes", "openclaw", "custom"]>>>;
614
+ agentType: z.ZodOptional<z.ZodNullable<z.ZodEnum<["claude", "codex", "opencode", "pi", "copilot", "gemini", "hermes", "openclaw", "custom"]>>>;
615
615
  startedAt: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
616
616
  sessionStatus: z.ZodOptional<z.ZodNullable<z.ZodEnum<["running", "idle", "completed", "failed", "cancelled"]>>>;
617
617
  }, z.ZodTypeAny, "passthrough">>>;
package/dist/machine.d.ts CHANGED
@@ -1,4 +1,5 @@
1
1
  import { z } from 'zod';
2
+ export declare const PLATFORMS: readonly ["darwin", "linux", "win32"];
2
3
  export declare const PlatformSchema: z.ZodEnum<["darwin", "linux", "win32"]>;
3
4
  export type Platform = z.infer<typeof PlatformSchema>;
4
5
  export declare const SessionStatusSchema: z.ZodEnum<["idle", "thinking", "tool_running", "permission_required", "disconnected"]>;
@@ -14,8 +15,6 @@ export declare const MachineSummarySchema: z.ZodObject<{
14
15
  activeAt: z.ZodNumber;
15
16
  createdAt: z.ZodNumber;
16
17
 
17
- hasTerminal: z.ZodOptional<z.ZodBoolean>;
18
-
19
18
  activeSessions: z.ZodOptional<z.ZodNumber>;
20
19
 
21
20
  totalSessions: z.ZodOptional<z.ZodNumber>;
@@ -54,8 +53,6 @@ export declare const MachineSummarySchema: z.ZodObject<{
54
53
  activeAt: z.ZodNumber;
55
54
  createdAt: z.ZodNumber;
56
55
 
57
- hasTerminal: z.ZodOptional<z.ZodBoolean>;
58
-
59
56
  activeSessions: z.ZodOptional<z.ZodNumber>;
60
57
 
61
58
  totalSessions: z.ZodOptional<z.ZodNumber>;
@@ -94,8 +91,6 @@ export declare const MachineSummarySchema: z.ZodObject<{
94
91
  activeAt: z.ZodNumber;
95
92
  createdAt: z.ZodNumber;
96
93
 
97
- hasTerminal: z.ZodOptional<z.ZodBoolean>;
98
-
99
94
  activeSessions: z.ZodOptional<z.ZodNumber>;
100
95
 
101
96
  totalSessions: z.ZodOptional<z.ZodNumber>;
package/dist/machine.js CHANGED
@@ -1 +1 @@
1
- "use strict";import{z as o}from"zod";import{LabsSettingsSchema as n}from"./rpc.js";import{AccountLanguageSchema as t}from"./accountLanguage.js";export const PlatformSchema=o.enum(["darwin","linux","win32"]),SessionStatusSchema=o.enum(["idle","thinking","tool_running","permission_required","disconnected"]),MachineSummarySchema=o.object({id:o.string(),hostname:o.string(),platform:PlatformSchema,arch:o.string().optional(),displayName:o.string().optional(),daemonVersion:o.string().optional(),active:o.boolean(),activeAt:o.number(),createdAt:o.number(),hasTerminal:o.boolean().optional(),activeSessions:o.number().optional(),totalSessions:o.number().optional(),availableAgents:o.array(o.string()).optional(),agentVersions:o.record(o.string()).optional(),supportedMethods:o.array(o.string()).optional(),disconnectReason:o.enum(["normal","upgrade-required"]).optional(),upgradeStatus:o.enum(["idle","preflight","downloading","ready","switching","failed"]).optional(),upgradeError:o.string().optional(),superseded:o.boolean().optional(),derivationVersion:o.number().int().min(0).optional(),autoUpgradeDaemon:o.boolean().optional(),notifyFeishu:o.boolean().optional(),notifyDingtalk:o.boolean().optional(),lastHeartbeat:o.number().optional()}).passthrough(),MachineRegisterResultSchema=o.object({ok:o.boolean(),error:o.string().optional(),accountId:o.string().min(1).optional(),latestVersion:o.string().optional(),labsSettings:n.optional(),preferredLanguage:t.optional()}).passthrough(),SetDefaultMachineBodySchema=o.object({machineId:o.string().nullable()}).strict();
1
+ "use strict";import{z as o}from"zod";import{LabsSettingsSchema as n}from"./rpc.js";import{AccountLanguageSchema as t}from"./accountLanguage.js";export const PLATFORMS=["darwin","linux","win32"],PlatformSchema=o.enum(PLATFORMS),SessionStatusSchema=o.enum(["idle","thinking","tool_running","permission_required","disconnected"]),MachineSummarySchema=o.object({id:o.string(),hostname:o.string(),platform:PlatformSchema,arch:o.string().optional(),displayName:o.string().optional(),daemonVersion:o.string().optional(),active:o.boolean(),activeAt:o.number(),createdAt:o.number(),activeSessions:o.number().optional(),totalSessions:o.number().optional(),availableAgents:o.array(o.string()).optional(),agentVersions:o.record(o.string()).optional(),supportedMethods:o.array(o.string()).optional(),disconnectReason:o.enum(["normal","upgrade-required"]).optional(),upgradeStatus:o.enum(["idle","preflight","downloading","ready","switching","failed"]).optional(),upgradeError:o.string().optional(),superseded:o.boolean().optional(),derivationVersion:o.number().int().min(0).optional(),autoUpgradeDaemon:o.boolean().optional(),notifyFeishu:o.boolean().optional(),notifyDingtalk:o.boolean().optional(),lastHeartbeat:o.number().optional()}).passthrough(),MachineRegisterResultSchema=o.object({ok:o.boolean(),error:o.string().optional(),accountId:o.string().min(1).optional(),latestVersion:o.string().optional(),labsSettings:n.optional(),preferredLanguage:t.optional()}).passthrough(),SetDefaultMachineBodySchema=o.object({machineId:o.string().nullable()}).strict();
@@ -1,13 +1,15 @@
1
1
  import { z } from 'zod';
2
2
 
3
- export declare const AgentTypeSchema: z.ZodEnum<["claude", "copilot", "codex", "gemini", "opencode", "hermes", "openclaw", "custom"]>;
3
+ export declare const AgentTypeSchema: z.ZodEnum<["claude", "codex", "opencode", "pi", "copilot", "gemini", "hermes", "openclaw", "custom"]>;
4
4
  export type AgentType = z.infer<typeof AgentTypeSchema>;
5
5
 
6
- export declare const AGENT_TYPES: ["claude", "copilot", "codex", "gemini", "opencode", "hermes", "openclaw", "custom"];
6
+ export declare const AGENT_TYPES: ["claude", "codex", "opencode", "pi", "copilot", "gemini", "hermes", "openclaw", "custom"];
7
7
 
8
- export declare const SPAWNABLE_AGENTS: ("hermes" | "codex" | "claude" | "copilot" | "opencode" | "gemini" | "openclaw")[];
8
+ export declare const SPAWNABLE_AGENT_SCHEMA: z.ZodEnum<["claude", "codex", "opencode", "pi", "copilot", "gemini", "hermes", "openclaw"]>;
9
9
 
10
- export declare const CLI_AGENT_TYPES: readonly ["claude", "copilot", "opencode", "codex", "gemini", "hermes", "openclaw"];
10
+ export declare const SPAWNABLE_AGENTS: ["claude", "codex", "opencode", "pi", "copilot", "gemini", "hermes", "openclaw"];
11
+
12
+ export declare const CLI_AGENT_TYPES: ["claude", "codex", "opencode", "pi", "copilot", "gemini", "hermes", "openclaw"];
11
13
  export type CliAgentType = (typeof CLI_AGENT_TYPES)[number];
12
14
  export declare const MessageMetaSchema: z.ZodObject<{
13
15
  sentFrom: z.ZodOptional<z.ZodString>;
@@ -20,7 +22,7 @@ export declare const MessageMetaSchema: z.ZodObject<{
20
22
  disallowedTools: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString, "many">>>;
21
23
  displayText: z.ZodOptional<z.ZodString>;
22
24
 
23
- agentType: z.ZodOptional<z.ZodNullable<z.ZodEnum<["claude", "copilot", "codex", "gemini", "opencode", "hermes", "openclaw", "custom"]>>>;
25
+ agentType: z.ZodOptional<z.ZodNullable<z.ZodEnum<["claude", "codex", "opencode", "pi", "copilot", "gemini", "hermes", "openclaw", "custom"]>>>;
24
26
 
25
27
  startedAt: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
26
28
 
@@ -36,7 +38,7 @@ export declare const MessageMetaSchema: z.ZodObject<{
36
38
  disallowedTools: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString, "many">>>;
37
39
  displayText: z.ZodOptional<z.ZodString>;
38
40
 
39
- agentType: z.ZodOptional<z.ZodNullable<z.ZodEnum<["claude", "copilot", "codex", "gemini", "opencode", "hermes", "openclaw", "custom"]>>>;
41
+ agentType: z.ZodOptional<z.ZodNullable<z.ZodEnum<["claude", "codex", "opencode", "pi", "copilot", "gemini", "hermes", "openclaw", "custom"]>>>;
40
42
 
41
43
  startedAt: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
42
44
 
@@ -52,7 +54,7 @@ export declare const MessageMetaSchema: z.ZodObject<{
52
54
  disallowedTools: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString, "many">>>;
53
55
  displayText: z.ZodOptional<z.ZodString>;
54
56
 
55
- agentType: z.ZodOptional<z.ZodNullable<z.ZodEnum<["claude", "copilot", "codex", "gemini", "opencode", "hermes", "openclaw", "custom"]>>>;
57
+ agentType: z.ZodOptional<z.ZodNullable<z.ZodEnum<["claude", "codex", "opencode", "pi", "copilot", "gemini", "hermes", "openclaw", "custom"]>>>;
56
58
 
57
59
  startedAt: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
58
60
 
@@ -1 +1 @@
1
- "use strict";import{z as e}from"zod";export const AgentTypeSchema=e.enum(["claude","copilot","codex","gemini","opencode","hermes","openclaw","custom"]),AGENT_TYPES=AgentTypeSchema.options,SPAWNABLE_AGENTS=AGENT_TYPES.filter(o=>o!=="custom"),CLI_AGENT_TYPES=["claude","copilot","opencode","codex","gemini","hermes","openclaw"],MessageMetaSchema=e.object({sentFrom:e.string().optional(),permissionMode:e.string().optional(),model:e.string().nullable().optional(),fallbackModel:e.string().nullable().optional(),customSystemPrompt:e.string().nullable().optional(),appendSystemPrompt:e.string().nullable().optional(),allowedTools:e.array(e.string()).nullable().optional(),disallowedTools:e.array(e.string()).nullable().optional(),displayText:e.string().optional(),agentType:AgentTypeSchema.nullable().optional(),startedAt:e.number().nullable().optional(),sessionStatus:e.enum(["running","idle","completed","failed","cancelled"]).nullable().optional()}).passthrough(),AGENT_SUPPORTS_IMAGES={claude:!0,copilot:!0,codex:!1,gemini:!0,opencode:!0,hermes:!1,openclaw:!1,custom:!0},AGENT_DISPLAY_NAMES={claude:"Claude",copilot:"Copilot",codex:"Codex",gemini:"Gemini",opencode:"OpenCode",hermes:"Hermes",openclaw:"OpenClaw",custom:"Custom"};
1
+ "use strict";import{z as e}from"zod";export const AgentTypeSchema=e.enum(["claude","codex","opencode","pi","copilot","gemini","hermes","openclaw","custom"]),AGENT_TYPES=AgentTypeSchema.options,SPAWNABLE_AGENT_SCHEMA=AgentTypeSchema.exclude(["custom"]),SPAWNABLE_AGENTS=SPAWNABLE_AGENT_SCHEMA.options,CLI_AGENT_TYPES=SPAWNABLE_AGENTS,MessageMetaSchema=e.object({sentFrom:e.string().optional(),permissionMode:e.string().optional(),model:e.string().nullable().optional(),fallbackModel:e.string().nullable().optional(),customSystemPrompt:e.string().nullable().optional(),appendSystemPrompt:e.string().nullable().optional(),allowedTools:e.array(e.string()).nullable().optional(),disallowedTools:e.array(e.string()).nullable().optional(),displayText:e.string().optional(),agentType:AgentTypeSchema.nullable().optional(),startedAt:e.number().nullable().optional(),sessionStatus:e.enum(["running","idle","completed","failed","cancelled"]).nullable().optional()}).passthrough(),AGENT_SUPPORTS_IMAGES={claude:!0,copilot:!0,codex:!1,gemini:!0,opencode:!0,hermes:!1,openclaw:!1,pi:!0,custom:!0},AGENT_DISPLAY_NAMES={claude:"Claude",copilot:"Copilot",codex:"Codex",gemini:"Gemini",opencode:"OpenCode",hermes:"Hermes",openclaw:"OpenClaw",pi:"Pi",custom:"Custom"};