@seawork/server 2.0.2-rc.6 → 2.0.2
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/README.md +4 -0
- package/dist/server/server/agent/agent-manager.d.ts.map +1 -1
- package/dist/server/server/agent/agent-manager.js +1 -0
- package/dist/server/server/agent/agent-manager.js.map +1 -1
- package/dist/server/server/agent/agent-response-loop.d.ts.map +1 -1
- package/dist/server/server/agent/agent-response-loop.js.map +1 -1
- package/dist/server/server/agent/agent-storage.d.ts +48 -48
- package/dist/server/server/agent/gateway-auth-env.d.ts +4 -0
- package/dist/server/server/agent/gateway-auth-env.d.ts.map +1 -0
- package/dist/server/server/agent/gateway-auth-env.js +31 -0
- package/dist/server/server/agent/gateway-auth-env.js.map +1 -0
- package/dist/server/server/agent/mcp-server.d.ts.map +1 -1
- package/dist/server/server/agent/mcp-server.js.map +1 -1
- package/dist/server/server/agent/mcp-shared.d.ts +23 -23
- package/dist/server/server/agent/orchestrator.d.ts +1 -1
- package/dist/server/server/agent/orchestrator.d.ts.map +1 -1
- package/dist/server/server/agent/orchestrator.js +1 -1
- package/dist/server/server/agent/orchestrator.js.map +1 -1
- package/dist/server/server/agent/providers/claude/sidechain-tracker.d.ts.map +1 -1
- package/dist/server/server/agent/providers/claude/sidechain-tracker.js.map +1 -1
- package/dist/server/server/agent/providers/claude/task-notification-tool-call.d.ts +2 -2
- package/dist/server/server/agent/providers/codex-app-server-agent.d.ts.map +1 -1
- package/dist/server/server/agent/providers/codex-app-server-agent.js +61 -0
- package/dist/server/server/agent/providers/codex-app-server-agent.js.map +1 -1
- package/dist/server/server/agent/providers/deepseek-agent.d.ts.map +1 -1
- package/dist/server/server/agent/providers/deepseek-agent.js +11 -9
- package/dist/server/server/agent/providers/deepseek-agent.js.map +1 -1
- package/dist/server/server/agent/providers/tool-call-detail-primitives.d.ts +16 -16
- package/dist/server/server/chat/chat-rpc-schemas.d.ts +50 -50
- package/dist/server/server/chat/chat-types.d.ts +6 -6
- package/dist/server/server/exports.d.ts +1 -1
- package/dist/server/server/exports.d.ts.map +1 -1
- package/dist/server/server/exports.js +1 -1
- package/dist/server/server/exports.js.map +1 -1
- package/dist/server/server/index.js +5 -0
- package/dist/server/server/index.js.map +1 -1
- package/dist/server/server/library/library-types.d.ts +59 -59
- package/dist/server/server/loop/rpc-schemas.d.ts +887 -887
- package/dist/server/server/loop-service.d.ts +128 -128
- package/dist/server/server/persisted-config.d.ts +142 -142
- package/dist/server/server/sac/auth.d.ts +1 -0
- package/dist/server/server/sac/auth.d.ts.map +1 -1
- package/dist/server/server/sac/auth.js +1 -0
- package/dist/server/server/sac/auth.js.map +1 -1
- package/dist/server/server/schedule/rpc-schemas.d.ts +426 -426
- package/dist/server/server/schedule/types.d.ts +92 -92
- package/dist/server/server/session.js +1 -1
- package/dist/server/server/session.js.map +1 -1
- package/dist/server/server/speech/native-runtime-probe.js.map +1 -1
- package/dist/server/server/speech/providers/openai/proxy.d.ts +4 -0
- package/dist/server/server/speech/providers/openai/proxy.d.ts.map +1 -0
- package/dist/server/server/speech/providers/openai/proxy.js +34 -0
- package/dist/server/server/speech/providers/openai/proxy.js.map +1 -0
- package/dist/server/server/speech/providers/openai/stt.d.ts.map +1 -1
- package/dist/server/server/speech/providers/openai/stt.js +3 -0
- package/dist/server/server/speech/providers/openai/stt.js.map +1 -1
- package/dist/server/server/speech/providers/openai/tts.d.ts.map +1 -1
- package/dist/server/server/speech/providers/openai/tts.js +5 -1
- package/dist/server/server/speech/providers/openai/tts.js.map +1 -1
- package/dist/server/server/workspace-registry.d.ts +10 -10
- package/dist/server/shared/messages.d.ts +20306 -20306
- package/dist/server/shared/provider-runtime-settings.d.ts +2 -2
- package/dist/server/utils/worktree-metadata.d.ts +4 -4
- package/package.json +12 -11
|
@@ -25,11 +25,11 @@ export declare const ScheduleTargetSchema: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
25
25
|
type: z.ZodLiteral<"agent">;
|
|
26
26
|
agentId: z.ZodString;
|
|
27
27
|
}, "strip", z.ZodTypeAny, {
|
|
28
|
-
type: "agent";
|
|
29
28
|
agentId: string;
|
|
30
|
-
}, {
|
|
31
29
|
type: "agent";
|
|
30
|
+
}, {
|
|
32
31
|
agentId: string;
|
|
32
|
+
type: "agent";
|
|
33
33
|
}>, z.ZodObject<{
|
|
34
34
|
type: z.ZodLiteral<"new-agent">;
|
|
35
35
|
config: z.ZodObject<{
|
|
@@ -47,45 +47,45 @@ export declare const ScheduleTargetSchema: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
47
47
|
codex: z.ZodOptional<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
48
48
|
claude: z.ZodOptional<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
49
49
|
}, "strip", z.ZodTypeAny, {
|
|
50
|
-
codex?: Record<string, unknown> | undefined;
|
|
51
50
|
claude?: Record<string, unknown> | undefined;
|
|
52
|
-
}, {
|
|
53
51
|
codex?: Record<string, unknown> | undefined;
|
|
52
|
+
}, {
|
|
54
53
|
claude?: Record<string, unknown> | undefined;
|
|
54
|
+
codex?: Record<string, unknown> | undefined;
|
|
55
55
|
}>>;
|
|
56
56
|
systemPrompt: z.ZodOptional<z.ZodString>;
|
|
57
57
|
mcpServers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
58
58
|
}, "strip", z.ZodTypeAny, {
|
|
59
|
-
provider: string;
|
|
60
59
|
cwd: string;
|
|
60
|
+
provider: string;
|
|
61
61
|
title?: string | null | undefined;
|
|
62
62
|
model?: string | undefined;
|
|
63
|
-
thinkingOptionId?: string | undefined;
|
|
64
63
|
modeId?: string | undefined;
|
|
64
|
+
thinkingOptionId?: string | undefined;
|
|
65
65
|
approvalPolicy?: string | undefined;
|
|
66
66
|
sandboxMode?: string | undefined;
|
|
67
67
|
networkAccess?: boolean | undefined;
|
|
68
68
|
webSearch?: boolean | undefined;
|
|
69
69
|
extra?: {
|
|
70
|
-
codex?: Record<string, unknown> | undefined;
|
|
71
70
|
claude?: Record<string, unknown> | undefined;
|
|
71
|
+
codex?: Record<string, unknown> | undefined;
|
|
72
72
|
} | undefined;
|
|
73
73
|
systemPrompt?: string | undefined;
|
|
74
74
|
mcpServers?: Record<string, unknown> | undefined;
|
|
75
75
|
}, {
|
|
76
|
-
provider: string;
|
|
77
76
|
cwd: string;
|
|
77
|
+
provider: string;
|
|
78
78
|
title?: string | null | undefined;
|
|
79
79
|
model?: string | undefined;
|
|
80
|
-
thinkingOptionId?: string | undefined;
|
|
81
80
|
modeId?: string | undefined;
|
|
81
|
+
thinkingOptionId?: string | undefined;
|
|
82
82
|
approvalPolicy?: string | undefined;
|
|
83
83
|
sandboxMode?: string | undefined;
|
|
84
84
|
networkAccess?: boolean | undefined;
|
|
85
85
|
webSearch?: boolean | undefined;
|
|
86
86
|
extra?: {
|
|
87
|
-
codex?: Record<string, unknown> | undefined;
|
|
88
87
|
claude?: Record<string, unknown> | undefined;
|
|
88
|
+
codex?: Record<string, unknown> | undefined;
|
|
89
89
|
} | undefined;
|
|
90
90
|
systemPrompt?: string | undefined;
|
|
91
91
|
mcpServers?: Record<string, unknown> | undefined;
|
|
@@ -93,19 +93,19 @@ export declare const ScheduleTargetSchema: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
93
93
|
}, "strip", z.ZodTypeAny, {
|
|
94
94
|
type: "new-agent";
|
|
95
95
|
config: {
|
|
96
|
-
provider: string;
|
|
97
96
|
cwd: string;
|
|
97
|
+
provider: string;
|
|
98
98
|
title?: string | null | undefined;
|
|
99
99
|
model?: string | undefined;
|
|
100
|
-
thinkingOptionId?: string | undefined;
|
|
101
100
|
modeId?: string | undefined;
|
|
101
|
+
thinkingOptionId?: string | undefined;
|
|
102
102
|
approvalPolicy?: string | undefined;
|
|
103
103
|
sandboxMode?: string | undefined;
|
|
104
104
|
networkAccess?: boolean | undefined;
|
|
105
105
|
webSearch?: boolean | undefined;
|
|
106
106
|
extra?: {
|
|
107
|
-
codex?: Record<string, unknown> | undefined;
|
|
108
107
|
claude?: Record<string, unknown> | undefined;
|
|
108
|
+
codex?: Record<string, unknown> | undefined;
|
|
109
109
|
} | undefined;
|
|
110
110
|
systemPrompt?: string | undefined;
|
|
111
111
|
mcpServers?: Record<string, unknown> | undefined;
|
|
@@ -113,19 +113,19 @@ export declare const ScheduleTargetSchema: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
113
113
|
}, {
|
|
114
114
|
type: "new-agent";
|
|
115
115
|
config: {
|
|
116
|
-
provider: string;
|
|
117
116
|
cwd: string;
|
|
117
|
+
provider: string;
|
|
118
118
|
title?: string | null | undefined;
|
|
119
119
|
model?: string | undefined;
|
|
120
|
-
thinkingOptionId?: string | undefined;
|
|
121
120
|
modeId?: string | undefined;
|
|
121
|
+
thinkingOptionId?: string | undefined;
|
|
122
122
|
approvalPolicy?: string | undefined;
|
|
123
123
|
sandboxMode?: string | undefined;
|
|
124
124
|
networkAccess?: boolean | undefined;
|
|
125
125
|
webSearch?: boolean | undefined;
|
|
126
126
|
extra?: {
|
|
127
|
-
codex?: Record<string, unknown> | undefined;
|
|
128
127
|
claude?: Record<string, unknown> | undefined;
|
|
128
|
+
codex?: Record<string, unknown> | undefined;
|
|
129
129
|
} | undefined;
|
|
130
130
|
systemPrompt?: string | undefined;
|
|
131
131
|
mcpServers?: Record<string, unknown> | undefined;
|
|
@@ -144,23 +144,23 @@ export declare const ScheduleRunSchema: z.ZodObject<{
|
|
|
144
144
|
error: z.ZodNullable<z.ZodString>;
|
|
145
145
|
}, "strip", z.ZodTypeAny, {
|
|
146
146
|
error: string | null;
|
|
147
|
-
|
|
147
|
+
agentId: string | null;
|
|
148
148
|
status: "running" | "failed" | "succeeded";
|
|
149
149
|
id: string;
|
|
150
|
-
agentId: string | null;
|
|
151
|
-
scheduledFor: string;
|
|
152
150
|
startedAt: string;
|
|
151
|
+
scheduledFor: string;
|
|
153
152
|
endedAt: string | null;
|
|
153
|
+
output: string | null;
|
|
154
154
|
trigger?: "manual" | "scheduled" | undefined;
|
|
155
155
|
}, {
|
|
156
156
|
error: string | null;
|
|
157
|
-
|
|
157
|
+
agentId: string | null;
|
|
158
158
|
status: "running" | "failed" | "succeeded";
|
|
159
159
|
id: string;
|
|
160
|
-
agentId: string | null;
|
|
161
|
-
scheduledFor: string;
|
|
162
160
|
startedAt: string;
|
|
161
|
+
scheduledFor: string;
|
|
163
162
|
endedAt: string | null;
|
|
163
|
+
output: string | null;
|
|
164
164
|
trigger?: "manual" | "scheduled" | undefined;
|
|
165
165
|
}>;
|
|
166
166
|
export type ScheduleRun = z.infer<typeof ScheduleRunSchema>;
|
|
@@ -191,11 +191,11 @@ export declare const StoredScheduleSchema: z.ZodObject<{
|
|
|
191
191
|
type: z.ZodLiteral<"agent">;
|
|
192
192
|
agentId: z.ZodString;
|
|
193
193
|
}, "strip", z.ZodTypeAny, {
|
|
194
|
-
type: "agent";
|
|
195
194
|
agentId: string;
|
|
196
|
-
}, {
|
|
197
195
|
type: "agent";
|
|
196
|
+
}, {
|
|
198
197
|
agentId: string;
|
|
198
|
+
type: "agent";
|
|
199
199
|
}>, z.ZodObject<{
|
|
200
200
|
type: z.ZodLiteral<"new-agent">;
|
|
201
201
|
config: z.ZodObject<{
|
|
@@ -213,45 +213,45 @@ export declare const StoredScheduleSchema: z.ZodObject<{
|
|
|
213
213
|
codex: z.ZodOptional<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
214
214
|
claude: z.ZodOptional<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
215
215
|
}, "strip", z.ZodTypeAny, {
|
|
216
|
-
codex?: Record<string, unknown> | undefined;
|
|
217
216
|
claude?: Record<string, unknown> | undefined;
|
|
218
|
-
}, {
|
|
219
217
|
codex?: Record<string, unknown> | undefined;
|
|
218
|
+
}, {
|
|
220
219
|
claude?: Record<string, unknown> | undefined;
|
|
220
|
+
codex?: Record<string, unknown> | undefined;
|
|
221
221
|
}>>;
|
|
222
222
|
systemPrompt: z.ZodOptional<z.ZodString>;
|
|
223
223
|
mcpServers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
224
224
|
}, "strip", z.ZodTypeAny, {
|
|
225
|
-
provider: string;
|
|
226
225
|
cwd: string;
|
|
226
|
+
provider: string;
|
|
227
227
|
title?: string | null | undefined;
|
|
228
228
|
model?: string | undefined;
|
|
229
|
-
thinkingOptionId?: string | undefined;
|
|
230
229
|
modeId?: string | undefined;
|
|
230
|
+
thinkingOptionId?: string | undefined;
|
|
231
231
|
approvalPolicy?: string | undefined;
|
|
232
232
|
sandboxMode?: string | undefined;
|
|
233
233
|
networkAccess?: boolean | undefined;
|
|
234
234
|
webSearch?: boolean | undefined;
|
|
235
235
|
extra?: {
|
|
236
|
-
codex?: Record<string, unknown> | undefined;
|
|
237
236
|
claude?: Record<string, unknown> | undefined;
|
|
237
|
+
codex?: Record<string, unknown> | undefined;
|
|
238
238
|
} | undefined;
|
|
239
239
|
systemPrompt?: string | undefined;
|
|
240
240
|
mcpServers?: Record<string, unknown> | undefined;
|
|
241
241
|
}, {
|
|
242
|
-
provider: string;
|
|
243
242
|
cwd: string;
|
|
243
|
+
provider: string;
|
|
244
244
|
title?: string | null | undefined;
|
|
245
245
|
model?: string | undefined;
|
|
246
|
-
thinkingOptionId?: string | undefined;
|
|
247
246
|
modeId?: string | undefined;
|
|
247
|
+
thinkingOptionId?: string | undefined;
|
|
248
248
|
approvalPolicy?: string | undefined;
|
|
249
249
|
sandboxMode?: string | undefined;
|
|
250
250
|
networkAccess?: boolean | undefined;
|
|
251
251
|
webSearch?: boolean | undefined;
|
|
252
252
|
extra?: {
|
|
253
|
-
codex?: Record<string, unknown> | undefined;
|
|
254
253
|
claude?: Record<string, unknown> | undefined;
|
|
254
|
+
codex?: Record<string, unknown> | undefined;
|
|
255
255
|
} | undefined;
|
|
256
256
|
systemPrompt?: string | undefined;
|
|
257
257
|
mcpServers?: Record<string, unknown> | undefined;
|
|
@@ -259,19 +259,19 @@ export declare const StoredScheduleSchema: z.ZodObject<{
|
|
|
259
259
|
}, "strip", z.ZodTypeAny, {
|
|
260
260
|
type: "new-agent";
|
|
261
261
|
config: {
|
|
262
|
-
provider: string;
|
|
263
262
|
cwd: string;
|
|
263
|
+
provider: string;
|
|
264
264
|
title?: string | null | undefined;
|
|
265
265
|
model?: string | undefined;
|
|
266
|
-
thinkingOptionId?: string | undefined;
|
|
267
266
|
modeId?: string | undefined;
|
|
267
|
+
thinkingOptionId?: string | undefined;
|
|
268
268
|
approvalPolicy?: string | undefined;
|
|
269
269
|
sandboxMode?: string | undefined;
|
|
270
270
|
networkAccess?: boolean | undefined;
|
|
271
271
|
webSearch?: boolean | undefined;
|
|
272
272
|
extra?: {
|
|
273
|
-
codex?: Record<string, unknown> | undefined;
|
|
274
273
|
claude?: Record<string, unknown> | undefined;
|
|
274
|
+
codex?: Record<string, unknown> | undefined;
|
|
275
275
|
} | undefined;
|
|
276
276
|
systemPrompt?: string | undefined;
|
|
277
277
|
mcpServers?: Record<string, unknown> | undefined;
|
|
@@ -279,19 +279,19 @@ export declare const StoredScheduleSchema: z.ZodObject<{
|
|
|
279
279
|
}, {
|
|
280
280
|
type: "new-agent";
|
|
281
281
|
config: {
|
|
282
|
-
provider: string;
|
|
283
282
|
cwd: string;
|
|
283
|
+
provider: string;
|
|
284
284
|
title?: string | null | undefined;
|
|
285
285
|
model?: string | undefined;
|
|
286
|
-
thinkingOptionId?: string | undefined;
|
|
287
286
|
modeId?: string | undefined;
|
|
287
|
+
thinkingOptionId?: string | undefined;
|
|
288
288
|
approvalPolicy?: string | undefined;
|
|
289
289
|
sandboxMode?: string | undefined;
|
|
290
290
|
networkAccess?: boolean | undefined;
|
|
291
291
|
webSearch?: boolean | undefined;
|
|
292
292
|
extra?: {
|
|
293
|
-
codex?: Record<string, unknown> | undefined;
|
|
294
293
|
claude?: Record<string, unknown> | undefined;
|
|
294
|
+
codex?: Record<string, unknown> | undefined;
|
|
295
295
|
} | undefined;
|
|
296
296
|
systemPrompt?: string | undefined;
|
|
297
297
|
mcpServers?: Record<string, unknown> | undefined;
|
|
@@ -317,28 +317,28 @@ export declare const StoredScheduleSchema: z.ZodObject<{
|
|
|
317
317
|
error: z.ZodNullable<z.ZodString>;
|
|
318
318
|
}, "strip", z.ZodTypeAny, {
|
|
319
319
|
error: string | null;
|
|
320
|
-
|
|
320
|
+
agentId: string | null;
|
|
321
321
|
status: "running" | "failed" | "succeeded";
|
|
322
322
|
id: string;
|
|
323
|
-
agentId: string | null;
|
|
324
|
-
scheduledFor: string;
|
|
325
323
|
startedAt: string;
|
|
324
|
+
scheduledFor: string;
|
|
326
325
|
endedAt: string | null;
|
|
326
|
+
output: string | null;
|
|
327
327
|
trigger?: "manual" | "scheduled" | undefined;
|
|
328
328
|
}, {
|
|
329
329
|
error: string | null;
|
|
330
|
-
|
|
330
|
+
agentId: string | null;
|
|
331
331
|
status: "running" | "failed" | "succeeded";
|
|
332
332
|
id: string;
|
|
333
|
-
agentId: string | null;
|
|
334
|
-
scheduledFor: string;
|
|
335
333
|
startedAt: string;
|
|
334
|
+
scheduledFor: string;
|
|
336
335
|
endedAt: string | null;
|
|
336
|
+
output: string | null;
|
|
337
337
|
trigger?: "manual" | "scheduled" | undefined;
|
|
338
338
|
}>, "many">;
|
|
339
339
|
}, "strip", z.ZodTypeAny, {
|
|
340
340
|
name: string | null;
|
|
341
|
-
status: "
|
|
341
|
+
status: "completed" | "active" | "paused";
|
|
342
342
|
id: string;
|
|
343
343
|
createdAt: string;
|
|
344
344
|
updatedAt: string;
|
|
@@ -351,24 +351,24 @@ export declare const StoredScheduleSchema: z.ZodObject<{
|
|
|
351
351
|
expression: string;
|
|
352
352
|
};
|
|
353
353
|
target: {
|
|
354
|
-
type: "agent";
|
|
355
354
|
agentId: string;
|
|
355
|
+
type: "agent";
|
|
356
356
|
} | {
|
|
357
357
|
type: "new-agent";
|
|
358
358
|
config: {
|
|
359
|
-
provider: string;
|
|
360
359
|
cwd: string;
|
|
360
|
+
provider: string;
|
|
361
361
|
title?: string | null | undefined;
|
|
362
362
|
model?: string | undefined;
|
|
363
|
-
thinkingOptionId?: string | undefined;
|
|
364
363
|
modeId?: string | undefined;
|
|
364
|
+
thinkingOptionId?: string | undefined;
|
|
365
365
|
approvalPolicy?: string | undefined;
|
|
366
366
|
sandboxMode?: string | undefined;
|
|
367
367
|
networkAccess?: boolean | undefined;
|
|
368
368
|
webSearch?: boolean | undefined;
|
|
369
369
|
extra?: {
|
|
370
|
-
codex?: Record<string, unknown> | undefined;
|
|
371
370
|
claude?: Record<string, unknown> | undefined;
|
|
371
|
+
codex?: Record<string, unknown> | undefined;
|
|
372
372
|
} | undefined;
|
|
373
373
|
systemPrompt?: string | undefined;
|
|
374
374
|
mcpServers?: Record<string, unknown> | undefined;
|
|
@@ -381,18 +381,18 @@ export declare const StoredScheduleSchema: z.ZodObject<{
|
|
|
381
381
|
maxRuns: number | null;
|
|
382
382
|
runs: {
|
|
383
383
|
error: string | null;
|
|
384
|
-
|
|
384
|
+
agentId: string | null;
|
|
385
385
|
status: "running" | "failed" | "succeeded";
|
|
386
386
|
id: string;
|
|
387
|
-
agentId: string | null;
|
|
388
|
-
scheduledFor: string;
|
|
389
387
|
startedAt: string;
|
|
388
|
+
scheduledFor: string;
|
|
390
389
|
endedAt: string | null;
|
|
390
|
+
output: string | null;
|
|
391
391
|
trigger?: "manual" | "scheduled" | undefined;
|
|
392
392
|
}[];
|
|
393
393
|
}, {
|
|
394
394
|
name: string | null;
|
|
395
|
-
status: "
|
|
395
|
+
status: "completed" | "active" | "paused";
|
|
396
396
|
id: string;
|
|
397
397
|
createdAt: string;
|
|
398
398
|
updatedAt: string;
|
|
@@ -405,24 +405,24 @@ export declare const StoredScheduleSchema: z.ZodObject<{
|
|
|
405
405
|
expression: string;
|
|
406
406
|
};
|
|
407
407
|
target: {
|
|
408
|
-
type: "agent";
|
|
409
408
|
agentId: string;
|
|
409
|
+
type: "agent";
|
|
410
410
|
} | {
|
|
411
411
|
type: "new-agent";
|
|
412
412
|
config: {
|
|
413
|
-
provider: string;
|
|
414
413
|
cwd: string;
|
|
414
|
+
provider: string;
|
|
415
415
|
title?: string | null | undefined;
|
|
416
416
|
model?: string | undefined;
|
|
417
|
-
thinkingOptionId?: string | undefined;
|
|
418
417
|
modeId?: string | undefined;
|
|
418
|
+
thinkingOptionId?: string | undefined;
|
|
419
419
|
approvalPolicy?: string | undefined;
|
|
420
420
|
sandboxMode?: string | undefined;
|
|
421
421
|
networkAccess?: boolean | undefined;
|
|
422
422
|
webSearch?: boolean | undefined;
|
|
423
423
|
extra?: {
|
|
424
|
-
codex?: Record<string, unknown> | undefined;
|
|
425
424
|
claude?: Record<string, unknown> | undefined;
|
|
425
|
+
codex?: Record<string, unknown> | undefined;
|
|
426
426
|
} | undefined;
|
|
427
427
|
systemPrompt?: string | undefined;
|
|
428
428
|
mcpServers?: Record<string, unknown> | undefined;
|
|
@@ -435,13 +435,13 @@ export declare const StoredScheduleSchema: z.ZodObject<{
|
|
|
435
435
|
maxRuns: number | null;
|
|
436
436
|
runs: {
|
|
437
437
|
error: string | null;
|
|
438
|
-
|
|
438
|
+
agentId: string | null;
|
|
439
439
|
status: "running" | "failed" | "succeeded";
|
|
440
440
|
id: string;
|
|
441
|
-
agentId: string | null;
|
|
442
|
-
scheduledFor: string;
|
|
443
441
|
startedAt: string;
|
|
442
|
+
scheduledFor: string;
|
|
444
443
|
endedAt: string | null;
|
|
444
|
+
output: string | null;
|
|
445
445
|
trigger?: "manual" | "scheduled" | undefined;
|
|
446
446
|
}[];
|
|
447
447
|
}>;
|
|
@@ -473,11 +473,11 @@ export declare const ScheduleSummarySchema: z.ZodObject<Omit<{
|
|
|
473
473
|
type: z.ZodLiteral<"agent">;
|
|
474
474
|
agentId: z.ZodString;
|
|
475
475
|
}, "strip", z.ZodTypeAny, {
|
|
476
|
-
type: "agent";
|
|
477
476
|
agentId: string;
|
|
478
|
-
}, {
|
|
479
477
|
type: "agent";
|
|
478
|
+
}, {
|
|
480
479
|
agentId: string;
|
|
480
|
+
type: "agent";
|
|
481
481
|
}>, z.ZodObject<{
|
|
482
482
|
type: z.ZodLiteral<"new-agent">;
|
|
483
483
|
config: z.ZodObject<{
|
|
@@ -495,45 +495,45 @@ export declare const ScheduleSummarySchema: z.ZodObject<Omit<{
|
|
|
495
495
|
codex: z.ZodOptional<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
496
496
|
claude: z.ZodOptional<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
497
497
|
}, "strip", z.ZodTypeAny, {
|
|
498
|
-
codex?: Record<string, unknown> | undefined;
|
|
499
498
|
claude?: Record<string, unknown> | undefined;
|
|
500
|
-
}, {
|
|
501
499
|
codex?: Record<string, unknown> | undefined;
|
|
500
|
+
}, {
|
|
502
501
|
claude?: Record<string, unknown> | undefined;
|
|
502
|
+
codex?: Record<string, unknown> | undefined;
|
|
503
503
|
}>>;
|
|
504
504
|
systemPrompt: z.ZodOptional<z.ZodString>;
|
|
505
505
|
mcpServers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
506
506
|
}, "strip", z.ZodTypeAny, {
|
|
507
|
-
provider: string;
|
|
508
507
|
cwd: string;
|
|
508
|
+
provider: string;
|
|
509
509
|
title?: string | null | undefined;
|
|
510
510
|
model?: string | undefined;
|
|
511
|
-
thinkingOptionId?: string | undefined;
|
|
512
511
|
modeId?: string | undefined;
|
|
512
|
+
thinkingOptionId?: string | undefined;
|
|
513
513
|
approvalPolicy?: string | undefined;
|
|
514
514
|
sandboxMode?: string | undefined;
|
|
515
515
|
networkAccess?: boolean | undefined;
|
|
516
516
|
webSearch?: boolean | undefined;
|
|
517
517
|
extra?: {
|
|
518
|
-
codex?: Record<string, unknown> | undefined;
|
|
519
518
|
claude?: Record<string, unknown> | undefined;
|
|
519
|
+
codex?: Record<string, unknown> | undefined;
|
|
520
520
|
} | undefined;
|
|
521
521
|
systemPrompt?: string | undefined;
|
|
522
522
|
mcpServers?: Record<string, unknown> | undefined;
|
|
523
523
|
}, {
|
|
524
|
-
provider: string;
|
|
525
524
|
cwd: string;
|
|
525
|
+
provider: string;
|
|
526
526
|
title?: string | null | undefined;
|
|
527
527
|
model?: string | undefined;
|
|
528
|
-
thinkingOptionId?: string | undefined;
|
|
529
528
|
modeId?: string | undefined;
|
|
529
|
+
thinkingOptionId?: string | undefined;
|
|
530
530
|
approvalPolicy?: string | undefined;
|
|
531
531
|
sandboxMode?: string | undefined;
|
|
532
532
|
networkAccess?: boolean | undefined;
|
|
533
533
|
webSearch?: boolean | undefined;
|
|
534
534
|
extra?: {
|
|
535
|
-
codex?: Record<string, unknown> | undefined;
|
|
536
535
|
claude?: Record<string, unknown> | undefined;
|
|
536
|
+
codex?: Record<string, unknown> | undefined;
|
|
537
537
|
} | undefined;
|
|
538
538
|
systemPrompt?: string | undefined;
|
|
539
539
|
mcpServers?: Record<string, unknown> | undefined;
|
|
@@ -541,19 +541,19 @@ export declare const ScheduleSummarySchema: z.ZodObject<Omit<{
|
|
|
541
541
|
}, "strip", z.ZodTypeAny, {
|
|
542
542
|
type: "new-agent";
|
|
543
543
|
config: {
|
|
544
|
-
provider: string;
|
|
545
544
|
cwd: string;
|
|
545
|
+
provider: string;
|
|
546
546
|
title?: string | null | undefined;
|
|
547
547
|
model?: string | undefined;
|
|
548
|
-
thinkingOptionId?: string | undefined;
|
|
549
548
|
modeId?: string | undefined;
|
|
549
|
+
thinkingOptionId?: string | undefined;
|
|
550
550
|
approvalPolicy?: string | undefined;
|
|
551
551
|
sandboxMode?: string | undefined;
|
|
552
552
|
networkAccess?: boolean | undefined;
|
|
553
553
|
webSearch?: boolean | undefined;
|
|
554
554
|
extra?: {
|
|
555
|
-
codex?: Record<string, unknown> | undefined;
|
|
556
555
|
claude?: Record<string, unknown> | undefined;
|
|
556
|
+
codex?: Record<string, unknown> | undefined;
|
|
557
557
|
} | undefined;
|
|
558
558
|
systemPrompt?: string | undefined;
|
|
559
559
|
mcpServers?: Record<string, unknown> | undefined;
|
|
@@ -561,19 +561,19 @@ export declare const ScheduleSummarySchema: z.ZodObject<Omit<{
|
|
|
561
561
|
}, {
|
|
562
562
|
type: "new-agent";
|
|
563
563
|
config: {
|
|
564
|
-
provider: string;
|
|
565
564
|
cwd: string;
|
|
565
|
+
provider: string;
|
|
566
566
|
title?: string | null | undefined;
|
|
567
567
|
model?: string | undefined;
|
|
568
|
-
thinkingOptionId?: string | undefined;
|
|
569
568
|
modeId?: string | undefined;
|
|
569
|
+
thinkingOptionId?: string | undefined;
|
|
570
570
|
approvalPolicy?: string | undefined;
|
|
571
571
|
sandboxMode?: string | undefined;
|
|
572
572
|
networkAccess?: boolean | undefined;
|
|
573
573
|
webSearch?: boolean | undefined;
|
|
574
574
|
extra?: {
|
|
575
|
-
codex?: Record<string, unknown> | undefined;
|
|
576
575
|
claude?: Record<string, unknown> | undefined;
|
|
576
|
+
codex?: Record<string, unknown> | undefined;
|
|
577
577
|
} | undefined;
|
|
578
578
|
systemPrompt?: string | undefined;
|
|
579
579
|
mcpServers?: Record<string, unknown> | undefined;
|
|
@@ -599,28 +599,28 @@ export declare const ScheduleSummarySchema: z.ZodObject<Omit<{
|
|
|
599
599
|
error: z.ZodNullable<z.ZodString>;
|
|
600
600
|
}, "strip", z.ZodTypeAny, {
|
|
601
601
|
error: string | null;
|
|
602
|
-
|
|
602
|
+
agentId: string | null;
|
|
603
603
|
status: "running" | "failed" | "succeeded";
|
|
604
604
|
id: string;
|
|
605
|
-
agentId: string | null;
|
|
606
|
-
scheduledFor: string;
|
|
607
605
|
startedAt: string;
|
|
606
|
+
scheduledFor: string;
|
|
608
607
|
endedAt: string | null;
|
|
608
|
+
output: string | null;
|
|
609
609
|
trigger?: "manual" | "scheduled" | undefined;
|
|
610
610
|
}, {
|
|
611
611
|
error: string | null;
|
|
612
|
-
|
|
612
|
+
agentId: string | null;
|
|
613
613
|
status: "running" | "failed" | "succeeded";
|
|
614
614
|
id: string;
|
|
615
|
-
agentId: string | null;
|
|
616
|
-
scheduledFor: string;
|
|
617
615
|
startedAt: string;
|
|
616
|
+
scheduledFor: string;
|
|
618
617
|
endedAt: string | null;
|
|
618
|
+
output: string | null;
|
|
619
619
|
trigger?: "manual" | "scheduled" | undefined;
|
|
620
620
|
}>, "many">;
|
|
621
621
|
}, "runs">, "strip", z.ZodTypeAny, {
|
|
622
622
|
name: string | null;
|
|
623
|
-
status: "
|
|
623
|
+
status: "completed" | "active" | "paused";
|
|
624
624
|
id: string;
|
|
625
625
|
createdAt: string;
|
|
626
626
|
updatedAt: string;
|
|
@@ -633,24 +633,24 @@ export declare const ScheduleSummarySchema: z.ZodObject<Omit<{
|
|
|
633
633
|
expression: string;
|
|
634
634
|
};
|
|
635
635
|
target: {
|
|
636
|
-
type: "agent";
|
|
637
636
|
agentId: string;
|
|
637
|
+
type: "agent";
|
|
638
638
|
} | {
|
|
639
639
|
type: "new-agent";
|
|
640
640
|
config: {
|
|
641
|
-
provider: string;
|
|
642
641
|
cwd: string;
|
|
642
|
+
provider: string;
|
|
643
643
|
title?: string | null | undefined;
|
|
644
644
|
model?: string | undefined;
|
|
645
|
-
thinkingOptionId?: string | undefined;
|
|
646
645
|
modeId?: string | undefined;
|
|
646
|
+
thinkingOptionId?: string | undefined;
|
|
647
647
|
approvalPolicy?: string | undefined;
|
|
648
648
|
sandboxMode?: string | undefined;
|
|
649
649
|
networkAccess?: boolean | undefined;
|
|
650
650
|
webSearch?: boolean | undefined;
|
|
651
651
|
extra?: {
|
|
652
|
-
codex?: Record<string, unknown> | undefined;
|
|
653
652
|
claude?: Record<string, unknown> | undefined;
|
|
653
|
+
codex?: Record<string, unknown> | undefined;
|
|
654
654
|
} | undefined;
|
|
655
655
|
systemPrompt?: string | undefined;
|
|
656
656
|
mcpServers?: Record<string, unknown> | undefined;
|
|
@@ -663,7 +663,7 @@ export declare const ScheduleSummarySchema: z.ZodObject<Omit<{
|
|
|
663
663
|
maxRuns: number | null;
|
|
664
664
|
}, {
|
|
665
665
|
name: string | null;
|
|
666
|
-
status: "
|
|
666
|
+
status: "completed" | "active" | "paused";
|
|
667
667
|
id: string;
|
|
668
668
|
createdAt: string;
|
|
669
669
|
updatedAt: string;
|
|
@@ -676,24 +676,24 @@ export declare const ScheduleSummarySchema: z.ZodObject<Omit<{
|
|
|
676
676
|
expression: string;
|
|
677
677
|
};
|
|
678
678
|
target: {
|
|
679
|
-
type: "agent";
|
|
680
679
|
agentId: string;
|
|
680
|
+
type: "agent";
|
|
681
681
|
} | {
|
|
682
682
|
type: "new-agent";
|
|
683
683
|
config: {
|
|
684
|
-
provider: string;
|
|
685
684
|
cwd: string;
|
|
685
|
+
provider: string;
|
|
686
686
|
title?: string | null | undefined;
|
|
687
687
|
model?: string | undefined;
|
|
688
|
-
thinkingOptionId?: string | undefined;
|
|
689
688
|
modeId?: string | undefined;
|
|
689
|
+
thinkingOptionId?: string | undefined;
|
|
690
690
|
approvalPolicy?: string | undefined;
|
|
691
691
|
sandboxMode?: string | undefined;
|
|
692
692
|
networkAccess?: boolean | undefined;
|
|
693
693
|
webSearch?: boolean | undefined;
|
|
694
694
|
extra?: {
|
|
695
|
-
codex?: Record<string, unknown> | undefined;
|
|
696
695
|
claude?: Record<string, unknown> | undefined;
|
|
696
|
+
codex?: Record<string, unknown> | undefined;
|
|
697
697
|
} | undefined;
|
|
698
698
|
systemPrompt?: string | undefined;
|
|
699
699
|
mcpServers?: Record<string, unknown> | undefined;
|
|
@@ -2265,7 +2265,7 @@ export class Session {
|
|
|
2265
2265
|
if (!modeReadiness.enabled) {
|
|
2266
2266
|
return this.toVoiceFeatureUnavailableContext(modeReadiness);
|
|
2267
2267
|
}
|
|
2268
|
-
if (!readiness.voiceFeature.available) {
|
|
2268
|
+
if (mode === "voice_mode" && !readiness.voiceFeature.available) {
|
|
2269
2269
|
return this.toVoiceFeatureUnavailableContext(readiness.voiceFeature);
|
|
2270
2270
|
}
|
|
2271
2271
|
if (!modeReadiness.available) {
|