@chronary/toolkit 1.5.2 → 1.6.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/CHANGELOG.md +26 -0
- package/README.md +2 -2
- package/dist/ai-sdk.cjs +291 -62
- 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 +291 -62
- package/dist/ai-sdk.js.map +1 -1
- package/dist/{base-DuHHyh4Q.d.cts → base-BL0efzXv.d.cts} +11 -3
- package/dist/{base-DuHHyh4Q.d.ts → base-BL0efzXv.d.ts} +11 -3
- package/dist/index.cjs +336 -64
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +230 -6
- package/dist/index.d.ts +230 -6
- package/dist/index.js +331 -63
- package/dist/index.js.map +1 -1
- package/dist/instructions-CQAfBjV3.d.cts +10 -0
- package/dist/instructions-CQAfBjV3.d.ts +10 -0
- package/dist/langchain.cjs +290 -61
- package/dist/langchain.cjs.map +1 -1
- package/dist/langchain.d.cts +3 -2
- package/dist/langchain.d.ts +3 -2
- package/dist/langchain.js +290 -61
- package/dist/langchain.js.map +1 -1
- package/dist/mastra.cjs +291 -62
- package/dist/mastra.cjs.map +1 -1
- package/dist/mastra.d.cts +3 -2
- package/dist/mastra.d.ts +3 -2
- package/dist/mastra.js +291 -62
- package/dist/mastra.js.map +1 -1
- package/dist/mcp.cjs +313 -68
- package/dist/mcp.cjs.map +1 -1
- package/dist/mcp.d.cts +4 -2
- package/dist/mcp.d.ts +4 -2
- package/dist/mcp.js +311 -67
- package/dist/mcp.js.map +1 -1
- package/dist/openai.cjs +290 -61
- package/dist/openai.cjs.map +1 -1
- package/dist/openai.d.cts +3 -2
- package/dist/openai.d.ts +3 -2
- package/dist/openai.js +290 -61
- package/dist/openai.js.map +1 -1
- package/package.json +5 -5
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { Chronary } from '@chronary/sdk';
|
|
2
2
|
import { z } from 'zod';
|
|
3
3
|
|
|
4
|
-
/** All
|
|
5
|
-
type ToolName = 'list_calendars' | 'get_calendar' | 'create_calendar' | 'update_calendar' | 'delete_calendar' | 'create_booking_page' | 'list_booking_pages' | 'get_booking_page' | 'delete_booking_page' | 'list_events' | 'get_event' | 'create_event' | 'update_event' | 'cancel_event' | 'confirm_event' | 'release_event' | 'create_agent' | 'list_agents' | 'get_agent' | 'update_agent' | 'delete_agent' | 'get_availability' | 'find_meeting_time' | 'create_connection_link' | 'get_connection_link' | 'cancel_connection_link' | 'get_calendar_context' | 'create_proposal' | 'list_proposals' | 'get_proposal' | 'respond_to_proposal' | 'resolve_proposal' | 'cancel_proposal' | 'set_availability_rules' | 'get_availability_rules' | 'clear_availability_rules' | 'list_webhooks' | 'get_webhook' | 'create_webhook' | 'update_webhook' | 'delete_webhook' | 'list_webhook_deliveries' | 'list_ical_subscriptions' | 'get_ical_subscription' | 'subscribe_ical' | 'update_ical_subscription' | 'delete_ical_subscription' | 'sync_ical_subscription' | 'create_scoped_key' | 'list_scoped_keys' | 'revoke_scoped_key' | 'get_audit_log' | 'accept_terms' | 'get_usage';
|
|
4
|
+
/** All 65 tool names exposed by the toolkit (tool-for-tool parity with the hosted MCP server) */
|
|
5
|
+
type ToolName = 'list_calendars' | 'get_calendar' | 'create_calendar' | 'update_calendar' | 'delete_calendar' | 'create_booking_page' | 'list_booking_pages' | 'get_booking_page' | 'delete_booking_page' | 'list_events' | 'list_org_events' | 'get_event' | 'create_event' | 'update_event' | 'cancel_event' | 'confirm_event' | 'release_event' | 'create_agent' | 'list_agents' | 'get_agent' | 'update_agent' | 'delete_agent' | 'get_availability' | 'find_meeting_time' | 'create_connection_link' | 'get_connection_link' | 'cancel_connection_link' | 'get_calendar_context' | 'create_proposal' | 'list_proposals' | 'get_proposal' | 'respond_to_proposal' | 'resolve_proposal' | 'cancel_proposal' | 'set_availability_rules' | 'get_availability_rules' | 'clear_availability_rules' | 'list_webhooks' | 'get_webhook' | 'create_webhook' | 'update_webhook' | 'delete_webhook' | 'list_webhook_deliveries' | 'get_webhook_delivery' | 'send_test_webhook' | 'replay_webhook_delivery' | 'list_ical_subscriptions' | 'get_ical_subscription' | 'subscribe_ical' | 'update_ical_subscription' | 'delete_ical_subscription' | 'sync_ical_subscription' | 'pause_ical_subscription' | 'resume_ical_subscription' | 'create_scoped_key' | 'list_scoped_keys' | 'revoke_scoped_key' | 'get_audit_log' | 'accept_terms' | 'get_usage' | 'get_usage_history' | 'get_billing' | 'request_upgrade' | 'get_upgrade_request' | 'cancel_upgrade_request';
|
|
6
6
|
/** All tool names as a runtime array */
|
|
7
7
|
declare const TOOL_NAMES: ToolName[];
|
|
8
8
|
/** MCP-compatible tool annotations */
|
|
@@ -24,6 +24,13 @@ interface ToolDefinition {
|
|
|
24
24
|
description: string;
|
|
25
25
|
schema: z.ZodObject<z.ZodRawShape>;
|
|
26
26
|
annotations: ToolAnnotations;
|
|
27
|
+
/**
|
|
28
|
+
* Result fields that may hold text written by someone outside the org (a
|
|
29
|
+
* booking-page booker, a webhook receiver). When set, a successful object
|
|
30
|
+
* result starts with an `untrusted_fields` key naming them, so the model
|
|
31
|
+
* treats those values as data, never as instructions.
|
|
32
|
+
*/
|
|
33
|
+
untrustedFields?: readonly string[];
|
|
27
34
|
execute: (client: Chronary, params: Record<string, unknown>) => Promise<ToolResult>;
|
|
28
35
|
}
|
|
29
36
|
/** Config for creating any toolkit adapter */
|
|
@@ -57,4 +64,5 @@ declare abstract class MapToolkit<T> extends BaseToolkit<T> {
|
|
|
57
64
|
getTools(): Record<string, T>;
|
|
58
65
|
}
|
|
59
66
|
|
|
60
|
-
export { BaseToolkit as B,
|
|
67
|
+
export { BaseToolkit as B, ListToolkit as L, MapToolkit as M, TOOL_NAMES as c };
|
|
68
|
+
export type { ChronaryToolkitConfig as C, ToolDefinition as T, ToolAnnotations as a, ToolResult as b, ToolName as d };
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { Chronary } from '@chronary/sdk';
|
|
2
2
|
import { z } from 'zod';
|
|
3
3
|
|
|
4
|
-
/** All
|
|
5
|
-
type ToolName = 'list_calendars' | 'get_calendar' | 'create_calendar' | 'update_calendar' | 'delete_calendar' | 'create_booking_page' | 'list_booking_pages' | 'get_booking_page' | 'delete_booking_page' | 'list_events' | 'get_event' | 'create_event' | 'update_event' | 'cancel_event' | 'confirm_event' | 'release_event' | 'create_agent' | 'list_agents' | 'get_agent' | 'update_agent' | 'delete_agent' | 'get_availability' | 'find_meeting_time' | 'create_connection_link' | 'get_connection_link' | 'cancel_connection_link' | 'get_calendar_context' | 'create_proposal' | 'list_proposals' | 'get_proposal' | 'respond_to_proposal' | 'resolve_proposal' | 'cancel_proposal' | 'set_availability_rules' | 'get_availability_rules' | 'clear_availability_rules' | 'list_webhooks' | 'get_webhook' | 'create_webhook' | 'update_webhook' | 'delete_webhook' | 'list_webhook_deliveries' | 'list_ical_subscriptions' | 'get_ical_subscription' | 'subscribe_ical' | 'update_ical_subscription' | 'delete_ical_subscription' | 'sync_ical_subscription' | 'create_scoped_key' | 'list_scoped_keys' | 'revoke_scoped_key' | 'get_audit_log' | 'accept_terms' | 'get_usage';
|
|
4
|
+
/** All 65 tool names exposed by the toolkit (tool-for-tool parity with the hosted MCP server) */
|
|
5
|
+
type ToolName = 'list_calendars' | 'get_calendar' | 'create_calendar' | 'update_calendar' | 'delete_calendar' | 'create_booking_page' | 'list_booking_pages' | 'get_booking_page' | 'delete_booking_page' | 'list_events' | 'list_org_events' | 'get_event' | 'create_event' | 'update_event' | 'cancel_event' | 'confirm_event' | 'release_event' | 'create_agent' | 'list_agents' | 'get_agent' | 'update_agent' | 'delete_agent' | 'get_availability' | 'find_meeting_time' | 'create_connection_link' | 'get_connection_link' | 'cancel_connection_link' | 'get_calendar_context' | 'create_proposal' | 'list_proposals' | 'get_proposal' | 'respond_to_proposal' | 'resolve_proposal' | 'cancel_proposal' | 'set_availability_rules' | 'get_availability_rules' | 'clear_availability_rules' | 'list_webhooks' | 'get_webhook' | 'create_webhook' | 'update_webhook' | 'delete_webhook' | 'list_webhook_deliveries' | 'get_webhook_delivery' | 'send_test_webhook' | 'replay_webhook_delivery' | 'list_ical_subscriptions' | 'get_ical_subscription' | 'subscribe_ical' | 'update_ical_subscription' | 'delete_ical_subscription' | 'sync_ical_subscription' | 'pause_ical_subscription' | 'resume_ical_subscription' | 'create_scoped_key' | 'list_scoped_keys' | 'revoke_scoped_key' | 'get_audit_log' | 'accept_terms' | 'get_usage' | 'get_usage_history' | 'get_billing' | 'request_upgrade' | 'get_upgrade_request' | 'cancel_upgrade_request';
|
|
6
6
|
/** All tool names as a runtime array */
|
|
7
7
|
declare const TOOL_NAMES: ToolName[];
|
|
8
8
|
/** MCP-compatible tool annotations */
|
|
@@ -24,6 +24,13 @@ interface ToolDefinition {
|
|
|
24
24
|
description: string;
|
|
25
25
|
schema: z.ZodObject<z.ZodRawShape>;
|
|
26
26
|
annotations: ToolAnnotations;
|
|
27
|
+
/**
|
|
28
|
+
* Result fields that may hold text written by someone outside the org (a
|
|
29
|
+
* booking-page booker, a webhook receiver). When set, a successful object
|
|
30
|
+
* result starts with an `untrusted_fields` key naming them, so the model
|
|
31
|
+
* treats those values as data, never as instructions.
|
|
32
|
+
*/
|
|
33
|
+
untrustedFields?: readonly string[];
|
|
27
34
|
execute: (client: Chronary, params: Record<string, unknown>) => Promise<ToolResult>;
|
|
28
35
|
}
|
|
29
36
|
/** Config for creating any toolkit adapter */
|
|
@@ -57,4 +64,5 @@ declare abstract class MapToolkit<T> extends BaseToolkit<T> {
|
|
|
57
64
|
getTools(): Record<string, T>;
|
|
58
65
|
}
|
|
59
66
|
|
|
60
|
-
export { BaseToolkit as B,
|
|
67
|
+
export { BaseToolkit as B, ListToolkit as L, MapToolkit as M, TOOL_NAMES as c };
|
|
68
|
+
export type { ChronaryToolkitConfig as C, ToolDefinition as T, ToolAnnotations as a, ToolResult as b, ToolName as d };
|