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,278 @@
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
+ import { assertWriteAllowed } from "../../featureFlags.js";
7
+ import { CommonSchemas, registerTool } from "../toolRegistry.js";
8
+ // ============================================================================
9
+ // notion.queryDatabase
10
+ // ============================================================================
11
+ registerTool({
12
+ id: "notion.queryDatabase",
13
+ namespace: "notion",
14
+ description: "Query a Notion database and return matching pages. Supports optional filter and sort.",
15
+ paramsSchema: {
16
+ type: "object",
17
+ properties: {
18
+ databaseId: {
19
+ type: "string",
20
+ description: "Notion database ID (UUID with or without hyphens)",
21
+ },
22
+ filter: {
23
+ type: "object",
24
+ description: "Notion filter object (see Notion API docs). Omit to return all rows.",
25
+ },
26
+ sorts: {
27
+ type: "array",
28
+ description: "Array of sort objects: [{property, direction}]",
29
+ items: {
30
+ type: "object",
31
+ properties: {
32
+ property: { type: "string" },
33
+ direction: { type: "string", enum: ["ascending", "descending"] },
34
+ },
35
+ required: ["property", "direction"],
36
+ },
37
+ },
38
+ pageSize: {
39
+ type: "number",
40
+ description: "Max rows to return (default 20, max 100)",
41
+ default: 20,
42
+ },
43
+ into: CommonSchemas.into,
44
+ },
45
+ required: ["databaseId"],
46
+ },
47
+ outputSchema: {
48
+ type: "object",
49
+ properties: {
50
+ results: { type: "array", items: { type: "object" } },
51
+ next_cursor: { type: ["string", "null"] },
52
+ has_more: { type: "boolean" },
53
+ count: { type: "number" },
54
+ },
55
+ },
56
+ riskDefault: "low",
57
+ isWrite: false,
58
+ isConnector: true,
59
+ execute: async ({ params }) => {
60
+ const { getNotionConnector } = await import("../../connectors/notion.js");
61
+ const connector = getNotionConnector();
62
+ const result = await connector.queryDatabase(params.databaseId, params.filter, params.sorts, typeof params.pageSize === "number" ? params.pageSize : 20);
63
+ return JSON.stringify({ ...result, count: result.results.length });
64
+ },
65
+ });
66
+ // ============================================================================
67
+ // notion.getPage
68
+ // ============================================================================
69
+ registerTool({
70
+ id: "notion.getPage",
71
+ namespace: "notion",
72
+ description: "Fetch a single Notion page by ID, including all properties.",
73
+ paramsSchema: {
74
+ type: "object",
75
+ properties: {
76
+ pageId: {
77
+ type: "string",
78
+ description: "Notion page ID (UUID with or without hyphens)",
79
+ },
80
+ into: CommonSchemas.into,
81
+ },
82
+ required: ["pageId"],
83
+ },
84
+ outputSchema: {
85
+ type: "object",
86
+ properties: {
87
+ id: { type: "string" },
88
+ url: { type: "string" },
89
+ created_time: { type: "string" },
90
+ last_edited_time: { type: "string" },
91
+ archived: { type: "boolean" },
92
+ properties: { type: "object" },
93
+ },
94
+ },
95
+ riskDefault: "low",
96
+ isWrite: false,
97
+ isConnector: true,
98
+ execute: async ({ params }) => {
99
+ const { getNotionConnector } = await import("../../connectors/notion.js");
100
+ const connector = getNotionConnector();
101
+ const page = await connector.getPage(params.pageId);
102
+ return JSON.stringify(page);
103
+ },
104
+ });
105
+ // ============================================================================
106
+ // notion.search
107
+ // ============================================================================
108
+ registerTool({
109
+ id: "notion.search",
110
+ namespace: "notion",
111
+ description: "Search across all Notion pages and databases the integration has access to.",
112
+ paramsSchema: {
113
+ type: "object",
114
+ properties: {
115
+ query: {
116
+ type: "string",
117
+ description: "Search query string",
118
+ },
119
+ filterType: {
120
+ type: "string",
121
+ enum: ["page", "database"],
122
+ description: "Limit results to pages or databases only (optional)",
123
+ },
124
+ pageSize: {
125
+ type: "number",
126
+ description: "Max results to return (default 10, max 100)",
127
+ default: 10,
128
+ },
129
+ into: CommonSchemas.into,
130
+ },
131
+ required: ["query"],
132
+ },
133
+ outputSchema: {
134
+ type: "object",
135
+ properties: {
136
+ results: { type: "array", items: { type: "object" } },
137
+ next_cursor: { type: ["string", "null"] },
138
+ has_more: { type: "boolean" },
139
+ count: { type: "number" },
140
+ },
141
+ },
142
+ riskDefault: "low",
143
+ isWrite: false,
144
+ isConnector: true,
145
+ execute: async ({ params }) => {
146
+ const { getNotionConnector } = await import("../../connectors/notion.js");
147
+ const connector = getNotionConnector();
148
+ const result = await connector.search(params.query, params.filterType, typeof params.pageSize === "number" ? params.pageSize : 10);
149
+ return JSON.stringify({ ...result, count: result.results.length });
150
+ },
151
+ });
152
+ // ============================================================================
153
+ // notion.createPage (write-gated)
154
+ // ============================================================================
155
+ registerTool({
156
+ id: "notion.createPage",
157
+ namespace: "notion",
158
+ description: "Create a new Notion page inside a database or as a child of another page. Write-gated.",
159
+ paramsSchema: {
160
+ type: "object",
161
+ properties: {
162
+ parentId: {
163
+ type: "string",
164
+ description: "ID of the parent database or page",
165
+ },
166
+ parentType: {
167
+ type: "string",
168
+ enum: ["database", "page"],
169
+ description: "Whether the parent is a database or a page",
170
+ default: "database",
171
+ },
172
+ title: {
173
+ type: "string",
174
+ description: "Page title",
175
+ },
176
+ content: {
177
+ type: "string",
178
+ description: "Optional initial paragraph content for the page body",
179
+ },
180
+ properties: {
181
+ type: "object",
182
+ description: "Additional Notion property values for database rows (see Notion API docs)",
183
+ },
184
+ into: CommonSchemas.into,
185
+ },
186
+ required: ["parentId", "title"],
187
+ },
188
+ outputSchema: {
189
+ type: "object",
190
+ properties: {
191
+ id: { type: "string" },
192
+ url: { type: "string" },
193
+ created_time: { type: "string" },
194
+ ok: { type: "boolean" },
195
+ },
196
+ },
197
+ riskDefault: "medium",
198
+ isWrite: true,
199
+ isConnector: true,
200
+ execute: async ({ params }) => {
201
+ assertWriteAllowed("notion.createPage");
202
+ const { getNotionConnector } = await import("../../connectors/notion.js");
203
+ const connector = getNotionConnector();
204
+ const page = await connector.createPage({
205
+ parentId: params.parentId,
206
+ parentType: params.parentType ?? "database",
207
+ title: params.title,
208
+ content: params.content,
209
+ properties: params.properties,
210
+ });
211
+ return JSON.stringify({
212
+ id: page.id,
213
+ url: page.url,
214
+ created_time: page.created_time,
215
+ ok: true,
216
+ });
217
+ },
218
+ });
219
+ // ============================================================================
220
+ // notion.appendBlock (write-gated)
221
+ // ============================================================================
222
+ registerTool({
223
+ id: "notion.appendBlock",
224
+ namespace: "notion",
225
+ description: "Append a new block (paragraph, list item, heading, etc.) to an existing Notion page. Write-gated.",
226
+ paramsSchema: {
227
+ type: "object",
228
+ properties: {
229
+ pageId: {
230
+ type: "string",
231
+ description: "ID of the Notion page to append to",
232
+ },
233
+ content: {
234
+ type: "string",
235
+ description: "Text content for the new block",
236
+ },
237
+ blockType: {
238
+ type: "string",
239
+ enum: [
240
+ "paragraph",
241
+ "bulleted_list_item",
242
+ "numbered_list_item",
243
+ "heading_1",
244
+ "heading_2",
245
+ "heading_3",
246
+ "quote",
247
+ "code",
248
+ ],
249
+ description: "Block type (default: paragraph)",
250
+ default: "paragraph",
251
+ },
252
+ into: CommonSchemas.into,
253
+ },
254
+ required: ["pageId", "content"],
255
+ },
256
+ outputSchema: {
257
+ type: "object",
258
+ properties: {
259
+ ok: { type: "boolean" },
260
+ blockCount: { type: "number" },
261
+ },
262
+ },
263
+ riskDefault: "medium",
264
+ isWrite: true,
265
+ isConnector: true,
266
+ execute: async ({ params }) => {
267
+ assertWriteAllowed("notion.appendBlock");
268
+ const { getNotionConnector } = await import("../../connectors/notion.js");
269
+ const connector = getNotionConnector();
270
+ const result = await connector.appendBlock({
271
+ pageId: params.pageId,
272
+ content: params.content,
273
+ blockType: params.blockType,
274
+ });
275
+ return JSON.stringify({ ok: true, blockCount: result.results.length });
276
+ },
277
+ });
278
+ //# sourceMappingURL=notion.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"notion.js","sourceRoot":"","sources":["../../../src/recipes/tools/notion.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,uBAAuB;AACvB,+EAA+E;AAE/E,YAAY,CAAC;IACX,EAAE,EAAE,sBAAsB;IAC1B,SAAS,EAAE,QAAQ;IACnB,WAAW,EACT,uFAAuF;IACzF,YAAY,EAAE;QACZ,IAAI,EAAE,QAAQ;QACd,UAAU,EAAE;YACV,UAAU,EAAE;gBACV,IAAI,EAAE,QAAQ;gBACd,WAAW,EAAE,mDAAmD;aACjE;YACD,MAAM,EAAE;gBACN,IAAI,EAAE,QAAQ;gBACd,WAAW,EACT,sEAAsE;aACzE;YACD,KAAK,EAAE;gBACL,IAAI,EAAE,OAAO;gBACb,WAAW,EAAE,gDAAgD;gBAC7D,KAAK,EAAE;oBACL,IAAI,EAAE,QAAQ;oBACd,UAAU,EAAE;wBACV,QAAQ,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE;wBAC5B,SAAS,EAAE,EAAE,IAAI,E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1
+ /**
2
+ * Slack tools — slack.post_message
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
+ // slack.post_message
10
+ // ============================================================================
11
+ registerTool({
12
+ id: "slack.post_message",
13
+ namespace: "slack",
14
+ description: "Post a message to a Slack channel (requires Slack connector auth).",
15
+ paramsSchema: {
16
+ type: "object",
17
+ properties: {
18
+ channel: {
19
+ type: "string",
20
+ description: "Channel name or ID (e.g., 'general', 'C123456')",
21
+ default: "general",
22
+ },
23
+ text: {
24
+ type: "string",
25
+ description: "Message text (supports {{template}} substitution)",
26
+ },
27
+ thread_ts: {
28
+ type: "string",
29
+ description: "Thread timestamp to reply in a thread (optional)",
30
+ },
31
+ into: CommonSchemas.into,
32
+ },
33
+ required: ["text"],
34
+ },
35
+ outputSchema: {
36
+ type: "object",
37
+ properties: {
38
+ ok: { type: "boolean" },
39
+ ts: { type: "string" },
40
+ channel: { type: "string" },
41
+ error: { type: "string" },
42
+ },
43
+ },
44
+ riskDefault: "medium",
45
+ isWrite: true,
46
+ isConnector: true,
47
+ execute: async ({ params }) => {
48
+ assertWriteAllowed("slack.post_message");
49
+ const { postMessage, loadTokens: loadSlackTokens } = await import("../../connectors/slack.js");
50
+ if (!loadSlackTokens()) {
51
+ return JSON.stringify({ ok: false, error: "Slack not connected" });
52
+ }
53
+ const channel = params.channel ? String(params.channel) : "general";
54
+ const text = params.text ? String(params.text) : "";
55
+ const threadTs = params.thread_ts ? String(params.thread_ts) : undefined;
56
+ try {
57
+ const result = await postMessage(channel, text, threadTs);
58
+ return JSON.stringify({
59
+ ok: true,
60
+ ts: result.ts,
61
+ channel: result.channel,
62
+ });
63
+ }
64
+ catch (err) {
65
+ return JSON.stringify({
66
+ ok: false,
67
+ error: err instanceof Error ? err.message : String(err),
68
+ });
69
+ }
70
+ },
71
+ });
72
+ //# sourceMappingURL=sl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ool module for the recipe tool registry.
5
+ */
6
+ export {};
@@ -0,0 +1,265 @@
1
+ /**
2
+ * Stripe tools — read-only access to charges, customers, subscriptions, invoices.
3
+ *
4
+ * Self-registering tool module for the recipe tool registry.
5
+ */
6
+ import { CommonSchemas, registerTool } from "../toolRegistry.js";
7
+ // ============================================================================
8
+ // stripe.listCharges
9
+ // ============================================================================
10
+ registerTool({
11
+ id: "stripe.listCharges",
12
+ namespace: "stripe",
13
+ description: "List Stripe charges, optionally filtered by customer ID or status.",
14
+ paramsSchema: {
15
+ type: "object",
16
+ properties: {
17
+ limit: {
18
+ type: "number",
19
+ description: "Max number of charges to return (default 10, max 100)",
20
+ default: 10,
21
+ },
22
+ customerId: {
23
+ type: "string",
24
+ description: "Filter by Stripe customer ID",
25
+ },
26
+ status: {
27
+ type: "string",
28
+ description: "Filter by charge status (e.g. succeeded, failed)",
29
+ },
30
+ into: CommonSchemas.into,
31
+ },
32
+ required: [],
33
+ },
34
+ outputSchema: {
35
+ type: "object",
36
+ properties: {
37
+ data: { type: "array", items: { type: "object" } },
38
+ has_more: { type: "boolean" },
39
+ },
40
+ },
41
+ riskDefault: "low",
42
+ isWrite: false,
43
+ isConnector: true,
44
+ execute: async ({ params }) => {
45
+ const { getStripeConnector } = await import("../../connectors/stripe.js");
46
+ const connector = getStripeConnector();
47
+ const result = await connector.listCharges({
48
+ limit: typeof params.limit === "number" ? params.limit : undefined,
49
+ customerId: typeof params.customerId === "string" ? params.customerId : undefined,
50
+ status: typeof params.status === "string" ? params.status : undefined,
51
+ });
52
+ return JSON.stringify(result);
53
+ },
54
+ });
55
+ // ============================================================================
56
+ // stripe.getCharge
57
+ // ============================================================================
58
+ registerTool({
59
+ id: "stripe.getCharge",
60
+ namespace: "stripe",
61
+ description: "Fetch a single Stripe charge by ID.",
62
+ paramsSchema: {
63
+ type: "object",
64
+ properties: {
65
+ chargeId: { type: "string", description: "Stripe charge ID (ch_...)" },
66
+ into: CommonSchemas.into,
67
+ },
68
+ required: ["chargeId"],
69
+ },
70
+ outputSchema: {
71
+ type: "object",
72
+ properties: {
73
+ id: { type: "string" },
74
+ amount: { type: "number" },
75
+ currency: { type: "string" },
76
+ status: { type: "string" },
77
+ },
78
+ },
79
+ riskDefault: "low",
80
+ isWrite: false,
81
+ isConnector: true,
82
+ execute: async ({ params }) => {
83
+ const { getStripeConnector } = await import("../../connectors/stripe.js");
84
+ const connector = getStripeConnector();
85
+ const result = await connector.getCharge(params.chargeId);
86
+ return JSON.stringify(result);
87
+ },
88
+ });
89
+ // ============================================================================
90
+ // stripe.listCustomers
91
+ // ============================================================================
92
+ registerTool({
93
+ id: "stripe.listCustomers",
94
+ namespace: "stripe",
95
+ description: "List Stripe customers, optionally filtered by email.",
96
+ paramsSchema: {
97
+ type: "object",
98
+ properties: {
99
+ limit: {
100
+ type: "number",
101
+ description: "Max number of customers to return (default 10, max 100)",
102
+ default: 10,
103
+ },
104
+ email: {
105
+ type: "string",
106
+ description: "Filter by customer email address",
107
+ },
108
+ into: CommonSchemas.into,
109
+ },
110
+ required: [],
111
+ },
112
+ outputSchema: {
113
+ type: "object",
114
+ properties: {
115
+ data: { type: "array", items: { type: "object" } },
116
+ has_more: { type: "boolean" },
117
+ },
118
+ },
119
+ riskDefault: "low",
120
+ isWrite: false,
121
+ isConnector: true,
122
+ execute: async ({ params }) => {
123
+ const { getStripeConnector } = await import("../../connectors/stripe.js");
124
+ const connector = getStripeConnector();
125
+ const result = await connector.listCustomers({
126
+ limit: typeof params.limit === "number" ? params.limit : undefined,
127
+ email: typeof params.email === "string" ? params.email : undefined,
128
+ });
129
+ return JSON.stringify(result);
130
+ },
131
+ });
132
+ // ============================================================================
133
+ // stripe.getCustomer
134
+ // ============================================================================
135
+ registerTool({
136
+ id: "stripe.getCustomer",
137
+ namespace: "stripe",
138
+ description: "Fetch a single Stripe customer by ID.",
139
+ paramsSchema: {
140
+ type: "object",
141
+ properties: {
142
+ customerId: {
143
+ type: "string",
144
+ description: "Stripe customer ID (cus_...)",
145
+ },
146
+ into: CommonSchemas.into,
147
+ },
148
+ required: ["customerId"],
149
+ },
150
+ outputSchema: {
151
+ type: "object",
152
+ properties: {
153
+ id: { type: "string" },
154
+ email: { type: ["string", "null"] },
155
+ name: { type: ["string", "null"] },
156
+ balance: { type: "number" },
157
+ },
158
+ },
159
+ riskDefault: "low",
160
+ isWrite: false,
161
+ isConnector: true,
162
+ execute: async ({ params }) => {
163
+ const { getStripeConnector } = await import("../../connectors/stripe.js");
164
+ const connector = getStripeConnector();
165
+ const result = await connector.getCustomer(params.customerId);
166
+ return JSON.stringify(result);
167
+ },
168
+ });
169
+ // ============================================================================
170
+ // stripe.listSubscriptions
171
+ // ============================================================================
172
+ registerTool({
173
+ id: "stripe.listSubscriptions",
174
+ namespace: "stripe",
175
+ description: "List Stripe subscriptions, optionally filtered by customer ID or status.",
176
+ paramsSchema: {
177
+ type: "object",
178
+ properties: {
179
+ limit: {
180
+ type: "number",
181
+ description: "Max number of subscriptions to return (default 10, max 100)",
182
+ default: 10,
183
+ },
184
+ customerId: {
185
+ type: "string",
186
+ description: "Filter by Stripe customer ID",
187
+ },
188
+ status: {
189
+ type: "string",
190
+ description: "Filter by status: active, past_due, canceled, trialing, all",
191
+ },
192
+ into: CommonSchemas.into,
193
+ },
194
+ required: [],
195
+ },
196
+ outputSchema: {
197
+ type: "object",
198
+ properties: {
199
+ data: { type: "array", items: { type: "object" } },
200
+ has_more: { type: "boolean" },
201
+ },
202
+ },
203
+ riskDefault: "low",
204
+ isWrite: false,
205
+ isConnector: true,
206
+ execute: async ({ params }) => {
207
+ const { getStripeConnector } = await import("../../connectors/stripe.js");
208
+ const connector = getStripeConnector();
209
+ const result = await connector.listSubscriptions({
210
+ limit: typeof params.limit === "number" ? params.limit : undefined,
211
+ customerId: typeof params.customerId === "string" ? params.customerId : undefined,
212
+ status: typeof params.status === "string" ? params.status : undefined,
213
+ });
214
+ return JSON.stringify(result);
215
+ },
216
+ });
217
+ // ============================================================================
218
+ // stripe.listInvoices
219
+ // ============================================================================
220
+ registerTool({
221
+ id: "stripe.listInvoices",
222
+ namespace: "stripe",
223
+ description: "List Stripe invoices, optionally filtered by customer ID or status.",
224
+ paramsSchema: {
225
+ type: "object",
226
+ properties: {
227
+ limit: {
228
+ type: "number",
229
+ description: "Max number of invoices to return (default 10, max 100)",
230
+ default: 10,
231
+ },
232
+ customerId: {
233
+ type: "string",
234
+ description: "Filter by Stripe customer ID",
235
+ },
236
+ status: {
237
+ type: "string",
238
+ description: "Filter by invoice status (draft, open, paid, uncollectible, void)",
239
+ },
240
+ into: CommonSchemas.into,
241
+ },
242
+ required: [],
243
+ },
244
+ outputSchema: {
245
+ type: "object",
246
+ properties: {
247
+ data: { type: "array", items: { type: "object" } },
248
+ has_more: { type: "boolean" },
249
+ },
250
+ },
251
+ riskDefault: "low",
252
+ isWrite: false,
253
+ isConnector: true,
254
+ execute: async ({ params }) => {
255
+ const { getStripeConnector } = await import("../../connectors/stripe.js");
256
+ const connector = getStripeConnector();
257
+ const result = await connector.listInvoices({
258
+ limit: typeof params.limit === "number" ? params.limit : undefined,
259
+ customerId: typeof params.customerId === "string" ? params.customerId : undefined,
260
+ status: typeof params.status === "string" ? params.status : undefined,
261
+ });
262
+ return JSON.stringify(result);
263
+ },
264
+ });
265
+ //# sourceMappingURL=stripe.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"stripe.js","sourceRoot":"","sources":["../../../src/recipes/tools/stripe.ts"],"names":[],"mappings":"AAAA;;;;GAIG;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,QAAQ;IACnB,WAAW,EACT,oEAAoE;IACtE,YAAY,EAAE;QACZ,IAAI,EAAE,QAAQ;QACd,UAAU,EAAE;YACV,KAAK,EAAE;gBACL,IAAI,EAAE,QAAQ;gB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AU,KAAK,QAAQ,CAAC,CAAC,CAAC,MAAM,CAAC,UAAU,CAAC,CAAC,CAAC,SAAS;YACvE,MAAM,EAAE,OAAO,MAAM,CAAC,MAAM,KAAK,QAAQ,CAAC,CAAC,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC,CAAC,SAAS;SACtE,CAAC,CAAC;QACH,OAAO,IAAI,CAAC,SAAS,CAAC,MAAM,CAAC,CAAC;IAChC,CAAC;CACF,CAAC,CAAC"}
@@ -0,0 +1,6 @@
1
+ /**
2
+ * Zendesk tools — list/get tickets, add comments, update status, list agents.
3
+ *
4
+ * Self-registering tool module for the recipe tool registry.
5
+ */
6
+ export {};