patchwork-os 0.2.0-alpha.3 → 0.2.0-alpha.31

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.
Files changed (301) hide show
  1. package/README.bridge.md +6 -0
  2. package/README.md +40 -15
  3. package/deploy/bootstrap-vps.sh +184 -0
  4. package/deploy/deploy-dashboard.sh +174 -0
  5. package/deploy/deploy-landing.sh +79 -0
  6. package/dist/activationMetrics.d.ts +67 -0
  7. package/dist/activationMetrics.js +255 -0
  8. package/dist/activationMetrics.js.map +1 -0
  9. package/dist/approvalHttp.d.ts +24 -2
  10. package/dist/approvalHttp.js +150 -10
  11. package/dist/approvalHttp.js.map +1 -1
  12. package/dist/approvalQueue.d.ts +16 -1
  13. package/dist/approvalQueue.js +44 -3
  14. package/dist/approvalQueue.js.map +1 -1
  15. package/dist/automation.d.ts +20 -0
  16. package/dist/automation.js +54 -1
  17. package/dist/automation.js.map +1 -1
  18. package/dist/bridge.d.ts +2 -0
  19. package/dist/bridge.js +55 -130
  20. package/dist/bridge.js.map +1 -1
  21. package/dist/bridgeToken.js +57 -19
  22. package/dist/bridgeToken.js.map +1 -1
  23. package/dist/ccPermissions.js +6 -4
  24. package/dist/ccPermissions.js.map +1 -1
  25. package/dist/claudeOrchestrator.d.ts +1 -1
  26. package/dist/claudeOrchestrator.js +14 -8
  27. package/dist/claudeOrchestrator.js.map +1 -1
  28. package/dist/commands/launchd.d.ts +2 -0
  29. package/dist/commands/launchd.js +94 -0
  30. package/dist/commands/launchd.js.map +1 -0
  31. package/dist/commands/recipe.d.ts +258 -0
  32. package/dist/commands/recipe.js +1130 -0
  33. package/dist/commands/recipe.js.map +1 -0
  34. package/dist/commands/recipeInstall.d.ts +72 -0
  35. package/dist/commands/recipeInstall.js +339 -0
  36. package/dist/commands/recipeInstall.js.map +1 -0
  37. package/dist/config.d.ts +14 -1
  38. package/dist/config.js +99 -8
  39. package/dist/config.js.map +1 -1
  40. package/dist/connectors/baseConnector.d.ts +117 -0
  41. package/dist/connectors/baseConnector.js +213 -0
  42. package/dist/connectors/baseConnector.js.map +1 -0
  43. package/dist/connectors/confluence.d.ts +111 -0
  44. package/dist/connectors/confluence.js +406 -0
  45. package/dist/connectors/confluence.js.map +1 -0
  46. package/dist/connectors/datadog.d.ts +116 -0
  47. package/dist/connectors/datadog.js +385 -0
  48. package/dist/connectors/datadog.js.map +1 -0
  49. package/dist/connectors/fixtureLibrary.d.ts +21 -0
  50. package/dist/connectors/fixtureLibrary.js +70 -0
  51. package/dist/connectors/fixtureLibrary.js.map +1 -0
  52. package/dist/connectors/fixtureRecorder.d.ts +1 -0
  53. package/dist/connectors/fixtureRecorder.js +35 -0
  54. package/dist/connectors/fixtureRecorder.js.map +1 -0
  55. package/dist/connectors/github.d.ts +58 -8
  56. package/dist/connectors/github.js +312 -84
  57. package/dist/connectors/github.js.map +1 -1
  58. package/dist/connectors/gmail.d.ts +4 -1
  59. package/dist/connectors/gmail.js +79 -16
  60. package/dist/connectors/gmail.js.map +1 -1
  61. package/dist/connectors/googleCalendar.d.ts +60 -0
  62. package/dist/connectors/googleCalendar.js +345 -0
  63. package/dist/connectors/googleCalendar.js.map +1 -0
  64. package/dist/connectors/hubspot.d.ts +112 -0
  65. package/dist/connectors/hubspot.js +408 -0
  66. package/dist/connectors/hubspot.js.map +1 -0
  67. package/dist/connectors/intercom.d.ts +102 -0
  68. package/dist/connectors/intercom.js +402 -0
  69. package/dist/connectors/intercom.js.map +1 -0
  70. package/dist/connectors/jira.d.ts +98 -0
  71. package/dist/connectors/jira.js +379 -0
  72. package/dist/connectors/jira.js.map +1 -0
  73. package/dist/connectors/linear.d.ts +69 -19
  74. package/dist/connectors/linear.js +170 -129
  75. package/dist/connectors/linear.js.map +1 -1
  76. package/dist/connectors/mcpClient.d.ts +56 -0
  77. package/dist/connectors/mcpClient.js +189 -0
  78. package/dist/connectors/mcpClient.js.map +1 -0
  79. package/dist/connectors/mcpOAuth.d.ts +84 -0
  80. package/dist/connectors/mcpOAuth.js +389 -0
  81. package/dist/connectors/mcpOAuth.js.map +1 -0
  82. package/dist/connectors/mockConnector.d.ts +28 -0
  83. package/dist/connectors/mockConnector.js +81 -0
  84. package/dist/connectors/mockConnector.js.map +1 -0
  85. package/dist/connectors/notion.d.ts +143 -0
  86. package/dist/connectors/notion.js +424 -0
  87. package/dist/connectors/notion.js.map +1 -0
  88. package/dist/connectors/sentry.d.ts +17 -21
  89. package/dist/connectors/sentry.js +115 -131
  90. package/dist/connectors/sentry.js.map +1 -1
  91. package/dist/connectors/slack.d.ts +50 -0
  92. package/dist/connectors/slack.js +324 -0
  93. package/dist/connectors/slack.js.map +1 -0
  94. package/dist/connectors/stripe.d.ts +116 -0
  95. package/dist/connectors/stripe.js +379 -0
  96. package/dist/connectors/stripe.js.map +1 -0
  97. package/dist/connectors/tokenStorage.d.ts +35 -0
  98. package/dist/connectors/tokenStorage.js +459 -0
  99. package/dist/connectors/tokenStorage.js.map +1 -0
  100. package/dist/connectors/zendesk.d.ts +104 -0
  101. package/dist/connectors/zendesk.js +424 -0
  102. package/dist/connectors/zendesk.js.map +1 -0
  103. package/dist/drivers/gemini/index.d.ts +5 -1
  104. package/dist/drivers/gemini/index.js +39 -5
  105. package/dist/drivers/gemini/index.js.map +1 -1
  106. package/dist/drivers/index.d.ts +5 -0
  107. package/dist/drivers/index.js +1 -1
  108. package/dist/drivers/index.js.map +1 -1
  109. package/dist/featureFlags.d.ts +73 -0
  110. package/dist/featureFlags.js +203 -0
  111. package/dist/featureFlags.js.map +1 -0
  112. package/dist/fp/automationInterpreter.js +1 -0
  113. package/dist/fp/automationInterpreter.js.map +1 -1
  114. package/dist/fp/automationProgram.d.ts +1 -1
  115. package/dist/fp/automationProgram.js.map +1 -1
  116. package/dist/fp/policyParser.js +17 -0
  117. package/dist/fp/policyParser.js.map +1 -1
  118. package/dist/index.js +621 -61
  119. package/dist/index.js.map +1 -1
  120. package/dist/installGuard.d.ts +25 -0
  121. package/dist/installGuard.js +48 -0
  122. package/dist/installGuard.js.map +1 -0
  123. package/dist/oauth.d.ts +4 -1
  124. package/dist/oauth.js +50 -14
  125. package/dist/oauth.js.map +1 -1
  126. package/dist/patchworkConfig.d.ts +9 -0
  127. package/dist/patchworkConfig.js.map +1 -1
  128. package/dist/recipeOrchestration.d.ts +53 -0
  129. package/dist/recipeOrchestration.js +272 -0
  130. package/dist/recipeOrchestration.js.map +1 -0
  131. package/dist/recipes/RecipeOrchestrator.d.ts +40 -0
  132. package/dist/recipes/RecipeOrchestrator.js +51 -0
  133. package/dist/recipes/RecipeOrchestrator.js.map +1 -0
  134. package/dist/recipes/agentExecutor.d.ts +28 -0
  135. package/dist/recipes/agentExecutor.js +42 -0
  136. package/dist/recipes/agentExecutor.js.map +1 -0
  137. package/dist/recipes/chainedRunner.d.ts +140 -0
  138. package/dist/recipes/chainedRunner.js +539 -0
  139. package/dist/recipes/chainedRunner.js.map +1 -0
  140. package/dist/recipes/dependencyGraph.d.ts +39 -0
  141. package/dist/recipes/dependencyGraph.js +199 -0
  142. package/dist/recipes/dependencyGraph.js.map +1 -0
  143. package/dist/recipes/legacyRecipeCompat.d.ts +2 -0
  144. package/dist/recipes/legacyRecipeCompat.js +112 -0
  145. package/dist/recipes/legacyRecipeCompat.js.map +1 -0
  146. package/dist/recipes/manifest.d.ts +47 -0
  147. package/dist/recipes/manifest.js +141 -0
  148. package/dist/recipes/manifest.js.map +1 -0
  149. package/dist/recipes/nestedRecipeStep.d.ts +58 -0
  150. package/dist/recipes/nestedRecipeStep.js +95 -0
  151. package/dist/recipes/nestedRecipeStep.js.map +1 -0
  152. package/dist/recipes/outputRegistry.d.ts +28 -0
  153. package/dist/recipes/outputRegistry.js +52 -0
  154. package/dist/recipes/outputRegistry.js.map +1 -0
  155. package/dist/recipes/scheduler.d.ts +23 -7
  156. package/dist/recipes/scheduler.js +131 -41
  157. package/dist/recipes/scheduler.js.map +1 -1
  158. package/dist/recipes/schema.d.ts +17 -2
  159. package/dist/recipes/schemaGenerator.d.ts +28 -0
  160. package/dist/recipes/schemaGenerator.js +565 -0
  161. package/dist/recipes/schemaGenerator.js.map +1 -0
  162. package/dist/recipes/templateEngine.d.ts +62 -0
  163. package/dist/recipes/templateEngine.js +182 -0
  164. package/dist/recipes/templateEngine.js.map +1 -0
  165. package/dist/recipes/toolRegistry.d.ts +181 -0
  166. package/dist/recipes/toolRegistry.js +300 -0
  167. package/dist/recipes/toolRegistry.js.map +1 -0
  168. package/dist/recipes/tools/calendar.d.ts +6 -0
  169. package/dist/recipes/tools/calendar.js +61 -0
  170. package/dist/recipes/tools/calendar.js.map +1 -0
  171. package/dist/recipes/tools/confluence.d.ts +6 -0
  172. package/dist/recipes/tools/confluence.js +254 -0
  173. package/dist/recipes/tools/confluence.js.map +1 -0
  174. package/dist/recipes/tools/datadog.d.ts +6 -0
  175. package/dist/recipes/tools/datadog.js +239 -0
  176. package/dist/recipes/tools/datadog.js.map +1 -0
  177. package/dist/recipes/tools/diagnostics.d.ts +6 -0
  178. package/dist/recipes/tools/diagnostics.js +36 -0
  179. package/dist/recipes/tools/diagnostics.js.map +1 -0
  180. package/dist/recipes/tools/file.d.ts +6 -0
  181. package/dist/recipes/tools/file.js +170 -0
  182. package/dist/recipes/tools/file.js.map +1 -0
  183. package/dist/recipes/tools/git.d.ts +6 -0
  184. package/dist/recipes/tools/git.js +63 -0
  185. package/dist/recipes/tools/git.js.map +1 -0
  186. package/dist/recipes/tools/github.d.ts +6 -0
  187. package/dist/recipes/tools/github.js +91 -0
  188. package/dist/recipes/tools/github.js.map +1 -0
  189. package/dist/recipes/tools/gmail.d.ts +6 -0
  190. package/dist/recipes/tools/gmail.js +210 -0
  191. package/dist/recipes/tools/gmail.js.map +1 -0
  192. package/dist/recipes/tools/hubspot.d.ts +6 -0
  193. package/dist/recipes/tools/hubspot.js +232 -0
  194. package/dist/recipes/tools/hubspot.js.map +1 -0
  195. package/dist/recipes/tools/index.d.ts +22 -0
  196. package/dist/recipes/tools/index.js +25 -0
  197. package/dist/recipes/tools/index.js.map +1 -0
  198. package/dist/recipes/tools/intercom.d.ts +6 -0
  199. package/dist/recipes/tools/intercom.js +226 -0
  200. package/dist/recipes/tools/intercom.js.map +1 -0
  201. package/dist/recipes/tools/linear.d.ts +6 -0
  202. package/dist/recipes/tools/linear.js +83 -0
  203. package/dist/recipes/tools/linear.js.map +1 -0
  204. package/dist/recipes/tools/notion.d.ts +6 -0
  205. package/dist/recipes/tools/notion.js +278 -0
  206. package/dist/recipes/tools/notion.js.map +1 -0
  207. package/dist/recipes/tools/slack.d.ts +6 -0
  208. package/dist/recipes/tools/slack.js +72 -0
  209. package/dist/recipes/tools/slack.js.map +1 -0
  210. package/dist/recipes/tools/stripe.d.ts +6 -0
  211. package/dist/recipes/tools/stripe.js +265 -0
  212. package/dist/recipes/tools/stripe.js.map +1 -0
  213. package/dist/recipes/tools/zendesk.d.ts +6 -0
  214. package/dist/recipes/tools/zendesk.js +245 -0
  215. package/dist/recipes/tools/zendesk.js.map +1 -0
  216. package/dist/recipes/validation.d.ts +13 -0
  217. package/dist/recipes/validation.js +433 -0
  218. package/dist/recipes/validation.js.map +1 -0
  219. package/dist/recipes/yamlRunner.d.ts +87 -0
  220. package/dist/recipes/yamlRunner.js +693 -409
  221. package/dist/recipes/yamlRunner.js.map +1 -1
  222. package/dist/recipesHttp.d.ts +34 -6
  223. package/dist/recipesHttp.js +285 -15
  224. package/dist/recipesHttp.js.map +1 -1
  225. package/dist/riskTier.js +1 -0
  226. package/dist/riskTier.js.map +1 -1
  227. package/dist/runLog.d.ts +23 -0
  228. package/dist/runLog.js +56 -1
  229. package/dist/runLog.js.map +1 -1
  230. package/dist/schemas/dry-run-plan.v1.json +139 -0
  231. package/dist/schemas/recipe.v1.json +684 -0
  232. package/dist/server.d.ts +32 -1
  233. package/dist/server.js +980 -97
  234. package/dist/server.js.map +1 -1
  235. package/dist/streamableHttp.js +2 -0
  236. package/dist/streamableHttp.js.map +1 -1
  237. package/dist/tools/addLinearComment.d.ts +55 -0
  238. package/dist/tools/addLinearComment.js +72 -0
  239. package/dist/tools/addLinearComment.js.map +1 -0
  240. package/dist/tools/bridgeDoctor.js +2 -2
  241. package/dist/tools/bridgeDoctor.js.map +1 -1
  242. package/dist/tools/createLinearIssue.d.ts +84 -0
  243. package/dist/tools/createLinearIssue.js +146 -0
  244. package/dist/tools/createLinearIssue.js.map +1 -0
  245. package/dist/tools/fetchCalendarEvents.d.ts +94 -0
  246. package/dist/tools/fetchCalendarEvents.js +97 -0
  247. package/dist/tools/fetchCalendarEvents.js.map +1 -0
  248. package/dist/tools/fetchGithubIssue.d.ts +80 -0
  249. package/dist/tools/fetchGithubIssue.js +84 -0
  250. package/dist/tools/fetchGithubIssue.js.map +1 -0
  251. package/dist/tools/fetchGithubPR.d.ts +89 -0
  252. package/dist/tools/fetchGithubPR.js +96 -0
  253. package/dist/tools/fetchGithubPR.js.map +1 -0
  254. package/dist/tools/fetchSlackProfile.d.ts +43 -0
  255. package/dist/tools/fetchSlackProfile.js +46 -0
  256. package/dist/tools/fetchSlackProfile.js.map +1 -0
  257. package/dist/tools/getConnectorStatus.d.ts +58 -0
  258. package/dist/tools/getConnectorStatus.js +56 -0
  259. package/dist/tools/getConnectorStatus.js.map +1 -0
  260. package/dist/tools/github/actions.js +4 -2
  261. package/dist/tools/github/actions.js.map +1 -1
  262. package/dist/tools/github/composite.d.ts +339 -0
  263. package/dist/tools/github/composite.js +343 -0
  264. package/dist/tools/github/composite.js.map +1 -0
  265. package/dist/tools/github/index.d.ts +2 -1
  266. package/dist/tools/github/index.js +2 -1
  267. package/dist/tools/github/index.js.map +1 -1
  268. package/dist/tools/github/issues.js +8 -4
  269. package/dist/tools/github/issues.js.map +1 -1
  270. package/dist/tools/github/pr.d.ts +122 -0
  271. package/dist/tools/github/pr.js +195 -5
  272. package/dist/tools/github/pr.js.map +1 -1
  273. package/dist/tools/index.js +32 -1
  274. package/dist/tools/index.js.map +1 -1
  275. package/dist/tools/searchTools.js +1 -1
  276. package/dist/tools/searchTools.js.map +1 -1
  277. package/dist/tools/slackListChannels.d.ts +65 -0
  278. package/dist/tools/slackListChannels.js +70 -0
  279. package/dist/tools/slackListChannels.js.map +1 -0
  280. package/dist/tools/slackPostMessage.d.ts +57 -0
  281. package/dist/tools/slackPostMessage.js +77 -0
  282. package/dist/tools/slackPostMessage.js.map +1 -0
  283. package/dist/tools/testTraceToSource.js +2 -2
  284. package/dist/tools/testTraceToSource.js.map +1 -1
  285. package/dist/tools/updateLinearIssue.d.ts +89 -0
  286. package/dist/tools/updateLinearIssue.js +117 -0
  287. package/dist/tools/updateLinearIssue.js.map +1 -0
  288. package/dist/transport.d.ts +7 -1
  289. package/dist/transport.js +85 -11
  290. package/dist/transport.js.map +1 -1
  291. package/package.json +5 -2
  292. package/scripts/start-all.sh +56 -19
  293. package/templates/automation-policies/recipe-authoring.json +25 -0
  294. package/templates/automation-policy.example.json +6 -0
  295. package/templates/co.patchwork-os.bridge.plist +34 -0
  296. package/templates/recipes/ctx-loop-test.yaml +75 -0
  297. package/templates/recipes/lint-on-save.yaml +1 -2
  298. package/templates/recipes/morning-brief-slack.yaml +57 -0
  299. package/templates/recipes/morning-brief.yaml +14 -6
  300. package/templates/recipes/project-health-check.yaml +50 -0
  301. package/templates/recipes/sentry-to-linear.yaml +77 -0
@@ -0,0 +1,232 @@
1
+ /**
2
+ * HubSpot tools — list/get contacts and deals, create notes, search contacts.
3
+ *
4
+ * Self-registering tool module for the recipe tool registry.
5
+ */
6
+ import { assertWriteAllowed } from "../../featureFlags.js";
7
+ import { CommonSchemas, registerTool } from "../toolRegistry.js";
8
+ // ============================================================================
9
+ // hubspot.listContacts
10
+ // ============================================================================
11
+ registerTool({
12
+ id: "hubspot.listContacts",
13
+ namespace: "hubspot",
14
+ description: "List HubSpot CRM contacts with basic properties.",
15
+ paramsSchema: {
16
+ type: "object",
17
+ properties: {
18
+ limit: {
19
+ type: "number",
20
+ description: "Max contacts to return (default 25)",
21
+ default: 25,
22
+ },
23
+ after: {
24
+ type: "string",
25
+ description: "Pagination cursor (after value from previous response)",
26
+ },
27
+ into: CommonSchemas.into,
28
+ },
29
+ required: [],
30
+ },
31
+ outputSchema: {
32
+ type: "object",
33
+ properties: {
34
+ results: { type: "array", items: { type: "object" } },
35
+ paging: { type: "object" },
36
+ },
37
+ },
38
+ riskDefault: "low",
39
+ isWrite: false,
40
+ isConnector: true,
41
+ execute: async ({ params }) => {
42
+ const { getHubSpotConnector } = await import("../../connectors/hubspot.js");
43
+ const connector = getHubSpotConnector();
44
+ const result = await connector.listContacts({
45
+ limit: typeof params.limit === "number" ? params.limit : undefined,
46
+ after: typeof params.after === "string" ? params.after : undefined,
47
+ });
48
+ return JSON.stringify(result);
49
+ },
50
+ });
51
+ // ============================================================================
52
+ // hubspot.getContact
53
+ // ============================================================================
54
+ registerTool({
55
+ id: "hubspot.getContact",
56
+ namespace: "hubspot",
57
+ description: "Fetch a single HubSpot contact by ID.",
58
+ paramsSchema: {
59
+ type: "object",
60
+ properties: {
61
+ contactId: { type: "string", description: "HubSpot contact ID" },
62
+ into: CommonSchemas.into,
63
+ },
64
+ required: ["contactId"],
65
+ },
66
+ outputSchema: {
67
+ type: "object",
68
+ properties: {
69
+ contact: { type: ["object", "null"] },
70
+ },
71
+ },
72
+ riskDefault: "low",
73
+ isWrite: false,
74
+ isConnector: true,
75
+ execute: async ({ params }) => {
76
+ const { getHubSpotConnector } = await import("../../connectors/hubspot.js");
77
+ const connector = getHubSpotConnector();
78
+ const contact = await connector.getContact(params.contactId);
79
+ return JSON.stringify({ contact });
80
+ },
81
+ });
82
+ // ============================================================================
83
+ // hubspot.listDeals
84
+ // ============================================================================
85
+ registerTool({
86
+ id: "hubspot.listDeals",
87
+ namespace: "hubspot",
88
+ description: "List HubSpot CRM deals, optionally filtered by stage.",
89
+ paramsSchema: {
90
+ type: "object",
91
+ properties: {
92
+ limit: {
93
+ type: "number",
94
+ description: "Max deals to return (default 25)",
95
+ default: 25,
96
+ },
97
+ stage: {
98
+ type: "string",
99
+ description: "Filter by deal stage ID",
100
+ },
101
+ into: CommonSchemas.into,
102
+ },
103
+ required: [],
104
+ },
105
+ outputSchema: {
106
+ type: "object",
107
+ properties: {
108
+ results: { type: "array", items: { type: "object" } },
109
+ paging: { type: "object" },
110
+ },
111
+ },
112
+ riskDefault: "low",
113
+ isWrite: false,
114
+ isConnector: true,
115
+ execute: async ({ params }) => {
116
+ const { getHubSpotConnector } = await import("../../connectors/hubspot.js");
117
+ const connector = getHubSpotConnector();
118
+ const result = await connector.listDeals({
119
+ limit: typeof params.limit === "number" ? params.limit : undefined,
120
+ stage: typeof params.stage === "string" ? params.stage : undefined,
121
+ });
122
+ return JSON.stringify(result);
123
+ },
124
+ });
125
+ // ============================================================================
126
+ // hubspot.getDeal
127
+ // ============================================================================
128
+ registerTool({
129
+ id: "hubspot.getDeal",
130
+ namespace: "hubspot",
131
+ description: "Fetch a single HubSpot deal by ID.",
132
+ paramsSchema: {
133
+ type: "object",
134
+ properties: {
135
+ dealId: { type: "string", description: "HubSpot deal ID" },
136
+ into: CommonSchemas.into,
137
+ },
138
+ required: ["dealId"],
139
+ },
140
+ outputSchema: {
141
+ type: "object",
142
+ properties: {
143
+ deal: { type: ["object", "null"] },
144
+ },
145
+ },
146
+ riskDefault: "low",
147
+ isWrite: false,
148
+ isConnector: true,
149
+ execute: async ({ params }) => {
150
+ const { getHubSpotConnector } = await import("../../connectors/hubspot.js");
151
+ const connector = getHubSpotConnector();
152
+ const deal = await connector.getDeal(params.dealId);
153
+ return JSON.stringify({ deal });
154
+ },
155
+ });
156
+ // ============================================================================
157
+ // hubspot.createNote
158
+ // ============================================================================
159
+ registerTool({
160
+ id: "hubspot.createNote",
161
+ namespace: "hubspot",
162
+ description: "Create a note in HubSpot, optionally associated with a contact or deal.",
163
+ paramsSchema: {
164
+ type: "object",
165
+ properties: {
166
+ body: { type: "string", description: "Note text content" },
167
+ contactId: {
168
+ type: "string",
169
+ description: "Associate note with this contact ID",
170
+ },
171
+ dealId: {
172
+ type: "string",
173
+ description: "Associate note with this deal ID",
174
+ },
175
+ into: CommonSchemas.into,
176
+ },
177
+ required: ["body"],
178
+ },
179
+ outputSchema: {
180
+ type: "object",
181
+ properties: {
182
+ id: { type: "string" },
183
+ createdAt: { type: "string" },
184
+ },
185
+ },
186
+ riskDefault: "medium",
187
+ isWrite: true,
188
+ isConnector: true,
189
+ execute: async ({ params }) => {
190
+ assertWriteAllowed("hubspot.createNote");
191
+ const { getHubSpotConnector } = await import("../../connectors/hubspot.js");
192
+ const connector = getHubSpotConnector();
193
+ const note = await connector.createNote(params.body, typeof params.contactId === "string" ? params.contactId : undefined, typeof params.dealId === "string" ? params.dealId : undefined);
194
+ return JSON.stringify({ id: note.id, createdAt: note.createdAt });
195
+ },
196
+ });
197
+ // ============================================================================
198
+ // hubspot.searchContacts
199
+ // ============================================================================
200
+ registerTool({
201
+ id: "hubspot.searchContacts",
202
+ namespace: "hubspot",
203
+ description: "Search HubSpot contacts by name, email, or company.",
204
+ paramsSchema: {
205
+ type: "object",
206
+ properties: {
207
+ query: {
208
+ type: "string",
209
+ description: "Search query string",
210
+ },
211
+ into: CommonSchemas.into,
212
+ },
213
+ required: ["query"],
214
+ },
215
+ outputSchema: {
216
+ type: "object",
217
+ properties: {
218
+ results: { type: "array", items: { type: "object" } },
219
+ count: { type: "number" },
220
+ },
221
+ },
222
+ riskDefault: "low",
223
+ isWrite: false,
224
+ isConnector: true,
225
+ execute: async ({ params }) => {
226
+ const { getHubSpotConnector } = await import("../../connectors/hubspot.js");
227
+ const connector = getHubSpotConnector();
228
+ const results = await connector.searchContacts(params.query);
229
+ return JSON.stringify({ results, count: results.length });
230
+ },
231
+ });
232
+ //# sourceMappingURL=hubspot.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"hubspot.js","sourceRoot":"","sources":["../../../src/recipes/tools/hubspot.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAAE,kBAAkB,EAAE,MAAM,uBAAu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AAU,EAAE;YACV,KAAK,EAAE;gBACL,IAAI,EAAE,QAAQ;gBACd,WAAW,EAAE,qBAAqB;aACnC;YACD,IAAI,EAAE,aAAa,CAAC,IAAI;SACzB;QACD,QAAQ,EAAE,CAAC,OAAO,CAAC;KACpB;IACD,YAAY,EAAE;QACZ,IAAI,EAAE,QAAQ;QACd,UAAU,EAAE;YACV,OAAO,EAAE,EAAE,IAAI,EAAE,OAAO,EAAE,KAAK,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,EAAE;YACrD,KAAK,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE;SAC1B;KACF;IACD,WAAW,EAAE,KAAK;IAClB,OAAO,EAAE,KAAK;IACd,WAAW,EAAE,IAAI;IACjB,OAAO,EAAE,KAAK,EAAE,EAAE,MAAM,EAAE,EAAE,EAAE;QAC5B,MAAM,EAAE,mBAAmB,EAAE,GAAG,MAAM,MAAM,CAAC,6BAA6B,CAAC,CAAC;QAC5E,MAAM,SAAS,GAAG,mBAAmB,EAAE,CAAC;QACxC,MAAM,OAAO,GAAG,MAAM,SAAS,CAAC,cAAc,CAAC,MAAM,CAAC,KAAe,CAAC,CAAC;QACvE,OAAO,IAAI,CAAC,SAAS,CAAC,EAAE,OAAO,EAAE,KAAK,EAAE,OAAO,CAAC,MAAM,EAAE,CAAC,CAAC;IAC5D,CAAC;CACF,CAAC,CAAC"}
@@ -0,0 +1,22 @@
1
+ /**
2
+ * Tool registry loader — imports all tool modules to trigger self-registration.
3
+ *
4
+ * Import this file before using the registry to ensure all tools are registered.
5
+ */
6
+ import "./file.js";
7
+ import "./git.js";
8
+ import "./diagnostics.js";
9
+ import "./gmail.js";
10
+ import "./github.js";
11
+ import "./linear.js";
12
+ import "./calendar.js";
13
+ import "./slack.js";
14
+ import "./notion.js";
15
+ import "./confluence.js";
16
+ import "./zendesk.js";
17
+ import "./intercom.js";
18
+ import "./hubspot.js";
19
+ import "./datadog.js";
20
+ import "./stripe.js";
21
+ export type { RegisteredTool, ToolContext, ToolExecute, ToolMetadata, } from "../toolRegistry.js";
22
+ export { CommonOutputSchemas, CommonSchemas, clearRegistry, executeTool, getNamespaces, getTool, hasTool, listTools, registerTool, } from "../toolRegistry.js";
@@ -0,0 +1,25 @@
1
+ /**
2
+ * Tool registry loader — imports all tool modules to trigger self-registration.
3
+ *
4
+ * Import this file before using the registry to ensure all tools are registered.
5
+ */
6
+ // Core tools
7
+ import "./file.js";
8
+ import "./git.js";
9
+ import "./diagnostics.js";
10
+ // Connector-based tools
11
+ import "./gmail.js";
12
+ import "./github.js";
13
+ import "./linear.js";
14
+ import "./calendar.js";
15
+ import "./slack.js";
16
+ import "./notion.js";
17
+ import "./confluence.js";
18
+ import "./zendesk.js";
19
+ import "./intercom.js";
20
+ import "./hubspot.js";
21
+ import "./datadog.js";
22
+ import "./stripe.js";
23
+ // Re-export registry for convenience
24
+ export { CommonOutputSchemas, CommonSchemas, clearRegistry, executeTool, getNamespaces, getTool, hasTool, listTools, registerTool, } from "../toolRegistry.js";
25
+ //# sourceMappingURL=index.js.map
@@ -0,0 +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;AAE1B,wBAAwB;AACxB,OAAO,YAAY,CAAC;AACpB,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,aAAa,CAAC;AAQrB,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,6 @@
1
+ /**
2
+ * Intercom tools — list/get conversations, reply, close, list contacts.
3
+ *
4
+ * Self-registering tool module for the recipe tool registry.
5
+ */
6
+ export {};
@@ -0,0 +1,226 @@
1
+ /**
2
+ * Intercom tools — list/get conversations, reply, close, list contacts.
3
+ *
4
+ * Self-registering tool module for the recipe tool registry.
5
+ */
6
+ import { assertWriteAllowed } from "../../featureFlags.js";
7
+ import { CommonSchemas, registerTool } from "../toolRegistry.js";
8
+ // ============================================================================
9
+ // intercom.listConversations
10
+ // ============================================================================
11
+ registerTool({
12
+ id: "intercom.listConversations",
13
+ namespace: "intercom",
14
+ description: "List Intercom conversations, optionally filtered by status or assignee.",
15
+ paramsSchema: {
16
+ type: "object",
17
+ properties: {
18
+ status: {
19
+ type: "string",
20
+ enum: ["open", "closed", "snoozed", "pending"],
21
+ description: "Filter by conversation status",
22
+ },
23
+ assigneeId: {
24
+ type: "string",
25
+ description: "Filter by assignee ID",
26
+ },
27
+ perPage: {
28
+ type: "number",
29
+ description: "Results per page (default 20)",
30
+ default: 20,
31
+ },
32
+ into: CommonSchemas.into,
33
+ },
34
+ required: [],
35
+ },
36
+ outputSchema: {
37
+ type: "object",
38
+ properties: {
39
+ conversations: { type: "array", items: { type: "object" } },
40
+ total_count: { type: "number" },
41
+ pages: { type: "object" },
42
+ },
43
+ },
44
+ riskDefault: "low",
45
+ isWrite: false,
46
+ isConnector: true,
47
+ execute: async ({ params }) => {
48
+ const { getIntercomConnector } = await import("../../connectors/intercom.js");
49
+ const connector = getIntercomConnector();
50
+ const result = await connector.listConversations({
51
+ status: params.status,
52
+ assigneeId: typeof params.assigneeId === "string" ? params.assigneeId : undefined,
53
+ perPage: typeof params.perPage === "number" ? params.perPage : 20,
54
+ });
55
+ return JSON.stringify(result);
56
+ },
57
+ });
58
+ // ============================================================================
59
+ // intercom.getConversation
60
+ // ============================================================================
61
+ registerTool({
62
+ id: "intercom.getConversation",
63
+ namespace: "intercom",
64
+ description: "Fetch a single Intercom conversation by ID, including parts.",
65
+ paramsSchema: {
66
+ type: "object",
67
+ properties: {
68
+ conversationId: {
69
+ type: "string",
70
+ description: "Intercom conversation ID",
71
+ },
72
+ into: CommonSchemas.into,
73
+ },
74
+ required: ["conversationId"],
75
+ },
76
+ outputSchema: {
77
+ type: "object",
78
+ properties: {
79
+ id: { type: "string" },
80
+ state: { type: "string" },
81
+ title: { type: ["string", "null"] },
82
+ },
83
+ },
84
+ riskDefault: "low",
85
+ isWrite: false,
86
+ isConnector: true,
87
+ execute: async ({ params }) => {
88
+ const { getIntercomConnector } = await import("../../connectors/intercom.js");
89
+ const connector = getIntercomConnector();
90
+ const conversation = await connector.getConversation(params.conversationId);
91
+ return JSON.stringify(conversation);
92
+ },
93
+ });
94
+ // ============================================================================
95
+ // intercom.replyToConversation
96
+ // ============================================================================
97
+ registerTool({
98
+ id: "intercom.replyToConversation",
99
+ namespace: "intercom",
100
+ description: "Reply to an Intercom conversation as a comment or internal note.",
101
+ paramsSchema: {
102
+ type: "object",
103
+ properties: {
104
+ conversationId: {
105
+ type: "string",
106
+ description: "Intercom conversation ID",
107
+ },
108
+ body: { type: "string", description: "Reply body text" },
109
+ type: {
110
+ type: "string",
111
+ enum: ["comment", "note"],
112
+ description: "Reply type: comment (visible to user) or note (internal)",
113
+ default: "comment",
114
+ },
115
+ into: CommonSchemas.into,
116
+ },
117
+ required: ["conversationId", "body"],
118
+ },
119
+ outputSchema: {
120
+ type: "object",
121
+ properties: {
122
+ id: { type: "string" },
123
+ state: { type: "string" },
124
+ },
125
+ },
126
+ riskDefault: "medium",
127
+ isWrite: true,
128
+ isConnector: true,
129
+ execute: async ({ params }) => {
130
+ assertWriteAllowed("intercom.replyToConversation");
131
+ const { getIntercomConnector } = await import("../../connectors/intercom.js");
132
+ const connector = getIntercomConnector();
133
+ const conversation = await connector.replyToConversation(params.conversationId, params.body, params.type ?? "comment");
134
+ return JSON.stringify({ id: conversation.id, state: conversation.state });
135
+ },
136
+ });
137
+ // ============================================================================
138
+ // intercom.closeConversation
139
+ // ============================================================================
140
+ registerTool({
141
+ id: "intercom.closeConversation",
142
+ namespace: "intercom",
143
+ description: "Close an open Intercom conversation.",
144
+ paramsSchema: {
145
+ type: "object",
146
+ properties: {
147
+ conversationId: {
148
+ type: "string",
149
+ description: "Intercom conversation ID",
150
+ },
151
+ into: CommonSchemas.into,
152
+ },
153
+ required: ["conversationId"],
154
+ },
155
+ outputSchema: {
156
+ type: "object",
157
+ properties: {
158
+ id: { type: "string" },
159
+ state: { type: "string" },
160
+ },
161
+ },
162
+ riskDefault: "medium",
163
+ isWrite: true,
164
+ isConnector: true,
165
+ execute: async ({ params }) => {
166
+ assertWriteAllowed("intercom.closeConversation");
167
+ const { getIntercomConnector } = await import("../../connectors/intercom.js");
168
+ const connector = getIntercomConnector();
169
+ const conversation = await connector.closeConversation(params.conversationId);
170
+ return JSON.stringify({ id: conversation.id, state: conversation.state });
171
+ },
172
+ });
173
+ // ============================================================================
174
+ // intercom.listContacts
175
+ // ============================================================================
176
+ registerTool({
177
+ id: "intercom.listContacts",
178
+ namespace: "intercom",
179
+ description: "List Intercom contacts, optionally filtered by name query.",
180
+ paramsSchema: {
181
+ type: "object",
182
+ properties: {
183
+ query: {
184
+ type: "string",
185
+ description: "Filter contacts by name (partial match)",
186
+ },
187
+ perPage: {
188
+ type: "number",
189
+ description: "Results per page (default 20)",
190
+ default: 20,
191
+ },
192
+ into: CommonSchemas.into,
193
+ },
194
+ required: [],
195
+ },
196
+ outputSchema: {
197
+ type: "object",
198
+ properties: {
199
+ contacts: {
200
+ type: "array",
201
+ items: {
202
+ type: "object",
203
+ properties: {
204
+ id: { type: "string" },
205
+ name: { type: ["string", "null"] },
206
+ email: { type: ["string", "null"] },
207
+ },
208
+ },
209
+ },
210
+ total_count: { type: "number" },
211
+ },
212
+ },
213
+ riskDefault: "low",
214
+ isWrite: false,
215
+ isConnector: true,
216
+ execute: async ({ params }) => {
217
+ const { getIntercomConnector } = await import("../../connectors/intercom.js");
218
+ const connector = getIntercomConnector();
219
+ const result = await connector.listContacts({
220
+ query: params.query,
221
+ perPage: typeof params.perPage === "number" ? params.perPage : 20,
222
+ });
223
+ return JSON.stringify(result);
224
+ },
225
+ });
226
+ //# sourceMappingURL=intercom.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"intercom.js","sourceRoot":"","sources":["../../../src/recipes/tools/intercom.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAAE,kBAAkB,EAAE,MAAM,uBAAuB,CAAC;AAC3D,OAAO,EAAE,aAAa,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAC;AAEjE,+EAA+E;AAC/E,6BAA6B;AAC7B,+EAA+E;AAE/E,YAAY,CAAC;IACX,EAAE,EAAE,4BAA4B;IAChC,SAAS,EAAE,UAAU;IACrB,WAAW,EACT,yEAAyE;IAC3E,YAAY,EAAE;QACZ,IAAI,EAAE,QAAQ;QACd,UAAU,EAAE;YACV,MAAM,EAAE;gBACN,IAAI,EAAE,QAAQ;gBACd,IAAI,EAAE,CAAC,MAAM,EAAE,QAAQ,EAAE,SAAS,EAAE,SAAS,CAAC;gBAC9C,WAAW,EAAE,+BAA+B;aAC7C;YACD,UAAU,EAAE;gBACV,IAAI,EAAE,QAAQ;gBACd,WAAW,EAAE,uBAAuB;aACrC;YACD,OAAO,EAAE;gBACP,IAAI,EAAE,QAAQ;gBACd,WAAW,EAAE,+BAA+B;gBAC5C,OAAO,EAAE,EAAE;aACZ;YACD,IAAI,EAAE,aAAa,CAAC,IAAI;SACzB;QACD,QAAQ,EAAE,EAAE;KACb;IACD,YAAY,EAAE;QACZ,IAAI,EAAE,QAAQ;QACd,UAAU,EAAE;YACV,aAAa,EAAE,EAAE,IAAI,EAAE,OAAO,EAAE,KAAK,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,EAAE;YAC3D,WA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IAAI,EAAE,CAAC,QAAQ,EAAE,MAAM,CAAC,EAAE;wBAClC,KAAK,EAAE,EAAE,IAAI,EAAE,CAAC,QAAQ,EAAE,MAAM,CAAC,EAAE;qBACpC;iBACF;aACF;YACD,WAAW,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE;SAChC;KACF;IACD,WAAW,EAAE,KAAK;IAClB,OAAO,EAAE,KAAK;IACd,WAAW,EAAE,IAAI;IACjB,OAAO,EAAE,KAAK,EAAE,EAAE,MAAM,EAAE,EAAE,EAAE;QAC5B,MAAM,EAAE,oBAAoB,EAAE,GAAG,MAAM,MAAM,CAC3C,8BAA8B,CAC/B,CAAC;QACF,MAAM,SAAS,GAAG,oBAAoB,EAAE,CAAC;QACzC,MAAM,MAAM,GAAG,MAAM,SAAS,CAAC,YAAY,CAAC;YAC1C,KAAK,EAAE,MAAM,CAAC,KAA2B;YACzC,OAAO,EAAE,OAAO,MAAM,CAAC,OAAO,KAAK,QAAQ,CAAC,CAAC,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC,CAAC,EAAE;SAClE,CAAC,CAAC;QACH,OAAO,IAAI,CAAC,SAAS,CAAC,MAAM,CAAC,CAAC;IAChC,CAAC;CACF,CAAC,CAAC"}
@@ -0,0 +1,6 @@
1
+ /**
2
+ * Linear tools — linear.list_issues
3
+ *
4
+ * Self-registering tool module for the recipe tool registry.
5
+ */
6
+ export {};
@@ -0,0 +1,83 @@
1
+ /**
2
+ * Linear tools — linear.list_issues
3
+ *
4
+ * Self-registering tool module for the recipe tool registry.
5
+ */
6
+ import { CommonSchemas, registerTool } from "../toolRegistry.js";
7
+ // ============================================================================
8
+ // linear.list_issues
9
+ // ============================================================================
10
+ registerTool({
11
+ id: "linear.list_issues",
12
+ namespace: "linear",
13
+ description: "List Linear issues assigned to the current user, optionally filtered by team and state.",
14
+ paramsSchema: {
15
+ type: "object",
16
+ properties: {
17
+ team: {
18
+ type: "string",
19
+ description: "Team key to filter by (e.g., 'ENG', 'PROD')",
20
+ },
21
+ assignee: {
22
+ type: "string",
23
+ description: "Use '@me' for current user (default), or omit for all assignees",
24
+ default: "@me",
25
+ },
26
+ state: {
27
+ type: "string",
28
+ description: "Comma-separated state names (e.g., 'started,unstarted')",
29
+ default: "started,unstarted",
30
+ },
31
+ max: CommonSchemas.max,
32
+ into: CommonSchemas.into,
33
+ },
34
+ },
35
+ outputSchema: {
36
+ type: "object",
37
+ properties: {
38
+ count: { type: "number" },
39
+ issues: { type: "array" },
40
+ error: { type: "string" },
41
+ },
42
+ },
43
+ riskDefault: "low",
44
+ isWrite: false,
45
+ isConnector: true,
46
+ execute: async ({ params }) => {
47
+ const { loadTokens, listIssues: listLinearIssues } = await import("../../connectors/linear.js");
48
+ if (!loadTokens()) {
49
+ return JSON.stringify({
50
+ count: 0,
51
+ issues: [],
52
+ error: "Linear not connected",
53
+ });
54
+ }
55
+ const teamKey = params.team ? String(params.team) : undefined;
56
+ const assigneeMe = params.assignee === "@me" || params.assignee === undefined;
57
+ const stateFilter = params.state
58
+ ? String(params.state)
59
+ : "started,unstarted";
60
+ const limit = typeof params.max === "number" ? params.max : 20;
61
+ const states = stateFilter
62
+ .split(",")
63
+ .map((s) => s.trim())
64
+ .filter(Boolean);
65
+ try {
66
+ const issues = await listLinearIssues({
67
+ team: teamKey,
68
+ assigneeMe,
69
+ states,
70
+ limit,
71
+ });
72
+ return JSON.stringify({ count: issues.length, issues });
73
+ }
74
+ catch (err) {
75
+ return JSON.stringify({
76
+ count: 0,
77
+ issues: [],
78
+ error: err instanceof Error ? err.message : String(err),
79
+ });
80
+ }
81
+ },
82
+ });
83
+ //# sourceMappingURL=linear.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"linear.js","sourceRoot":"","sources":["../../../src/recipes/tools/linear.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAAE,aAAa,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAC;AAEjE,+EAA+E;AAC/E,qBAAqB;AACrB,+EAA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,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC;QAC9D,MAAM,UAAU,GACd,MAAM,CAAC,QAAQ,KAAK,KAAK,IAAI,MAAM,CAAC,QAAQ,KAAK,SAAS,CAAC;QAC7D,MAAM,WAAW,GAAG,MAAM,CAAC,KAAK;YAC9B,CAAC,CAAC,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC;YACtB,CAAC,CAAC,mBAAmB,CAAC;QACxB,MAAM,KAAK,GAAG,OAAO,MAAM,CAAC,GAAG,KAAK,QAAQ,CAAC,CAAC,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC;QAC/D,MAAM,MAAM,GAAG,WAAW;aACvB,KAAK,CAAC,GAAG,CAAC;aACV,GAAG,CAAC,CAAC,CAAS,EAAE,EAAE,CAAC,CAAC,CAAC,IAAI,EAAE,CAAC;aAC5B,MAAM,CAAC,OAAO,CAAC,CAAC;QAEnB,IAAI,CAAC;YACH,MAAM,MAAM,GAAG,MAAM,gBAAgB,CAAC;gBACpC,IAAI,EAAE,OAAO;gBACb,UAAU;gBACV,MAAM;gBACN,KAAK;aACN,CAAC,CAAC;YACH,OAAO,IAAI,CAAC,SAAS,CAAC,EAAE,KAAK,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,EAAE,CAAC,CAAC;QAC1D,CAAC;QAAC,OAAO,GAAG,EAAE,CAAC;YACb,OAAO,IAAI,CAAC,SAAS,CAAC;gBACpB,KAAK,EAAE,CAAC;gBACR,MAAM,EAAE,EAAE;gBACV,KAAK,EAAE,GAAG,YAAY,KAAK,CAAC,CAAC,CAAC,GAAG,CAAC,OAAO,CAAC,CAAC,CAAC,MAAM,CAAC,GAAG,CAAC;aACxD,CAAC,CAAC;QACL,CAAC;IACH,CAAC;CACF,CAAC,CAAC"}
@@ -0,0 +1,6 @@
1
+ /**
2
+ * Notion tools — query databases, get pages, search, create pages, append blocks.
3
+ *
4
+ * Self-registering tool module for the recipe tool registry.
5
+ */
6
+ export {};