@agentdock/wire 0.0.92 → 0.0.94

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 (49) hide show
  1. package/dist/accountLanguage.d.ts +32 -0
  2. package/dist/accountLanguage.js +1 -0
  3. package/dist/agentCapabilities.d.ts +26 -0
  4. package/dist/agentCapabilities.js +1 -1
  5. package/dist/agentRuntimeSettings.d.ts +140 -0
  6. package/dist/agentRuntimeSettings.js +1 -0
  7. package/dist/enterpriseGateway.d.ts +215 -0
  8. package/dist/enterpriseGateway.js +1 -0
  9. package/dist/envelope.d.ts +45 -30
  10. package/dist/events.d.ts +24 -12
  11. package/dist/events.js +1 -1
  12. package/dist/features.d.ts +7 -3
  13. package/dist/features.js +1 -1
  14. package/dist/feedback.d.ts +18 -18
  15. package/dist/gateway.d.ts +386 -0
  16. package/dist/gateway.js +1 -0
  17. package/dist/handoffBrief.d.ts +14 -0
  18. package/dist/handoffBrief.js +52 -0
  19. package/dist/inboundEvents.d.ts +70 -0
  20. package/dist/inboundEvents.js +1 -1
  21. package/dist/index.d.ts +20 -12
  22. package/dist/index.js +1 -1
  23. package/dist/interactionEvents.d.ts +2 -2
  24. package/dist/legacyProtocol.d.ts +36 -36
  25. package/dist/machine.d.ts +9 -0
  26. package/dist/machine.js +1 -1
  27. package/dist/messageMeta.d.ts +6 -4
  28. package/dist/messageMeta.js +1 -1
  29. package/dist/messages.d.ts +338 -216
  30. package/dist/messages.js +1 -1
  31. package/dist/notification.d.ts +1 -1
  32. package/dist/notification.js +1 -1
  33. package/dist/rpc.d.ts +884 -84
  34. package/dist/rpc.js +1 -1
  35. package/dist/scheduledTasks.d.ts +50 -50
  36. package/dist/sessionBtw.d.ts +153 -0
  37. package/dist/sessionBtw.js +1 -0
  38. package/dist/sessionTitle.d.ts +16 -0
  39. package/dist/sessionTitle.js +1 -0
  40. package/dist/socketEvents.d.ts +9 -0
  41. package/dist/socketEvents.js +1 -1
  42. package/dist/sourceMetadata.d.ts +2 -2
  43. package/dist/stats.d.ts +87 -49
  44. package/dist/stats.js +1 -1
  45. package/dist/sync.d.ts +315 -0
  46. package/dist/sync.js +1 -1
  47. package/dist/workItems.d.ts +345 -0
  48. package/dist/workItems.js +1 -0
  49. package/package.json +1 -1
package/dist/rpc.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  import { z } from 'zod';
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", "set-auto-upgrade-daemon", "check-path", "backfill-history-session", "trigger-upgrade", "checkpoint-list", "checkpoint-diff", "checkpoint-rollback", "refresh-enterprise-models", "cancel-task", "file-relay-receive", "set-debug", "get-debug", "record-usage", "update-agent-models", "update-agent-modes", "dispatch-notification", "get-context-usage"]>;
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", "set-auto-upgrade-daemon", "check-path", "backfill-history-session", "trigger-upgrade", "checkpoint-list", "checkpoint-diff", "checkpoint-rollback", "refresh-enterprise-models", "cancel-task", "file-relay-receive", "set-debug", "get-debug", "record-usage", "update-agent-models", "update-agent-modes", "dispatch-notification", "get-context-usage", "ai-helper"]>;
3
3
  export type RpcMethodType = z.infer<typeof RpcMethod>;
4
4
  /**
5
5
  * Session-scoped RPC methods — registered by `agentdock start` (CLI process).
@@ -10,14 +10,14 @@ export declare const SESSION_RPC_METHODS: readonly ["answer-question", "approve-
10
10
  * Machine-scoped RPC methods — registered by the persistent daemon only.
11
11
  * These are account/machine-level operations independent of any session.
12
12
  */
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", "set-auto-upgrade-daemon", "check-path", "backfill-history-session", "trigger-upgrade", "checkpoint-list", "checkpoint-diff", "checkpoint-rollback", "refresh-enterprise-models", "dispatch-notification"];
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", "set-auto-upgrade-daemon", "check-path", "backfill-history-session", "trigger-upgrade", "checkpoint-list", "checkpoint-diff", "checkpoint-rollback", "refresh-enterprise-models", "dispatch-notification", "ai-helper"];
14
14
  /**
15
15
  * All RPC methods that must be registered for Web UI to function.
16
16
  * Daemon registers MACHINE_RPC_METHODS; CLI registers SESSION_RPC_METHODS.
17
17
  *
18
18
  * @deprecated Use SESSION_RPC_METHODS or MACHINE_RPC_METHODS directly.
19
19
  */
20
- export declare const DAEMON_REQUIRED_RPC_METHODS: readonly ["answer-question", "approve-permission", "deny-permission", "abort", "stop-session", "cancel-task", "get-context-usage", "start-invite", "get-machine-info", "get-agent-settings", "set-agent-settings", "get-labs-settings", "set-labs-settings", "set-auto-upgrade-daemon", "check-path", "backfill-history-session", "trigger-upgrade", "checkpoint-list", "checkpoint-diff", "checkpoint-rollback", "refresh-enterprise-models", "dispatch-notification"];
20
+ export declare const DAEMON_REQUIRED_RPC_METHODS: readonly ["answer-question", "approve-permission", "deny-permission", "abort", "stop-session", "cancel-task", "get-context-usage", "start-invite", "get-machine-info", "get-agent-settings", "set-agent-settings", "get-labs-settings", "set-labs-settings", "set-auto-upgrade-daemon", "check-path", "backfill-history-session", "trigger-upgrade", "checkpoint-list", "checkpoint-diff", "checkpoint-rollback", "refresh-enterprise-models", "dispatch-notification", "ai-helper"];
21
21
  export declare const RpcCallSchema: z.ZodObject<{
22
22
  method: z.ZodString;
23
23
  params: z.ZodUnknown;
@@ -54,7 +54,7 @@ export declare const SpawnSessionParamsSchema: z.ZodObject<{
54
54
  agentType: z.ZodEnum<["claude", "copilot", "opencode", "codex", "gemini", "hermes", "openclaw"]>;
55
55
  cwd: z.ZodString;
56
56
  prompt: z.ZodOptional<z.ZodString>;
57
- permissionMode: z.ZodDefault<z.ZodEnum<["default", "acceptEdits", "auto", "autoEdit", "bypassPermissions", "plan", "read-only", "safe-yolo", "yolo", "suggest", "auto-edit", "full-auto", "never", "untrusted", "on-failure", "on-request", "build"]>>;
57
+ permissionMode: z.ZodDefault<z.ZodString>;
58
58
  /**
59
59
  * SECURITY (RFC-067): daemon MUST NOT consume this field. Forwarding env
60
60
  * from an RPC payload = a remote env-injection channel (credentials/API
@@ -67,6 +67,8 @@ export declare const SpawnSessionParamsSchema: z.ZodObject<{
67
67
  baseUrl: z.ZodOptional<z.ZodString>;
68
68
  /** System prompt text appended to the agent's built-in system prompt. */
69
69
  appendSystemPrompt: z.ZodOptional<z.ZodString>;
70
+ /** Server-owned generated-response language injected after authenticated routing. */
71
+ responseLanguage: z.ZodOptional<z.ZodEnum<["en", "zh-Hans"]>>;
70
72
  /** Restrict agent to only these tools (Claude CLI --allowedTools). */
71
73
  allowedTools: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
72
74
  /** Deny agent from using these tools (Claude CLI --disallowedTools). */
@@ -89,6 +91,58 @@ export declare const SpawnSessionParamsSchema: z.ZodObject<{
89
91
  * flow only — resume passes serverSessionId instead.
90
92
  */
91
93
  spawnToken: z.ZodOptional<z.ZodString>;
94
+ /** PWA-frozen session handoff context (RFC-084): enables submit_handoff MCP
95
+ * injection and carries user-selected inherited deliveries. Never a system prompt. */
96
+ handoffContext: z.ZodOptional<z.ZodObject<{
97
+ enabled: z.ZodBoolean;
98
+ inheritedDeliveries: z.ZodDefault<z.ZodArray<z.ZodObject<{
99
+ deliveryId: z.ZodString;
100
+ sourceSessionId: z.ZodString;
101
+ sourceSessionTitle: z.ZodString;
102
+ createdAt: z.ZodString;
103
+ summary: z.ZodString;
104
+ brief: z.ZodOptional<z.ZodString>;
105
+ sourceReferences: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
106
+ }, "strict", z.ZodTypeAny, {
107
+ summary: string;
108
+ createdAt: string;
109
+ deliveryId: string;
110
+ sourceSessionId: string;
111
+ sourceSessionTitle: string;
112
+ brief?: string | undefined;
113
+ sourceReferences?: string[] | undefined;
114
+ }, {
115
+ summary: string;
116
+ createdAt: string;
117
+ deliveryId: string;
118
+ sourceSessionId: string;
119
+ sourceSessionTitle: string;
120
+ brief?: string | undefined;
121
+ sourceReferences?: string[] | undefined;
122
+ }>, "many">>;
123
+ }, "strict", z.ZodTypeAny, {
124
+ enabled: boolean;
125
+ inheritedDeliveries: {
126
+ summary: string;
127
+ createdAt: string;
128
+ deliveryId: string;
129
+ sourceSessionId: string;
130
+ sourceSessionTitle: string;
131
+ brief?: string | undefined;
132
+ sourceReferences?: string[] | undefined;
133
+ }[];
134
+ }, {
135
+ enabled: boolean;
136
+ inheritedDeliveries?: {
137
+ summary: string;
138
+ createdAt: string;
139
+ deliveryId: string;
140
+ sourceSessionId: string;
141
+ sourceSessionTitle: string;
142
+ brief?: string | undefined;
143
+ sourceReferences?: string[] | undefined;
144
+ }[] | undefined;
145
+ }>>;
92
146
  /** Replace the default system prompt entirely (Claude CLI --system-prompt). */
93
147
  systemPrompt: z.ZodOptional<z.ZodString>;
94
148
  /** Load system prompt from a file path (Claude CLI --system-prompt-file). */
@@ -154,28 +208,42 @@ export declare const SpawnSessionParamsSchema: z.ZodObject<{
154
208
  /** Use Windows Terminal new-tab instead of cmd /c start (Windows only). */
155
209
  useWindowsTerminal: z.ZodOptional<z.ZodBoolean>;
156
210
  }, "strict", z.ZodTypeAny, {
157
- permissionMode: "never" | "default" | "acceptEdits" | "auto" | "plan" | "bypassPermissions" | "autoEdit" | "read-only" | "safe-yolo" | "yolo" | "suggest" | "auto-edit" | "full-auto" | "untrusted" | "on-failure" | "on-request" | "build";
158
- agentType: "claude" | "copilot" | "opencode" | "codex" | "gemini" | "hermes" | "openclaw";
211
+ permissionMode: string;
212
+ agentType: "hermes" | "codex" | "claude" | "copilot" | "opencode" | "gemini" | "openclaw";
159
213
  source: "managed" | "history" | "scheduled";
160
214
  cwd: string;
161
215
  background: boolean;
162
216
  env?: Record<string, string> | undefined;
163
- sessionId?: string | undefined;
164
217
  model?: string | undefined;
165
218
  fallbackModel?: string | undefined;
166
219
  appendSystemPrompt?: string | undefined;
167
220
  allowedTools?: string[] | undefined;
168
221
  disallowedTools?: string[] | undefined;
222
+ sessionId?: string | undefined;
169
223
  agents?: string | undefined;
170
224
  agent?: string | undefined;
225
+ brief?: boolean | undefined;
171
226
  prompt?: string | undefined;
172
227
  baseUrl?: string | undefined;
228
+ responseLanguage?: "en" | "zh-Hans" | undefined;
173
229
  mcpConfig?: string | undefined;
174
230
  resumeSessionId?: string | undefined;
175
231
  serverSessionId?: string | undefined;
176
232
  maxTurns?: number | undefined;
177
233
  machineId?: string | undefined;
178
234
  spawnToken?: string | undefined;
235
+ handoffContext?: {
236
+ enabled: boolean;
237
+ inheritedDeliveries: {
238
+ summary: string;
239
+ createdAt: string;
240
+ deliveryId: string;
241
+ sourceSessionId: string;
242
+ sourceSessionTitle: string;
243
+ brief?: string | undefined;
244
+ sourceReferences?: string[] | undefined;
245
+ }[];
246
+ } | undefined;
179
247
  systemPrompt?: string | undefined;
180
248
  systemPromptFile?: string | undefined;
181
249
  appendSystemPromptFile?: string | undefined;
@@ -190,7 +258,6 @@ export declare const SpawnSessionParamsSchema: z.ZodObject<{
190
258
  forkSession?: boolean | undefined;
191
259
  settings?: string | undefined;
192
260
  betas?: string[] | undefined;
193
- brief?: boolean | undefined;
194
261
  noSessionPersistence?: boolean | undefined;
195
262
  includePartialMessages?: boolean | undefined;
196
263
  replayUserMessages?: boolean | undefined;
@@ -203,27 +270,41 @@ export declare const SpawnSessionParamsSchema: z.ZodObject<{
203
270
  startupScripts?: string[] | undefined;
204
271
  useWindowsTerminal?: boolean | undefined;
205
272
  }, {
206
- agentType: "claude" | "copilot" | "opencode" | "codex" | "gemini" | "hermes" | "openclaw";
273
+ agentType: "hermes" | "codex" | "claude" | "copilot" | "opencode" | "gemini" | "openclaw";
207
274
  cwd: string;
208
275
  env?: Record<string, string> | undefined;
209
- sessionId?: string | undefined;
210
- permissionMode?: "never" | "default" | "acceptEdits" | "auto" | "plan" | "bypassPermissions" | "autoEdit" | "read-only" | "safe-yolo" | "yolo" | "suggest" | "auto-edit" | "full-auto" | "untrusted" | "on-failure" | "on-request" | "build" | undefined;
276
+ permissionMode?: string | undefined;
211
277
  model?: string | undefined;
212
278
  fallbackModel?: string | undefined;
213
279
  appendSystemPrompt?: string | undefined;
214
280
  allowedTools?: string[] | undefined;
215
281
  disallowedTools?: string[] | undefined;
282
+ sessionId?: string | undefined;
216
283
  agents?: string | undefined;
217
284
  source?: "managed" | "history" | "scheduled" | undefined;
218
285
  agent?: string | undefined;
286
+ brief?: boolean | undefined;
219
287
  prompt?: string | undefined;
220
288
  baseUrl?: string | undefined;
289
+ responseLanguage?: "en" | "zh-Hans" | undefined;
221
290
  mcpConfig?: string | undefined;
222
291
  resumeSessionId?: string | undefined;
223
292
  serverSessionId?: string | undefined;
224
293
  maxTurns?: number | undefined;
225
294
  machineId?: string | undefined;
226
295
  spawnToken?: string | undefined;
296
+ handoffContext?: {
297
+ enabled: boolean;
298
+ inheritedDeliveries?: {
299
+ summary: string;
300
+ createdAt: string;
301
+ deliveryId: string;
302
+ sourceSessionId: string;
303
+ sourceSessionTitle: string;
304
+ brief?: string | undefined;
305
+ sourceReferences?: string[] | undefined;
306
+ }[] | undefined;
307
+ } | undefined;
227
308
  systemPrompt?: string | undefined;
228
309
  systemPromptFile?: string | undefined;
229
310
  appendSystemPromptFile?: string | undefined;
@@ -238,7 +319,6 @@ export declare const SpawnSessionParamsSchema: z.ZodObject<{
238
319
  forkSession?: boolean | undefined;
239
320
  settings?: string | undefined;
240
321
  betas?: string[] | undefined;
241
- brief?: boolean | undefined;
242
322
  noSessionPersistence?: boolean | undefined;
243
323
  includePartialMessages?: boolean | undefined;
244
324
  replayUserMessages?: boolean | undefined;
@@ -270,15 +350,19 @@ export declare const GetMessagesResponseSchema: z.ZodObject<{
270
350
  id: z.ZodString;
271
351
  seq: z.ZodNumber;
272
352
  localId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
353
+ contextBoundary: z.ZodOptional<z.ZodNullable<z.ZodEnum<["clear", "compact"]>>>;
273
354
  content: z.ZodObject<{
274
355
  c: z.ZodString;
275
356
  t: z.ZodEnum<["encrypted", "plaintext"]>;
357
+ contextBoundary: z.ZodOptional<z.ZodEnum<["clear", "compact"]>>;
276
358
  }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
277
359
  c: z.ZodString;
278
360
  t: z.ZodEnum<["encrypted", "plaintext"]>;
361
+ contextBoundary: z.ZodOptional<z.ZodEnum<["clear", "compact"]>>;
279
362
  }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
280
363
  c: z.ZodString;
281
364
  t: z.ZodEnum<["encrypted", "plaintext"]>;
365
+ contextBoundary: z.ZodOptional<z.ZodEnum<["clear", "compact"]>>;
282
366
  }, z.ZodTypeAny, "passthrough">>;
283
367
  createdAt: z.ZodNumber;
284
368
  updatedAt: z.ZodNumber;
@@ -286,15 +370,19 @@ export declare const GetMessagesResponseSchema: z.ZodObject<{
286
370
  id: z.ZodString;
287
371
  seq: z.ZodNumber;
288
372
  localId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
373
+ contextBoundary: z.ZodOptional<z.ZodNullable<z.ZodEnum<["clear", "compact"]>>>;
289
374
  content: z.ZodObject<{
290
375
  c: z.ZodString;
291
376
  t: z.ZodEnum<["encrypted", "plaintext"]>;
377
+ contextBoundary: z.ZodOptional<z.ZodEnum<["clear", "compact"]>>;
292
378
  }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
293
379
  c: z.ZodString;
294
380
  t: z.ZodEnum<["encrypted", "plaintext"]>;
381
+ contextBoundary: z.ZodOptional<z.ZodEnum<["clear", "compact"]>>;
295
382
  }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
296
383
  c: z.ZodString;
297
384
  t: z.ZodEnum<["encrypted", "plaintext"]>;
385
+ contextBoundary: z.ZodOptional<z.ZodEnum<["clear", "compact"]>>;
298
386
  }, z.ZodTypeAny, "passthrough">>;
299
387
  createdAt: z.ZodNumber;
300
388
  updatedAt: z.ZodNumber;
@@ -302,15 +390,19 @@ export declare const GetMessagesResponseSchema: z.ZodObject<{
302
390
  id: z.ZodString;
303
391
  seq: z.ZodNumber;
304
392
  localId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
393
+ contextBoundary: z.ZodOptional<z.ZodNullable<z.ZodEnum<["clear", "compact"]>>>;
305
394
  content: z.ZodObject<{
306
395
  c: z.ZodString;
307
396
  t: z.ZodEnum<["encrypted", "plaintext"]>;
397
+ contextBoundary: z.ZodOptional<z.ZodEnum<["clear", "compact"]>>;
308
398
  }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
309
399
  c: z.ZodString;
310
400
  t: z.ZodEnum<["encrypted", "plaintext"]>;
401
+ contextBoundary: z.ZodOptional<z.ZodEnum<["clear", "compact"]>>;
311
402
  }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
312
403
  c: z.ZodString;
313
404
  t: z.ZodEnum<["encrypted", "plaintext"]>;
405
+ contextBoundary: z.ZodOptional<z.ZodEnum<["clear", "compact"]>>;
314
406
  }, z.ZodTypeAny, "passthrough">>;
315
407
  createdAt: z.ZodNumber;
316
408
  updatedAt: z.ZodNumber;
@@ -322,15 +414,19 @@ export declare const GetMessagesResponseSchema: z.ZodObject<{
322
414
  id: z.ZodString;
323
415
  seq: z.ZodNumber;
324
416
  localId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
417
+ contextBoundary: z.ZodOptional<z.ZodNullable<z.ZodEnum<["clear", "compact"]>>>;
325
418
  content: z.ZodObject<{
326
419
  c: z.ZodString;
327
420
  t: z.ZodEnum<["encrypted", "plaintext"]>;
421
+ contextBoundary: z.ZodOptional<z.ZodEnum<["clear", "compact"]>>;
328
422
  }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
329
423
  c: z.ZodString;
330
424
  t: z.ZodEnum<["encrypted", "plaintext"]>;
425
+ contextBoundary: z.ZodOptional<z.ZodEnum<["clear", "compact"]>>;
331
426
  }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
332
427
  c: z.ZodString;
333
428
  t: z.ZodEnum<["encrypted", "plaintext"]>;
429
+ contextBoundary: z.ZodOptional<z.ZodEnum<["clear", "compact"]>>;
334
430
  }, z.ZodTypeAny, "passthrough">>;
335
431
  createdAt: z.ZodNumber;
336
432
  updatedAt: z.ZodNumber;
@@ -338,15 +434,19 @@ export declare const GetMessagesResponseSchema: z.ZodObject<{
338
434
  id: z.ZodString;
339
435
  seq: z.ZodNumber;
340
436
  localId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
437
+ contextBoundary: z.ZodOptional<z.ZodNullable<z.ZodEnum<["clear", "compact"]>>>;
341
438
  content: z.ZodObject<{
342
439
  c: z.ZodString;
343
440
  t: z.ZodEnum<["encrypted", "plaintext"]>;
441
+ contextBoundary: z.ZodOptional<z.ZodEnum<["clear", "compact"]>>;
344
442
  }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
345
443
  c: z.ZodString;
346
444
  t: z.ZodEnum<["encrypted", "plaintext"]>;
445
+ contextBoundary: z.ZodOptional<z.ZodEnum<["clear", "compact"]>>;
347
446
  }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
348
447
  c: z.ZodString;
349
448
  t: z.ZodEnum<["encrypted", "plaintext"]>;
449
+ contextBoundary: z.ZodOptional<z.ZodEnum<["clear", "compact"]>>;
350
450
  }, z.ZodTypeAny, "passthrough">>;
351
451
  createdAt: z.ZodNumber;
352
452
  updatedAt: z.ZodNumber;
@@ -354,15 +454,19 @@ export declare const GetMessagesResponseSchema: z.ZodObject<{
354
454
  id: z.ZodString;
355
455
  seq: z.ZodNumber;
356
456
  localId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
457
+ contextBoundary: z.ZodOptional<z.ZodNullable<z.ZodEnum<["clear", "compact"]>>>;
357
458
  content: z.ZodObject<{
358
459
  c: z.ZodString;
359
460
  t: z.ZodEnum<["encrypted", "plaintext"]>;
461
+ contextBoundary: z.ZodOptional<z.ZodEnum<["clear", "compact"]>>;
360
462
  }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
361
463
  c: z.ZodString;
362
464
  t: z.ZodEnum<["encrypted", "plaintext"]>;
465
+ contextBoundary: z.ZodOptional<z.ZodEnum<["clear", "compact"]>>;
363
466
  }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
364
467
  c: z.ZodString;
365
468
  t: z.ZodEnum<["encrypted", "plaintext"]>;
469
+ contextBoundary: z.ZodOptional<z.ZodEnum<["clear", "compact"]>>;
366
470
  }, z.ZodTypeAny, "passthrough">>;
367
471
  createdAt: z.ZodNumber;
368
472
  updatedAt: z.ZodNumber;
@@ -374,15 +478,19 @@ export declare const GetMessagesResponseSchema: z.ZodObject<{
374
478
  id: z.ZodString;
375
479
  seq: z.ZodNumber;
376
480
  localId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
481
+ contextBoundary: z.ZodOptional<z.ZodNullable<z.ZodEnum<["clear", "compact"]>>>;
377
482
  content: z.ZodObject<{
378
483
  c: z.ZodString;
379
484
  t: z.ZodEnum<["encrypted", "plaintext"]>;
485
+ contextBoundary: z.ZodOptional<z.ZodEnum<["clear", "compact"]>>;
380
486
  }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
381
487
  c: z.ZodString;
382
488
  t: z.ZodEnum<["encrypted", "plaintext"]>;
489
+ contextBoundary: z.ZodOptional<z.ZodEnum<["clear", "compact"]>>;
383
490
  }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
384
491
  c: z.ZodString;
385
492
  t: z.ZodEnum<["encrypted", "plaintext"]>;
493
+ contextBoundary: z.ZodOptional<z.ZodEnum<["clear", "compact"]>>;
386
494
  }, z.ZodTypeAny, "passthrough">>;
387
495
  createdAt: z.ZodNumber;
388
496
  updatedAt: z.ZodNumber;
@@ -390,15 +498,19 @@ export declare const GetMessagesResponseSchema: z.ZodObject<{
390
498
  id: z.ZodString;
391
499
  seq: z.ZodNumber;
392
500
  localId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
501
+ contextBoundary: z.ZodOptional<z.ZodNullable<z.ZodEnum<["clear", "compact"]>>>;
393
502
  content: z.ZodObject<{
394
503
  c: z.ZodString;
395
504
  t: z.ZodEnum<["encrypted", "plaintext"]>;
505
+ contextBoundary: z.ZodOptional<z.ZodEnum<["clear", "compact"]>>;
396
506
  }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
397
507
  c: z.ZodString;
398
508
  t: z.ZodEnum<["encrypted", "plaintext"]>;
509
+ contextBoundary: z.ZodOptional<z.ZodEnum<["clear", "compact"]>>;
399
510
  }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
400
511
  c: z.ZodString;
401
512
  t: z.ZodEnum<["encrypted", "plaintext"]>;
513
+ contextBoundary: z.ZodOptional<z.ZodEnum<["clear", "compact"]>>;
402
514
  }, z.ZodTypeAny, "passthrough">>;
403
515
  createdAt: z.ZodNumber;
404
516
  updatedAt: z.ZodNumber;
@@ -406,15 +518,19 @@ export declare const GetMessagesResponseSchema: z.ZodObject<{
406
518
  id: z.ZodString;
407
519
  seq: z.ZodNumber;
408
520
  localId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
521
+ contextBoundary: z.ZodOptional<z.ZodNullable<z.ZodEnum<["clear", "compact"]>>>;
409
522
  content: z.ZodObject<{
410
523
  c: z.ZodString;
411
524
  t: z.ZodEnum<["encrypted", "plaintext"]>;
525
+ contextBoundary: z.ZodOptional<z.ZodEnum<["clear", "compact"]>>;
412
526
  }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
413
527
  c: z.ZodString;
414
528
  t: z.ZodEnum<["encrypted", "plaintext"]>;
529
+ contextBoundary: z.ZodOptional<z.ZodEnum<["clear", "compact"]>>;
415
530
  }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
416
531
  c: z.ZodString;
417
532
  t: z.ZodEnum<["encrypted", "plaintext"]>;
533
+ contextBoundary: z.ZodOptional<z.ZodEnum<["clear", "compact"]>>;
418
534
  }, z.ZodTypeAny, "passthrough">>;
419
535
  createdAt: z.ZodNumber;
420
536
  updatedAt: z.ZodNumber;
@@ -526,6 +642,152 @@ export declare const AgentEnvConfigSetSchema: z.ZodObject<{
526
642
  id: string;
527
643
  }[] | undefined;
528
644
  }>;
645
+ export declare const AiHelperConfigSchema: z.ZodObject<{
646
+ enabled: z.ZodBoolean;
647
+ }, "strict", z.ZodTypeAny, {
648
+ enabled: boolean;
649
+ }, {
650
+ enabled: boolean;
651
+ }>;
652
+ export type AiHelperConfig = z.infer<typeof AiHelperConfigSchema>;
653
+ /** Daemon-local only. Never use this schema for RPC request/response data. */
654
+ export declare const LocalAiHelperConfigSchema: z.ZodEffects<z.ZodObject<{
655
+ enabled: z.ZodBoolean;
656
+ provider: z.ZodOptional<z.ZodEnum<["openai", "anthropic", "openai-compatible"]>>;
657
+ baseUrl: z.ZodOptional<z.ZodString>;
658
+ apiKey: z.ZodOptional<z.ZodString>;
659
+ modelId: z.ZodOptional<z.ZodString>;
660
+ /**
661
+ * Opt-in reasoning/thinking disabling. Off by default because the exact
662
+ * parameter varies by gateway and sending the wrong one (e.g.
663
+ * `reasoning_effort: "none"` to OpenAI) yields a 400. Enable only when the
664
+ * configured gateway is known to support the corresponding parameter.
665
+ */
666
+ disableReasoning: z.ZodOptional<z.ZodBoolean>;
667
+ }, "strict", z.ZodTypeAny, {
668
+ enabled: boolean;
669
+ baseUrl?: string | undefined;
670
+ provider?: "openai" | "anthropic" | "openai-compatible" | undefined;
671
+ apiKey?: string | undefined;
672
+ modelId?: string | undefined;
673
+ disableReasoning?: boolean | undefined;
674
+ }, {
675
+ enabled: boolean;
676
+ baseUrl?: string | undefined;
677
+ provider?: "openai" | "anthropic" | "openai-compatible" | undefined;
678
+ apiKey?: string | undefined;
679
+ modelId?: string | undefined;
680
+ disableReasoning?: boolean | undefined;
681
+ }>, {
682
+ enabled: boolean;
683
+ baseUrl?: string | undefined;
684
+ provider?: "openai" | "anthropic" | "openai-compatible" | undefined;
685
+ apiKey?: string | undefined;
686
+ modelId?: string | undefined;
687
+ disableReasoning?: boolean | undefined;
688
+ }, {
689
+ enabled: boolean;
690
+ baseUrl?: string | undefined;
691
+ provider?: "openai" | "anthropic" | "openai-compatible" | undefined;
692
+ apiKey?: string | undefined;
693
+ modelId?: string | undefined;
694
+ disableReasoning?: boolean | undefined;
695
+ }>;
696
+ export type LocalAiHelperConfig = z.infer<typeof LocalAiHelperConfigSchema>;
697
+ /**
698
+ * Sealed ai-helper payload. Personal edition never ships session content to the
699
+ * server as plaintext: the whole { prompt, systemPrompt } value is AES-256-GCM
700
+ * sealed with the session DEK (which only the web client and the daemon share),
701
+ * and only that ciphertext crosses the server. The daemon re-opens it using the
702
+ * same session DEK, so the server stays zero-knowledge.
703
+ */
704
+ export declare const AiHelperPayloadSchema: z.ZodObject<{
705
+ /** Base64 AES-256-GCM ciphertext of the { prompt, systemPrompt } value. */
706
+ c: z.ZodString;
707
+ /** Payload type/version marker (mirrors the message-envelope { c, t } shape). */
708
+ t: z.ZodString;
709
+ }, "strict", z.ZodTypeAny, {
710
+ t: string;
711
+ c: string;
712
+ }, {
713
+ t: string;
714
+ c: string;
715
+ }>;
716
+ /** Shape of the daemon-decrypted ai-helper payload. */
717
+ export declare const AiHelperDecryptedPayloadSchema: z.ZodObject<{
718
+ prompt: z.ZodString;
719
+ systemPrompt: z.ZodOptional<z.ZodString>;
720
+ }, "strict", z.ZodTypeAny, {
721
+ prompt: string;
722
+ systemPrompt?: string | undefined;
723
+ }, {
724
+ prompt: string;
725
+ systemPrompt?: string | undefined;
726
+ }>;
727
+ export declare const AiHelperParamsSchema: z.ZodDiscriminatedUnion<"format", [z.ZodObject<{
728
+ format: z.ZodLiteral<"encrypted">;
729
+ payload: z.ZodObject<{
730
+ /** Base64 AES-256-GCM ciphertext of the { prompt, systemPrompt } value. */
731
+ c: z.ZodString;
732
+ /** Payload type/version marker (mirrors the message-envelope { c, t } shape). */
733
+ t: z.ZodString;
734
+ }, "strict", z.ZodTypeAny, {
735
+ t: string;
736
+ c: string;
737
+ }, {
738
+ t: string;
739
+ c: string;
740
+ }>;
741
+ /** Required for encrypted: the daemon resolves the session DEK from this id. */
742
+ sessionId: z.ZodString;
743
+ /** Server routing field. The daemon must not treat it as execution input. */
744
+ machineId: z.ZodOptional<z.ZodString>;
745
+ /** Server-owned generated-response language injected after authenticated routing. */
746
+ responseLanguage: z.ZodOptional<z.ZodEnum<["en", "zh-Hans"]>>;
747
+ }, "strict", z.ZodTypeAny, {
748
+ sessionId: string;
749
+ format: "encrypted";
750
+ payload: {
751
+ t: string;
752
+ c: string;
753
+ };
754
+ responseLanguage?: "en" | "zh-Hans" | undefined;
755
+ machineId?: string | undefined;
756
+ }, {
757
+ sessionId: string;
758
+ format: "encrypted";
759
+ payload: {
760
+ t: string;
761
+ c: string;
762
+ };
763
+ responseLanguage?: "en" | "zh-Hans" | undefined;
764
+ machineId?: string | undefined;
765
+ }>, z.ZodObject<{
766
+ format: z.ZodLiteral<"plain">;
767
+ prompt: z.ZodString;
768
+ systemPrompt: z.ZodOptional<z.ZodString>;
769
+ /** Session being assisted; used only for observability, not routing. */
770
+ sessionId: z.ZodOptional<z.ZodString>;
771
+ /** Server routing field. The daemon must not treat it as execution input. */
772
+ machineId: z.ZodOptional<z.ZodString>;
773
+ /** Server-owned generated-response language injected after authenticated routing. */
774
+ responseLanguage: z.ZodOptional<z.ZodEnum<["en", "zh-Hans"]>>;
775
+ }, "strict", z.ZodTypeAny, {
776
+ format: "plain";
777
+ prompt: string;
778
+ sessionId?: string | undefined;
779
+ responseLanguage?: "en" | "zh-Hans" | undefined;
780
+ machineId?: string | undefined;
781
+ systemPrompt?: string | undefined;
782
+ }, {
783
+ format: "plain";
784
+ prompt: string;
785
+ sessionId?: string | undefined;
786
+ responseLanguage?: "en" | "zh-Hans" | undefined;
787
+ machineId?: string | undefined;
788
+ systemPrompt?: string | undefined;
789
+ }>]>;
790
+ export type AiHelperParams = z.infer<typeof AiHelperParamsSchema>;
529
791
  /**
530
792
  * Full agent settings schema — read-only, used by daemon to load/validate local file.
531
793
  * Includes all fields including sensitive ones (notification, customEnv, startupScripts).
@@ -574,7 +836,7 @@ export declare const AgentSettingsSchema: z.ZodObject<{
574
836
  dingtalk?: string | undefined;
575
837
  }>>;
576
838
  } & {
577
- claude: z.ZodOptional<z.ZodObject<{
839
+ hermes: z.ZodOptional<z.ZodObject<{
578
840
  httpProxy: z.ZodOptional<z.ZodString>;
579
841
  httpsProxy: z.ZodOptional<z.ZodString>;
580
842
  customEnv: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
@@ -605,7 +867,7 @@ export declare const AgentSettingsSchema: z.ZodObject<{
605
867
  id: string;
606
868
  }[] | undefined;
607
869
  }>>;
608
- copilot: z.ZodOptional<z.ZodObject<{
870
+ codex: z.ZodOptional<z.ZodObject<{
609
871
  httpProxy: z.ZodOptional<z.ZodString>;
610
872
  httpsProxy: z.ZodOptional<z.ZodString>;
611
873
  customEnv: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
@@ -636,7 +898,7 @@ export declare const AgentSettingsSchema: z.ZodObject<{
636
898
  id: string;
637
899
  }[] | undefined;
638
900
  }>>;
639
- opencode: z.ZodOptional<z.ZodObject<{
901
+ claude: z.ZodOptional<z.ZodObject<{
640
902
  httpProxy: z.ZodOptional<z.ZodString>;
641
903
  httpsProxy: z.ZodOptional<z.ZodString>;
642
904
  customEnv: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
@@ -667,7 +929,7 @@ export declare const AgentSettingsSchema: z.ZodObject<{
667
929
  id: string;
668
930
  }[] | undefined;
669
931
  }>>;
670
- codex: z.ZodOptional<z.ZodObject<{
932
+ copilot: z.ZodOptional<z.ZodObject<{
671
933
  httpProxy: z.ZodOptional<z.ZodString>;
672
934
  httpsProxy: z.ZodOptional<z.ZodString>;
673
935
  customEnv: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
@@ -698,7 +960,7 @@ export declare const AgentSettingsSchema: z.ZodObject<{
698
960
  id: string;
699
961
  }[] | undefined;
700
962
  }>>;
701
- gemini: z.ZodOptional<z.ZodObject<{
963
+ opencode: z.ZodOptional<z.ZodObject<{
702
964
  httpProxy: z.ZodOptional<z.ZodString>;
703
965
  httpsProxy: z.ZodOptional<z.ZodString>;
704
966
  customEnv: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
@@ -729,7 +991,7 @@ export declare const AgentSettingsSchema: z.ZodObject<{
729
991
  id: string;
730
992
  }[] | undefined;
731
993
  }>>;
732
- hermes: z.ZodOptional<z.ZodObject<{
994
+ gemini: z.ZodOptional<z.ZodObject<{
733
995
  httpProxy: z.ZodOptional<z.ZodString>;
734
996
  httpsProxy: z.ZodOptional<z.ZodString>;
735
997
  customEnv: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
@@ -791,8 +1053,16 @@ export declare const AgentSettingsSchema: z.ZodObject<{
791
1053
  id: string;
792
1054
  }[] | undefined;
793
1055
  }>>;
1056
+ } & {
1057
+ aiHelper: z.ZodOptional<z.ZodObject<{
1058
+ enabled: z.ZodBoolean;
1059
+ }, "strict", z.ZodTypeAny, {
1060
+ enabled: boolean;
1061
+ }, {
1062
+ enabled: boolean;
1063
+ }>>;
794
1064
  }, "strip", z.ZodTypeAny, {
795
- claude?: {
1065
+ hermes?: {
796
1066
  httpProxy?: string | undefined;
797
1067
  httpsProxy?: string | undefined;
798
1068
  customEnv?: Record<string, string> | undefined;
@@ -801,7 +1071,7 @@ export declare const AgentSettingsSchema: z.ZodObject<{
801
1071
  id: string;
802
1072
  }[] | undefined;
803
1073
  } | undefined;
804
- copilot?: {
1074
+ codex?: {
805
1075
  httpProxy?: string | undefined;
806
1076
  httpsProxy?: string | undefined;
807
1077
  customEnv?: Record<string, string> | undefined;
@@ -810,7 +1080,7 @@ export declare const AgentSettingsSchema: z.ZodObject<{
810
1080
  id: string;
811
1081
  }[] | undefined;
812
1082
  } | undefined;
813
- opencode?: {
1083
+ claude?: {
814
1084
  httpProxy?: string | undefined;
815
1085
  httpsProxy?: string | undefined;
816
1086
  customEnv?: Record<string, string> | undefined;
@@ -819,7 +1089,7 @@ export declare const AgentSettingsSchema: z.ZodObject<{
819
1089
  id: string;
820
1090
  }[] | undefined;
821
1091
  } | undefined;
822
- codex?: {
1092
+ copilot?: {
823
1093
  httpProxy?: string | undefined;
824
1094
  httpsProxy?: string | undefined;
825
1095
  customEnv?: Record<string, string> | undefined;
@@ -828,7 +1098,7 @@ export declare const AgentSettingsSchema: z.ZodObject<{
828
1098
  id: string;
829
1099
  }[] | undefined;
830
1100
  } | undefined;
831
- gemini?: {
1101
+ opencode?: {
832
1102
  httpProxy?: string | undefined;
833
1103
  httpsProxy?: string | undefined;
834
1104
  customEnv?: Record<string, string> | undefined;
@@ -837,7 +1107,7 @@ export declare const AgentSettingsSchema: z.ZodObject<{
837
1107
  id: string;
838
1108
  }[] | undefined;
839
1109
  } | undefined;
840
- hermes?: {
1110
+ gemini?: {
841
1111
  httpProxy?: string | undefined;
842
1112
  httpsProxy?: string | undefined;
843
1113
  customEnv?: Record<string, string> | undefined;
@@ -869,8 +1139,11 @@ export declare const AgentSettingsSchema: z.ZodObject<{
869
1139
  feishu?: string | undefined;
870
1140
  dingtalk?: string | undefined;
871
1141
  } | undefined;
1142
+ aiHelper?: {
1143
+ enabled: boolean;
1144
+ } | undefined;
872
1145
  }, {
873
- claude?: {
1146
+ hermes?: {
874
1147
  httpProxy?: string | undefined;
875
1148
  httpsProxy?: string | undefined;
876
1149
  customEnv?: Record<string, string> | undefined;
@@ -879,7 +1152,7 @@ export declare const AgentSettingsSchema: z.ZodObject<{
879
1152
  id: string;
880
1153
  }[] | undefined;
881
1154
  } | undefined;
882
- copilot?: {
1155
+ codex?: {
883
1156
  httpProxy?: string | undefined;
884
1157
  httpsProxy?: string | undefined;
885
1158
  customEnv?: Record<string, string> | undefined;
@@ -888,7 +1161,7 @@ export declare const AgentSettingsSchema: z.ZodObject<{
888
1161
  id: string;
889
1162
  }[] | undefined;
890
1163
  } | undefined;
891
- opencode?: {
1164
+ claude?: {
892
1165
  httpProxy?: string | undefined;
893
1166
  httpsProxy?: string | undefined;
894
1167
  customEnv?: Record<string, string> | undefined;
@@ -897,7 +1170,7 @@ export declare const AgentSettingsSchema: z.ZodObject<{
897
1170
  id: string;
898
1171
  }[] | undefined;
899
1172
  } | undefined;
900
- codex?: {
1173
+ copilot?: {
901
1174
  httpProxy?: string | undefined;
902
1175
  httpsProxy?: string | undefined;
903
1176
  customEnv?: Record<string, string> | undefined;
@@ -906,7 +1179,7 @@ export declare const AgentSettingsSchema: z.ZodObject<{
906
1179
  id: string;
907
1180
  }[] | undefined;
908
1181
  } | undefined;
909
- gemini?: {
1182
+ opencode?: {
910
1183
  httpProxy?: string | undefined;
911
1184
  httpsProxy?: string | undefined;
912
1185
  customEnv?: Record<string, string> | undefined;
@@ -915,7 +1188,7 @@ export declare const AgentSettingsSchema: z.ZodObject<{
915
1188
  id: string;
916
1189
  }[] | undefined;
917
1190
  } | undefined;
918
- hermes?: {
1191
+ gemini?: {
919
1192
  httpProxy?: string | undefined;
920
1193
  httpsProxy?: string | undefined;
921
1194
  customEnv?: Record<string, string> | undefined;
@@ -947,14 +1220,16 @@ export declare const AgentSettingsSchema: z.ZodObject<{
947
1220
  feishu?: string | undefined;
948
1221
  dingtalk?: string | undefined;
949
1222
  } | undefined;
1223
+ aiHelper?: {
1224
+ enabled: boolean;
1225
+ } | undefined;
950
1226
  }>;
951
1227
  /**
952
1228
  * Write-only agent settings schema — .strict() rejects unknown fields.
953
1229
  * Sensitive fields managed via separate channels (per RFC-067):
954
1230
  * - customEnv: credentials never leave daemon (not in schema)
955
1231
  * - notification: webhook URL managed via dedicated pushPreferences route (not in schema)
956
- * - startupScripts: declared here for transport but daemon merge preserves local copy;
957
- * server strips it before forwarding to prevent injection (defense-in-depth)
1232
+ * - startupScripts: managed only by the local daemon configuration file (not in schema)
958
1233
  * - machineId: routing key for multi-machine setups, always sent by web client
959
1234
  */
960
1235
  export declare const SetAgentSettingsSchema: z.ZodObject<{
@@ -988,10 +1263,8 @@ export declare const SetAgentSettingsSchema: z.ZodObject<{
988
1263
  }>>;
989
1264
  /** Routing key — web always sends this, server uses it for daemon targeting. */
990
1265
  machineId: z.ZodOptional<z.ZodString>;
991
- /** User-defined startup scripts (string array). Daemon merge preserves local state. */
992
- startupScripts: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
993
1266
  } & {
994
- claude: z.ZodOptional<z.ZodObject<{
1267
+ hermes: z.ZodOptional<z.ZodObject<{
995
1268
  httpProxy: z.ZodOptional<z.ZodString>;
996
1269
  httpsProxy: z.ZodOptional<z.ZodString>;
997
1270
  customModels: z.ZodOptional<z.ZodArray<z.ZodObject<{
@@ -1019,7 +1292,7 @@ export declare const SetAgentSettingsSchema: z.ZodObject<{
1019
1292
  id: string;
1020
1293
  }[] | undefined;
1021
1294
  }>>;
1022
- copilot: z.ZodOptional<z.ZodObject<{
1295
+ codex: z.ZodOptional<z.ZodObject<{
1023
1296
  httpProxy: z.ZodOptional<z.ZodString>;
1024
1297
  httpsProxy: z.ZodOptional<z.ZodString>;
1025
1298
  customModels: z.ZodOptional<z.ZodArray<z.ZodObject<{
@@ -1047,7 +1320,7 @@ export declare const SetAgentSettingsSchema: z.ZodObject<{
1047
1320
  id: string;
1048
1321
  }[] | undefined;
1049
1322
  }>>;
1050
- opencode: z.ZodOptional<z.ZodObject<{
1323
+ claude: z.ZodOptional<z.ZodObject<{
1051
1324
  httpProxy: z.ZodOptional<z.ZodString>;
1052
1325
  httpsProxy: z.ZodOptional<z.ZodString>;
1053
1326
  customModels: z.ZodOptional<z.ZodArray<z.ZodObject<{
@@ -1075,7 +1348,7 @@ export declare const SetAgentSettingsSchema: z.ZodObject<{
1075
1348
  id: string;
1076
1349
  }[] | undefined;
1077
1350
  }>>;
1078
- codex: z.ZodOptional<z.ZodObject<{
1351
+ copilot: z.ZodOptional<z.ZodObject<{
1079
1352
  httpProxy: z.ZodOptional<z.ZodString>;
1080
1353
  httpsProxy: z.ZodOptional<z.ZodString>;
1081
1354
  customModels: z.ZodOptional<z.ZodArray<z.ZodObject<{
@@ -1103,7 +1376,7 @@ export declare const SetAgentSettingsSchema: z.ZodObject<{
1103
1376
  id: string;
1104
1377
  }[] | undefined;
1105
1378
  }>>;
1106
- gemini: z.ZodOptional<z.ZodObject<{
1379
+ opencode: z.ZodOptional<z.ZodObject<{
1107
1380
  httpProxy: z.ZodOptional<z.ZodString>;
1108
1381
  httpsProxy: z.ZodOptional<z.ZodString>;
1109
1382
  customModels: z.ZodOptional<z.ZodArray<z.ZodObject<{
@@ -1131,7 +1404,7 @@ export declare const SetAgentSettingsSchema: z.ZodObject<{
1131
1404
  id: string;
1132
1405
  }[] | undefined;
1133
1406
  }>>;
1134
- hermes: z.ZodOptional<z.ZodObject<{
1407
+ gemini: z.ZodOptional<z.ZodObject<{
1135
1408
  httpProxy: z.ZodOptional<z.ZodString>;
1136
1409
  httpsProxy: z.ZodOptional<z.ZodString>;
1137
1410
  customModels: z.ZodOptional<z.ZodArray<z.ZodObject<{
@@ -1187,8 +1460,16 @@ export declare const SetAgentSettingsSchema: z.ZodObject<{
1187
1460
  id: string;
1188
1461
  }[] | undefined;
1189
1462
  }>>;
1463
+ } & {
1464
+ aiHelper: z.ZodOptional<z.ZodObject<{
1465
+ enabled: z.ZodBoolean;
1466
+ }, "strict", z.ZodTypeAny, {
1467
+ enabled: boolean;
1468
+ }, {
1469
+ enabled: boolean;
1470
+ }>>;
1190
1471
  }, "strict", z.ZodTypeAny, {
1191
- claude?: {
1472
+ hermes?: {
1192
1473
  httpProxy?: string | undefined;
1193
1474
  httpsProxy?: string | undefined;
1194
1475
  customModels?: {
@@ -1196,7 +1477,7 @@ export declare const SetAgentSettingsSchema: z.ZodObject<{
1196
1477
  id: string;
1197
1478
  }[] | undefined;
1198
1479
  } | undefined;
1199
- copilot?: {
1480
+ codex?: {
1200
1481
  httpProxy?: string | undefined;
1201
1482
  httpsProxy?: string | undefined;
1202
1483
  customModels?: {
@@ -1204,7 +1485,7 @@ export declare const SetAgentSettingsSchema: z.ZodObject<{
1204
1485
  id: string;
1205
1486
  }[] | undefined;
1206
1487
  } | undefined;
1207
- opencode?: {
1488
+ claude?: {
1208
1489
  httpProxy?: string | undefined;
1209
1490
  httpsProxy?: string | undefined;
1210
1491
  customModels?: {
@@ -1212,7 +1493,7 @@ export declare const SetAgentSettingsSchema: z.ZodObject<{
1212
1493
  id: string;
1213
1494
  }[] | undefined;
1214
1495
  } | undefined;
1215
- codex?: {
1496
+ copilot?: {
1216
1497
  httpProxy?: string | undefined;
1217
1498
  httpsProxy?: string | undefined;
1218
1499
  customModels?: {
@@ -1220,7 +1501,7 @@ export declare const SetAgentSettingsSchema: z.ZodObject<{
1220
1501
  id: string;
1221
1502
  }[] | undefined;
1222
1503
  } | undefined;
1223
- gemini?: {
1504
+ opencode?: {
1224
1505
  httpProxy?: string | undefined;
1225
1506
  httpsProxy?: string | undefined;
1226
1507
  customModels?: {
@@ -1228,7 +1509,7 @@ export declare const SetAgentSettingsSchema: z.ZodObject<{
1228
1509
  id: string;
1229
1510
  }[] | undefined;
1230
1511
  } | undefined;
1231
- hermes?: {
1512
+ gemini?: {
1232
1513
  httpProxy?: string | undefined;
1233
1514
  httpsProxy?: string | undefined;
1234
1515
  customModels?: {
@@ -1245,7 +1526,6 @@ export declare const SetAgentSettingsSchema: z.ZodObject<{
1245
1526
  }[] | undefined;
1246
1527
  } | undefined;
1247
1528
  machineId?: string | undefined;
1248
- startupScripts?: string[] | undefined;
1249
1529
  defaults?: {
1250
1530
  httpProxy?: string | undefined;
1251
1531
  httpsProxy?: string | undefined;
@@ -1254,8 +1534,11 @@ export declare const SetAgentSettingsSchema: z.ZodObject<{
1254
1534
  id: string;
1255
1535
  }[] | undefined;
1256
1536
  } | undefined;
1537
+ aiHelper?: {
1538
+ enabled: boolean;
1539
+ } | undefined;
1257
1540
  }, {
1258
- claude?: {
1541
+ hermes?: {
1259
1542
  httpProxy?: string | undefined;
1260
1543
  httpsProxy?: string | undefined;
1261
1544
  customModels?: {
@@ -1263,7 +1546,7 @@ export declare const SetAgentSettingsSchema: z.ZodObject<{
1263
1546
  id: string;
1264
1547
  }[] | undefined;
1265
1548
  } | undefined;
1266
- copilot?: {
1549
+ codex?: {
1267
1550
  httpProxy?: string | undefined;
1268
1551
  httpsProxy?: string | undefined;
1269
1552
  customModels?: {
@@ -1271,7 +1554,7 @@ export declare const SetAgentSettingsSchema: z.ZodObject<{
1271
1554
  id: string;
1272
1555
  }[] | undefined;
1273
1556
  } | undefined;
1274
- opencode?: {
1557
+ claude?: {
1275
1558
  httpProxy?: string | undefined;
1276
1559
  httpsProxy?: string | undefined;
1277
1560
  customModels?: {
@@ -1279,7 +1562,7 @@ export declare const SetAgentSettingsSchema: z.ZodObject<{
1279
1562
  id: string;
1280
1563
  }[] | undefined;
1281
1564
  } | undefined;
1282
- codex?: {
1565
+ copilot?: {
1283
1566
  httpProxy?: string | undefined;
1284
1567
  httpsProxy?: string | undefined;
1285
1568
  customModels?: {
@@ -1287,7 +1570,7 @@ export declare const SetAgentSettingsSchema: z.ZodObject<{
1287
1570
  id: string;
1288
1571
  }[] | undefined;
1289
1572
  } | undefined;
1290
- gemini?: {
1573
+ opencode?: {
1291
1574
  httpProxy?: string | undefined;
1292
1575
  httpsProxy?: string | undefined;
1293
1576
  customModels?: {
@@ -1295,7 +1578,7 @@ export declare const SetAgentSettingsSchema: z.ZodObject<{
1295
1578
  id: string;
1296
1579
  }[] | undefined;
1297
1580
  } | undefined;
1298
- hermes?: {
1581
+ gemini?: {
1299
1582
  httpProxy?: string | undefined;
1300
1583
  httpsProxy?: string | undefined;
1301
1584
  customModels?: {
@@ -1312,7 +1595,6 @@ export declare const SetAgentSettingsSchema: z.ZodObject<{
1312
1595
  }[] | undefined;
1313
1596
  } | undefined;
1314
1597
  machineId?: string | undefined;
1315
- startupScripts?: string[] | undefined;
1316
1598
  defaults?: {
1317
1599
  httpProxy?: string | undefined;
1318
1600
  httpsProxy?: string | undefined;
@@ -1321,6 +1603,9 @@ export declare const SetAgentSettingsSchema: z.ZodObject<{
1321
1603
  id: string;
1322
1604
  }[] | undefined;
1323
1605
  } | undefined;
1606
+ aiHelper?: {
1607
+ enabled: boolean;
1608
+ } | undefined;
1324
1609
  }>;
1325
1610
  export type SetAgentSettings = z.infer<typeof SetAgentSettingsSchema>;
1326
1611
  export declare const MachineInfoResponseSchema: z.ZodObject<{
@@ -1405,7 +1690,7 @@ export declare const MachineInfoResponseSchema: z.ZodObject<{
1405
1690
  dingtalk?: string | undefined;
1406
1691
  }>>;
1407
1692
  } & {
1408
- claude: z.ZodOptional<z.ZodObject<{
1693
+ hermes: z.ZodOptional<z.ZodObject<{
1409
1694
  httpProxy: z.ZodOptional<z.ZodString>;
1410
1695
  httpsProxy: z.ZodOptional<z.ZodString>;
1411
1696
  customEnv: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
@@ -1436,7 +1721,7 @@ export declare const MachineInfoResponseSchema: z.ZodObject<{
1436
1721
  id: string;
1437
1722
  }[] | undefined;
1438
1723
  }>>;
1439
- copilot: z.ZodOptional<z.ZodObject<{
1724
+ codex: z.ZodOptional<z.ZodObject<{
1440
1725
  httpProxy: z.ZodOptional<z.ZodString>;
1441
1726
  httpsProxy: z.ZodOptional<z.ZodString>;
1442
1727
  customEnv: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
@@ -1467,7 +1752,7 @@ export declare const MachineInfoResponseSchema: z.ZodObject<{
1467
1752
  id: string;
1468
1753
  }[] | undefined;
1469
1754
  }>>;
1470
- opencode: z.ZodOptional<z.ZodObject<{
1755
+ claude: z.ZodOptional<z.ZodObject<{
1471
1756
  httpProxy: z.ZodOptional<z.ZodString>;
1472
1757
  httpsProxy: z.ZodOptional<z.ZodString>;
1473
1758
  customEnv: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
@@ -1498,7 +1783,7 @@ export declare const MachineInfoResponseSchema: z.ZodObject<{
1498
1783
  id: string;
1499
1784
  }[] | undefined;
1500
1785
  }>>;
1501
- codex: z.ZodOptional<z.ZodObject<{
1786
+ copilot: z.ZodOptional<z.ZodObject<{
1502
1787
  httpProxy: z.ZodOptional<z.ZodString>;
1503
1788
  httpsProxy: z.ZodOptional<z.ZodString>;
1504
1789
  customEnv: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
@@ -1529,7 +1814,7 @@ export declare const MachineInfoResponseSchema: z.ZodObject<{
1529
1814
  id: string;
1530
1815
  }[] | undefined;
1531
1816
  }>>;
1532
- gemini: z.ZodOptional<z.ZodObject<{
1817
+ opencode: z.ZodOptional<z.ZodObject<{
1533
1818
  httpProxy: z.ZodOptional<z.ZodString>;
1534
1819
  httpsProxy: z.ZodOptional<z.ZodString>;
1535
1820
  customEnv: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
@@ -1560,7 +1845,7 @@ export declare const MachineInfoResponseSchema: z.ZodObject<{
1560
1845
  id: string;
1561
1846
  }[] | undefined;
1562
1847
  }>>;
1563
- hermes: z.ZodOptional<z.ZodObject<{
1848
+ gemini: z.ZodOptional<z.ZodObject<{
1564
1849
  httpProxy: z.ZodOptional<z.ZodString>;
1565
1850
  httpsProxy: z.ZodOptional<z.ZodString>;
1566
1851
  customEnv: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
@@ -1622,8 +1907,16 @@ export declare const MachineInfoResponseSchema: z.ZodObject<{
1622
1907
  id: string;
1623
1908
  }[] | undefined;
1624
1909
  }>>;
1910
+ } & {
1911
+ aiHelper: z.ZodOptional<z.ZodObject<{
1912
+ enabled: z.ZodBoolean;
1913
+ }, "strict", z.ZodTypeAny, {
1914
+ enabled: boolean;
1915
+ }, {
1916
+ enabled: boolean;
1917
+ }>>;
1625
1918
  }, "strip", z.ZodTypeAny, {
1626
- claude?: {
1919
+ hermes?: {
1627
1920
  httpProxy?: string | undefined;
1628
1921
  httpsProxy?: string | undefined;
1629
1922
  customEnv?: Record<string, string> | undefined;
@@ -1632,7 +1925,7 @@ export declare const MachineInfoResponseSchema: z.ZodObject<{
1632
1925
  id: string;
1633
1926
  }[] | undefined;
1634
1927
  } | undefined;
1635
- copilot?: {
1928
+ codex?: {
1636
1929
  httpProxy?: string | undefined;
1637
1930
  httpsProxy?: string | undefined;
1638
1931
  customEnv?: Record<string, string> | undefined;
@@ -1641,7 +1934,7 @@ export declare const MachineInfoResponseSchema: z.ZodObject<{
1641
1934
  id: string;
1642
1935
  }[] | undefined;
1643
1936
  } | undefined;
1644
- opencode?: {
1937
+ claude?: {
1645
1938
  httpProxy?: string | undefined;
1646
1939
  httpsProxy?: string | undefined;
1647
1940
  customEnv?: Record<string, string> | undefined;
@@ -1650,7 +1943,7 @@ export declare const MachineInfoResponseSchema: z.ZodObject<{
1650
1943
  id: string;
1651
1944
  }[] | undefined;
1652
1945
  } | undefined;
1653
- codex?: {
1946
+ copilot?: {
1654
1947
  httpProxy?: string | undefined;
1655
1948
  httpsProxy?: string | undefined;
1656
1949
  customEnv?: Record<string, string> | undefined;
@@ -1659,7 +1952,7 @@ export declare const MachineInfoResponseSchema: z.ZodObject<{
1659
1952
  id: string;
1660
1953
  }[] | undefined;
1661
1954
  } | undefined;
1662
- gemini?: {
1955
+ opencode?: {
1663
1956
  httpProxy?: string | undefined;
1664
1957
  httpsProxy?: string | undefined;
1665
1958
  customEnv?: Record<string, string> | undefined;
@@ -1668,7 +1961,7 @@ export declare const MachineInfoResponseSchema: z.ZodObject<{
1668
1961
  id: string;
1669
1962
  }[] | undefined;
1670
1963
  } | undefined;
1671
- hermes?: {
1964
+ gemini?: {
1672
1965
  httpProxy?: string | undefined;
1673
1966
  httpsProxy?: string | undefined;
1674
1967
  customEnv?: Record<string, string> | undefined;
@@ -1700,8 +1993,11 @@ export declare const MachineInfoResponseSchema: z.ZodObject<{
1700
1993
  feishu?: string | undefined;
1701
1994
  dingtalk?: string | undefined;
1702
1995
  } | undefined;
1996
+ aiHelper?: {
1997
+ enabled: boolean;
1998
+ } | undefined;
1703
1999
  }, {
1704
- claude?: {
2000
+ hermes?: {
1705
2001
  httpProxy?: string | undefined;
1706
2002
  httpsProxy?: string | undefined;
1707
2003
  customEnv?: Record<string, string> | undefined;
@@ -1710,7 +2006,7 @@ export declare const MachineInfoResponseSchema: z.ZodObject<{
1710
2006
  id: string;
1711
2007
  }[] | undefined;
1712
2008
  } | undefined;
1713
- copilot?: {
2009
+ codex?: {
1714
2010
  httpProxy?: string | undefined;
1715
2011
  httpsProxy?: string | undefined;
1716
2012
  customEnv?: Record<string, string> | undefined;
@@ -1719,7 +2015,7 @@ export declare const MachineInfoResponseSchema: z.ZodObject<{
1719
2015
  id: string;
1720
2016
  }[] | undefined;
1721
2017
  } | undefined;
1722
- opencode?: {
2018
+ claude?: {
1723
2019
  httpProxy?: string | undefined;
1724
2020
  httpsProxy?: string | undefined;
1725
2021
  customEnv?: Record<string, string> | undefined;
@@ -1728,7 +2024,7 @@ export declare const MachineInfoResponseSchema: z.ZodObject<{
1728
2024
  id: string;
1729
2025
  }[] | undefined;
1730
2026
  } | undefined;
1731
- codex?: {
2027
+ copilot?: {
1732
2028
  httpProxy?: string | undefined;
1733
2029
  httpsProxy?: string | undefined;
1734
2030
  customEnv?: Record<string, string> | undefined;
@@ -1737,7 +2033,7 @@ export declare const MachineInfoResponseSchema: z.ZodObject<{
1737
2033
  id: string;
1738
2034
  }[] | undefined;
1739
2035
  } | undefined;
1740
- gemini?: {
2036
+ opencode?: {
1741
2037
  httpProxy?: string | undefined;
1742
2038
  httpsProxy?: string | undefined;
1743
2039
  customEnv?: Record<string, string> | undefined;
@@ -1746,7 +2042,7 @@ export declare const MachineInfoResponseSchema: z.ZodObject<{
1746
2042
  id: string;
1747
2043
  }[] | undefined;
1748
2044
  } | undefined;
1749
- hermes?: {
2045
+ gemini?: {
1750
2046
  httpProxy?: string | undefined;
1751
2047
  httpsProxy?: string | undefined;
1752
2048
  customEnv?: Record<string, string> | undefined;
@@ -1778,6 +2074,9 @@ export declare const MachineInfoResponseSchema: z.ZodObject<{
1778
2074
  feishu?: string | undefined;
1779
2075
  dingtalk?: string | undefined;
1780
2076
  } | undefined;
2077
+ aiHelper?: {
2078
+ enabled: boolean;
2079
+ } | undefined;
1781
2080
  }>>;
1782
2081
  /** Agent skills discovered from filesystem provider directories.
1783
2082
  * Keyed by agent type (e.g. 'claude'). */
@@ -1809,6 +2108,9 @@ export declare const MachineInfoResponseSchema: z.ZodObject<{
1809
2108
  /** Project root directory for project-level skills. Undefined for user-level skills. */
1810
2109
  projectPath: z.ZodOptional<z.ZodString>;
1811
2110
  }, z.ZodTypeAny, "passthrough">>, "many">>>;
2111
+ /** Daemon-declared capabilities (RFC-081/073 rolling-upgrade gates). Absent on
2112
+ * older daemons; web treats an absent value as "not supported". */
2113
+ capabilities: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1812
2114
  }, "strip", z.ZodTypeAny, {
1813
2115
  homedir: string;
1814
2116
  recentCwds: string[];
@@ -1828,7 +2130,7 @@ export declare const MachineInfoResponseSchema: z.ZodObject<{
1828
2130
  }[]> | undefined;
1829
2131
  agentCliPaths?: Record<string, string> | undefined;
1830
2132
  agentSettings?: {
1831
- claude?: {
2133
+ hermes?: {
1832
2134
  httpProxy?: string | undefined;
1833
2135
  httpsProxy?: string | undefined;
1834
2136
  customEnv?: Record<string, string> | undefined;
@@ -1837,7 +2139,7 @@ export declare const MachineInfoResponseSchema: z.ZodObject<{
1837
2139
  id: string;
1838
2140
  }[] | undefined;
1839
2141
  } | undefined;
1840
- copilot?: {
2142
+ codex?: {
1841
2143
  httpProxy?: string | undefined;
1842
2144
  httpsProxy?: string | undefined;
1843
2145
  customEnv?: Record<string, string> | undefined;
@@ -1846,7 +2148,7 @@ export declare const MachineInfoResponseSchema: z.ZodObject<{
1846
2148
  id: string;
1847
2149
  }[] | undefined;
1848
2150
  } | undefined;
1849
- opencode?: {
2151
+ claude?: {
1850
2152
  httpProxy?: string | undefined;
1851
2153
  httpsProxy?: string | undefined;
1852
2154
  customEnv?: Record<string, string> | undefined;
@@ -1855,7 +2157,7 @@ export declare const MachineInfoResponseSchema: z.ZodObject<{
1855
2157
  id: string;
1856
2158
  }[] | undefined;
1857
2159
  } | undefined;
1858
- codex?: {
2160
+ copilot?: {
1859
2161
  httpProxy?: string | undefined;
1860
2162
  httpsProxy?: string | undefined;
1861
2163
  customEnv?: Record<string, string> | undefined;
@@ -1864,7 +2166,7 @@ export declare const MachineInfoResponseSchema: z.ZodObject<{
1864
2166
  id: string;
1865
2167
  }[] | undefined;
1866
2168
  } | undefined;
1867
- gemini?: {
2169
+ opencode?: {
1868
2170
  httpProxy?: string | undefined;
1869
2171
  httpsProxy?: string | undefined;
1870
2172
  customEnv?: Record<string, string> | undefined;
@@ -1873,7 +2175,7 @@ export declare const MachineInfoResponseSchema: z.ZodObject<{
1873
2175
  id: string;
1874
2176
  }[] | undefined;
1875
2177
  } | undefined;
1876
- hermes?: {
2178
+ gemini?: {
1877
2179
  httpProxy?: string | undefined;
1878
2180
  httpsProxy?: string | undefined;
1879
2181
  customEnv?: Record<string, string> | undefined;
@@ -1905,6 +2207,9 @@ export declare const MachineInfoResponseSchema: z.ZodObject<{
1905
2207
  feishu?: string | undefined;
1906
2208
  dingtalk?: string | undefined;
1907
2209
  } | undefined;
2210
+ aiHelper?: {
2211
+ enabled: boolean;
2212
+ } | undefined;
1908
2213
  } | undefined;
1909
2214
  agentSkills?: Record<string, z.objectOutputType<{
1910
2215
  name: z.ZodString;
@@ -1916,6 +2221,7 @@ export declare const MachineInfoResponseSchema: z.ZodObject<{
1916
2221
  /** Project root directory for project-level skills. Undefined for user-level skills. */
1917
2222
  projectPath: z.ZodOptional<z.ZodString>;
1918
2223
  }, z.ZodTypeAny, "passthrough">[]> | undefined;
2224
+ capabilities?: string[] | undefined;
1919
2225
  }, {
1920
2226
  homedir: string;
1921
2227
  recentCwds: string[];
@@ -1935,7 +2241,7 @@ export declare const MachineInfoResponseSchema: z.ZodObject<{
1935
2241
  }[]> | undefined;
1936
2242
  agentCliPaths?: Record<string, string> | undefined;
1937
2243
  agentSettings?: {
1938
- claude?: {
2244
+ hermes?: {
1939
2245
  httpProxy?: string | undefined;
1940
2246
  httpsProxy?: string | undefined;
1941
2247
  customEnv?: Record<string, string> | undefined;
@@ -1944,7 +2250,7 @@ export declare const MachineInfoResponseSchema: z.ZodObject<{
1944
2250
  id: string;
1945
2251
  }[] | undefined;
1946
2252
  } | undefined;
1947
- copilot?: {
2253
+ codex?: {
1948
2254
  httpProxy?: string | undefined;
1949
2255
  httpsProxy?: string | undefined;
1950
2256
  customEnv?: Record<string, string> | undefined;
@@ -1953,7 +2259,7 @@ export declare const MachineInfoResponseSchema: z.ZodObject<{
1953
2259
  id: string;
1954
2260
  }[] | undefined;
1955
2261
  } | undefined;
1956
- opencode?: {
2262
+ claude?: {
1957
2263
  httpProxy?: string | undefined;
1958
2264
  httpsProxy?: string | undefined;
1959
2265
  customEnv?: Record<string, string> | undefined;
@@ -1962,7 +2268,7 @@ export declare const MachineInfoResponseSchema: z.ZodObject<{
1962
2268
  id: string;
1963
2269
  }[] | undefined;
1964
2270
  } | undefined;
1965
- codex?: {
2271
+ copilot?: {
1966
2272
  httpProxy?: string | undefined;
1967
2273
  httpsProxy?: string | undefined;
1968
2274
  customEnv?: Record<string, string> | undefined;
@@ -1971,7 +2277,7 @@ export declare const MachineInfoResponseSchema: z.ZodObject<{
1971
2277
  id: string;
1972
2278
  }[] | undefined;
1973
2279
  } | undefined;
1974
- gemini?: {
2280
+ opencode?: {
1975
2281
  httpProxy?: string | undefined;
1976
2282
  httpsProxy?: string | undefined;
1977
2283
  customEnv?: Record<string, string> | undefined;
@@ -1980,7 +2286,7 @@ export declare const MachineInfoResponseSchema: z.ZodObject<{
1980
2286
  id: string;
1981
2287
  }[] | undefined;
1982
2288
  } | undefined;
1983
- hermes?: {
2289
+ gemini?: {
1984
2290
  httpProxy?: string | undefined;
1985
2291
  httpsProxy?: string | undefined;
1986
2292
  customEnv?: Record<string, string> | undefined;
@@ -2012,6 +2318,9 @@ export declare const MachineInfoResponseSchema: z.ZodObject<{
2012
2318
  feishu?: string | undefined;
2013
2319
  dingtalk?: string | undefined;
2014
2320
  } | undefined;
2321
+ aiHelper?: {
2322
+ enabled: boolean;
2323
+ } | undefined;
2015
2324
  } | undefined;
2016
2325
  agentSkills?: Record<string, z.objectInputType<{
2017
2326
  name: z.ZodString;
@@ -2023,6 +2332,7 @@ export declare const MachineInfoResponseSchema: z.ZodObject<{
2023
2332
  /** Project root directory for project-level skills. Undefined for user-level skills. */
2024
2333
  projectPath: z.ZodOptional<z.ZodString>;
2025
2334
  }, z.ZodTypeAny, "passthrough">[]> | undefined;
2335
+ capabilities?: string[] | undefined;
2026
2336
  }>;
2027
2337
  export declare const CheckPathParamsSchema: z.ZodObject<{
2028
2338
  cwd: z.ZodString;
@@ -2052,5 +2362,495 @@ export type MachineInfoResponse = z.infer<typeof MachineInfoResponseSchema>;
2052
2362
  export type CheckPathParams = z.infer<typeof CheckPathParamsSchema>;
2053
2363
  export type AgentEnvConfig = z.infer<typeof AgentEnvConfigSchema>;
2054
2364
  export type AgentSettings = z.infer<typeof AgentSettingsSchema>;
2365
+ /** Daemon-local agent-settings.json schema. Never use for RPC projection. */
2366
+ export declare const LocalAgentSettingsSchema: z.ZodObject<Omit<{
2367
+ defaults: z.ZodOptional<z.ZodObject<{
2368
+ httpProxy: z.ZodOptional<z.ZodString>;
2369
+ httpsProxy: z.ZodOptional<z.ZodString>;
2370
+ customEnv: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
2371
+ customModels: z.ZodOptional<z.ZodArray<z.ZodObject<{
2372
+ id: z.ZodString;
2373
+ label: z.ZodString;
2374
+ }, "strip", z.ZodTypeAny, {
2375
+ label: string;
2376
+ id: string;
2377
+ }, {
2378
+ label: string;
2379
+ id: string;
2380
+ }>, "many">>;
2381
+ }, "strict", z.ZodTypeAny, {
2382
+ httpProxy?: string | undefined;
2383
+ httpsProxy?: string | undefined;
2384
+ customEnv?: Record<string, string> | undefined;
2385
+ customModels?: {
2386
+ label: string;
2387
+ id: string;
2388
+ }[] | undefined;
2389
+ }, {
2390
+ httpProxy?: string | undefined;
2391
+ httpsProxy?: string | undefined;
2392
+ customEnv?: Record<string, string> | undefined;
2393
+ customModels?: {
2394
+ label: string;
2395
+ id: string;
2396
+ }[] | undefined;
2397
+ }>>;
2398
+ startupScripts: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2399
+ notification: z.ZodOptional<z.ZodObject<{
2400
+ feishu: z.ZodOptional<z.ZodString>;
2401
+ dingtalk: z.ZodOptional<z.ZodString>;
2402
+ }, "strip", z.ZodTypeAny, {
2403
+ feishu?: string | undefined;
2404
+ dingtalk?: string | undefined;
2405
+ }, {
2406
+ feishu?: string | undefined;
2407
+ dingtalk?: string | undefined;
2408
+ }>>;
2409
+ } & {
2410
+ hermes: z.ZodOptional<z.ZodObject<{
2411
+ httpProxy: z.ZodOptional<z.ZodString>;
2412
+ httpsProxy: z.ZodOptional<z.ZodString>;
2413
+ customEnv: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
2414
+ customModels: z.ZodOptional<z.ZodArray<z.ZodObject<{
2415
+ id: z.ZodString;
2416
+ label: z.ZodString;
2417
+ }, "strip", z.ZodTypeAny, {
2418
+ label: string;
2419
+ id: string;
2420
+ }, {
2421
+ label: string;
2422
+ id: string;
2423
+ }>, "many">>;
2424
+ }, "strict", z.ZodTypeAny, {
2425
+ httpProxy?: string | undefined;
2426
+ httpsProxy?: string | undefined;
2427
+ customEnv?: Record<string, string> | undefined;
2428
+ customModels?: {
2429
+ label: string;
2430
+ id: string;
2431
+ }[] | undefined;
2432
+ }, {
2433
+ httpProxy?: string | undefined;
2434
+ httpsProxy?: string | undefined;
2435
+ customEnv?: Record<string, string> | undefined;
2436
+ customModels?: {
2437
+ label: string;
2438
+ id: string;
2439
+ }[] | undefined;
2440
+ }>>;
2441
+ codex: z.ZodOptional<z.ZodObject<{
2442
+ httpProxy: z.ZodOptional<z.ZodString>;
2443
+ httpsProxy: z.ZodOptional<z.ZodString>;
2444
+ customEnv: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
2445
+ customModels: z.ZodOptional<z.ZodArray<z.ZodObject<{
2446
+ id: z.ZodString;
2447
+ label: z.ZodString;
2448
+ }, "strip", z.ZodTypeAny, {
2449
+ label: string;
2450
+ id: string;
2451
+ }, {
2452
+ label: string;
2453
+ id: string;
2454
+ }>, "many">>;
2455
+ }, "strict", z.ZodTypeAny, {
2456
+ httpProxy?: string | undefined;
2457
+ httpsProxy?: string | undefined;
2458
+ customEnv?: Record<string, string> | undefined;
2459
+ customModels?: {
2460
+ label: string;
2461
+ id: string;
2462
+ }[] | undefined;
2463
+ }, {
2464
+ httpProxy?: string | undefined;
2465
+ httpsProxy?: string | undefined;
2466
+ customEnv?: Record<string, string> | undefined;
2467
+ customModels?: {
2468
+ label: string;
2469
+ id: string;
2470
+ }[] | undefined;
2471
+ }>>;
2472
+ claude: z.ZodOptional<z.ZodObject<{
2473
+ httpProxy: z.ZodOptional<z.ZodString>;
2474
+ httpsProxy: z.ZodOptional<z.ZodString>;
2475
+ customEnv: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
2476
+ customModels: z.ZodOptional<z.ZodArray<z.ZodObject<{
2477
+ id: z.ZodString;
2478
+ label: z.ZodString;
2479
+ }, "strip", z.ZodTypeAny, {
2480
+ label: string;
2481
+ id: string;
2482
+ }, {
2483
+ label: string;
2484
+ id: string;
2485
+ }>, "many">>;
2486
+ }, "strict", z.ZodTypeAny, {
2487
+ httpProxy?: string | undefined;
2488
+ httpsProxy?: string | undefined;
2489
+ customEnv?: Record<string, string> | undefined;
2490
+ customModels?: {
2491
+ label: string;
2492
+ id: string;
2493
+ }[] | undefined;
2494
+ }, {
2495
+ httpProxy?: string | undefined;
2496
+ httpsProxy?: string | undefined;
2497
+ customEnv?: Record<string, string> | undefined;
2498
+ customModels?: {
2499
+ label: string;
2500
+ id: string;
2501
+ }[] | undefined;
2502
+ }>>;
2503
+ copilot: z.ZodOptional<z.ZodObject<{
2504
+ httpProxy: z.ZodOptional<z.ZodString>;
2505
+ httpsProxy: z.ZodOptional<z.ZodString>;
2506
+ customEnv: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
2507
+ customModels: z.ZodOptional<z.ZodArray<z.ZodObject<{
2508
+ id: z.ZodString;
2509
+ label: z.ZodString;
2510
+ }, "strip", z.ZodTypeAny, {
2511
+ label: string;
2512
+ id: string;
2513
+ }, {
2514
+ label: string;
2515
+ id: string;
2516
+ }>, "many">>;
2517
+ }, "strict", z.ZodTypeAny, {
2518
+ httpProxy?: string | undefined;
2519
+ httpsProxy?: string | undefined;
2520
+ customEnv?: Record<string, string> | undefined;
2521
+ customModels?: {
2522
+ label: string;
2523
+ id: string;
2524
+ }[] | undefined;
2525
+ }, {
2526
+ httpProxy?: string | undefined;
2527
+ httpsProxy?: string | undefined;
2528
+ customEnv?: Record<string, string> | undefined;
2529
+ customModels?: {
2530
+ label: string;
2531
+ id: string;
2532
+ }[] | undefined;
2533
+ }>>;
2534
+ opencode: z.ZodOptional<z.ZodObject<{
2535
+ httpProxy: z.ZodOptional<z.ZodString>;
2536
+ httpsProxy: z.ZodOptional<z.ZodString>;
2537
+ customEnv: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
2538
+ customModels: z.ZodOptional<z.ZodArray<z.ZodObject<{
2539
+ id: z.ZodString;
2540
+ label: z.ZodString;
2541
+ }, "strip", z.ZodTypeAny, {
2542
+ label: string;
2543
+ id: string;
2544
+ }, {
2545
+ label: string;
2546
+ id: string;
2547
+ }>, "many">>;
2548
+ }, "strict", z.ZodTypeAny, {
2549
+ httpProxy?: string | undefined;
2550
+ httpsProxy?: string | undefined;
2551
+ customEnv?: Record<string, string> | undefined;
2552
+ customModels?: {
2553
+ label: string;
2554
+ id: string;
2555
+ }[] | undefined;
2556
+ }, {
2557
+ httpProxy?: string | undefined;
2558
+ httpsProxy?: string | undefined;
2559
+ customEnv?: Record<string, string> | undefined;
2560
+ customModels?: {
2561
+ label: string;
2562
+ id: string;
2563
+ }[] | undefined;
2564
+ }>>;
2565
+ gemini: z.ZodOptional<z.ZodObject<{
2566
+ httpProxy: z.ZodOptional<z.ZodString>;
2567
+ httpsProxy: z.ZodOptional<z.ZodString>;
2568
+ customEnv: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
2569
+ customModels: z.ZodOptional<z.ZodArray<z.ZodObject<{
2570
+ id: z.ZodString;
2571
+ label: z.ZodString;
2572
+ }, "strip", z.ZodTypeAny, {
2573
+ label: string;
2574
+ id: string;
2575
+ }, {
2576
+ label: string;
2577
+ id: string;
2578
+ }>, "many">>;
2579
+ }, "strict", z.ZodTypeAny, {
2580
+ httpProxy?: string | undefined;
2581
+ httpsProxy?: string | undefined;
2582
+ customEnv?: Record<string, string> | undefined;
2583
+ customModels?: {
2584
+ label: string;
2585
+ id: string;
2586
+ }[] | undefined;
2587
+ }, {
2588
+ httpProxy?: string | undefined;
2589
+ httpsProxy?: string | undefined;
2590
+ customEnv?: Record<string, string> | undefined;
2591
+ customModels?: {
2592
+ label: string;
2593
+ id: string;
2594
+ }[] | undefined;
2595
+ }>>;
2596
+ openclaw: z.ZodOptional<z.ZodObject<{
2597
+ httpProxy: z.ZodOptional<z.ZodString>;
2598
+ httpsProxy: z.ZodOptional<z.ZodString>;
2599
+ customEnv: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
2600
+ customModels: z.ZodOptional<z.ZodArray<z.ZodObject<{
2601
+ id: z.ZodString;
2602
+ label: z.ZodString;
2603
+ }, "strip", z.ZodTypeAny, {
2604
+ label: string;
2605
+ id: string;
2606
+ }, {
2607
+ label: string;
2608
+ id: string;
2609
+ }>, "many">>;
2610
+ }, "strict", z.ZodTypeAny, {
2611
+ httpProxy?: string | undefined;
2612
+ httpsProxy?: string | undefined;
2613
+ customEnv?: Record<string, string> | undefined;
2614
+ customModels?: {
2615
+ label: string;
2616
+ id: string;
2617
+ }[] | undefined;
2618
+ }, {
2619
+ httpProxy?: string | undefined;
2620
+ httpsProxy?: string | undefined;
2621
+ customEnv?: Record<string, string> | undefined;
2622
+ customModels?: {
2623
+ label: string;
2624
+ id: string;
2625
+ }[] | undefined;
2626
+ }>>;
2627
+ } & {
2628
+ aiHelper: z.ZodOptional<z.ZodObject<{
2629
+ enabled: z.ZodBoolean;
2630
+ }, "strict", z.ZodTypeAny, {
2631
+ enabled: boolean;
2632
+ }, {
2633
+ enabled: boolean;
2634
+ }>>;
2635
+ }, "aiHelper"> & {
2636
+ version: z.ZodOptional<z.ZodLiteral<1>>;
2637
+ aiHelper: z.ZodOptional<z.ZodEffects<z.ZodObject<{
2638
+ enabled: z.ZodBoolean;
2639
+ provider: z.ZodOptional<z.ZodEnum<["openai", "anthropic", "openai-compatible"]>>;
2640
+ baseUrl: z.ZodOptional<z.ZodString>;
2641
+ apiKey: z.ZodOptional<z.ZodString>;
2642
+ modelId: z.ZodOptional<z.ZodString>;
2643
+ /**
2644
+ * Opt-in reasoning/thinking disabling. Off by default because the exact
2645
+ * parameter varies by gateway and sending the wrong one (e.g.
2646
+ * `reasoning_effort: "none"` to OpenAI) yields a 400. Enable only when the
2647
+ * configured gateway is known to support the corresponding parameter.
2648
+ */
2649
+ disableReasoning: z.ZodOptional<z.ZodBoolean>;
2650
+ }, "strict", z.ZodTypeAny, {
2651
+ enabled: boolean;
2652
+ baseUrl?: string | undefined;
2653
+ provider?: "openai" | "anthropic" | "openai-compatible" | undefined;
2654
+ apiKey?: string | undefined;
2655
+ modelId?: string | undefined;
2656
+ disableReasoning?: boolean | undefined;
2657
+ }, {
2658
+ enabled: boolean;
2659
+ baseUrl?: string | undefined;
2660
+ provider?: "openai" | "anthropic" | "openai-compatible" | undefined;
2661
+ apiKey?: string | undefined;
2662
+ modelId?: string | undefined;
2663
+ disableReasoning?: boolean | undefined;
2664
+ }>, {
2665
+ enabled: boolean;
2666
+ baseUrl?: string | undefined;
2667
+ provider?: "openai" | "anthropic" | "openai-compatible" | undefined;
2668
+ apiKey?: string | undefined;
2669
+ modelId?: string | undefined;
2670
+ disableReasoning?: boolean | undefined;
2671
+ }, {
2672
+ enabled: boolean;
2673
+ baseUrl?: string | undefined;
2674
+ provider?: "openai" | "anthropic" | "openai-compatible" | undefined;
2675
+ apiKey?: string | undefined;
2676
+ modelId?: string | undefined;
2677
+ disableReasoning?: boolean | undefined;
2678
+ }>>;
2679
+ }, "strip", z.ZodTypeAny, {
2680
+ hermes?: {
2681
+ httpProxy?: string | undefined;
2682
+ httpsProxy?: string | undefined;
2683
+ customEnv?: Record<string, string> | undefined;
2684
+ customModels?: {
2685
+ label: string;
2686
+ id: string;
2687
+ }[] | undefined;
2688
+ } | undefined;
2689
+ codex?: {
2690
+ httpProxy?: string | undefined;
2691
+ httpsProxy?: string | undefined;
2692
+ customEnv?: Record<string, string> | undefined;
2693
+ customModels?: {
2694
+ label: string;
2695
+ id: string;
2696
+ }[] | undefined;
2697
+ } | undefined;
2698
+ claude?: {
2699
+ httpProxy?: string | undefined;
2700
+ httpsProxy?: string | undefined;
2701
+ customEnv?: Record<string, string> | undefined;
2702
+ customModels?: {
2703
+ label: string;
2704
+ id: string;
2705
+ }[] | undefined;
2706
+ } | undefined;
2707
+ copilot?: {
2708
+ httpProxy?: string | undefined;
2709
+ httpsProxy?: string | undefined;
2710
+ customEnv?: Record<string, string> | undefined;
2711
+ customModels?: {
2712
+ label: string;
2713
+ id: string;
2714
+ }[] | undefined;
2715
+ } | undefined;
2716
+ opencode?: {
2717
+ httpProxy?: string | undefined;
2718
+ httpsProxy?: string | undefined;
2719
+ customEnv?: Record<string, string> | undefined;
2720
+ customModels?: {
2721
+ label: string;
2722
+ id: string;
2723
+ }[] | undefined;
2724
+ } | undefined;
2725
+ gemini?: {
2726
+ httpProxy?: string | undefined;
2727
+ httpsProxy?: string | undefined;
2728
+ customEnv?: Record<string, string> | undefined;
2729
+ customModels?: {
2730
+ label: string;
2731
+ id: string;
2732
+ }[] | undefined;
2733
+ } | undefined;
2734
+ openclaw?: {
2735
+ httpProxy?: string | undefined;
2736
+ httpsProxy?: string | undefined;
2737
+ customEnv?: Record<string, string> | undefined;
2738
+ customModels?: {
2739
+ label: string;
2740
+ id: string;
2741
+ }[] | undefined;
2742
+ } | undefined;
2743
+ startupScripts?: string[] | undefined;
2744
+ defaults?: {
2745
+ httpProxy?: string | undefined;
2746
+ httpsProxy?: string | undefined;
2747
+ customEnv?: Record<string, string> | undefined;
2748
+ customModels?: {
2749
+ label: string;
2750
+ id: string;
2751
+ }[] | undefined;
2752
+ } | undefined;
2753
+ notification?: {
2754
+ feishu?: string | undefined;
2755
+ dingtalk?: string | undefined;
2756
+ } | undefined;
2757
+ aiHelper?: {
2758
+ enabled: boolean;
2759
+ baseUrl?: string | undefined;
2760
+ provider?: "openai" | "anthropic" | "openai-compatible" | undefined;
2761
+ apiKey?: string | undefined;
2762
+ modelId?: string | undefined;
2763
+ disableReasoning?: boolean | undefined;
2764
+ } | undefined;
2765
+ version?: 1 | undefined;
2766
+ }, {
2767
+ hermes?: {
2768
+ httpProxy?: string | undefined;
2769
+ httpsProxy?: string | undefined;
2770
+ customEnv?: Record<string, string> | undefined;
2771
+ customModels?: {
2772
+ label: string;
2773
+ id: string;
2774
+ }[] | undefined;
2775
+ } | undefined;
2776
+ codex?: {
2777
+ httpProxy?: string | undefined;
2778
+ httpsProxy?: string | undefined;
2779
+ customEnv?: Record<string, string> | undefined;
2780
+ customModels?: {
2781
+ label: string;
2782
+ id: string;
2783
+ }[] | undefined;
2784
+ } | undefined;
2785
+ claude?: {
2786
+ httpProxy?: string | undefined;
2787
+ httpsProxy?: string | undefined;
2788
+ customEnv?: Record<string, string> | undefined;
2789
+ customModels?: {
2790
+ label: string;
2791
+ id: string;
2792
+ }[] | undefined;
2793
+ } | undefined;
2794
+ copilot?: {
2795
+ httpProxy?: string | undefined;
2796
+ httpsProxy?: string | undefined;
2797
+ customEnv?: Record<string, string> | undefined;
2798
+ customModels?: {
2799
+ label: string;
2800
+ id: string;
2801
+ }[] | undefined;
2802
+ } | undefined;
2803
+ opencode?: {
2804
+ httpProxy?: string | undefined;
2805
+ httpsProxy?: string | undefined;
2806
+ customEnv?: Record<string, string> | undefined;
2807
+ customModels?: {
2808
+ label: string;
2809
+ id: string;
2810
+ }[] | undefined;
2811
+ } | undefined;
2812
+ gemini?: {
2813
+ httpProxy?: string | undefined;
2814
+ httpsProxy?: string | undefined;
2815
+ customEnv?: Record<string, string> | undefined;
2816
+ customModels?: {
2817
+ label: string;
2818
+ id: string;
2819
+ }[] | undefined;
2820
+ } | undefined;
2821
+ openclaw?: {
2822
+ httpProxy?: string | undefined;
2823
+ httpsProxy?: string | undefined;
2824
+ customEnv?: Record<string, string> | undefined;
2825
+ customModels?: {
2826
+ label: string;
2827
+ id: string;
2828
+ }[] | undefined;
2829
+ } | undefined;
2830
+ startupScripts?: string[] | undefined;
2831
+ defaults?: {
2832
+ httpProxy?: string | undefined;
2833
+ httpsProxy?: string | undefined;
2834
+ customEnv?: Record<string, string> | undefined;
2835
+ customModels?: {
2836
+ label: string;
2837
+ id: string;
2838
+ }[] | undefined;
2839
+ } | undefined;
2840
+ notification?: {
2841
+ feishu?: string | undefined;
2842
+ dingtalk?: string | undefined;
2843
+ } | undefined;
2844
+ aiHelper?: {
2845
+ enabled: boolean;
2846
+ baseUrl?: string | undefined;
2847
+ provider?: "openai" | "anthropic" | "openai-compatible" | undefined;
2848
+ apiKey?: string | undefined;
2849
+ modelId?: string | undefined;
2850
+ disableReasoning?: boolean | undefined;
2851
+ } | undefined;
2852
+ version?: 1 | undefined;
2853
+ }>;
2854
+ export type LocalAgentSettings = z.infer<typeof LocalAgentSettingsSchema>;
2055
2855
  export type LabsSettings = z.infer<typeof LabsSettingsSchema>;
2056
2856
  //# sourceMappingURL=rpc.d.ts.map