@dexto/tools-scheduler 1.6.27 → 1.7.1
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/schemas.cjs +2 -2
- package/dist/schemas.d.cts +35 -164
- package/dist/schemas.d.ts +35 -164
- package/dist/schemas.d.ts.map +1 -1
- package/dist/schemas.js +2 -2
- package/package.json +4 -4
package/dist/schemas.cjs
CHANGED
|
@@ -55,7 +55,7 @@ const CreateScheduleInputSchema = import_zod.z.object({
|
|
|
55
55
|
),
|
|
56
56
|
timezone: import_zod.z.string().optional().describe("Optional timezone (defaults to config timezone)"),
|
|
57
57
|
enabled: import_zod.z.boolean().default(true).describe("Whether schedule is enabled"),
|
|
58
|
-
metadata: import_zod.z.record(import_zod.z.unknown()).optional().describe("Optional metadata for the task"),
|
|
58
|
+
metadata: import_zod.z.record(import_zod.z.string(), import_zod.z.unknown()).optional().describe("Optional metadata for the task"),
|
|
59
59
|
workspacePath: import_zod.z.string().optional().nullable().describe("Optional workspace path for scheduled runs"),
|
|
60
60
|
sessionMode: ScheduleSessionModeSchema.default("ephemeral").describe(
|
|
61
61
|
`Session context mode:
|
|
@@ -85,7 +85,7 @@ const UpdateScheduleFieldsSchema = import_zod.z.object({
|
|
|
85
85
|
instruction: import_zod.z.string().min(1).optional().describe("Updated instruction - what should happen when this schedule triggers"),
|
|
86
86
|
timezone: import_zod.z.string().optional().describe("Updated timezone"),
|
|
87
87
|
enabled: import_zod.z.boolean().optional().describe("Updated enabled state"),
|
|
88
|
-
metadata: import_zod.z.record(import_zod.z.unknown()).optional().describe("Updated metadata"),
|
|
88
|
+
metadata: import_zod.z.record(import_zod.z.string(), import_zod.z.unknown()).optional().describe("Updated metadata"),
|
|
89
89
|
workspacePath: import_zod.z.string().optional().nullable().describe("Updated workspace path for scheduled runs"),
|
|
90
90
|
sessionMode: ScheduleSessionModeSchema.optional().describe(
|
|
91
91
|
"Updated session mode (ephemeral, dedicated, inherit, fixed)"
|
package/dist/schemas.d.cts
CHANGED
|
@@ -7,7 +7,12 @@ import { z } from 'zod';
|
|
|
7
7
|
/**
|
|
8
8
|
* Session mode schema - determines how conversation context is managed
|
|
9
9
|
*/
|
|
10
|
-
declare const ScheduleSessionModeSchema: z.ZodEnum<
|
|
10
|
+
declare const ScheduleSessionModeSchema: z.ZodEnum<{
|
|
11
|
+
ephemeral: "ephemeral";
|
|
12
|
+
dedicated: "dedicated";
|
|
13
|
+
inherit: "inherit";
|
|
14
|
+
fixed: "fixed";
|
|
15
|
+
}>;
|
|
11
16
|
type ScheduleSessionMode = z.output<typeof ScheduleSessionModeSchema>;
|
|
12
17
|
/**
|
|
13
18
|
* Scheduler tool provider configuration schema
|
|
@@ -18,19 +23,7 @@ declare const SchedulerToolsConfigSchema: z.ZodObject<{
|
|
|
18
23
|
maxSchedules: z.ZodDefault<z.ZodNumber>;
|
|
19
24
|
executionTimeout: z.ZodDefault<z.ZodNumber>;
|
|
20
25
|
maxExecutionHistory: z.ZodDefault<z.ZodNumber>;
|
|
21
|
-
},
|
|
22
|
-
type: "scheduler-tools";
|
|
23
|
-
timezone: string;
|
|
24
|
-
maxSchedules: number;
|
|
25
|
-
executionTimeout: number;
|
|
26
|
-
maxExecutionHistory: number;
|
|
27
|
-
}, {
|
|
28
|
-
type: "scheduler-tools";
|
|
29
|
-
timezone?: string | undefined;
|
|
30
|
-
maxSchedules?: number | undefined;
|
|
31
|
-
executionTimeout?: number | undefined;
|
|
32
|
-
maxExecutionHistory?: number | undefined;
|
|
33
|
-
}>;
|
|
26
|
+
}, z.core.$strict>;
|
|
34
27
|
type SchedulerToolsConfig = z.output<typeof SchedulerToolsConfigSchema>;
|
|
35
28
|
/**
|
|
36
29
|
* Input schema for creating schedules via tools
|
|
@@ -41,7 +34,7 @@ type SchedulerToolsConfig = z.output<typeof SchedulerToolsConfigSchema>;
|
|
|
41
34
|
* - "Remind me in 1 hour": sessionMode='inherit' (continues this conversation)
|
|
42
35
|
* - Cross-thread task: sessionMode='fixed', sessionId='target-session-id'
|
|
43
36
|
*/
|
|
44
|
-
declare const CreateScheduleInputSchema: z.
|
|
37
|
+
declare const CreateScheduleInputSchema: z.ZodObject<{
|
|
45
38
|
name: z.ZodString;
|
|
46
39
|
cronExpression: z.ZodString;
|
|
47
40
|
instruction: z.ZodString;
|
|
@@ -49,59 +42,20 @@ declare const CreateScheduleInputSchema: z.ZodEffects<z.ZodObject<{
|
|
|
49
42
|
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
50
43
|
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
51
44
|
workspacePath: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
52
|
-
sessionMode: z.ZodDefault<z.ZodEnum<
|
|
45
|
+
sessionMode: z.ZodDefault<z.ZodEnum<{
|
|
46
|
+
ephemeral: "ephemeral";
|
|
47
|
+
dedicated: "dedicated";
|
|
48
|
+
inherit: "inherit";
|
|
49
|
+
fixed: "fixed";
|
|
50
|
+
}>>;
|
|
53
51
|
sessionId: z.ZodOptional<z.ZodString>;
|
|
54
52
|
targetAgentId: z.ZodOptional<z.ZodString>;
|
|
55
|
-
},
|
|
56
|
-
name: string;
|
|
57
|
-
cronExpression: string;
|
|
58
|
-
instruction: string;
|
|
59
|
-
enabled: boolean;
|
|
60
|
-
sessionMode: "ephemeral" | "dedicated" | "inherit" | "fixed";
|
|
61
|
-
timezone?: string | undefined;
|
|
62
|
-
metadata?: Record<string, unknown> | undefined;
|
|
63
|
-
workspacePath?: string | null | undefined;
|
|
64
|
-
sessionId?: string | undefined;
|
|
65
|
-
targetAgentId?: string | undefined;
|
|
66
|
-
}, {
|
|
67
|
-
name: string;
|
|
68
|
-
cronExpression: string;
|
|
69
|
-
instruction: string;
|
|
70
|
-
timezone?: string | undefined;
|
|
71
|
-
enabled?: boolean | undefined;
|
|
72
|
-
metadata?: Record<string, unknown> | undefined;
|
|
73
|
-
workspacePath?: string | null | undefined;
|
|
74
|
-
sessionMode?: "ephemeral" | "dedicated" | "inherit" | "fixed" | undefined;
|
|
75
|
-
sessionId?: string | undefined;
|
|
76
|
-
targetAgentId?: string | undefined;
|
|
77
|
-
}>, {
|
|
78
|
-
name: string;
|
|
79
|
-
cronExpression: string;
|
|
80
|
-
instruction: string;
|
|
81
|
-
enabled: boolean;
|
|
82
|
-
sessionMode: "ephemeral" | "dedicated" | "inherit" | "fixed";
|
|
83
|
-
timezone?: string | undefined;
|
|
84
|
-
metadata?: Record<string, unknown> | undefined;
|
|
85
|
-
workspacePath?: string | null | undefined;
|
|
86
|
-
sessionId?: string | undefined;
|
|
87
|
-
targetAgentId?: string | undefined;
|
|
88
|
-
}, {
|
|
89
|
-
name: string;
|
|
90
|
-
cronExpression: string;
|
|
91
|
-
instruction: string;
|
|
92
|
-
timezone?: string | undefined;
|
|
93
|
-
enabled?: boolean | undefined;
|
|
94
|
-
metadata?: Record<string, unknown> | undefined;
|
|
95
|
-
workspacePath?: string | null | undefined;
|
|
96
|
-
sessionMode?: "ephemeral" | "dedicated" | "inherit" | "fixed" | undefined;
|
|
97
|
-
sessionId?: string | undefined;
|
|
98
|
-
targetAgentId?: string | undefined;
|
|
99
|
-
}>;
|
|
53
|
+
}, z.core.$strict>;
|
|
100
54
|
type CreateScheduleInput = z.output<typeof CreateScheduleInputSchema>;
|
|
101
55
|
/**
|
|
102
56
|
* Input schema for updating schedules
|
|
103
57
|
*/
|
|
104
|
-
declare const UpdateScheduleInputSchema: z.
|
|
58
|
+
declare const UpdateScheduleInputSchema: z.ZodObject<{
|
|
105
59
|
name: z.ZodOptional<z.ZodString>;
|
|
106
60
|
cronExpression: z.ZodOptional<z.ZodString>;
|
|
107
61
|
instruction: z.ZodOptional<z.ZodString>;
|
|
@@ -109,60 +63,16 @@ declare const UpdateScheduleInputSchema: z.ZodEffects<z.ZodObject<{
|
|
|
109
63
|
enabled: z.ZodOptional<z.ZodBoolean>;
|
|
110
64
|
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
111
65
|
workspacePath: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
112
|
-
sessionMode: z.ZodOptional<z.ZodEnum<
|
|
66
|
+
sessionMode: z.ZodOptional<z.ZodEnum<{
|
|
67
|
+
ephemeral: "ephemeral";
|
|
68
|
+
dedicated: "dedicated";
|
|
69
|
+
inherit: "inherit";
|
|
70
|
+
fixed: "fixed";
|
|
71
|
+
}>>;
|
|
113
72
|
sessionId: z.ZodOptional<z.ZodString>;
|
|
114
73
|
targetAgentId: z.ZodOptional<z.ZodString>;
|
|
115
|
-
} & {
|
|
116
74
|
scheduleId: z.ZodString;
|
|
117
|
-
},
|
|
118
|
-
scheduleId: string;
|
|
119
|
-
timezone?: string | undefined;
|
|
120
|
-
name?: string | undefined;
|
|
121
|
-
cronExpression?: string | undefined;
|
|
122
|
-
instruction?: string | undefined;
|
|
123
|
-
enabled?: boolean | undefined;
|
|
124
|
-
metadata?: Record<string, unknown> | undefined;
|
|
125
|
-
workspacePath?: string | null | undefined;
|
|
126
|
-
sessionMode?: "ephemeral" | "dedicated" | "inherit" | "fixed" | undefined;
|
|
127
|
-
sessionId?: string | undefined;
|
|
128
|
-
targetAgentId?: string | undefined;
|
|
129
|
-
}, {
|
|
130
|
-
scheduleId: string;
|
|
131
|
-
timezone?: string | undefined;
|
|
132
|
-
name?: string | undefined;
|
|
133
|
-
cronExpression?: string | undefined;
|
|
134
|
-
instruction?: string | undefined;
|
|
135
|
-
enabled?: boolean | undefined;
|
|
136
|
-
metadata?: Record<string, unknown> | undefined;
|
|
137
|
-
workspacePath?: string | null | undefined;
|
|
138
|
-
sessionMode?: "ephemeral" | "dedicated" | "inherit" | "fixed" | undefined;
|
|
139
|
-
sessionId?: string | undefined;
|
|
140
|
-
targetAgentId?: string | undefined;
|
|
141
|
-
}>, {
|
|
142
|
-
scheduleId: string;
|
|
143
|
-
timezone?: string | undefined;
|
|
144
|
-
name?: string | undefined;
|
|
145
|
-
cronExpression?: string | undefined;
|
|
146
|
-
instruction?: string | undefined;
|
|
147
|
-
enabled?: boolean | undefined;
|
|
148
|
-
metadata?: Record<string, unknown> | undefined;
|
|
149
|
-
workspacePath?: string | null | undefined;
|
|
150
|
-
sessionMode?: "ephemeral" | "dedicated" | "inherit" | "fixed" | undefined;
|
|
151
|
-
sessionId?: string | undefined;
|
|
152
|
-
targetAgentId?: string | undefined;
|
|
153
|
-
}, {
|
|
154
|
-
scheduleId: string;
|
|
155
|
-
timezone?: string | undefined;
|
|
156
|
-
name?: string | undefined;
|
|
157
|
-
cronExpression?: string | undefined;
|
|
158
|
-
instruction?: string | undefined;
|
|
159
|
-
enabled?: boolean | undefined;
|
|
160
|
-
metadata?: Record<string, unknown> | undefined;
|
|
161
|
-
workspacePath?: string | null | undefined;
|
|
162
|
-
sessionMode?: "ephemeral" | "dedicated" | "inherit" | "fixed" | undefined;
|
|
163
|
-
sessionId?: string | undefined;
|
|
164
|
-
targetAgentId?: string | undefined;
|
|
165
|
-
}>;
|
|
75
|
+
}, z.core.$strict>;
|
|
166
76
|
type UpdateScheduleInput = z.output<typeof UpdateScheduleInputSchema>;
|
|
167
77
|
/**
|
|
168
78
|
* Schema for update fields only (used by manager)
|
|
@@ -175,64 +85,35 @@ declare const UpdateScheduleFieldsOnlySchema: z.ZodObject<{
|
|
|
175
85
|
enabled: z.ZodOptional<z.ZodBoolean>;
|
|
176
86
|
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
177
87
|
workspacePath: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
178
|
-
sessionMode: z.ZodOptional<z.ZodEnum<
|
|
88
|
+
sessionMode: z.ZodOptional<z.ZodEnum<{
|
|
89
|
+
ephemeral: "ephemeral";
|
|
90
|
+
dedicated: "dedicated";
|
|
91
|
+
inherit: "inherit";
|
|
92
|
+
fixed: "fixed";
|
|
93
|
+
}>>;
|
|
179
94
|
sessionId: z.ZodOptional<z.ZodString>;
|
|
180
95
|
targetAgentId: z.ZodOptional<z.ZodString>;
|
|
181
|
-
},
|
|
182
|
-
timezone?: string | undefined;
|
|
183
|
-
name?: string | undefined;
|
|
184
|
-
cronExpression?: string | undefined;
|
|
185
|
-
instruction?: string | undefined;
|
|
186
|
-
enabled?: boolean | undefined;
|
|
187
|
-
metadata?: Record<string, unknown> | undefined;
|
|
188
|
-
workspacePath?: string | null | undefined;
|
|
189
|
-
sessionMode?: "ephemeral" | "dedicated" | "inherit" | "fixed" | undefined;
|
|
190
|
-
sessionId?: string | undefined;
|
|
191
|
-
targetAgentId?: string | undefined;
|
|
192
|
-
}, {
|
|
193
|
-
timezone?: string | undefined;
|
|
194
|
-
name?: string | undefined;
|
|
195
|
-
cronExpression?: string | undefined;
|
|
196
|
-
instruction?: string | undefined;
|
|
197
|
-
enabled?: boolean | undefined;
|
|
198
|
-
metadata?: Record<string, unknown> | undefined;
|
|
199
|
-
workspacePath?: string | null | undefined;
|
|
200
|
-
sessionMode?: "ephemeral" | "dedicated" | "inherit" | "fixed" | undefined;
|
|
201
|
-
sessionId?: string | undefined;
|
|
202
|
-
targetAgentId?: string | undefined;
|
|
203
|
-
}>;
|
|
96
|
+
}, z.core.$strict>;
|
|
204
97
|
/**
|
|
205
98
|
* Input schema for getting a schedule
|
|
206
99
|
*/
|
|
207
100
|
declare const GetScheduleInputSchema: z.ZodObject<{
|
|
208
101
|
scheduleId: z.ZodString;
|
|
209
|
-
},
|
|
210
|
-
scheduleId: string;
|
|
211
|
-
}, {
|
|
212
|
-
scheduleId: string;
|
|
213
|
-
}>;
|
|
102
|
+
}, z.core.$strict>;
|
|
214
103
|
type GetScheduleInput = z.output<typeof GetScheduleInputSchema>;
|
|
215
104
|
/**
|
|
216
105
|
* Input schema for deleting a schedule
|
|
217
106
|
*/
|
|
218
107
|
declare const DeleteScheduleInputSchema: z.ZodObject<{
|
|
219
108
|
scheduleId: z.ZodString;
|
|
220
|
-
},
|
|
221
|
-
scheduleId: string;
|
|
222
|
-
}, {
|
|
223
|
-
scheduleId: string;
|
|
224
|
-
}>;
|
|
109
|
+
}, z.core.$strict>;
|
|
225
110
|
type DeleteScheduleInput = z.output<typeof DeleteScheduleInputSchema>;
|
|
226
111
|
/**
|
|
227
112
|
* Input schema for triggering a schedule
|
|
228
113
|
*/
|
|
229
114
|
declare const TriggerScheduleInputSchema: z.ZodObject<{
|
|
230
115
|
scheduleId: z.ZodString;
|
|
231
|
-
},
|
|
232
|
-
scheduleId: string;
|
|
233
|
-
}, {
|
|
234
|
-
scheduleId: string;
|
|
235
|
-
}>;
|
|
116
|
+
}, z.core.$strict>;
|
|
236
117
|
type TriggerScheduleInput = z.output<typeof TriggerScheduleInputSchema>;
|
|
237
118
|
/**
|
|
238
119
|
* Input schema for getting schedule history
|
|
@@ -240,24 +121,14 @@ type TriggerScheduleInput = z.output<typeof TriggerScheduleInputSchema>;
|
|
|
240
121
|
declare const GetScheduleHistoryInputSchema: z.ZodObject<{
|
|
241
122
|
scheduleId: z.ZodString;
|
|
242
123
|
limit: z.ZodOptional<z.ZodNumber>;
|
|
243
|
-
},
|
|
244
|
-
scheduleId: string;
|
|
245
|
-
limit?: number | undefined;
|
|
246
|
-
}, {
|
|
247
|
-
scheduleId: string;
|
|
248
|
-
limit?: number | undefined;
|
|
249
|
-
}>;
|
|
124
|
+
}, z.core.$strict>;
|
|
250
125
|
type GetScheduleHistoryInput = z.output<typeof GetScheduleHistoryInputSchema>;
|
|
251
126
|
/**
|
|
252
127
|
* Input schema for listing schedules
|
|
253
128
|
*/
|
|
254
129
|
declare const ListSchedulesInputSchema: z.ZodObject<{
|
|
255
130
|
enabled: z.ZodOptional<z.ZodBoolean>;
|
|
256
|
-
},
|
|
257
|
-
enabled?: boolean | undefined;
|
|
258
|
-
}, {
|
|
259
|
-
enabled?: boolean | undefined;
|
|
260
|
-
}>;
|
|
131
|
+
}, z.core.$strict>;
|
|
261
132
|
type ListSchedulesInput = z.output<typeof ListSchedulesInputSchema>;
|
|
262
133
|
|
|
263
134
|
export { type CreateScheduleInput, CreateScheduleInputSchema, type DeleteScheduleInput, DeleteScheduleInputSchema, type GetScheduleHistoryInput, GetScheduleHistoryInputSchema, type GetScheduleInput, GetScheduleInputSchema, type ListSchedulesInput, ListSchedulesInputSchema, type ScheduleSessionMode, ScheduleSessionModeSchema, type SchedulerToolsConfig, SchedulerToolsConfigSchema, type TriggerScheduleInput, TriggerScheduleInputSchema, UpdateScheduleFieldsOnlySchema, type UpdateScheduleInput, UpdateScheduleInputSchema };
|
package/dist/schemas.d.ts
CHANGED
|
@@ -5,7 +5,12 @@ import { z } from 'zod';
|
|
|
5
5
|
/**
|
|
6
6
|
* Session mode schema - determines how conversation context is managed
|
|
7
7
|
*/
|
|
8
|
-
export declare const ScheduleSessionModeSchema: z.ZodEnum<
|
|
8
|
+
export declare const ScheduleSessionModeSchema: z.ZodEnum<{
|
|
9
|
+
ephemeral: "ephemeral";
|
|
10
|
+
dedicated: "dedicated";
|
|
11
|
+
inherit: "inherit";
|
|
12
|
+
fixed: "fixed";
|
|
13
|
+
}>;
|
|
9
14
|
export type ScheduleSessionMode = z.output<typeof ScheduleSessionModeSchema>;
|
|
10
15
|
/**
|
|
11
16
|
* Scheduler tool provider configuration schema
|
|
@@ -16,19 +21,7 @@ export declare const SchedulerToolsConfigSchema: z.ZodObject<{
|
|
|
16
21
|
maxSchedules: z.ZodDefault<z.ZodNumber>;
|
|
17
22
|
executionTimeout: z.ZodDefault<z.ZodNumber>;
|
|
18
23
|
maxExecutionHistory: z.ZodDefault<z.ZodNumber>;
|
|
19
|
-
},
|
|
20
|
-
type: "scheduler-tools";
|
|
21
|
-
timezone: string;
|
|
22
|
-
maxSchedules: number;
|
|
23
|
-
executionTimeout: number;
|
|
24
|
-
maxExecutionHistory: number;
|
|
25
|
-
}, {
|
|
26
|
-
type: "scheduler-tools";
|
|
27
|
-
timezone?: string | undefined;
|
|
28
|
-
maxSchedules?: number | undefined;
|
|
29
|
-
executionTimeout?: number | undefined;
|
|
30
|
-
maxExecutionHistory?: number | undefined;
|
|
31
|
-
}>;
|
|
24
|
+
}, z.core.$strict>;
|
|
32
25
|
export type SchedulerToolsConfig = z.output<typeof SchedulerToolsConfigSchema>;
|
|
33
26
|
/**
|
|
34
27
|
* Input schema for creating schedules via tools
|
|
@@ -39,7 +32,7 @@ export type SchedulerToolsConfig = z.output<typeof SchedulerToolsConfigSchema>;
|
|
|
39
32
|
* - "Remind me in 1 hour": sessionMode='inherit' (continues this conversation)
|
|
40
33
|
* - Cross-thread task: sessionMode='fixed', sessionId='target-session-id'
|
|
41
34
|
*/
|
|
42
|
-
export declare const CreateScheduleInputSchema: z.
|
|
35
|
+
export declare const CreateScheduleInputSchema: z.ZodObject<{
|
|
43
36
|
name: z.ZodString;
|
|
44
37
|
cronExpression: z.ZodString;
|
|
45
38
|
instruction: z.ZodString;
|
|
@@ -47,59 +40,20 @@ export declare const CreateScheduleInputSchema: z.ZodEffects<z.ZodObject<{
|
|
|
47
40
|
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
48
41
|
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
49
42
|
workspacePath: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
50
|
-
sessionMode: z.ZodDefault<z.ZodEnum<
|
|
43
|
+
sessionMode: z.ZodDefault<z.ZodEnum<{
|
|
44
|
+
ephemeral: "ephemeral";
|
|
45
|
+
dedicated: "dedicated";
|
|
46
|
+
inherit: "inherit";
|
|
47
|
+
fixed: "fixed";
|
|
48
|
+
}>>;
|
|
51
49
|
sessionId: z.ZodOptional<z.ZodString>;
|
|
52
50
|
targetAgentId: z.ZodOptional<z.ZodString>;
|
|
53
|
-
},
|
|
54
|
-
name: string;
|
|
55
|
-
cronExpression: string;
|
|
56
|
-
instruction: string;
|
|
57
|
-
enabled: boolean;
|
|
58
|
-
sessionMode: "ephemeral" | "dedicated" | "inherit" | "fixed";
|
|
59
|
-
timezone?: string | undefined;
|
|
60
|
-
metadata?: Record<string, unknown> | undefined;
|
|
61
|
-
workspacePath?: string | null | undefined;
|
|
62
|
-
sessionId?: string | undefined;
|
|
63
|
-
targetAgentId?: string | undefined;
|
|
64
|
-
}, {
|
|
65
|
-
name: string;
|
|
66
|
-
cronExpression: string;
|
|
67
|
-
instruction: string;
|
|
68
|
-
timezone?: string | undefined;
|
|
69
|
-
enabled?: boolean | undefined;
|
|
70
|
-
metadata?: Record<string, unknown> | undefined;
|
|
71
|
-
workspacePath?: string | null | undefined;
|
|
72
|
-
sessionMode?: "ephemeral" | "dedicated" | "inherit" | "fixed" | undefined;
|
|
73
|
-
sessionId?: string | undefined;
|
|
74
|
-
targetAgentId?: string | undefined;
|
|
75
|
-
}>, {
|
|
76
|
-
name: string;
|
|
77
|
-
cronExpression: string;
|
|
78
|
-
instruction: string;
|
|
79
|
-
enabled: boolean;
|
|
80
|
-
sessionMode: "ephemeral" | "dedicated" | "inherit" | "fixed";
|
|
81
|
-
timezone?: string | undefined;
|
|
82
|
-
metadata?: Record<string, unknown> | undefined;
|
|
83
|
-
workspacePath?: string | null | undefined;
|
|
84
|
-
sessionId?: string | undefined;
|
|
85
|
-
targetAgentId?: string | undefined;
|
|
86
|
-
}, {
|
|
87
|
-
name: string;
|
|
88
|
-
cronExpression: string;
|
|
89
|
-
instruction: string;
|
|
90
|
-
timezone?: string | undefined;
|
|
91
|
-
enabled?: boolean | undefined;
|
|
92
|
-
metadata?: Record<string, unknown> | undefined;
|
|
93
|
-
workspacePath?: string | null | undefined;
|
|
94
|
-
sessionMode?: "ephemeral" | "dedicated" | "inherit" | "fixed" | undefined;
|
|
95
|
-
sessionId?: string | undefined;
|
|
96
|
-
targetAgentId?: string | undefined;
|
|
97
|
-
}>;
|
|
51
|
+
}, z.core.$strict>;
|
|
98
52
|
export type CreateScheduleInput = z.output<typeof CreateScheduleInputSchema>;
|
|
99
53
|
/**
|
|
100
54
|
* Input schema for updating schedules
|
|
101
55
|
*/
|
|
102
|
-
export declare const UpdateScheduleInputSchema: z.
|
|
56
|
+
export declare const UpdateScheduleInputSchema: z.ZodObject<{
|
|
103
57
|
name: z.ZodOptional<z.ZodString>;
|
|
104
58
|
cronExpression: z.ZodOptional<z.ZodString>;
|
|
105
59
|
instruction: z.ZodOptional<z.ZodString>;
|
|
@@ -107,60 +61,16 @@ export declare const UpdateScheduleInputSchema: z.ZodEffects<z.ZodObject<{
|
|
|
107
61
|
enabled: z.ZodOptional<z.ZodBoolean>;
|
|
108
62
|
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
109
63
|
workspacePath: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
110
|
-
sessionMode: z.ZodOptional<z.ZodEnum<
|
|
64
|
+
sessionMode: z.ZodOptional<z.ZodEnum<{
|
|
65
|
+
ephemeral: "ephemeral";
|
|
66
|
+
dedicated: "dedicated";
|
|
67
|
+
inherit: "inherit";
|
|
68
|
+
fixed: "fixed";
|
|
69
|
+
}>>;
|
|
111
70
|
sessionId: z.ZodOptional<z.ZodString>;
|
|
112
71
|
targetAgentId: z.ZodOptional<z.ZodString>;
|
|
113
|
-
} & {
|
|
114
72
|
scheduleId: z.ZodString;
|
|
115
|
-
},
|
|
116
|
-
scheduleId: string;
|
|
117
|
-
timezone?: string | undefined;
|
|
118
|
-
name?: string | undefined;
|
|
119
|
-
cronExpression?: string | undefined;
|
|
120
|
-
instruction?: string | undefined;
|
|
121
|
-
enabled?: boolean | undefined;
|
|
122
|
-
metadata?: Record<string, unknown> | undefined;
|
|
123
|
-
workspacePath?: string | null | undefined;
|
|
124
|
-
sessionMode?: "ephemeral" | "dedicated" | "inherit" | "fixed" | undefined;
|
|
125
|
-
sessionId?: string | undefined;
|
|
126
|
-
targetAgentId?: string | undefined;
|
|
127
|
-
}, {
|
|
128
|
-
scheduleId: string;
|
|
129
|
-
timezone?: string | undefined;
|
|
130
|
-
name?: string | undefined;
|
|
131
|
-
cronExpression?: string | undefined;
|
|
132
|
-
instruction?: string | undefined;
|
|
133
|
-
enabled?: boolean | undefined;
|
|
134
|
-
metadata?: Record<string, unknown> | undefined;
|
|
135
|
-
workspacePath?: string | null | undefined;
|
|
136
|
-
sessionMode?: "ephemeral" | "dedicated" | "inherit" | "fixed" | undefined;
|
|
137
|
-
sessionId?: string | undefined;
|
|
138
|
-
targetAgentId?: string | undefined;
|
|
139
|
-
}>, {
|
|
140
|
-
scheduleId: string;
|
|
141
|
-
timezone?: string | undefined;
|
|
142
|
-
name?: string | undefined;
|
|
143
|
-
cronExpression?: string | undefined;
|
|
144
|
-
instruction?: string | undefined;
|
|
145
|
-
enabled?: boolean | undefined;
|
|
146
|
-
metadata?: Record<string, unknown> | undefined;
|
|
147
|
-
workspacePath?: string | null | undefined;
|
|
148
|
-
sessionMode?: "ephemeral" | "dedicated" | "inherit" | "fixed" | undefined;
|
|
149
|
-
sessionId?: string | undefined;
|
|
150
|
-
targetAgentId?: string | undefined;
|
|
151
|
-
}, {
|
|
152
|
-
scheduleId: string;
|
|
153
|
-
timezone?: string | undefined;
|
|
154
|
-
name?: string | undefined;
|
|
155
|
-
cronExpression?: string | undefined;
|
|
156
|
-
instruction?: string | undefined;
|
|
157
|
-
enabled?: boolean | undefined;
|
|
158
|
-
metadata?: Record<string, unknown> | undefined;
|
|
159
|
-
workspacePath?: string | null | undefined;
|
|
160
|
-
sessionMode?: "ephemeral" | "dedicated" | "inherit" | "fixed" | undefined;
|
|
161
|
-
sessionId?: string | undefined;
|
|
162
|
-
targetAgentId?: string | undefined;
|
|
163
|
-
}>;
|
|
73
|
+
}, z.core.$strict>;
|
|
164
74
|
export type UpdateScheduleInput = z.output<typeof UpdateScheduleInputSchema>;
|
|
165
75
|
/**
|
|
166
76
|
* Schema for update fields only (used by manager)
|
|
@@ -173,64 +83,35 @@ export declare const UpdateScheduleFieldsOnlySchema: z.ZodObject<{
|
|
|
173
83
|
enabled: z.ZodOptional<z.ZodBoolean>;
|
|
174
84
|
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
175
85
|
workspacePath: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
176
|
-
sessionMode: z.ZodOptional<z.ZodEnum<
|
|
86
|
+
sessionMode: z.ZodOptional<z.ZodEnum<{
|
|
87
|
+
ephemeral: "ephemeral";
|
|
88
|
+
dedicated: "dedicated";
|
|
89
|
+
inherit: "inherit";
|
|
90
|
+
fixed: "fixed";
|
|
91
|
+
}>>;
|
|
177
92
|
sessionId: z.ZodOptional<z.ZodString>;
|
|
178
93
|
targetAgentId: z.ZodOptional<z.ZodString>;
|
|
179
|
-
},
|
|
180
|
-
timezone?: string | undefined;
|
|
181
|
-
name?: string | undefined;
|
|
182
|
-
cronExpression?: string | undefined;
|
|
183
|
-
instruction?: string | undefined;
|
|
184
|
-
enabled?: boolean | undefined;
|
|
185
|
-
metadata?: Record<string, unknown> | undefined;
|
|
186
|
-
workspacePath?: string | null | undefined;
|
|
187
|
-
sessionMode?: "ephemeral" | "dedicated" | "inherit" | "fixed" | undefined;
|
|
188
|
-
sessionId?: string | undefined;
|
|
189
|
-
targetAgentId?: string | undefined;
|
|
190
|
-
}, {
|
|
191
|
-
timezone?: string | undefined;
|
|
192
|
-
name?: string | undefined;
|
|
193
|
-
cronExpression?: string | undefined;
|
|
194
|
-
instruction?: string | undefined;
|
|
195
|
-
enabled?: boolean | undefined;
|
|
196
|
-
metadata?: Record<string, unknown> | undefined;
|
|
197
|
-
workspacePath?: string | null | undefined;
|
|
198
|
-
sessionMode?: "ephemeral" | "dedicated" | "inherit" | "fixed" | undefined;
|
|
199
|
-
sessionId?: string | undefined;
|
|
200
|
-
targetAgentId?: string | undefined;
|
|
201
|
-
}>;
|
|
94
|
+
}, z.core.$strict>;
|
|
202
95
|
/**
|
|
203
96
|
* Input schema for getting a schedule
|
|
204
97
|
*/
|
|
205
98
|
export declare const GetScheduleInputSchema: z.ZodObject<{
|
|
206
99
|
scheduleId: z.ZodString;
|
|
207
|
-
},
|
|
208
|
-
scheduleId: string;
|
|
209
|
-
}, {
|
|
210
|
-
scheduleId: string;
|
|
211
|
-
}>;
|
|
100
|
+
}, z.core.$strict>;
|
|
212
101
|
export type GetScheduleInput = z.output<typeof GetScheduleInputSchema>;
|
|
213
102
|
/**
|
|
214
103
|
* Input schema for deleting a schedule
|
|
215
104
|
*/
|
|
216
105
|
export declare const DeleteScheduleInputSchema: z.ZodObject<{
|
|
217
106
|
scheduleId: z.ZodString;
|
|
218
|
-
},
|
|
219
|
-
scheduleId: string;
|
|
220
|
-
}, {
|
|
221
|
-
scheduleId: string;
|
|
222
|
-
}>;
|
|
107
|
+
}, z.core.$strict>;
|
|
223
108
|
export type DeleteScheduleInput = z.output<typeof DeleteScheduleInputSchema>;
|
|
224
109
|
/**
|
|
225
110
|
* Input schema for triggering a schedule
|
|
226
111
|
*/
|
|
227
112
|
export declare const TriggerScheduleInputSchema: z.ZodObject<{
|
|
228
113
|
scheduleId: z.ZodString;
|
|
229
|
-
},
|
|
230
|
-
scheduleId: string;
|
|
231
|
-
}, {
|
|
232
|
-
scheduleId: string;
|
|
233
|
-
}>;
|
|
114
|
+
}, z.core.$strict>;
|
|
234
115
|
export type TriggerScheduleInput = z.output<typeof TriggerScheduleInputSchema>;
|
|
235
116
|
/**
|
|
236
117
|
* Input schema for getting schedule history
|
|
@@ -238,23 +119,13 @@ export type TriggerScheduleInput = z.output<typeof TriggerScheduleInputSchema>;
|
|
|
238
119
|
export declare const GetScheduleHistoryInputSchema: z.ZodObject<{
|
|
239
120
|
scheduleId: z.ZodString;
|
|
240
121
|
limit: z.ZodOptional<z.ZodNumber>;
|
|
241
|
-
},
|
|
242
|
-
scheduleId: string;
|
|
243
|
-
limit?: number | undefined;
|
|
244
|
-
}, {
|
|
245
|
-
scheduleId: string;
|
|
246
|
-
limit?: number | undefined;
|
|
247
|
-
}>;
|
|
122
|
+
}, z.core.$strict>;
|
|
248
123
|
export type GetScheduleHistoryInput = z.output<typeof GetScheduleHistoryInputSchema>;
|
|
249
124
|
/**
|
|
250
125
|
* Input schema for listing schedules
|
|
251
126
|
*/
|
|
252
127
|
export declare const ListSchedulesInputSchema: z.ZodObject<{
|
|
253
128
|
enabled: z.ZodOptional<z.ZodBoolean>;
|
|
254
|
-
},
|
|
255
|
-
enabled?: boolean | undefined;
|
|
256
|
-
}, {
|
|
257
|
-
enabled?: boolean | undefined;
|
|
258
|
-
}>;
|
|
129
|
+
}, z.core.$strict>;
|
|
259
130
|
export type ListSchedulesInput = z.output<typeof ListSchedulesInputSchema>;
|
|
260
131
|
//# sourceMappingURL=schemas.d.ts.map
|
package/dist/schemas.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"schemas.d.ts","sourceRoot":"","sources":["../src/schemas.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB;;GAEG;AACH,eAAO,MAAM,yBAAyB,
|
|
1
|
+
{"version":3,"file":"schemas.d.ts","sourceRoot":"","sources":["../src/schemas.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB;;GAEG;AACH,eAAO,MAAM,yBAAyB;;;;;EAQjC,CAAC;AAEN,MAAM,MAAM,mBAAmB,GAAG,CAAC,CAAC,MAAM,CAAC,OAAO,yBAAyB,CAAC,CAAC;AAE7E;;GAEG;AACH,eAAO,MAAM,0BAA0B;;;;;;kBAc1B,CAAC;AAEd,MAAM,MAAM,oBAAoB,GAAG,CAAC,CAAC,MAAM,CAAC,OAAO,0BAA0B,CAAC,CAAC;AAE/E;;;;;;;;GAQG;AACH,eAAO,MAAM,yBAAyB;;;;;;;;;;;;;;;;kBA0DhC,CAAC;AAEP,MAAM,MAAM,mBAAmB,GAAG,CAAC,CAAC,MAAM,CAAC,OAAO,yBAAyB,CAAC,CAAC;AAsC7E;;GAEG;AACH,eAAO,MAAM,yBAAyB;;;;;;;;;;;;;;;;;kBAUpC,CAAC;AAEH,MAAM,MAAM,mBAAmB,GAAG,CAAC,CAAC,MAAM,CAAC,OAAO,yBAAyB,CAAC,CAAC;AAE7E;;GAEG;AACH,eAAO,MAAM,8BAA8B;;;;;;;;;;;;;;;;kBAA6B,CAAC;AAEzE;;GAEG;AACH,eAAO,MAAM,sBAAsB;;kBAItB,CAAC;AAEd,MAAM,MAAM,gBAAgB,GAAG,CAAC,CAAC,MAAM,CAAC,OAAO,sBAAsB,CAAC,CAAC;AAEvE;;GAEG;AACH,eAAO,MAAM,yBAAyB;;kBAIzB,CAAC;AAEd,MAAM,MAAM,mBAAmB,GAAG,CAAC,CAAC,MAAM,CAAC,OAAO,yBAAyB,CAAC,CAAC;AAE7E;;GAEG;AACH,eAAO,MAAM,0BAA0B;;kBAI1B,CAAC;AAEd,MAAM,MAAM,oBAAoB,GAAG,CAAC,CAAC,MAAM,CAAC,OAAO,0BAA0B,CAAC,CAAC;AAE/E;;GAEG;AACH,eAAO,MAAM,6BAA6B;;;kBAQ7B,CAAC;AAEd,MAAM,MAAM,uBAAuB,GAAG,CAAC,CAAC,MAAM,CAAC,OAAO,6BAA6B,CAAC,CAAC;AAErF;;GAEG;AACH,eAAO,MAAM,wBAAwB;;kBAIxB,CAAC;AAEd,MAAM,MAAM,kBAAkB,GAAG,CAAC,CAAC,MAAM,CAAC,OAAO,wBAAwB,CAAC,CAAC"}
|
package/dist/schemas.js
CHANGED
|
@@ -23,7 +23,7 @@ const CreateScheduleInputSchema = z.object({
|
|
|
23
23
|
),
|
|
24
24
|
timezone: z.string().optional().describe("Optional timezone (defaults to config timezone)"),
|
|
25
25
|
enabled: z.boolean().default(true).describe("Whether schedule is enabled"),
|
|
26
|
-
metadata: z.record(z.unknown()).optional().describe("Optional metadata for the task"),
|
|
26
|
+
metadata: z.record(z.string(), z.unknown()).optional().describe("Optional metadata for the task"),
|
|
27
27
|
workspacePath: z.string().optional().nullable().describe("Optional workspace path for scheduled runs"),
|
|
28
28
|
sessionMode: ScheduleSessionModeSchema.default("ephemeral").describe(
|
|
29
29
|
`Session context mode:
|
|
@@ -53,7 +53,7 @@ const UpdateScheduleFieldsSchema = z.object({
|
|
|
53
53
|
instruction: z.string().min(1).optional().describe("Updated instruction - what should happen when this schedule triggers"),
|
|
54
54
|
timezone: z.string().optional().describe("Updated timezone"),
|
|
55
55
|
enabled: z.boolean().optional().describe("Updated enabled state"),
|
|
56
|
-
metadata: z.record(z.unknown()).optional().describe("Updated metadata"),
|
|
56
|
+
metadata: z.record(z.string(), z.unknown()).optional().describe("Updated metadata"),
|
|
57
57
|
workspacePath: z.string().optional().nullable().describe("Updated workspace path for scheduled runs"),
|
|
58
58
|
sessionMode: ScheduleSessionModeSchema.optional().describe(
|
|
59
59
|
"Updated session mode (ephemeral, dedicated, inherit, fixed)"
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dexto/tools-scheduler",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.7.1",
|
|
4
4
|
"description": "Scheduler tools provider for Dexto agents - enables proactive task scheduling",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -29,9 +29,9 @@
|
|
|
29
29
|
"dependencies": {
|
|
30
30
|
"cron-parser": "^4.9.0",
|
|
31
31
|
"node-cron": "^4.2.1",
|
|
32
|
-
"zod": "^3.
|
|
33
|
-
"@dexto/agent-config": "1.
|
|
34
|
-
"@dexto/core": "1.
|
|
32
|
+
"zod": "^4.3.6",
|
|
33
|
+
"@dexto/agent-config": "1.7.1",
|
|
34
|
+
"@dexto/core": "1.7.1"
|
|
35
35
|
},
|
|
36
36
|
"devDependencies": {
|
|
37
37
|
"tsup": "^8.0.0",
|