patchwork-os 0.2.0-beta.10.canary.98 → 0.2.0-beta.11
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/README.md +20 -1
- package/dist/adapters/grok.js +6 -1
- package/dist/adapters/grok.js.map +1 -1
- package/dist/approvalHttp.js +61 -66
- package/dist/approvalHttp.js.map +1 -1
- package/dist/bridge.js +3 -2
- package/dist/bridge.js.map +1 -1
- package/dist/claudeOrchestrator.js +15 -0
- package/dist/claudeOrchestrator.js.map +1 -1
- package/dist/commands/connect.d.ts +47 -0
- package/dist/commands/connect.js +419 -0
- package/dist/commands/connect.js.map +1 -0
- package/dist/commands/patchworkInit.d.ts +7 -0
- package/dist/commands/patchworkInit.js +26 -0
- package/dist/commands/patchworkInit.js.map +1 -1
- package/dist/commands/recipe.d.ts +14 -0
- package/dist/commands/recipe.js +51 -0
- package/dist/commands/recipe.js.map +1 -1
- package/dist/commands/recipeInstall.js +15 -0
- package/dist/commands/recipeInstall.js.map +1 -1
- package/dist/connectors/postgres.d.ts +7 -0
- package/dist/connectors/postgres.js +16 -2
- package/dist/connectors/postgres.js.map +1 -1
- package/dist/connectors/snowflake.js +6 -0
- package/dist/connectors/snowflake.js.map +1 -1
- package/dist/connectors/tokenStorage.d.ts +8 -0
- package/dist/connectors/tokenStorage.js +42 -3
- package/dist/connectors/tokenStorage.js.map +1 -1
- package/dist/drivers/claude/api.js +15 -2
- package/dist/drivers/claude/api.js.map +1 -1
- package/dist/drivers/claude/subprocess.js +1 -29
- package/dist/drivers/claude/subprocess.js.map +1 -1
- package/dist/drivers/gemini/index.js +9 -5
- package/dist/drivers/gemini/index.js.map +1 -1
- package/dist/drivers/openai/index.js +29 -4
- package/dist/drivers/openai/index.js.map +1 -1
- package/dist/drivers/outputCap.d.ts +27 -0
- package/dist/drivers/outputCap.js +50 -0
- package/dist/drivers/outputCap.js.map +1 -0
- package/dist/featureFlags.d.ts +9 -0
- package/dist/featureFlags.js +16 -0
- package/dist/featureFlags.js.map +1 -1
- package/dist/fp/commandDescription.d.ts +6 -0
- package/dist/fp/commandDescription.js +4 -4
- package/dist/fp/commandDescription.js.map +1 -1
- package/dist/fp/policyParser.js +13 -7
- package/dist/fp/policyParser.js.map +1 -1
- package/dist/haltPushDispatch.js +7 -22
- package/dist/haltPushDispatch.js.map +1 -1
- package/dist/index.js +148 -0
- package/dist/index.js.map +1 -1
- package/dist/mcpRoutes.js +1 -1
- package/dist/mcpRoutes.js.map +1 -1
- package/dist/oauth.d.ts +13 -0
- package/dist/oauth.js +34 -1
- package/dist/oauth.js.map +1 -1
- package/dist/recipeOrchestration.js +10 -0
- package/dist/recipeOrchestration.js.map +1 -1
- package/dist/recipeRoutes.d.ts +39 -0
- package/dist/recipeRoutes.js +214 -12
- package/dist/recipeRoutes.js.map +1 -1
- package/dist/recipes/agentExecutor.d.ts +20 -0
- package/dist/recipes/agentExecutor.js +32 -10
- package/dist/recipes/agentExecutor.js.map +1 -1
- package/dist/recipes/chainedRunner.d.ts +41 -2
- package/dist/recipes/chainedRunner.js +134 -6
- package/dist/recipes/chainedRunner.js.map +1 -1
- package/dist/recipes/connectorPreflight.js +30 -0
- package/dist/recipes/connectorPreflight.js.map +1 -1
- package/dist/recipes/haltCategory.d.ts +5 -0
- package/dist/recipes/haltCategory.js +7 -1
- package/dist/recipes/haltCategory.js.map +1 -1
- package/dist/recipes/judgeVerdict.d.ts +10 -0
- package/dist/recipes/judgeVerdict.js +10 -0
- package/dist/recipes/judgeVerdict.js.map +1 -1
- package/dist/recipes/names.d.ts +5 -0
- package/dist/recipes/names.js +10 -5
- package/dist/recipes/names.js.map +1 -1
- package/dist/recipes/parser.js +32 -9
- package/dist/recipes/parser.js.map +1 -1
- package/dist/recipes/pricing/costRouter.d.ts +43 -0
- package/dist/recipes/pricing/costRouter.js +44 -0
- package/dist/recipes/pricing/costRouter.js.map +1 -0
- package/dist/recipes/pricing/priceTable.d.ts +76 -0
- package/dist/recipes/pricing/priceTable.js +144 -0
- package/dist/recipes/pricing/priceTable.js.map +1 -0
- package/dist/recipes/runBudget.d.ts +82 -32
- package/dist/recipes/runBudget.js +182 -49
- package/dist/recipes/runBudget.js.map +1 -1
- package/dist/recipes/schema.d.ts +25 -4
- package/dist/recipes/schemaGenerator.d.ts +9 -0
- package/dist/recipes/schemaGenerator.js +386 -75
- package/dist/recipes/schemaGenerator.js.map +1 -1
- package/dist/recipes/simulation/aggregateRunRisk.d.ts +43 -0
- package/dist/recipes/simulation/aggregateRunRisk.js +117 -0
- package/dist/recipes/simulation/aggregateRunRisk.js.map +1 -0
- package/dist/recipes/simulation/costProjector.d.ts +32 -0
- package/dist/recipes/simulation/costProjector.js +194 -0
- package/dist/recipes/simulation/costProjector.js.map +1 -0
- package/dist/recipes/simulation/sideEffects.d.ts +32 -0
- package/dist/recipes/simulation/sideEffects.js +62 -0
- package/dist/recipes/simulation/sideEffects.js.map +1 -0
- package/dist/recipes/simulation/simulate.d.ts +36 -0
- package/dist/recipes/simulation/simulate.js +264 -0
- package/dist/recipes/simulation/simulate.js.map +1 -0
- package/dist/recipes/simulation/simulateMockedRun.d.ts +52 -0
- package/dist/recipes/simulation/simulateMockedRun.js +72 -0
- package/dist/recipes/simulation/simulateMockedRun.js.map +1 -0
- package/dist/recipes/simulation/synthesizeMockedOutputs.d.ts +31 -0
- package/dist/recipes/simulation/synthesizeMockedOutputs.js +50 -0
- package/dist/recipes/simulation/synthesizeMockedOutputs.js.map +1 -0
- package/dist/recipes/simulation/types.d.ts +198 -0
- package/dist/recipes/simulation/types.js +30 -0
- package/dist/recipes/simulation/types.js.map +1 -0
- package/dist/recipes/stepObservation.d.ts +12 -0
- package/dist/recipes/stepObservation.js +21 -1
- package/dist/recipes/stepObservation.js.map +1 -1
- package/dist/recipes/tools/airtable.d.ts +15 -0
- package/dist/recipes/tools/airtable.js +240 -0
- package/dist/recipes/tools/airtable.js.map +1 -0
- package/dist/recipes/tools/caldiy.d.ts +13 -0
- package/dist/recipes/tools/caldiy.js +214 -0
- package/dist/recipes/tools/caldiy.js.map +1 -0
- package/dist/recipes/tools/circleci.d.ts +10 -0
- package/dist/recipes/tools/circleci.js +204 -0
- package/dist/recipes/tools/circleci.js.map +1 -0
- package/dist/recipes/tools/cloudflare.d.ts +13 -0
- package/dist/recipes/tools/cloudflare.js +211 -0
- package/dist/recipes/tools/cloudflare.js.map +1 -0
- package/dist/recipes/tools/docs.d.ts +18 -0
- package/dist/recipes/tools/docs.js +94 -0
- package/dist/recipes/tools/docs.js.map +1 -0
- package/dist/recipes/tools/elasticsearch.d.ts +11 -0
- package/dist/recipes/tools/elasticsearch.js +156 -0
- package/dist/recipes/tools/elasticsearch.js.map +1 -0
- package/dist/recipes/tools/figma.d.ts +12 -0
- package/dist/recipes/tools/figma.js +194 -0
- package/dist/recipes/tools/figma.js.map +1 -0
- package/dist/recipes/tools/grafana.d.ts +11 -0
- package/dist/recipes/tools/grafana.js +216 -0
- package/dist/recipes/tools/grafana.js.map +1 -0
- package/dist/recipes/tools/http.d.ts +1 -1
- package/dist/recipes/tools/http.js +10 -28
- package/dist/recipes/tools/http.js.map +1 -1
- package/dist/recipes/tools/index.d.ts +26 -0
- package/dist/recipes/tools/index.js +26 -0
- package/dist/recipes/tools/index.js.map +1 -1
- package/dist/recipes/tools/monday.d.ts +22 -0
- package/dist/recipes/tools/monday.js +242 -0
- package/dist/recipes/tools/monday.js.map +1 -0
- package/dist/recipes/tools/obsidian.d.ts +15 -0
- package/dist/recipes/tools/obsidian.js +172 -0
- package/dist/recipes/tools/obsidian.js.map +1 -0
- package/dist/recipes/tools/paystack.d.ts +11 -0
- package/dist/recipes/tools/paystack.js +211 -0
- package/dist/recipes/tools/paystack.js.map +1 -0
- package/dist/recipes/tools/pipedrive.d.ts +16 -0
- package/dist/recipes/tools/pipedrive.js +233 -0
- package/dist/recipes/tools/pipedrive.js.map +1 -0
- package/dist/recipes/tools/postgres.d.ts +15 -0
- package/dist/recipes/tools/postgres.js +185 -0
- package/dist/recipes/tools/postgres.js.map +1 -0
- package/dist/recipes/tools/posthog.d.ts +16 -0
- package/dist/recipes/tools/posthog.js +219 -0
- package/dist/recipes/tools/posthog.js.map +1 -0
- package/dist/recipes/tools/redis.d.ts +9 -0
- package/dist/recipes/tools/redis.js +140 -0
- package/dist/recipes/tools/redis.js.map +1 -0
- package/dist/recipes/tools/resend.d.ts +8 -0
- package/dist/recipes/tools/resend.js +153 -0
- package/dist/recipes/tools/resend.js.map +1 -0
- package/dist/recipes/tools/salesforce.d.ts +16 -0
- package/dist/recipes/tools/salesforce.js +184 -0
- package/dist/recipes/tools/salesforce.js.map +1 -0
- package/dist/recipes/tools/sendgrid.d.ts +9 -0
- package/dist/recipes/tools/sendgrid.js +174 -0
- package/dist/recipes/tools/sendgrid.js.map +1 -0
- package/dist/recipes/tools/shopify.d.ts +16 -0
- package/dist/recipes/tools/shopify.js +265 -0
- package/dist/recipes/tools/shopify.js.map +1 -0
- package/dist/recipes/tools/snowflake.d.ts +16 -0
- package/dist/recipes/tools/snowflake.js +173 -0
- package/dist/recipes/tools/snowflake.js.map +1 -0
- package/dist/recipes/tools/stripe.js +13 -12
- package/dist/recipes/tools/stripe.js.map +1 -1
- package/dist/recipes/tools/supabase.d.ts +9 -0
- package/dist/recipes/tools/supabase.js +132 -0
- package/dist/recipes/tools/supabase.js.map +1 -0
- package/dist/recipes/tools/todoist.d.ts +15 -0
- package/dist/recipes/tools/todoist.js +227 -0
- package/dist/recipes/tools/todoist.js.map +1 -0
- package/dist/recipes/tools/twilio.d.ts +11 -0
- package/dist/recipes/tools/twilio.js +180 -0
- package/dist/recipes/tools/twilio.js.map +1 -0
- package/dist/recipes/tools/vercel.d.ts +9 -0
- package/dist/recipes/tools/vercel.js +145 -0
- package/dist/recipes/tools/vercel.js.map +1 -0
- package/dist/recipes/tools/webflow.d.ts +11 -0
- package/dist/recipes/tools/webflow.js +243 -0
- package/dist/recipes/tools/webflow.js.map +1 -0
- package/dist/recipes/tools/woocommerce.d.ts +18 -0
- package/dist/recipes/tools/woocommerce.js +259 -0
- package/dist/recipes/tools/woocommerce.js.map +1 -0
- package/dist/recipes/tools/wrapConnectorExecute.d.ts +25 -0
- package/dist/recipes/tools/wrapConnectorExecute.js +37 -0
- package/dist/recipes/tools/wrapConnectorExecute.js.map +1 -0
- package/dist/recipes/validation.js +264 -0
- package/dist/recipes/validation.js.map +1 -1
- package/dist/recipes/yamlRunner.d.ts +112 -3
- package/dist/recipes/yamlRunner.js +482 -19
- package/dist/recipes/yamlRunner.js.map +1 -1
- package/dist/runLog.d.ts +46 -0
- package/dist/runLog.js +4 -0
- package/dist/runLog.js.map +1 -1
- package/dist/schemas/recipe.v1.json +217 -11
- package/dist/server.d.ts +3 -0
- package/dist/server.js +4 -0
- package/dist/server.js.map +1 -1
- package/dist/streamableHttp.js +3 -2
- package/dist/streamableHttp.js.map +1 -1
- package/dist/tools/gitWrite.js +5 -1
- package/dist/tools/gitWrite.js.map +1 -1
- package/dist/tools/terminal.js +15 -49
- package/dist/tools/terminal.js.map +1 -1
- package/dist/transport.d.ts +1 -0
- package/dist/transport.js +7 -0
- package/dist/transport.js.map +1 -1
- package/package.json +3 -3
- package/scripts/mcp-stdio-shim.cjs +218 -84
- package/templates/recipes/incident-to-pr.yaml +187 -0
|
@@ -0,0 +1,227 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Todoist tools — list/create/close tasks and list projects via the Todoist
|
|
3
|
+
* REST API v2 connector.
|
|
4
|
+
*
|
|
5
|
+
* Self-registering tool module for the recipe tool registry. Mirrors the
|
|
6
|
+
* positional signatures of `TodoistConnector` (src/connectors/todoist.ts):
|
|
7
|
+
* - getTasks(projectId?, filter?, limit?) → TodoistTask[]
|
|
8
|
+
* - createTask(content, projectId?, description?, dueString?, priority?, labels?) → TodoistTask
|
|
9
|
+
* - closeTask(id) → void
|
|
10
|
+
* - getProjects() → TodoistProject[]
|
|
11
|
+
*
|
|
12
|
+
* Read tools declare `isWrite: false`; mutating tools declare `isWrite: true`
|
|
13
|
+
* so the approval queue / kill-switch gate them appropriately.
|
|
14
|
+
*/
|
|
15
|
+
import { CommonSchemas, registerTool } from "../toolRegistry.js";
|
|
16
|
+
// ============================================================================
|
|
17
|
+
// todoist.list_tasks
|
|
18
|
+
// ============================================================================
|
|
19
|
+
registerTool({
|
|
20
|
+
id: "todoist.list_tasks",
|
|
21
|
+
namespace: "todoist",
|
|
22
|
+
description: "List active Todoist tasks, optionally filtered by project, a Todoist filter query, or a result limit.",
|
|
23
|
+
paramsSchema: {
|
|
24
|
+
type: "object",
|
|
25
|
+
properties: {
|
|
26
|
+
projectId: {
|
|
27
|
+
type: "string",
|
|
28
|
+
description: "Filter to tasks in this Todoist project id",
|
|
29
|
+
},
|
|
30
|
+
filter: {
|
|
31
|
+
type: "string",
|
|
32
|
+
description: "Todoist filter query (e.g. 'today | overdue', 'p1 & #Work')",
|
|
33
|
+
},
|
|
34
|
+
limit: {
|
|
35
|
+
type: "number",
|
|
36
|
+
description: "Max number of tasks to return",
|
|
37
|
+
},
|
|
38
|
+
into: CommonSchemas.into,
|
|
39
|
+
},
|
|
40
|
+
required: [],
|
|
41
|
+
},
|
|
42
|
+
outputSchema: {
|
|
43
|
+
type: "array",
|
|
44
|
+
items: {
|
|
45
|
+
type: "object",
|
|
46
|
+
properties: {
|
|
47
|
+
id: { type: "string" },
|
|
48
|
+
content: { type: "string" },
|
|
49
|
+
description: { type: "string" },
|
|
50
|
+
project_id: { type: "string" },
|
|
51
|
+
section_id: { type: ["string", "null"] },
|
|
52
|
+
parent_id: { type: ["string", "null"] },
|
|
53
|
+
order: { type: "number" },
|
|
54
|
+
priority: { type: "number" },
|
|
55
|
+
due: { type: ["object", "null"] },
|
|
56
|
+
labels: { type: "array", items: { type: "string" } },
|
|
57
|
+
is_completed: { type: "boolean" },
|
|
58
|
+
created_at: { type: "string" },
|
|
59
|
+
url: { type: "string" },
|
|
60
|
+
assignee_id: { type: ["string", "null"] },
|
|
61
|
+
assigner_id: { type: ["string", "null"] },
|
|
62
|
+
comment_count: { type: "number" },
|
|
63
|
+
creator_id: { type: "string" },
|
|
64
|
+
},
|
|
65
|
+
},
|
|
66
|
+
},
|
|
67
|
+
riskDefault: "low",
|
|
68
|
+
isWrite: false,
|
|
69
|
+
isConnector: true,
|
|
70
|
+
execute: async ({ params }) => {
|
|
71
|
+
const { getTodoistConnector } = await import("../../connectors/todoist.js");
|
|
72
|
+
const connector = getTodoistConnector();
|
|
73
|
+
const result = await connector.getTasks(typeof params.projectId === "string" ? params.projectId : undefined, typeof params.filter === "string" ? params.filter : undefined, typeof params.limit === "number" ? params.limit : undefined);
|
|
74
|
+
return JSON.stringify(result);
|
|
75
|
+
},
|
|
76
|
+
});
|
|
77
|
+
// ============================================================================
|
|
78
|
+
// todoist.create_task (write-gated)
|
|
79
|
+
// ============================================================================
|
|
80
|
+
registerTool({
|
|
81
|
+
id: "todoist.create_task",
|
|
82
|
+
namespace: "todoist",
|
|
83
|
+
description: "Create a new Todoist task with the given content, optionally placed in a project, described, due-dated, prioritised, or labelled.",
|
|
84
|
+
paramsSchema: {
|
|
85
|
+
type: "object",
|
|
86
|
+
properties: {
|
|
87
|
+
content: {
|
|
88
|
+
type: "string",
|
|
89
|
+
description: "Task content / title (required)",
|
|
90
|
+
},
|
|
91
|
+
projectId: {
|
|
92
|
+
type: "string",
|
|
93
|
+
description: "Optional project id to create the task in",
|
|
94
|
+
},
|
|
95
|
+
description: {
|
|
96
|
+
type: "string",
|
|
97
|
+
description: "Optional task description / notes",
|
|
98
|
+
},
|
|
99
|
+
dueString: {
|
|
100
|
+
type: "string",
|
|
101
|
+
description: "Optional natural-language due date (e.g. 'tomorrow at 5pm')",
|
|
102
|
+
},
|
|
103
|
+
priority: {
|
|
104
|
+
type: "number",
|
|
105
|
+
description: "Optional priority 1 (normal) to 4 (urgent)",
|
|
106
|
+
},
|
|
107
|
+
labels: {
|
|
108
|
+
type: "array",
|
|
109
|
+
items: { type: "string" },
|
|
110
|
+
description: "Optional list of label names",
|
|
111
|
+
},
|
|
112
|
+
into: CommonSchemas.into,
|
|
113
|
+
},
|
|
114
|
+
required: ["content"],
|
|
115
|
+
},
|
|
116
|
+
outputSchema: {
|
|
117
|
+
type: "object",
|
|
118
|
+
properties: {
|
|
119
|
+
id: { type: "string" },
|
|
120
|
+
content: { type: "string" },
|
|
121
|
+
description: { type: "string" },
|
|
122
|
+
project_id: { type: "string" },
|
|
123
|
+
section_id: { type: ["string", "null"] },
|
|
124
|
+
parent_id: { type: ["string", "null"] },
|
|
125
|
+
order: { type: "number" },
|
|
126
|
+
priority: { type: "number" },
|
|
127
|
+
due: { type: ["object", "null"] },
|
|
128
|
+
labels: { type: "array", items: { type: "string" } },
|
|
129
|
+
is_completed: { type: "boolean" },
|
|
130
|
+
created_at: { type: "string" },
|
|
131
|
+
url: { type: "string" },
|
|
132
|
+
comment_count: { type: "number" },
|
|
133
|
+
creator_id: { type: "string" },
|
|
134
|
+
},
|
|
135
|
+
},
|
|
136
|
+
riskDefault: "medium",
|
|
137
|
+
isWrite: true,
|
|
138
|
+
isConnector: true,
|
|
139
|
+
execute: async ({ params }) => {
|
|
140
|
+
const { getTodoistConnector } = await import("../../connectors/todoist.js");
|
|
141
|
+
const connector = getTodoistConnector();
|
|
142
|
+
const result = await connector.createTask(params.content, typeof params.projectId === "string" ? params.projectId : undefined, typeof params.description === "string" ? params.description : undefined, typeof params.dueString === "string" ? params.dueString : undefined, typeof params.priority === "number" ? params.priority : undefined, Array.isArray(params.labels) ? params.labels : undefined);
|
|
143
|
+
return JSON.stringify(result);
|
|
144
|
+
},
|
|
145
|
+
});
|
|
146
|
+
// ============================================================================
|
|
147
|
+
// todoist.close_task (write-gated)
|
|
148
|
+
// ============================================================================
|
|
149
|
+
registerTool({
|
|
150
|
+
id: "todoist.close_task",
|
|
151
|
+
namespace: "todoist",
|
|
152
|
+
description: "Close (complete) a Todoist task by id. Recurring tasks advance to their next occurrence.",
|
|
153
|
+
paramsSchema: {
|
|
154
|
+
type: "object",
|
|
155
|
+
properties: {
|
|
156
|
+
id: {
|
|
157
|
+
type: "string",
|
|
158
|
+
description: "Todoist task id to close (required)",
|
|
159
|
+
},
|
|
160
|
+
into: CommonSchemas.into,
|
|
161
|
+
},
|
|
162
|
+
required: ["id"],
|
|
163
|
+
},
|
|
164
|
+
outputSchema: {
|
|
165
|
+
type: "object",
|
|
166
|
+
properties: {
|
|
167
|
+
ok: { type: "boolean" },
|
|
168
|
+
id: { type: "string" },
|
|
169
|
+
},
|
|
170
|
+
},
|
|
171
|
+
riskDefault: "medium",
|
|
172
|
+
isWrite: true,
|
|
173
|
+
isConnector: true,
|
|
174
|
+
execute: async ({ params }) => {
|
|
175
|
+
const { getTodoistConnector } = await import("../../connectors/todoist.js");
|
|
176
|
+
const connector = getTodoistConnector();
|
|
177
|
+
const id = params.id;
|
|
178
|
+
await connector.closeTask(id);
|
|
179
|
+
// closeTask resolves to void; surface a small structured ack so the tool
|
|
180
|
+
// satisfies the `string | null` execute contract and downstream
|
|
181
|
+
// `{{steps.x.ok}}` references stay coherent.
|
|
182
|
+
return JSON.stringify({ ok: true, id });
|
|
183
|
+
},
|
|
184
|
+
});
|
|
185
|
+
// ============================================================================
|
|
186
|
+
// todoist.list_projects
|
|
187
|
+
// ============================================================================
|
|
188
|
+
registerTool({
|
|
189
|
+
id: "todoist.list_projects",
|
|
190
|
+
namespace: "todoist",
|
|
191
|
+
description: "List all Todoist projects for the authenticated account.",
|
|
192
|
+
paramsSchema: {
|
|
193
|
+
type: "object",
|
|
194
|
+
properties: {
|
|
195
|
+
into: CommonSchemas.into,
|
|
196
|
+
},
|
|
197
|
+
required: [],
|
|
198
|
+
},
|
|
199
|
+
outputSchema: {
|
|
200
|
+
type: "array",
|
|
201
|
+
items: {
|
|
202
|
+
type: "object",
|
|
203
|
+
properties: {
|
|
204
|
+
id: { type: "string" },
|
|
205
|
+
name: { type: "string" },
|
|
206
|
+
color: { type: "string" },
|
|
207
|
+
parent_id: { type: ["string", "null"] },
|
|
208
|
+
order: { type: "number" },
|
|
209
|
+
is_favorite: { type: "boolean" },
|
|
210
|
+
is_inbox_project: { type: "boolean" },
|
|
211
|
+
is_team_inbox: { type: "boolean" },
|
|
212
|
+
is_shared: { type: "boolean" },
|
|
213
|
+
url: { type: "string" },
|
|
214
|
+
},
|
|
215
|
+
},
|
|
216
|
+
},
|
|
217
|
+
riskDefault: "low",
|
|
218
|
+
isWrite: false,
|
|
219
|
+
isConnector: true,
|
|
220
|
+
execute: async () => {
|
|
221
|
+
const { getTodoistConnector } = await import("../../connectors/todoist.js");
|
|
222
|
+
const connector = getTodoistConnector();
|
|
223
|
+
const result = await connector.getProjects();
|
|
224
|
+
return JSON.stringify(result);
|
|
225
|
+
},
|
|
226
|
+
});
|
|
227
|
+
//# sourceMappingURL=todoist.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"todoist.js","sourceRoot":"","sources":["../../../src/recipes/tools/todoist.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG;AAEH,OAAO,EAAE,aAAa,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAC;AAEjE,+EAA+E;AAC/E,qBAAqB;AACrB,+EAA+E;AAE/E,YAAY,CAAC;IACX,EAAE,EAAE,oBAAoB;IACxB,SAAS,EAAE,SAAS;IACpB,WAAW,EACT,uGAAuG;IACzG,YAAY,EAAE;QACZ,IAAI,EAAE,QAAQ;QACd,UAAU,EAAE;YACV,SAAS,EAAE;gBACT,IAAI,EAAE,QAAQ;gBACd,WAAW,EAAE,4CAA4C;aAC1D;YACD,MAAM,EAAE;gBACN,IAAI,EAAE,QAAQ;gBACd,WAAW,EACT,6DAA6D;aAChE;YACD,KAAK,EAAE;gBACL,IAAI,EAAE,QAAQ;gBACd,WAAW,EAAE,+BAA+B;aAC7C;YACD,IAAI,EAAE,aAAa,CAAC,IAAI;SACzB;QACD,QAAQ,EAAE,EAAE;KACb;IACD,YAAY,EAAE;QACZ,IAAI,EAAE,OAAO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AI,EAAE,QAAQ,EAAE;gBACzB,WAAW,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE;gBAChC,gBAAgB,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE;gBACrC,aAAa,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE;gBAClC,SAAS,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE;gBAC9B,GAAG,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE;aACxB;SACF;KACF;IACD,WAAW,EAAE,KAAK;IAClB,OAAO,EAAE,KAAK;IACd,WAAW,EAAE,IAAI;IACjB,OAAO,EAAE,KAAK,IAAI,EAAE;QAClB,MAAM,EAAE,mBAAmB,EAAE,GAAG,MAAM,MAAM,CAAC,6BAA6B,CAAC,CAAC;QAC5E,MAAM,SAAS,GAAG,mBAAmB,EAAE,CAAC;QACxC,MAAM,MAAM,GAAG,MAAM,SAAS,CAAC,WAAW,EAAE,CAAC;QAC7C,OAAO,IAAI,CAAC,SAAS,CAAC,MAAM,CAAC,CAAC;IAChC,CAAC;CACF,CAAC,CAAC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Twilio tools — SMS send + message read access via the Twilio REST API.
|
|
3
|
+
*
|
|
4
|
+
* Self-registering tool module for the recipe tool registry. Wraps the
|
|
5
|
+
* `TwilioConnector` methods (`sendSms`, `listMessages`, `getMessage`).
|
|
6
|
+
*
|
|
7
|
+
* `send_sms` is write-gated (isWrite: true) so the approval queue and the
|
|
8
|
+
* write kill-switch gate it. Read tools (`list_messages`, `get_message`) are
|
|
9
|
+
* isWrite: false.
|
|
10
|
+
*/
|
|
11
|
+
export {};
|
|
@@ -0,0 +1,180 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Twilio tools — SMS send + message read access via the Twilio REST API.
|
|
3
|
+
*
|
|
4
|
+
* Self-registering tool module for the recipe tool registry. Wraps the
|
|
5
|
+
* `TwilioConnector` methods (`sendSms`, `listMessages`, `getMessage`).
|
|
6
|
+
*
|
|
7
|
+
* `send_sms` is write-gated (isWrite: true) so the approval queue and the
|
|
8
|
+
* write kill-switch gate it. Read tools (`list_messages`, `get_message`) are
|
|
9
|
+
* isWrite: false.
|
|
10
|
+
*/
|
|
11
|
+
import { CommonSchemas, registerTool } from "../toolRegistry.js";
|
|
12
|
+
import { wrapConnectorExecute } from "./wrapConnectorExecute.js";
|
|
13
|
+
// ============================================================================
|
|
14
|
+
// twilio.send_sms (write-gated)
|
|
15
|
+
// ============================================================================
|
|
16
|
+
registerTool({
|
|
17
|
+
id: "twilio.send_sms",
|
|
18
|
+
namespace: "twilio",
|
|
19
|
+
description: "Send an SMS via Twilio. 'to' and 'body' are required; 'from' falls back to the connector's defaultFrom. Phone numbers must be E.164 (e.g. +14155551234).",
|
|
20
|
+
paramsSchema: {
|
|
21
|
+
type: "object",
|
|
22
|
+
properties: {
|
|
23
|
+
to: {
|
|
24
|
+
type: "string",
|
|
25
|
+
description: "Destination phone number in E.164 format (+14155551234)",
|
|
26
|
+
},
|
|
27
|
+
body: {
|
|
28
|
+
type: "string",
|
|
29
|
+
description: "SMS message body text",
|
|
30
|
+
},
|
|
31
|
+
from: {
|
|
32
|
+
type: "string",
|
|
33
|
+
description: "Optional sender phone number in E.164 format; defaults to the connector's configured defaultFrom",
|
|
34
|
+
},
|
|
35
|
+
into: CommonSchemas.into,
|
|
36
|
+
},
|
|
37
|
+
required: ["to", "body"],
|
|
38
|
+
},
|
|
39
|
+
outputSchema: {
|
|
40
|
+
type: "object",
|
|
41
|
+
properties: {
|
|
42
|
+
sid: { type: "string" },
|
|
43
|
+
account_sid: { type: "string" },
|
|
44
|
+
to: { type: "string" },
|
|
45
|
+
from: { type: "string" },
|
|
46
|
+
body: { type: "string" },
|
|
47
|
+
status: { type: "string" },
|
|
48
|
+
direction: { type: "string" },
|
|
49
|
+
date_sent: { type: ["string", "null"] },
|
|
50
|
+
date_created: { type: "string" },
|
|
51
|
+
date_updated: { type: "string" },
|
|
52
|
+
price: { type: ["string", "null"] },
|
|
53
|
+
price_unit: { type: ["string", "null"] },
|
|
54
|
+
error_code: { type: ["number", "null"] },
|
|
55
|
+
error_message: { type: ["string", "null"] },
|
|
56
|
+
num_segments: { type: "string" },
|
|
57
|
+
num_media: { type: "string" },
|
|
58
|
+
uri: { type: "string" },
|
|
59
|
+
},
|
|
60
|
+
},
|
|
61
|
+
riskDefault: "medium",
|
|
62
|
+
isWrite: true,
|
|
63
|
+
isConnector: true,
|
|
64
|
+
execute: wrapConnectorExecute(async ({ params }) => {
|
|
65
|
+
const { getTwilioConnector } = await import("../../connectors/twilio.js");
|
|
66
|
+
const connector = getTwilioConnector();
|
|
67
|
+
const result = await connector.sendSms({
|
|
68
|
+
to: params.to,
|
|
69
|
+
body: params.body,
|
|
70
|
+
from: typeof params.from === "string" ? params.from : undefined,
|
|
71
|
+
});
|
|
72
|
+
return JSON.stringify(result);
|
|
73
|
+
}),
|
|
74
|
+
});
|
|
75
|
+
// ============================================================================
|
|
76
|
+
// twilio.list_messages
|
|
77
|
+
// ============================================================================
|
|
78
|
+
registerTool({
|
|
79
|
+
id: "twilio.list_messages",
|
|
80
|
+
namespace: "twilio",
|
|
81
|
+
description: "List Twilio messages, optionally filtered by 'to', 'from', or 'dateSent' (YYYY-MM-DD).",
|
|
82
|
+
paramsSchema: {
|
|
83
|
+
type: "object",
|
|
84
|
+
properties: {
|
|
85
|
+
to: {
|
|
86
|
+
type: "string",
|
|
87
|
+
description: "Filter by destination phone number (E.164)",
|
|
88
|
+
},
|
|
89
|
+
from: {
|
|
90
|
+
type: "string",
|
|
91
|
+
description: "Filter by sender phone number (E.164)",
|
|
92
|
+
},
|
|
93
|
+
dateSent: {
|
|
94
|
+
type: "string",
|
|
95
|
+
description: "Filter by send date (YYYY-MM-DD)",
|
|
96
|
+
},
|
|
97
|
+
limit: {
|
|
98
|
+
type: "number",
|
|
99
|
+
description: "Max number of messages to return (default 20)",
|
|
100
|
+
default: 20,
|
|
101
|
+
},
|
|
102
|
+
into: CommonSchemas.into,
|
|
103
|
+
},
|
|
104
|
+
required: [],
|
|
105
|
+
},
|
|
106
|
+
outputSchema: {
|
|
107
|
+
type: "object",
|
|
108
|
+
properties: {
|
|
109
|
+
messages: { type: "array", items: { type: "object" } },
|
|
110
|
+
page: { type: "number" },
|
|
111
|
+
page_size: { type: "number" },
|
|
112
|
+
next_page_uri: { type: ["string", "null"] },
|
|
113
|
+
},
|
|
114
|
+
},
|
|
115
|
+
riskDefault: "low",
|
|
116
|
+
isWrite: false,
|
|
117
|
+
isConnector: true,
|
|
118
|
+
execute: wrapConnectorExecute(async ({ params }) => {
|
|
119
|
+
const { getTwilioConnector } = await import("../../connectors/twilio.js");
|
|
120
|
+
const connector = getTwilioConnector();
|
|
121
|
+
const result = await connector.listMessages({
|
|
122
|
+
to: typeof params.to === "string" ? params.to : undefined,
|
|
123
|
+
from: typeof params.from === "string" ? params.from : undefined,
|
|
124
|
+
dateSent: typeof params.dateSent === "string" ? params.dateSent : undefined,
|
|
125
|
+
limit: typeof params.limit === "number" ? params.limit : undefined,
|
|
126
|
+
});
|
|
127
|
+
return JSON.stringify(result);
|
|
128
|
+
}),
|
|
129
|
+
});
|
|
130
|
+
// ============================================================================
|
|
131
|
+
// twilio.get_message
|
|
132
|
+
// ============================================================================
|
|
133
|
+
registerTool({
|
|
134
|
+
id: "twilio.get_message",
|
|
135
|
+
namespace: "twilio",
|
|
136
|
+
description: "Fetch a single Twilio message by its message SID (SM...).",
|
|
137
|
+
paramsSchema: {
|
|
138
|
+
type: "object",
|
|
139
|
+
properties: {
|
|
140
|
+
messageSid: {
|
|
141
|
+
type: "string",
|
|
142
|
+
description: "Twilio message SID (SM...)",
|
|
143
|
+
},
|
|
144
|
+
into: CommonSchemas.into,
|
|
145
|
+
},
|
|
146
|
+
required: ["messageSid"],
|
|
147
|
+
},
|
|
148
|
+
outputSchema: {
|
|
149
|
+
type: "object",
|
|
150
|
+
properties: {
|
|
151
|
+
sid: { type: "string" },
|
|
152
|
+
account_sid: { type: "string" },
|
|
153
|
+
to: { type: "string" },
|
|
154
|
+
from: { type: "string" },
|
|
155
|
+
body: { type: "string" },
|
|
156
|
+
status: { type: "string" },
|
|
157
|
+
direction: { type: "string" },
|
|
158
|
+
date_sent: { type: ["string", "null"] },
|
|
159
|
+
date_created: { type: "string" },
|
|
160
|
+
date_updated: { type: "string" },
|
|
161
|
+
price: { type: ["string", "null"] },
|
|
162
|
+
price_unit: { type: ["string", "null"] },
|
|
163
|
+
error_code: { type: ["number", "null"] },
|
|
164
|
+
error_message: { type: ["string", "null"] },
|
|
165
|
+
num_segments: { type: "string" },
|
|
166
|
+
num_media: { type: "string" },
|
|
167
|
+
uri: { type: "string" },
|
|
168
|
+
},
|
|
169
|
+
},
|
|
170
|
+
riskDefault: "low",
|
|
171
|
+
isWrite: false,
|
|
172
|
+
isConnector: true,
|
|
173
|
+
execute: wrapConnectorExecute(async ({ params }) => {
|
|
174
|
+
const { getTwilioConnector } = await import("../../connectors/twilio.js");
|
|
175
|
+
const connector = getTwilioConnector();
|
|
176
|
+
const result = await connector.getMessage(params.messageSid);
|
|
177
|
+
return JSON.stringify(result);
|
|
178
|
+
}),
|
|
179
|
+
});
|
|
180
|
+
//# sourceMappingURL=twilio.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"twilio.js","sourceRoot":"","sources":["../../../src/recipes/tools/twilio.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAEH,OAAO,EAAE,aAAa,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAC;AACjE,OAAO,EAAE,oBAAoB,EAAE,MAAM,2BAA2B,CAAC;AAEjE,+EAA+E;AAC/E,iCAAiC;AACjC,+EAA+E;AAE/E,YAAY,CAAC;IACX,EAAE,EAAE,iBAAiB;IACrB,SAAS,EAAE,QAAQ;IACnB,WAAW,EACT,0JAA0J;IAC5J,YAAY,EAAE;QACZ,IAAI,EAAE,QAAQ;QACd,UAAU,EAAE;YACV,EAAE,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,EAAE,MAAM,CAAC,EAAE;YACxC,aAAa,EAAE,EAAE,IAAI,EAAE,CAAC,QAAQ,EAAE,MAAM,CAAC,EAAE;YAC3C,YAAY,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE;YAChC,SAAS,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE;YAC7B,GAAG,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE;SACxB;KACF;IACD,WAAW,EAAE,KAAK;IAClB,OAAO,EAAE,KAAK;IACd,WAAW,EAAE,IAAI;IACjB,OAAO,EAAE,oBAAoB,CAAC,KAAK,EAAE,EAAE,MAAM,EAAE,EAAE,EAAE;QACjD,MAAM,EAAE,kBAAkB,EAAE,GAAG,MAAM,MAAM,CAAC,4BAA4B,CAAC,CAAC;QAC1E,MAAM,SAAS,GAAG,kBAAkB,EAAE,CAAC;QACvC,MAAM,MAAM,GAAG,MAAM,SAAS,CAAC,UAAU,CAAC,MAAM,CAAC,UAAoB,CAAC,CAAC;QACvE,OAAO,IAAI,CAAC,SAAS,CAAC,MAAM,CAAC,CAAC;IAChC,CAAC,CAAC;CACH,CAAC,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Vercel tools — read-only access to deployments and projects.
|
|
3
|
+
*
|
|
4
|
+
* Self-registering tool module for the recipe tool registry. Read-only set
|
|
5
|
+
* only (v1 safe): no createDeployment / cancelDeployment / env-var mutations.
|
|
6
|
+
* Each tool mirrors the real connector signature in `src/connectors/vercel.ts`
|
|
7
|
+
* and returns `JSON.stringify(result)` of the connector's native return type.
|
|
8
|
+
*/
|
|
9
|
+
export {};
|
|
@@ -0,0 +1,145 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Vercel tools — read-only access to deployments and projects.
|
|
3
|
+
*
|
|
4
|
+
* Self-registering tool module for the recipe tool registry. Read-only set
|
|
5
|
+
* only (v1 safe): no createDeployment / cancelDeployment / env-var mutations.
|
|
6
|
+
* Each tool mirrors the real connector signature in `src/connectors/vercel.ts`
|
|
7
|
+
* and returns `JSON.stringify(result)` of the connector's native return type.
|
|
8
|
+
*/
|
|
9
|
+
import { CommonSchemas, registerTool } from "../toolRegistry.js";
|
|
10
|
+
// ============================================================================
|
|
11
|
+
// vercel.list_deployments
|
|
12
|
+
// ============================================================================
|
|
13
|
+
registerTool({
|
|
14
|
+
id: "vercel.list_deployments",
|
|
15
|
+
namespace: "vercel",
|
|
16
|
+
description: "List Vercel deployments, optionally filtered by project ID and state.",
|
|
17
|
+
paramsSchema: {
|
|
18
|
+
type: "object",
|
|
19
|
+
properties: {
|
|
20
|
+
projectId: {
|
|
21
|
+
type: "string",
|
|
22
|
+
description: "Filter by Vercel project ID",
|
|
23
|
+
},
|
|
24
|
+
limit: {
|
|
25
|
+
type: "number",
|
|
26
|
+
description: "Max number of deployments to return",
|
|
27
|
+
},
|
|
28
|
+
state: {
|
|
29
|
+
type: "string",
|
|
30
|
+
description: "Filter by deployment state (BUILDING, ERROR, INITIALIZING, QUEUED, READY, CANCELED)",
|
|
31
|
+
},
|
|
32
|
+
into: CommonSchemas.into,
|
|
33
|
+
},
|
|
34
|
+
required: [],
|
|
35
|
+
},
|
|
36
|
+
outputSchema: {
|
|
37
|
+
type: "array",
|
|
38
|
+
items: {
|
|
39
|
+
type: "object",
|
|
40
|
+
properties: {
|
|
41
|
+
id: { type: "string" },
|
|
42
|
+
uid: { type: "string" },
|
|
43
|
+
name: { type: "string" },
|
|
44
|
+
url: { type: "string" },
|
|
45
|
+
state: { type: "string" },
|
|
46
|
+
createdAt: { type: "number" },
|
|
47
|
+
target: { type: ["string", "null"] },
|
|
48
|
+
},
|
|
49
|
+
},
|
|
50
|
+
},
|
|
51
|
+
riskDefault: "low",
|
|
52
|
+
isWrite: false,
|
|
53
|
+
isConnector: true,
|
|
54
|
+
execute: async ({ params }) => {
|
|
55
|
+
const { getVercelConnector } = await import("../../connectors/vercel.js");
|
|
56
|
+
const connector = getVercelConnector();
|
|
57
|
+
const result = await connector.listDeployments({
|
|
58
|
+
projectId: typeof params.projectId === "string" ? params.projectId : undefined,
|
|
59
|
+
limit: typeof params.limit === "number" ? params.limit : undefined,
|
|
60
|
+
state: typeof params.state === "string" ? params.state : undefined,
|
|
61
|
+
});
|
|
62
|
+
return JSON.stringify(result);
|
|
63
|
+
},
|
|
64
|
+
});
|
|
65
|
+
// ============================================================================
|
|
66
|
+
// vercel.get_deployment
|
|
67
|
+
// ============================================================================
|
|
68
|
+
registerTool({
|
|
69
|
+
id: "vercel.get_deployment",
|
|
70
|
+
namespace: "vercel",
|
|
71
|
+
description: "Fetch a single Vercel deployment by ID.",
|
|
72
|
+
paramsSchema: {
|
|
73
|
+
type: "object",
|
|
74
|
+
properties: {
|
|
75
|
+
id: { type: "string", description: "Vercel deployment ID" },
|
|
76
|
+
into: CommonSchemas.into,
|
|
77
|
+
},
|
|
78
|
+
required: ["id"],
|
|
79
|
+
},
|
|
80
|
+
outputSchema: {
|
|
81
|
+
type: "object",
|
|
82
|
+
properties: {
|
|
83
|
+
id: { type: "string" },
|
|
84
|
+
uid: { type: "string" },
|
|
85
|
+
name: { type: "string" },
|
|
86
|
+
url: { type: "string" },
|
|
87
|
+
state: { type: "string" },
|
|
88
|
+
createdAt: { type: "number" },
|
|
89
|
+
target: { type: ["string", "null"] },
|
|
90
|
+
},
|
|
91
|
+
},
|
|
92
|
+
riskDefault: "low",
|
|
93
|
+
isWrite: false,
|
|
94
|
+
isConnector: true,
|
|
95
|
+
execute: async ({ params }) => {
|
|
96
|
+
const { getVercelConnector } = await import("../../connectors/vercel.js");
|
|
97
|
+
const connector = getVercelConnector();
|
|
98
|
+
const result = await connector.getDeployment(params.id);
|
|
99
|
+
return JSON.stringify(result);
|
|
100
|
+
},
|
|
101
|
+
});
|
|
102
|
+
// ============================================================================
|
|
103
|
+
// vercel.list_projects
|
|
104
|
+
// ============================================================================
|
|
105
|
+
registerTool({
|
|
106
|
+
id: "vercel.list_projects",
|
|
107
|
+
namespace: "vercel",
|
|
108
|
+
description: "List Vercel projects.",
|
|
109
|
+
paramsSchema: {
|
|
110
|
+
type: "object",
|
|
111
|
+
properties: {
|
|
112
|
+
limit: {
|
|
113
|
+
type: "number",
|
|
114
|
+
description: "Max number of projects to return",
|
|
115
|
+
},
|
|
116
|
+
into: CommonSchemas.into,
|
|
117
|
+
},
|
|
118
|
+
required: [],
|
|
119
|
+
},
|
|
120
|
+
outputSchema: {
|
|
121
|
+
type: "array",
|
|
122
|
+
items: {
|
|
123
|
+
type: "object",
|
|
124
|
+
properties: {
|
|
125
|
+
id: { type: "string" },
|
|
126
|
+
name: { type: "string" },
|
|
127
|
+
framework: { type: ["string", "null"] },
|
|
128
|
+
link: { type: "object" },
|
|
129
|
+
latestDeployments: { type: "array", items: { type: "object" } },
|
|
130
|
+
},
|
|
131
|
+
},
|
|
132
|
+
},
|
|
133
|
+
riskDefault: "low",
|
|
134
|
+
isWrite: false,
|
|
135
|
+
isConnector: true,
|
|
136
|
+
execute: async ({ params }) => {
|
|
137
|
+
const { getVercelConnector } = await import("../../connectors/vercel.js");
|
|
138
|
+
const connector = getVercelConnector();
|
|
139
|
+
const result = await connector.listProjects({
|
|
140
|
+
limit: typeof params.limit === "number" ? params.limit : undefined,
|
|
141
|
+
});
|
|
142
|
+
return JSON.stringify(result);
|
|
143
|
+
},
|
|
144
|
+
});
|
|
145
|
+
//# sourceMappingURL=vercel.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"vercel.js","sourceRoot":"","sources":["../../../src/recipes/tools/vercel.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,EAAE,aAAa,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAC;AAEjE,+EAA+E;AAC/E,0BAA0B;AAC1B,+EAA+E;AAE/E,YAAY,CAAC;IACX,EAAE,EAAE,yBAAyB;IAC7B,SAAS,EAAE,QAAQ;IACnB,WAAW,EACT,uEAAuE;IACzE,YAAY,EAAE;QACZ,IAAI,EA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AAE,EAAE;QAC5B,MAAM,EAAE,kBAAkB,EAAE,GAAG,MAAM,MAAM,CAAC,4BAA4B,CAAC,CAAC;QAC1E,MAAM,SAAS,GAAG,kBAAkB,EAAE,CAAC;QACvC,MAAM,MAAM,GAAG,MAAM,SAAS,CAAC,YAAY,CAAC;YAC1C,KAAK,EAAE,OAAO,MAAM,CAAC,KAAK,KAAK,QAAQ,CAAC,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,CAAC,SAAS;SACnE,CAAC,CAAC;QACH,OAAO,IAAI,CAAC,SAAS,CAAC,MAAM,CAAC,CAAC;IAChC,CAAC;CACF,CAAC,CAAC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Webflow tools — read-only access to sites, collections, collection items,
|
|
3
|
+
* and form submissions via the Webflow v2 API.
|
|
4
|
+
*
|
|
5
|
+
* Self-registering tool module for the recipe tool registry. Read-only set
|
|
6
|
+
* only: no item create/update/delete or publish mutations. Each tool mirrors
|
|
7
|
+
* the real connector signature in `src/connectors/webflow.ts` and returns
|
|
8
|
+
* `JSON.stringify(result)` of the connector's native `WebflowListResult<T>`
|
|
9
|
+
* return type (`{ items, pagination? }`).
|
|
10
|
+
*/
|
|
11
|
+
export {};
|