@chronary/toolkit 1.2.1 → 1.2.3
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/CHANGELOG.md +6 -0
- package/dist/ai-sdk.cjs +12 -8
- package/dist/ai-sdk.cjs.map +1 -1
- package/dist/ai-sdk.js +12 -8
- package/dist/ai-sdk.js.map +1 -1
- package/dist/index.cjs +12 -8
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +16 -2
- package/dist/index.d.ts +16 -2
- package/dist/index.js +12 -8
- package/dist/index.js.map +1 -1
- package/dist/langchain.cjs +12 -8
- package/dist/langchain.cjs.map +1 -1
- package/dist/langchain.js +12 -8
- package/dist/langchain.js.map +1 -1
- package/dist/mastra.cjs +12 -8
- package/dist/mastra.cjs.map +1 -1
- package/dist/mastra.js +12 -8
- package/dist/mastra.js.map +1 -1
- package/dist/mcp.cjs +12 -8
- package/dist/mcp.cjs.map +1 -1
- package/dist/mcp.js +12 -8
- package/dist/mcp.js.map +1 -1
- package/dist/openai.cjs +12 -8
- package/dist/openai.cjs.map +1 -1
- package/dist/openai.js +12 -8
- package/dist/openai.js.map +1 -1
- package/package.json +4 -4
package/dist/index.d.cts
CHANGED
|
@@ -147,7 +147,14 @@ declare const GetAvailabilitySchema: z.ZodObject<{
|
|
|
147
147
|
end: z.ZodOptional<z.ZodString>;
|
|
148
148
|
start_time: z.ZodOptional<z.ZodString>;
|
|
149
149
|
end_time: z.ZodOptional<z.ZodString>;
|
|
150
|
-
|
|
150
|
+
duration: z.ZodOptional<z.ZodEnum<{
|
|
151
|
+
"15m": "15m";
|
|
152
|
+
"30m": "30m";
|
|
153
|
+
"45m": "45m";
|
|
154
|
+
"1h": "1h";
|
|
155
|
+
"2h": "2h";
|
|
156
|
+
}>>;
|
|
157
|
+
slot_duration: z.ZodOptional<z.ZodEnum<{
|
|
151
158
|
"15m": "15m";
|
|
152
159
|
"30m": "30m";
|
|
153
160
|
"45m": "45m";
|
|
@@ -163,7 +170,14 @@ declare const FindMeetingTimeSchema: z.ZodObject<{
|
|
|
163
170
|
end: z.ZodOptional<z.ZodString>;
|
|
164
171
|
start_time: z.ZodOptional<z.ZodString>;
|
|
165
172
|
end_time: z.ZodOptional<z.ZodString>;
|
|
166
|
-
|
|
173
|
+
duration: z.ZodOptional<z.ZodEnum<{
|
|
174
|
+
"15m": "15m";
|
|
175
|
+
"30m": "30m";
|
|
176
|
+
"45m": "45m";
|
|
177
|
+
"1h": "1h";
|
|
178
|
+
"2h": "2h";
|
|
179
|
+
}>>;
|
|
180
|
+
slot_duration: z.ZodOptional<z.ZodEnum<{
|
|
167
181
|
"15m": "15m";
|
|
168
182
|
"30m": "30m";
|
|
169
183
|
"45m": "45m";
|
package/dist/index.d.ts
CHANGED
|
@@ -147,7 +147,14 @@ declare const GetAvailabilitySchema: z.ZodObject<{
|
|
|
147
147
|
end: z.ZodOptional<z.ZodString>;
|
|
148
148
|
start_time: z.ZodOptional<z.ZodString>;
|
|
149
149
|
end_time: z.ZodOptional<z.ZodString>;
|
|
150
|
-
|
|
150
|
+
duration: z.ZodOptional<z.ZodEnum<{
|
|
151
|
+
"15m": "15m";
|
|
152
|
+
"30m": "30m";
|
|
153
|
+
"45m": "45m";
|
|
154
|
+
"1h": "1h";
|
|
155
|
+
"2h": "2h";
|
|
156
|
+
}>>;
|
|
157
|
+
slot_duration: z.ZodOptional<z.ZodEnum<{
|
|
151
158
|
"15m": "15m";
|
|
152
159
|
"30m": "30m";
|
|
153
160
|
"45m": "45m";
|
|
@@ -163,7 +170,14 @@ declare const FindMeetingTimeSchema: z.ZodObject<{
|
|
|
163
170
|
end: z.ZodOptional<z.ZodString>;
|
|
164
171
|
start_time: z.ZodOptional<z.ZodString>;
|
|
165
172
|
end_time: z.ZodOptional<z.ZodString>;
|
|
166
|
-
|
|
173
|
+
duration: z.ZodOptional<z.ZodEnum<{
|
|
174
|
+
"15m": "15m";
|
|
175
|
+
"30m": "30m";
|
|
176
|
+
"45m": "45m";
|
|
177
|
+
"1h": "1h";
|
|
178
|
+
"2h": "2h";
|
|
179
|
+
}>>;
|
|
180
|
+
slot_duration: z.ZodOptional<z.ZodEnum<{
|
|
167
181
|
"15m": "15m";
|
|
168
182
|
"30m": "30m";
|
|
169
183
|
"45m": "45m";
|
package/dist/index.js
CHANGED
|
@@ -232,7 +232,8 @@ var GetAvailabilitySchema = z.object({
|
|
|
232
232
|
end: z.string().datetime().optional().describe("Range end (ISO 8601). Alias: end_time."),
|
|
233
233
|
start_time: z.string().datetime().optional().describe("Alias for `start` (matches REST events naming)."),
|
|
234
234
|
end_time: z.string().datetime().optional().describe("Alias for `end` (matches REST events naming)."),
|
|
235
|
-
|
|
235
|
+
duration: z.enum(["15m", "30m", "45m", "1h", "2h"]).optional().describe("Requested slot length (15m/30m/45m/1h/2h). Preferred over the deprecated slot_duration. Defaults to 30m."),
|
|
236
|
+
slot_duration: z.enum(["15m", "30m", "45m", "1h", "2h"]).optional().describe("Deprecated alias for `duration` \u2014 minimum slot length. Prefer `duration`."),
|
|
236
237
|
include_busy: z.boolean().default(false).describe("Include busy blocks in response")
|
|
237
238
|
});
|
|
238
239
|
var FindMeetingTimeSchema = z.object({
|
|
@@ -242,7 +243,8 @@ var FindMeetingTimeSchema = z.object({
|
|
|
242
243
|
end: z.string().datetime().optional().describe("Search range end (ISO 8601). Alias: end_time."),
|
|
243
244
|
start_time: z.string().datetime().optional().describe("Alias for `start` (matches REST events naming)."),
|
|
244
245
|
end_time: z.string().datetime().optional().describe("Alias for `end` (matches REST events naming)."),
|
|
245
|
-
|
|
246
|
+
duration: z.enum(["15m", "30m", "45m", "1h", "2h"]).optional().describe("Requested slot length (15m/30m/45m/1h/2h). Preferred over the deprecated slot_duration. Defaults to 30m."),
|
|
247
|
+
slot_duration: z.enum(["15m", "30m", "45m", "1h", "2h"]).optional().describe("Deprecated alias for `duration` \u2014 minimum slot length. Prefer `duration`."),
|
|
246
248
|
calendars: z.array(z.string()).optional().describe("Additional shared calendar IDs to treat as busy"),
|
|
247
249
|
include_busy: z.boolean().default(false).describe("Include per-agent busy blocks in response")
|
|
248
250
|
});
|
|
@@ -250,10 +252,10 @@ var GetCalendarContextSchema = z.object({
|
|
|
250
252
|
calendar_id: z.string().describe("Calendar ID")
|
|
251
253
|
});
|
|
252
254
|
var proposalSlotSchema = z.object({
|
|
253
|
-
start_time: z.string().datetime(),
|
|
254
|
-
end_time: z.string().datetime(),
|
|
255
|
-
weight: z.number().min(0).max(10).default(1).optional(),
|
|
256
|
-
calendar_id: z.string().optional()
|
|
255
|
+
start_time: z.string().datetime().describe("Slot start time (ISO 8601)"),
|
|
256
|
+
end_time: z.string().datetime().describe("Slot end time (ISO 8601), after start_time"),
|
|
257
|
+
weight: z.number().min(0).max(10).default(1).optional().describe("Preference for this slot, 0\u201310 (higher = more preferred). Used to rank candidate slots when the proposal is resolved. Defaults to 1."),
|
|
258
|
+
calendar_id: z.string().optional().describe("Calendar to create the event on if this slot is chosen. Defaults to the proposal's top-level calendar_id.")
|
|
257
259
|
});
|
|
258
260
|
var CreateProposalSchema = z.object({
|
|
259
261
|
title: z.string().min(1).max(500).describe("Short description of what the meeting is about"),
|
|
@@ -289,8 +291,8 @@ var CancelProposalSchema = z.object({
|
|
|
289
291
|
});
|
|
290
292
|
var timeOfDay = z.string().regex(/^([01]\d|2[0-3]):[0-5]\d$/, "must be HH:MM in 24-hour time");
|
|
291
293
|
var workingHoursDaySchema = z.object({
|
|
292
|
-
start: timeOfDay,
|
|
293
|
-
end: timeOfDay
|
|
294
|
+
start: timeOfDay.describe('Start of the working window, HH:MM 24-hour, in the rules timezone (e.g. "09:00")'),
|
|
295
|
+
end: timeOfDay.describe('End of the working window, HH:MM 24-hour, after start (e.g. "17:00")')
|
|
294
296
|
}).refine((v) => v.end > v.start, "end must be after start").describe("A single day's working hours window");
|
|
295
297
|
var workingHoursSchema = z.object({
|
|
296
298
|
mon: workingHoursDaySchema.optional(),
|
|
@@ -514,6 +516,7 @@ var getAvailability = safeFunc(async (ctx) => {
|
|
|
514
516
|
return client.availability.forAgent(params.agent_id, {
|
|
515
517
|
start,
|
|
516
518
|
end,
|
|
519
|
+
duration: params.duration,
|
|
517
520
|
slot_duration: params.slot_duration,
|
|
518
521
|
include_busy: params.include_busy
|
|
519
522
|
});
|
|
@@ -530,6 +533,7 @@ var findMeetingTime = safeFunc(async (ctx) => {
|
|
|
530
533
|
agents,
|
|
531
534
|
start,
|
|
532
535
|
end,
|
|
536
|
+
duration: params.duration,
|
|
533
537
|
slot_duration: params.slot_duration,
|
|
534
538
|
calendars: params.calendars,
|
|
535
539
|
include_busy: params.include_busy
|