@chronary/toolkit 1.3.0 → 1.4.0
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 +7 -2
- package/README.md +2 -2
- package/dist/ai-sdk.cjs +44 -2
- package/dist/ai-sdk.cjs.map +1 -1
- package/dist/ai-sdk.d.cts +1 -1
- package/dist/ai-sdk.d.ts +1 -1
- package/dist/ai-sdk.js +44 -2
- package/dist/ai-sdk.js.map +1 -1
- package/dist/{base-C6QWbxc1.d.cts → base-BM5HxeCZ.d.cts} +2 -2
- package/dist/{base-C6QWbxc1.d.ts → base-BM5HxeCZ.d.ts} +2 -2
- package/dist/index.cjs +50 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +24 -3
- package/dist/index.d.ts +24 -3
- package/dist/index.js +50 -2
- package/dist/index.js.map +1 -1
- package/dist/langchain.cjs +44 -2
- package/dist/langchain.cjs.map +1 -1
- package/dist/langchain.d.cts +1 -1
- package/dist/langchain.d.ts +1 -1
- package/dist/langchain.js +44 -2
- package/dist/langchain.js.map +1 -1
- package/dist/mastra.cjs +44 -2
- package/dist/mastra.cjs.map +1 -1
- package/dist/mastra.d.cts +1 -1
- package/dist/mastra.d.ts +1 -1
- package/dist/mastra.js +44 -2
- package/dist/mastra.js.map +1 -1
- package/dist/mcp.cjs +181 -2
- package/dist/mcp.cjs.map +1 -1
- package/dist/mcp.d.cts +44 -2
- package/dist/mcp.d.ts +44 -2
- package/dist/mcp.js +181 -2
- package/dist/mcp.js.map +1 -1
- package/dist/openai.cjs +44 -2
- package/dist/openai.cjs.map +1 -1
- package/dist/openai.d.cts +1 -1
- package/dist/openai.d.ts +1 -1
- package/dist/openai.js +44 -2
- package/dist/openai.js.map +1 -1
- package/package.json +2 -2
package/dist/openai.cjs
CHANGED
|
@@ -175,6 +175,15 @@ var FindMeetingTimeSchema = import_zod.z.object({
|
|
|
175
175
|
calendars: import_zod.z.array(import_zod.z.string()).optional().describe("Additional shared calendar IDs to treat as busy"),
|
|
176
176
|
include_busy: import_zod.z.boolean().default(false).describe("Include per-agent busy blocks in response")
|
|
177
177
|
});
|
|
178
|
+
var CreateConnectionLinkSchema = import_zod.z.object({
|
|
179
|
+
calendar_id: import_zod.z.string().startsWith("cal_").describe("Chronary calendar whose owning agent will receive authorized availability"),
|
|
180
|
+
capabilities: import_zod.z.array(import_zod.z.enum(["availability", "publishing"])).min(1).max(2).default(["availability"]).describe("Request opaque availability and optional publishing permission"),
|
|
181
|
+
publication_policy: import_zod.z.enum(["none", "confirmed", "confirmed_tentative"]).default("none").describe("Desired event publishing policy; a human still selects the destination")
|
|
182
|
+
});
|
|
183
|
+
var GetConnectionLinkSchema = import_zod.z.object({
|
|
184
|
+
connection_link_id: import_zod.z.string().startsWith("csl_").describe("Connection setup link ID")
|
|
185
|
+
});
|
|
186
|
+
var CancelConnectionLinkSchema = GetConnectionLinkSchema;
|
|
178
187
|
var GetCalendarContextSchema = import_zod.z.object({
|
|
179
188
|
calendar_id: import_zod.z.string().describe("Calendar ID")
|
|
180
189
|
});
|
|
@@ -471,6 +480,15 @@ var findMeetingTime = safeFunc(async (ctx) => {
|
|
|
471
480
|
include_busy: params.include_busy
|
|
472
481
|
});
|
|
473
482
|
});
|
|
483
|
+
var createConnectionLink = safeFunc(async (ctx) => {
|
|
484
|
+
const { calendar_id, ...params } = ctx.params;
|
|
485
|
+
return ctx.client.connectionLinks.create(calendar_id, params);
|
|
486
|
+
});
|
|
487
|
+
var getConnectionLink = safeFunc(async (ctx) => ctx.client.connectionLinks.get(ctx.params.connection_link_id));
|
|
488
|
+
var cancelConnectionLink = safeFunc(async (ctx) => {
|
|
489
|
+
await ctx.client.connectionLinks.cancel(ctx.params.connection_link_id);
|
|
490
|
+
return { cancelled: true, id: ctx.params.connection_link_id };
|
|
491
|
+
});
|
|
474
492
|
var getCalendarContext = safeFunc(async (ctx) => {
|
|
475
493
|
return ctx.client.calendars.getContext(ctx.params.calendar_id);
|
|
476
494
|
});
|
|
@@ -600,6 +618,9 @@ var HOSTED_API_MCP_TOOL_NAMES = [
|
|
|
600
618
|
"update_event",
|
|
601
619
|
"get_availability",
|
|
602
620
|
"find_meeting_time",
|
|
621
|
+
"create_connection_link",
|
|
622
|
+
"get_connection_link",
|
|
623
|
+
"cancel_connection_link",
|
|
603
624
|
"cancel_event",
|
|
604
625
|
"confirm_event",
|
|
605
626
|
"release_event",
|
|
@@ -765,18 +786,39 @@ var TOOL_DEFINITIONS = [
|
|
|
765
786
|
// ── Availability ───────────────────────────────────────────────
|
|
766
787
|
{
|
|
767
788
|
name: "get_availability",
|
|
768
|
-
description: "Check when a single agent is free
|
|
789
|
+
description: "Check when a single agent is free across Chronary and authorized human calendars. This tool is fail-closed: always inspect availability_state and warnings before using slots.",
|
|
769
790
|
schema: GetAvailabilitySchema,
|
|
770
791
|
annotations: { title: "Get Availability", readOnlyHint: true, destructiveHint: false, idempotentHint: true, openWorldHint: false },
|
|
771
792
|
execute: createExecutor(getAvailability)
|
|
772
793
|
},
|
|
773
794
|
{
|
|
774
795
|
name: "find_meeting_time",
|
|
775
|
-
description: "Find time
|
|
796
|
+
description: "Find time when multiple agents are free across Chronary and their authorized human calendars. This tool is fail-closed: always inspect availability_state and warnings before using slots.",
|
|
776
797
|
schema: FindMeetingTimeSchema,
|
|
777
798
|
annotations: { title: "Find Meeting Time", readOnlyHint: true, destructiveHint: false, idempotentHint: true, openWorldHint: false },
|
|
778
799
|
execute: createExecutor(findMeetingTime)
|
|
779
800
|
},
|
|
801
|
+
{
|
|
802
|
+
name: "create_connection_link",
|
|
803
|
+
description: "Request human setup of Google Calendar or Microsoft Outlook for a Chronary calendar. Give setup_url to a human; agents never receive provider credentials or event data. The secret URL is returned only once.",
|
|
804
|
+
schema: CreateConnectionLinkSchema,
|
|
805
|
+
annotations: { title: "Create Human Calendar Setup Link", readOnlyHint: false, destructiveHint: false, idempotentHint: false, openWorldHint: true },
|
|
806
|
+
execute: createExecutor(createConnectionLink)
|
|
807
|
+
},
|
|
808
|
+
{
|
|
809
|
+
name: "get_connection_link",
|
|
810
|
+
description: "Poll provider-neutral human-calendar setup status. The bearer setup URL and provider data are never returned by polling.",
|
|
811
|
+
schema: GetConnectionLinkSchema,
|
|
812
|
+
annotations: { title: "Get Human Calendar Setup Status", readOnlyHint: true, destructiveHint: false, idempotentHint: true, openWorldHint: false },
|
|
813
|
+
execute: createExecutor(getConnectionLink)
|
|
814
|
+
},
|
|
815
|
+
{
|
|
816
|
+
name: "cancel_connection_link",
|
|
817
|
+
description: "Cancel a pending human-calendar setup request and invalidate its setup URL.",
|
|
818
|
+
schema: CancelConnectionLinkSchema,
|
|
819
|
+
annotations: { title: "Cancel Human Calendar Setup Link", readOnlyHint: false, destructiveHint: true, idempotentHint: true, openWorldHint: false },
|
|
820
|
+
execute: createExecutor(cancelConnectionLink)
|
|
821
|
+
},
|
|
780
822
|
// ── Calendar context ───────────────────────────────────────────
|
|
781
823
|
{
|
|
782
824
|
name: "get_calendar_context",
|