@agentdock/wire 0.0.93 → 0.0.95

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 (75) hide show
  1. package/dist/accountLanguage.d.ts +26 -0
  2. package/dist/accountLanguage.js +1 -0
  3. package/dist/activityPreferences.d.ts +0 -2
  4. package/dist/agentCapabilities.d.ts +20 -24
  5. package/dist/agentCapabilities.js +1 -1
  6. package/dist/agentCommonEnv.d.ts +0 -9
  7. package/dist/agentInstallGuide.d.ts +0 -7
  8. package/dist/agentRuntimeSettings.d.ts +139 -0
  9. package/dist/agentRuntimeSettings.js +1 -0
  10. package/dist/bgTask.d.ts +13 -24
  11. package/dist/checkpointSchemas.d.ts +1 -2
  12. package/dist/controlLevel.d.ts +1 -9
  13. package/dist/edition.d.ts +0 -1
  14. package/dist/enterpriseGateway.d.ts +214 -0
  15. package/dist/enterpriseGateway.js +1 -0
  16. package/dist/enterprisePolicy.d.ts +1599 -0
  17. package/dist/enterprisePolicy.js +1 -0
  18. package/dist/enterprisePolicyExports.d.ts +2 -0
  19. package/dist/enterprisePolicyExports.js +1 -0
  20. package/dist/enterpriseRuntime.d.ts +317 -0
  21. package/dist/enterpriseRuntime.js +1 -0
  22. package/dist/envelope.d.ts +63 -60
  23. package/dist/errorMessage.d.ts +0 -1
  24. package/dist/events.d.ts +73 -77
  25. package/dist/events.js +1 -1
  26. package/dist/features.d.ts +19 -30
  27. package/dist/features.js +1 -1
  28. package/dist/feedback.d.ts +21 -22
  29. package/dist/fileWhitelist.d.ts +7 -39
  30. package/dist/gateway.d.ts +1184 -0
  31. package/dist/gateway.js +1 -0
  32. package/dist/goals.d.ts +0 -1
  33. package/dist/handoffBrief.d.ts +13 -0
  34. package/dist/handoffBrief.js +52 -0
  35. package/dist/inboundEvents.d.ts +83 -56
  36. package/dist/inboundEvents.js +1 -1
  37. package/dist/index.d.ts +25 -16
  38. package/dist/index.js +1 -1
  39. package/dist/interactionEvents.d.ts +51 -59
  40. package/dist/legacyProtocol.d.ts +36 -42
  41. package/dist/license.d.ts +36 -37
  42. package/dist/machine.d.ts +54 -53
  43. package/dist/machine.js +1 -1
  44. package/dist/messageMeta.d.ts +20 -20
  45. package/dist/messageMeta.js +1 -1
  46. package/dist/messages.d.ts +338 -223
  47. package/dist/messages.js +1 -1
  48. package/dist/notification.d.ts +2 -3
  49. package/dist/ops.d.ts +9 -27
  50. package/dist/pairing.d.ts +9 -49
  51. package/dist/permissionSubject.d.ts +3 -26
  52. package/dist/protocol.d.ts +0 -6
  53. package/dist/rpc.d.ts +957 -196
  54. package/dist/rpc.js +1 -1
  55. package/dist/scheduledTasks.d.ts +59 -60
  56. package/dist/semver.d.ts +3 -22
  57. package/dist/sessionBtw.d.ts +152 -0
  58. package/dist/sessionBtw.js +1 -0
  59. package/dist/sessionResult.d.ts +21 -27
  60. package/dist/sessionTitle.d.ts +9 -0
  61. package/dist/sessionTitle.js +1 -0
  62. package/dist/socketEvents.d.ts +12 -4
  63. package/dist/socketEvents.js +1 -1
  64. package/dist/sourceMetadata.d.ts +3 -16
  65. package/dist/spawnError.d.ts +7 -14
  66. package/dist/stats.d.ts +99 -68
  67. package/dist/stats.js +1 -1
  68. package/dist/sync.d.ts +285 -51
  69. package/dist/sync.js +1 -1
  70. package/dist/taskResult.d.ts +3 -20
  71. package/dist/telemetry.d.ts +1 -11
  72. package/dist/utils.d.ts +0 -1
  73. package/dist/workItems.d.ts +321 -0
  74. package/dist/workItems.js +1 -0
  75. package/package.json +1 -1
package/dist/rpc.d.ts CHANGED
@@ -1,23 +1,23 @@
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", "ai-helper-cancel"]>;
3
3
  export type RpcMethodType = z.infer<typeof RpcMethod>;
4
- /**
5
- * Session-scoped RPC methods — registered by `agentdock start` (CLI process).
6
- * These operate on a specific session and require the CLI to be running.
7
- */
4
+ export declare const AiHelperCancelParamsSchema: z.ZodObject<{
5
+ machineId: z.ZodString;
6
+ sessionId: z.ZodString;
7
+ }, "strict", z.ZodTypeAny, {
8
+ sessionId: string;
9
+ machineId: string;
10
+ }, {
11
+ sessionId: string;
12
+ machineId: string;
13
+ }>;
14
+ export type AiHelperCancelParams = z.infer<typeof AiHelperCancelParamsSchema>;
15
+
8
16
  export declare const SESSION_RPC_METHODS: readonly ["answer-question", "approve-permission", "deny-permission", "abort", "stop-session", "cancel-task", "get-context-usage"];
9
- /**
10
- * Machine-scoped RPC methods registered by the persistent daemon only.
11
- * These are account/machine-level operations independent of any session.
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"];
14
- /**
15
- * All RPC methods that must be registered for Web UI to function.
16
- * Daemon registers MACHINE_RPC_METHODS; CLI registers SESSION_RPC_METHODS.
17
- *
18
- * @deprecated Use SESSION_RPC_METHODS or MACHINE_RPC_METHODS directly.
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"];
17
+
18
+ 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", "ai-helper-cancel"];
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", "ai-helper", "ai-helper-cancel"];
21
21
  export declare const RpcCallSchema: z.ZodObject<{
22
22
  method: z.ZodString;
23
23
  params: z.ZodUnknown;
@@ -54,128 +54,184 @@ 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"]>>;
58
- /**
59
- * SECURITY (RFC-067): daemon MUST NOT consume this field. Forwarding env
60
- * from an RPC payload = a remote env-injection channel (credentials/API
61
- * keys). Env is resolved locally from agentSettings only. parseSpawnParams
62
- * intentionally does not read it; see UNCONSUMED_SPAWN_FIELDS.
63
- */
57
+ permissionMode: z.ZodDefault<z.ZodString>;
58
+
64
59
  env: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
65
60
  model: z.ZodOptional<z.ZodString>;
66
- /** Server-consumed (routing), NOT forwarded to daemon. */
61
+
67
62
  baseUrl: z.ZodOptional<z.ZodString>;
68
- /** System prompt text appended to the agent's built-in system prompt. */
63
+
69
64
  appendSystemPrompt: z.ZodOptional<z.ZodString>;
70
- /** Restrict agent to only these tools (Claude CLI --allowedTools). */
65
+
66
+ responseLanguage: z.ZodOptional<z.ZodEnum<["en", "zh-Hans"]>>;
67
+
71
68
  allowedTools: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
72
- /** Deny agent from using these tools (Claude CLI --disallowedTools). */
69
+
73
70
  disallowedTools: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
74
- /** MCP server config JSON string (Claude CLI --mcp-config). */
71
+
75
72
  mcpConfig: z.ZodOptional<z.ZodString>;
76
- /** Resume a previous session by ID (Claude CLI --resume). */
73
+
77
74
  resumeSessionId: z.ZodOptional<z.ZodString>;
78
- /** Server session ID to reuse (skip creating new session on resume). */
75
+
79
76
  serverSessionId: z.ZodOptional<z.ZodString>;
80
- /** Maximum conversation turns before auto-stop (Claude CLI --max-turns). */
77
+
81
78
  maxTurns: z.ZodOptional<z.ZodNumber>;
82
- /** Target machine for multi-host routing. Omit for single-machine (auto-select). Server-consumed, NOT forwarded to daemon. */
79
+
83
80
  machineId: z.ZodOptional<z.ZodString>;
84
- /**
85
- * Client-generated correlation id for matching the spawned session back to
86
- * the originating spawn call. Written into session metadata and echoed in the
87
- * update-session broadcast so the web client can identify which new session is
88
- * its own (instead of guessing by cwd+machineId, which collides). New-session
89
- * flow only — resume passes serverSessionId instead.
90
- */
81
+
91
82
  spawnToken: z.ZodOptional<z.ZodString>;
92
- /** Replace the default system prompt entirely (Claude CLI --system-prompt). */
83
+
84
+ handoffContext: z.ZodOptional<z.ZodObject<{
85
+ enabled: z.ZodBoolean;
86
+ inheritedDeliveries: z.ZodDefault<z.ZodArray<z.ZodObject<{
87
+ deliveryId: z.ZodString;
88
+ sourceSessionId: z.ZodString;
89
+ sourceSessionTitle: z.ZodString;
90
+ createdAt: z.ZodString;
91
+ summary: z.ZodString;
92
+ brief: z.ZodOptional<z.ZodString>;
93
+ sourceReferences: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
94
+ }, "strict", z.ZodTypeAny, {
95
+ summary: string;
96
+ createdAt: string;
97
+ deliveryId: string;
98
+ sourceSessionId: string;
99
+ sourceSessionTitle: string;
100
+ brief?: string | undefined;
101
+ sourceReferences?: string[] | undefined;
102
+ }, {
103
+ summary: string;
104
+ createdAt: string;
105
+ deliveryId: string;
106
+ sourceSessionId: string;
107
+ sourceSessionTitle: string;
108
+ brief?: string | undefined;
109
+ sourceReferences?: string[] | undefined;
110
+ }>, "many">>;
111
+ }, "strict", z.ZodTypeAny, {
112
+ enabled: boolean;
113
+ inheritedDeliveries: {
114
+ summary: string;
115
+ createdAt: string;
116
+ deliveryId: string;
117
+ sourceSessionId: string;
118
+ sourceSessionTitle: string;
119
+ brief?: string | undefined;
120
+ sourceReferences?: string[] | undefined;
121
+ }[];
122
+ }, {
123
+ enabled: boolean;
124
+ inheritedDeliveries?: {
125
+ summary: string;
126
+ createdAt: string;
127
+ deliveryId: string;
128
+ sourceSessionId: string;
129
+ sourceSessionTitle: string;
130
+ brief?: string | undefined;
131
+ sourceReferences?: string[] | undefined;
132
+ }[] | undefined;
133
+ }>>;
134
+
93
135
  systemPrompt: z.ZodOptional<z.ZodString>;
94
- /** Load system prompt from a file path (Claude CLI --system-prompt-file). */
136
+
95
137
  systemPromptFile: z.ZodOptional<z.ZodString>;
96
- /** Load append system prompt from a file path (Claude CLI --append-system-prompt-file). */
138
+
97
139
  appendSystemPromptFile: z.ZodOptional<z.ZodString>;
98
- /** Fallback model when primary is overloaded (Claude CLI --fallback-model). */
140
+
99
141
  fallbackModel: z.ZodOptional<z.ZodString>;
100
- /** Maximum dollar amount for API calls (Claude CLI --max-budget-usd). */
142
+
101
143
  maxBudgetUsd: z.ZodOptional<z.ZodNumber>;
102
- /** Specify available tools from the built-in set (Claude CLI --tools). */
144
+
103
145
  tools: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
104
- /** Reasoning effort level (Claude CLI --effort). */
146
+
105
147
  effort: z.ZodOptional<z.ZodEnum<["low", "medium", "high", "xhigh", "max"]>>;
106
- /** Additional directories to allow tool access to (Claude CLI --add-dir). */
148
+
107
149
  addDirs: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
108
- /** Agent for the session (Claude CLI --agent). */
150
+
109
151
  agent: z.ZodOptional<z.ZodString>;
110
- /** JSON object defining custom agents (Claude CLI --agents). */
152
+
111
153
  agents: z.ZodOptional<z.ZodString>;
112
- /** JSON Schema for structured output validation (Claude CLI --json-schema). */
154
+
113
155
  jsonSchema: z.ZodOptional<z.ZodString>;
114
- /** Only use MCP servers from --mcp-config (Claude CLI --strict-mcp-config). */
156
+
115
157
  strictMcpConfig: z.ZodOptional<z.ZodBoolean>;
116
- /** Enable Chrome integration (Claude CLI --chrome / --no-chrome). */
158
+
117
159
  chrome: z.ZodOptional<z.ZodBoolean>;
118
- /** Create a git worktree for the session (Claude CLI --worktree). */
160
+
119
161
  worktree: z.ZodOptional<z.ZodUnion<[z.ZodBoolean, z.ZodString]>>;
120
- /** Create a new session ID when resuming (Claude CLI --fork-session). */
162
+
121
163
  forkSession: z.ZodOptional<z.ZodBoolean>;
122
- /** Use a specific session UUID (Claude CLI --session-id). */
164
+
123
165
  sessionId: z.ZodOptional<z.ZodString>;
124
- /** Path to settings file or JSON string (Claude CLI --settings). */
166
+
125
167
  settings: z.ZodOptional<z.ZodString>;
126
- /** Beta headers for API requests (Claude CLI --betas). */
168
+
127
169
  betas: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
128
- /** Enable brief mode with SendUserMessage tool (Claude CLI --brief). */
170
+
129
171
  brief: z.ZodOptional<z.ZodBoolean>;
130
- /** Disable session persistence (Claude CLI --no-session-persistence). */
172
+
131
173
  noSessionPersistence: z.ZodOptional<z.ZodBoolean>;
132
- /** Include partial message chunks (Claude CLI --include-partial-messages). */
174
+
133
175
  includePartialMessages: z.ZodOptional<z.ZodBoolean>;
134
- /** Re-emit user messages for acknowledgment (Claude CLI --replay-user-messages). */
176
+
135
177
  replayUserMessages: z.ZodOptional<z.ZodBoolean>;
136
- /** Comma-separated setting sources (Claude CLI --setting-sources). */
178
+
137
179
  settingSources: z.ZodOptional<z.ZodString>;
138
- /** Disable all skills/slash commands (Claude CLI --disable-slash-commands). */
180
+
139
181
  disableSlashCommands: z.ZodOptional<z.ZodBoolean>;
140
- /** File resources to download at startup (Claude CLI --file). */
182
+
141
183
  files: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
142
- /** Load plugins from directories (Claude CLI --plugin-dir). */
184
+
143
185
  pluginDirs: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
144
- /** Bypass all permission checks (Claude CLI --dangerously-skip-permissions). */
186
+
145
187
  dangerouslySkipPermissions: z.ZodOptional<z.ZodBoolean>;
146
- /** Enable bypass option without auto-enabling (Claude CLI --allow-dangerously-skip-permissions). */
188
+
147
189
  allowDangerouslySkipPermissions: z.ZodOptional<z.ZodBoolean>;
148
- /** Shell commands to execute before agent starts (same shell, && chained). */
190
+
149
191
  startupScripts: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
150
- /** Session source — 'managed' (default), 'history' (scanner), 'scheduled' (cron). */
192
+
151
193
  source: z.ZodDefault<z.ZodEnum<["managed", "history", "scheduled"]>>;
152
- /** Run in background without a terminal window. Used by scheduled tasks. */
194
+
153
195
  background: z.ZodDefault<z.ZodBoolean>;
154
- /** Use Windows Terminal new-tab instead of cmd /c start (Windows only). */
196
+
155
197
  useWindowsTerminal: z.ZodOptional<z.ZodBoolean>;
156
198
  }, "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";
199
+ permissionMode: string;
200
+ agentType: "hermes" | "codex" | "claude" | "copilot" | "opencode" | "gemini" | "openclaw";
159
201
  source: "managed" | "history" | "scheduled";
160
202
  cwd: string;
161
203
  background: boolean;
162
204
  env?: Record<string, string> | undefined;
163
- sessionId?: string | undefined;
164
205
  model?: string | undefined;
165
206
  fallbackModel?: string | undefined;
166
207
  appendSystemPrompt?: string | undefined;
167
208
  allowedTools?: string[] | undefined;
168
209
  disallowedTools?: string[] | undefined;
210
+ sessionId?: string | undefined;
169
211
  agents?: string | undefined;
170
212
  agent?: string | undefined;
213
+ brief?: boolean | undefined;
214
+ machineId?: string | undefined;
171
215
  prompt?: string | undefined;
172
216
  baseUrl?: string | undefined;
217
+ responseLanguage?: "en" | "zh-Hans" | undefined;
173
218
  mcpConfig?: string | undefined;
174
219
  resumeSessionId?: string | undefined;
175
220
  serverSessionId?: string | undefined;
176
221
  maxTurns?: number | undefined;
177
- machineId?: string | undefined;
178
222
  spawnToken?: string | undefined;
223
+ handoffContext?: {
224
+ enabled: boolean;
225
+ inheritedDeliveries: {
226
+ summary: string;
227
+ createdAt: string;
228
+ deliveryId: string;
229
+ sourceSessionId: string;
230
+ sourceSessionTitle: string;
231
+ brief?: string | undefined;
232
+ sourceReferences?: string[] | undefined;
233
+ }[];
234
+ } | undefined;
179
235
  systemPrompt?: string | undefined;
180
236
  systemPromptFile?: string | undefined;
181
237
  appendSystemPromptFile?: string | undefined;
@@ -190,7 +246,6 @@ export declare const SpawnSessionParamsSchema: z.ZodObject<{
190
246
  forkSession?: boolean | undefined;
191
247
  settings?: string | undefined;
192
248
  betas?: string[] | undefined;
193
- brief?: boolean | undefined;
194
249
  noSessionPersistence?: boolean | undefined;
195
250
  includePartialMessages?: boolean | undefined;
196
251
  replayUserMessages?: boolean | undefined;
@@ -203,27 +258,41 @@ export declare const SpawnSessionParamsSchema: z.ZodObject<{
203
258
  startupScripts?: string[] | undefined;
204
259
  useWindowsTerminal?: boolean | undefined;
205
260
  }, {
206
- agentType: "claude" | "copilot" | "opencode" | "codex" | "gemini" | "hermes" | "openclaw";
261
+ agentType: "hermes" | "codex" | "claude" | "copilot" | "opencode" | "gemini" | "openclaw";
207
262
  cwd: string;
208
263
  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;
264
+ permissionMode?: string | undefined;
211
265
  model?: string | undefined;
212
266
  fallbackModel?: string | undefined;
213
267
  appendSystemPrompt?: string | undefined;
214
268
  allowedTools?: string[] | undefined;
215
269
  disallowedTools?: string[] | undefined;
270
+ sessionId?: string | undefined;
216
271
  agents?: string | undefined;
217
272
  source?: "managed" | "history" | "scheduled" | undefined;
218
273
  agent?: string | undefined;
274
+ brief?: boolean | undefined;
275
+ machineId?: string | undefined;
219
276
  prompt?: string | undefined;
220
277
  baseUrl?: string | undefined;
278
+ responseLanguage?: "en" | "zh-Hans" | undefined;
221
279
  mcpConfig?: string | undefined;
222
280
  resumeSessionId?: string | undefined;
223
281
  serverSessionId?: string | undefined;
224
282
  maxTurns?: number | undefined;
225
- machineId?: string | undefined;
226
283
  spawnToken?: string | undefined;
284
+ handoffContext?: {
285
+ enabled: boolean;
286
+ inheritedDeliveries?: {
287
+ summary: string;
288
+ createdAt: string;
289
+ deliveryId: string;
290
+ sourceSessionId: string;
291
+ sourceSessionTitle: string;
292
+ brief?: string | undefined;
293
+ sourceReferences?: string[] | undefined;
294
+ }[] | undefined;
295
+ } | undefined;
227
296
  systemPrompt?: string | undefined;
228
297
  systemPromptFile?: string | undefined;
229
298
  appendSystemPromptFile?: string | undefined;
@@ -238,7 +307,6 @@ export declare const SpawnSessionParamsSchema: z.ZodObject<{
238
307
  forkSession?: boolean | undefined;
239
308
  settings?: string | undefined;
240
309
  betas?: string[] | undefined;
241
- brief?: boolean | undefined;
242
310
  noSessionPersistence?: boolean | undefined;
243
311
  includePartialMessages?: boolean | undefined;
244
312
  replayUserMessages?: boolean | undefined;
@@ -270,15 +338,19 @@ export declare const GetMessagesResponseSchema: z.ZodObject<{
270
338
  id: z.ZodString;
271
339
  seq: z.ZodNumber;
272
340
  localId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
341
+ contextBoundary: z.ZodOptional<z.ZodNullable<z.ZodEnum<["clear", "compact"]>>>;
273
342
  content: z.ZodObject<{
274
343
  c: z.ZodString;
275
344
  t: z.ZodEnum<["encrypted", "plaintext"]>;
345
+ contextBoundary: z.ZodOptional<z.ZodEnum<["clear", "compact"]>>;
276
346
  }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
277
347
  c: z.ZodString;
278
348
  t: z.ZodEnum<["encrypted", "plaintext"]>;
349
+ contextBoundary: z.ZodOptional<z.ZodEnum<["clear", "compact"]>>;
279
350
  }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
280
351
  c: z.ZodString;
281
352
  t: z.ZodEnum<["encrypted", "plaintext"]>;
353
+ contextBoundary: z.ZodOptional<z.ZodEnum<["clear", "compact"]>>;
282
354
  }, z.ZodTypeAny, "passthrough">>;
283
355
  createdAt: z.ZodNumber;
284
356
  updatedAt: z.ZodNumber;
@@ -286,15 +358,19 @@ export declare const GetMessagesResponseSchema: z.ZodObject<{
286
358
  id: z.ZodString;
287
359
  seq: z.ZodNumber;
288
360
  localId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
361
+ contextBoundary: z.ZodOptional<z.ZodNullable<z.ZodEnum<["clear", "compact"]>>>;
289
362
  content: z.ZodObject<{
290
363
  c: z.ZodString;
291
364
  t: z.ZodEnum<["encrypted", "plaintext"]>;
365
+ contextBoundary: z.ZodOptional<z.ZodEnum<["clear", "compact"]>>;
292
366
  }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
293
367
  c: z.ZodString;
294
368
  t: z.ZodEnum<["encrypted", "plaintext"]>;
369
+ contextBoundary: z.ZodOptional<z.ZodEnum<["clear", "compact"]>>;
295
370
  }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
296
371
  c: z.ZodString;
297
372
  t: z.ZodEnum<["encrypted", "plaintext"]>;
373
+ contextBoundary: z.ZodOptional<z.ZodEnum<["clear", "compact"]>>;
298
374
  }, z.ZodTypeAny, "passthrough">>;
299
375
  createdAt: z.ZodNumber;
300
376
  updatedAt: z.ZodNumber;
@@ -302,15 +378,19 @@ export declare const GetMessagesResponseSchema: z.ZodObject<{
302
378
  id: z.ZodString;
303
379
  seq: z.ZodNumber;
304
380
  localId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
381
+ contextBoundary: z.ZodOptional<z.ZodNullable<z.ZodEnum<["clear", "compact"]>>>;
305
382
  content: z.ZodObject<{
306
383
  c: z.ZodString;
307
384
  t: z.ZodEnum<["encrypted", "plaintext"]>;
385
+ contextBoundary: z.ZodOptional<z.ZodEnum<["clear", "compact"]>>;
308
386
  }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
309
387
  c: z.ZodString;
310
388
  t: z.ZodEnum<["encrypted", "plaintext"]>;
389
+ contextBoundary: z.ZodOptional<z.ZodEnum<["clear", "compact"]>>;
311
390
  }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
312
391
  c: z.ZodString;
313
392
  t: z.ZodEnum<["encrypted", "plaintext"]>;
393
+ contextBoundary: z.ZodOptional<z.ZodEnum<["clear", "compact"]>>;
314
394
  }, z.ZodTypeAny, "passthrough">>;
315
395
  createdAt: z.ZodNumber;
316
396
  updatedAt: z.ZodNumber;
@@ -322,15 +402,19 @@ export declare const GetMessagesResponseSchema: z.ZodObject<{
322
402
  id: z.ZodString;
323
403
  seq: z.ZodNumber;
324
404
  localId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
405
+ contextBoundary: z.ZodOptional<z.ZodNullable<z.ZodEnum<["clear", "compact"]>>>;
325
406
  content: z.ZodObject<{
326
407
  c: z.ZodString;
327
408
  t: z.ZodEnum<["encrypted", "plaintext"]>;
409
+ contextBoundary: z.ZodOptional<z.ZodEnum<["clear", "compact"]>>;
328
410
  }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
329
411
  c: z.ZodString;
330
412
  t: z.ZodEnum<["encrypted", "plaintext"]>;
413
+ contextBoundary: z.ZodOptional<z.ZodEnum<["clear", "compact"]>>;
331
414
  }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
332
415
  c: z.ZodString;
333
416
  t: z.ZodEnum<["encrypted", "plaintext"]>;
417
+ contextBoundary: z.ZodOptional<z.ZodEnum<["clear", "compact"]>>;
334
418
  }, z.ZodTypeAny, "passthrough">>;
335
419
  createdAt: z.ZodNumber;
336
420
  updatedAt: z.ZodNumber;
@@ -338,15 +422,19 @@ export declare const GetMessagesResponseSchema: z.ZodObject<{
338
422
  id: z.ZodString;
339
423
  seq: z.ZodNumber;
340
424
  localId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
425
+ contextBoundary: z.ZodOptional<z.ZodNullable<z.ZodEnum<["clear", "compact"]>>>;
341
426
  content: z.ZodObject<{
342
427
  c: z.ZodString;
343
428
  t: z.ZodEnum<["encrypted", "plaintext"]>;
429
+ contextBoundary: z.ZodOptional<z.ZodEnum<["clear", "compact"]>>;
344
430
  }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
345
431
  c: z.ZodString;
346
432
  t: z.ZodEnum<["encrypted", "plaintext"]>;
433
+ contextBoundary: z.ZodOptional<z.ZodEnum<["clear", "compact"]>>;
347
434
  }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
348
435
  c: z.ZodString;
349
436
  t: z.ZodEnum<["encrypted", "plaintext"]>;
437
+ contextBoundary: z.ZodOptional<z.ZodEnum<["clear", "compact"]>>;
350
438
  }, z.ZodTypeAny, "passthrough">>;
351
439
  createdAt: z.ZodNumber;
352
440
  updatedAt: z.ZodNumber;
@@ -354,15 +442,19 @@ export declare const GetMessagesResponseSchema: z.ZodObject<{
354
442
  id: z.ZodString;
355
443
  seq: z.ZodNumber;
356
444
  localId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
445
+ contextBoundary: z.ZodOptional<z.ZodNullable<z.ZodEnum<["clear", "compact"]>>>;
357
446
  content: z.ZodObject<{
358
447
  c: z.ZodString;
359
448
  t: z.ZodEnum<["encrypted", "plaintext"]>;
449
+ contextBoundary: z.ZodOptional<z.ZodEnum<["clear", "compact"]>>;
360
450
  }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
361
451
  c: z.ZodString;
362
452
  t: z.ZodEnum<["encrypted", "plaintext"]>;
453
+ contextBoundary: z.ZodOptional<z.ZodEnum<["clear", "compact"]>>;
363
454
  }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
364
455
  c: z.ZodString;
365
456
  t: z.ZodEnum<["encrypted", "plaintext"]>;
457
+ contextBoundary: z.ZodOptional<z.ZodEnum<["clear", "compact"]>>;
366
458
  }, z.ZodTypeAny, "passthrough">>;
367
459
  createdAt: z.ZodNumber;
368
460
  updatedAt: z.ZodNumber;
@@ -374,15 +466,19 @@ export declare const GetMessagesResponseSchema: z.ZodObject<{
374
466
  id: z.ZodString;
375
467
  seq: z.ZodNumber;
376
468
  localId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
469
+ contextBoundary: z.ZodOptional<z.ZodNullable<z.ZodEnum<["clear", "compact"]>>>;
377
470
  content: z.ZodObject<{
378
471
  c: z.ZodString;
379
472
  t: z.ZodEnum<["encrypted", "plaintext"]>;
473
+ contextBoundary: z.ZodOptional<z.ZodEnum<["clear", "compact"]>>;
380
474
  }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
381
475
  c: z.ZodString;
382
476
  t: z.ZodEnum<["encrypted", "plaintext"]>;
477
+ contextBoundary: z.ZodOptional<z.ZodEnum<["clear", "compact"]>>;
383
478
  }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
384
479
  c: z.ZodString;
385
480
  t: z.ZodEnum<["encrypted", "plaintext"]>;
481
+ contextBoundary: z.ZodOptional<z.ZodEnum<["clear", "compact"]>>;
386
482
  }, z.ZodTypeAny, "passthrough">>;
387
483
  createdAt: z.ZodNumber;
388
484
  updatedAt: z.ZodNumber;
@@ -390,15 +486,19 @@ export declare const GetMessagesResponseSchema: z.ZodObject<{
390
486
  id: z.ZodString;
391
487
  seq: z.ZodNumber;
392
488
  localId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
489
+ contextBoundary: z.ZodOptional<z.ZodNullable<z.ZodEnum<["clear", "compact"]>>>;
393
490
  content: z.ZodObject<{
394
491
  c: z.ZodString;
395
492
  t: z.ZodEnum<["encrypted", "plaintext"]>;
493
+ contextBoundary: z.ZodOptional<z.ZodEnum<["clear", "compact"]>>;
396
494
  }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
397
495
  c: z.ZodString;
398
496
  t: z.ZodEnum<["encrypted", "plaintext"]>;
497
+ contextBoundary: z.ZodOptional<z.ZodEnum<["clear", "compact"]>>;
399
498
  }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
400
499
  c: z.ZodString;
401
500
  t: z.ZodEnum<["encrypted", "plaintext"]>;
501
+ contextBoundary: z.ZodOptional<z.ZodEnum<["clear", "compact"]>>;
402
502
  }, z.ZodTypeAny, "passthrough">>;
403
503
  createdAt: z.ZodNumber;
404
504
  updatedAt: z.ZodNumber;
@@ -406,15 +506,19 @@ export declare const GetMessagesResponseSchema: z.ZodObject<{
406
506
  id: z.ZodString;
407
507
  seq: z.ZodNumber;
408
508
  localId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
509
+ contextBoundary: z.ZodOptional<z.ZodNullable<z.ZodEnum<["clear", "compact"]>>>;
409
510
  content: z.ZodObject<{
410
511
  c: z.ZodString;
411
512
  t: z.ZodEnum<["encrypted", "plaintext"]>;
513
+ contextBoundary: z.ZodOptional<z.ZodEnum<["clear", "compact"]>>;
412
514
  }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
413
515
  c: z.ZodString;
414
516
  t: z.ZodEnum<["encrypted", "plaintext"]>;
517
+ contextBoundary: z.ZodOptional<z.ZodEnum<["clear", "compact"]>>;
415
518
  }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
416
519
  c: z.ZodString;
417
520
  t: z.ZodEnum<["encrypted", "plaintext"]>;
521
+ contextBoundary: z.ZodOptional<z.ZodEnum<["clear", "compact"]>>;
418
522
  }, z.ZodTypeAny, "passthrough">>;
419
523
  createdAt: z.ZodNumber;
420
524
  updatedAt: z.ZodNumber;
@@ -436,29 +540,29 @@ export type CustomModel = z.infer<typeof CustomModelSchema>;
436
540
  export declare const SkillDefinitionSchema: z.ZodObject<{
437
541
  name: z.ZodString;
438
542
  description: z.ZodString;
439
- /** If false, the skill is internal-only and should not appear in the menu. */
543
+
440
544
  userInvocable: z.ZodDefault<z.ZodBoolean>;
441
- /** Source: 'project' (.claude/skills/) or 'user' (~/.claude/skills/). */
545
+
442
546
  source: z.ZodDefault<z.ZodEnum<["project", "user"]>>;
443
- /** Project root directory for project-level skills. Undefined for user-level skills. */
547
+
444
548
  projectPath: z.ZodOptional<z.ZodString>;
445
549
  }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
446
550
  name: z.ZodString;
447
551
  description: z.ZodString;
448
- /** If false, the skill is internal-only and should not appear in the menu. */
552
+
449
553
  userInvocable: z.ZodDefault<z.ZodBoolean>;
450
- /** Source: 'project' (.claude/skills/) or 'user' (~/.claude/skills/). */
554
+
451
555
  source: z.ZodDefault<z.ZodEnum<["project", "user"]>>;
452
- /** Project root directory for project-level skills. Undefined for user-level skills. */
556
+
453
557
  projectPath: z.ZodOptional<z.ZodString>;
454
558
  }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
455
559
  name: z.ZodString;
456
560
  description: z.ZodString;
457
- /** If false, the skill is internal-only and should not appear in the menu. */
561
+
458
562
  userInvocable: z.ZodDefault<z.ZodBoolean>;
459
- /** Source: 'project' (.claude/skills/) or 'user' (~/.claude/skills/). */
563
+
460
564
  source: z.ZodDefault<z.ZodEnum<["project", "user"]>>;
461
- /** Project root directory for project-level skills. Undefined for user-level skills. */
565
+
462
566
  projectPath: z.ZodOptional<z.ZodString>;
463
567
  }, z.ZodTypeAny, "passthrough">>;
464
568
  export type SkillDefinition = z.infer<typeof SkillDefinitionSchema>;
@@ -494,10 +598,7 @@ export declare const AgentEnvConfigSchema: z.ZodObject<{
494
598
  id: string;
495
599
  }[] | undefined;
496
600
  }>;
497
- /**
498
- * Agent env config for write operations — excludes customEnv.
499
- * Sensitive fields must not be written via PWA/server (RFC-067).
500
- */
601
+
501
602
  export declare const AgentEnvConfigSetSchema: z.ZodObject<{
502
603
  httpProxy: z.ZodOptional<z.ZodString>;
503
604
  httpsProxy: z.ZodOptional<z.ZodString>;
@@ -526,10 +627,142 @@ export declare const AgentEnvConfigSetSchema: z.ZodObject<{
526
627
  id: string;
527
628
  }[] | undefined;
528
629
  }>;
529
- /**
530
- * Full agent settings schema — read-only, used by daemon to load/validate local file.
531
- * Includes all fields including sensitive ones (notification, customEnv, startupScripts).
532
- */
630
+ export declare const AiHelperConfigSchema: z.ZodObject<{
631
+ enabled: z.ZodBoolean;
632
+ }, "strict", z.ZodTypeAny, {
633
+ enabled: boolean;
634
+ }, {
635
+ enabled: boolean;
636
+ }>;
637
+ export type AiHelperConfig = z.infer<typeof AiHelperConfigSchema>;
638
+
639
+ export declare const LocalAiHelperConfigSchema: z.ZodEffects<z.ZodObject<{
640
+ enabled: z.ZodBoolean;
641
+ provider: z.ZodOptional<z.ZodEnum<["openai", "anthropic", "openai-compatible"]>>;
642
+ baseUrl: z.ZodOptional<z.ZodString>;
643
+ apiKey: z.ZodOptional<z.ZodString>;
644
+ modelId: z.ZodOptional<z.ZodString>;
645
+
646
+ disableReasoning: z.ZodOptional<z.ZodBoolean>;
647
+ }, "strict", z.ZodTypeAny, {
648
+ enabled: boolean;
649
+ baseUrl?: string | undefined;
650
+ provider?: "openai" | "anthropic" | "openai-compatible" | undefined;
651
+ apiKey?: string | undefined;
652
+ modelId?: string | undefined;
653
+ disableReasoning?: boolean | undefined;
654
+ }, {
655
+ enabled: boolean;
656
+ baseUrl?: string | undefined;
657
+ provider?: "openai" | "anthropic" | "openai-compatible" | undefined;
658
+ apiKey?: string | undefined;
659
+ modelId?: string | undefined;
660
+ disableReasoning?: boolean | undefined;
661
+ }>, {
662
+ enabled: boolean;
663
+ baseUrl?: string | undefined;
664
+ provider?: "openai" | "anthropic" | "openai-compatible" | undefined;
665
+ apiKey?: string | undefined;
666
+ modelId?: string | undefined;
667
+ disableReasoning?: boolean | undefined;
668
+ }, {
669
+ enabled: boolean;
670
+ baseUrl?: string | undefined;
671
+ provider?: "openai" | "anthropic" | "openai-compatible" | undefined;
672
+ apiKey?: string | undefined;
673
+ modelId?: string | undefined;
674
+ disableReasoning?: boolean | undefined;
675
+ }>;
676
+ export type LocalAiHelperConfig = z.infer<typeof LocalAiHelperConfigSchema>;
677
+
678
+ export declare const AiHelperPayloadSchema: z.ZodObject<{
679
+
680
+ c: z.ZodString;
681
+
682
+ t: z.ZodString;
683
+ }, "strict", z.ZodTypeAny, {
684
+ t: string;
685
+ c: string;
686
+ }, {
687
+ t: string;
688
+ c: string;
689
+ }>;
690
+
691
+ export declare const AiHelperDecryptedPayloadSchema: z.ZodObject<{
692
+ prompt: z.ZodString;
693
+ systemPrompt: z.ZodOptional<z.ZodString>;
694
+ }, "strict", z.ZodTypeAny, {
695
+ prompt: string;
696
+ systemPrompt?: string | undefined;
697
+ }, {
698
+ prompt: string;
699
+ systemPrompt?: string | undefined;
700
+ }>;
701
+ export declare const AiHelperParamsSchema: z.ZodDiscriminatedUnion<"format", [z.ZodObject<{
702
+ format: z.ZodLiteral<"encrypted">;
703
+ payload: z.ZodObject<{
704
+
705
+ c: z.ZodString;
706
+
707
+ t: z.ZodString;
708
+ }, "strict", z.ZodTypeAny, {
709
+ t: string;
710
+ c: string;
711
+ }, {
712
+ t: string;
713
+ c: string;
714
+ }>;
715
+
716
+ sessionId: z.ZodString;
717
+
718
+ machineId: z.ZodOptional<z.ZodString>;
719
+
720
+ responseLanguage: z.ZodOptional<z.ZodEnum<["en", "zh-Hans"]>>;
721
+ }, "strict", z.ZodTypeAny, {
722
+ sessionId: string;
723
+ format: "encrypted";
724
+ payload: {
725
+ t: string;
726
+ c: string;
727
+ };
728
+ machineId?: string | undefined;
729
+ responseLanguage?: "en" | "zh-Hans" | undefined;
730
+ }, {
731
+ sessionId: string;
732
+ format: "encrypted";
733
+ payload: {
734
+ t: string;
735
+ c: string;
736
+ };
737
+ machineId?: string | undefined;
738
+ responseLanguage?: "en" | "zh-Hans" | undefined;
739
+ }>, z.ZodObject<{
740
+ format: z.ZodLiteral<"plain">;
741
+ prompt: z.ZodString;
742
+ systemPrompt: z.ZodOptional<z.ZodString>;
743
+
744
+ sessionId: z.ZodOptional<z.ZodString>;
745
+
746
+ machineId: z.ZodOptional<z.ZodString>;
747
+
748
+ responseLanguage: z.ZodOptional<z.ZodEnum<["en", "zh-Hans"]>>;
749
+ }, "strict", z.ZodTypeAny, {
750
+ format: "plain";
751
+ prompt: string;
752
+ sessionId?: string | undefined;
753
+ machineId?: string | undefined;
754
+ responseLanguage?: "en" | "zh-Hans" | undefined;
755
+ systemPrompt?: string | undefined;
756
+ }, {
757
+ format: "plain";
758
+ prompt: string;
759
+ sessionId?: string | undefined;
760
+ machineId?: string | undefined;
761
+ responseLanguage?: "en" | "zh-Hans" | undefined;
762
+ systemPrompt?: string | undefined;
763
+ }>]>;
764
+ export type AiHelperParams = z.infer<typeof AiHelperParamsSchema>;
765
+
533
766
  export declare const AgentSettingsSchema: z.ZodObject<{
534
767
  defaults: z.ZodOptional<z.ZodObject<{
535
768
  httpProxy: z.ZodOptional<z.ZodString>;
@@ -574,7 +807,7 @@ export declare const AgentSettingsSchema: z.ZodObject<{
574
807
  dingtalk?: string | undefined;
575
808
  }>>;
576
809
  } & {
577
- claude: z.ZodOptional<z.ZodObject<{
810
+ hermes: z.ZodOptional<z.ZodObject<{
578
811
  httpProxy: z.ZodOptional<z.ZodString>;
579
812
  httpsProxy: z.ZodOptional<z.ZodString>;
580
813
  customEnv: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
@@ -605,7 +838,7 @@ export declare const AgentSettingsSchema: z.ZodObject<{
605
838
  id: string;
606
839
  }[] | undefined;
607
840
  }>>;
608
- copilot: z.ZodOptional<z.ZodObject<{
841
+ codex: z.ZodOptional<z.ZodObject<{
609
842
  httpProxy: z.ZodOptional<z.ZodString>;
610
843
  httpsProxy: z.ZodOptional<z.ZodString>;
611
844
  customEnv: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
@@ -636,7 +869,7 @@ export declare const AgentSettingsSchema: z.ZodObject<{
636
869
  id: string;
637
870
  }[] | undefined;
638
871
  }>>;
639
- opencode: z.ZodOptional<z.ZodObject<{
872
+ claude: z.ZodOptional<z.ZodObject<{
640
873
  httpProxy: z.ZodOptional<z.ZodString>;
641
874
  httpsProxy: z.ZodOptional<z.ZodString>;
642
875
  customEnv: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
@@ -667,7 +900,7 @@ export declare const AgentSettingsSchema: z.ZodObject<{
667
900
  id: string;
668
901
  }[] | undefined;
669
902
  }>>;
670
- codex: z.ZodOptional<z.ZodObject<{
903
+ copilot: z.ZodOptional<z.ZodObject<{
671
904
  httpProxy: z.ZodOptional<z.ZodString>;
672
905
  httpsProxy: z.ZodOptional<z.ZodString>;
673
906
  customEnv: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
@@ -698,7 +931,7 @@ export declare const AgentSettingsSchema: z.ZodObject<{
698
931
  id: string;
699
932
  }[] | undefined;
700
933
  }>>;
701
- gemini: z.ZodOptional<z.ZodObject<{
934
+ opencode: z.ZodOptional<z.ZodObject<{
702
935
  httpProxy: z.ZodOptional<z.ZodString>;
703
936
  httpsProxy: z.ZodOptional<z.ZodString>;
704
937
  customEnv: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
@@ -729,7 +962,7 @@ export declare const AgentSettingsSchema: z.ZodObject<{
729
962
  id: string;
730
963
  }[] | undefined;
731
964
  }>>;
732
- hermes: z.ZodOptional<z.ZodObject<{
965
+ gemini: z.ZodOptional<z.ZodObject<{
733
966
  httpProxy: z.ZodOptional<z.ZodString>;
734
967
  httpsProxy: z.ZodOptional<z.ZodString>;
735
968
  customEnv: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
@@ -791,8 +1024,16 @@ export declare const AgentSettingsSchema: z.ZodObject<{
791
1024
  id: string;
792
1025
  }[] | undefined;
793
1026
  }>>;
1027
+ } & {
1028
+ aiHelper: z.ZodOptional<z.ZodObject<{
1029
+ enabled: z.ZodBoolean;
1030
+ }, "strict", z.ZodTypeAny, {
1031
+ enabled: boolean;
1032
+ }, {
1033
+ enabled: boolean;
1034
+ }>>;
794
1035
  }, "strip", z.ZodTypeAny, {
795
- claude?: {
1036
+ hermes?: {
796
1037
  httpProxy?: string | undefined;
797
1038
  httpsProxy?: string | undefined;
798
1039
  customEnv?: Record<string, string> | undefined;
@@ -801,7 +1042,7 @@ export declare const AgentSettingsSchema: z.ZodObject<{
801
1042
  id: string;
802
1043
  }[] | undefined;
803
1044
  } | undefined;
804
- copilot?: {
1045
+ codex?: {
805
1046
  httpProxy?: string | undefined;
806
1047
  httpsProxy?: string | undefined;
807
1048
  customEnv?: Record<string, string> | undefined;
@@ -810,7 +1051,7 @@ export declare const AgentSettingsSchema: z.ZodObject<{
810
1051
  id: string;
811
1052
  }[] | undefined;
812
1053
  } | undefined;
813
- opencode?: {
1054
+ claude?: {
814
1055
  httpProxy?: string | undefined;
815
1056
  httpsProxy?: string | undefined;
816
1057
  customEnv?: Record<string, string> | undefined;
@@ -819,7 +1060,7 @@ export declare const AgentSettingsSchema: z.ZodObject<{
819
1060
  id: string;
820
1061
  }[] | undefined;
821
1062
  } | undefined;
822
- codex?: {
1063
+ copilot?: {
823
1064
  httpProxy?: string | undefined;
824
1065
  httpsProxy?: string | undefined;
825
1066
  customEnv?: Record<string, string> | undefined;
@@ -828,7 +1069,7 @@ export declare const AgentSettingsSchema: z.ZodObject<{
828
1069
  id: string;
829
1070
  }[] | undefined;
830
1071
  } | undefined;
831
- gemini?: {
1072
+ opencode?: {
832
1073
  httpProxy?: string | undefined;
833
1074
  httpsProxy?: string | undefined;
834
1075
  customEnv?: Record<string, string> | undefined;
@@ -837,7 +1078,7 @@ export declare const AgentSettingsSchema: z.ZodObject<{
837
1078
  id: string;
838
1079
  }[] | undefined;
839
1080
  } | undefined;
840
- hermes?: {
1081
+ gemini?: {
841
1082
  httpProxy?: string | undefined;
842
1083
  httpsProxy?: string | undefined;
843
1084
  customEnv?: Record<string, string> | undefined;
@@ -869,8 +1110,11 @@ export declare const AgentSettingsSchema: z.ZodObject<{
869
1110
  feishu?: string | undefined;
870
1111
  dingtalk?: string | undefined;
871
1112
  } | undefined;
1113
+ aiHelper?: {
1114
+ enabled: boolean;
1115
+ } | undefined;
872
1116
  }, {
873
- claude?: {
1117
+ hermes?: {
874
1118
  httpProxy?: string | undefined;
875
1119
  httpsProxy?: string | undefined;
876
1120
  customEnv?: Record<string, string> | undefined;
@@ -879,7 +1123,7 @@ export declare const AgentSettingsSchema: z.ZodObject<{
879
1123
  id: string;
880
1124
  }[] | undefined;
881
1125
  } | undefined;
882
- copilot?: {
1126
+ codex?: {
883
1127
  httpProxy?: string | undefined;
884
1128
  httpsProxy?: string | undefined;
885
1129
  customEnv?: Record<string, string> | undefined;
@@ -888,7 +1132,7 @@ export declare const AgentSettingsSchema: z.ZodObject<{
888
1132
  id: string;
889
1133
  }[] | undefined;
890
1134
  } | undefined;
891
- opencode?: {
1135
+ claude?: {
892
1136
  httpProxy?: string | undefined;
893
1137
  httpsProxy?: string | undefined;
894
1138
  customEnv?: Record<string, string> | undefined;
@@ -897,7 +1141,7 @@ export declare const AgentSettingsSchema: z.ZodObject<{
897
1141
  id: string;
898
1142
  }[] | undefined;
899
1143
  } | undefined;
900
- codex?: {
1144
+ copilot?: {
901
1145
  httpProxy?: string | undefined;
902
1146
  httpsProxy?: string | undefined;
903
1147
  customEnv?: Record<string, string> | undefined;
@@ -906,7 +1150,7 @@ export declare const AgentSettingsSchema: z.ZodObject<{
906
1150
  id: string;
907
1151
  }[] | undefined;
908
1152
  } | undefined;
909
- gemini?: {
1153
+ opencode?: {
910
1154
  httpProxy?: string | undefined;
911
1155
  httpsProxy?: string | undefined;
912
1156
  customEnv?: Record<string, string> | undefined;
@@ -915,7 +1159,7 @@ export declare const AgentSettingsSchema: z.ZodObject<{
915
1159
  id: string;
916
1160
  }[] | undefined;
917
1161
  } | undefined;
918
- hermes?: {
1162
+ gemini?: {
919
1163
  httpProxy?: string | undefined;
920
1164
  httpsProxy?: string | undefined;
921
1165
  customEnv?: Record<string, string> | undefined;
@@ -947,15 +1191,11 @@ export declare const AgentSettingsSchema: z.ZodObject<{
947
1191
  feishu?: string | undefined;
948
1192
  dingtalk?: string | undefined;
949
1193
  } | undefined;
1194
+ aiHelper?: {
1195
+ enabled: boolean;
1196
+ } | undefined;
950
1197
  }>;
951
- /**
952
- * Write-only agent settings schema — .strict() rejects unknown fields.
953
- * Sensitive fields managed via separate channels (per RFC-067):
954
- * - customEnv: credentials never leave daemon (not in schema)
955
- * - notification: webhook URL managed via dedicated pushPreferences route (not in schema)
956
- * - startupScripts: managed only by the local daemon configuration file (not in schema)
957
- * - machineId: routing key for multi-machine setups, always sent by web client
958
- */
1198
+
959
1199
  export declare const SetAgentSettingsSchema: z.ZodObject<{
960
1200
  defaults: z.ZodOptional<z.ZodObject<{
961
1201
  httpProxy: z.ZodOptional<z.ZodString>;
@@ -985,10 +1225,10 @@ export declare const SetAgentSettingsSchema: z.ZodObject<{
985
1225
  id: string;
986
1226
  }[] | undefined;
987
1227
  }>>;
988
- /** Routing key — web always sends this, server uses it for daemon targeting. */
1228
+
989
1229
  machineId: z.ZodOptional<z.ZodString>;
990
1230
  } & {
991
- claude: z.ZodOptional<z.ZodObject<{
1231
+ hermes: z.ZodOptional<z.ZodObject<{
992
1232
  httpProxy: z.ZodOptional<z.ZodString>;
993
1233
  httpsProxy: z.ZodOptional<z.ZodString>;
994
1234
  customModels: z.ZodOptional<z.ZodArray<z.ZodObject<{
@@ -1016,7 +1256,7 @@ export declare const SetAgentSettingsSchema: z.ZodObject<{
1016
1256
  id: string;
1017
1257
  }[] | undefined;
1018
1258
  }>>;
1019
- copilot: z.ZodOptional<z.ZodObject<{
1259
+ codex: z.ZodOptional<z.ZodObject<{
1020
1260
  httpProxy: z.ZodOptional<z.ZodString>;
1021
1261
  httpsProxy: z.ZodOptional<z.ZodString>;
1022
1262
  customModels: z.ZodOptional<z.ZodArray<z.ZodObject<{
@@ -1044,7 +1284,7 @@ export declare const SetAgentSettingsSchema: z.ZodObject<{
1044
1284
  id: string;
1045
1285
  }[] | undefined;
1046
1286
  }>>;
1047
- opencode: z.ZodOptional<z.ZodObject<{
1287
+ claude: z.ZodOptional<z.ZodObject<{
1048
1288
  httpProxy: z.ZodOptional<z.ZodString>;
1049
1289
  httpsProxy: z.ZodOptional<z.ZodString>;
1050
1290
  customModels: z.ZodOptional<z.ZodArray<z.ZodObject<{
@@ -1072,7 +1312,7 @@ export declare const SetAgentSettingsSchema: z.ZodObject<{
1072
1312
  id: string;
1073
1313
  }[] | undefined;
1074
1314
  }>>;
1075
- codex: z.ZodOptional<z.ZodObject<{
1315
+ copilot: z.ZodOptional<z.ZodObject<{
1076
1316
  httpProxy: z.ZodOptional<z.ZodString>;
1077
1317
  httpsProxy: z.ZodOptional<z.ZodString>;
1078
1318
  customModels: z.ZodOptional<z.ZodArray<z.ZodObject<{
@@ -1100,7 +1340,7 @@ export declare const SetAgentSettingsSchema: z.ZodObject<{
1100
1340
  id: string;
1101
1341
  }[] | undefined;
1102
1342
  }>>;
1103
- gemini: z.ZodOptional<z.ZodObject<{
1343
+ opencode: z.ZodOptional<z.ZodObject<{
1104
1344
  httpProxy: z.ZodOptional<z.ZodString>;
1105
1345
  httpsProxy: z.ZodOptional<z.ZodString>;
1106
1346
  customModels: z.ZodOptional<z.ZodArray<z.ZodObject<{
@@ -1128,7 +1368,7 @@ export declare const SetAgentSettingsSchema: z.ZodObject<{
1128
1368
  id: string;
1129
1369
  }[] | undefined;
1130
1370
  }>>;
1131
- hermes: z.ZodOptional<z.ZodObject<{
1371
+ gemini: z.ZodOptional<z.ZodObject<{
1132
1372
  httpProxy: z.ZodOptional<z.ZodString>;
1133
1373
  httpsProxy: z.ZodOptional<z.ZodString>;
1134
1374
  customModels: z.ZodOptional<z.ZodArray<z.ZodObject<{
@@ -1184,8 +1424,16 @@ export declare const SetAgentSettingsSchema: z.ZodObject<{
1184
1424
  id: string;
1185
1425
  }[] | undefined;
1186
1426
  }>>;
1427
+ } & {
1428
+ aiHelper: z.ZodOptional<z.ZodObject<{
1429
+ enabled: z.ZodBoolean;
1430
+ }, "strict", z.ZodTypeAny, {
1431
+ enabled: boolean;
1432
+ }, {
1433
+ enabled: boolean;
1434
+ }>>;
1187
1435
  }, "strict", z.ZodTypeAny, {
1188
- claude?: {
1436
+ hermes?: {
1189
1437
  httpProxy?: string | undefined;
1190
1438
  httpsProxy?: string | undefined;
1191
1439
  customModels?: {
@@ -1193,7 +1441,7 @@ export declare const SetAgentSettingsSchema: z.ZodObject<{
1193
1441
  id: string;
1194
1442
  }[] | undefined;
1195
1443
  } | undefined;
1196
- copilot?: {
1444
+ codex?: {
1197
1445
  httpProxy?: string | undefined;
1198
1446
  httpsProxy?: string | undefined;
1199
1447
  customModels?: {
@@ -1201,7 +1449,7 @@ export declare const SetAgentSettingsSchema: z.ZodObject<{
1201
1449
  id: string;
1202
1450
  }[] | undefined;
1203
1451
  } | undefined;
1204
- opencode?: {
1452
+ claude?: {
1205
1453
  httpProxy?: string | undefined;
1206
1454
  httpsProxy?: string | undefined;
1207
1455
  customModels?: {
@@ -1209,7 +1457,7 @@ export declare const SetAgentSettingsSchema: z.ZodObject<{
1209
1457
  id: string;
1210
1458
  }[] | undefined;
1211
1459
  } | undefined;
1212
- codex?: {
1460
+ copilot?: {
1213
1461
  httpProxy?: string | undefined;
1214
1462
  httpsProxy?: string | undefined;
1215
1463
  customModels?: {
@@ -1217,7 +1465,7 @@ export declare const SetAgentSettingsSchema: z.ZodObject<{
1217
1465
  id: string;
1218
1466
  }[] | undefined;
1219
1467
  } | undefined;
1220
- gemini?: {
1468
+ opencode?: {
1221
1469
  httpProxy?: string | undefined;
1222
1470
  httpsProxy?: string | undefined;
1223
1471
  customModels?: {
@@ -1225,7 +1473,7 @@ export declare const SetAgentSettingsSchema: z.ZodObject<{
1225
1473
  id: string;
1226
1474
  }[] | undefined;
1227
1475
  } | undefined;
1228
- hermes?: {
1476
+ gemini?: {
1229
1477
  httpProxy?: string | undefined;
1230
1478
  httpsProxy?: string | undefined;
1231
1479
  customModels?: {
@@ -1250,8 +1498,11 @@ export declare const SetAgentSettingsSchema: z.ZodObject<{
1250
1498
  id: string;
1251
1499
  }[] | undefined;
1252
1500
  } | undefined;
1501
+ aiHelper?: {
1502
+ enabled: boolean;
1503
+ } | undefined;
1253
1504
  }, {
1254
- claude?: {
1505
+ hermes?: {
1255
1506
  httpProxy?: string | undefined;
1256
1507
  httpsProxy?: string | undefined;
1257
1508
  customModels?: {
@@ -1259,7 +1510,7 @@ export declare const SetAgentSettingsSchema: z.ZodObject<{
1259
1510
  id: string;
1260
1511
  }[] | undefined;
1261
1512
  } | undefined;
1262
- copilot?: {
1513
+ codex?: {
1263
1514
  httpProxy?: string | undefined;
1264
1515
  httpsProxy?: string | undefined;
1265
1516
  customModels?: {
@@ -1267,7 +1518,7 @@ export declare const SetAgentSettingsSchema: z.ZodObject<{
1267
1518
  id: string;
1268
1519
  }[] | undefined;
1269
1520
  } | undefined;
1270
- opencode?: {
1521
+ claude?: {
1271
1522
  httpProxy?: string | undefined;
1272
1523
  httpsProxy?: string | undefined;
1273
1524
  customModels?: {
@@ -1275,7 +1526,7 @@ export declare const SetAgentSettingsSchema: z.ZodObject<{
1275
1526
  id: string;
1276
1527
  }[] | undefined;
1277
1528
  } | undefined;
1278
- codex?: {
1529
+ copilot?: {
1279
1530
  httpProxy?: string | undefined;
1280
1531
  httpsProxy?: string | undefined;
1281
1532
  customModels?: {
@@ -1283,7 +1534,7 @@ export declare const SetAgentSettingsSchema: z.ZodObject<{
1283
1534
  id: string;
1284
1535
  }[] | undefined;
1285
1536
  } | undefined;
1286
- gemini?: {
1537
+ opencode?: {
1287
1538
  httpProxy?: string | undefined;
1288
1539
  httpsProxy?: string | undefined;
1289
1540
  customModels?: {
@@ -1291,7 +1542,7 @@ export declare const SetAgentSettingsSchema: z.ZodObject<{
1291
1542
  id: string;
1292
1543
  }[] | undefined;
1293
1544
  } | undefined;
1294
- hermes?: {
1545
+ gemini?: {
1295
1546
  httpProxy?: string | undefined;
1296
1547
  httpsProxy?: string | undefined;
1297
1548
  customModels?: {
@@ -1316,13 +1567,16 @@ export declare const SetAgentSettingsSchema: z.ZodObject<{
1316
1567
  id: string;
1317
1568
  }[] | undefined;
1318
1569
  } | undefined;
1570
+ aiHelper?: {
1571
+ enabled: boolean;
1572
+ } | undefined;
1319
1573
  }>;
1320
1574
  export type SetAgentSettings = z.infer<typeof SetAgentSettingsSchema>;
1321
1575
  export declare const MachineInfoResponseSchema: z.ZodObject<{
1322
1576
  homedir: z.ZodString;
1323
1577
  defaultCwd: z.ZodOptional<z.ZodString>;
1324
1578
  recentCwds: z.ZodArray<z.ZodString, "many">;
1325
- /** All known project directories from ~/.claude/projects/ scan. */
1579
+
1326
1580
  projectPaths: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
1327
1581
  availableAgents: z.ZodArray<z.ZodString, "many">;
1328
1582
  agentModels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodArray<z.ZodObject<{
@@ -1354,7 +1608,7 @@ export declare const MachineInfoResponseSchema: z.ZodObject<{
1354
1608
  label: string;
1355
1609
  id: string;
1356
1610
  }>, "many">>>;
1357
- /** Per-agent CLI binary paths from agent cache (non-private diagnostics). */
1611
+
1358
1612
  agentCliPaths: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
1359
1613
  agentSettings: z.ZodOptional<z.ZodObject<{
1360
1614
  defaults: z.ZodOptional<z.ZodObject<{
@@ -1400,7 +1654,7 @@ export declare const MachineInfoResponseSchema: z.ZodObject<{
1400
1654
  dingtalk?: string | undefined;
1401
1655
  }>>;
1402
1656
  } & {
1403
- claude: z.ZodOptional<z.ZodObject<{
1657
+ hermes: z.ZodOptional<z.ZodObject<{
1404
1658
  httpProxy: z.ZodOptional<z.ZodString>;
1405
1659
  httpsProxy: z.ZodOptional<z.ZodString>;
1406
1660
  customEnv: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
@@ -1431,7 +1685,7 @@ export declare const MachineInfoResponseSchema: z.ZodObject<{
1431
1685
  id: string;
1432
1686
  }[] | undefined;
1433
1687
  }>>;
1434
- copilot: z.ZodOptional<z.ZodObject<{
1688
+ codex: z.ZodOptional<z.ZodObject<{
1435
1689
  httpProxy: z.ZodOptional<z.ZodString>;
1436
1690
  httpsProxy: z.ZodOptional<z.ZodString>;
1437
1691
  customEnv: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
@@ -1462,7 +1716,7 @@ export declare const MachineInfoResponseSchema: z.ZodObject<{
1462
1716
  id: string;
1463
1717
  }[] | undefined;
1464
1718
  }>>;
1465
- opencode: z.ZodOptional<z.ZodObject<{
1719
+ claude: z.ZodOptional<z.ZodObject<{
1466
1720
  httpProxy: z.ZodOptional<z.ZodString>;
1467
1721
  httpsProxy: z.ZodOptional<z.ZodString>;
1468
1722
  customEnv: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
@@ -1493,7 +1747,7 @@ export declare const MachineInfoResponseSchema: z.ZodObject<{
1493
1747
  id: string;
1494
1748
  }[] | undefined;
1495
1749
  }>>;
1496
- codex: z.ZodOptional<z.ZodObject<{
1750
+ copilot: z.ZodOptional<z.ZodObject<{
1497
1751
  httpProxy: z.ZodOptional<z.ZodString>;
1498
1752
  httpsProxy: z.ZodOptional<z.ZodString>;
1499
1753
  customEnv: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
@@ -1524,7 +1778,7 @@ export declare const MachineInfoResponseSchema: z.ZodObject<{
1524
1778
  id: string;
1525
1779
  }[] | undefined;
1526
1780
  }>>;
1527
- gemini: z.ZodOptional<z.ZodObject<{
1781
+ opencode: z.ZodOptional<z.ZodObject<{
1528
1782
  httpProxy: z.ZodOptional<z.ZodString>;
1529
1783
  httpsProxy: z.ZodOptional<z.ZodString>;
1530
1784
  customEnv: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
@@ -1555,7 +1809,7 @@ export declare const MachineInfoResponseSchema: z.ZodObject<{
1555
1809
  id: string;
1556
1810
  }[] | undefined;
1557
1811
  }>>;
1558
- hermes: z.ZodOptional<z.ZodObject<{
1812
+ gemini: z.ZodOptional<z.ZodObject<{
1559
1813
  httpProxy: z.ZodOptional<z.ZodString>;
1560
1814
  httpsProxy: z.ZodOptional<z.ZodString>;
1561
1815
  customEnv: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
@@ -1617,8 +1871,16 @@ export declare const MachineInfoResponseSchema: z.ZodObject<{
1617
1871
  id: string;
1618
1872
  }[] | undefined;
1619
1873
  }>>;
1874
+ } & {
1875
+ aiHelper: z.ZodOptional<z.ZodObject<{
1876
+ enabled: z.ZodBoolean;
1877
+ }, "strict", z.ZodTypeAny, {
1878
+ enabled: boolean;
1879
+ }, {
1880
+ enabled: boolean;
1881
+ }>>;
1620
1882
  }, "strip", z.ZodTypeAny, {
1621
- claude?: {
1883
+ hermes?: {
1622
1884
  httpProxy?: string | undefined;
1623
1885
  httpsProxy?: string | undefined;
1624
1886
  customEnv?: Record<string, string> | undefined;
@@ -1627,7 +1889,7 @@ export declare const MachineInfoResponseSchema: z.ZodObject<{
1627
1889
  id: string;
1628
1890
  }[] | undefined;
1629
1891
  } | undefined;
1630
- copilot?: {
1892
+ codex?: {
1631
1893
  httpProxy?: string | undefined;
1632
1894
  httpsProxy?: string | undefined;
1633
1895
  customEnv?: Record<string, string> | undefined;
@@ -1636,7 +1898,7 @@ export declare const MachineInfoResponseSchema: z.ZodObject<{
1636
1898
  id: string;
1637
1899
  }[] | undefined;
1638
1900
  } | undefined;
1639
- opencode?: {
1901
+ claude?: {
1640
1902
  httpProxy?: string | undefined;
1641
1903
  httpsProxy?: string | undefined;
1642
1904
  customEnv?: Record<string, string> | undefined;
@@ -1645,7 +1907,7 @@ export declare const MachineInfoResponseSchema: z.ZodObject<{
1645
1907
  id: string;
1646
1908
  }[] | undefined;
1647
1909
  } | undefined;
1648
- codex?: {
1910
+ copilot?: {
1649
1911
  httpProxy?: string | undefined;
1650
1912
  httpsProxy?: string | undefined;
1651
1913
  customEnv?: Record<string, string> | undefined;
@@ -1654,7 +1916,7 @@ export declare const MachineInfoResponseSchema: z.ZodObject<{
1654
1916
  id: string;
1655
1917
  }[] | undefined;
1656
1918
  } | undefined;
1657
- gemini?: {
1919
+ opencode?: {
1658
1920
  httpProxy?: string | undefined;
1659
1921
  httpsProxy?: string | undefined;
1660
1922
  customEnv?: Record<string, string> | undefined;
@@ -1663,7 +1925,7 @@ export declare const MachineInfoResponseSchema: z.ZodObject<{
1663
1925
  id: string;
1664
1926
  }[] | undefined;
1665
1927
  } | undefined;
1666
- hermes?: {
1928
+ gemini?: {
1667
1929
  httpProxy?: string | undefined;
1668
1930
  httpsProxy?: string | undefined;
1669
1931
  customEnv?: Record<string, string> | undefined;
@@ -1695,8 +1957,11 @@ export declare const MachineInfoResponseSchema: z.ZodObject<{
1695
1957
  feishu?: string | undefined;
1696
1958
  dingtalk?: string | undefined;
1697
1959
  } | undefined;
1960
+ aiHelper?: {
1961
+ enabled: boolean;
1962
+ } | undefined;
1698
1963
  }, {
1699
- claude?: {
1964
+ hermes?: {
1700
1965
  httpProxy?: string | undefined;
1701
1966
  httpsProxy?: string | undefined;
1702
1967
  customEnv?: Record<string, string> | undefined;
@@ -1705,7 +1970,7 @@ export declare const MachineInfoResponseSchema: z.ZodObject<{
1705
1970
  id: string;
1706
1971
  }[] | undefined;
1707
1972
  } | undefined;
1708
- copilot?: {
1973
+ codex?: {
1709
1974
  httpProxy?: string | undefined;
1710
1975
  httpsProxy?: string | undefined;
1711
1976
  customEnv?: Record<string, string> | undefined;
@@ -1714,7 +1979,7 @@ export declare const MachineInfoResponseSchema: z.ZodObject<{
1714
1979
  id: string;
1715
1980
  }[] | undefined;
1716
1981
  } | undefined;
1717
- opencode?: {
1982
+ claude?: {
1718
1983
  httpProxy?: string | undefined;
1719
1984
  httpsProxy?: string | undefined;
1720
1985
  customEnv?: Record<string, string> | undefined;
@@ -1723,7 +1988,7 @@ export declare const MachineInfoResponseSchema: z.ZodObject<{
1723
1988
  id: string;
1724
1989
  }[] | undefined;
1725
1990
  } | undefined;
1726
- codex?: {
1991
+ copilot?: {
1727
1992
  httpProxy?: string | undefined;
1728
1993
  httpsProxy?: string | undefined;
1729
1994
  customEnv?: Record<string, string> | undefined;
@@ -1732,7 +1997,7 @@ export declare const MachineInfoResponseSchema: z.ZodObject<{
1732
1997
  id: string;
1733
1998
  }[] | undefined;
1734
1999
  } | undefined;
1735
- gemini?: {
2000
+ opencode?: {
1736
2001
  httpProxy?: string | undefined;
1737
2002
  httpsProxy?: string | undefined;
1738
2003
  customEnv?: Record<string, string> | undefined;
@@ -1741,7 +2006,7 @@ export declare const MachineInfoResponseSchema: z.ZodObject<{
1741
2006
  id: string;
1742
2007
  }[] | undefined;
1743
2008
  } | undefined;
1744
- hermes?: {
2009
+ gemini?: {
1745
2010
  httpProxy?: string | undefined;
1746
2011
  httpsProxy?: string | undefined;
1747
2012
  customEnv?: Record<string, string> | undefined;
@@ -1773,37 +2038,41 @@ export declare const MachineInfoResponseSchema: z.ZodObject<{
1773
2038
  feishu?: string | undefined;
1774
2039
  dingtalk?: string | undefined;
1775
2040
  } | undefined;
2041
+ aiHelper?: {
2042
+ enabled: boolean;
2043
+ } | undefined;
1776
2044
  }>>;
1777
- /** Agent skills discovered from filesystem provider directories.
1778
- * Keyed by agent type (e.g. 'claude'). */
2045
+
1779
2046
  agentSkills: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodArray<z.ZodObject<{
1780
2047
  name: z.ZodString;
1781
2048
  description: z.ZodString;
1782
- /** If false, the skill is internal-only and should not appear in the menu. */
2049
+
1783
2050
  userInvocable: z.ZodDefault<z.ZodBoolean>;
1784
- /** Source: 'project' (.claude/skills/) or 'user' (~/.claude/skills/). */
2051
+
1785
2052
  source: z.ZodDefault<z.ZodEnum<["project", "user"]>>;
1786
- /** Project root directory for project-level skills. Undefined for user-level skills. */
2053
+
1787
2054
  projectPath: z.ZodOptional<z.ZodString>;
1788
2055
  }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
1789
2056
  name: z.ZodString;
1790
2057
  description: z.ZodString;
1791
- /** If false, the skill is internal-only and should not appear in the menu. */
2058
+
1792
2059
  userInvocable: z.ZodDefault<z.ZodBoolean>;
1793
- /** Source: 'project' (.claude/skills/) or 'user' (~/.claude/skills/). */
2060
+
1794
2061
  source: z.ZodDefault<z.ZodEnum<["project", "user"]>>;
1795
- /** Project root directory for project-level skills. Undefined for user-level skills. */
2062
+
1796
2063
  projectPath: z.ZodOptional<z.ZodString>;
1797
2064
  }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
1798
2065
  name: z.ZodString;
1799
2066
  description: z.ZodString;
1800
- /** If false, the skill is internal-only and should not appear in the menu. */
2067
+
1801
2068
  userInvocable: z.ZodDefault<z.ZodBoolean>;
1802
- /** Source: 'project' (.claude/skills/) or 'user' (~/.claude/skills/). */
2069
+
1803
2070
  source: z.ZodDefault<z.ZodEnum<["project", "user"]>>;
1804
- /** Project root directory for project-level skills. Undefined for user-level skills. */
2071
+
1805
2072
  projectPath: z.ZodOptional<z.ZodString>;
1806
2073
  }, z.ZodTypeAny, "passthrough">>, "many">>>;
2074
+
2075
+ capabilities: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1807
2076
  }, "strip", z.ZodTypeAny, {
1808
2077
  homedir: string;
1809
2078
  recentCwds: string[];
@@ -1823,7 +2092,7 @@ export declare const MachineInfoResponseSchema: z.ZodObject<{
1823
2092
  }[]> | undefined;
1824
2093
  agentCliPaths?: Record<string, string> | undefined;
1825
2094
  agentSettings?: {
1826
- claude?: {
2095
+ hermes?: {
1827
2096
  httpProxy?: string | undefined;
1828
2097
  httpsProxy?: string | undefined;
1829
2098
  customEnv?: Record<string, string> | undefined;
@@ -1832,7 +2101,7 @@ export declare const MachineInfoResponseSchema: z.ZodObject<{
1832
2101
  id: string;
1833
2102
  }[] | undefined;
1834
2103
  } | undefined;
1835
- copilot?: {
2104
+ codex?: {
1836
2105
  httpProxy?: string | undefined;
1837
2106
  httpsProxy?: string | undefined;
1838
2107
  customEnv?: Record<string, string> | undefined;
@@ -1841,7 +2110,7 @@ export declare const MachineInfoResponseSchema: z.ZodObject<{
1841
2110
  id: string;
1842
2111
  }[] | undefined;
1843
2112
  } | undefined;
1844
- opencode?: {
2113
+ claude?: {
1845
2114
  httpProxy?: string | undefined;
1846
2115
  httpsProxy?: string | undefined;
1847
2116
  customEnv?: Record<string, string> | undefined;
@@ -1850,7 +2119,7 @@ export declare const MachineInfoResponseSchema: z.ZodObject<{
1850
2119
  id: string;
1851
2120
  }[] | undefined;
1852
2121
  } | undefined;
1853
- codex?: {
2122
+ copilot?: {
1854
2123
  httpProxy?: string | undefined;
1855
2124
  httpsProxy?: string | undefined;
1856
2125
  customEnv?: Record<string, string> | undefined;
@@ -1859,7 +2128,7 @@ export declare const MachineInfoResponseSchema: z.ZodObject<{
1859
2128
  id: string;
1860
2129
  }[] | undefined;
1861
2130
  } | undefined;
1862
- gemini?: {
2131
+ opencode?: {
1863
2132
  httpProxy?: string | undefined;
1864
2133
  httpsProxy?: string | undefined;
1865
2134
  customEnv?: Record<string, string> | undefined;
@@ -1868,7 +2137,7 @@ export declare const MachineInfoResponseSchema: z.ZodObject<{
1868
2137
  id: string;
1869
2138
  }[] | undefined;
1870
2139
  } | undefined;
1871
- hermes?: {
2140
+ gemini?: {
1872
2141
  httpProxy?: string | undefined;
1873
2142
  httpsProxy?: string | undefined;
1874
2143
  customEnv?: Record<string, string> | undefined;
@@ -1900,17 +2169,21 @@ export declare const MachineInfoResponseSchema: z.ZodObject<{
1900
2169
  feishu?: string | undefined;
1901
2170
  dingtalk?: string | undefined;
1902
2171
  } | undefined;
2172
+ aiHelper?: {
2173
+ enabled: boolean;
2174
+ } | undefined;
1903
2175
  } | undefined;
1904
2176
  agentSkills?: Record<string, z.objectOutputType<{
1905
2177
  name: z.ZodString;
1906
2178
  description: z.ZodString;
1907
- /** If false, the skill is internal-only and should not appear in the menu. */
2179
+
1908
2180
  userInvocable: z.ZodDefault<z.ZodBoolean>;
1909
- /** Source: 'project' (.claude/skills/) or 'user' (~/.claude/skills/). */
2181
+
1910
2182
  source: z.ZodDefault<z.ZodEnum<["project", "user"]>>;
1911
- /** Project root directory for project-level skills. Undefined for user-level skills. */
2183
+
1912
2184
  projectPath: z.ZodOptional<z.ZodString>;
1913
2185
  }, z.ZodTypeAny, "passthrough">[]> | undefined;
2186
+ capabilities?: string[] | undefined;
1914
2187
  }, {
1915
2188
  homedir: string;
1916
2189
  recentCwds: string[];
@@ -1930,7 +2203,7 @@ export declare const MachineInfoResponseSchema: z.ZodObject<{
1930
2203
  }[]> | undefined;
1931
2204
  agentCliPaths?: Record<string, string> | undefined;
1932
2205
  agentSettings?: {
1933
- claude?: {
2206
+ hermes?: {
1934
2207
  httpProxy?: string | undefined;
1935
2208
  httpsProxy?: string | undefined;
1936
2209
  customEnv?: Record<string, string> | undefined;
@@ -1939,7 +2212,7 @@ export declare const MachineInfoResponseSchema: z.ZodObject<{
1939
2212
  id: string;
1940
2213
  }[] | undefined;
1941
2214
  } | undefined;
1942
- copilot?: {
2215
+ codex?: {
1943
2216
  httpProxy?: string | undefined;
1944
2217
  httpsProxy?: string | undefined;
1945
2218
  customEnv?: Record<string, string> | undefined;
@@ -1948,7 +2221,7 @@ export declare const MachineInfoResponseSchema: z.ZodObject<{
1948
2221
  id: string;
1949
2222
  }[] | undefined;
1950
2223
  } | undefined;
1951
- opencode?: {
2224
+ claude?: {
1952
2225
  httpProxy?: string | undefined;
1953
2226
  httpsProxy?: string | undefined;
1954
2227
  customEnv?: Record<string, string> | undefined;
@@ -1957,7 +2230,7 @@ export declare const MachineInfoResponseSchema: z.ZodObject<{
1957
2230
  id: string;
1958
2231
  }[] | undefined;
1959
2232
  } | undefined;
1960
- codex?: {
2233
+ copilot?: {
1961
2234
  httpProxy?: string | undefined;
1962
2235
  httpsProxy?: string | undefined;
1963
2236
  customEnv?: Record<string, string> | undefined;
@@ -1966,7 +2239,7 @@ export declare const MachineInfoResponseSchema: z.ZodObject<{
1966
2239
  id: string;
1967
2240
  }[] | undefined;
1968
2241
  } | undefined;
1969
- gemini?: {
2242
+ opencode?: {
1970
2243
  httpProxy?: string | undefined;
1971
2244
  httpsProxy?: string | undefined;
1972
2245
  customEnv?: Record<string, string> | undefined;
@@ -1975,7 +2248,7 @@ export declare const MachineInfoResponseSchema: z.ZodObject<{
1975
2248
  id: string;
1976
2249
  }[] | undefined;
1977
2250
  } | undefined;
1978
- hermes?: {
2251
+ gemini?: {
1979
2252
  httpProxy?: string | undefined;
1980
2253
  httpsProxy?: string | undefined;
1981
2254
  customEnv?: Record<string, string> | undefined;
@@ -2007,21 +2280,25 @@ export declare const MachineInfoResponseSchema: z.ZodObject<{
2007
2280
  feishu?: string | undefined;
2008
2281
  dingtalk?: string | undefined;
2009
2282
  } | undefined;
2283
+ aiHelper?: {
2284
+ enabled: boolean;
2285
+ } | undefined;
2010
2286
  } | undefined;
2011
2287
  agentSkills?: Record<string, z.objectInputType<{
2012
2288
  name: z.ZodString;
2013
2289
  description: z.ZodString;
2014
- /** If false, the skill is internal-only and should not appear in the menu. */
2290
+
2015
2291
  userInvocable: z.ZodDefault<z.ZodBoolean>;
2016
- /** Source: 'project' (.claude/skills/) or 'user' (~/.claude/skills/). */
2292
+
2017
2293
  source: z.ZodDefault<z.ZodEnum<["project", "user"]>>;
2018
- /** Project root directory for project-level skills. Undefined for user-level skills. */
2294
+
2019
2295
  projectPath: z.ZodOptional<z.ZodString>;
2020
2296
  }, z.ZodTypeAny, "passthrough">[]> | undefined;
2297
+ capabilities?: string[] | undefined;
2021
2298
  }>;
2022
2299
  export declare const CheckPathParamsSchema: z.ZodObject<{
2023
2300
  cwd: z.ZodString;
2024
- /** Target machine for multi-host routing. Omit for single-machine (auto-select). */
2301
+
2025
2302
  machineId: z.ZodOptional<z.ZodString>;
2026
2303
  }, "strict", z.ZodTypeAny, {
2027
2304
  cwd: string;
@@ -2031,7 +2308,7 @@ export declare const CheckPathParamsSchema: z.ZodObject<{
2031
2308
  machineId?: string | undefined;
2032
2309
  }>;
2033
2310
  export declare const LabsSettingsSchema: z.ZodObject<{
2034
- /** Enable discovery and sync of CLI history sessions (experimental). */
2311
+
2035
2312
  historySessionSync: z.ZodDefault<z.ZodBoolean>;
2036
2313
  }, "strict", z.ZodTypeAny, {
2037
2314
  historySessionSync: boolean;
@@ -2047,5 +2324,489 @@ export type MachineInfoResponse = z.infer<typeof MachineInfoResponseSchema>;
2047
2324
  export type CheckPathParams = z.infer<typeof CheckPathParamsSchema>;
2048
2325
  export type AgentEnvConfig = z.infer<typeof AgentEnvConfigSchema>;
2049
2326
  export type AgentSettings = z.infer<typeof AgentSettingsSchema>;
2327
+
2328
+ export declare const LocalAgentSettingsSchema: z.ZodObject<Omit<{
2329
+ defaults: z.ZodOptional<z.ZodObject<{
2330
+ httpProxy: z.ZodOptional<z.ZodString>;
2331
+ httpsProxy: z.ZodOptional<z.ZodString>;
2332
+ customEnv: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
2333
+ customModels: z.ZodOptional<z.ZodArray<z.ZodObject<{
2334
+ id: z.ZodString;
2335
+ label: z.ZodString;
2336
+ }, "strip", z.ZodTypeAny, {
2337
+ label: string;
2338
+ id: string;
2339
+ }, {
2340
+ label: string;
2341
+ id: string;
2342
+ }>, "many">>;
2343
+ }, "strict", z.ZodTypeAny, {
2344
+ httpProxy?: string | undefined;
2345
+ httpsProxy?: string | undefined;
2346
+ customEnv?: Record<string, string> | undefined;
2347
+ customModels?: {
2348
+ label: string;
2349
+ id: string;
2350
+ }[] | undefined;
2351
+ }, {
2352
+ httpProxy?: string | undefined;
2353
+ httpsProxy?: string | undefined;
2354
+ customEnv?: Record<string, string> | undefined;
2355
+ customModels?: {
2356
+ label: string;
2357
+ id: string;
2358
+ }[] | undefined;
2359
+ }>>;
2360
+ startupScripts: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2361
+ notification: z.ZodOptional<z.ZodObject<{
2362
+ feishu: z.ZodOptional<z.ZodString>;
2363
+ dingtalk: z.ZodOptional<z.ZodString>;
2364
+ }, "strip", z.ZodTypeAny, {
2365
+ feishu?: string | undefined;
2366
+ dingtalk?: string | undefined;
2367
+ }, {
2368
+ feishu?: string | undefined;
2369
+ dingtalk?: string | undefined;
2370
+ }>>;
2371
+ } & {
2372
+ hermes: z.ZodOptional<z.ZodObject<{
2373
+ httpProxy: z.ZodOptional<z.ZodString>;
2374
+ httpsProxy: z.ZodOptional<z.ZodString>;
2375
+ customEnv: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
2376
+ customModels: z.ZodOptional<z.ZodArray<z.ZodObject<{
2377
+ id: z.ZodString;
2378
+ label: z.ZodString;
2379
+ }, "strip", z.ZodTypeAny, {
2380
+ label: string;
2381
+ id: string;
2382
+ }, {
2383
+ label: string;
2384
+ id: string;
2385
+ }>, "many">>;
2386
+ }, "strict", z.ZodTypeAny, {
2387
+ httpProxy?: string | undefined;
2388
+ httpsProxy?: string | undefined;
2389
+ customEnv?: Record<string, string> | undefined;
2390
+ customModels?: {
2391
+ label: string;
2392
+ id: string;
2393
+ }[] | undefined;
2394
+ }, {
2395
+ httpProxy?: string | undefined;
2396
+ httpsProxy?: string | undefined;
2397
+ customEnv?: Record<string, string> | undefined;
2398
+ customModels?: {
2399
+ label: string;
2400
+ id: string;
2401
+ }[] | undefined;
2402
+ }>>;
2403
+ codex: z.ZodOptional<z.ZodObject<{
2404
+ httpProxy: z.ZodOptional<z.ZodString>;
2405
+ httpsProxy: z.ZodOptional<z.ZodString>;
2406
+ customEnv: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
2407
+ customModels: z.ZodOptional<z.ZodArray<z.ZodObject<{
2408
+ id: z.ZodString;
2409
+ label: z.ZodString;
2410
+ }, "strip", z.ZodTypeAny, {
2411
+ label: string;
2412
+ id: string;
2413
+ }, {
2414
+ label: string;
2415
+ id: string;
2416
+ }>, "many">>;
2417
+ }, "strict", z.ZodTypeAny, {
2418
+ httpProxy?: string | undefined;
2419
+ httpsProxy?: string | undefined;
2420
+ customEnv?: Record<string, string> | undefined;
2421
+ customModels?: {
2422
+ label: string;
2423
+ id: string;
2424
+ }[] | undefined;
2425
+ }, {
2426
+ httpProxy?: string | undefined;
2427
+ httpsProxy?: string | undefined;
2428
+ customEnv?: Record<string, string> | undefined;
2429
+ customModels?: {
2430
+ label: string;
2431
+ id: string;
2432
+ }[] | undefined;
2433
+ }>>;
2434
+ claude: z.ZodOptional<z.ZodObject<{
2435
+ httpProxy: z.ZodOptional<z.ZodString>;
2436
+ httpsProxy: z.ZodOptional<z.ZodString>;
2437
+ customEnv: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
2438
+ customModels: z.ZodOptional<z.ZodArray<z.ZodObject<{
2439
+ id: z.ZodString;
2440
+ label: z.ZodString;
2441
+ }, "strip", z.ZodTypeAny, {
2442
+ label: string;
2443
+ id: string;
2444
+ }, {
2445
+ label: string;
2446
+ id: string;
2447
+ }>, "many">>;
2448
+ }, "strict", z.ZodTypeAny, {
2449
+ httpProxy?: string | undefined;
2450
+ httpsProxy?: string | undefined;
2451
+ customEnv?: Record<string, string> | undefined;
2452
+ customModels?: {
2453
+ label: string;
2454
+ id: string;
2455
+ }[] | undefined;
2456
+ }, {
2457
+ httpProxy?: string | undefined;
2458
+ httpsProxy?: string | undefined;
2459
+ customEnv?: Record<string, string> | undefined;
2460
+ customModels?: {
2461
+ label: string;
2462
+ id: string;
2463
+ }[] | undefined;
2464
+ }>>;
2465
+ copilot: z.ZodOptional<z.ZodObject<{
2466
+ httpProxy: z.ZodOptional<z.ZodString>;
2467
+ httpsProxy: z.ZodOptional<z.ZodString>;
2468
+ customEnv: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
2469
+ customModels: z.ZodOptional<z.ZodArray<z.ZodObject<{
2470
+ id: z.ZodString;
2471
+ label: z.ZodString;
2472
+ }, "strip", z.ZodTypeAny, {
2473
+ label: string;
2474
+ id: string;
2475
+ }, {
2476
+ label: string;
2477
+ id: string;
2478
+ }>, "many">>;
2479
+ }, "strict", z.ZodTypeAny, {
2480
+ httpProxy?: string | undefined;
2481
+ httpsProxy?: string | undefined;
2482
+ customEnv?: Record<string, string> | undefined;
2483
+ customModels?: {
2484
+ label: string;
2485
+ id: string;
2486
+ }[] | undefined;
2487
+ }, {
2488
+ httpProxy?: string | undefined;
2489
+ httpsProxy?: string | undefined;
2490
+ customEnv?: Record<string, string> | undefined;
2491
+ customModels?: {
2492
+ label: string;
2493
+ id: string;
2494
+ }[] | undefined;
2495
+ }>>;
2496
+ opencode: z.ZodOptional<z.ZodObject<{
2497
+ httpProxy: z.ZodOptional<z.ZodString>;
2498
+ httpsProxy: z.ZodOptional<z.ZodString>;
2499
+ customEnv: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
2500
+ customModels: z.ZodOptional<z.ZodArray<z.ZodObject<{
2501
+ id: z.ZodString;
2502
+ label: z.ZodString;
2503
+ }, "strip", z.ZodTypeAny, {
2504
+ label: string;
2505
+ id: string;
2506
+ }, {
2507
+ label: string;
2508
+ id: string;
2509
+ }>, "many">>;
2510
+ }, "strict", z.ZodTypeAny, {
2511
+ httpProxy?: string | undefined;
2512
+ httpsProxy?: string | undefined;
2513
+ customEnv?: Record<string, string> | undefined;
2514
+ customModels?: {
2515
+ label: string;
2516
+ id: string;
2517
+ }[] | undefined;
2518
+ }, {
2519
+ httpProxy?: string | undefined;
2520
+ httpsProxy?: string | undefined;
2521
+ customEnv?: Record<string, string> | undefined;
2522
+ customModels?: {
2523
+ label: string;
2524
+ id: string;
2525
+ }[] | undefined;
2526
+ }>>;
2527
+ gemini: z.ZodOptional<z.ZodObject<{
2528
+ httpProxy: z.ZodOptional<z.ZodString>;
2529
+ httpsProxy: z.ZodOptional<z.ZodString>;
2530
+ customEnv: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
2531
+ customModels: z.ZodOptional<z.ZodArray<z.ZodObject<{
2532
+ id: z.ZodString;
2533
+ label: z.ZodString;
2534
+ }, "strip", z.ZodTypeAny, {
2535
+ label: string;
2536
+ id: string;
2537
+ }, {
2538
+ label: string;
2539
+ id: string;
2540
+ }>, "many">>;
2541
+ }, "strict", z.ZodTypeAny, {
2542
+ httpProxy?: string | undefined;
2543
+ httpsProxy?: string | undefined;
2544
+ customEnv?: Record<string, string> | undefined;
2545
+ customModels?: {
2546
+ label: string;
2547
+ id: string;
2548
+ }[] | undefined;
2549
+ }, {
2550
+ httpProxy?: string | undefined;
2551
+ httpsProxy?: string | undefined;
2552
+ customEnv?: Record<string, string> | undefined;
2553
+ customModels?: {
2554
+ label: string;
2555
+ id: string;
2556
+ }[] | undefined;
2557
+ }>>;
2558
+ openclaw: z.ZodOptional<z.ZodObject<{
2559
+ httpProxy: z.ZodOptional<z.ZodString>;
2560
+ httpsProxy: z.ZodOptional<z.ZodString>;
2561
+ customEnv: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
2562
+ customModels: z.ZodOptional<z.ZodArray<z.ZodObject<{
2563
+ id: z.ZodString;
2564
+ label: z.ZodString;
2565
+ }, "strip", z.ZodTypeAny, {
2566
+ label: string;
2567
+ id: string;
2568
+ }, {
2569
+ label: string;
2570
+ id: string;
2571
+ }>, "many">>;
2572
+ }, "strict", z.ZodTypeAny, {
2573
+ httpProxy?: string | undefined;
2574
+ httpsProxy?: string | undefined;
2575
+ customEnv?: Record<string, string> | undefined;
2576
+ customModels?: {
2577
+ label: string;
2578
+ id: string;
2579
+ }[] | undefined;
2580
+ }, {
2581
+ httpProxy?: string | undefined;
2582
+ httpsProxy?: string | undefined;
2583
+ customEnv?: Record<string, string> | undefined;
2584
+ customModels?: {
2585
+ label: string;
2586
+ id: string;
2587
+ }[] | undefined;
2588
+ }>>;
2589
+ } & {
2590
+ aiHelper: z.ZodOptional<z.ZodObject<{
2591
+ enabled: z.ZodBoolean;
2592
+ }, "strict", z.ZodTypeAny, {
2593
+ enabled: boolean;
2594
+ }, {
2595
+ enabled: boolean;
2596
+ }>>;
2597
+ }, "aiHelper"> & {
2598
+ version: z.ZodOptional<z.ZodLiteral<1>>;
2599
+ aiHelper: z.ZodOptional<z.ZodEffects<z.ZodObject<{
2600
+ enabled: z.ZodBoolean;
2601
+ provider: z.ZodOptional<z.ZodEnum<["openai", "anthropic", "openai-compatible"]>>;
2602
+ baseUrl: z.ZodOptional<z.ZodString>;
2603
+ apiKey: z.ZodOptional<z.ZodString>;
2604
+ modelId: z.ZodOptional<z.ZodString>;
2605
+
2606
+ disableReasoning: z.ZodOptional<z.ZodBoolean>;
2607
+ }, "strict", z.ZodTypeAny, {
2608
+ enabled: boolean;
2609
+ baseUrl?: string | undefined;
2610
+ provider?: "openai" | "anthropic" | "openai-compatible" | undefined;
2611
+ apiKey?: string | undefined;
2612
+ modelId?: string | undefined;
2613
+ disableReasoning?: boolean | undefined;
2614
+ }, {
2615
+ enabled: boolean;
2616
+ baseUrl?: string | undefined;
2617
+ provider?: "openai" | "anthropic" | "openai-compatible" | undefined;
2618
+ apiKey?: string | undefined;
2619
+ modelId?: string | undefined;
2620
+ disableReasoning?: boolean | undefined;
2621
+ }>, {
2622
+ enabled: boolean;
2623
+ baseUrl?: string | undefined;
2624
+ provider?: "openai" | "anthropic" | "openai-compatible" | undefined;
2625
+ apiKey?: string | undefined;
2626
+ modelId?: string | undefined;
2627
+ disableReasoning?: boolean | undefined;
2628
+ }, {
2629
+ enabled: boolean;
2630
+ baseUrl?: string | undefined;
2631
+ provider?: "openai" | "anthropic" | "openai-compatible" | undefined;
2632
+ apiKey?: string | undefined;
2633
+ modelId?: string | undefined;
2634
+ disableReasoning?: boolean | undefined;
2635
+ }>>;
2636
+ }, "strip", z.ZodTypeAny, {
2637
+ hermes?: {
2638
+ httpProxy?: string | undefined;
2639
+ httpsProxy?: string | undefined;
2640
+ customEnv?: Record<string, string> | undefined;
2641
+ customModels?: {
2642
+ label: string;
2643
+ id: string;
2644
+ }[] | undefined;
2645
+ } | undefined;
2646
+ codex?: {
2647
+ httpProxy?: string | undefined;
2648
+ httpsProxy?: string | undefined;
2649
+ customEnv?: Record<string, string> | undefined;
2650
+ customModels?: {
2651
+ label: string;
2652
+ id: string;
2653
+ }[] | undefined;
2654
+ } | undefined;
2655
+ claude?: {
2656
+ httpProxy?: string | undefined;
2657
+ httpsProxy?: string | undefined;
2658
+ customEnv?: Record<string, string> | undefined;
2659
+ customModels?: {
2660
+ label: string;
2661
+ id: string;
2662
+ }[] | undefined;
2663
+ } | undefined;
2664
+ copilot?: {
2665
+ httpProxy?: string | undefined;
2666
+ httpsProxy?: string | undefined;
2667
+ customEnv?: Record<string, string> | undefined;
2668
+ customModels?: {
2669
+ label: string;
2670
+ id: string;
2671
+ }[] | undefined;
2672
+ } | undefined;
2673
+ opencode?: {
2674
+ httpProxy?: string | undefined;
2675
+ httpsProxy?: string | undefined;
2676
+ customEnv?: Record<string, string> | undefined;
2677
+ customModels?: {
2678
+ label: string;
2679
+ id: string;
2680
+ }[] | undefined;
2681
+ } | undefined;
2682
+ gemini?: {
2683
+ httpProxy?: string | undefined;
2684
+ httpsProxy?: string | undefined;
2685
+ customEnv?: Record<string, string> | undefined;
2686
+ customModels?: {
2687
+ label: string;
2688
+ id: string;
2689
+ }[] | undefined;
2690
+ } | undefined;
2691
+ openclaw?: {
2692
+ httpProxy?: string | undefined;
2693
+ httpsProxy?: string | undefined;
2694
+ customEnv?: Record<string, string> | undefined;
2695
+ customModels?: {
2696
+ label: string;
2697
+ id: string;
2698
+ }[] | undefined;
2699
+ } | undefined;
2700
+ startupScripts?: string[] | undefined;
2701
+ defaults?: {
2702
+ httpProxy?: string | undefined;
2703
+ httpsProxy?: string | undefined;
2704
+ customEnv?: Record<string, string> | undefined;
2705
+ customModels?: {
2706
+ label: string;
2707
+ id: string;
2708
+ }[] | undefined;
2709
+ } | undefined;
2710
+ notification?: {
2711
+ feishu?: string | undefined;
2712
+ dingtalk?: string | undefined;
2713
+ } | undefined;
2714
+ aiHelper?: {
2715
+ enabled: boolean;
2716
+ baseUrl?: string | undefined;
2717
+ provider?: "openai" | "anthropic" | "openai-compatible" | undefined;
2718
+ apiKey?: string | undefined;
2719
+ modelId?: string | undefined;
2720
+ disableReasoning?: boolean | undefined;
2721
+ } | undefined;
2722
+ version?: 1 | undefined;
2723
+ }, {
2724
+ hermes?: {
2725
+ httpProxy?: string | undefined;
2726
+ httpsProxy?: string | undefined;
2727
+ customEnv?: Record<string, string> | undefined;
2728
+ customModels?: {
2729
+ label: string;
2730
+ id: string;
2731
+ }[] | undefined;
2732
+ } | undefined;
2733
+ codex?: {
2734
+ httpProxy?: string | undefined;
2735
+ httpsProxy?: string | undefined;
2736
+ customEnv?: Record<string, string> | undefined;
2737
+ customModels?: {
2738
+ label: string;
2739
+ id: string;
2740
+ }[] | undefined;
2741
+ } | undefined;
2742
+ claude?: {
2743
+ httpProxy?: string | undefined;
2744
+ httpsProxy?: string | undefined;
2745
+ customEnv?: Record<string, string> | undefined;
2746
+ customModels?: {
2747
+ label: string;
2748
+ id: string;
2749
+ }[] | undefined;
2750
+ } | undefined;
2751
+ copilot?: {
2752
+ httpProxy?: string | undefined;
2753
+ httpsProxy?: string | undefined;
2754
+ customEnv?: Record<string, string> | undefined;
2755
+ customModels?: {
2756
+ label: string;
2757
+ id: string;
2758
+ }[] | undefined;
2759
+ } | undefined;
2760
+ opencode?: {
2761
+ httpProxy?: string | undefined;
2762
+ httpsProxy?: string | undefined;
2763
+ customEnv?: Record<string, string> | undefined;
2764
+ customModels?: {
2765
+ label: string;
2766
+ id: string;
2767
+ }[] | undefined;
2768
+ } | undefined;
2769
+ gemini?: {
2770
+ httpProxy?: string | undefined;
2771
+ httpsProxy?: string | undefined;
2772
+ customEnv?: Record<string, string> | undefined;
2773
+ customModels?: {
2774
+ label: string;
2775
+ id: string;
2776
+ }[] | undefined;
2777
+ } | undefined;
2778
+ openclaw?: {
2779
+ httpProxy?: string | undefined;
2780
+ httpsProxy?: string | undefined;
2781
+ customEnv?: Record<string, string> | undefined;
2782
+ customModels?: {
2783
+ label: string;
2784
+ id: string;
2785
+ }[] | undefined;
2786
+ } | undefined;
2787
+ startupScripts?: string[] | undefined;
2788
+ defaults?: {
2789
+ httpProxy?: string | undefined;
2790
+ httpsProxy?: string | undefined;
2791
+ customEnv?: Record<string, string> | undefined;
2792
+ customModels?: {
2793
+ label: string;
2794
+ id: string;
2795
+ }[] | undefined;
2796
+ } | undefined;
2797
+ notification?: {
2798
+ feishu?: string | undefined;
2799
+ dingtalk?: string | undefined;
2800
+ } | undefined;
2801
+ aiHelper?: {
2802
+ enabled: boolean;
2803
+ baseUrl?: string | undefined;
2804
+ provider?: "openai" | "anthropic" | "openai-compatible" | undefined;
2805
+ apiKey?: string | undefined;
2806
+ modelId?: string | undefined;
2807
+ disableReasoning?: boolean | undefined;
2808
+ } | undefined;
2809
+ version?: 1 | undefined;
2810
+ }>;
2811
+ export type LocalAgentSettings = z.infer<typeof LocalAgentSettingsSchema>;
2050
2812
  export type LabsSettings = z.infer<typeof LabsSettingsSchema>;
2051
- //# sourceMappingURL=rpc.d.ts.map