@chronary/toolkit 1.7.0 → 1.7.2

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/index.d.cts CHANGED
@@ -1,6 +1,6 @@
1
1
  import { T as ToolDefinition, b as ToolResult } from './base-BL0efzXv.cjs';
2
2
  export { B as BaseToolkit, C as ChronaryToolkitConfig, L as ListToolkit, M as MapToolkit, c as TOOL_NAMES, a as ToolAnnotations, d as ToolName } from './base-BL0efzXv.cjs';
3
- export { M as MCP_SERVER_INSTRUCTIONS } from './instructions-CQAfBjV3.cjs';
3
+ export { M as MCP_SERVER_INSTRUCTIONS } from './instructions-BJQzbMAM.cjs';
4
4
  import { z } from 'zod';
5
5
  import '@chronary/sdk';
6
6
 
package/dist/index.d.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  import { T as ToolDefinition, b as ToolResult } from './base-BL0efzXv.js';
2
2
  export { B as BaseToolkit, C as ChronaryToolkitConfig, L as ListToolkit, M as MapToolkit, c as TOOL_NAMES, a as ToolAnnotations, d as ToolName } from './base-BL0efzXv.js';
3
- export { M as MCP_SERVER_INSTRUCTIONS } from './instructions-CQAfBjV3.js';
3
+ export { M as MCP_SERVER_INSTRUCTIONS } from './instructions-BJQzbMAM.js';
4
4
  import { z } from 'zod';
5
5
  import '@chronary/sdk';
6
6
 
package/dist/index.js CHANGED
@@ -1122,14 +1122,14 @@ var RAW_TOOL_DEFINITIONS = [
1122
1122
  },
1123
1123
  {
1124
1124
  name: "update_agent",
1125
- description: "Update an agent's name, description, metadata, or status (active/paused). Requires an Organization key \u2014 Agent keys cannot mutate agents.",
1125
+ description: "Update an agent's name, description, metadata, or status (active/paused). Setting status on a decommissioned agent restores it and makes its calendars writable again; that is refused with quota_exceeded when the agent, its calendars or their recurring series would put the organization over the plan's agent, calendar or recurring series limit. Requires an Organization key \u2014 Agent keys cannot mutate agents.",
1126
1126
  schema: UpdateAgentSchema,
1127
1127
  annotations: { title: "Update Agent", readOnlyHint: false, destructiveHint: false, idempotentHint: true, openWorldHint: false },
1128
1128
  execute: createExecutor(updateAgent)
1129
1129
  },
1130
1130
  {
1131
1131
  name: "delete_agent",
1132
- description: "Decommission an agent. This marks the agent as decommissioned and revokes all of its Agent keys. Requires an Organization key \u2014 Agent keys cannot delete agents.",
1132
+ description: "Decommission an agent. This marks the agent as decommissioned and revokes all of its Agent keys. Its calendars and events are kept but stop counting toward the plan's calendar limit, and they are read-only (writes return agent_inactive) until the agent is restored with update_agent. Requires an Organization key \u2014 Agent keys cannot delete agents.",
1133
1133
  schema: DeleteAgentSchema,
1134
1134
  annotations: { title: "Delete Agent", readOnlyHint: false, destructiveHint: true, idempotentHint: true, openWorldHint: false },
1135
1135
  execute: createExecutor(deleteAgent)
@@ -1182,7 +1182,7 @@ var RAW_TOOL_DEFINITIONS = [
1182
1182
  // ── Scheduling proposals ───────────────────────────────────────
1183
1183
  {
1184
1184
  name: "create_proposal",
1185
- description: "Create a scheduling proposal \u2014 send a set of candidate time slots to one or more participant agents so they can accept, decline, or counter-propose. The organizer agent owns the proposal; once every participant responds, the system auto-resolves to the highest-scoring slot (or cancels if all decline). Requires an Organization key. Pro plan only.",
1185
+ description: "Create a scheduling proposal \u2014 send a set of candidate time slots to one or more participant agents so they can accept, decline, or counter-propose. The organizer agent owns the proposal; once every participant responds, the system auto-resolves to the highest-scoring slot (or cancels if all decline). Requires an Organization key and a Developer or Pro plan.",
1186
1186
  schema: CreateProposalSchema,
1187
1187
  annotations: { title: "Create Proposal", readOnlyHint: false, destructiveHint: false, idempotentHint: false, openWorldHint: false },
1188
1188
  execute: createExecutor(createProposal)
@@ -1203,21 +1203,21 @@ var RAW_TOOL_DEFINITIONS = [
1203
1203
  },
1204
1204
  {
1205
1205
  name: "respond_to_proposal",
1206
- description: 'Submit a response (accept / decline / counter) on behalf of one participant agent to an open proposal. An "accept" requires the slot id from the proposal; a "counter" can suggest alternative slots. When all participants have responded the proposal auto-resolves \u2014 no separate resolve call needed in the normal flow. Requires an Organization key. Pro plan only.',
1206
+ description: 'Submit a response (accept / decline / counter) on behalf of one participant agent to an open proposal. An "accept" requires the slot id from the proposal; a "counter" can suggest alternative slots. When all participants have responded the proposal auto-resolves \u2014 no separate resolve call needed in the normal flow. Requires an Organization key and a Developer or Pro plan.',
1207
1207
  schema: RespondToProposalSchema,
1208
1208
  annotations: { title: "Respond To Proposal", readOnlyHint: false, destructiveHint: false, idempotentHint: false, openWorldHint: false },
1209
1209
  execute: createExecutor(respondToProposal)
1210
1210
  },
1211
1211
  {
1212
1212
  name: "resolve_proposal",
1213
- description: 'Force-resolve an open proposal using responses collected so far. Picks the highest-scoring slot among those accepted by the most participants and creates a confirmed calendar event. If every response was "decline", the proposal is cancelled instead. Use when you want to close out a proposal without waiting for every participant. Requires an Organization key. Pro plan only.',
1213
+ description: 'Force-resolve an open proposal using responses collected so far. Picks the highest-scoring slot among those accepted by the most participants and creates a confirmed calendar event. If every response was "decline", the proposal is cancelled instead. Use when you want to close out a proposal without waiting for every participant. Requires an Organization key and a Developer or Pro plan.',
1214
1214
  schema: ResolveProposalSchema,
1215
1215
  annotations: { title: "Resolve Proposal", readOnlyHint: false, destructiveHint: false, idempotentHint: true, openWorldHint: false },
1216
1216
  execute: createExecutor(resolveProposal)
1217
1217
  },
1218
1218
  {
1219
1219
  name: "cancel_proposal",
1220
- description: 'Cancel an open proposal. Fires a proposal.cancelled webhook with reason="organizer_cancelled". Requires an Organization key. Pro plan only.',
1220
+ description: 'Cancel an open proposal. Fires a proposal.cancelled webhook with reason="organizer_cancelled". Requires an Organization key. Works on every plan, so an org that dropped to Free can still cancel proposals it made on a paid plan.',
1221
1221
  schema: CancelProposalSchema,
1222
1222
  annotations: { title: "Cancel Proposal", readOnlyHint: false, destructiveHint: true, idempotentHint: true, openWorldHint: false },
1223
1223
  execute: createExecutor(cancelProposal)
@@ -1430,7 +1430,7 @@ var RAW_TOOL_DEFINITIONS = [
1430
1430
  },
1431
1431
  {
1432
1432
  name: "request_upgrade",
1433
- description: "Ask your human to upgrade this Chronary account to Pro. Returns approval_url \u2014 give it to your human; only a human can pay. If reused=true a request is already pending \u2014 do not call again; poll get_upgrade_request at most once a minute. The link opens the Billing page in the Chronary console.",
1433
+ description: "Ask your human to upgrade this Chronary account to the next plan up (Free to Developer, Developer to Pro). Returns approval_url \u2014 give it to your human; only a human can pay. If reused=true a request is already pending \u2014 do not call again; poll get_upgrade_request at most once a minute. The link opens the Billing page in the Chronary console.",
1434
1434
  schema: RequestUpgradeSchema,
1435
1435
  annotations: { title: "Request Upgrade", readOnlyHint: false, destructiveHint: false, idempotentHint: true, openWorldHint: false },
1436
1436
  execute: createExecutor(requestUpgrade)
@@ -1466,7 +1466,7 @@ Typical flow: create_agent -> create_calendar -> create_event / get_availability
1466
1466
 
1467
1467
  When checking availability, always inspect availability_state and warnings before treating returned slots as complete. Human-calendar setup requires a human to open setup_url and consent; agents never receive provider credentials or calendar contents.
1468
1468
 
1469
- Organization keys (chr_sk_) can use every tool; Agent keys (chr_ak_) are limited to their own agent and cannot use org-only tools such as create_agent or find_meeting_time. Scoped keys, cross-agent availability, webhook delivery replay and secret rotation require a Developer or Pro plan; scheduling proposals and temporal holds require Pro.
1469
+ Organization keys (chr_sk_) can use every tool; Agent keys (chr_ak_) are limited to their own agent and cannot use org-only tools such as create_agent or find_meeting_time. Scoped keys, cross-agent availability, scheduling proposals, temporal holds, webhook delivery replay and secret rotation require a Developer or Pro plan.
1470
1470
 
1471
1471
  If you hit a plan limit, don't retry in a loop: call get_billing, then request_upgrade, and give approval_url to your human. Agents cannot pay; a human completes checkout.
1472
1472