@agentdock/wire 0.0.90 → 0.0.92
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.
- package/dist/activityPreferences.js +1 -2
- package/dist/agentCapabilities.d.ts +2 -0
- package/dist/agentCapabilities.js +1 -199
- package/dist/agentCommonEnv.js +1 -20
- package/dist/agentInstallGuide.js +1 -81
- package/dist/bgTask.js +1 -128
- package/dist/checkpointSchemas.d.ts +142 -98
- package/dist/checkpointSchemas.js +1 -46
- package/dist/controlLevel.js +1 -11
- package/dist/edition.js +1 -13
- package/dist/envelope.d.ts +5668 -563
- package/dist/envelope.js +1 -77
- package/dist/errorMessage.js +1 -6
- package/dist/events.d.ts +2053 -324
- package/dist/events.js +1 -107
- package/dist/features.d.ts +3 -1
- package/dist/features.js +1 -123
- package/dist/feedback.d.ts +2 -2
- package/dist/feedback.js +1 -61
- package/dist/fileWhitelist.js +1 -189
- package/dist/inboundEvents.d.ts +531 -0
- package/dist/inboundEvents.js +1 -0
- package/dist/index.d.ts +11 -5
- package/dist/index.js +1 -73
- package/dist/interactionEvents.d.ts +153 -106
- package/dist/interactionEvents.js +1 -111
- package/dist/legacyProtocol.d.ts +512 -272
- package/dist/legacyProtocol.js +1 -30
- package/dist/license.js +1 -28
- package/dist/machine.d.ts +108 -62
- package/dist/machine.js +1 -66
- package/dist/messageMeta.d.ts +34 -28
- package/dist/messageMeta.js +1 -60
- package/dist/messages.d.ts +34900 -1862
- package/dist/messages.js +1 -35
- package/dist/notification.d.ts +48 -0
- package/dist/notification.js +1 -0
- package/dist/ops.d.ts +165 -122
- package/dist/ops.js +1 -74
- package/dist/pairing.d.ts +4 -4
- package/dist/pairing.js +1 -150
- package/dist/permissionSubject.js +1 -68
- package/dist/protocol.js +1 -7
- package/dist/rpc.d.ts +749 -189
- package/dist/rpc.js +1 -269
- package/dist/scheduledTasks.d.ts +619 -304
- package/dist/scheduledTasks.js +1 -188
- package/dist/semver.js +1 -60
- package/dist/sessionResult.d.ts +31 -17
- package/dist/sessionResult.js +1 -23
- package/dist/socketEvents.d.ts +7 -0
- package/dist/socketEvents.js +1 -55
- package/dist/sourceMetadata.d.ts +44 -0
- package/dist/sourceMetadata.js +1 -0
- package/dist/spawnError.d.ts +21 -17
- package/dist/spawnError.js +1 -31
- package/dist/stats.d.ts +73 -73
- package/dist/stats.js +1 -117
- package/dist/sync.d.ts +2165 -819
- package/dist/sync.js +1 -99
- package/dist/taskResult.js +1 -113
- package/dist/telemetry.d.ts +120 -64
- package/dist/telemetry.js +1 -115
- package/dist/utils.js +1 -2
- package/package.json +1 -1
- package/dist/activityPreferences.d.ts.map +0 -1
- package/dist/activityPreferences.js.map +0 -1
- package/dist/agentCapabilities.d.ts.map +0 -1
- package/dist/agentCapabilities.js.map +0 -1
- package/dist/agentCommonEnv.d.ts.map +0 -1
- package/dist/agentCommonEnv.js.map +0 -1
- package/dist/agentInstallGuide.d.ts.map +0 -1
- package/dist/agentInstallGuide.js.map +0 -1
- package/dist/bgTask.d.ts.map +0 -1
- package/dist/bgTask.js.map +0 -1
- package/dist/checkpointSchemas.d.ts.map +0 -1
- package/dist/checkpointSchemas.js.map +0 -1
- package/dist/controlLevel.d.ts.map +0 -1
- package/dist/controlLevel.js.map +0 -1
- package/dist/edition.d.ts.map +0 -1
- package/dist/edition.js.map +0 -1
- package/dist/envelope.d.ts.map +0 -1
- package/dist/envelope.js.map +0 -1
- package/dist/errorMessage.d.ts.map +0 -1
- package/dist/errorMessage.js.map +0 -1
- package/dist/events.d.ts.map +0 -1
- package/dist/events.js.map +0 -1
- package/dist/features.d.ts.map +0 -1
- package/dist/features.js.map +0 -1
- package/dist/feedback.d.ts.map +0 -1
- package/dist/feedback.js.map +0 -1
- package/dist/fileWhitelist.d.ts.map +0 -1
- package/dist/fileWhitelist.js.map +0 -1
- package/dist/index.d.ts.map +0 -1
- package/dist/index.js.map +0 -1
- package/dist/interactionEvents.d.ts.map +0 -1
- package/dist/interactionEvents.js.map +0 -1
- package/dist/legacyProtocol.d.ts.map +0 -1
- package/dist/legacyProtocol.js.map +0 -1
- package/dist/license.d.ts.map +0 -1
- package/dist/license.js.map +0 -1
- package/dist/machine.d.ts.map +0 -1
- package/dist/machine.js.map +0 -1
- package/dist/messageMeta.d.ts.map +0 -1
- package/dist/messageMeta.js.map +0 -1
- package/dist/messages.d.ts.map +0 -1
- package/dist/messages.js.map +0 -1
- package/dist/ops.d.ts.map +0 -1
- package/dist/ops.js.map +0 -1
- package/dist/pairing.d.ts.map +0 -1
- package/dist/pairing.js.map +0 -1
- package/dist/permissionSubject.d.ts.map +0 -1
- package/dist/permissionSubject.js.map +0 -1
- package/dist/protocol.d.ts.map +0 -1
- package/dist/protocol.js.map +0 -1
- package/dist/rpc.d.ts.map +0 -1
- package/dist/rpc.js.map +0 -1
- package/dist/scheduledTasks.d.ts.map +0 -1
- package/dist/scheduledTasks.js.map +0 -1
- package/dist/semver.d.ts.map +0 -1
- package/dist/semver.js.map +0 -1
- package/dist/sessionResult.d.ts.map +0 -1
- package/dist/sessionResult.js.map +0 -1
- package/dist/socketEvents.d.ts.map +0 -1
- package/dist/socketEvents.js.map +0 -1
- package/dist/spawnError.d.ts.map +0 -1
- package/dist/spawnError.js.map +0 -1
- package/dist/stats.d.ts.map +0 -1
- package/dist/stats.js.map +0 -1
- package/dist/sync.d.ts.map +0 -1
- package/dist/sync.js.map +0 -1
- package/dist/taskResult.d.ts.map +0 -1
- package/dist/taskResult.js.map +0 -1
- package/dist/telemetry.d.ts.map +0 -1
- package/dist/telemetry.js.map +0 -1
- package/dist/utils.d.ts.map +0 -1
- package/dist/utils.js.map +0 -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"]>;
|
|
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"]>;
|
|
3
3
|
export type RpcMethodType = z.infer<typeof RpcMethod>;
|
|
4
4
|
/**
|
|
5
5
|
* Session-scoped RPC methods — registered by `agentdock start` (CLI process).
|
|
6
6
|
* These operate on a specific session and require the CLI to be running.
|
|
7
7
|
*/
|
|
8
|
-
export declare const SESSION_RPC_METHODS: readonly ["answer-question", "approve-permission", "deny-permission", "abort", "stop-session", "cancel-task"];
|
|
8
|
+
export declare const SESSION_RPC_METHODS: readonly ["answer-question", "approve-permission", "deny-permission", "abort", "stop-session", "cancel-task", "get-context-usage"];
|
|
9
9
|
/**
|
|
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"];
|
|
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
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", "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"];
|
|
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"];
|
|
21
21
|
export declare const RpcCallSchema: z.ZodObject<{
|
|
22
22
|
method: z.ZodString;
|
|
23
23
|
params: z.ZodUnknown;
|
|
@@ -54,9 +54,16 @@ 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"]>>;
|
|
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
|
+
*/
|
|
58
64
|
env: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
59
65
|
model: z.ZodOptional<z.ZodString>;
|
|
66
|
+
/** Server-consumed (routing), NOT forwarded to daemon. */
|
|
60
67
|
baseUrl: z.ZodOptional<z.ZodString>;
|
|
61
68
|
/** System prompt text appended to the agent's built-in system prompt. */
|
|
62
69
|
appendSystemPrompt: z.ZodOptional<z.ZodString>;
|
|
@@ -72,7 +79,7 @@ export declare const SpawnSessionParamsSchema: z.ZodObject<{
|
|
|
72
79
|
serverSessionId: z.ZodOptional<z.ZodString>;
|
|
73
80
|
/** Maximum conversation turns before auto-stop (Claude CLI --max-turns). */
|
|
74
81
|
maxTurns: z.ZodOptional<z.ZodNumber>;
|
|
75
|
-
/** Target machine for multi-host routing. Omit for single-machine (auto-select). */
|
|
82
|
+
/** Target machine for multi-host routing. Omit for single-machine (auto-select). Server-consumed, NOT forwarded to daemon. */
|
|
76
83
|
machineId: z.ZodOptional<z.ZodString>;
|
|
77
84
|
/**
|
|
78
85
|
* Client-generated correlation id for matching the spawned session back to
|
|
@@ -146,11 +153,11 @@ export declare const SpawnSessionParamsSchema: z.ZodObject<{
|
|
|
146
153
|
background: z.ZodDefault<z.ZodBoolean>;
|
|
147
154
|
/** Use Windows Terminal new-tab instead of cmd /c start (Windows only). */
|
|
148
155
|
useWindowsTerminal: z.ZodOptional<z.ZodBoolean>;
|
|
149
|
-
}, "
|
|
150
|
-
permissionMode: "default" | "acceptEdits" | "auto" | "plan" | "bypassPermissions" | "autoEdit" | "read-only" | "safe-yolo" | "yolo" | "suggest" | "auto-edit" | "full-auto";
|
|
156
|
+
}, "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";
|
|
151
158
|
agentType: "claude" | "copilot" | "opencode" | "codex" | "gemini" | "hermes" | "openclaw";
|
|
152
|
-
cwd: string;
|
|
153
159
|
source: "managed" | "history" | "scheduled";
|
|
160
|
+
cwd: string;
|
|
154
161
|
background: boolean;
|
|
155
162
|
env?: Record<string, string> | undefined;
|
|
156
163
|
sessionId?: string | undefined;
|
|
@@ -159,6 +166,7 @@ export declare const SpawnSessionParamsSchema: z.ZodObject<{
|
|
|
159
166
|
appendSystemPrompt?: string | undefined;
|
|
160
167
|
allowedTools?: string[] | undefined;
|
|
161
168
|
disallowedTools?: string[] | undefined;
|
|
169
|
+
agents?: string | undefined;
|
|
162
170
|
agent?: string | undefined;
|
|
163
171
|
prompt?: string | undefined;
|
|
164
172
|
baseUrl?: string | undefined;
|
|
@@ -175,7 +183,6 @@ export declare const SpawnSessionParamsSchema: z.ZodObject<{
|
|
|
175
183
|
tools?: string[] | undefined;
|
|
176
184
|
effort?: "low" | "medium" | "high" | "xhigh" | "max" | undefined;
|
|
177
185
|
addDirs?: string[] | undefined;
|
|
178
|
-
agents?: string | undefined;
|
|
179
186
|
jsonSchema?: string | undefined;
|
|
180
187
|
strictMcpConfig?: boolean | undefined;
|
|
181
188
|
chrome?: boolean | undefined;
|
|
@@ -200,12 +207,14 @@ export declare const SpawnSessionParamsSchema: z.ZodObject<{
|
|
|
200
207
|
cwd: string;
|
|
201
208
|
env?: Record<string, string> | undefined;
|
|
202
209
|
sessionId?: string | undefined;
|
|
203
|
-
permissionMode?: "default" | "acceptEdits" | "auto" | "plan" | "bypassPermissions" | "autoEdit" | "read-only" | "safe-yolo" | "yolo" | "suggest" | "auto-edit" | "full-auto" | 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;
|
|
204
211
|
model?: string | undefined;
|
|
205
212
|
fallbackModel?: string | undefined;
|
|
206
213
|
appendSystemPrompt?: string | undefined;
|
|
207
214
|
allowedTools?: string[] | undefined;
|
|
208
215
|
disallowedTools?: string[] | undefined;
|
|
216
|
+
agents?: string | undefined;
|
|
217
|
+
source?: "managed" | "history" | "scheduled" | undefined;
|
|
209
218
|
agent?: string | undefined;
|
|
210
219
|
prompt?: string | undefined;
|
|
211
220
|
baseUrl?: string | undefined;
|
|
@@ -222,7 +231,6 @@ export declare const SpawnSessionParamsSchema: z.ZodObject<{
|
|
|
222
231
|
tools?: string[] | undefined;
|
|
223
232
|
effort?: "low" | "medium" | "high" | "xhigh" | "max" | undefined;
|
|
224
233
|
addDirs?: string[] | undefined;
|
|
225
|
-
agents?: string | undefined;
|
|
226
234
|
jsonSchema?: string | undefined;
|
|
227
235
|
strictMcpConfig?: boolean | undefined;
|
|
228
236
|
chrome?: boolean | undefined;
|
|
@@ -241,7 +249,6 @@ export declare const SpawnSessionParamsSchema: z.ZodObject<{
|
|
|
241
249
|
dangerouslySkipPermissions?: boolean | undefined;
|
|
242
250
|
allowDangerouslySkipPermissions?: boolean | undefined;
|
|
243
251
|
startupScripts?: string[] | undefined;
|
|
244
|
-
source?: "managed" | "history" | "scheduled" | undefined;
|
|
245
252
|
background?: boolean | undefined;
|
|
246
253
|
useWindowsTerminal?: boolean | undefined;
|
|
247
254
|
}>;
|
|
@@ -249,7 +256,7 @@ export declare const GetMessagesParamsSchema: z.ZodObject<{
|
|
|
249
256
|
sessionId: z.ZodString;
|
|
250
257
|
fromSeq: z.ZodOptional<z.ZodNumber>;
|
|
251
258
|
limit: z.ZodDefault<z.ZodNumber>;
|
|
252
|
-
}, "
|
|
259
|
+
}, "strict", z.ZodTypeAny, {
|
|
253
260
|
sessionId: string;
|
|
254
261
|
limit: number;
|
|
255
262
|
fromSeq?: number | undefined;
|
|
@@ -266,67 +273,155 @@ export declare const GetMessagesResponseSchema: z.ZodObject<{
|
|
|
266
273
|
content: z.ZodObject<{
|
|
267
274
|
c: z.ZodString;
|
|
268
275
|
t: z.ZodEnum<["encrypted", "plaintext"]>;
|
|
269
|
-
}, "
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
}, {
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
}
|
|
276
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
277
|
+
c: z.ZodString;
|
|
278
|
+
t: z.ZodEnum<["encrypted", "plaintext"]>;
|
|
279
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
280
|
+
c: z.ZodString;
|
|
281
|
+
t: z.ZodEnum<["encrypted", "plaintext"]>;
|
|
282
|
+
}, z.ZodTypeAny, "passthrough">>;
|
|
276
283
|
createdAt: z.ZodNumber;
|
|
277
284
|
updatedAt: z.ZodNumber;
|
|
278
|
-
}, "
|
|
279
|
-
id:
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
localId
|
|
298
|
-
|
|
285
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
286
|
+
id: z.ZodString;
|
|
287
|
+
seq: z.ZodNumber;
|
|
288
|
+
localId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
289
|
+
content: z.ZodObject<{
|
|
290
|
+
c: z.ZodString;
|
|
291
|
+
t: z.ZodEnum<["encrypted", "plaintext"]>;
|
|
292
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
293
|
+
c: z.ZodString;
|
|
294
|
+
t: z.ZodEnum<["encrypted", "plaintext"]>;
|
|
295
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
296
|
+
c: z.ZodString;
|
|
297
|
+
t: z.ZodEnum<["encrypted", "plaintext"]>;
|
|
298
|
+
}, z.ZodTypeAny, "passthrough">>;
|
|
299
|
+
createdAt: z.ZodNumber;
|
|
300
|
+
updatedAt: z.ZodNumber;
|
|
301
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
302
|
+
id: z.ZodString;
|
|
303
|
+
seq: z.ZodNumber;
|
|
304
|
+
localId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
305
|
+
content: z.ZodObject<{
|
|
306
|
+
c: z.ZodString;
|
|
307
|
+
t: z.ZodEnum<["encrypted", "plaintext"]>;
|
|
308
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
309
|
+
c: z.ZodString;
|
|
310
|
+
t: z.ZodEnum<["encrypted", "plaintext"]>;
|
|
311
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
312
|
+
c: z.ZodString;
|
|
313
|
+
t: z.ZodEnum<["encrypted", "plaintext"]>;
|
|
314
|
+
}, z.ZodTypeAny, "passthrough">>;
|
|
315
|
+
createdAt: z.ZodNumber;
|
|
316
|
+
updatedAt: z.ZodNumber;
|
|
317
|
+
}, z.ZodTypeAny, "passthrough">>, "many">;
|
|
299
318
|
total: z.ZodNumber;
|
|
300
319
|
hasMore: z.ZodBoolean;
|
|
301
|
-
}, "
|
|
302
|
-
messages: {
|
|
303
|
-
id:
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
},
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
320
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
321
|
+
messages: z.ZodArray<z.ZodObject<{
|
|
322
|
+
id: z.ZodString;
|
|
323
|
+
seq: z.ZodNumber;
|
|
324
|
+
localId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
325
|
+
content: z.ZodObject<{
|
|
326
|
+
c: z.ZodString;
|
|
327
|
+
t: z.ZodEnum<["encrypted", "plaintext"]>;
|
|
328
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
329
|
+
c: z.ZodString;
|
|
330
|
+
t: z.ZodEnum<["encrypted", "plaintext"]>;
|
|
331
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
332
|
+
c: z.ZodString;
|
|
333
|
+
t: z.ZodEnum<["encrypted", "plaintext"]>;
|
|
334
|
+
}, z.ZodTypeAny, "passthrough">>;
|
|
335
|
+
createdAt: z.ZodNumber;
|
|
336
|
+
updatedAt: z.ZodNumber;
|
|
337
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
338
|
+
id: z.ZodString;
|
|
339
|
+
seq: z.ZodNumber;
|
|
340
|
+
localId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
341
|
+
content: z.ZodObject<{
|
|
342
|
+
c: z.ZodString;
|
|
343
|
+
t: z.ZodEnum<["encrypted", "plaintext"]>;
|
|
344
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
345
|
+
c: z.ZodString;
|
|
346
|
+
t: z.ZodEnum<["encrypted", "plaintext"]>;
|
|
347
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
348
|
+
c: z.ZodString;
|
|
349
|
+
t: z.ZodEnum<["encrypted", "plaintext"]>;
|
|
350
|
+
}, z.ZodTypeAny, "passthrough">>;
|
|
351
|
+
createdAt: z.ZodNumber;
|
|
352
|
+
updatedAt: z.ZodNumber;
|
|
353
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
354
|
+
id: z.ZodString;
|
|
355
|
+
seq: z.ZodNumber;
|
|
356
|
+
localId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
357
|
+
content: z.ZodObject<{
|
|
358
|
+
c: z.ZodString;
|
|
359
|
+
t: z.ZodEnum<["encrypted", "plaintext"]>;
|
|
360
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
361
|
+
c: z.ZodString;
|
|
362
|
+
t: z.ZodEnum<["encrypted", "plaintext"]>;
|
|
363
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
364
|
+
c: z.ZodString;
|
|
365
|
+
t: z.ZodEnum<["encrypted", "plaintext"]>;
|
|
366
|
+
}, z.ZodTypeAny, "passthrough">>;
|
|
367
|
+
createdAt: z.ZodNumber;
|
|
368
|
+
updatedAt: z.ZodNumber;
|
|
369
|
+
}, z.ZodTypeAny, "passthrough">>, "many">;
|
|
370
|
+
total: z.ZodNumber;
|
|
371
|
+
hasMore: z.ZodBoolean;
|
|
372
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
373
|
+
messages: z.ZodArray<z.ZodObject<{
|
|
374
|
+
id: z.ZodString;
|
|
375
|
+
seq: z.ZodNumber;
|
|
376
|
+
localId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
377
|
+
content: z.ZodObject<{
|
|
378
|
+
c: z.ZodString;
|
|
379
|
+
t: z.ZodEnum<["encrypted", "plaintext"]>;
|
|
380
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
381
|
+
c: z.ZodString;
|
|
382
|
+
t: z.ZodEnum<["encrypted", "plaintext"]>;
|
|
383
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
384
|
+
c: z.ZodString;
|
|
385
|
+
t: z.ZodEnum<["encrypted", "plaintext"]>;
|
|
386
|
+
}, z.ZodTypeAny, "passthrough">>;
|
|
387
|
+
createdAt: z.ZodNumber;
|
|
388
|
+
updatedAt: z.ZodNumber;
|
|
389
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
390
|
+
id: z.ZodString;
|
|
391
|
+
seq: z.ZodNumber;
|
|
392
|
+
localId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
393
|
+
content: z.ZodObject<{
|
|
394
|
+
c: z.ZodString;
|
|
395
|
+
t: z.ZodEnum<["encrypted", "plaintext"]>;
|
|
396
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
397
|
+
c: z.ZodString;
|
|
398
|
+
t: z.ZodEnum<["encrypted", "plaintext"]>;
|
|
399
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
400
|
+
c: z.ZodString;
|
|
401
|
+
t: z.ZodEnum<["encrypted", "plaintext"]>;
|
|
402
|
+
}, z.ZodTypeAny, "passthrough">>;
|
|
403
|
+
createdAt: z.ZodNumber;
|
|
404
|
+
updatedAt: z.ZodNumber;
|
|
405
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
406
|
+
id: z.ZodString;
|
|
407
|
+
seq: z.ZodNumber;
|
|
408
|
+
localId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
409
|
+
content: z.ZodObject<{
|
|
410
|
+
c: z.ZodString;
|
|
411
|
+
t: z.ZodEnum<["encrypted", "plaintext"]>;
|
|
412
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
413
|
+
c: z.ZodString;
|
|
414
|
+
t: z.ZodEnum<["encrypted", "plaintext"]>;
|
|
415
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
416
|
+
c: z.ZodString;
|
|
417
|
+
t: z.ZodEnum<["encrypted", "plaintext"]>;
|
|
418
|
+
}, z.ZodTypeAny, "passthrough">>;
|
|
419
|
+
createdAt: z.ZodNumber;
|
|
420
|
+
updatedAt: z.ZodNumber;
|
|
421
|
+
}, z.ZodTypeAny, "passthrough">>, "many">;
|
|
422
|
+
total: z.ZodNumber;
|
|
423
|
+
hasMore: z.ZodBoolean;
|
|
424
|
+
}, z.ZodTypeAny, "passthrough">>;
|
|
330
425
|
export declare const CustomModelSchema: z.ZodObject<{
|
|
331
426
|
id: z.ZodString;
|
|
332
427
|
label: z.ZodString;
|
|
@@ -347,19 +442,25 @@ export declare const SkillDefinitionSchema: z.ZodObject<{
|
|
|
347
442
|
source: z.ZodDefault<z.ZodEnum<["project", "user"]>>;
|
|
348
443
|
/** Project root directory for project-level skills. Undefined for user-level skills. */
|
|
349
444
|
projectPath: z.ZodOptional<z.ZodString>;
|
|
350
|
-
}, "
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
userInvocable:
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
445
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
446
|
+
name: z.ZodString;
|
|
447
|
+
description: z.ZodString;
|
|
448
|
+
/** If false, the skill is internal-only and should not appear in the menu. */
|
|
449
|
+
userInvocable: z.ZodDefault<z.ZodBoolean>;
|
|
450
|
+
/** Source: 'project' (.claude/skills/) or 'user' (~/.claude/skills/). */
|
|
451
|
+
source: z.ZodDefault<z.ZodEnum<["project", "user"]>>;
|
|
452
|
+
/** Project root directory for project-level skills. Undefined for user-level skills. */
|
|
453
|
+
projectPath: z.ZodOptional<z.ZodString>;
|
|
454
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
455
|
+
name: z.ZodString;
|
|
456
|
+
description: z.ZodString;
|
|
457
|
+
/** If false, the skill is internal-only and should not appear in the menu. */
|
|
458
|
+
userInvocable: z.ZodDefault<z.ZodBoolean>;
|
|
459
|
+
/** Source: 'project' (.claude/skills/) or 'user' (~/.claude/skills/). */
|
|
460
|
+
source: z.ZodDefault<z.ZodEnum<["project", "user"]>>;
|
|
461
|
+
/** Project root directory for project-level skills. Undefined for user-level skills. */
|
|
462
|
+
projectPath: z.ZodOptional<z.ZodString>;
|
|
463
|
+
}, z.ZodTypeAny, "passthrough">>;
|
|
363
464
|
export type SkillDefinition = z.infer<typeof SkillDefinitionSchema>;
|
|
364
465
|
export declare const AGENT_ENV_NONE = "none";
|
|
365
466
|
export declare const AgentEnvConfigSchema: z.ZodObject<{
|
|
@@ -376,7 +477,15 @@ export declare const AgentEnvConfigSchema: z.ZodObject<{
|
|
|
376
477
|
label: string;
|
|
377
478
|
id: string;
|
|
378
479
|
}>, "many">>;
|
|
379
|
-
}, "
|
|
480
|
+
}, "strict", z.ZodTypeAny, {
|
|
481
|
+
httpProxy?: string | undefined;
|
|
482
|
+
httpsProxy?: string | undefined;
|
|
483
|
+
customEnv?: Record<string, string> | undefined;
|
|
484
|
+
customModels?: {
|
|
485
|
+
label: string;
|
|
486
|
+
id: string;
|
|
487
|
+
}[] | undefined;
|
|
488
|
+
}, {
|
|
380
489
|
httpProxy?: string | undefined;
|
|
381
490
|
httpsProxy?: string | undefined;
|
|
382
491
|
customEnv?: Record<string, string> | undefined;
|
|
@@ -384,20 +493,474 @@ export declare const AgentEnvConfigSchema: z.ZodObject<{
|
|
|
384
493
|
label: string;
|
|
385
494
|
id: string;
|
|
386
495
|
}[] | undefined;
|
|
496
|
+
}>;
|
|
497
|
+
/**
|
|
498
|
+
* Agent env config for write operations — excludes customEnv.
|
|
499
|
+
* Sensitive fields must not be written via PWA/server (RFC-067).
|
|
500
|
+
*/
|
|
501
|
+
export declare const AgentEnvConfigSetSchema: z.ZodObject<{
|
|
502
|
+
httpProxy: z.ZodOptional<z.ZodString>;
|
|
503
|
+
httpsProxy: z.ZodOptional<z.ZodString>;
|
|
504
|
+
customModels: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
505
|
+
id: z.ZodString;
|
|
506
|
+
label: z.ZodString;
|
|
507
|
+
}, "strip", z.ZodTypeAny, {
|
|
508
|
+
label: string;
|
|
509
|
+
id: string;
|
|
510
|
+
}, {
|
|
511
|
+
label: string;
|
|
512
|
+
id: string;
|
|
513
|
+
}>, "many">>;
|
|
514
|
+
}, "strict", z.ZodTypeAny, {
|
|
515
|
+
httpProxy?: string | undefined;
|
|
516
|
+
httpsProxy?: string | undefined;
|
|
517
|
+
customModels?: {
|
|
518
|
+
label: string;
|
|
519
|
+
id: string;
|
|
520
|
+
}[] | undefined;
|
|
521
|
+
}, {
|
|
522
|
+
httpProxy?: string | undefined;
|
|
523
|
+
httpsProxy?: string | undefined;
|
|
524
|
+
customModels?: {
|
|
525
|
+
label: string;
|
|
526
|
+
id: string;
|
|
527
|
+
}[] | undefined;
|
|
528
|
+
}>;
|
|
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
|
+
*/
|
|
533
|
+
export declare const AgentSettingsSchema: z.ZodObject<{
|
|
534
|
+
defaults: z.ZodOptional<z.ZodObject<{
|
|
535
|
+
httpProxy: z.ZodOptional<z.ZodString>;
|
|
536
|
+
httpsProxy: z.ZodOptional<z.ZodString>;
|
|
537
|
+
customEnv: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
538
|
+
customModels: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
539
|
+
id: z.ZodString;
|
|
540
|
+
label: z.ZodString;
|
|
541
|
+
}, "strip", z.ZodTypeAny, {
|
|
542
|
+
label: string;
|
|
543
|
+
id: string;
|
|
544
|
+
}, {
|
|
545
|
+
label: string;
|
|
546
|
+
id: string;
|
|
547
|
+
}>, "many">>;
|
|
548
|
+
}, "strict", z.ZodTypeAny, {
|
|
549
|
+
httpProxy?: string | undefined;
|
|
550
|
+
httpsProxy?: string | undefined;
|
|
551
|
+
customEnv?: Record<string, string> | undefined;
|
|
552
|
+
customModels?: {
|
|
553
|
+
label: string;
|
|
554
|
+
id: string;
|
|
555
|
+
}[] | undefined;
|
|
556
|
+
}, {
|
|
557
|
+
httpProxy?: string | undefined;
|
|
558
|
+
httpsProxy?: string | undefined;
|
|
559
|
+
customEnv?: Record<string, string> | undefined;
|
|
560
|
+
customModels?: {
|
|
561
|
+
label: string;
|
|
562
|
+
id: string;
|
|
563
|
+
}[] | undefined;
|
|
564
|
+
}>>;
|
|
565
|
+
startupScripts: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
566
|
+
notification: z.ZodOptional<z.ZodObject<{
|
|
567
|
+
feishu: z.ZodOptional<z.ZodString>;
|
|
568
|
+
dingtalk: z.ZodOptional<z.ZodString>;
|
|
569
|
+
}, "strip", z.ZodTypeAny, {
|
|
570
|
+
feishu?: string | undefined;
|
|
571
|
+
dingtalk?: string | undefined;
|
|
572
|
+
}, {
|
|
573
|
+
feishu?: string | undefined;
|
|
574
|
+
dingtalk?: string | undefined;
|
|
575
|
+
}>>;
|
|
576
|
+
} & {
|
|
577
|
+
claude: z.ZodOptional<z.ZodObject<{
|
|
578
|
+
httpProxy: z.ZodOptional<z.ZodString>;
|
|
579
|
+
httpsProxy: z.ZodOptional<z.ZodString>;
|
|
580
|
+
customEnv: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
581
|
+
customModels: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
582
|
+
id: z.ZodString;
|
|
583
|
+
label: z.ZodString;
|
|
584
|
+
}, "strip", z.ZodTypeAny, {
|
|
585
|
+
label: string;
|
|
586
|
+
id: string;
|
|
587
|
+
}, {
|
|
588
|
+
label: string;
|
|
589
|
+
id: string;
|
|
590
|
+
}>, "many">>;
|
|
591
|
+
}, "strict", z.ZodTypeAny, {
|
|
592
|
+
httpProxy?: string | undefined;
|
|
593
|
+
httpsProxy?: string | undefined;
|
|
594
|
+
customEnv?: Record<string, string> | undefined;
|
|
595
|
+
customModels?: {
|
|
596
|
+
label: string;
|
|
597
|
+
id: string;
|
|
598
|
+
}[] | undefined;
|
|
599
|
+
}, {
|
|
600
|
+
httpProxy?: string | undefined;
|
|
601
|
+
httpsProxy?: string | undefined;
|
|
602
|
+
customEnv?: Record<string, string> | undefined;
|
|
603
|
+
customModels?: {
|
|
604
|
+
label: string;
|
|
605
|
+
id: string;
|
|
606
|
+
}[] | undefined;
|
|
607
|
+
}>>;
|
|
608
|
+
copilot: z.ZodOptional<z.ZodObject<{
|
|
609
|
+
httpProxy: z.ZodOptional<z.ZodString>;
|
|
610
|
+
httpsProxy: z.ZodOptional<z.ZodString>;
|
|
611
|
+
customEnv: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
612
|
+
customModels: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
613
|
+
id: z.ZodString;
|
|
614
|
+
label: z.ZodString;
|
|
615
|
+
}, "strip", z.ZodTypeAny, {
|
|
616
|
+
label: string;
|
|
617
|
+
id: string;
|
|
618
|
+
}, {
|
|
619
|
+
label: string;
|
|
620
|
+
id: string;
|
|
621
|
+
}>, "many">>;
|
|
622
|
+
}, "strict", z.ZodTypeAny, {
|
|
623
|
+
httpProxy?: string | undefined;
|
|
624
|
+
httpsProxy?: string | undefined;
|
|
625
|
+
customEnv?: Record<string, string> | undefined;
|
|
626
|
+
customModels?: {
|
|
627
|
+
label: string;
|
|
628
|
+
id: string;
|
|
629
|
+
}[] | undefined;
|
|
630
|
+
}, {
|
|
631
|
+
httpProxy?: string | undefined;
|
|
632
|
+
httpsProxy?: string | undefined;
|
|
633
|
+
customEnv?: Record<string, string> | undefined;
|
|
634
|
+
customModels?: {
|
|
635
|
+
label: string;
|
|
636
|
+
id: string;
|
|
637
|
+
}[] | undefined;
|
|
638
|
+
}>>;
|
|
639
|
+
opencode: z.ZodOptional<z.ZodObject<{
|
|
640
|
+
httpProxy: z.ZodOptional<z.ZodString>;
|
|
641
|
+
httpsProxy: z.ZodOptional<z.ZodString>;
|
|
642
|
+
customEnv: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
643
|
+
customModels: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
644
|
+
id: z.ZodString;
|
|
645
|
+
label: z.ZodString;
|
|
646
|
+
}, "strip", z.ZodTypeAny, {
|
|
647
|
+
label: string;
|
|
648
|
+
id: string;
|
|
649
|
+
}, {
|
|
650
|
+
label: string;
|
|
651
|
+
id: string;
|
|
652
|
+
}>, "many">>;
|
|
653
|
+
}, "strict", z.ZodTypeAny, {
|
|
654
|
+
httpProxy?: string | undefined;
|
|
655
|
+
httpsProxy?: string | undefined;
|
|
656
|
+
customEnv?: Record<string, string> | undefined;
|
|
657
|
+
customModels?: {
|
|
658
|
+
label: string;
|
|
659
|
+
id: string;
|
|
660
|
+
}[] | undefined;
|
|
661
|
+
}, {
|
|
662
|
+
httpProxy?: string | undefined;
|
|
663
|
+
httpsProxy?: string | undefined;
|
|
664
|
+
customEnv?: Record<string, string> | undefined;
|
|
665
|
+
customModels?: {
|
|
666
|
+
label: string;
|
|
667
|
+
id: string;
|
|
668
|
+
}[] | undefined;
|
|
669
|
+
}>>;
|
|
670
|
+
codex: z.ZodOptional<z.ZodObject<{
|
|
671
|
+
httpProxy: z.ZodOptional<z.ZodString>;
|
|
672
|
+
httpsProxy: z.ZodOptional<z.ZodString>;
|
|
673
|
+
customEnv: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
674
|
+
customModels: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
675
|
+
id: z.ZodString;
|
|
676
|
+
label: z.ZodString;
|
|
677
|
+
}, "strip", z.ZodTypeAny, {
|
|
678
|
+
label: string;
|
|
679
|
+
id: string;
|
|
680
|
+
}, {
|
|
681
|
+
label: string;
|
|
682
|
+
id: string;
|
|
683
|
+
}>, "many">>;
|
|
684
|
+
}, "strict", z.ZodTypeAny, {
|
|
685
|
+
httpProxy?: string | undefined;
|
|
686
|
+
httpsProxy?: string | undefined;
|
|
687
|
+
customEnv?: Record<string, string> | undefined;
|
|
688
|
+
customModels?: {
|
|
689
|
+
label: string;
|
|
690
|
+
id: string;
|
|
691
|
+
}[] | undefined;
|
|
692
|
+
}, {
|
|
693
|
+
httpProxy?: string | undefined;
|
|
694
|
+
httpsProxy?: string | undefined;
|
|
695
|
+
customEnv?: Record<string, string> | undefined;
|
|
696
|
+
customModels?: {
|
|
697
|
+
label: string;
|
|
698
|
+
id: string;
|
|
699
|
+
}[] | undefined;
|
|
700
|
+
}>>;
|
|
701
|
+
gemini: z.ZodOptional<z.ZodObject<{
|
|
702
|
+
httpProxy: z.ZodOptional<z.ZodString>;
|
|
703
|
+
httpsProxy: z.ZodOptional<z.ZodString>;
|
|
704
|
+
customEnv: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
705
|
+
customModels: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
706
|
+
id: z.ZodString;
|
|
707
|
+
label: z.ZodString;
|
|
708
|
+
}, "strip", z.ZodTypeAny, {
|
|
709
|
+
label: string;
|
|
710
|
+
id: string;
|
|
711
|
+
}, {
|
|
712
|
+
label: string;
|
|
713
|
+
id: string;
|
|
714
|
+
}>, "many">>;
|
|
715
|
+
}, "strict", z.ZodTypeAny, {
|
|
716
|
+
httpProxy?: string | undefined;
|
|
717
|
+
httpsProxy?: string | undefined;
|
|
718
|
+
customEnv?: Record<string, string> | undefined;
|
|
719
|
+
customModels?: {
|
|
720
|
+
label: string;
|
|
721
|
+
id: string;
|
|
722
|
+
}[] | undefined;
|
|
723
|
+
}, {
|
|
724
|
+
httpProxy?: string | undefined;
|
|
725
|
+
httpsProxy?: string | undefined;
|
|
726
|
+
customEnv?: Record<string, string> | undefined;
|
|
727
|
+
customModels?: {
|
|
728
|
+
label: string;
|
|
729
|
+
id: string;
|
|
730
|
+
}[] | undefined;
|
|
731
|
+
}>>;
|
|
732
|
+
hermes: z.ZodOptional<z.ZodObject<{
|
|
733
|
+
httpProxy: z.ZodOptional<z.ZodString>;
|
|
734
|
+
httpsProxy: z.ZodOptional<z.ZodString>;
|
|
735
|
+
customEnv: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
736
|
+
customModels: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
737
|
+
id: z.ZodString;
|
|
738
|
+
label: z.ZodString;
|
|
739
|
+
}, "strip", z.ZodTypeAny, {
|
|
740
|
+
label: string;
|
|
741
|
+
id: string;
|
|
742
|
+
}, {
|
|
743
|
+
label: string;
|
|
744
|
+
id: string;
|
|
745
|
+
}>, "many">>;
|
|
746
|
+
}, "strict", z.ZodTypeAny, {
|
|
747
|
+
httpProxy?: string | undefined;
|
|
748
|
+
httpsProxy?: string | undefined;
|
|
749
|
+
customEnv?: Record<string, string> | undefined;
|
|
750
|
+
customModels?: {
|
|
751
|
+
label: string;
|
|
752
|
+
id: string;
|
|
753
|
+
}[] | undefined;
|
|
754
|
+
}, {
|
|
755
|
+
httpProxy?: string | undefined;
|
|
756
|
+
httpsProxy?: string | undefined;
|
|
757
|
+
customEnv?: Record<string, string> | undefined;
|
|
758
|
+
customModels?: {
|
|
759
|
+
label: string;
|
|
760
|
+
id: string;
|
|
761
|
+
}[] | undefined;
|
|
762
|
+
}>>;
|
|
763
|
+
openclaw: z.ZodOptional<z.ZodObject<{
|
|
764
|
+
httpProxy: z.ZodOptional<z.ZodString>;
|
|
765
|
+
httpsProxy: z.ZodOptional<z.ZodString>;
|
|
766
|
+
customEnv: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
767
|
+
customModels: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
768
|
+
id: z.ZodString;
|
|
769
|
+
label: z.ZodString;
|
|
770
|
+
}, "strip", z.ZodTypeAny, {
|
|
771
|
+
label: string;
|
|
772
|
+
id: string;
|
|
773
|
+
}, {
|
|
774
|
+
label: string;
|
|
775
|
+
id: string;
|
|
776
|
+
}>, "many">>;
|
|
777
|
+
}, "strict", z.ZodTypeAny, {
|
|
778
|
+
httpProxy?: string | undefined;
|
|
779
|
+
httpsProxy?: string | undefined;
|
|
780
|
+
customEnv?: Record<string, string> | undefined;
|
|
781
|
+
customModels?: {
|
|
782
|
+
label: string;
|
|
783
|
+
id: string;
|
|
784
|
+
}[] | undefined;
|
|
785
|
+
}, {
|
|
786
|
+
httpProxy?: string | undefined;
|
|
787
|
+
httpsProxy?: string | undefined;
|
|
788
|
+
customEnv?: Record<string, string> | undefined;
|
|
789
|
+
customModels?: {
|
|
790
|
+
label: string;
|
|
791
|
+
id: string;
|
|
792
|
+
}[] | undefined;
|
|
793
|
+
}>>;
|
|
794
|
+
}, "strip", z.ZodTypeAny, {
|
|
795
|
+
claude?: {
|
|
796
|
+
httpProxy?: string | undefined;
|
|
797
|
+
httpsProxy?: string | undefined;
|
|
798
|
+
customEnv?: Record<string, string> | undefined;
|
|
799
|
+
customModels?: {
|
|
800
|
+
label: string;
|
|
801
|
+
id: string;
|
|
802
|
+
}[] | undefined;
|
|
803
|
+
} | undefined;
|
|
804
|
+
copilot?: {
|
|
805
|
+
httpProxy?: string | undefined;
|
|
806
|
+
httpsProxy?: string | undefined;
|
|
807
|
+
customEnv?: Record<string, string> | undefined;
|
|
808
|
+
customModels?: {
|
|
809
|
+
label: string;
|
|
810
|
+
id: string;
|
|
811
|
+
}[] | undefined;
|
|
812
|
+
} | undefined;
|
|
813
|
+
opencode?: {
|
|
814
|
+
httpProxy?: string | undefined;
|
|
815
|
+
httpsProxy?: string | undefined;
|
|
816
|
+
customEnv?: Record<string, string> | undefined;
|
|
817
|
+
customModels?: {
|
|
818
|
+
label: string;
|
|
819
|
+
id: string;
|
|
820
|
+
}[] | undefined;
|
|
821
|
+
} | undefined;
|
|
822
|
+
codex?: {
|
|
823
|
+
httpProxy?: string | undefined;
|
|
824
|
+
httpsProxy?: string | undefined;
|
|
825
|
+
customEnv?: Record<string, string> | undefined;
|
|
826
|
+
customModels?: {
|
|
827
|
+
label: string;
|
|
828
|
+
id: string;
|
|
829
|
+
}[] | undefined;
|
|
830
|
+
} | undefined;
|
|
831
|
+
gemini?: {
|
|
832
|
+
httpProxy?: string | undefined;
|
|
833
|
+
httpsProxy?: string | undefined;
|
|
834
|
+
customEnv?: Record<string, string> | undefined;
|
|
835
|
+
customModels?: {
|
|
836
|
+
label: string;
|
|
837
|
+
id: string;
|
|
838
|
+
}[] | undefined;
|
|
839
|
+
} | undefined;
|
|
840
|
+
hermes?: {
|
|
841
|
+
httpProxy?: string | undefined;
|
|
842
|
+
httpsProxy?: string | undefined;
|
|
843
|
+
customEnv?: Record<string, string> | undefined;
|
|
844
|
+
customModels?: {
|
|
845
|
+
label: string;
|
|
846
|
+
id: string;
|
|
847
|
+
}[] | undefined;
|
|
848
|
+
} | undefined;
|
|
849
|
+
openclaw?: {
|
|
850
|
+
httpProxy?: string | undefined;
|
|
851
|
+
httpsProxy?: string | undefined;
|
|
852
|
+
customEnv?: Record<string, string> | undefined;
|
|
853
|
+
customModels?: {
|
|
854
|
+
label: string;
|
|
855
|
+
id: string;
|
|
856
|
+
}[] | undefined;
|
|
857
|
+
} | undefined;
|
|
858
|
+
startupScripts?: string[] | undefined;
|
|
859
|
+
defaults?: {
|
|
860
|
+
httpProxy?: string | undefined;
|
|
861
|
+
httpsProxy?: string | undefined;
|
|
862
|
+
customEnv?: Record<string, string> | undefined;
|
|
863
|
+
customModels?: {
|
|
864
|
+
label: string;
|
|
865
|
+
id: string;
|
|
866
|
+
}[] | undefined;
|
|
867
|
+
} | undefined;
|
|
868
|
+
notification?: {
|
|
869
|
+
feishu?: string | undefined;
|
|
870
|
+
dingtalk?: string | undefined;
|
|
871
|
+
} | undefined;
|
|
387
872
|
}, {
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
873
|
+
claude?: {
|
|
874
|
+
httpProxy?: string | undefined;
|
|
875
|
+
httpsProxy?: string | undefined;
|
|
876
|
+
customEnv?: Record<string, string> | undefined;
|
|
877
|
+
customModels?: {
|
|
878
|
+
label: string;
|
|
879
|
+
id: string;
|
|
880
|
+
}[] | undefined;
|
|
881
|
+
} | undefined;
|
|
882
|
+
copilot?: {
|
|
883
|
+
httpProxy?: string | undefined;
|
|
884
|
+
httpsProxy?: string | undefined;
|
|
885
|
+
customEnv?: Record<string, string> | undefined;
|
|
886
|
+
customModels?: {
|
|
887
|
+
label: string;
|
|
888
|
+
id: string;
|
|
889
|
+
}[] | undefined;
|
|
890
|
+
} | undefined;
|
|
891
|
+
opencode?: {
|
|
892
|
+
httpProxy?: string | undefined;
|
|
893
|
+
httpsProxy?: string | undefined;
|
|
894
|
+
customEnv?: Record<string, string> | undefined;
|
|
895
|
+
customModels?: {
|
|
896
|
+
label: string;
|
|
897
|
+
id: string;
|
|
898
|
+
}[] | undefined;
|
|
899
|
+
} | undefined;
|
|
900
|
+
codex?: {
|
|
901
|
+
httpProxy?: string | undefined;
|
|
902
|
+
httpsProxy?: string | undefined;
|
|
903
|
+
customEnv?: Record<string, string> | undefined;
|
|
904
|
+
customModels?: {
|
|
905
|
+
label: string;
|
|
906
|
+
id: string;
|
|
907
|
+
}[] | undefined;
|
|
908
|
+
} | undefined;
|
|
909
|
+
gemini?: {
|
|
910
|
+
httpProxy?: string | undefined;
|
|
911
|
+
httpsProxy?: string | undefined;
|
|
912
|
+
customEnv?: Record<string, string> | undefined;
|
|
913
|
+
customModels?: {
|
|
914
|
+
label: string;
|
|
915
|
+
id: string;
|
|
916
|
+
}[] | undefined;
|
|
917
|
+
} | undefined;
|
|
918
|
+
hermes?: {
|
|
919
|
+
httpProxy?: string | undefined;
|
|
920
|
+
httpsProxy?: string | undefined;
|
|
921
|
+
customEnv?: Record<string, string> | undefined;
|
|
922
|
+
customModels?: {
|
|
923
|
+
label: string;
|
|
924
|
+
id: string;
|
|
925
|
+
}[] | undefined;
|
|
926
|
+
} | undefined;
|
|
927
|
+
openclaw?: {
|
|
928
|
+
httpProxy?: string | undefined;
|
|
929
|
+
httpsProxy?: string | undefined;
|
|
930
|
+
customEnv?: Record<string, string> | undefined;
|
|
931
|
+
customModels?: {
|
|
932
|
+
label: string;
|
|
933
|
+
id: string;
|
|
934
|
+
}[] | undefined;
|
|
935
|
+
} | undefined;
|
|
936
|
+
startupScripts?: string[] | undefined;
|
|
937
|
+
defaults?: {
|
|
938
|
+
httpProxy?: string | undefined;
|
|
939
|
+
httpsProxy?: string | undefined;
|
|
940
|
+
customEnv?: Record<string, string> | undefined;
|
|
941
|
+
customModels?: {
|
|
942
|
+
label: string;
|
|
943
|
+
id: string;
|
|
944
|
+
}[] | undefined;
|
|
945
|
+
} | undefined;
|
|
946
|
+
notification?: {
|
|
947
|
+
feishu?: string | undefined;
|
|
948
|
+
dingtalk?: string | undefined;
|
|
949
|
+
} | undefined;
|
|
395
950
|
}>;
|
|
396
|
-
|
|
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: declared here for transport but daemon merge preserves local copy;
|
|
957
|
+
* server strips it before forwarding to prevent injection (defense-in-depth)
|
|
958
|
+
* - machineId: routing key for multi-machine setups, always sent by web client
|
|
959
|
+
*/
|
|
960
|
+
export declare const SetAgentSettingsSchema: z.ZodObject<{
|
|
397
961
|
defaults: z.ZodOptional<z.ZodObject<{
|
|
398
962
|
httpProxy: z.ZodOptional<z.ZodString>;
|
|
399
963
|
httpsProxy: z.ZodOptional<z.ZodString>;
|
|
400
|
-
customEnv: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
401
964
|
customModels: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
402
965
|
id: z.ZodString;
|
|
403
966
|
label: z.ZodString;
|
|
@@ -408,10 +971,9 @@ export declare const AgentSettingsSchema: z.ZodObject<{
|
|
|
408
971
|
label: string;
|
|
409
972
|
id: string;
|
|
410
973
|
}>, "many">>;
|
|
411
|
-
}, "
|
|
974
|
+
}, "strict", z.ZodTypeAny, {
|
|
412
975
|
httpProxy?: string | undefined;
|
|
413
976
|
httpsProxy?: string | undefined;
|
|
414
|
-
customEnv?: Record<string, string> | undefined;
|
|
415
977
|
customModels?: {
|
|
416
978
|
label: string;
|
|
417
979
|
id: string;
|
|
@@ -419,19 +981,19 @@ export declare const AgentSettingsSchema: z.ZodObject<{
|
|
|
419
981
|
}, {
|
|
420
982
|
httpProxy?: string | undefined;
|
|
421
983
|
httpsProxy?: string | undefined;
|
|
422
|
-
customEnv?: Record<string, string> | undefined;
|
|
423
984
|
customModels?: {
|
|
424
985
|
label: string;
|
|
425
986
|
id: string;
|
|
426
987
|
}[] | undefined;
|
|
427
988
|
}>>;
|
|
989
|
+
/** Routing key — web always sends this, server uses it for daemon targeting. */
|
|
990
|
+
machineId: z.ZodOptional<z.ZodString>;
|
|
991
|
+
/** User-defined startup scripts (string array). Daemon merge preserves local state. */
|
|
428
992
|
startupScripts: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
429
|
-
telemetryEnabled: z.ZodOptional<z.ZodBoolean>;
|
|
430
993
|
} & {
|
|
431
994
|
claude: z.ZodOptional<z.ZodObject<{
|
|
432
995
|
httpProxy: z.ZodOptional<z.ZodString>;
|
|
433
996
|
httpsProxy: z.ZodOptional<z.ZodString>;
|
|
434
|
-
customEnv: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
435
997
|
customModels: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
436
998
|
id: z.ZodString;
|
|
437
999
|
label: z.ZodString;
|
|
@@ -442,10 +1004,9 @@ export declare const AgentSettingsSchema: z.ZodObject<{
|
|
|
442
1004
|
label: string;
|
|
443
1005
|
id: string;
|
|
444
1006
|
}>, "many">>;
|
|
445
|
-
}, "
|
|
1007
|
+
}, "strict", z.ZodTypeAny, {
|
|
446
1008
|
httpProxy?: string | undefined;
|
|
447
1009
|
httpsProxy?: string | undefined;
|
|
448
|
-
customEnv?: Record<string, string> | undefined;
|
|
449
1010
|
customModels?: {
|
|
450
1011
|
label: string;
|
|
451
1012
|
id: string;
|
|
@@ -453,7 +1014,6 @@ export declare const AgentSettingsSchema: z.ZodObject<{
|
|
|
453
1014
|
}, {
|
|
454
1015
|
httpProxy?: string | undefined;
|
|
455
1016
|
httpsProxy?: string | undefined;
|
|
456
|
-
customEnv?: Record<string, string> | undefined;
|
|
457
1017
|
customModels?: {
|
|
458
1018
|
label: string;
|
|
459
1019
|
id: string;
|
|
@@ -462,7 +1022,6 @@ export declare const AgentSettingsSchema: z.ZodObject<{
|
|
|
462
1022
|
copilot: z.ZodOptional<z.ZodObject<{
|
|
463
1023
|
httpProxy: z.ZodOptional<z.ZodString>;
|
|
464
1024
|
httpsProxy: z.ZodOptional<z.ZodString>;
|
|
465
|
-
customEnv: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
466
1025
|
customModels: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
467
1026
|
id: z.ZodString;
|
|
468
1027
|
label: z.ZodString;
|
|
@@ -473,10 +1032,9 @@ export declare const AgentSettingsSchema: z.ZodObject<{
|
|
|
473
1032
|
label: string;
|
|
474
1033
|
id: string;
|
|
475
1034
|
}>, "many">>;
|
|
476
|
-
}, "
|
|
1035
|
+
}, "strict", z.ZodTypeAny, {
|
|
477
1036
|
httpProxy?: string | undefined;
|
|
478
1037
|
httpsProxy?: string | undefined;
|
|
479
|
-
customEnv?: Record<string, string> | undefined;
|
|
480
1038
|
customModels?: {
|
|
481
1039
|
label: string;
|
|
482
1040
|
id: string;
|
|
@@ -484,7 +1042,6 @@ export declare const AgentSettingsSchema: z.ZodObject<{
|
|
|
484
1042
|
}, {
|
|
485
1043
|
httpProxy?: string | undefined;
|
|
486
1044
|
httpsProxy?: string | undefined;
|
|
487
|
-
customEnv?: Record<string, string> | undefined;
|
|
488
1045
|
customModels?: {
|
|
489
1046
|
label: string;
|
|
490
1047
|
id: string;
|
|
@@ -493,7 +1050,6 @@ export declare const AgentSettingsSchema: z.ZodObject<{
|
|
|
493
1050
|
opencode: z.ZodOptional<z.ZodObject<{
|
|
494
1051
|
httpProxy: z.ZodOptional<z.ZodString>;
|
|
495
1052
|
httpsProxy: z.ZodOptional<z.ZodString>;
|
|
496
|
-
customEnv: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
497
1053
|
customModels: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
498
1054
|
id: z.ZodString;
|
|
499
1055
|
label: z.ZodString;
|
|
@@ -504,10 +1060,9 @@ export declare const AgentSettingsSchema: z.ZodObject<{
|
|
|
504
1060
|
label: string;
|
|
505
1061
|
id: string;
|
|
506
1062
|
}>, "many">>;
|
|
507
|
-
}, "
|
|
1063
|
+
}, "strict", z.ZodTypeAny, {
|
|
508
1064
|
httpProxy?: string | undefined;
|
|
509
1065
|
httpsProxy?: string | undefined;
|
|
510
|
-
customEnv?: Record<string, string> | undefined;
|
|
511
1066
|
customModels?: {
|
|
512
1067
|
label: string;
|
|
513
1068
|
id: string;
|
|
@@ -515,7 +1070,6 @@ export declare const AgentSettingsSchema: z.ZodObject<{
|
|
|
515
1070
|
}, {
|
|
516
1071
|
httpProxy?: string | undefined;
|
|
517
1072
|
httpsProxy?: string | undefined;
|
|
518
|
-
customEnv?: Record<string, string> | undefined;
|
|
519
1073
|
customModels?: {
|
|
520
1074
|
label: string;
|
|
521
1075
|
id: string;
|
|
@@ -524,7 +1078,6 @@ export declare const AgentSettingsSchema: z.ZodObject<{
|
|
|
524
1078
|
codex: z.ZodOptional<z.ZodObject<{
|
|
525
1079
|
httpProxy: z.ZodOptional<z.ZodString>;
|
|
526
1080
|
httpsProxy: z.ZodOptional<z.ZodString>;
|
|
527
|
-
customEnv: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
528
1081
|
customModels: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
529
1082
|
id: z.ZodString;
|
|
530
1083
|
label: z.ZodString;
|
|
@@ -535,10 +1088,9 @@ export declare const AgentSettingsSchema: z.ZodObject<{
|
|
|
535
1088
|
label: string;
|
|
536
1089
|
id: string;
|
|
537
1090
|
}>, "many">>;
|
|
538
|
-
}, "
|
|
1091
|
+
}, "strict", z.ZodTypeAny, {
|
|
539
1092
|
httpProxy?: string | undefined;
|
|
540
1093
|
httpsProxy?: string | undefined;
|
|
541
|
-
customEnv?: Record<string, string> | undefined;
|
|
542
1094
|
customModels?: {
|
|
543
1095
|
label: string;
|
|
544
1096
|
id: string;
|
|
@@ -546,7 +1098,6 @@ export declare const AgentSettingsSchema: z.ZodObject<{
|
|
|
546
1098
|
}, {
|
|
547
1099
|
httpProxy?: string | undefined;
|
|
548
1100
|
httpsProxy?: string | undefined;
|
|
549
|
-
customEnv?: Record<string, string> | undefined;
|
|
550
1101
|
customModels?: {
|
|
551
1102
|
label: string;
|
|
552
1103
|
id: string;
|
|
@@ -555,7 +1106,6 @@ export declare const AgentSettingsSchema: z.ZodObject<{
|
|
|
555
1106
|
gemini: z.ZodOptional<z.ZodObject<{
|
|
556
1107
|
httpProxy: z.ZodOptional<z.ZodString>;
|
|
557
1108
|
httpsProxy: z.ZodOptional<z.ZodString>;
|
|
558
|
-
customEnv: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
559
1109
|
customModels: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
560
1110
|
id: z.ZodString;
|
|
561
1111
|
label: z.ZodString;
|
|
@@ -566,10 +1116,9 @@ export declare const AgentSettingsSchema: z.ZodObject<{
|
|
|
566
1116
|
label: string;
|
|
567
1117
|
id: string;
|
|
568
1118
|
}>, "many">>;
|
|
569
|
-
}, "
|
|
1119
|
+
}, "strict", z.ZodTypeAny, {
|
|
570
1120
|
httpProxy?: string | undefined;
|
|
571
1121
|
httpsProxy?: string | undefined;
|
|
572
|
-
customEnv?: Record<string, string> | undefined;
|
|
573
1122
|
customModels?: {
|
|
574
1123
|
label: string;
|
|
575
1124
|
id: string;
|
|
@@ -577,7 +1126,6 @@ export declare const AgentSettingsSchema: z.ZodObject<{
|
|
|
577
1126
|
}, {
|
|
578
1127
|
httpProxy?: string | undefined;
|
|
579
1128
|
httpsProxy?: string | undefined;
|
|
580
|
-
customEnv?: Record<string, string> | undefined;
|
|
581
1129
|
customModels?: {
|
|
582
1130
|
label: string;
|
|
583
1131
|
id: string;
|
|
@@ -586,7 +1134,6 @@ export declare const AgentSettingsSchema: z.ZodObject<{
|
|
|
586
1134
|
hermes: z.ZodOptional<z.ZodObject<{
|
|
587
1135
|
httpProxy: z.ZodOptional<z.ZodString>;
|
|
588
1136
|
httpsProxy: z.ZodOptional<z.ZodString>;
|
|
589
|
-
customEnv: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
590
1137
|
customModels: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
591
1138
|
id: z.ZodString;
|
|
592
1139
|
label: z.ZodString;
|
|
@@ -597,10 +1144,9 @@ export declare const AgentSettingsSchema: z.ZodObject<{
|
|
|
597
1144
|
label: string;
|
|
598
1145
|
id: string;
|
|
599
1146
|
}>, "many">>;
|
|
600
|
-
}, "
|
|
1147
|
+
}, "strict", z.ZodTypeAny, {
|
|
601
1148
|
httpProxy?: string | undefined;
|
|
602
1149
|
httpsProxy?: string | undefined;
|
|
603
|
-
customEnv?: Record<string, string> | undefined;
|
|
604
1150
|
customModels?: {
|
|
605
1151
|
label: string;
|
|
606
1152
|
id: string;
|
|
@@ -608,7 +1154,6 @@ export declare const AgentSettingsSchema: z.ZodObject<{
|
|
|
608
1154
|
}, {
|
|
609
1155
|
httpProxy?: string | undefined;
|
|
610
1156
|
httpsProxy?: string | undefined;
|
|
611
|
-
customEnv?: Record<string, string> | undefined;
|
|
612
1157
|
customModels?: {
|
|
613
1158
|
label: string;
|
|
614
1159
|
id: string;
|
|
@@ -617,7 +1162,6 @@ export declare const AgentSettingsSchema: z.ZodObject<{
|
|
|
617
1162
|
openclaw: z.ZodOptional<z.ZodObject<{
|
|
618
1163
|
httpProxy: z.ZodOptional<z.ZodString>;
|
|
619
1164
|
httpsProxy: z.ZodOptional<z.ZodString>;
|
|
620
|
-
customEnv: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
621
1165
|
customModels: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
622
1166
|
id: z.ZodString;
|
|
623
1167
|
label: z.ZodString;
|
|
@@ -628,10 +1172,9 @@ export declare const AgentSettingsSchema: z.ZodObject<{
|
|
|
628
1172
|
label: string;
|
|
629
1173
|
id: string;
|
|
630
1174
|
}>, "many">>;
|
|
631
|
-
}, "
|
|
1175
|
+
}, "strict", z.ZodTypeAny, {
|
|
632
1176
|
httpProxy?: string | undefined;
|
|
633
1177
|
httpsProxy?: string | undefined;
|
|
634
|
-
customEnv?: Record<string, string> | undefined;
|
|
635
1178
|
customModels?: {
|
|
636
1179
|
label: string;
|
|
637
1180
|
id: string;
|
|
@@ -639,17 +1182,15 @@ export declare const AgentSettingsSchema: z.ZodObject<{
|
|
|
639
1182
|
}, {
|
|
640
1183
|
httpProxy?: string | undefined;
|
|
641
1184
|
httpsProxy?: string | undefined;
|
|
642
|
-
customEnv?: Record<string, string> | undefined;
|
|
643
1185
|
customModels?: {
|
|
644
1186
|
label: string;
|
|
645
1187
|
id: string;
|
|
646
1188
|
}[] | undefined;
|
|
647
1189
|
}>>;
|
|
648
|
-
}, "
|
|
1190
|
+
}, "strict", z.ZodTypeAny, {
|
|
649
1191
|
claude?: {
|
|
650
1192
|
httpProxy?: string | undefined;
|
|
651
1193
|
httpsProxy?: string | undefined;
|
|
652
|
-
customEnv?: Record<string, string> | undefined;
|
|
653
1194
|
customModels?: {
|
|
654
1195
|
label: string;
|
|
655
1196
|
id: string;
|
|
@@ -658,7 +1199,6 @@ export declare const AgentSettingsSchema: z.ZodObject<{
|
|
|
658
1199
|
copilot?: {
|
|
659
1200
|
httpProxy?: string | undefined;
|
|
660
1201
|
httpsProxy?: string | undefined;
|
|
661
|
-
customEnv?: Record<string, string> | undefined;
|
|
662
1202
|
customModels?: {
|
|
663
1203
|
label: string;
|
|
664
1204
|
id: string;
|
|
@@ -667,7 +1207,6 @@ export declare const AgentSettingsSchema: z.ZodObject<{
|
|
|
667
1207
|
opencode?: {
|
|
668
1208
|
httpProxy?: string | undefined;
|
|
669
1209
|
httpsProxy?: string | undefined;
|
|
670
|
-
customEnv?: Record<string, string> | undefined;
|
|
671
1210
|
customModels?: {
|
|
672
1211
|
label: string;
|
|
673
1212
|
id: string;
|
|
@@ -676,7 +1215,6 @@ export declare const AgentSettingsSchema: z.ZodObject<{
|
|
|
676
1215
|
codex?: {
|
|
677
1216
|
httpProxy?: string | undefined;
|
|
678
1217
|
httpsProxy?: string | undefined;
|
|
679
|
-
customEnv?: Record<string, string> | undefined;
|
|
680
1218
|
customModels?: {
|
|
681
1219
|
label: string;
|
|
682
1220
|
id: string;
|
|
@@ -685,7 +1223,6 @@ export declare const AgentSettingsSchema: z.ZodObject<{
|
|
|
685
1223
|
gemini?: {
|
|
686
1224
|
httpProxy?: string | undefined;
|
|
687
1225
|
httpsProxy?: string | undefined;
|
|
688
|
-
customEnv?: Record<string, string> | undefined;
|
|
689
1226
|
customModels?: {
|
|
690
1227
|
label: string;
|
|
691
1228
|
id: string;
|
|
@@ -694,7 +1231,6 @@ export declare const AgentSettingsSchema: z.ZodObject<{
|
|
|
694
1231
|
hermes?: {
|
|
695
1232
|
httpProxy?: string | undefined;
|
|
696
1233
|
httpsProxy?: string | undefined;
|
|
697
|
-
customEnv?: Record<string, string> | undefined;
|
|
698
1234
|
customModels?: {
|
|
699
1235
|
label: string;
|
|
700
1236
|
id: string;
|
|
@@ -703,28 +1239,25 @@ export declare const AgentSettingsSchema: z.ZodObject<{
|
|
|
703
1239
|
openclaw?: {
|
|
704
1240
|
httpProxy?: string | undefined;
|
|
705
1241
|
httpsProxy?: string | undefined;
|
|
706
|
-
customEnv?: Record<string, string> | undefined;
|
|
707
1242
|
customModels?: {
|
|
708
1243
|
label: string;
|
|
709
1244
|
id: string;
|
|
710
1245
|
}[] | undefined;
|
|
711
1246
|
} | undefined;
|
|
1247
|
+
machineId?: string | undefined;
|
|
712
1248
|
startupScripts?: string[] | undefined;
|
|
713
1249
|
defaults?: {
|
|
714
1250
|
httpProxy?: string | undefined;
|
|
715
1251
|
httpsProxy?: string | undefined;
|
|
716
|
-
customEnv?: Record<string, string> | undefined;
|
|
717
1252
|
customModels?: {
|
|
718
1253
|
label: string;
|
|
719
1254
|
id: string;
|
|
720
1255
|
}[] | undefined;
|
|
721
1256
|
} | undefined;
|
|
722
|
-
telemetryEnabled?: boolean | undefined;
|
|
723
1257
|
}, {
|
|
724
1258
|
claude?: {
|
|
725
1259
|
httpProxy?: string | undefined;
|
|
726
1260
|
httpsProxy?: string | undefined;
|
|
727
|
-
customEnv?: Record<string, string> | undefined;
|
|
728
1261
|
customModels?: {
|
|
729
1262
|
label: string;
|
|
730
1263
|
id: string;
|
|
@@ -733,7 +1266,6 @@ export declare const AgentSettingsSchema: z.ZodObject<{
|
|
|
733
1266
|
copilot?: {
|
|
734
1267
|
httpProxy?: string | undefined;
|
|
735
1268
|
httpsProxy?: string | undefined;
|
|
736
|
-
customEnv?: Record<string, string> | undefined;
|
|
737
1269
|
customModels?: {
|
|
738
1270
|
label: string;
|
|
739
1271
|
id: string;
|
|
@@ -742,7 +1274,6 @@ export declare const AgentSettingsSchema: z.ZodObject<{
|
|
|
742
1274
|
opencode?: {
|
|
743
1275
|
httpProxy?: string | undefined;
|
|
744
1276
|
httpsProxy?: string | undefined;
|
|
745
|
-
customEnv?: Record<string, string> | undefined;
|
|
746
1277
|
customModels?: {
|
|
747
1278
|
label: string;
|
|
748
1279
|
id: string;
|
|
@@ -751,7 +1282,6 @@ export declare const AgentSettingsSchema: z.ZodObject<{
|
|
|
751
1282
|
codex?: {
|
|
752
1283
|
httpProxy?: string | undefined;
|
|
753
1284
|
httpsProxy?: string | undefined;
|
|
754
|
-
customEnv?: Record<string, string> | undefined;
|
|
755
1285
|
customModels?: {
|
|
756
1286
|
label: string;
|
|
757
1287
|
id: string;
|
|
@@ -760,7 +1290,6 @@ export declare const AgentSettingsSchema: z.ZodObject<{
|
|
|
760
1290
|
gemini?: {
|
|
761
1291
|
httpProxy?: string | undefined;
|
|
762
1292
|
httpsProxy?: string | undefined;
|
|
763
|
-
customEnv?: Record<string, string> | undefined;
|
|
764
1293
|
customModels?: {
|
|
765
1294
|
label: string;
|
|
766
1295
|
id: string;
|
|
@@ -769,7 +1298,6 @@ export declare const AgentSettingsSchema: z.ZodObject<{
|
|
|
769
1298
|
hermes?: {
|
|
770
1299
|
httpProxy?: string | undefined;
|
|
771
1300
|
httpsProxy?: string | undefined;
|
|
772
|
-
customEnv?: Record<string, string> | undefined;
|
|
773
1301
|
customModels?: {
|
|
774
1302
|
label: string;
|
|
775
1303
|
id: string;
|
|
@@ -778,24 +1306,23 @@ export declare const AgentSettingsSchema: z.ZodObject<{
|
|
|
778
1306
|
openclaw?: {
|
|
779
1307
|
httpProxy?: string | undefined;
|
|
780
1308
|
httpsProxy?: string | undefined;
|
|
781
|
-
customEnv?: Record<string, string> | undefined;
|
|
782
1309
|
customModels?: {
|
|
783
1310
|
label: string;
|
|
784
1311
|
id: string;
|
|
785
1312
|
}[] | undefined;
|
|
786
1313
|
} | undefined;
|
|
1314
|
+
machineId?: string | undefined;
|
|
787
1315
|
startupScripts?: string[] | undefined;
|
|
788
1316
|
defaults?: {
|
|
789
1317
|
httpProxy?: string | undefined;
|
|
790
1318
|
httpsProxy?: string | undefined;
|
|
791
|
-
customEnv?: Record<string, string> | undefined;
|
|
792
1319
|
customModels?: {
|
|
793
1320
|
label: string;
|
|
794
1321
|
id: string;
|
|
795
1322
|
}[] | undefined;
|
|
796
1323
|
} | undefined;
|
|
797
|
-
telemetryEnabled?: boolean | undefined;
|
|
798
1324
|
}>;
|
|
1325
|
+
export type SetAgentSettings = z.infer<typeof SetAgentSettingsSchema>;
|
|
799
1326
|
export declare const MachineInfoResponseSchema: z.ZodObject<{
|
|
800
1327
|
homedir: z.ZodString;
|
|
801
1328
|
defaultCwd: z.ZodOptional<z.ZodString>;
|
|
@@ -810,8 +1337,8 @@ export declare const MachineInfoResponseSchema: z.ZodObject<{
|
|
|
810
1337
|
hidden: z.ZodBoolean;
|
|
811
1338
|
source: z.ZodDefault<z.ZodOptional<z.ZodEnum<["builtin", "acp", "env", "custom"]>>>;
|
|
812
1339
|
}, "strip", z.ZodTypeAny, {
|
|
813
|
-
id: string;
|
|
814
1340
|
source: "custom" | "builtin" | "acp" | "env";
|
|
1341
|
+
id: string;
|
|
815
1342
|
displayName: string;
|
|
816
1343
|
isDefault: boolean;
|
|
817
1344
|
hidden: boolean;
|
|
@@ -849,7 +1376,7 @@ export declare const MachineInfoResponseSchema: z.ZodObject<{
|
|
|
849
1376
|
label: string;
|
|
850
1377
|
id: string;
|
|
851
1378
|
}>, "many">>;
|
|
852
|
-
}, "
|
|
1379
|
+
}, "strict", z.ZodTypeAny, {
|
|
853
1380
|
httpProxy?: string | undefined;
|
|
854
1381
|
httpsProxy?: string | undefined;
|
|
855
1382
|
customEnv?: Record<string, string> | undefined;
|
|
@@ -867,7 +1394,16 @@ export declare const MachineInfoResponseSchema: z.ZodObject<{
|
|
|
867
1394
|
}[] | undefined;
|
|
868
1395
|
}>>;
|
|
869
1396
|
startupScripts: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
870
|
-
|
|
1397
|
+
notification: z.ZodOptional<z.ZodObject<{
|
|
1398
|
+
feishu: z.ZodOptional<z.ZodString>;
|
|
1399
|
+
dingtalk: z.ZodOptional<z.ZodString>;
|
|
1400
|
+
}, "strip", z.ZodTypeAny, {
|
|
1401
|
+
feishu?: string | undefined;
|
|
1402
|
+
dingtalk?: string | undefined;
|
|
1403
|
+
}, {
|
|
1404
|
+
feishu?: string | undefined;
|
|
1405
|
+
dingtalk?: string | undefined;
|
|
1406
|
+
}>>;
|
|
871
1407
|
} & {
|
|
872
1408
|
claude: z.ZodOptional<z.ZodObject<{
|
|
873
1409
|
httpProxy: z.ZodOptional<z.ZodString>;
|
|
@@ -883,7 +1419,7 @@ export declare const MachineInfoResponseSchema: z.ZodObject<{
|
|
|
883
1419
|
label: string;
|
|
884
1420
|
id: string;
|
|
885
1421
|
}>, "many">>;
|
|
886
|
-
}, "
|
|
1422
|
+
}, "strict", z.ZodTypeAny, {
|
|
887
1423
|
httpProxy?: string | undefined;
|
|
888
1424
|
httpsProxy?: string | undefined;
|
|
889
1425
|
customEnv?: Record<string, string> | undefined;
|
|
@@ -914,7 +1450,7 @@ export declare const MachineInfoResponseSchema: z.ZodObject<{
|
|
|
914
1450
|
label: string;
|
|
915
1451
|
id: string;
|
|
916
1452
|
}>, "many">>;
|
|
917
|
-
}, "
|
|
1453
|
+
}, "strict", z.ZodTypeAny, {
|
|
918
1454
|
httpProxy?: string | undefined;
|
|
919
1455
|
httpsProxy?: string | undefined;
|
|
920
1456
|
customEnv?: Record<string, string> | undefined;
|
|
@@ -945,7 +1481,7 @@ export declare const MachineInfoResponseSchema: z.ZodObject<{
|
|
|
945
1481
|
label: string;
|
|
946
1482
|
id: string;
|
|
947
1483
|
}>, "many">>;
|
|
948
|
-
}, "
|
|
1484
|
+
}, "strict", z.ZodTypeAny, {
|
|
949
1485
|
httpProxy?: string | undefined;
|
|
950
1486
|
httpsProxy?: string | undefined;
|
|
951
1487
|
customEnv?: Record<string, string> | undefined;
|
|
@@ -976,7 +1512,7 @@ export declare const MachineInfoResponseSchema: z.ZodObject<{
|
|
|
976
1512
|
label: string;
|
|
977
1513
|
id: string;
|
|
978
1514
|
}>, "many">>;
|
|
979
|
-
}, "
|
|
1515
|
+
}, "strict", z.ZodTypeAny, {
|
|
980
1516
|
httpProxy?: string | undefined;
|
|
981
1517
|
httpsProxy?: string | undefined;
|
|
982
1518
|
customEnv?: Record<string, string> | undefined;
|
|
@@ -1007,7 +1543,7 @@ export declare const MachineInfoResponseSchema: z.ZodObject<{
|
|
|
1007
1543
|
label: string;
|
|
1008
1544
|
id: string;
|
|
1009
1545
|
}>, "many">>;
|
|
1010
|
-
}, "
|
|
1546
|
+
}, "strict", z.ZodTypeAny, {
|
|
1011
1547
|
httpProxy?: string | undefined;
|
|
1012
1548
|
httpsProxy?: string | undefined;
|
|
1013
1549
|
customEnv?: Record<string, string> | undefined;
|
|
@@ -1038,7 +1574,7 @@ export declare const MachineInfoResponseSchema: z.ZodObject<{
|
|
|
1038
1574
|
label: string;
|
|
1039
1575
|
id: string;
|
|
1040
1576
|
}>, "many">>;
|
|
1041
|
-
}, "
|
|
1577
|
+
}, "strict", z.ZodTypeAny, {
|
|
1042
1578
|
httpProxy?: string | undefined;
|
|
1043
1579
|
httpsProxy?: string | undefined;
|
|
1044
1580
|
customEnv?: Record<string, string> | undefined;
|
|
@@ -1069,7 +1605,7 @@ export declare const MachineInfoResponseSchema: z.ZodObject<{
|
|
|
1069
1605
|
label: string;
|
|
1070
1606
|
id: string;
|
|
1071
1607
|
}>, "many">>;
|
|
1072
|
-
}, "
|
|
1608
|
+
}, "strict", z.ZodTypeAny, {
|
|
1073
1609
|
httpProxy?: string | undefined;
|
|
1074
1610
|
httpsProxy?: string | undefined;
|
|
1075
1611
|
customEnv?: Record<string, string> | undefined;
|
|
@@ -1160,7 +1696,10 @@ export declare const MachineInfoResponseSchema: z.ZodObject<{
|
|
|
1160
1696
|
id: string;
|
|
1161
1697
|
}[] | undefined;
|
|
1162
1698
|
} | undefined;
|
|
1163
|
-
|
|
1699
|
+
notification?: {
|
|
1700
|
+
feishu?: string | undefined;
|
|
1701
|
+
dingtalk?: string | undefined;
|
|
1702
|
+
} | undefined;
|
|
1164
1703
|
}, {
|
|
1165
1704
|
claude?: {
|
|
1166
1705
|
httpProxy?: string | undefined;
|
|
@@ -1235,7 +1774,10 @@ export declare const MachineInfoResponseSchema: z.ZodObject<{
|
|
|
1235
1774
|
id: string;
|
|
1236
1775
|
}[] | undefined;
|
|
1237
1776
|
} | undefined;
|
|
1238
|
-
|
|
1777
|
+
notification?: {
|
|
1778
|
+
feishu?: string | undefined;
|
|
1779
|
+
dingtalk?: string | undefined;
|
|
1780
|
+
} | undefined;
|
|
1239
1781
|
}>>;
|
|
1240
1782
|
/** Agent skills discovered from filesystem provider directories.
|
|
1241
1783
|
* Keyed by agent type (e.g. 'claude'). */
|
|
@@ -1248,19 +1790,25 @@ export declare const MachineInfoResponseSchema: z.ZodObject<{
|
|
|
1248
1790
|
source: z.ZodDefault<z.ZodEnum<["project", "user"]>>;
|
|
1249
1791
|
/** Project root directory for project-level skills. Undefined for user-level skills. */
|
|
1250
1792
|
projectPath: z.ZodOptional<z.ZodString>;
|
|
1251
|
-
}, "
|
|
1252
|
-
|
|
1253
|
-
|
|
1254
|
-
|
|
1255
|
-
userInvocable:
|
|
1256
|
-
|
|
1257
|
-
|
|
1258
|
-
|
|
1259
|
-
|
|
1260
|
-
|
|
1261
|
-
|
|
1262
|
-
|
|
1263
|
-
|
|
1793
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
1794
|
+
name: z.ZodString;
|
|
1795
|
+
description: z.ZodString;
|
|
1796
|
+
/** If false, the skill is internal-only and should not appear in the menu. */
|
|
1797
|
+
userInvocable: z.ZodDefault<z.ZodBoolean>;
|
|
1798
|
+
/** Source: 'project' (.claude/skills/) or 'user' (~/.claude/skills/). */
|
|
1799
|
+
source: z.ZodDefault<z.ZodEnum<["project", "user"]>>;
|
|
1800
|
+
/** Project root directory for project-level skills. Undefined for user-level skills. */
|
|
1801
|
+
projectPath: z.ZodOptional<z.ZodString>;
|
|
1802
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
1803
|
+
name: z.ZodString;
|
|
1804
|
+
description: z.ZodString;
|
|
1805
|
+
/** If false, the skill is internal-only and should not appear in the menu. */
|
|
1806
|
+
userInvocable: z.ZodDefault<z.ZodBoolean>;
|
|
1807
|
+
/** Source: 'project' (.claude/skills/) or 'user' (~/.claude/skills/). */
|
|
1808
|
+
source: z.ZodDefault<z.ZodEnum<["project", "user"]>>;
|
|
1809
|
+
/** Project root directory for project-level skills. Undefined for user-level skills. */
|
|
1810
|
+
projectPath: z.ZodOptional<z.ZodString>;
|
|
1811
|
+
}, z.ZodTypeAny, "passthrough">>, "many">>>;
|
|
1264
1812
|
}, "strip", z.ZodTypeAny, {
|
|
1265
1813
|
homedir: string;
|
|
1266
1814
|
recentCwds: string[];
|
|
@@ -1268,8 +1816,8 @@ export declare const MachineInfoResponseSchema: z.ZodObject<{
|
|
|
1268
1816
|
availableAgents: string[];
|
|
1269
1817
|
defaultCwd?: string | undefined;
|
|
1270
1818
|
agentModels?: Record<string, {
|
|
1271
|
-
id: string;
|
|
1272
1819
|
source: "custom" | "builtin" | "acp" | "env";
|
|
1820
|
+
id: string;
|
|
1273
1821
|
displayName: string;
|
|
1274
1822
|
isDefault: boolean;
|
|
1275
1823
|
hidden: boolean;
|
|
@@ -1353,15 +1901,21 @@ export declare const MachineInfoResponseSchema: z.ZodObject<{
|
|
|
1353
1901
|
id: string;
|
|
1354
1902
|
}[] | undefined;
|
|
1355
1903
|
} | undefined;
|
|
1356
|
-
|
|
1904
|
+
notification?: {
|
|
1905
|
+
feishu?: string | undefined;
|
|
1906
|
+
dingtalk?: string | undefined;
|
|
1907
|
+
} | undefined;
|
|
1357
1908
|
} | undefined;
|
|
1358
|
-
agentSkills?: Record<string, {
|
|
1359
|
-
|
|
1360
|
-
|
|
1361
|
-
|
|
1362
|
-
userInvocable:
|
|
1363
|
-
|
|
1364
|
-
|
|
1909
|
+
agentSkills?: Record<string, z.objectOutputType<{
|
|
1910
|
+
name: z.ZodString;
|
|
1911
|
+
description: z.ZodString;
|
|
1912
|
+
/** If false, the skill is internal-only and should not appear in the menu. */
|
|
1913
|
+
userInvocable: z.ZodDefault<z.ZodBoolean>;
|
|
1914
|
+
/** Source: 'project' (.claude/skills/) or 'user' (~/.claude/skills/). */
|
|
1915
|
+
source: z.ZodDefault<z.ZodEnum<["project", "user"]>>;
|
|
1916
|
+
/** Project root directory for project-level skills. Undefined for user-level skills. */
|
|
1917
|
+
projectPath: z.ZodOptional<z.ZodString>;
|
|
1918
|
+
}, z.ZodTypeAny, "passthrough">[]> | undefined;
|
|
1365
1919
|
}, {
|
|
1366
1920
|
homedir: string;
|
|
1367
1921
|
recentCwds: string[];
|
|
@@ -1454,21 +2008,27 @@ export declare const MachineInfoResponseSchema: z.ZodObject<{
|
|
|
1454
2008
|
id: string;
|
|
1455
2009
|
}[] | undefined;
|
|
1456
2010
|
} | undefined;
|
|
1457
|
-
|
|
2011
|
+
notification?: {
|
|
2012
|
+
feishu?: string | undefined;
|
|
2013
|
+
dingtalk?: string | undefined;
|
|
2014
|
+
} | undefined;
|
|
1458
2015
|
} | undefined;
|
|
1459
|
-
agentSkills?: Record<string, {
|
|
1460
|
-
|
|
1461
|
-
|
|
1462
|
-
|
|
1463
|
-
userInvocable
|
|
1464
|
-
|
|
1465
|
-
|
|
2016
|
+
agentSkills?: Record<string, z.objectInputType<{
|
|
2017
|
+
name: z.ZodString;
|
|
2018
|
+
description: z.ZodString;
|
|
2019
|
+
/** If false, the skill is internal-only and should not appear in the menu. */
|
|
2020
|
+
userInvocable: z.ZodDefault<z.ZodBoolean>;
|
|
2021
|
+
/** Source: 'project' (.claude/skills/) or 'user' (~/.claude/skills/). */
|
|
2022
|
+
source: z.ZodDefault<z.ZodEnum<["project", "user"]>>;
|
|
2023
|
+
/** Project root directory for project-level skills. Undefined for user-level skills. */
|
|
2024
|
+
projectPath: z.ZodOptional<z.ZodString>;
|
|
2025
|
+
}, z.ZodTypeAny, "passthrough">[]> | undefined;
|
|
1466
2026
|
}>;
|
|
1467
2027
|
export declare const CheckPathParamsSchema: z.ZodObject<{
|
|
1468
2028
|
cwd: z.ZodString;
|
|
1469
2029
|
/** Target machine for multi-host routing. Omit for single-machine (auto-select). */
|
|
1470
2030
|
machineId: z.ZodOptional<z.ZodString>;
|
|
1471
|
-
}, "
|
|
2031
|
+
}, "strict", z.ZodTypeAny, {
|
|
1472
2032
|
cwd: string;
|
|
1473
2033
|
machineId?: string | undefined;
|
|
1474
2034
|
}, {
|
|
@@ -1478,7 +2038,7 @@ export declare const CheckPathParamsSchema: z.ZodObject<{
|
|
|
1478
2038
|
export declare const LabsSettingsSchema: z.ZodObject<{
|
|
1479
2039
|
/** Enable discovery and sync of CLI history sessions (experimental). */
|
|
1480
2040
|
historySessionSync: z.ZodDefault<z.ZodBoolean>;
|
|
1481
|
-
}, "
|
|
2041
|
+
}, "strict", z.ZodTypeAny, {
|
|
1482
2042
|
historySessionSync: boolean;
|
|
1483
2043
|
}, {
|
|
1484
2044
|
historySessionSync?: boolean | undefined;
|