patchwork-os 0.2.0-beta.10.canary.99 → 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/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 +128 -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,216 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Grafana tools — read access to dashboards, alert rules, and datasource
|
|
3
|
+
* queries, plus a single write (create_annotation).
|
|
4
|
+
*
|
|
5
|
+
* Self-registering tool module for the recipe tool registry. Each tool mirrors
|
|
6
|
+
* the real connector signature in `src/connectors/grafana.ts` and returns
|
|
7
|
+
* `JSON.stringify(result)` of the connector's native return type. Reads declare
|
|
8
|
+
* `isWrite: false`; `create_annotation` declares `isWrite: true` so the approval
|
|
9
|
+
* queue gates it appropriately.
|
|
10
|
+
*/
|
|
11
|
+
import { CommonSchemas, registerTool } from "../toolRegistry.js";
|
|
12
|
+
import { wrapConnectorExecute } from "./wrapConnectorExecute.js";
|
|
13
|
+
// ============================================================================
|
|
14
|
+
// grafana.list_dashboards
|
|
15
|
+
// ============================================================================
|
|
16
|
+
registerTool({
|
|
17
|
+
id: "grafana.list_dashboards",
|
|
18
|
+
namespace: "grafana",
|
|
19
|
+
description: "List Grafana dashboards, optionally filtered by a search query string.",
|
|
20
|
+
paramsSchema: {
|
|
21
|
+
type: "object",
|
|
22
|
+
properties: {
|
|
23
|
+
query: {
|
|
24
|
+
type: "string",
|
|
25
|
+
description: "Search query to filter dashboards by title/tag",
|
|
26
|
+
},
|
|
27
|
+
limit: {
|
|
28
|
+
type: "number",
|
|
29
|
+
description: "Max number of dashboards to return (default 50)",
|
|
30
|
+
default: 50,
|
|
31
|
+
},
|
|
32
|
+
into: CommonSchemas.into,
|
|
33
|
+
},
|
|
34
|
+
required: [],
|
|
35
|
+
},
|
|
36
|
+
outputSchema: {
|
|
37
|
+
type: "array",
|
|
38
|
+
items: {
|
|
39
|
+
type: "object",
|
|
40
|
+
properties: {
|
|
41
|
+
id: { type: "number" },
|
|
42
|
+
uid: { type: "string" },
|
|
43
|
+
title: { type: "string" },
|
|
44
|
+
url: { type: "string" },
|
|
45
|
+
tags: { type: "array", items: { type: "string" } },
|
|
46
|
+
folderTitle: { type: "string" },
|
|
47
|
+
folderId: { type: "number" },
|
|
48
|
+
},
|
|
49
|
+
},
|
|
50
|
+
},
|
|
51
|
+
riskDefault: "low",
|
|
52
|
+
isWrite: false,
|
|
53
|
+
isConnector: true,
|
|
54
|
+
execute: wrapConnectorExecute(async ({ params }) => {
|
|
55
|
+
const { getGrafanaConnector } = await import("../../connectors/grafana.js");
|
|
56
|
+
const connector = getGrafanaConnector();
|
|
57
|
+
const result = await connector.getDashboards(typeof params.query === "string" ? params.query : undefined, typeof params.limit === "number" ? params.limit : undefined);
|
|
58
|
+
return JSON.stringify(result);
|
|
59
|
+
}),
|
|
60
|
+
});
|
|
61
|
+
// ============================================================================
|
|
62
|
+
// grafana.list_alert_rules
|
|
63
|
+
// ============================================================================
|
|
64
|
+
registerTool({
|
|
65
|
+
id: "grafana.list_alert_rules",
|
|
66
|
+
namespace: "grafana",
|
|
67
|
+
description: "List Grafana provisioned alert rules.",
|
|
68
|
+
paramsSchema: {
|
|
69
|
+
type: "object",
|
|
70
|
+
properties: {
|
|
71
|
+
limit: {
|
|
72
|
+
type: "number",
|
|
73
|
+
description: "Max number of alert rules to return (default 100)",
|
|
74
|
+
default: 100,
|
|
75
|
+
},
|
|
76
|
+
into: CommonSchemas.into,
|
|
77
|
+
},
|
|
78
|
+
required: [],
|
|
79
|
+
},
|
|
80
|
+
outputSchema: {
|
|
81
|
+
type: "array",
|
|
82
|
+
items: {
|
|
83
|
+
type: "object",
|
|
84
|
+
properties: {
|
|
85
|
+
uid: { type: "string" },
|
|
86
|
+
title: { type: "string" },
|
|
87
|
+
condition: { type: "string" },
|
|
88
|
+
data: { type: "array", items: {} },
|
|
89
|
+
intervalSeconds: { type: "number" },
|
|
90
|
+
orgId: { type: "number" },
|
|
91
|
+
namespaceUID: { type: "string" },
|
|
92
|
+
ruleGroup: { type: "string" },
|
|
93
|
+
},
|
|
94
|
+
},
|
|
95
|
+
},
|
|
96
|
+
riskDefault: "low",
|
|
97
|
+
isWrite: false,
|
|
98
|
+
isConnector: true,
|
|
99
|
+
execute: wrapConnectorExecute(async ({ params }) => {
|
|
100
|
+
const { getGrafanaConnector } = await import("../../connectors/grafana.js");
|
|
101
|
+
const connector = getGrafanaConnector();
|
|
102
|
+
const result = await connector.getAlertRules(typeof params.limit === "number" ? params.limit : undefined);
|
|
103
|
+
return JSON.stringify(result);
|
|
104
|
+
}),
|
|
105
|
+
});
|
|
106
|
+
// ============================================================================
|
|
107
|
+
// grafana.create_annotation
|
|
108
|
+
// ============================================================================
|
|
109
|
+
registerTool({
|
|
110
|
+
id: "grafana.create_annotation",
|
|
111
|
+
namespace: "grafana",
|
|
112
|
+
description: "Create a Grafana annotation on a dashboard panel (marks an event in time).",
|
|
113
|
+
paramsSchema: {
|
|
114
|
+
type: "object",
|
|
115
|
+
properties: {
|
|
116
|
+
dashboardUid: {
|
|
117
|
+
type: "string",
|
|
118
|
+
description: "UID of the dashboard to annotate",
|
|
119
|
+
},
|
|
120
|
+
panelId: {
|
|
121
|
+
type: "number",
|
|
122
|
+
description: "ID of the panel within the dashboard",
|
|
123
|
+
},
|
|
124
|
+
text: {
|
|
125
|
+
type: "string",
|
|
126
|
+
description: "Annotation text body",
|
|
127
|
+
},
|
|
128
|
+
tags: {
|
|
129
|
+
type: "array",
|
|
130
|
+
items: { type: "string" },
|
|
131
|
+
description: "Optional tags to attach to the annotation",
|
|
132
|
+
},
|
|
133
|
+
time: {
|
|
134
|
+
type: "number",
|
|
135
|
+
description: "Optional start time (epoch milliseconds)",
|
|
136
|
+
},
|
|
137
|
+
timeEnd: {
|
|
138
|
+
type: "number",
|
|
139
|
+
description: "Optional end time (epoch milliseconds) for a region",
|
|
140
|
+
},
|
|
141
|
+
into: CommonSchemas.into,
|
|
142
|
+
},
|
|
143
|
+
required: ["dashboardUid", "panelId", "text"],
|
|
144
|
+
},
|
|
145
|
+
outputSchema: {
|
|
146
|
+
type: "object",
|
|
147
|
+
properties: {
|
|
148
|
+
id: { type: "number" },
|
|
149
|
+
},
|
|
150
|
+
},
|
|
151
|
+
riskDefault: "medium",
|
|
152
|
+
isWrite: true,
|
|
153
|
+
isConnector: true,
|
|
154
|
+
execute: wrapConnectorExecute(async ({ params }) => {
|
|
155
|
+
const { getGrafanaConnector } = await import("../../connectors/grafana.js");
|
|
156
|
+
const connector = getGrafanaConnector();
|
|
157
|
+
const result = await connector.createAnnotation(params.dashboardUid, params.panelId, params.text, {
|
|
158
|
+
tags: Array.isArray(params.tags)
|
|
159
|
+
? params.tags
|
|
160
|
+
: undefined,
|
|
161
|
+
time: typeof params.time === "number" ? params.time : undefined,
|
|
162
|
+
timeEnd: typeof params.timeEnd === "number" ? params.timeEnd : undefined,
|
|
163
|
+
});
|
|
164
|
+
return JSON.stringify(result);
|
|
165
|
+
}),
|
|
166
|
+
});
|
|
167
|
+
// ============================================================================
|
|
168
|
+
// grafana.query_datasource
|
|
169
|
+
// ============================================================================
|
|
170
|
+
registerTool({
|
|
171
|
+
id: "grafana.query_datasource",
|
|
172
|
+
namespace: "grafana",
|
|
173
|
+
description: "Run one or more queries against a Grafana datasource over a time range.",
|
|
174
|
+
paramsSchema: {
|
|
175
|
+
type: "object",
|
|
176
|
+
properties: {
|
|
177
|
+
datasourceUid: {
|
|
178
|
+
type: "string",
|
|
179
|
+
description: "UID of the datasource to query",
|
|
180
|
+
},
|
|
181
|
+
queries: {
|
|
182
|
+
type: "array",
|
|
183
|
+
items: { type: "object" },
|
|
184
|
+
description: "Array of query objects (datasource-specific; datasource uid is injected)",
|
|
185
|
+
},
|
|
186
|
+
from: {
|
|
187
|
+
type: "string",
|
|
188
|
+
description: "Range start (e.g. 'now-1h' or epoch ms string)",
|
|
189
|
+
default: "now-1h",
|
|
190
|
+
},
|
|
191
|
+
to: {
|
|
192
|
+
type: "string",
|
|
193
|
+
description: "Range end (e.g. 'now' or epoch ms string)",
|
|
194
|
+
default: "now",
|
|
195
|
+
},
|
|
196
|
+
into: CommonSchemas.into,
|
|
197
|
+
},
|
|
198
|
+
required: ["datasourceUid", "queries"],
|
|
199
|
+
},
|
|
200
|
+
outputSchema: {
|
|
201
|
+
type: "object",
|
|
202
|
+
properties: {
|
|
203
|
+
results: { type: "object" },
|
|
204
|
+
},
|
|
205
|
+
},
|
|
206
|
+
riskDefault: "low",
|
|
207
|
+
isWrite: false,
|
|
208
|
+
isConnector: true,
|
|
209
|
+
execute: wrapConnectorExecute(async ({ params }) => {
|
|
210
|
+
const { getGrafanaConnector } = await import("../../connectors/grafana.js");
|
|
211
|
+
const connector = getGrafanaConnector();
|
|
212
|
+
const result = await connector.queryDataSource(params.datasourceUid, Array.isArray(params.queries) ? params.queries : [], typeof params.from === "string" ? params.from : undefined, typeof params.to === "string" ? params.to : undefined);
|
|
213
|
+
return JSON.stringify(result);
|
|
214
|
+
}),
|
|
215
|
+
});
|
|
216
|
+
//# sourceMappingURL=grafana.js.map
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,MAAM,MAAM,GAAG,MAAM,SAAS,CAAC,eAAe,CAC5C,MAAM,CAAC,aAAuB,EAC9B,KAAK,CAAC,OAAO,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC,CAAC,CAAE,MAAM,CAAC,OAAqB,CAAC,CAAC,CAAC,EAAE,EAClE,OAAO,MAAM,CAAC,IAAI,KAAK,QAAQ,CAAC,CAAC,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,CAAC,SAAS,EACzD,OAAO,MAAM,CAAC,EAAE,KAAK,QAAQ,CAAC,CAAC,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC,CAAC,SAAS,CACtD,CAAC;QACF,OAAO,IAAI,CAAC,SAAS,CAAC,MAAM,CAAC,CAAC;IAChC,CAAC,CAAC;CACH,CAAC,CAAC"}
|
|
@@ -6,5 +6,5 @@
|
|
|
6
6
|
* (ntfy.sh, generic webhooks). Includes a lexical SSRF guard that
|
|
7
7
|
* blocks private/loopback hosts unless the recipe explicitly opts in.
|
|
8
8
|
*/
|
|
9
|
-
|
|
9
|
+
import { isPrivateHost } from "../../ssrfGuard.js";
|
|
10
10
|
export { isPrivateHost };
|
|
@@ -7,7 +7,11 @@
|
|
|
7
7
|
* blocks private/loopback hosts unless the recipe explicitly opts in.
|
|
8
8
|
*/
|
|
9
9
|
import { Agent, fetch as undiciFetch } from "undici";
|
|
10
|
-
import { assertWriteAllowed } from "../../featureFlags.js";
|
|
10
|
+
import { assertWriteAllowed, FLAG_BLOCK_RECIPE_ALLOW_PRIVATE, isEnabled, } from "../../featureFlags.js";
|
|
11
|
+
// Canonical SSRF guard — single source of truth (handles CGNAT 100.64/10,
|
|
12
|
+
// 6to4 2002::/16, hex/octal IPv4, ::ffff:0: translated forms — none of which
|
|
13
|
+
// the previous local copy covered).
|
|
14
|
+
import { isPrivateHost } from "../../ssrfGuard.js";
|
|
11
15
|
import { CommonSchemas, registerTool } from "../toolRegistry.js";
|
|
12
16
|
// Custom dispatcher pinning DNS resolution to IPv4. Node's Happy-Eyeballs
|
|
13
17
|
// implementation (autoSelectFamily) is documented to flip families after
|
|
@@ -27,32 +31,6 @@ const httpAgent = new Agent({
|
|
|
27
31
|
keepAliveTimeout: 5_000,
|
|
28
32
|
keepAliveMaxTimeout: 10_000,
|
|
29
33
|
});
|
|
30
|
-
function isPrivateHost(hostname) {
|
|
31
|
-
const h = hostname.toLowerCase().replace(/^\[|\]$/g, "");
|
|
32
|
-
if (h === "localhost" || h.endsWith(".localhost"))
|
|
33
|
-
return true;
|
|
34
|
-
if (h === "::1")
|
|
35
|
-
return true;
|
|
36
|
-
if (h.startsWith("::ffff:"))
|
|
37
|
-
return isPrivateHost(h.slice(7));
|
|
38
|
-
if (/^127\./.test(h))
|
|
39
|
-
return true;
|
|
40
|
-
if (/^10\./.test(h))
|
|
41
|
-
return true;
|
|
42
|
-
if (/^192\.168\./.test(h))
|
|
43
|
-
return true;
|
|
44
|
-
if (/^172\.(1[6-9]|2\d|3[01])\./.test(h))
|
|
45
|
-
return true;
|
|
46
|
-
if (/^169\.254\./.test(h))
|
|
47
|
-
return true;
|
|
48
|
-
if (/^0\./.test(h))
|
|
49
|
-
return true;
|
|
50
|
-
if (/^fc[0-9a-f]{2}:/.test(h) || /^fd[0-9a-f]{2}:/.test(h))
|
|
51
|
-
return true;
|
|
52
|
-
if (/^fe80:/.test(h))
|
|
53
|
-
return true;
|
|
54
|
-
return false;
|
|
55
|
-
}
|
|
56
34
|
registerTool({
|
|
57
35
|
id: "http.post",
|
|
58
36
|
namespace: "http",
|
|
@@ -125,7 +103,11 @@ registerTool({
|
|
|
125
103
|
if (parsed.protocol !== "http:" && parsed.protocol !== "https:") {
|
|
126
104
|
throw new Error(`http.post: only http/https supported (got ${parsed.protocol})`);
|
|
127
105
|
}
|
|
128
|
-
|
|
106
|
+
// Operator kill-flag: when on, the per-step allowPrivate:true bypass is
|
|
107
|
+
// ignored so a (potentially marketplace-installed) recipe can never reach
|
|
108
|
+
// a private/loopback host.
|
|
109
|
+
const bypassDisabled = isEnabled(FLAG_BLOCK_RECIPE_ALLOW_PRIVATE);
|
|
110
|
+
const allowPrivate = !bypassDisabled && params.allowPrivate === true;
|
|
129
111
|
if (!allowPrivate && isPrivateHost(parsed.hostname)) {
|
|
130
112
|
throw new Error(`http.post: refusing to reach private/loopback host "${parsed.hostname}" — set allowPrivate: true to override`);
|
|
131
113
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"http.js","sourceRoot":"","sources":["../../../src/recipes/tools/http.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,EAAE,KAAK,EAAE,KAAK,IAAI,WAAW,EAAE,MAAM,QAAQ,CAAC;AACrD,OAAO,
|
|
1
|
+
{"version":3,"file":"http.js","sourceRoot":"","sources":["../../../src/recipes/tools/http.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,EAAE,KAAK,EAAE,KAAK,IAAI,WAAW,EAAE,MAAM,QAAQ,CAAC;AACrD,OAAO,EACL,kBAAkB,EAClB,+BAA+B,EAC/B,SAAS,GACV,MAAM,uBAAuB,CAAC;AAC/B,0EAA0E;AAC1E,6EAA6E;AAC7E,oCAAoC;AACpC,OAAO,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AACnD,OAAO,EAAE,aAAa,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAC;AAEjE,0EAA0E;AAC1E,yEAAyE;AACzE,6DAA6D;AAC7D,uEAAuE;AACvE,sEAAsE;AACtE,uEAAuE;AACvE,8CAA8C;AAC9C,EAAE;AACF,sEAAsE;AACtE,6CAA6C;AAC7C,MAAM,SAAS,GAAG,IAAI,KAAK,CAAC;IAC1B,yJAAyJ;IACzJ,OAAO,EAAE,EAAE,MAAM,EAAE,CAAC,EAAS;IAC7B,sEAAsE;IACtE,+BAA+B;IAC/B,gBAAgB,EAAE,KAAK;IACvB,mBAAmB,EAAE,MAAM;CAC5B,CAAC,CAAC;AAEH,YAAY,CAAC;IACX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,CAAC;YACpB,MAAM,EAAE,GAAG,CAAC,MAAM;YAClB,EAAE,EAAE,GAAG,CAAC,EAAE;YACV,IAAI,EAAE,IAAI,CAAC,MAAM,GAAG,IAAI,CAAC,CAAC,CAAC,GAAG,IAAI,CAAC,KAAK,CAAC,CAAC,EAAE,IAAI,CAAC,cAAc,CAAC,CAAC,CAAC,IAAI;SACvE,CAAC,CAAC;IACL,CAAC;CACF,CAAC,CAAC;AAEH,iDAAiD;AACjD,OAAO,EAAE,aAAa,EAAE,CAAC"}
|
|
@@ -27,6 +27,32 @@ import "./jira.js";
|
|
|
27
27
|
import "./pagerduty.js";
|
|
28
28
|
import "./sentry.js";
|
|
29
29
|
import "./stripe.js";
|
|
30
|
+
import "./docs.js";
|
|
31
|
+
import "./monday.js";
|
|
32
|
+
import "./salesforce.js";
|
|
33
|
+
import "./elasticsearch.js";
|
|
34
|
+
import "./postgres.js";
|
|
35
|
+
import "./redis.js";
|
|
36
|
+
import "./snowflake.js";
|
|
37
|
+
import "./caldiy.js";
|
|
38
|
+
import "./cloudflare.js";
|
|
39
|
+
import "./figma.js";
|
|
40
|
+
import "./obsidian.js";
|
|
41
|
+
import "./paystack.js";
|
|
42
|
+
import "./supabase.js";
|
|
43
|
+
import "./webflow.js";
|
|
44
|
+
import "./woocommerce.js";
|
|
45
|
+
import "./circleci.js";
|
|
46
|
+
import "./grafana.js";
|
|
47
|
+
import "./pipedrive.js";
|
|
48
|
+
import "./posthog.js";
|
|
49
|
+
import "./shopify.js";
|
|
50
|
+
import "./todoist.js";
|
|
51
|
+
import "./airtable.js";
|
|
52
|
+
import "./resend.js";
|
|
53
|
+
import "./sendgrid.js";
|
|
54
|
+
import "./twilio.js";
|
|
55
|
+
import "./vercel.js";
|
|
30
56
|
import "./meetingNotes.js";
|
|
31
57
|
export type { RegisteredTool, ToolContext, ToolExecute, ToolMetadata, } from "../toolRegistry.js";
|
|
32
58
|
export { CommonOutputSchemas, CommonSchemas, clearRegistry, executeTool, getNamespaces, getTool, hasTool, listTools, registerTool, } from "../toolRegistry.js";
|
|
@@ -29,6 +29,32 @@ import "./jira.js";
|
|
|
29
29
|
import "./pagerduty.js";
|
|
30
30
|
import "./sentry.js";
|
|
31
31
|
import "./stripe.js";
|
|
32
|
+
import "./docs.js";
|
|
33
|
+
import "./monday.js";
|
|
34
|
+
import "./salesforce.js";
|
|
35
|
+
import "./elasticsearch.js";
|
|
36
|
+
import "./postgres.js";
|
|
37
|
+
import "./redis.js";
|
|
38
|
+
import "./snowflake.js";
|
|
39
|
+
import "./caldiy.js";
|
|
40
|
+
import "./cloudflare.js";
|
|
41
|
+
import "./figma.js";
|
|
42
|
+
import "./obsidian.js";
|
|
43
|
+
import "./paystack.js";
|
|
44
|
+
import "./supabase.js";
|
|
45
|
+
import "./webflow.js";
|
|
46
|
+
import "./woocommerce.js";
|
|
47
|
+
import "./circleci.js";
|
|
48
|
+
import "./grafana.js";
|
|
49
|
+
import "./pipedrive.js";
|
|
50
|
+
import "./posthog.js";
|
|
51
|
+
import "./shopify.js";
|
|
52
|
+
import "./todoist.js";
|
|
53
|
+
import "./airtable.js";
|
|
54
|
+
import "./resend.js";
|
|
55
|
+
import "./sendgrid.js";
|
|
56
|
+
import "./twilio.js";
|
|
57
|
+
import "./vercel.js";
|
|
32
58
|
import "./meetingNotes.js";
|
|
33
59
|
// Re-export registry for convenience
|
|
34
60
|
export { CommonOutputSchemas, CommonSchemas, clearRegistry, executeTool, getNamespaces, getTool, hasTool, listTools, registerTool, } from "../toolRegistry.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/recipes/tools/index.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,aAAa;AACb,OAAO,WAAW,CAAC;AACnB,OAAO,UAAU,CAAC;AAClB,OAAO,kBAAkB,CAAC;AAC1B,OAAO,WAAW,CAAC;AACnB,OAAO,aAAa,CAAC;AAErB,wBAAwB;AACxB,OAAO,YAAY,CAAC;AACpB,OAAO,YAAY,CAAC;AACpB,OAAO,kBAAkB,CAAC;AAC1B,OAAO,aAAa,CAAC;AACrB,OAAO,aAAa,CAAC;AACrB,OAAO,aAAa,CAAC;AACrB,OAAO,eAAe,CAAC;AACvB,OAAO,YAAY,CAAC;AACpB,OAAO,aAAa,CAAC;AACrB,OAAO,iBAAiB,CAAC;AACzB,OAAO,cAAc,CAAC;AACtB,OAAO,eAAe,CAAC;AACvB,OAAO,cAAc,CAAC;AACtB,OAAO,cAAc,CAAC;AACtB,OAAO,cAAc,CAAC;AACtB,OAAO,WAAW,CAAC;AACnB,OAAO,gBAAgB,CAAC;AACxB,OAAO,aAAa,CAAC;AACrB,OAAO,aAAa,CAAC;AACrB,OAAO,mBAAmB,CAAC;AAQ3B,qCAAqC;AACrC,OAAO,EACL,mBAAmB,EACnB,aAAa,EACb,aAAa,EACb,WAAW,EACX,aAAa,EACb,OAAO,EACP,OAAO,EACP,SAAS,EACT,YAAY,GACb,MAAM,oBAAoB,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/recipes/tools/index.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,aAAa;AACb,OAAO,WAAW,CAAC;AACnB,OAAO,UAAU,CAAC;AAClB,OAAO,kBAAkB,CAAC;AAC1B,OAAO,WAAW,CAAC;AACnB,OAAO,aAAa,CAAC;AAErB,wBAAwB;AACxB,OAAO,YAAY,CAAC;AACpB,OAAO,YAAY,CAAC;AACpB,OAAO,kBAAkB,CAAC;AAC1B,OAAO,aAAa,CAAC;AACrB,OAAO,aAAa,CAAC;AACrB,OAAO,aAAa,CAAC;AACrB,OAAO,eAAe,CAAC;AACvB,OAAO,YAAY,CAAC;AACpB,OAAO,aAAa,CAAC;AACrB,OAAO,iBAAiB,CAAC;AACzB,OAAO,cAAc,CAAC;AACtB,OAAO,eAAe,CAAC;AACvB,OAAO,cAAc,CAAC;AACtB,OAAO,cAAc,CAAC;AACtB,OAAO,cAAc,CAAC;AACtB,OAAO,WAAW,CAAC;AACnB,OAAO,gBAAgB,CAAC;AACxB,OAAO,aAAa,CAAC;AACrB,OAAO,aAAa,CAAC;AACrB,OAAO,WAAW,CAAC;AACnB,OAAO,aAAa,CAAC;AACrB,OAAO,iBAAiB,CAAC;AACzB,OAAO,oBAAoB,CAAC;AAC5B,OAAO,eAAe,CAAC;AACvB,OAAO,YAAY,CAAC;AACpB,OAAO,gBAAgB,CAAC;AACxB,OAAO,aAAa,CAAC;AACrB,OAAO,iBAAiB,CAAC;AACzB,OAAO,YAAY,CAAC;AACpB,OAAO,eAAe,CAAC;AACvB,OAAO,eAAe,CAAC;AACvB,OAAO,eAAe,CAAC;AACvB,OAAO,cAAc,CAAC;AACtB,OAAO,kBAAkB,CAAC;AAC1B,OAAO,eAAe,CAAC;AACvB,OAAO,cAAc,CAAC;AACtB,OAAO,gBAAgB,CAAC;AACxB,OAAO,cAAc,CAAC;AACtB,OAAO,cAAc,CAAC;AACtB,OAAO,cAAc,CAAC;AACtB,OAAO,eAAe,CAAC;AACvB,OAAO,aAAa,CAAC;AACrB,OAAO,eAAe,CAAC;AACvB,OAAO,aAAa,CAAC;AACrB,OAAO,aAAa,CAAC;AACrB,OAAO,mBAAmB,CAAC;AAQ3B,qCAAqC;AACrC,OAAO,EACL,mBAAmB,EACnB,aAAa,EACb,aAAa,EACb,WAAW,EACX,aAAa,EACb,OAAO,EACP,OAAO,EACP,SAAS,EACT,YAAY,GACb,MAAM,oBAAoB,CAAC"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Monday.com tools — read wrappers (list_boards, list_items, get_item) plus a
|
|
3
|
+
* single write (create_item).
|
|
4
|
+
*
|
|
5
|
+
* Self-registering tool module for the recipe tool registry. The Monday
|
|
6
|
+
* connector (src/connectors/monday.ts) uses a MODULE-FUNCTION pattern: it
|
|
7
|
+
* exports standalone async functions rather than a class + `getMondayConnector()`
|
|
8
|
+
* accessor. Each tool lazily imports the connector module and destructures the
|
|
9
|
+
* specific exported function, returning the connector result verbatim via
|
|
10
|
+
* JSON.stringify.
|
|
11
|
+
*
|
|
12
|
+
* Connector functions mirrored (see src/connectors/monday.ts):
|
|
13
|
+
* - listBoards(limit?) -> MondayBoardSummary[]
|
|
14
|
+
* - listItems(boardId, limit?, cursor?) -> MondayItemsPage ({ cursor, items })
|
|
15
|
+
* - getItem(itemId) -> MondayItemDetail | null
|
|
16
|
+
* - createItem(boardId, groupId, itemName, columnValues?) -> MondayCreatedItem ({ id, name })
|
|
17
|
+
*
|
|
18
|
+
* Read tools declare `isWrite: false` / `riskDefault: "low"`; create_item
|
|
19
|
+
* declares `isWrite: true` / `riskDefault: "medium"` so the approval queue and
|
|
20
|
+
* kill-switch gate it appropriately.
|
|
21
|
+
*/
|
|
22
|
+
export {};
|
|
@@ -0,0 +1,242 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Monday.com tools — read wrappers (list_boards, list_items, get_item) plus a
|
|
3
|
+
* single write (create_item).
|
|
4
|
+
*
|
|
5
|
+
* Self-registering tool module for the recipe tool registry. The Monday
|
|
6
|
+
* connector (src/connectors/monday.ts) uses a MODULE-FUNCTION pattern: it
|
|
7
|
+
* exports standalone async functions rather than a class + `getMondayConnector()`
|
|
8
|
+
* accessor. Each tool lazily imports the connector module and destructures the
|
|
9
|
+
* specific exported function, returning the connector result verbatim via
|
|
10
|
+
* JSON.stringify.
|
|
11
|
+
*
|
|
12
|
+
* Connector functions mirrored (see src/connectors/monday.ts):
|
|
13
|
+
* - listBoards(limit?) -> MondayBoardSummary[]
|
|
14
|
+
* - listItems(boardId, limit?, cursor?) -> MondayItemsPage ({ cursor, items })
|
|
15
|
+
* - getItem(itemId) -> MondayItemDetail | null
|
|
16
|
+
* - createItem(boardId, groupId, itemName, columnValues?) -> MondayCreatedItem ({ id, name })
|
|
17
|
+
*
|
|
18
|
+
* Read tools declare `isWrite: false` / `riskDefault: "low"`; create_item
|
|
19
|
+
* declares `isWrite: true` / `riskDefault: "medium"` so the approval queue and
|
|
20
|
+
* kill-switch gate it appropriately.
|
|
21
|
+
*/
|
|
22
|
+
import { CommonSchemas, registerTool } from "../toolRegistry.js";
|
|
23
|
+
import { wrapConnectorExecute } from "./wrapConnectorExecute.js";
|
|
24
|
+
// ============================================================================
|
|
25
|
+
// monday.list_boards
|
|
26
|
+
// ============================================================================
|
|
27
|
+
registerTool({
|
|
28
|
+
id: "monday.list_boards",
|
|
29
|
+
namespace: "monday",
|
|
30
|
+
description: "List Monday.com boards the authenticated user can access (id, name, description, state, board_kind, workspace).",
|
|
31
|
+
paramsSchema: {
|
|
32
|
+
type: "object",
|
|
33
|
+
properties: {
|
|
34
|
+
limit: {
|
|
35
|
+
type: "number",
|
|
36
|
+
description: "Max number of boards to return (default 50)",
|
|
37
|
+
default: 50,
|
|
38
|
+
},
|
|
39
|
+
into: CommonSchemas.into,
|
|
40
|
+
},
|
|
41
|
+
required: [],
|
|
42
|
+
},
|
|
43
|
+
outputSchema: {
|
|
44
|
+
type: "array",
|
|
45
|
+
items: {
|
|
46
|
+
type: "object",
|
|
47
|
+
properties: {
|
|
48
|
+
id: { type: "string" },
|
|
49
|
+
name: { type: "string" },
|
|
50
|
+
description: { type: "string" },
|
|
51
|
+
state: { type: "string" },
|
|
52
|
+
board_kind: { type: "string" },
|
|
53
|
+
workspace: {
|
|
54
|
+
type: ["object", "null"],
|
|
55
|
+
properties: {
|
|
56
|
+
id: { type: "string" },
|
|
57
|
+
name: { type: "string" },
|
|
58
|
+
},
|
|
59
|
+
},
|
|
60
|
+
},
|
|
61
|
+
},
|
|
62
|
+
},
|
|
63
|
+
riskDefault: "low",
|
|
64
|
+
isWrite: false,
|
|
65
|
+
isConnector: true,
|
|
66
|
+
execute: wrapConnectorExecute(async ({ params }) => {
|
|
67
|
+
const { listBoards } = await import("../../connectors/monday.js");
|
|
68
|
+
const limit = typeof params.limit === "number" ? params.limit : undefined;
|
|
69
|
+
const boards = await listBoards(limit);
|
|
70
|
+
return JSON.stringify(boards);
|
|
71
|
+
}),
|
|
72
|
+
});
|
|
73
|
+
// ============================================================================
|
|
74
|
+
// monday.list_items
|
|
75
|
+
// ============================================================================
|
|
76
|
+
registerTool({
|
|
77
|
+
id: "monday.list_items",
|
|
78
|
+
namespace: "monday",
|
|
79
|
+
description: "List items on a Monday.com board (cursor-paginated). Returns { cursor, items } where each item has id, name, state, created_at, updated_at.",
|
|
80
|
+
paramsSchema: {
|
|
81
|
+
type: "object",
|
|
82
|
+
properties: {
|
|
83
|
+
boardId: {
|
|
84
|
+
type: "string",
|
|
85
|
+
description: "Monday board id to list items from",
|
|
86
|
+
},
|
|
87
|
+
limit: {
|
|
88
|
+
type: "number",
|
|
89
|
+
description: "Max number of items per page (default 50)",
|
|
90
|
+
default: 50,
|
|
91
|
+
},
|
|
92
|
+
cursor: {
|
|
93
|
+
type: "string",
|
|
94
|
+
description: "Opaque pagination cursor from a previous page",
|
|
95
|
+
},
|
|
96
|
+
into: CommonSchemas.into,
|
|
97
|
+
},
|
|
98
|
+
required: ["boardId"],
|
|
99
|
+
},
|
|
100
|
+
outputSchema: {
|
|
101
|
+
type: "object",
|
|
102
|
+
properties: {
|
|
103
|
+
cursor: { type: ["string", "null"] },
|
|
104
|
+
items: {
|
|
105
|
+
type: "array",
|
|
106
|
+
items: {
|
|
107
|
+
type: "object",
|
|
108
|
+
properties: {
|
|
109
|
+
id: { type: "string" },
|
|
110
|
+
name: { type: "string" },
|
|
111
|
+
state: { type: "string" },
|
|
112
|
+
created_at: { type: "string" },
|
|
113
|
+
updated_at: { type: "string" },
|
|
114
|
+
},
|
|
115
|
+
},
|
|
116
|
+
},
|
|
117
|
+
},
|
|
118
|
+
},
|
|
119
|
+
riskDefault: "low",
|
|
120
|
+
isWrite: false,
|
|
121
|
+
isConnector: true,
|
|
122
|
+
execute: wrapConnectorExecute(async ({ params }) => {
|
|
123
|
+
const { listItems } = await import("../../connectors/monday.js");
|
|
124
|
+
const limit = typeof params.limit === "number" ? params.limit : undefined;
|
|
125
|
+
const cursor = typeof params.cursor === "string" ? params.cursor : undefined;
|
|
126
|
+
const page = await listItems(params.boardId, limit, cursor);
|
|
127
|
+
return JSON.stringify(page);
|
|
128
|
+
}),
|
|
129
|
+
});
|
|
130
|
+
// ============================================================================
|
|
131
|
+
// monday.get_item
|
|
132
|
+
// ============================================================================
|
|
133
|
+
registerTool({
|
|
134
|
+
id: "monday.get_item",
|
|
135
|
+
namespace: "monday",
|
|
136
|
+
description: "Fetch a single Monday.com item by id, including board, group, column values, subitems, and updates. Returns null when the item is not found.",
|
|
137
|
+
paramsSchema: {
|
|
138
|
+
type: "object",
|
|
139
|
+
properties: {
|
|
140
|
+
itemId: {
|
|
141
|
+
type: "string",
|
|
142
|
+
description: "Monday item id",
|
|
143
|
+
},
|
|
144
|
+
into: CommonSchemas.into,
|
|
145
|
+
},
|
|
146
|
+
required: ["itemId"],
|
|
147
|
+
},
|
|
148
|
+
outputSchema: {
|
|
149
|
+
type: ["object", "null"],
|
|
150
|
+
properties: {
|
|
151
|
+
id: { type: "string" },
|
|
152
|
+
name: { type: "string" },
|
|
153
|
+
state: { type: "string" },
|
|
154
|
+
created_at: { type: "string" },
|
|
155
|
+
updated_at: { type: "string" },
|
|
156
|
+
board: {
|
|
157
|
+
type: "object",
|
|
158
|
+
properties: {
|
|
159
|
+
id: { type: "string" },
|
|
160
|
+
name: { type: "string" },
|
|
161
|
+
},
|
|
162
|
+
},
|
|
163
|
+
group: {
|
|
164
|
+
type: "object",
|
|
165
|
+
properties: {
|
|
166
|
+
id: { type: "string" },
|
|
167
|
+
title: { type: "string" },
|
|
168
|
+
},
|
|
169
|
+
},
|
|
170
|
+
column_values: {
|
|
171
|
+
type: "array",
|
|
172
|
+
items: {
|
|
173
|
+
type: "object",
|
|
174
|
+
properties: {
|
|
175
|
+
id: { type: "string" },
|
|
176
|
+
text: { type: ["string", "null"] },
|
|
177
|
+
value: { type: ["string", "null"] },
|
|
178
|
+
type: { type: "string" },
|
|
179
|
+
},
|
|
180
|
+
},
|
|
181
|
+
},
|
|
182
|
+
subitems: { type: "array", items: { type: "object" } },
|
|
183
|
+
updates: { type: "array", items: { type: "object" } },
|
|
184
|
+
},
|
|
185
|
+
},
|
|
186
|
+
riskDefault: "low",
|
|
187
|
+
isWrite: false,
|
|
188
|
+
isConnector: true,
|
|
189
|
+
execute: wrapConnectorExecute(async ({ params }) => {
|
|
190
|
+
const { getItem } = await import("../../connectors/monday.js");
|
|
191
|
+
const item = await getItem(params.itemId);
|
|
192
|
+
return JSON.stringify(item);
|
|
193
|
+
}),
|
|
194
|
+
});
|
|
195
|
+
// ============================================================================
|
|
196
|
+
// monday.create_item (write-gated)
|
|
197
|
+
// ============================================================================
|
|
198
|
+
registerTool({
|
|
199
|
+
id: "monday.create_item",
|
|
200
|
+
namespace: "monday",
|
|
201
|
+
description: 'Create a new item on a Monday.com board within a group. `columnValues` is an optional JSON-encoded string of column values (e.g. JSON.stringify({ status: { label: "Done" } })).',
|
|
202
|
+
paramsSchema: {
|
|
203
|
+
type: "object",
|
|
204
|
+
properties: {
|
|
205
|
+
boardId: {
|
|
206
|
+
type: "string",
|
|
207
|
+
description: "Monday board id to create the item on (required)",
|
|
208
|
+
},
|
|
209
|
+
groupId: {
|
|
210
|
+
type: "string",
|
|
211
|
+
description: "Monday group id within the board (required)",
|
|
212
|
+
},
|
|
213
|
+
itemName: {
|
|
214
|
+
type: "string",
|
|
215
|
+
description: "Name/title of the new item (required)",
|
|
216
|
+
},
|
|
217
|
+
columnValues: {
|
|
218
|
+
type: "string",
|
|
219
|
+
description: 'Optional JSON-encoded string of column values (e.g. JSON.stringify({ status: { label: "Done" } }))',
|
|
220
|
+
},
|
|
221
|
+
into: CommonSchemas.into,
|
|
222
|
+
},
|
|
223
|
+
required: ["boardId", "groupId", "itemName"],
|
|
224
|
+
},
|
|
225
|
+
outputSchema: {
|
|
226
|
+
type: "object",
|
|
227
|
+
properties: {
|
|
228
|
+
id: { type: "string" },
|
|
229
|
+
name: { type: "string" },
|
|
230
|
+
},
|
|
231
|
+
},
|
|
232
|
+
riskDefault: "medium",
|
|
233
|
+
isWrite: true,
|
|
234
|
+
isConnector: true,
|
|
235
|
+
execute: wrapConnectorExecute(async ({ params }) => {
|
|
236
|
+
const { createItem } = await import("../../connectors/monday.js");
|
|
237
|
+
const columnValues = typeof params.columnValues === "string" ? params.columnValues : undefined;
|
|
238
|
+
const created = await createItem(params.boardId, params.groupId, params.itemName, columnValues);
|
|
239
|
+
return JSON.stringify(created);
|
|
240
|
+
}),
|
|
241
|
+
});
|
|
242
|
+
//# sourceMappingURL=monday.js.map
|