@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/index.cjs
CHANGED
|
@@ -51,6 +51,9 @@ var TOOL_NAMES = [
|
|
|
51
51
|
"delete_agent",
|
|
52
52
|
"get_availability",
|
|
53
53
|
"find_meeting_time",
|
|
54
|
+
"create_connection_link",
|
|
55
|
+
"get_connection_link",
|
|
56
|
+
"cancel_connection_link",
|
|
54
57
|
"get_calendar_context",
|
|
55
58
|
"create_proposal",
|
|
56
59
|
"list_proposals",
|
|
@@ -85,12 +88,14 @@ var TOOL_NAMES = [
|
|
|
85
88
|
var schemas_exports = {};
|
|
86
89
|
__export(schemas_exports, {
|
|
87
90
|
AcceptTermsSchema: () => AcceptTermsSchema,
|
|
91
|
+
CancelConnectionLinkSchema: () => CancelConnectionLinkSchema,
|
|
88
92
|
CancelEventSchema: () => CancelEventSchema,
|
|
89
93
|
CancelProposalSchema: () => CancelProposalSchema,
|
|
90
94
|
ClearAvailabilityRulesSchema: () => ClearAvailabilityRulesSchema,
|
|
91
95
|
ConfirmEventSchema: () => ConfirmEventSchema,
|
|
92
96
|
CreateAgentSchema: () => CreateAgentSchema,
|
|
93
97
|
CreateCalendarSchema: () => CreateCalendarSchema,
|
|
98
|
+
CreateConnectionLinkSchema: () => CreateConnectionLinkSchema,
|
|
94
99
|
CreateEventSchema: () => CreateEventSchema,
|
|
95
100
|
CreateProposalSchema: () => CreateProposalSchema,
|
|
96
101
|
CreateScopedKeySchema: () => CreateScopedKeySchema,
|
|
@@ -106,6 +111,7 @@ __export(schemas_exports, {
|
|
|
106
111
|
GetAvailabilitySchema: () => GetAvailabilitySchema,
|
|
107
112
|
GetCalendarContextSchema: () => GetCalendarContextSchema,
|
|
108
113
|
GetCalendarSchema: () => GetCalendarSchema,
|
|
114
|
+
GetConnectionLinkSchema: () => GetConnectionLinkSchema,
|
|
109
115
|
GetEventSchema: () => GetEventSchema,
|
|
110
116
|
GetICalSubscriptionSchema: () => GetICalSubscriptionSchema,
|
|
111
117
|
GetProposalSchema: () => GetProposalSchema,
|
|
@@ -278,6 +284,15 @@ var FindMeetingTimeSchema = import_zod.z.object({
|
|
|
278
284
|
calendars: import_zod.z.array(import_zod.z.string()).optional().describe("Additional shared calendar IDs to treat as busy"),
|
|
279
285
|
include_busy: import_zod.z.boolean().default(false).describe("Include per-agent busy blocks in response")
|
|
280
286
|
});
|
|
287
|
+
var CreateConnectionLinkSchema = import_zod.z.object({
|
|
288
|
+
calendar_id: import_zod.z.string().startsWith("cal_").describe("Chronary calendar whose owning agent will receive authorized availability"),
|
|
289
|
+
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"),
|
|
290
|
+
publication_policy: import_zod.z.enum(["none", "confirmed", "confirmed_tentative"]).default("none").describe("Desired event publishing policy; a human still selects the destination")
|
|
291
|
+
});
|
|
292
|
+
var GetConnectionLinkSchema = import_zod.z.object({
|
|
293
|
+
connection_link_id: import_zod.z.string().startsWith("csl_").describe("Connection setup link ID")
|
|
294
|
+
});
|
|
295
|
+
var CancelConnectionLinkSchema = GetConnectionLinkSchema;
|
|
281
296
|
var GetCalendarContextSchema = import_zod.z.object({
|
|
282
297
|
calendar_id: import_zod.z.string().describe("Calendar ID")
|
|
283
298
|
});
|
|
@@ -574,6 +589,15 @@ var findMeetingTime = safeFunc(async (ctx) => {
|
|
|
574
589
|
include_busy: params.include_busy
|
|
575
590
|
});
|
|
576
591
|
});
|
|
592
|
+
var createConnectionLink = safeFunc(async (ctx) => {
|
|
593
|
+
const { calendar_id, ...params } = ctx.params;
|
|
594
|
+
return ctx.client.connectionLinks.create(calendar_id, params);
|
|
595
|
+
});
|
|
596
|
+
var getConnectionLink = safeFunc(async (ctx) => ctx.client.connectionLinks.get(ctx.params.connection_link_id));
|
|
597
|
+
var cancelConnectionLink = safeFunc(async (ctx) => {
|
|
598
|
+
await ctx.client.connectionLinks.cancel(ctx.params.connection_link_id);
|
|
599
|
+
return { cancelled: true, id: ctx.params.connection_link_id };
|
|
600
|
+
});
|
|
577
601
|
var getCalendarContext = safeFunc(async (ctx) => {
|
|
578
602
|
return ctx.client.calendars.getContext(ctx.params.calendar_id);
|
|
579
603
|
});
|
|
@@ -703,6 +727,9 @@ var HOSTED_API_MCP_TOOL_NAMES = [
|
|
|
703
727
|
"update_event",
|
|
704
728
|
"get_availability",
|
|
705
729
|
"find_meeting_time",
|
|
730
|
+
"create_connection_link",
|
|
731
|
+
"get_connection_link",
|
|
732
|
+
"cancel_connection_link",
|
|
706
733
|
"cancel_event",
|
|
707
734
|
"confirm_event",
|
|
708
735
|
"release_event",
|
|
@@ -868,18 +895,39 @@ var TOOL_DEFINITIONS = [
|
|
|
868
895
|
// ── Availability ───────────────────────────────────────────────
|
|
869
896
|
{
|
|
870
897
|
name: "get_availability",
|
|
871
|
-
description: "Check when a single agent is free
|
|
898
|
+
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.",
|
|
872
899
|
schema: GetAvailabilitySchema,
|
|
873
900
|
annotations: { title: "Get Availability", readOnlyHint: true, destructiveHint: false, idempotentHint: true, openWorldHint: false },
|
|
874
901
|
execute: createExecutor(getAvailability)
|
|
875
902
|
},
|
|
876
903
|
{
|
|
877
904
|
name: "find_meeting_time",
|
|
878
|
-
description: "Find time
|
|
905
|
+
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.",
|
|
879
906
|
schema: FindMeetingTimeSchema,
|
|
880
907
|
annotations: { title: "Find Meeting Time", readOnlyHint: true, destructiveHint: false, idempotentHint: true, openWorldHint: false },
|
|
881
908
|
execute: createExecutor(findMeetingTime)
|
|
882
909
|
},
|
|
910
|
+
{
|
|
911
|
+
name: "create_connection_link",
|
|
912
|
+
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.",
|
|
913
|
+
schema: CreateConnectionLinkSchema,
|
|
914
|
+
annotations: { title: "Create Human Calendar Setup Link", readOnlyHint: false, destructiveHint: false, idempotentHint: false, openWorldHint: true },
|
|
915
|
+
execute: createExecutor(createConnectionLink)
|
|
916
|
+
},
|
|
917
|
+
{
|
|
918
|
+
name: "get_connection_link",
|
|
919
|
+
description: "Poll provider-neutral human-calendar setup status. The bearer setup URL and provider data are never returned by polling.",
|
|
920
|
+
schema: GetConnectionLinkSchema,
|
|
921
|
+
annotations: { title: "Get Human Calendar Setup Status", readOnlyHint: true, destructiveHint: false, idempotentHint: true, openWorldHint: false },
|
|
922
|
+
execute: createExecutor(getConnectionLink)
|
|
923
|
+
},
|
|
924
|
+
{
|
|
925
|
+
name: "cancel_connection_link",
|
|
926
|
+
description: "Cancel a pending human-calendar setup request and invalidate its setup URL.",
|
|
927
|
+
schema: CancelConnectionLinkSchema,
|
|
928
|
+
annotations: { title: "Cancel Human Calendar Setup Link", readOnlyHint: false, destructiveHint: true, idempotentHint: true, openWorldHint: false },
|
|
929
|
+
execute: createExecutor(cancelConnectionLink)
|
|
930
|
+
},
|
|
883
931
|
// ── Calendar context ───────────────────────────────────────────
|
|
884
932
|
{
|
|
885
933
|
name: "get_calendar_context",
|