@agentdock/wire 0.0.95 → 0.0.97
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/agentCapabilities.d.ts +5 -2
- package/dist/agentCapabilities.js +1 -1
- package/dist/agentCompatibility.d.ts +83 -0
- package/dist/agentCompatibility.js +1 -0
- package/dist/agentInstallGuide.js +1 -1
- package/dist/checkpointSchemas.d.ts +5 -0
- package/dist/checkpointSchemas.js +1 -1
- package/dist/enterpriseCurrency.d.ts +120 -0
- package/dist/enterpriseCurrency.js +1 -0
- package/dist/enterpriseDirectory.d.ts +636 -0
- package/dist/enterpriseDirectory.js +1 -0
- package/dist/enterpriseFileService.d.ts +7 -0
- package/dist/enterpriseFileService.js +1 -0
- package/dist/enterpriseGatewayExports.d.ts +4 -0
- package/dist/enterpriseGatewayExports.js +1 -0
- package/dist/enterpriseOverview.d.ts +423 -0
- package/dist/enterpriseOverview.js +1 -0
- package/dist/enterprisePolicy.d.ts +452 -489
- package/dist/enterprisePolicy.js +1 -1
- package/dist/enterprisePolicyExports.d.ts +4 -2
- package/dist/enterprisePolicyExports.js +1 -1
- package/dist/enterpriseRange.d.ts +19 -0
- package/dist/enterpriseRange.js +1 -0
- package/dist/enterpriseRuntime.d.ts +574 -46
- package/dist/enterpriseRuntime.js +1 -1
- package/dist/enterpriseUserContainer.d.ts +2 -0
- package/dist/enterpriseUserContainer.js +1 -0
- package/dist/gateway.d.ts +1393 -876
- package/dist/gateway.js +1 -1
- package/dist/gatewayBodyRetention.d.ts +149 -0
- package/dist/gatewayBodyRetention.js +2 -0
- package/dist/gatewayUsage.d.ts +3248 -0
- package/dist/gatewayUsage.js +1 -0
- package/dist/inboundEvents.d.ts +0 -6
- package/dist/inboundEvents.js +1 -1
- package/dist/index.d.ts +15 -6
- package/dist/index.js +1 -1
- package/dist/interactionEvents.d.ts +2 -2
- package/dist/legacyProtocol.d.ts +36 -36
- package/dist/machine.d.ts +1 -6
- package/dist/machine.js +1 -1
- package/dist/messageMeta.d.ts +9 -7
- package/dist/messageMeta.js +1 -1
- package/dist/messages.d.ts +36 -36
- package/dist/ops.d.ts +112 -0
- package/dist/ops.js +1 -1
- package/dist/opsExports.d.ts +4 -0
- package/dist/opsExports.js +1 -0
- package/dist/pushPreferences.d.ts +12 -0
- package/dist/pushPreferences.js +1 -0
- package/dist/rpc.d.ts +537 -66
- package/dist/rpc.js +1 -1
- package/dist/scheduledTasks.d.ts +96 -21
- package/dist/scheduledTasks.js +1 -1
- package/dist/session.d.ts +4 -0
- package/dist/session.js +1 -0
- package/dist/sessionBtw.d.ts +2 -2
- package/dist/sessionFiles.d.ts +70 -0
- package/dist/sessionFiles.js +1 -0
- package/dist/sessionSlashCommands.d.ts +15 -0
- package/dist/sessionSlashCommands.js +1 -0
- package/dist/spawnError.d.ts +3 -3
- package/dist/stats.d.ts +31 -31
- package/dist/sync.d.ts +45 -45
- package/dist/sync.js +1 -1
- package/dist/telemetry.d.ts +13 -13
- package/dist/telemetry.js +1 -1
- package/dist/workspaceFileReaderProtocol.d.ts +270 -0
- package/dist/workspaceFileReaderProtocol.js +1 -0
- package/dist/workspaceFileRelay.d.ts +188 -0
- package/dist/workspaceFileRelay.js +1 -0
- package/package.json +1 -1
- package/dist/agentRuntimeSettings.d.ts +0 -139
- package/dist/agentRuntimeSettings.js +0 -1
- package/dist/enterpriseGateway.d.ts +0 -214
- package/dist/enterpriseGateway.js +0 -1
- package/dist/goals.d.ts +0 -829
- package/dist/goals.js +0 -1
package/dist/rpc.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";import{z as t}from"zod";import{
|
|
1
|
+
"use strict";import{z as t}from"zod";import{AgentCompatibilityBlockSchema as a,AgentCompatibilityBlocksSchema as s}from"./agentCompatibility.js";import{SessionMessageSchema as r}from"./messages.js";import{CLI_AGENT_TYPES as l,SPAWNABLE_AGENTS as n}from"./messageMeta.js";import{SessionHandoffContextSchema as p}from"./workItems.js";import{AccountLanguageSchema as e}from"./accountLanguage.js";export const RpcMethod=t.enum(["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"]),AiHelperCancelParamsSchema=t.object({machineId:t.string().min(1),sessionId:t.string().min(1)}).strict(),SESSION_RPC_METHODS=["answer-question","approve-permission","deny-permission","abort","stop-session","cancel-task","get-context-usage"],MACHINE_RPC_METHODS=["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"],DAEMON_REQUIRED_RPC_METHODS=[...SESSION_RPC_METHODS,...MACHINE_RPC_METHODS],RpcCallSchema=t.object({method:t.string().min(1),params:t.unknown(),timeout:t.number().int().positive().default(3e4)}),RpcResultSchema=t.discriminatedUnion("ok",[t.object({ok:t.literal(!0),result:t.unknown()}),t.object({ok:t.literal(!1),error:t.string(),message:t.string().optional(),compatibilityBlock:a.optional()})]),SpawnSessionParamsSchema=t.object({agentType:t.enum(l),cwd:t.string().min(1),prompt:t.string().optional(),permissionMode:t.string().default("default"),env:t.record(t.string()).optional(),model:t.string().optional(),baseUrl:t.string().url().optional(),appendSystemPrompt:t.string().optional(),responseLanguage:e.optional(),allowedTools:t.array(t.string()).optional(),disallowedTools:t.array(t.string()).optional(),mcpConfig:t.string().optional(),resumeSessionId:t.string().optional(),serverSessionId:t.string().optional(),maxTurns:t.number().int().positive().optional(),machineId:t.string().min(1).optional(),spawnToken:t.string().optional(),handoffContext:p.optional(),systemPrompt:t.string().optional(),systemPromptFile:t.string().optional(),appendSystemPromptFile:t.string().optional(),fallbackModel:t.string().optional(),maxBudgetUsd:t.number().positive().optional(),tools:t.array(t.string()).optional(),effort:t.enum(["low","medium","high","xhigh","max"]).optional(),addDirs:t.array(t.string()).optional(),agent:t.string().optional(),agents:t.string().optional(),jsonSchema:t.string().optional(),strictMcpConfig:t.boolean().optional(),chrome:t.boolean().optional(),worktree:t.union([t.boolean(),t.string()]).optional(),forkSession:t.boolean().optional(),sessionId:t.string().uuid().optional(),settings:t.string().optional(),betas:t.array(t.string()).optional(),brief:t.boolean().optional(),noSessionPersistence:t.boolean().optional(),includePartialMessages:t.boolean().optional(),replayUserMessages:t.boolean().optional(),settingSources:t.string().optional(),disableSlashCommands:t.boolean().optional(),files:t.array(t.string()).optional(),pluginDirs:t.array(t.string()).optional(),dangerouslySkipPermissions:t.boolean().optional(),allowDangerouslySkipPermissions:t.boolean().optional(),startupScripts:t.array(t.string()).optional(),source:t.enum(["managed","history","scheduled"]).default("managed"),background:t.boolean().default(!1),useWindowsTerminal:t.boolean().optional()}).strict(),GetMessagesParamsSchema=t.object({sessionId:t.string().min(1),fromSeq:t.number().int().nonnegative().optional(),limit:t.number().int().positive().default(100)}).strict(),GetMessagesResponseSchema=t.object({messages:t.array(r),total:t.number(),hasMore:t.boolean()}).passthrough(),CustomModelSchema=t.object({id:t.string().min(1),label:t.string().min(1)}),SkillDefinitionSchema=t.object({name:t.string().min(1),description:t.string(),userInvocable:t.boolean().default(!0),source:t.enum(["project","user"]).default("project"),projectPath:t.string().optional()}).passthrough(),AGENT_ENV_NONE="none",AgentEnvConfigSchema=t.object({httpProxy:t.string().optional(),httpsProxy:t.string().optional(),customEnv:t.record(t.string()).optional(),customModels:t.array(CustomModelSchema).optional()}).strict(),AgentEnvConfigSetSchema=t.object({httpProxy:t.string().optional(),httpsProxy:t.string().optional(),customModels:t.array(CustomModelSchema).optional()}).strict(),AiHelperConfigSchema=t.object({enabled:t.boolean()}).strict(),LocalAiHelperConfigSchema=t.object({enabled:t.boolean(),provider:t.enum(["openai","anthropic","openai-compatible"]).optional(),baseUrl:t.string().url().optional(),apiKey:t.string().min(1).optional(),modelId:t.string().min(1).optional(),disableReasoning:t.boolean().optional()}).strict().superRefine((o,i)=>{o.provider==="openai-compatible"&&!o.baseUrl&&i.addIssue({code:t.ZodIssueCode.custom,path:["baseUrl"],message:"baseUrl is required"})}),AiHelperPayloadSchema=t.object({c:t.string().min(1),t:t.string().min(1)}).strict(),AiHelperDecryptedPayloadSchema=t.object({prompt:t.string().min(1).max(16e3),systemPrompt:t.string().max(8e3).optional()}).strict(),AiHelperParamsSchema=t.discriminatedUnion("format",[t.object({format:t.literal("encrypted"),payload:AiHelperPayloadSchema,sessionId:t.string().min(1),machineId:t.string().min(1).optional(),responseLanguage:e.optional()}).strict(),t.object({format:t.literal("plain"),prompt:t.string().min(1).max(16e3),systemPrompt:t.string().max(8e3).optional(),sessionId:t.string().min(1).optional(),machineId:t.string().min(1).optional(),responseLanguage:e.optional()}).strict()]),AgentSettingsSchema=t.object({defaults:AgentEnvConfigSchema.optional(),startupScripts:t.array(t.string()).optional(),notification:t.object({feishu:t.string().optional(),dingtalk:t.string().optional()}).optional()}).merge(t.object(Object.fromEntries(n.map(o=>[o,AgentEnvConfigSchema.optional()])))).merge(t.object({aiHelper:AiHelperConfigSchema.optional()})),SetAgentSettingsSchema=t.object({defaults:AgentEnvConfigSetSchema.optional(),machineId:t.string().optional()}).merge(t.object(Object.fromEntries(n.map(o=>[o,AgentEnvConfigSetSchema.optional()])))).merge(t.object({aiHelper:AiHelperConfigSchema.optional()})).strict(),MachineInfoResponseSchema=t.object({homedir:t.string(),defaultCwd:t.string().optional(),recentCwds:t.array(t.string()),projectPaths:t.array(t.string()).optional().default([]),availableAgents:t.array(t.string()),availableAgentsAuthoritative:t.boolean().optional(),agentCompatibilityBlocks:s.optional(),agentModels:t.record(t.string(),t.array(t.object({id:t.string(),displayName:t.string(),isDefault:t.boolean(),hidden:t.boolean(),source:t.enum(["builtin","acp","runtime","env","custom"]).optional().default("acp")}))).optional(),agentModes:t.record(t.string(),t.array(t.object({id:t.string(),label:t.string()}))).optional(),agentCliPaths:t.record(t.string(),t.string()).optional(),agentSettings:AgentSettingsSchema.optional(),agentSkills:t.record(t.string(),t.array(SkillDefinitionSchema)).optional(),capabilities:t.array(t.string()).optional()}),CheckPathParamsSchema=t.object({cwd:t.string().min(1),machineId:t.string().min(1).optional()}).strict(),EnterpriseModelEntrySchema=t.object({id:t.string().min(1),displayName:t.string(),isDefault:t.boolean()}).passthrough(),RefreshEnterpriseModelsParamsSchema=t.object({models:t.array(EnterpriseModelEntrySchema).optional(),agents:t.record(t.string(),t.array(EnterpriseModelEntrySchema)).optional()}).passthrough().refine(o=>o.models!==void 0||o.agents!==void 0,{message:"either models or agents is required"}),LabsSettingsSchema=t.object({historySessionSync:t.boolean().default(!1)}).strict(),LocalAgentSettingsSchema=AgentSettingsSchema.omit({aiHelper:!0}).extend({version:t.literal(1).optional(),aiHelper:LocalAiHelperConfigSchema.optional()});
|
package/dist/scheduledTasks.d.ts
CHANGED
|
@@ -14,7 +14,7 @@ export declare const MissedRunPolicySchema: z.ZodEnum<["skip", "run-once"]>;
|
|
|
14
14
|
export type MissedRunPolicy = z.infer<typeof MissedRunPolicySchema>;
|
|
15
15
|
export declare const ScheduledSpawnParamsSchema: z.ZodObject<{
|
|
16
16
|
model: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
17
|
-
agentType: z.ZodOptional<z.ZodEnum<["claude", "
|
|
17
|
+
agentType: z.ZodOptional<z.ZodEnum<["claude", "codex", "opencode", "pi", "copilot", "gemini", "hermes", "openclaw"]>>;
|
|
18
18
|
agent: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
19
19
|
cwd: z.ZodOptional<z.ZodString>;
|
|
20
20
|
prompt: z.ZodString;
|
|
@@ -36,7 +36,7 @@ export declare const ScheduledSpawnParamsSchema: z.ZodObject<{
|
|
|
36
36
|
}, "strict", z.ZodTypeAny, {
|
|
37
37
|
prompt: string;
|
|
38
38
|
model?: string | undefined;
|
|
39
|
-
agentType?: "
|
|
39
|
+
agentType?: "claude" | "codex" | "opencode" | "pi" | "copilot" | "gemini" | "hermes" | "openclaw" | undefined;
|
|
40
40
|
agent?: string | undefined;
|
|
41
41
|
cwd?: string | undefined;
|
|
42
42
|
startupScripts?: string[] | undefined;
|
|
@@ -50,7 +50,7 @@ export declare const ScheduledSpawnParamsSchema: z.ZodObject<{
|
|
|
50
50
|
}, {
|
|
51
51
|
prompt: string;
|
|
52
52
|
model?: string | undefined;
|
|
53
|
-
agentType?: "
|
|
53
|
+
agentType?: "claude" | "codex" | "opencode" | "pi" | "copilot" | "gemini" | "hermes" | "openclaw" | undefined;
|
|
54
54
|
agent?: string | undefined;
|
|
55
55
|
cwd?: string | undefined;
|
|
56
56
|
startupScripts?: string[] | undefined;
|
|
@@ -203,7 +203,7 @@ export declare const CreateScheduledTaskSchema: z.ZodEffects<z.ZodEffects<z.ZodO
|
|
|
203
203
|
enabled: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
204
204
|
spawnParams: z.ZodObject<{
|
|
205
205
|
model: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
206
|
-
agentType: z.ZodOptional<z.ZodEnum<["claude", "
|
|
206
|
+
agentType: z.ZodOptional<z.ZodEnum<["claude", "codex", "opencode", "pi", "copilot", "gemini", "hermes", "openclaw"]>>;
|
|
207
207
|
agent: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
208
208
|
cwd: z.ZodOptional<z.ZodString>;
|
|
209
209
|
prompt: z.ZodString;
|
|
@@ -225,7 +225,7 @@ export declare const CreateScheduledTaskSchema: z.ZodEffects<z.ZodEffects<z.ZodO
|
|
|
225
225
|
}, "strict", z.ZodTypeAny, {
|
|
226
226
|
prompt: string;
|
|
227
227
|
model?: string | undefined;
|
|
228
|
-
agentType?: "
|
|
228
|
+
agentType?: "claude" | "codex" | "opencode" | "pi" | "copilot" | "gemini" | "hermes" | "openclaw" | undefined;
|
|
229
229
|
agent?: string | undefined;
|
|
230
230
|
cwd?: string | undefined;
|
|
231
231
|
startupScripts?: string[] | undefined;
|
|
@@ -239,7 +239,7 @@ export declare const CreateScheduledTaskSchema: z.ZodEffects<z.ZodEffects<z.ZodO
|
|
|
239
239
|
}, {
|
|
240
240
|
prompt: string;
|
|
241
241
|
model?: string | undefined;
|
|
242
|
-
agentType?: "
|
|
242
|
+
agentType?: "claude" | "codex" | "opencode" | "pi" | "copilot" | "gemini" | "hermes" | "openclaw" | undefined;
|
|
243
243
|
agent?: string | undefined;
|
|
244
244
|
cwd?: string | undefined;
|
|
245
245
|
startupScripts?: string[] | undefined;
|
|
@@ -263,7 +263,7 @@ export declare const CreateScheduledTaskSchema: z.ZodEffects<z.ZodEffects<z.ZodO
|
|
|
263
263
|
spawnParams: {
|
|
264
264
|
prompt: string;
|
|
265
265
|
model?: string | undefined;
|
|
266
|
-
agentType?: "
|
|
266
|
+
agentType?: "claude" | "codex" | "opencode" | "pi" | "copilot" | "gemini" | "hermes" | "openclaw" | undefined;
|
|
267
267
|
agent?: string | undefined;
|
|
268
268
|
cwd?: string | undefined;
|
|
269
269
|
startupScripts?: string[] | undefined;
|
|
@@ -284,7 +284,7 @@ export declare const CreateScheduledTaskSchema: z.ZodEffects<z.ZodEffects<z.ZodO
|
|
|
284
284
|
spawnParams: {
|
|
285
285
|
prompt: string;
|
|
286
286
|
model?: string | undefined;
|
|
287
|
-
agentType?: "
|
|
287
|
+
agentType?: "claude" | "codex" | "opencode" | "pi" | "copilot" | "gemini" | "hermes" | "openclaw" | undefined;
|
|
288
288
|
agent?: string | undefined;
|
|
289
289
|
cwd?: string | undefined;
|
|
290
290
|
startupScripts?: string[] | undefined;
|
|
@@ -309,7 +309,7 @@ export declare const CreateScheduledTaskSchema: z.ZodEffects<z.ZodEffects<z.ZodO
|
|
|
309
309
|
spawnParams: {
|
|
310
310
|
prompt: string;
|
|
311
311
|
model?: string | undefined;
|
|
312
|
-
agentType?: "
|
|
312
|
+
agentType?: "claude" | "codex" | "opencode" | "pi" | "copilot" | "gemini" | "hermes" | "openclaw" | undefined;
|
|
313
313
|
agent?: string | undefined;
|
|
314
314
|
cwd?: string | undefined;
|
|
315
315
|
startupScripts?: string[] | undefined;
|
|
@@ -330,7 +330,7 @@ export declare const CreateScheduledTaskSchema: z.ZodEffects<z.ZodEffects<z.ZodO
|
|
|
330
330
|
spawnParams: {
|
|
331
331
|
prompt: string;
|
|
332
332
|
model?: string | undefined;
|
|
333
|
-
agentType?: "
|
|
333
|
+
agentType?: "claude" | "codex" | "opencode" | "pi" | "copilot" | "gemini" | "hermes" | "openclaw" | undefined;
|
|
334
334
|
agent?: string | undefined;
|
|
335
335
|
cwd?: string | undefined;
|
|
336
336
|
startupScripts?: string[] | undefined;
|
|
@@ -355,7 +355,7 @@ export declare const CreateScheduledTaskSchema: z.ZodEffects<z.ZodEffects<z.ZodO
|
|
|
355
355
|
spawnParams: {
|
|
356
356
|
prompt: string;
|
|
357
357
|
model?: string | undefined;
|
|
358
|
-
agentType?: "
|
|
358
|
+
agentType?: "claude" | "codex" | "opencode" | "pi" | "copilot" | "gemini" | "hermes" | "openclaw" | undefined;
|
|
359
359
|
agent?: string | undefined;
|
|
360
360
|
cwd?: string | undefined;
|
|
361
361
|
startupScripts?: string[] | undefined;
|
|
@@ -376,7 +376,7 @@ export declare const CreateScheduledTaskSchema: z.ZodEffects<z.ZodEffects<z.ZodO
|
|
|
376
376
|
spawnParams: {
|
|
377
377
|
prompt: string;
|
|
378
378
|
model?: string | undefined;
|
|
379
|
-
agentType?: "
|
|
379
|
+
agentType?: "claude" | "codex" | "opencode" | "pi" | "copilot" | "gemini" | "hermes" | "openclaw" | undefined;
|
|
380
380
|
agent?: string | undefined;
|
|
381
381
|
cwd?: string | undefined;
|
|
382
382
|
startupScripts?: string[] | undefined;
|
|
@@ -404,7 +404,7 @@ export declare const UpdateScheduledTaskSchema: z.ZodEffects<z.ZodEffects<z.ZodO
|
|
|
404
404
|
machineId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
405
405
|
spawnParams: z.ZodOptional<z.ZodObject<{
|
|
406
406
|
model: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
407
|
-
agentType: z.ZodOptional<z.ZodEnum<["claude", "
|
|
407
|
+
agentType: z.ZodOptional<z.ZodEnum<["claude", "codex", "opencode", "pi", "copilot", "gemini", "hermes", "openclaw"]>>;
|
|
408
408
|
agent: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
409
409
|
cwd: z.ZodOptional<z.ZodString>;
|
|
410
410
|
prompt: z.ZodString;
|
|
@@ -426,7 +426,7 @@ export declare const UpdateScheduledTaskSchema: z.ZodEffects<z.ZodEffects<z.ZodO
|
|
|
426
426
|
}, "strict", z.ZodTypeAny, {
|
|
427
427
|
prompt: string;
|
|
428
428
|
model?: string | undefined;
|
|
429
|
-
agentType?: "
|
|
429
|
+
agentType?: "claude" | "codex" | "opencode" | "pi" | "copilot" | "gemini" | "hermes" | "openclaw" | undefined;
|
|
430
430
|
agent?: string | undefined;
|
|
431
431
|
cwd?: string | undefined;
|
|
432
432
|
startupScripts?: string[] | undefined;
|
|
@@ -440,7 +440,7 @@ export declare const UpdateScheduledTaskSchema: z.ZodEffects<z.ZodEffects<z.ZodO
|
|
|
440
440
|
}, {
|
|
441
441
|
prompt: string;
|
|
442
442
|
model?: string | undefined;
|
|
443
|
-
agentType?: "
|
|
443
|
+
agentType?: "claude" | "codex" | "opencode" | "pi" | "copilot" | "gemini" | "hermes" | "openclaw" | undefined;
|
|
444
444
|
agent?: string | undefined;
|
|
445
445
|
cwd?: string | undefined;
|
|
446
446
|
startupScripts?: string[] | undefined;
|
|
@@ -462,7 +462,7 @@ export declare const UpdateScheduledTaskSchema: z.ZodEffects<z.ZodEffects<z.ZodO
|
|
|
462
462
|
spawnParams?: {
|
|
463
463
|
prompt: string;
|
|
464
464
|
model?: string | undefined;
|
|
465
|
-
agentType?: "
|
|
465
|
+
agentType?: "claude" | "codex" | "opencode" | "pi" | "copilot" | "gemini" | "hermes" | "openclaw" | undefined;
|
|
466
466
|
agent?: string | undefined;
|
|
467
467
|
cwd?: string | undefined;
|
|
468
468
|
startupScripts?: string[] | undefined;
|
|
@@ -485,7 +485,7 @@ export declare const UpdateScheduledTaskSchema: z.ZodEffects<z.ZodEffects<z.ZodO
|
|
|
485
485
|
spawnParams?: {
|
|
486
486
|
prompt: string;
|
|
487
487
|
model?: string | undefined;
|
|
488
|
-
agentType?: "
|
|
488
|
+
agentType?: "claude" | "codex" | "opencode" | "pi" | "copilot" | "gemini" | "hermes" | "openclaw" | undefined;
|
|
489
489
|
agent?: string | undefined;
|
|
490
490
|
cwd?: string | undefined;
|
|
491
491
|
startupScripts?: string[] | undefined;
|
|
@@ -508,7 +508,7 @@ export declare const UpdateScheduledTaskSchema: z.ZodEffects<z.ZodEffects<z.ZodO
|
|
|
508
508
|
spawnParams?: {
|
|
509
509
|
prompt: string;
|
|
510
510
|
model?: string | undefined;
|
|
511
|
-
agentType?: "
|
|
511
|
+
agentType?: "claude" | "codex" | "opencode" | "pi" | "copilot" | "gemini" | "hermes" | "openclaw" | undefined;
|
|
512
512
|
agent?: string | undefined;
|
|
513
513
|
cwd?: string | undefined;
|
|
514
514
|
startupScripts?: string[] | undefined;
|
|
@@ -531,7 +531,7 @@ export declare const UpdateScheduledTaskSchema: z.ZodEffects<z.ZodEffects<z.ZodO
|
|
|
531
531
|
spawnParams?: {
|
|
532
532
|
prompt: string;
|
|
533
533
|
model?: string | undefined;
|
|
534
|
-
agentType?: "
|
|
534
|
+
agentType?: "claude" | "codex" | "opencode" | "pi" | "copilot" | "gemini" | "hermes" | "openclaw" | undefined;
|
|
535
535
|
agent?: string | undefined;
|
|
536
536
|
cwd?: string | undefined;
|
|
537
537
|
startupScripts?: string[] | undefined;
|
|
@@ -554,7 +554,7 @@ export declare const UpdateScheduledTaskSchema: z.ZodEffects<z.ZodEffects<z.ZodO
|
|
|
554
554
|
spawnParams?: {
|
|
555
555
|
prompt: string;
|
|
556
556
|
model?: string | undefined;
|
|
557
|
-
agentType?: "
|
|
557
|
+
agentType?: "claude" | "codex" | "opencode" | "pi" | "copilot" | "gemini" | "hermes" | "openclaw" | undefined;
|
|
558
558
|
agent?: string | undefined;
|
|
559
559
|
cwd?: string | undefined;
|
|
560
560
|
startupScripts?: string[] | undefined;
|
|
@@ -577,7 +577,7 @@ export declare const UpdateScheduledTaskSchema: z.ZodEffects<z.ZodEffects<z.ZodO
|
|
|
577
577
|
spawnParams?: {
|
|
578
578
|
prompt: string;
|
|
579
579
|
model?: string | undefined;
|
|
580
|
-
agentType?: "
|
|
580
|
+
agentType?: "claude" | "codex" | "opencode" | "pi" | "copilot" | "gemini" | "hermes" | "openclaw" | undefined;
|
|
581
581
|
agent?: string | undefined;
|
|
582
582
|
cwd?: string | undefined;
|
|
583
583
|
startupScripts?: string[] | undefined;
|
|
@@ -1083,6 +1083,31 @@ export declare const TriggerExecutionSchema: z.ZodObject<{
|
|
|
1083
1083
|
completedAt: z.ZodNullable<z.ZodString>;
|
|
1084
1084
|
summary: z.ZodNullable<z.ZodString>;
|
|
1085
1085
|
error: z.ZodNullable<z.ZodString>;
|
|
1086
|
+
result: z.ZodNullable<z.ZodObject<{
|
|
1087
|
+
status: z.ZodEnum<["done", "failed"]>;
|
|
1088
|
+
headline: z.ZodOptional<z.ZodString>;
|
|
1089
|
+
summary: z.ZodOptional<z.ZodString>;
|
|
1090
|
+
outcome: z.ZodOptional<z.ZodString>;
|
|
1091
|
+
reason: z.ZodOptional<z.ZodString>;
|
|
1092
|
+
suggestion: z.ZodOptional<z.ZodString>;
|
|
1093
|
+
unstructured: z.ZodOptional<z.ZodBoolean>;
|
|
1094
|
+
}, "strip", z.ZodTypeAny, {
|
|
1095
|
+
status: "failed" | "done";
|
|
1096
|
+
reason?: string | undefined;
|
|
1097
|
+
summary?: string | undefined;
|
|
1098
|
+
outcome?: string | undefined;
|
|
1099
|
+
headline?: string | undefined;
|
|
1100
|
+
suggestion?: string | undefined;
|
|
1101
|
+
unstructured?: boolean | undefined;
|
|
1102
|
+
}, {
|
|
1103
|
+
status: "failed" | "done";
|
|
1104
|
+
reason?: string | undefined;
|
|
1105
|
+
summary?: string | undefined;
|
|
1106
|
+
outcome?: string | undefined;
|
|
1107
|
+
headline?: string | undefined;
|
|
1108
|
+
suggestion?: string | undefined;
|
|
1109
|
+
unstructured?: boolean | undefined;
|
|
1110
|
+
}>>;
|
|
1086
1111
|
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
1087
1112
|
executionId: z.ZodString;
|
|
1088
1113
|
status: z.ZodEnum<["pending", "running", "completed", "failed", "lost", "skipped", "cancelled"]>;
|
|
@@ -1090,6 +1115,31 @@ export declare const TriggerExecutionSchema: z.ZodObject<{
|
|
|
1090
1115
|
completedAt: z.ZodNullable<z.ZodString>;
|
|
1091
1116
|
summary: z.ZodNullable<z.ZodString>;
|
|
1092
1117
|
error: z.ZodNullable<z.ZodString>;
|
|
1118
|
+
result: z.ZodNullable<z.ZodObject<{
|
|
1119
|
+
status: z.ZodEnum<["done", "failed"]>;
|
|
1120
|
+
headline: z.ZodOptional<z.ZodString>;
|
|
1121
|
+
summary: z.ZodOptional<z.ZodString>;
|
|
1122
|
+
outcome: z.ZodOptional<z.ZodString>;
|
|
1123
|
+
reason: z.ZodOptional<z.ZodString>;
|
|
1124
|
+
suggestion: z.ZodOptional<z.ZodString>;
|
|
1125
|
+
unstructured: z.ZodOptional<z.ZodBoolean>;
|
|
1126
|
+
}, "strip", z.ZodTypeAny, {
|
|
1127
|
+
status: "failed" | "done";
|
|
1128
|
+
reason?: string | undefined;
|
|
1129
|
+
summary?: string | undefined;
|
|
1130
|
+
outcome?: string | undefined;
|
|
1131
|
+
headline?: string | undefined;
|
|
1132
|
+
suggestion?: string | undefined;
|
|
1133
|
+
unstructured?: boolean | undefined;
|
|
1134
|
+
}, {
|
|
1135
|
+
status: "failed" | "done";
|
|
1136
|
+
reason?: string | undefined;
|
|
1137
|
+
summary?: string | undefined;
|
|
1138
|
+
outcome?: string | undefined;
|
|
1139
|
+
headline?: string | undefined;
|
|
1140
|
+
suggestion?: string | undefined;
|
|
1141
|
+
unstructured?: boolean | undefined;
|
|
1142
|
+
}>>;
|
|
1093
1143
|
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
1094
1144
|
executionId: z.ZodString;
|
|
1095
1145
|
status: z.ZodEnum<["pending", "running", "completed", "failed", "lost", "skipped", "cancelled"]>;
|
|
@@ -1097,6 +1147,31 @@ export declare const TriggerExecutionSchema: z.ZodObject<{
|
|
|
1097
1147
|
completedAt: z.ZodNullable<z.ZodString>;
|
|
1098
1148
|
summary: z.ZodNullable<z.ZodString>;
|
|
1099
1149
|
error: z.ZodNullable<z.ZodString>;
|
|
1150
|
+
result: z.ZodNullable<z.ZodObject<{
|
|
1151
|
+
status: z.ZodEnum<["done", "failed"]>;
|
|
1152
|
+
headline: z.ZodOptional<z.ZodString>;
|
|
1153
|
+
summary: z.ZodOptional<z.ZodString>;
|
|
1154
|
+
outcome: z.ZodOptional<z.ZodString>;
|
|
1155
|
+
reason: z.ZodOptional<z.ZodString>;
|
|
1156
|
+
suggestion: z.ZodOptional<z.ZodString>;
|
|
1157
|
+
unstructured: z.ZodOptional<z.ZodBoolean>;
|
|
1158
|
+
}, "strip", z.ZodTypeAny, {
|
|
1159
|
+
status: "failed" | "done";
|
|
1160
|
+
reason?: string | undefined;
|
|
1161
|
+
summary?: string | undefined;
|
|
1162
|
+
outcome?: string | undefined;
|
|
1163
|
+
headline?: string | undefined;
|
|
1164
|
+
suggestion?: string | undefined;
|
|
1165
|
+
unstructured?: boolean | undefined;
|
|
1166
|
+
}, {
|
|
1167
|
+
status: "failed" | "done";
|
|
1168
|
+
reason?: string | undefined;
|
|
1169
|
+
summary?: string | undefined;
|
|
1170
|
+
outcome?: string | undefined;
|
|
1171
|
+
headline?: string | undefined;
|
|
1172
|
+
suggestion?: string | undefined;
|
|
1173
|
+
unstructured?: boolean | undefined;
|
|
1174
|
+
}>>;
|
|
1100
1175
|
}, z.ZodTypeAny, "passthrough">>;
|
|
1101
1176
|
export type TriggerExecution = z.infer<typeof TriggerExecutionSchema>;
|
|
1102
1177
|
|
package/dist/scheduledTasks.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";import{z as e}from"zod";import{SpawnSessionParamsSchema as n}from"./rpc.js";export const RetryPolicySchema=e.object({maxRetries:e.number().int().min(0).max(10).default(0),retryDelayMs:e.number().int().min(1e3).max(3e5).default(6e4)}).passthrough(),MissedRunPolicySchema=e.enum(["skip","run-once"]),ScheduledSpawnParamsSchema=n.pick({agentType:!0,cwd:!0,prompt:!0,model:!0,agent:!0,startupScripts:!0}).partial().required({prompt:!0}).extend({maxExecutionMs:e.number().int().positive().max(216e5).optional(),retryPolicy:RetryPolicySchema.optional(),missedRunPolicy:MissedRunPolicySchema.optional(),circuitBreakerThreshold:e.number().int().min(1).max(20).optional()}),TaskExecutionStatusSchema=e.enum(["pending","running","completed","failed","lost","skipped","cancelled"]),TaskExecutionTriggerSchema=e.enum(["scheduled","manual","token","chain"]),TaskTriggerTypeSchema=e.enum(["cron","token","continuous"]),TaskResultSchema=e.object({status:e.enum(["done","failed"]),headline:e.string().max(200).optional(),summary:e.string().max(4e3).optional(),outcome:e.string().max(8e3).optional(),reason:e.string().max(2e3).optional(),suggestion:e.string().max(2e3).optional(),unstructured:e.boolean().optional()}),TaskExecutionBarSchema=e.object({durationMs:e.number().int().nullable(),status:TaskExecutionStatusSchema}).passthrough(),TaskStatsSchema=e.object({successRate:e.number(),totalExecutions:e.number().int(),avgDurationMs:e.number().int().nullable(),maxDurationMs:e.number().int().nullable(),executions:e.array(TaskExecutionBarSchema)}).passthrough(),TaskCardStatsSchema=e.object({totalExecutions:e.number().int(),successRate:e.number(),avgDurationMs:e.number().int().nullable(),executions:e.array(TaskExecutionBarSchema)}).passthrough(),CRON_RE=/^[0-9*/, -]+ [0-9*/, -]+ [0-9*/, -]+ [0-9*/, -]+ [0-9*/, -]+$/;const r={name:e.string().min(1).max(100),triggerType:TaskTriggerTypeSchema,schedule:e.string().min(1).max(100).optional(),enabled:e.boolean().optional(),machineId:e.string().min(1).optional(),spawnParams:ScheduledSpawnParamsSchema.optional(),maxConcurrent:e.number().int().min(1).max(50).optional(),totalRuns:e.number().int().min(1).max(1e4).optional()};export const CreateScheduledTaskSchema=e.object({...r,triggerType:TaskTriggerTypeSchema.default("cron"),enabled:e.boolean().optional().default(!0),spawnParams:ScheduledSpawnParamsSchema,maxConcurrent:e.number().int().min(1).max(50).optional().default(1)}).strict().refine(t=>t.triggerType!=="cron"?!0:!!(t.schedule&&CRON_RE.test(t.schedule)),{message:"schedule is required for cron trigger type",path:["schedule"]}).refine(t=>t.triggerType!=="continuous"?!0:t.totalRuns!==void 0&&t.totalRuns>=1,{message:"totalRuns is required for continuous trigger type",path:["totalRuns"]}),UpdateScheduledTaskSchema=e.object({name:e.string().min(1).max(100).optional(),triggerType:TaskTriggerTypeSchema.optional(),schedule:e.string().min(1).max(100).optional(),enabled:e.boolean().optional(),machineId:e.string().min(1).optional().nullable(),spawnParams:ScheduledSpawnParamsSchema.optional(),maxConcurrent:e.number().int().min(1).max(50).optional(),totalRuns:e.number().int().min(1).max(1e4).optional()}).strict().refine(t=>t.triggerType!=="cron"?!0:t.schedule!==void 0?CRON_RE.test(t.schedule):!0,{message:"schedule is required when switching to cron trigger type",path:["schedule"]}).refine(t=>t.triggerType!=="continuous"?!0:t.totalRuns!==void 0&&t.totalRuns>=1,{message:"totalRuns is required when switching to continuous trigger type",path:["totalRuns"]}),ScheduledTaskSummarySchema=e.object({id:e.string(),name:e.string(),schedule:e.string().nullable(),triggerType:TaskTriggerTypeSchema,enabled:e.boolean(),machineId:e.string().nullable(),triggerToken:e.string().nullable(),maxConcurrent:e.number().int().optional(),totalRuns:e.number().int().nullable(),completedRuns:e.number().int().nullable(),nextRunAt:e.string().nullable(),lastRunAt:e.string().nullable(),lastExecution:e.object({status:TaskExecutionStatusSchema,summary:e.string().nullable(),resultData:TaskResultSchema.nullable()}).nullable(),createdAt:e.string(),updatedAt:e.string(),consecutiveFailures:e.number().int(),disabledReason:e.string().nullable(),stats:TaskCardStatsSchema.nullable()}).passthrough(),TaskExecutionSchema=e.object({id:e.string(),taskId:e.string(),sessionId:e.string().nullable(),status:TaskExecutionStatusSchema,trigger:TaskExecutionTriggerSchema,scheduledAt:e.string(),startedAt:e.string().nullable(),completedAt:e.string().nullable(),error:e.string().nullable(),retryCount:e.number(),reworkCount:e.number(),takeoverState:e.string().optional(),takeoverSessionId:e.string().nullable().optional(),summary:e.string().nullable(),resultData:TaskResultSchema.nullable(),createdAt:e.string()}).passthrough(),TriggerCallSchema=e.object({context:e.string().max(5e3).optional()}).strict(),TriggerExecutionSchema=e.object({executionId:e.string(),status:TaskExecutionStatusSchema,startedAt:e.string().nullable(),completedAt:e.string().nullable(),summary:e.string().nullable(),error:e.string().nullable()}).passthrough(),RegenerateTokenResponseSchema=e.object({triggerToken:e.string()}).passthrough();
|
|
1
|
+
"use strict";import{z as e}from"zod";import{SpawnSessionParamsSchema as n}from"./rpc.js";export const RetryPolicySchema=e.object({maxRetries:e.number().int().min(0).max(10).default(0),retryDelayMs:e.number().int().min(1e3).max(3e5).default(6e4)}).passthrough(),MissedRunPolicySchema=e.enum(["skip","run-once"]),ScheduledSpawnParamsSchema=n.pick({agentType:!0,cwd:!0,prompt:!0,model:!0,agent:!0,startupScripts:!0}).partial().required({prompt:!0}).extend({maxExecutionMs:e.number().int().positive().max(216e5).optional(),retryPolicy:RetryPolicySchema.optional(),missedRunPolicy:MissedRunPolicySchema.optional(),circuitBreakerThreshold:e.number().int().min(1).max(20).optional()}),TaskExecutionStatusSchema=e.enum(["pending","running","completed","failed","lost","skipped","cancelled"]),TaskExecutionTriggerSchema=e.enum(["scheduled","manual","token","chain"]),TaskTriggerTypeSchema=e.enum(["cron","token","continuous"]),TaskResultSchema=e.object({status:e.enum(["done","failed"]),headline:e.string().max(200).optional(),summary:e.string().max(4e3).optional(),outcome:e.string().max(8e3).optional(),reason:e.string().max(2e3).optional(),suggestion:e.string().max(2e3).optional(),unstructured:e.boolean().optional()}),TaskExecutionBarSchema=e.object({durationMs:e.number().int().nullable(),status:TaskExecutionStatusSchema}).passthrough(),TaskStatsSchema=e.object({successRate:e.number(),totalExecutions:e.number().int(),avgDurationMs:e.number().int().nullable(),maxDurationMs:e.number().int().nullable(),executions:e.array(TaskExecutionBarSchema)}).passthrough(),TaskCardStatsSchema=e.object({totalExecutions:e.number().int(),successRate:e.number(),avgDurationMs:e.number().int().nullable(),executions:e.array(TaskExecutionBarSchema)}).passthrough(),CRON_RE=/^[0-9*/, -]+ [0-9*/, -]+ [0-9*/, -]+ [0-9*/, -]+ [0-9*/, -]+$/;const r={name:e.string().min(1).max(100),triggerType:TaskTriggerTypeSchema,schedule:e.string().min(1).max(100).optional(),enabled:e.boolean().optional(),machineId:e.string().min(1).optional(),spawnParams:ScheduledSpawnParamsSchema.optional(),maxConcurrent:e.number().int().min(1).max(50).optional(),totalRuns:e.number().int().min(1).max(1e4).optional()};export const CreateScheduledTaskSchema=e.object({...r,triggerType:TaskTriggerTypeSchema.default("cron"),enabled:e.boolean().optional().default(!0),spawnParams:ScheduledSpawnParamsSchema,maxConcurrent:e.number().int().min(1).max(50).optional().default(1)}).strict().refine(t=>t.triggerType!=="cron"?!0:!!(t.schedule&&CRON_RE.test(t.schedule)),{message:"schedule is required for cron trigger type",path:["schedule"]}).refine(t=>t.triggerType!=="continuous"?!0:t.totalRuns!==void 0&&t.totalRuns>=1,{message:"totalRuns is required for continuous trigger type",path:["totalRuns"]}),UpdateScheduledTaskSchema=e.object({name:e.string().min(1).max(100).optional(),triggerType:TaskTriggerTypeSchema.optional(),schedule:e.string().min(1).max(100).optional(),enabled:e.boolean().optional(),machineId:e.string().min(1).optional().nullable(),spawnParams:ScheduledSpawnParamsSchema.optional(),maxConcurrent:e.number().int().min(1).max(50).optional(),totalRuns:e.number().int().min(1).max(1e4).optional()}).strict().refine(t=>t.triggerType!=="cron"?!0:t.schedule!==void 0?CRON_RE.test(t.schedule):!0,{message:"schedule is required when switching to cron trigger type",path:["schedule"]}).refine(t=>t.triggerType!=="continuous"?!0:t.totalRuns!==void 0&&t.totalRuns>=1,{message:"totalRuns is required when switching to continuous trigger type",path:["totalRuns"]}),ScheduledTaskSummarySchema=e.object({id:e.string(),name:e.string(),schedule:e.string().nullable(),triggerType:TaskTriggerTypeSchema,enabled:e.boolean(),machineId:e.string().nullable(),triggerToken:e.string().nullable(),maxConcurrent:e.number().int().optional(),totalRuns:e.number().int().nullable(),completedRuns:e.number().int().nullable(),nextRunAt:e.string().nullable(),lastRunAt:e.string().nullable(),lastExecution:e.object({status:TaskExecutionStatusSchema,summary:e.string().nullable(),resultData:TaskResultSchema.nullable()}).nullable(),createdAt:e.string(),updatedAt:e.string(),consecutiveFailures:e.number().int(),disabledReason:e.string().nullable(),stats:TaskCardStatsSchema.nullable()}).passthrough(),TaskExecutionSchema=e.object({id:e.string(),taskId:e.string(),sessionId:e.string().nullable(),status:TaskExecutionStatusSchema,trigger:TaskExecutionTriggerSchema,scheduledAt:e.string(),startedAt:e.string().nullable(),completedAt:e.string().nullable(),error:e.string().nullable(),retryCount:e.number(),reworkCount:e.number(),takeoverState:e.string().optional(),takeoverSessionId:e.string().nullable().optional(),summary:e.string().nullable(),resultData:TaskResultSchema.nullable(),createdAt:e.string()}).passthrough(),TriggerCallSchema=e.object({context:e.string().max(5e3).optional()}).strict(),TriggerExecutionSchema=e.object({executionId:e.string(),status:TaskExecutionStatusSchema,startedAt:e.string().nullable(),completedAt:e.string().nullable(),summary:e.string().nullable(),error:e.string().nullable(),result:TaskResultSchema.nullable()}).passthrough(),RegenerateTokenResponseSchema=e.object({triggerToken:e.string()}).passthrough();
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
export { SessionRoleSchema, SessionEnvelopeSchema, createEnvelope } from './envelope.js';
|
|
2
|
+
export type { SessionRole, SessionEnvelope, CreateEnvelopeOptions } from './envelope.js';
|
|
3
|
+
export { SessionFileOperationSchema, SessionFileEntrySchema, SessionFilesResponseSchema, } from './sessionFiles.js';
|
|
4
|
+
export type { SessionFileOperation, SessionFileEntry, SessionFilesResponse, } from './sessionFiles.js';
|
package/dist/session.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";export{SessionRoleSchema,SessionEnvelopeSchema,createEnvelope}from"./envelope.js";export{SessionFileOperationSchema,SessionFileEntrySchema,SessionFilesResponseSchema}from"./sessionFiles.js";
|
package/dist/sessionBtw.d.ts
CHANGED
|
@@ -12,7 +12,7 @@ export declare const SessionBtwRecordSchema: z.ZodObject<{
|
|
|
12
12
|
createdAt: z.ZodString;
|
|
13
13
|
updatedAt: z.ZodString;
|
|
14
14
|
}, "strict", z.ZodTypeAny, {
|
|
15
|
-
status: "failed" | "
|
|
15
|
+
status: "failed" | "succeeded" | "pending";
|
|
16
16
|
sessionId: string;
|
|
17
17
|
id: string;
|
|
18
18
|
createdAt: string;
|
|
@@ -22,7 +22,7 @@ export declare const SessionBtwRecordSchema: z.ZodObject<{
|
|
|
22
22
|
questionCiphertext: string;
|
|
23
23
|
outcomeCiphertext: string | null;
|
|
24
24
|
}, {
|
|
25
|
-
status: "failed" | "
|
|
25
|
+
status: "failed" | "succeeded" | "pending";
|
|
26
26
|
sessionId: string;
|
|
27
27
|
id: string;
|
|
28
28
|
createdAt: string;
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare const SessionFileOperationSchema: z.ZodEnum<["add", "update", "delete"]>;
|
|
3
|
+
export declare const SessionFileEntrySchema: z.ZodObject<{
|
|
4
|
+
path: z.ZodString;
|
|
5
|
+
name: z.ZodString;
|
|
6
|
+
operation: z.ZodNullable<z.ZodEnum<["add", "update", "delete"]>>;
|
|
7
|
+
count: z.ZodNumber;
|
|
8
|
+
exists: z.ZodBoolean;
|
|
9
|
+
}, "strict", z.ZodTypeAny, {
|
|
10
|
+
path: string;
|
|
11
|
+
name: string;
|
|
12
|
+
count: number;
|
|
13
|
+
operation: "add" | "update" | "delete" | null;
|
|
14
|
+
exists: boolean;
|
|
15
|
+
}, {
|
|
16
|
+
path: string;
|
|
17
|
+
name: string;
|
|
18
|
+
count: number;
|
|
19
|
+
operation: "add" | "update" | "delete" | null;
|
|
20
|
+
exists: boolean;
|
|
21
|
+
}>;
|
|
22
|
+
export declare const SessionFilesResponseSchema: z.ZodObject<{
|
|
23
|
+
ok: z.ZodLiteral<true>;
|
|
24
|
+
files: z.ZodArray<z.ZodObject<{
|
|
25
|
+
path: z.ZodString;
|
|
26
|
+
name: z.ZodString;
|
|
27
|
+
operation: z.ZodNullable<z.ZodEnum<["add", "update", "delete"]>>;
|
|
28
|
+
count: z.ZodNumber;
|
|
29
|
+
exists: z.ZodBoolean;
|
|
30
|
+
}, "strict", z.ZodTypeAny, {
|
|
31
|
+
path: string;
|
|
32
|
+
name: string;
|
|
33
|
+
count: number;
|
|
34
|
+
operation: "add" | "update" | "delete" | null;
|
|
35
|
+
exists: boolean;
|
|
36
|
+
}, {
|
|
37
|
+
path: string;
|
|
38
|
+
name: string;
|
|
39
|
+
count: number;
|
|
40
|
+
operation: "add" | "update" | "delete" | null;
|
|
41
|
+
exists: boolean;
|
|
42
|
+
}>, "many">;
|
|
43
|
+
total: z.ZodNumber;
|
|
44
|
+
truncated: z.ZodBoolean;
|
|
45
|
+
}, "strict", z.ZodTypeAny, {
|
|
46
|
+
ok: true;
|
|
47
|
+
files: {
|
|
48
|
+
path: string;
|
|
49
|
+
name: string;
|
|
50
|
+
count: number;
|
|
51
|
+
operation: "add" | "update" | "delete" | null;
|
|
52
|
+
exists: boolean;
|
|
53
|
+
}[];
|
|
54
|
+
total: number;
|
|
55
|
+
truncated: boolean;
|
|
56
|
+
}, {
|
|
57
|
+
ok: true;
|
|
58
|
+
files: {
|
|
59
|
+
path: string;
|
|
60
|
+
name: string;
|
|
61
|
+
count: number;
|
|
62
|
+
operation: "add" | "update" | "delete" | null;
|
|
63
|
+
exists: boolean;
|
|
64
|
+
}[];
|
|
65
|
+
total: number;
|
|
66
|
+
truncated: boolean;
|
|
67
|
+
}>;
|
|
68
|
+
export type SessionFileOperation = z.infer<typeof SessionFileOperationSchema>;
|
|
69
|
+
export type SessionFileEntry = z.infer<typeof SessionFileEntrySchema>;
|
|
70
|
+
export type SessionFilesResponse = z.infer<typeof SessionFilesResponseSchema>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";import{z as e}from"zod";export const SessionFileOperationSchema=e.enum(["add","update","delete"]),SessionFileEntrySchema=e.object({path:e.string().min(1),name:e.string().min(1),operation:SessionFileOperationSchema.nullable(),count:e.number().int().positive(),exists:e.boolean()}).strict(),SessionFilesResponseSchema=e.object({ok:e.literal(!0),files:e.array(SessionFileEntrySchema).max(500),total:e.number().int().nonnegative(),truncated:e.boolean()}).strict();
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
|
|
3
|
+
export declare const SessionSlashCommandSchema: z.ZodObject<{
|
|
4
|
+
name: z.ZodString;
|
|
5
|
+
description: z.ZodOptional<z.ZodString>;
|
|
6
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
7
|
+
name: z.ZodString;
|
|
8
|
+
description: z.ZodOptional<z.ZodString>;
|
|
9
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
10
|
+
name: z.ZodString;
|
|
11
|
+
description: z.ZodOptional<z.ZodString>;
|
|
12
|
+
}, z.ZodTypeAny, "passthrough">>;
|
|
13
|
+
export type SessionSlashCommand = z.infer<typeof SessionSlashCommandSchema>;
|
|
14
|
+
|
|
15
|
+
export declare function parseSessionSlashCommands(raw: unknown): SessionSlashCommand[];
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";import{z as n}from"zod";export const SessionSlashCommandSchema=n.object({name:n.string().min(1),description:n.string().optional()}).passthrough();export function parseSessionSlashCommands(o){if(!Array.isArray(o))return[];const r=[];for(const s of o){const t=SessionSlashCommandSchema.safeParse(typeof s=="string"?{name:s}:s);t.success&&r.push(t.data)}return r}
|
package/dist/spawnError.d.ts
CHANGED
|
@@ -7,7 +7,7 @@ export declare const SpawnErrorSchema: z.ZodObject<{
|
|
|
7
7
|
message: z.ZodString;
|
|
8
8
|
|
|
9
9
|
detail: z.ZodString;
|
|
10
|
-
agentType: z.ZodEnum<["claude", "
|
|
10
|
+
agentType: z.ZodEnum<["claude", "codex", "opencode", "pi", "copilot", "gemini", "hermes", "openclaw", "custom"]>;
|
|
11
11
|
platform: z.ZodEnum<["darwin", "linux", "win32"]>;
|
|
12
12
|
detectedVersion: z.ZodOptional<z.ZodString>;
|
|
13
13
|
minVersion: z.ZodOptional<z.ZodString>;
|
|
@@ -17,7 +17,7 @@ export declare const SpawnErrorSchema: z.ZodObject<{
|
|
|
17
17
|
message: z.ZodString;
|
|
18
18
|
|
|
19
19
|
detail: z.ZodString;
|
|
20
|
-
agentType: z.ZodEnum<["claude", "
|
|
20
|
+
agentType: z.ZodEnum<["claude", "codex", "opencode", "pi", "copilot", "gemini", "hermes", "openclaw", "custom"]>;
|
|
21
21
|
platform: z.ZodEnum<["darwin", "linux", "win32"]>;
|
|
22
22
|
detectedVersion: z.ZodOptional<z.ZodString>;
|
|
23
23
|
minVersion: z.ZodOptional<z.ZodString>;
|
|
@@ -27,7 +27,7 @@ export declare const SpawnErrorSchema: z.ZodObject<{
|
|
|
27
27
|
message: z.ZodString;
|
|
28
28
|
|
|
29
29
|
detail: z.ZodString;
|
|
30
|
-
agentType: z.ZodEnum<["claude", "
|
|
30
|
+
agentType: z.ZodEnum<["claude", "codex", "opencode", "pi", "copilot", "gemini", "hermes", "openclaw", "custom"]>;
|
|
31
31
|
platform: z.ZodEnum<["darwin", "linux", "win32"]>;
|
|
32
32
|
detectedVersion: z.ZodOptional<z.ZodString>;
|
|
33
33
|
minVersion: z.ZodOptional<z.ZodString>;
|