@commandable/mcp 0.0.1

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 (397) hide show
  1. package/LICENSE +10 -0
  2. package/README.md +34 -0
  3. package/dist/cli/bin.d.ts +3 -0
  4. package/dist/cli/bin.d.ts.map +1 -0
  5. package/dist/cli/bin.js +7 -0
  6. package/dist/cli/bin.js.map +1 -0
  7. package/dist/cli/credentialManager.d.ts +19 -0
  8. package/dist/cli/credentialManager.d.ts.map +1 -0
  9. package/dist/cli/credentialManager.js +81 -0
  10. package/dist/cli/credentialManager.js.map +1 -0
  11. package/dist/cli/index.d.ts +2 -0
  12. package/dist/cli/index.d.ts.map +1 -0
  13. package/dist/cli/index.js +77 -0
  14. package/dist/cli/index.js.map +1 -0
  15. package/dist/cli/setup.d.ts +3 -0
  16. package/dist/cli/setup.d.ts.map +1 -0
  17. package/dist/cli/setup.js +194 -0
  18. package/dist/cli/setup.js.map +1 -0
  19. package/dist/crypto/encryption.d.ts +3 -0
  20. package/dist/crypto/encryption.d.ts.map +1 -0
  21. package/dist/crypto/encryption.js +29 -0
  22. package/dist/crypto/encryption.js.map +1 -0
  23. package/dist/db/client.d.ts +22 -0
  24. package/dist/db/client.d.ts.map +1 -0
  25. package/dist/db/client.js +43 -0
  26. package/dist/db/client.js.map +1 -0
  27. package/dist/db/credentialStore.d.ts +13 -0
  28. package/dist/db/credentialStore.d.ts.map +1 -0
  29. package/dist/db/credentialStore.js +57 -0
  30. package/dist/db/credentialStore.js.map +1 -0
  31. package/dist/db/integrationStore.d.ts +5 -0
  32. package/dist/db/integrationStore.d.ts.map +1 -0
  33. package/dist/db/integrationStore.js +65 -0
  34. package/dist/db/integrationStore.js.map +1 -0
  35. package/dist/db/migrate.d.ts +3 -0
  36. package/dist/db/migrate.d.ts.map +1 -0
  37. package/dist/db/migrate.js +88 -0
  38. package/dist/db/migrate.js.map +1 -0
  39. package/dist/db/schema.d.ts +911 -0
  40. package/dist/db/schema.d.ts.map +1 -0
  41. package/dist/db/schema.js +73 -0
  42. package/dist/db/schema.js.map +1 -0
  43. package/dist/errors/httpError.d.ts +6 -0
  44. package/dist/errors/httpError.d.ts.map +1 -0
  45. package/dist/errors/httpError.js +11 -0
  46. package/dist/errors/httpError.js.map +1 -0
  47. package/dist/index.d.ts +21 -0
  48. package/dist/index.d.ts.map +1 -0
  49. package/dist/index.js +21 -0
  50. package/dist/index.js.map +1 -0
  51. package/dist/integrations/actionsFactory.d.ts +12 -0
  52. package/dist/integrations/actionsFactory.d.ts.map +1 -0
  53. package/dist/integrations/actionsFactory.js +68 -0
  54. package/dist/integrations/actionsFactory.js.map +1 -0
  55. package/dist/integrations/catalog.d.ts +9 -0
  56. package/dist/integrations/catalog.d.ts.map +1 -0
  57. package/dist/integrations/catalog.js +80 -0
  58. package/dist/integrations/catalog.js.map +1 -0
  59. package/dist/integrations/dataLoader.d.ts +47 -0
  60. package/dist/integrations/dataLoader.d.ts.map +1 -0
  61. package/dist/integrations/dataLoader.js +126 -0
  62. package/dist/integrations/dataLoader.js.map +1 -0
  63. package/dist/integrations/getIntegration.d.ts +11 -0
  64. package/dist/integrations/getIntegration.d.ts.map +1 -0
  65. package/dist/integrations/getIntegration.js +22 -0
  66. package/dist/integrations/getIntegration.js.map +1 -0
  67. package/dist/integrations/googleServiceAccount.d.ts +6 -0
  68. package/dist/integrations/googleServiceAccount.d.ts.map +1 -0
  69. package/dist/integrations/googleServiceAccount.js +54 -0
  70. package/dist/integrations/googleServiceAccount.js.map +1 -0
  71. package/dist/integrations/providerRegistry.d.ts +2 -0
  72. package/dist/integrations/providerRegistry.d.ts.map +1 -0
  73. package/dist/integrations/providerRegistry.js +50 -0
  74. package/dist/integrations/providerRegistry.js.map +1 -0
  75. package/dist/integrations/proxy.d.ts +16 -0
  76. package/dist/integrations/proxy.d.ts.map +1 -0
  77. package/dist/integrations/proxy.js +331 -0
  78. package/dist/integrations/proxy.js.map +1 -0
  79. package/dist/integrations/sandbox.d.ts +7 -0
  80. package/dist/integrations/sandbox.d.ts.map +1 -0
  81. package/dist/integrations/sandbox.js +210 -0
  82. package/dist/integrations/sandbox.js.map +1 -0
  83. package/dist/integrations/tools.d.ts +3 -0
  84. package/dist/integrations/tools.d.ts.map +1 -0
  85. package/dist/integrations/tools.js +70 -0
  86. package/dist/integrations/tools.js.map +1 -0
  87. package/dist/mcp/server.d.ts +15 -0
  88. package/dist/mcp/server.d.ts.map +1 -0
  89. package/dist/mcp/server.js +50 -0
  90. package/dist/mcp/server.js.map +1 -0
  91. package/dist/mcp/toolAdapter.d.ts +17 -0
  92. package/dist/mcp/toolAdapter.d.ts.map +1 -0
  93. package/dist/mcp/toolAdapter.js +18 -0
  94. package/dist/mcp/toolAdapter.js.map +1 -0
  95. package/dist/types.d.ts +34 -0
  96. package/dist/types.d.ts.map +1 -0
  97. package/dist/types.js +2 -0
  98. package/dist/types.js.map +1 -0
  99. package/integration-data/README.md +52 -0
  100. package/integration-data/airtable/credentials.json +20 -0
  101. package/integration-data/airtable/credentials_hint.md +4 -0
  102. package/integration-data/airtable/handlers/create_record.js +12 -0
  103. package/integration-data/airtable/handlers/delete_record.js +7 -0
  104. package/integration-data/airtable/handlers/get_record.js +4 -0
  105. package/integration-data/airtable/handlers/get_table_schema.js +6 -0
  106. package/integration-data/airtable/handlers/list_bases.js +4 -0
  107. package/integration-data/airtable/handlers/list_records.js +25 -0
  108. package/integration-data/airtable/handlers/list_table_fields.js +6 -0
  109. package/integration-data/airtable/handlers/list_tables.js +4 -0
  110. package/integration-data/airtable/handlers/list_views.js +6 -0
  111. package/integration-data/airtable/handlers/search_records.js +6 -0
  112. package/integration-data/airtable/handlers/update_record.js +11 -0
  113. package/integration-data/airtable/manifest.json +83 -0
  114. package/integration-data/airtable/schemas/create_record.json +12 -0
  115. package/integration-data/airtable/schemas/delete_record.json +11 -0
  116. package/integration-data/airtable/schemas/empty.json +6 -0
  117. package/integration-data/airtable/schemas/get_record.json +11 -0
  118. package/integration-data/airtable/schemas/id_base.json +9 -0
  119. package/integration-data/airtable/schemas/id_base_table.json +10 -0
  120. package/integration-data/airtable/schemas/list_records.json +26 -0
  121. package/integration-data/airtable/schemas/search_records.json +12 -0
  122. package/integration-data/airtable/schemas/update_record.json +13 -0
  123. package/integration-data/github/credentials.json +20 -0
  124. package/integration-data/github/credentials_hint.md +7 -0
  125. package/integration-data/github/handlers/add_labels_to_issue.js +12 -0
  126. package/integration-data/github/handlers/close_issue.js +5 -0
  127. package/integration-data/github/handlers/comment_on_issue.js +5 -0
  128. package/integration-data/github/handlers/create_branch.js +33 -0
  129. package/integration-data/github/handlers/create_commit.js +91 -0
  130. package/integration-data/github/handlers/create_issue.js +10 -0
  131. package/integration-data/github/handlers/create_or_update_file.js +21 -0
  132. package/integration-data/github/handlers/create_pull_request.js +16 -0
  133. package/integration-data/github/handlers/create_repo.js +11 -0
  134. package/integration-data/github/handlers/delete_repo.js +6 -0
  135. package/integration-data/github/handlers/get_issue.js +4 -0
  136. package/integration-data/github/handlers/get_repo.js +4 -0
  137. package/integration-data/github/handlers/list_branches.js +4 -0
  138. package/integration-data/github/handlers/list_commits.js +12 -0
  139. package/integration-data/github/handlers/list_issues.js +12 -0
  140. package/integration-data/github/handlers/list_pull_requests.js +8 -0
  141. package/integration-data/github/handlers/list_repos_install.js +4 -0
  142. package/integration-data/github/handlers/list_repos_user.js +4 -0
  143. package/integration-data/github/handlers/merge_pull_request.js +14 -0
  144. package/integration-data/github/handlers/update_issue.js +15 -0
  145. package/integration-data/github/manifest.json +26 -0
  146. package/integration-data/github/schemas/add_labels_to_issue.json +12 -0
  147. package/integration-data/github/schemas/close_issue.json +10 -0
  148. package/integration-data/github/schemas/comment_on_issue.json +11 -0
  149. package/integration-data/github/schemas/create_branch.json +12 -0
  150. package/integration-data/github/schemas/create_commit.json +25 -0
  151. package/integration-data/github/schemas/create_issue.json +13 -0
  152. package/integration-data/github/schemas/create_or_update_file.json +15 -0
  153. package/integration-data/github/schemas/create_pull_request.json +15 -0
  154. package/integration-data/github/schemas/create_repo.json +12 -0
  155. package/integration-data/github/schemas/delete_repo.json +10 -0
  156. package/integration-data/github/schemas/empty.json +5 -0
  157. package/integration-data/github/schemas/get_issue.json +10 -0
  158. package/integration-data/github/schemas/get_repo.json +9 -0
  159. package/integration-data/github/schemas/list_commits.json +12 -0
  160. package/integration-data/github/schemas/list_issues.json +12 -0
  161. package/integration-data/github/schemas/list_pull_requests.json +10 -0
  162. package/integration-data/github/schemas/merge_pull_request.json +14 -0
  163. package/integration-data/github/schemas/owner_repo.json +9 -0
  164. package/integration-data/github/schemas/update_issue.json +15 -0
  165. package/integration-data/google-calendar/credentials.json +36 -0
  166. package/integration-data/google-calendar/credentials_hint.md +9 -0
  167. package/integration-data/google-calendar/handlers/create_event.js +6 -0
  168. package/integration-data/google-calendar/handlers/delete_acl.js +6 -0
  169. package/integration-data/google-calendar/handlers/delete_event.js +7 -0
  170. package/integration-data/google-calendar/handlers/freebusy_query.js +4 -0
  171. package/integration-data/google-calendar/handlers/get_acl.js +5 -0
  172. package/integration-data/google-calendar/handlers/get_calendar.js +4 -0
  173. package/integration-data/google-calendar/handlers/get_event.js +5 -0
  174. package/integration-data/google-calendar/handlers/insert_acl.js +6 -0
  175. package/integration-data/google-calendar/handlers/list_acl.js +5 -0
  176. package/integration-data/google-calendar/handlers/list_calendars.js +4 -0
  177. package/integration-data/google-calendar/handlers/list_colors.js +4 -0
  178. package/integration-data/google-calendar/handlers/list_events.js +21 -0
  179. package/integration-data/google-calendar/handlers/list_settings.js +4 -0
  180. package/integration-data/google-calendar/handlers/move_event.js +6 -0
  181. package/integration-data/google-calendar/handlers/patch_event.js +5 -0
  182. package/integration-data/google-calendar/handlers/quick_add.js +6 -0
  183. package/integration-data/google-calendar/handlers/update_acl.js +7 -0
  184. package/integration-data/google-calendar/handlers/update_event.js +5 -0
  185. package/integration-data/google-calendar/manifest.json +26 -0
  186. package/integration-data/google-calendar/schemas/create_event.json +34 -0
  187. package/integration-data/google-calendar/schemas/delete_acl.json +9 -0
  188. package/integration-data/google-calendar/schemas/empty.json +1 -0
  189. package/integration-data/google-calendar/schemas/freebusy_query.json +13 -0
  190. package/integration-data/google-calendar/schemas/get_acl.json +9 -0
  191. package/integration-data/google-calendar/schemas/id_calendar.json +8 -0
  192. package/integration-data/google-calendar/schemas/id_calendar_event.json +9 -0
  193. package/integration-data/google-calendar/schemas/insert_acl.json +18 -0
  194. package/integration-data/google-calendar/schemas/list_events.json +15 -0
  195. package/integration-data/google-calendar/schemas/move_event.json +10 -0
  196. package/integration-data/google-calendar/schemas/patch_event.json +10 -0
  197. package/integration-data/google-calendar/schemas/quick_add.json +9 -0
  198. package/integration-data/google-calendar/schemas/update_acl.json +10 -0
  199. package/integration-data/google-calendar/schemas/update_event.json +10 -0
  200. package/integration-data/google-docs/credentials.json +36 -0
  201. package/integration-data/google-docs/credentials_hint.md +9 -0
  202. package/integration-data/google-docs/handlers/append_text.js +12 -0
  203. package/integration-data/google-docs/handlers/batch_update.js +13 -0
  204. package/integration-data/google-docs/handlers/create_document.js +9 -0
  205. package/integration-data/google-docs/handlers/delete_first_match.js +50 -0
  206. package/integration-data/google-docs/handlers/get_document.js +12 -0
  207. package/integration-data/google-docs/handlers/get_document_structured.js +6 -0
  208. package/integration-data/google-docs/handlers/get_document_text.js +17 -0
  209. package/integration-data/google-docs/handlers/insert_inline_image_after_first_match.js +41 -0
  210. package/integration-data/google-docs/handlers/insert_page_break_after_first_match.js +49 -0
  211. package/integration-data/google-docs/handlers/insert_table_after_first_match.js +49 -0
  212. package/integration-data/google-docs/handlers/insert_text_after_first_match.js +51 -0
  213. package/integration-data/google-docs/handlers/replace_all_text.js +8 -0
  214. package/integration-data/google-docs/handlers/style_first_match.js +42 -0
  215. package/integration-data/google-docs/handlers/update_document_style.js +8 -0
  216. package/integration-data/google-docs/handlers/update_paragraph_style_for_first_match.js +48 -0
  217. package/integration-data/google-docs/manifest.json +58 -0
  218. package/integration-data/google-docs/schemas/append_text.json +10 -0
  219. package/integration-data/google-docs/schemas/apply_text_style.json +13 -0
  220. package/integration-data/google-docs/schemas/batch_update.json +16 -0
  221. package/integration-data/google-docs/schemas/create_document.json +8 -0
  222. package/integration-data/google-docs/schemas/delete_content_range.json +11 -0
  223. package/integration-data/google-docs/schemas/delete_first_match.json +10 -0
  224. package/integration-data/google-docs/schemas/get_document.json +11 -0
  225. package/integration-data/google-docs/schemas/get_document_structured.json +9 -0
  226. package/integration-data/google-docs/schemas/get_document_text.json +9 -0
  227. package/integration-data/google-docs/schemas/insert_inline_image.json +12 -0
  228. package/integration-data/google-docs/schemas/insert_inline_image_after_first_match.json +13 -0
  229. package/integration-data/google-docs/schemas/insert_page_break.json +10 -0
  230. package/integration-data/google-docs/schemas/insert_page_break_after_first_match.json +11 -0
  231. package/integration-data/google-docs/schemas/insert_table.json +12 -0
  232. package/integration-data/google-docs/schemas/insert_table_after_first_match.json +13 -0
  233. package/integration-data/google-docs/schemas/insert_text_after_first_match.json +12 -0
  234. package/integration-data/google-docs/schemas/insert_text_at.json +11 -0
  235. package/integration-data/google-docs/schemas/replace_all_text.json +12 -0
  236. package/integration-data/google-docs/schemas/style_first_match.json +12 -0
  237. package/integration-data/google-docs/schemas/update_document_style.json +11 -0
  238. package/integration-data/google-docs/schemas/update_paragraph_style.json +13 -0
  239. package/integration-data/google-docs/schemas/update_paragraph_style_for_first_match.json +12 -0
  240. package/integration-data/google-sheet/credentials.json +36 -0
  241. package/integration-data/google-sheet/credentials_hint.md +9 -0
  242. package/integration-data/google-sheet/handlers/append_values.js +18 -0
  243. package/integration-data/google-sheet/handlers/batch_clear_values.js +6 -0
  244. package/integration-data/google-sheet/handlers/batch_clear_values_by_data_filter.js +6 -0
  245. package/integration-data/google-sheet/handlers/batch_get_values.js +16 -0
  246. package/integration-data/google-sheet/handlers/batch_update.js +14 -0
  247. package/integration-data/google-sheet/handlers/batch_update_values.js +16 -0
  248. package/integration-data/google-sheet/handlers/batch_update_values_by_data_filter.js +16 -0
  249. package/integration-data/google-sheet/handlers/clear_values.js +6 -0
  250. package/integration-data/google-sheet/handlers/copy_to_spreadsheet.js +6 -0
  251. package/integration-data/google-sheet/handlers/create_spreadsheet.js +5 -0
  252. package/integration-data/google-sheet/handlers/get_developer_metadata.js +6 -0
  253. package/integration-data/google-sheet/handlers/get_spreadsheet.js +12 -0
  254. package/integration-data/google-sheet/handlers/get_spreadsheet_by_data_filter.js +10 -0
  255. package/integration-data/google-sheet/handlers/get_values.js +14 -0
  256. package/integration-data/google-sheet/handlers/get_values_by_data_filter.js +14 -0
  257. package/integration-data/google-sheet/handlers/search_developer_metadata.js +7 -0
  258. package/integration-data/google-sheet/handlers/update_values.js +16 -0
  259. package/integration-data/google-sheet/manifest.json +125 -0
  260. package/integration-data/google-sheet/schemas/append_values.json +16 -0
  261. package/integration-data/google-sheet/schemas/batch_clear_values.json +10 -0
  262. package/integration-data/google-sheet/schemas/batch_clear_values_by_data_filter.json +10 -0
  263. package/integration-data/google-sheet/schemas/batch_get_values.json +13 -0
  264. package/integration-data/google-sheet/schemas/batch_update.json +13 -0
  265. package/integration-data/google-sheet/schemas/batch_update_values.json +25 -0
  266. package/integration-data/google-sheet/schemas/batch_update_values_by_data_filter.json +25 -0
  267. package/integration-data/google-sheet/schemas/clear_values.json +10 -0
  268. package/integration-data/google-sheet/schemas/copy_to_spreadsheet.json +11 -0
  269. package/integration-data/google-sheet/schemas/create_spreadsheet.json +11 -0
  270. package/integration-data/google-sheet/schemas/get_developer_metadata.json +10 -0
  271. package/integration-data/google-sheet/schemas/get_spreadsheet.json +15 -0
  272. package/integration-data/google-sheet/schemas/get_spreadsheet_by_data_filter.json +11 -0
  273. package/integration-data/google-sheet/schemas/get_values.json +13 -0
  274. package/integration-data/google-sheet/schemas/get_values_by_data_filter.json +17 -0
  275. package/integration-data/google-sheet/schemas/search_developer_metadata.json +14 -0
  276. package/integration-data/google-sheet/schemas/update_values.json +15 -0
  277. package/integration-data/google-slides/credentials.json +36 -0
  278. package/integration-data/google-slides/credentials_hint.md +9 -0
  279. package/integration-data/google-slides/handlers/append_text_to_title_of_first_slide.js +17 -0
  280. package/integration-data/google-slides/handlers/batch_update.js +15 -0
  281. package/integration-data/google-slides/handlers/create_presentation.js +8 -0
  282. package/integration-data/google-slides/handlers/create_slide_after_first_match.js +20 -0
  283. package/integration-data/google-slides/handlers/get_page_thumbnail.js +12 -0
  284. package/integration-data/google-slides/handlers/get_presentation.js +6 -0
  285. package/integration-data/google-slides/handlers/insert_image_after_first_match.js +19 -0
  286. package/integration-data/google-slides/handlers/insert_shape_after_first_match.js +21 -0
  287. package/integration-data/google-slides/handlers/replace_text_first_match.js +9 -0
  288. package/integration-data/google-slides/handlers/set_background_color_for_slide_index.js +15 -0
  289. package/integration-data/google-slides/handlers/style_text_first_match.js +48 -0
  290. package/integration-data/google-slides/manifest.json +41 -0
  291. package/integration-data/google-slides/schemas/append_text_to_title_of_first_slide.json +11 -0
  292. package/integration-data/google-slides/schemas/batch_update.json +13 -0
  293. package/integration-data/google-slides/schemas/create_presentation.json +8 -0
  294. package/integration-data/google-slides/schemas/create_slide_after_first_match.json +11 -0
  295. package/integration-data/google-slides/schemas/get_page_thumbnail.json +12 -0
  296. package/integration-data/google-slides/schemas/get_presentation.json +9 -0
  297. package/integration-data/google-slides/schemas/insert_image_after_first_match.json +13 -0
  298. package/integration-data/google-slides/schemas/insert_shape_after_first_match.json +13 -0
  299. package/integration-data/google-slides/schemas/replace_text_first_match.json +12 -0
  300. package/integration-data/google-slides/schemas/set_background_color_for_slide_index.json +11 -0
  301. package/integration-data/google-slides/schemas/style_text_first_match.json +12 -0
  302. package/integration-data/new_integration_prompt.md +41 -0
  303. package/integration-data/notion/credentials.json +21 -0
  304. package/integration-data/notion/credentials_hint.md +5 -0
  305. package/integration-data/notion/handlers/append_block_children.js +7 -0
  306. package/integration-data/notion/handlers/create_comment.js +10 -0
  307. package/integration-data/notion/handlers/create_database.js +11 -0
  308. package/integration-data/notion/handlers/create_page.js +13 -0
  309. package/integration-data/notion/handlers/delete_block.js +8 -0
  310. package/integration-data/notion/handlers/get_me.js +4 -0
  311. package/integration-data/notion/handlers/list_block_children.js +10 -0
  312. package/integration-data/notion/handlers/list_comments.js +14 -0
  313. package/integration-data/notion/handlers/list_users.js +10 -0
  314. package/integration-data/notion/handlers/query_database.js +10 -0
  315. package/integration-data/notion/handlers/retrieve_block.js +4 -0
  316. package/integration-data/notion/handlers/retrieve_database.js +4 -0
  317. package/integration-data/notion/handlers/retrieve_page.js +4 -0
  318. package/integration-data/notion/handlers/retrieve_page_property_item.js +10 -0
  319. package/integration-data/notion/handlers/retrieve_user.js +4 -0
  320. package/integration-data/notion/handlers/search.js +11 -0
  321. package/integration-data/notion/handlers/update_block.js +7 -0
  322. package/integration-data/notion/handlers/update_database.js +10 -0
  323. package/integration-data/notion/handlers/update_page_properties.js +10 -0
  324. package/integration-data/notion/manifest.json +139 -0
  325. package/integration-data/notion/prompt.md +26 -0
  326. package/integration-data/notion/schemas/append_block_children.json +10 -0
  327. package/integration-data/notion/schemas/create_comment.json +18 -0
  328. package/integration-data/notion/schemas/create_database.json +18 -0
  329. package/integration-data/notion/schemas/create_page.json +22 -0
  330. package/integration-data/notion/schemas/delete_block.json +9 -0
  331. package/integration-data/notion/schemas/empty.json +6 -0
  332. package/integration-data/notion/schemas/id_block.json +9 -0
  333. package/integration-data/notion/schemas/id_database.json +9 -0
  334. package/integration-data/notion/schemas/id_page.json +9 -0
  335. package/integration-data/notion/schemas/id_user.json +9 -0
  336. package/integration-data/notion/schemas/list_block_children.json +11 -0
  337. package/integration-data/notion/schemas/list_comments.json +15 -0
  338. package/integration-data/notion/schemas/list_users.json +9 -0
  339. package/integration-data/notion/schemas/query_database.json +13 -0
  340. package/integration-data/notion/schemas/retrieve_page_property_item.json +12 -0
  341. package/integration-data/notion/schemas/search.json +27 -0
  342. package/integration-data/notion/schemas/update_block.json +10 -0
  343. package/integration-data/notion/schemas/update_database.json +13 -0
  344. package/integration-data/notion/schemas/update_page_properties.json +13 -0
  345. package/integration-data/trello/credentials.json +26 -0
  346. package/integration-data/trello/credentials_hint.md +4 -0
  347. package/integration-data/trello/handlers/add_checklist_to_card.js +5 -0
  348. package/integration-data/trello/handlers/add_member_to_card.js +5 -0
  349. package/integration-data/trello/handlers/archive_list.js +5 -0
  350. package/integration-data/trello/handlers/create_card.js +13 -0
  351. package/integration-data/trello/handlers/create_list.js +7 -0
  352. package/integration-data/trello/handlers/delete_card.js +9 -0
  353. package/integration-data/trello/handlers/get_board.js +4 -0
  354. package/integration-data/trello/handlers/get_board_cards.js +4 -0
  355. package/integration-data/trello/handlers/get_board_custom_fields.js +4 -0
  356. package/integration-data/trello/handlers/get_board_labels.js +4 -0
  357. package/integration-data/trello/handlers/get_board_lists.js +4 -0
  358. package/integration-data/trello/handlers/get_board_members.js +4 -0
  359. package/integration-data/trello/handlers/get_board_memberships.js +4 -0
  360. package/integration-data/trello/handlers/get_card.js +4 -0
  361. package/integration-data/trello/handlers/get_card_actions.js +4 -0
  362. package/integration-data/trello/handlers/get_card_attachments.js +4 -0
  363. package/integration-data/trello/handlers/get_card_checklists.js +4 -0
  364. package/integration-data/trello/handlers/get_card_custom_field_items.js +4 -0
  365. package/integration-data/trello/handlers/get_card_members.js +4 -0
  366. package/integration-data/trello/handlers/get_list.js +4 -0
  367. package/integration-data/trello/handlers/get_list_cards.js +4 -0
  368. package/integration-data/trello/handlers/get_member.js +4 -0
  369. package/integration-data/trello/handlers/get_member_boards.js +4 -0
  370. package/integration-data/trello/handlers/get_member_organizations.js +4 -0
  371. package/integration-data/trello/handlers/get_organization.js +4 -0
  372. package/integration-data/trello/handlers/get_organization_boards.js +4 -0
  373. package/integration-data/trello/handlers/move_card_to_list.js +5 -0
  374. package/integration-data/trello/handlers/remove_member_from_card.js +9 -0
  375. package/integration-data/trello/handlers/search.js +5 -0
  376. package/integration-data/trello/handlers/update_card.js +19 -0
  377. package/integration-data/trello/handlers/update_list.js +11 -0
  378. package/integration-data/trello/manifest.json +231 -0
  379. package/integration-data/trello/schemas/add_checklist_to_card.json +10 -0
  380. package/integration-data/trello/schemas/add_member_to_card.json +10 -0
  381. package/integration-data/trello/schemas/archive_list.json +9 -0
  382. package/integration-data/trello/schemas/create_card.json +13 -0
  383. package/integration-data/trello/schemas/create_list.json +11 -0
  384. package/integration-data/trello/schemas/delete_card.json +9 -0
  385. package/integration-data/trello/schemas/display_trello_cards.json +45 -0
  386. package/integration-data/trello/schemas/empty.json +5 -0
  387. package/integration-data/trello/schemas/get_member.json +5 -0
  388. package/integration-data/trello/schemas/id_board.json +8 -0
  389. package/integration-data/trello/schemas/id_card.json +8 -0
  390. package/integration-data/trello/schemas/id_list.json +8 -0
  391. package/integration-data/trello/schemas/id_org.json +8 -0
  392. package/integration-data/trello/schemas/move_card_to_list.json +10 -0
  393. package/integration-data/trello/schemas/remove_member_from_card.json +10 -0
  394. package/integration-data/trello/schemas/search.json +8 -0
  395. package/integration-data/trello/schemas/update_card.json +16 -0
  396. package/integration-data/trello/schemas/update_list.json +12 -0
  397. package/package.json +61 -0
@@ -0,0 +1 @@
1
+ {"version":3,"file":"schema.d.ts","sourceRoot":"","sources":["../../src/db/schema.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAW7B,CAAA;AAEF,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAQ3B,CAAA;AAEH,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAMxB,CAAA;AAEF,eAAO,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAKtB,CAAA;AAGF,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAWzB,CAAA;AAEF,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAQvB,CAAA;AAEH,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAMpB,CAAA;AAEF,eAAO,MAAM,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAKlB,CAAA"}
@@ -0,0 +1,73 @@
1
+ import { integer, sqliteTable, text, primaryKey as sqlitePrimaryKey } from 'drizzle-orm/sqlite-core';
2
+ import { jsonb, pgTable, primaryKey as pgPrimaryKey, timestamp, text as pgText } from 'drizzle-orm/pg-core';
3
+ // SQLite tables (self-hosted default)
4
+ export const sqliteIntegrations = sqliteTable('integrations', {
5
+ id: text('id').notNull().primaryKey(),
6
+ spaceId: text('space_id'),
7
+ type: text('type').notNull(),
8
+ referenceId: text('reference_id').notNull(),
9
+ label: text('label').notNull(),
10
+ connectionMethod: text('connection_method'),
11
+ connectionId: text('connection_id'),
12
+ credentialId: text('credential_id'),
13
+ configJson: text('config_json'),
14
+ createdAt: integer('created_at', { mode: 'timestamp_ms' }).notNull(),
15
+ });
16
+ export const sqliteCredentials = sqliteTable('credentials', {
17
+ spaceId: text('space_id').notNull(),
18
+ id: text('id').notNull(),
19
+ ciphertext: text('ciphertext').notNull(),
20
+ createdAt: integer('created_at', { mode: 'timestamp_ms' }).notNull(),
21
+ updatedAt: integer('updated_at', { mode: 'timestamp_ms' }).notNull(),
22
+ }, t => ({
23
+ pk: sqlitePrimaryKey({ columns: [t.spaceId, t.id] }),
24
+ }));
25
+ export const sqliteApiKeys = sqliteTable('api_keys', {
26
+ id: text('id').notNull().primaryKey(),
27
+ name: text('name').notNull(),
28
+ keyHash: text('key_hash').notNull(),
29
+ scopesJson: text('scopes_json'),
30
+ createdAt: integer('created_at', { mode: 'timestamp_ms' }).notNull(),
31
+ });
32
+ export const sqliteUsers = sqliteTable('users', {
33
+ id: text('id').notNull().primaryKey(),
34
+ email: text('email').notNull(),
35
+ passwordHash: text('password_hash'),
36
+ createdAt: integer('created_at', { mode: 'timestamp_ms' }).notNull(),
37
+ });
38
+ // Postgres tables (hosted/production)
39
+ export const pgIntegrations = pgTable('integrations', {
40
+ id: pgText('id').notNull().primaryKey(),
41
+ spaceId: pgText('space_id'),
42
+ type: pgText('type').notNull(),
43
+ referenceId: pgText('reference_id').notNull(),
44
+ label: pgText('label').notNull(),
45
+ connectionMethod: pgText('connection_method'),
46
+ connectionId: pgText('connection_id'),
47
+ credentialId: pgText('credential_id'),
48
+ configJson: jsonb('config_json'),
49
+ createdAt: timestamp('created_at', { withTimezone: true }).notNull(),
50
+ });
51
+ export const pgCredentials = pgTable('credentials', {
52
+ spaceId: pgText('space_id').notNull(),
53
+ id: pgText('id').notNull(),
54
+ ciphertext: pgText('ciphertext').notNull(),
55
+ createdAt: timestamp('created_at', { withTimezone: true }).notNull(),
56
+ updatedAt: timestamp('updated_at', { withTimezone: true }).notNull(),
57
+ }, t => ({
58
+ pk: pgPrimaryKey({ columns: [t.spaceId, t.id] }),
59
+ }));
60
+ export const pgApiKeys = pgTable('api_keys', {
61
+ id: pgText('id').notNull().primaryKey(),
62
+ name: pgText('name').notNull(),
63
+ keyHash: pgText('key_hash').notNull(),
64
+ scopesJson: jsonb('scopes_json'),
65
+ createdAt: timestamp('created_at', { withTimezone: true }).notNull(),
66
+ });
67
+ export const pgUsers = pgTable('users', {
68
+ id: pgText('id').notNull().primaryKey(),
69
+ email: pgText('email').notNull(),
70
+ passwordHash: pgText('password_hash'),
71
+ createdAt: timestamp('created_at', { withTimezone: true }).notNull(),
72
+ });
73
+ //# sourceMappingURL=schema.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"schema.js","sourceRoot":"","sources":["../../src/db/schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,WAAW,EAAE,IAAI,EAAE,UAAU,IAAI,gBAAgB,EAAE,MAAM,yBAAyB,CAAA;AACpG,OAAO,EAAE,KAAK,EAAE,OAAO,EAAE,UAAU,IAAI,YAAY,EAAE,SAAS,EAAE,IAAI,IAAI,MAAM,EAAE,MAAM,qBAAqB,CAAA;AAE3G,sCAAsC;AACtC,MAAM,CAAC,MAAM,kBAAkB,GAAG,WAAW,CAAC,cAAc,EAAE;IAC5D,EAAE,EAAE,IAAI,CAAC,IAAI,CAAC,CAAC,OAAO,EAAE,CAAC,UAAU,EAAE;IACrC,OAAO,EAAE,IAAI,CAAC,UAAU,CAAC;IACzB,IAAI,EAAE,IAAI,CAAC,MAAM,CAAC,CAAC,OAAO,EAAE;IAC5B,WAAW,EAAE,IAAI,CAAC,cAAc,CAAC,CAAC,OAAO,EAAE;IAC3C,KAAK,EAAE,IAAI,CAAC,OAAO,CAAC,CAAC,OAAO,EAAE;IAC9B,gBAAgB,EAAE,IAAI,CAAC,mBAAmB,CAAC;IAC3C,YAAY,EAAE,IAAI,CAAC,eAAe,CA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
+ readonly statusCode: number;
3
+ readonly data?: unknown;
4
+ constructor(statusCode: number, message: string, data?: unknown);
5
+ }
6
+ //# sourceMappingURL=httpError.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"httpError.d.ts","sourceRoot":"","sources":["../../src/errors/httpError.ts"],"names":[],"mappings":"AAAA,qBAAa,SAAU,SAAQ,KAAK;IAClC,QAAQ,CAAC,UAAU,EAAE,MAAM,CAAA;IAC3B,QAAQ,CAAC,IAAI,CAAC,EAAE,OAAO,CAAA;gBAEX,UAAU,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,EAAE,IAAI,CAAC,EAAE,OAAO;CAMhE"}
@@ -0,0 +1,11 @@
1
+ export class HttpError extends Error {
2
+ statusCode;
3
+ data;
4
+ constructor(statusCode, message, data) {
5
+ super(message);
6
+ this.name = 'HttpError';
7
+ this.statusCode = statusCode;
8
+ this.data = data;
9
+ }
10
+ }
11
+ //# sourceMappingURL=httpError.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"httpError.js","sourceRoot":"","sources":["../../src/errors/httpError.ts"],"names":[],"mappings":"AAAA,MAAM,OAAO,SAAU,SAAQ,KAAK;IACzB,UAAU,CAAQ;IAClB,IAAI,CAAU;IAEvB,YAAY,UAAkB,EAAE,OAAe,EAAE,IAAc;QAC7D,KAAK,CAAC,OAAO,CAAC,CAAA;QACd,IAAI,CAAC,IAAI,GAAG,WAAW,CAAA;QACvB,IAAI,CAAC,UAAU,GAAG,UAAU,CAAA;QAC5B,IAAI,CAAC,IAAI,GAAG,IAAI,CAAA;IAClB,CAAC;CACF"}
@@ -0,0 +1,21 @@
1
+ export * from './types.js';
2
+ export * from './errors/httpError.js';
3
+ export * from './crypto/encryption.js';
4
+ export * from './integrations/dataLoader.js';
5
+ export * from './integrations/catalog.js';
6
+ export * from './integrations/tools.js';
7
+ export * from './integrations/providerRegistry.js';
8
+ export * from './integrations/sandbox.js';
9
+ export * from './integrations/getIntegration.js';
10
+ export * from './integrations/actionsFactory.js';
11
+ export * from './integrations/proxy.js';
12
+ export * from './db/client.js';
13
+ export * from './db/migrate.js';
14
+ export * from './db/schema.js';
15
+ export * from './db/credentialStore.js';
16
+ export * from './db/integrationStore.js';
17
+ export * from './mcp/toolAdapter.js';
18
+ export * from './mcp/server.js';
19
+ export * from './cli/index.js';
20
+ export * from './cli/credentialManager.js';
21
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,YAAY,CAAA;AAE1B,cAAc,uBAAuB,CAAA;AAErC,cAAc,wBAAwB,CAAA;AAEtC,cAAc,8BAA8B,CAAA;AAC5C,cAAc,2BAA2B,CAAA;AACzC,cAAc,yBAAyB,CAAA;AACvC,cAAc,oCAAoC,CAAA;AAClD,cAAc,2BAA2B,CAAA;AACzC,cAAc,kCAAkC,CAAA;AAChD,cAAc,kCAAkC,CAAA;AAChD,cAAc,yBAAyB,CAAA;AAEvC,cAAc,gBAAgB,CAAA;AAC9B,cAAc,iBAAiB,CAAA;AAC/B,cAAc,gBAAgB,CAAA;AAC9B,cAAc,yBAAyB,CAAA;AACvC,cAAc,0BAA0B,CAAA;AAExC,cAAc,sBAAsB,CAAA;AACpC,cAAc,iBAAiB,CAAA;AAE/B,cAAc,gBAAgB,CAAA;AAC9B,cAAc,4BAA4B,CAAA"}
package/dist/index.js ADDED
@@ -0,0 +1,21 @@
1
+ export * from './types.js';
2
+ export * from './errors/httpError.js';
3
+ export * from './crypto/encryption.js';
4
+ export * from './integrations/dataLoader.js';
5
+ export * from './integrations/catalog.js';
6
+ export * from './integrations/tools.js';
7
+ export * from './integrations/providerRegistry.js';
8
+ export * from './integrations/sandbox.js';
9
+ export * from './integrations/getIntegration.js';
10
+ export * from './integrations/actionsFactory.js';
11
+ export * from './integrations/proxy.js';
12
+ export * from './db/client.js';
13
+ export * from './db/migrate.js';
14
+ export * from './db/schema.js';
15
+ export * from './db/credentialStore.js';
16
+ export * from './db/integrationStore.js';
17
+ export * from './mcp/toolAdapter.js';
18
+ export * from './mcp/server.js';
19
+ export * from './cli/index.js';
20
+ export * from './cli/credentialManager.js';
21
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,YAAY,CAAA;AAE1B,cAAc,uBAAuB,CAAA;AAErC,cAAc,wBAAwB,CAAA;AAEtC,cAAc,8BAA8B,CAAA;AAC5C,cAAc,2BAA2B,CAAA;AACzC,cAAc,yBAAyB,CAAA;AACvC,cAAc,oCAAoC,CAAA;AAClD,cAAc,2BAA2B,CAAA;AACzC,cAAc,kCAAkC,CAAA;AAChD,cAAc,kCAAkC,CAAA;AAChD,cAAc,yBAAyB,CAAA;AAEvC,cAAc,gBAAgB,CAAA;AAC9B,cAAc,iBAAiB,CAAA;AAC/B,cAAc,gBAAgB,CAAA;AAC9B,cAAc,yBAAyB,CAAA;AACvC,cAAc,0BAA0B,CAAA;AAExC,cAAc,sBAAsB,CAAA;AACpC,cAAc,iBAAiB,CAAA;AAE/B,cAAc,gBAAgB,CAAA;AAC9B,cAAc,4BAA4B,CAAA"}
@@ -0,0 +1,12 @@
1
+ import type { ExecutableTool, IntegrationData } from '../types.js';
2
+ import type { IntegrationProxy } from './proxy.js';
3
+ export interface BuildToolsOptions {
4
+ requireWriteConfirmation?: boolean;
5
+ }
6
+ export declare function buildToolsByIntegration(spaceId: string, integrations: IntegrationData[], proxy: IntegrationProxy, opts?: BuildToolsOptions): Record<string, {
7
+ read: ExecutableTool[];
8
+ write: ExecutableTool[];
9
+ admin: ExecutableTool[];
10
+ }>;
11
+ export declare function buildDisplayCardTools(spaceId: string, integrations: IntegrationData[]): Record<string, ExecutableTool[]>;
12
+ //# sourceMappingURL=actionsFactory.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"actionsFactory.d.ts","sourceRoot":"","sources":["../../src/integrations/actionsFactory.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,eAAe,EAAE,MAAM,aAAa,CAAA;AAClE,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,YAAY,CAAA;AAQlD,MAAM,WAAW,iBAAiB;IAChC,wBAAwB,CAAC,EAAE,OAAO,CAAA;CACnC;AAED,wBAAgB,uBAAuB,CACrC,OAAO,EAAE,MAAM,EACf,YAAY,EAAE,eAAe,EAAE,EAC/B,KAAK,EAAE,gBAAgB,EACvB,IAAI,GAAE,iBAAsB,GAC3B,MAAM,CAAC,MAAM,EAAE;IAAE,IAAI,EAAE,cAAc,EAAE,CAAC;IAAC,KAAK,EAAE,cAAc,EAAE,CAAC;IAAC,KAAK,EAAE,cAAc,EAAE,CAAA;CAAE,CAAC,CA4C9F;AAED,wBAAgB,qBAAqB,CACnC,OAAO,EAAE,MAAM,EACf,YAAY,EAAE,eAAe,EAAE,GAC9B,MAAM,CAAC,MAAM,EAAE,cAAc,EAAE,CAAC,CA2BlC"}
@@ -0,0 +1,68 @@
1
+ import { loadIntegrationDisplayCards, loadIntegrationTools } from './dataLoader.js';
2
+ import { makeIntegrationToolName, sanitizeJsonSchema } from './tools.js';
3
+ import { createSafeHandlerFromString } from './sandbox.js';
4
+ import { createGetIntegration } from './getIntegration.js';
5
+ export function buildToolsByIntegration(spaceId, integrations, proxy, opts = {}) {
6
+ const { requireWriteConfirmation = false } = opts;
7
+ const getIntegration = createGetIntegration(integrations, proxy);
8
+ const toolsByIntegration = {};
9
+ for (const integ of integrations) {
10
+ const loaded = loadIntegrationTools(integ.type);
11
+ const read = loaded?.read || [];
12
+ const write = loaded?.write || [];
13
+ const admin = loaded?.admin || [];
14
+ const buildActions = (arr, scope) => arr.map((t) => {
15
+ const humanize = (s) => (s || '')
16
+ .replace(/_/g, ' ')
17
+ .split(/\s+/g)
18
+ .filter(Boolean)
19
+ .map(w => w.length ? `${w[0].toUpperCase()}${w.slice(1).toLowerCase()}` : w)
20
+ .join(' ');
21
+ const rawSchema = typeof t.inputSchema === 'string' ? JSON.parse(t.inputSchema) : t.inputSchema;
22
+ const schemaObj = sanitizeJsonSchema(rawSchema);
23
+ const toolName = makeIntegrationToolName(integ.type, t.name, integ.id);
24
+ const description = `[${integ.label} | ${integ.type}] ${t.description}`;
25
+ const wrapper = `async (input) => {\n const integration = getIntegration('${integ.id}');\n const __inner = ${t.handlerCode};\n return await __inner(input);\n}`;
26
+ const safeHandler = createSafeHandlerFromString(wrapper, getIntegration);
27
+ return {
28
+ name: toolName,
29
+ displayName: `${t.displayName || humanize(t.name)}`,
30
+ description,
31
+ inputSchema: schemaObj,
32
+ run: safeHandler,
33
+ integrations: [integ],
34
+ requireConfirmation: scope === 'write' && requireWriteConfirmation,
35
+ };
36
+ });
37
+ toolsByIntegration[integ.referenceId] = {
38
+ read: buildActions(read, 'read'),
39
+ write: buildActions(write, 'write'),
40
+ admin: buildActions(admin, 'admin'),
41
+ };
42
+ }
43
+ return toolsByIntegration;
44
+ }
45
+ export function buildDisplayCardTools(spaceId, integrations) {
46
+ const displayToolsByIntegration = {};
47
+ for (const integ of integrations) {
48
+ const cards = loadIntegrationDisplayCards(integ.type);
49
+ if (!cards.length)
50
+ continue;
51
+ const tools = [];
52
+ for (const card of cards) {
53
+ const schemaObj = sanitizeJsonSchema(card.inputSchema);
54
+ const toolName = makeIntegrationToolName(integ.type, card.name, integ.id);
55
+ const description = `[${integ.label} | ${integ.type}] ${card.description}`;
56
+ tools.push({
57
+ name: toolName,
58
+ displayName: card.component,
59
+ description,
60
+ inputSchema: schemaObj,
61
+ run: async (args) => ({ success: true, result: args, logs: [] }),
62
+ });
63
+ }
64
+ displayToolsByIntegration[integ.referenceId] = tools;
65
+ }
66
+ return displayToolsByIntegration;
67
+ }
68
+ //# sourceMappingURL=actionsFactory.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"actionsFactory.js","sourceRoot":"","sources":["../../src/integrations/actionsFactory.ts"],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3
+ name: string;
4
+ }
5
+ export declare function listIntegrationCatalog(): IntegrationCatalogItem[];
6
+ export declare function searchIntegrationCatalog(query: string, limit?: number): Array<IntegrationCatalogItem & {
7
+ score: number;
8
+ }>;
9
+ //# sourceMappingURL=catalog.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"catalog.d.ts","sourceRoot":"","sources":["../../src/integrations/catalog.ts"],"names":[],"mappings":"AAMA,MAAM,WAAW,sBAAsB;IACrC,IAAI,EAAE,MAAM,CAAA;IACZ,IAAI,EAAE,MAAM,CAAA;CACb;AASD,wBAAgB,sBAAsB,IAAI,sBAAsB,EAAE,CA4BjE;AAED,wBAAgB,wBAAwB,CAAC,KAAK,EAAE,MAAM,EAAE,KAAK,GAAE,MAAW,GAAG,KAAK,CAAC,sBAAsB,GAAG;IAAE,KAAK,EAAE,MAAM,CAAA;CAAE,CAAC,CAqC7H"}
@@ -0,0 +1,80 @@
1
+ import { readdirSync, statSync } from 'node:fs';
2
+ import { resolve } from 'node:path';
3
+ import { fileURLToPath } from 'node:url';
4
+ import { distance as levenshtein } from 'fastest-levenshtein';
5
+ import { loadIntegrationManifest } from './dataLoader.js';
6
+ function integrationsRoot() {
7
+ if (process.env.COMMANDABLE_INTEGRATION_DATA_DIR)
8
+ return resolve(process.env.COMMANDABLE_INTEGRATION_DATA_DIR);
9
+ return resolve(fileURLToPath(new URL('../../integration-data/', import.meta.url)));
10
+ }
11
+ export function listIntegrationCatalog() {
12
+ const root = integrationsRoot();
13
+ let entries = [];
14
+ try {
15
+ entries = readdirSync(root);
16
+ }
17
+ catch {
18
+ return [];
19
+ }
20
+ const items = [];
21
+ for (const entry of entries) {
22
+ const dir = resolve(root, entry);
23
+ try {
24
+ const st = statSync(dir);
25
+ if (!st.isDirectory())
26
+ continue;
27
+ const manifest = loadIntegrationManifest(entry);
28
+ if (!manifest)
29
+ continue;
30
+ const name = manifest.name || entry;
31
+ items.push({ type: entry, name });
32
+ }
33
+ catch {
34
+ // ignore
35
+ }
36
+ }
37
+ return items;
38
+ }
39
+ export function searchIntegrationCatalog(query, limit = 10) {
40
+ const items = listIntegrationCatalog();
41
+ const q = (query || '').toLowerCase().trim();
42
+ if (!q)
43
+ return items.slice(0, limit).map(i => ({ ...i, score: 0 }));
44
+ const qTokens = q.split(/\s+/g);
45
+ const scored = [];
46
+ for (const it of items) {
47
+ let score = 0;
48
+ const name = it.name.toLowerCase();
49
+ const type = it.type.toLowerCase();
50
+ const combined = `${name} ${type}`;
51
+ if (type === q || name === q)
52
+ score += 15;
53
+ if (combined.includes(q))
54
+ score += 10;
55
+ if (combined.startsWith(q))
56
+ score += 12;
57
+ for (const t of qTokens) {
58
+ if (!t)
59
+ continue;
60
+ if (name.startsWith(t))
61
+ score += 6;
62
+ else if (name.includes(t))
63
+ score += 4;
64
+ if (type.startsWith(t))
65
+ score += 6;
66
+ else if (type.includes(t))
67
+ score += 4;
68
+ }
69
+ const dType = levenshtein(type, q);
70
+ const dName = levenshtein(name, q);
71
+ if (dType <= 2)
72
+ score += 5 - dType;
73
+ if (dName <= 2)
74
+ score += 5 - dName;
75
+ scored.push({ ...it, score });
76
+ }
77
+ scored.sort((a, b) => b.score - a.score);
78
+ return scored.slice(0, limit);
79
+ }
80
+ //# sourceMappingURL=catalog.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"catalog.js","sourceRoot":"","sources":["../../src/integrations/catalog.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAA;AAC/C,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAA;AACnC,OAAO,EAAE,aAAa,EAAE,MAAM,UAAU,CAAA;AACxC,OAAO,EAAE,QAAQ,IAAI,WAAW,EAAE,MAAM,qBAAqB,CAAA;AAC7D,OAAO,EAAE,uBAAuB,EAAE,MAAM,iBAAiB,CAAA;AAOzD,SAAS,gBAAgB;IACvB,IAAI,OAAO,CAAC,GAAG,CAAC,gCAAgC;QAC9C,O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KAAK,IAAI,CAAC,CAAA;QACvC,CAAC;QAED,MAAM,KAAK,GAAG,WAAW,CAAC,IAAI,EAAE,CAAC,CAAC,CAAA;QAClC,MAAM,KAAK,GAAG,WAAW,CAAC,IAAI,EAAE,CAAC,CAAC,CAAA;QAClC,IAAI,KAAK,IAAI,CAAC;YAAE,KAAK,IAAI,CAAC,GAAG,KAAK,CAAA;QAClC,IAAI,KAAK,IAAI,CAAC;YAAE,KAAK,IAAI,CAAC,GAAG,KAAK,CAAA;QAElC,MAAM,CAAC,IAAI,CAAC,EAAE,GAAG,EAAE,EAAE,KAAK,EAAE,CAAC,CAAA;IAC/B,CAAC;IAED,MAAM,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,KAAK,GAAG,CAAC,CAAC,KAAK,CAAC,CAAA;IACxC,OAAO,MAAM,CAAC,KAAK,CAAC,CAAC,EAAE,KAAK,CAAC,CAAA;AAC/B,CAAC"}
@@ -0,0 +1,47 @@
1
+ import type { JSONSchema7 } from 'json-schema';
2
+ import type { ToolData } from '../types.js';
3
+ export interface IntegrationCredentialConfig {
4
+ schema: JSONSchema7;
5
+ injection: {
6
+ headers?: Record<string, string>;
7
+ query?: Record<string, string>;
8
+ };
9
+ }
10
+ interface ToolRef {
11
+ name: string;
12
+ description: string;
13
+ inputSchema: string;
14
+ handler: string;
15
+ scope?: 'read' | 'write' | 'admin';
16
+ }
17
+ type FlatTools = ToolRef[];
18
+ interface DisplayCardRef {
19
+ name: string;
20
+ description: string;
21
+ inputSchema: string;
22
+ component: string;
23
+ }
24
+ export interface DisplayCardData {
25
+ name: string;
26
+ description: string;
27
+ inputSchema: JSONSchema7;
28
+ component: string;
29
+ }
30
+ interface Manifest {
31
+ name: string;
32
+ version?: string;
33
+ baseUrl?: string;
34
+ tools: FlatTools;
35
+ displayCards?: DisplayCardRef[];
36
+ }
37
+ export declare function loadIntegrationManifest(type: string): Manifest | null;
38
+ export declare function loadIntegrationPrompt(type: string): string | null;
39
+ export declare function loadIntegrationDisplayCards(type: string): DisplayCardData[];
40
+ export declare function loadIntegrationTools(type: string): {
41
+ read: ToolData[];
42
+ write: ToolData[];
43
+ admin: ToolData[];
44
+ } | null;
45
+ export declare function loadIntegrationCredentialConfig(type: string): IntegrationCredentialConfig | null;
46
+ export {};
47
+ //# sourceMappingURL=dataLoader.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"dataLoader.d.ts","sourceRoot":"","sources":["../../src/integrations/dataLoader.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,aAAa,CAAA;AAC9C,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAA;AAK3C,MAAM,WAAW,2BAA2B;IAC1C,MAAM,EAAE,WAAW,CAAA;IACnB,SAAS,EAAE;QACT,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAA;QAChC,KAAK,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAA;KAC/B,CAAA;CACF;AAED,UAAU,OAAO;IACf,IAAI,EAAE,MAAM,CAAA;IACZ,WAAW,EAAE,MAAM,CAAA;IACnB,WAAW,EAAE,MAAM,CAAA;IACnB,OAAO,EAAE,MAAM,CAAA;IACf,KAAK,CAAC,EAAE,MAAM,GAAG,OAAO,GAAG,OAAO,CAAA;CACnC;AAED,KAAK,SAAS,GAAG,OAAO,EAAE,CAAA;AAE1B,UAAU,cAAc;IACtB,IAAI,EAAE,MAAM,CAAA;IACZ,WAAW,EAAE,MAAM,CAAA;IACnB,WAAW,EAAE,MAAM,CAAA;IACnB,SAAS,EAAE,MAAM,CAAA;CAClB;AAED,MAAM,WAAW,eAAe;IAC9B,IAAI,EAAE,MAAM,CAAA;IACZ,WAAW,EAAE,MAAM,CAAA;IACnB,WAAW,EAAE,WAAW,CAAA;IACxB,SAAS,EAAE,MAAM,CAAA;CAClB;AAED,UAAU,QAAQ;IAChB,IAAI,EAAE,MAAM,CAAA;IACZ,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,KAAK,EAAE,SAAS,CAAA;IAChB,YAAY,CAAC,EAAE,cAAc,EAAE,CAAA;CAChC;AA+BD,wBAAgB,uBAAuB,CAAC,IAAI,EAAE,MAAM,GAAG,QAAQ,GAAG,IAAI,CAMrE;AAED,wBAAgB,qBAAqB,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,GAAG,IAAI,CAWjE;AAkBD,wBAAgB,2BAA2B,CAAC,IAAI,EAAE,MAAM,GAAG,eAAe,EAAE,CAe3E;AAED,wBAAgB,oBAAoB,CAAC,IAAI,EAAE,MAAM,GAAG;IAAE,IAAI,EAAE,QAAQ,EAAE,CAAC;IAAC,KAAK,EAAE,QAAQ,EAAE,CAAC;IAAC,KAAK,EAAE,QAAQ,EAAE,CAAA;CAAE,GAAG,IAAI,CAoBpH;AAED,wBAAgB,+BAA+B,CAAC,IAAI,EAAE,MAAM,GAAG,2BAA2B,GAAG,IAAI,CAsBhG"}
@@ -0,0 +1,126 @@
1
+ import { existsSync, readFileSync } from 'node:fs';
2
+ import { resolve } from 'node:path';
3
+ import { fileURLToPath } from 'node:url';
4
+ function integrationDataRoot() {
5
+ // Allow overriding for consumers (tests, packaged CLI, etc.)
6
+ if (process.env.COMMANDABLE_INTEGRATION_DATA_DIR)
7
+ return resolve(process.env.COMMANDABLE_INTEGRATION_DATA_DIR);
8
+ // Default: packaged integration-data bundled alongside dist/
9
+ // dist/integrations/*.js -> ../../integration-data
10
+ return resolve(fileURLToPath(new URL('../../integration-data/', import.meta.url)));
11
+ }
12
+ function integrationDir(type) {
13
+ return resolve(integrationDataRoot(), type);
14
+ }
15
+ function readJsonFile(path) {
16
+ const content = readFileSync(path, 'utf8');
17
+ return JSON.parse(content);
18
+ }
19
+ function ensureSchemaObject(schema) {
20
+ if (!schema)
21
+ return {};
22
+ if (typeof schema === 'string') {
23
+ try {
24
+ return JSON.parse(schema);
25
+ }
26
+ catch {
27
+ return {};
28
+ }
29
+ }
30
+ return schema;
31
+ }
32
+ export function loadIntegrationManifest(type) {
33
+ const dir = integrationDir(type);
34
+ const manifestPath = resolve(dir, 'manifest.json');
35
+ if (!existsSync(manifestPath))
36
+ return null;
37
+ return readJsonFile(manifestPath);
38
+ }
39
+ export function loadIntegrationPrompt(type) {
40
+ const dir = integrationDir(type);
41
+ const promptPath = resolve(dir, 'prompt.md');
42
+ if (!existsSync(promptPath))
43
+ return null;
44
+ try {
45
+ return readFileSync(promptPath, 'utf8');
46
+ }
47
+ catch {
48
+ return null;
49
+ }
50
+ }
51
+ function materializeTool(type, ref) {
52
+ const dir = integrationDir(type);
53
+ const schemaPath = resolve(dir, ref.inputSchema);
54
+ const handlerPath = resolve(dir, ref.handler);
55
+ const schema = readJsonFile(schemaPath);
56
+ const handlerCode = readFileSync(handlerPath, 'utf8').trim();
57
+ return {
58
+ name: ref.name,
59
+ description: ref.description,
60
+ inputSchema: ensureSchemaObject(schema),
61
+ handlerCode,
62
+ };
63
+ }
64
+ export function loadIntegrationDisplayCards(type) {
65
+ const manifest = loadIntegrationManifest(type);
66
+ if (!manifest?.displayCards?.length)
67
+ return [];
68
+ const dir = integrationDir(type);
69
+ return manifest.displayCards.map((ref) => {
70
+ const schemaPath = resolve(dir, ref.inputSchema);
71
+ const schema = existsSync(schemaPath) ? ensureSchemaObject(readJsonFile(schemaPath)) : {};
72
+ return {
73
+ name: ref.name,
74
+ description: ref.description,
75
+ inputSchema: schema,
76
+ component: ref.component,
77
+ };
78
+ });
79
+ }
80
+ export function loadIntegrationTools(type) {
81
+ const manifest = loadIntegrationManifest(type);
82
+ if (!manifest)
83
+ return null;
84
+ const flat = manifest.tools;
85
+ const readRefs = [];
86
+ const writeRefs = [];
87
+ const adminRefs = [];
88
+ for (const t of flat) {
89
+ const scope = t.scope || 'read';
90
+ if (scope === 'read')
91
+ readRefs.push(t);
92
+ else if (scope === 'write')
93
+ writeRefs.push(t);
94
+ else if (scope === 'admin')
95
+ adminRefs.push(t);
96
+ else
97
+ readRefs.push(t);
98
+ }
99
+ const read = readRefs.map(t => materializeTool(type, t));
100
+ const write = writeRefs.map(t => materializeTool(type, t));
101
+ const admin = adminRefs.map(t => materializeTool(type, t));
102
+ return { read, write, admin };
103
+ }
104
+ export function loadIntegrationCredentialConfig(type) {
105
+ const dir = integrationDir(type);
106
+ const path = resolve(dir, 'credentials.json');
107
+ if (!existsSync(path))
108
+ return null;
109
+ try {
110
+ const raw = readJsonFile(path);
111
+ const schema = ensureSchemaObject(raw?.schema);
112
+ const injection = raw?.injection || {};
113
+ const cfg = {
114
+ schema,
115
+ injection: {
116
+ headers: injection?.headers || undefined,
117
+ query: injection?.query || undefined,
118
+ },
119
+ };
120
+ return cfg;
121
+ }
122
+ catch {
123
+ return null;
124
+ }
125
+ }
126
+ //# sourceMappingURL=dataLoader.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"dataLoader.js","sourceRoot":"","sources":["../../src/integrations/dataLoader.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,UAAU,EAAE,YAAY,EAAE,MAAM,SAAS,CAAA;AAClD,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAA;AACnC,OAAO,EAAE,aAAa,EAAE,MAAM,UAAU,CAAA;AA0CxC,SAAS,mBAAmB;IAC1B,6DAA6D;IAC7D,IAAI,OAAO,CAAC,GAAG,CAAC,gCAAgC;QAC9C,OAAO,OAAO,CAAC,OAAO,CAAC,GAAG,CAAC,gCAAgC,CAAC,CAAA;IAE9D,6DAA6D;IAC7D,mDAAmD;IACnD,OAAO,OAAO,CAAC,aAAa,CAAC,IAAI,GAAG,CAAC,yBAAyB,EAAE,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,CAAC,CAAA;AACpF,CAAC;AAED,SAAS,cAAc,CAAC,IAAY;IAClC,OAAO,OAAO,CAAC,mBAAmB,EAAE,EAAE,IAAI,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EAAE,kBAAkB,CAAC,CAAA;IAC7C,IAAI,CAAC,UAAU,CAAC,IAAI,CAAC;QACnB,OAAO,IAAI,CAAA;IAEb,IAAI,CAAC;QACH,MAAM,GAAG,GAAG,YAAY,CAAC,IAAI,CAAC,CAAA;QAC9B,MAAM,MAAM,GAAG,kBAAkB,CAAC,GAAG,EAAE,MAAM,CAAgB,CAAA;QAC7D,MAAM,SAAS,GAAG,GAAG,EAAE,SAAS,IAAI,EAAE,CAAA;QACtC,MAAM,GAAG,GAAgC;YACvC,MAAM;YACN,SAAS,EAAE;gBACT,OAAO,EAAE,SAAS,EAAE,OAAO,IAAI,SAAS;gBACxC,KAAK,EAAE,SAAS,EAAE,KAAK,IAAI,SAAS;aACrC;SACF,CAAA;QACD,OAAO,GAAG,CAAA;IACZ,CAAC;IACD,MAAM,CAAC;QACL,OAAO,IAAI,CAAA;IACb,CAAC;AACH,CAAC"}
@@ -0,0 +1,11 @@
1
+ import type { IntegrationData } from '../types.js';
2
+ import type { IntegrationProxy } from './proxy.js';
3
+ export declare function createGetIntegration(integrations: IntegrationData[] | undefined, proxy: IntegrationProxy): (refOrId: string) => {
4
+ fetch: (path: string, init?: RequestInit) => Promise<Response>;
5
+ get: (path: string, init?: RequestInit) => Promise<Response>;
6
+ post: (path: string, body: any, init?: RequestInit) => Promise<Response>;
7
+ put: (path: string, body: any, init?: RequestInit) => Promise<Response>;
8
+ patch: (path: string, body: any, init?: RequestInit) => Promise<Response>;
9
+ delete: (path: string, init?: RequestInit) => Promise<Response>;
10
+ };
11
+ //# sourceMappingURL=getIntegration.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getIntegration.d.ts","sourceRoot":"","sources":["../../src/integrations/getIntegration.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,aAAa,CAAA;AAClD,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,YAAY,CAAA;AAElD,wBAAgB,oBAAoB,CAClC,YAAY,EAAE,eAAe,EAAE,GAAG,SAAS,EAC3C,KAAK,EAAE,gBAAgB,IAEf,SAAS,MAAM;kBAiBL,MAAM,SAAS,WAAW;gBAJI,MAAM,SAAQ,WAAW;iBAHvB,MAAM,QAAQ,GAAG,SAAQ,WAAW;gBAApC,MAAM,QAAQ,GAAG,SAAQ,WAAW;kBAApC,MAAM,QAAQ,GAAG,SAAQ,WAAW;mBAGtC,MAAM,SAAQ,WAAW;EAY1E"}
@@ -0,0 +1,22 @@
1
+ export function createGetIntegration(integrations, proxy) {
2
+ return (refOrId) => {
3
+ const integration = integrations?.find(i => i.id === refOrId || i.referenceId === refOrId);
4
+ if (!integration)
5
+ throw new Error('Invalid or unauthorized integration reference/id');
6
+ const isHttp = integration.type === 'http';
7
+ const isCredentialsConnected = integration.connectionMethod === 'credentials' && !!integration.credentialId;
8
+ if (!isHttp && !integration.connectionId && !isCredentialsConnected)
9
+ throw new Error('Integration is not connected');
10
+ const verbWithBody = (method) => (path, body, init = {}) => proxy.call(integration, path, { ...init, method, body: JSON.stringify(body) });
11
+ const verbNoBody = (method) => (path, init = {}) => proxy.call(integration, path, { ...init, method });
12
+ return {
13
+ fetch: (path, init) => proxy.call(integration, path, init),
14
+ get: verbNoBody('GET'),
15
+ post: verbWithBody('POST'),
16
+ put: verbWithBody('PUT'),
17
+ patch: verbWithBody('PATCH'),
18
+ delete: verbNoBody('DELETE'),
19
+ };
20
+ };
21
+ }
22
+ //# sourceMappingURL=getIntegration.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getIntegration.js","sourceRoot":"","sources":["../../src/integrations/getIntegration.ts"],"names":[],"mappings":"AAGA,MAAM,UAAU,oBAAoB,CAClC,YAA2C,EAC3C,KAAuB;IAEvB,OAAO,CAAC,OAAe,EAAE,EAAE;QACzB,MAAM,WAAW,GAAG,YAAY,EAAE,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,EAAE,KAAK,OAAO,IAAK,CAAS,CAAC,WAAW,KAAK,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,CAAC"}
@@ -0,0 +1,6 @@
1
+ export declare function getGoogleAccessToken(args: {
2
+ serviceAccountJson: string;
3
+ scopes: string[];
4
+ subject?: string;
5
+ }): Promise<string>;
6
+ //# sourceMappingURL=googleServiceAccount.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"googleServiceAccount.d.ts","sourceRoot":"","sources":["../../src/integrations/googleServiceAccount.ts"],"names":[],"mappings":"AAyBA,wBAAsB,oBAAoB,CAAC,IAAI,EAAE;IAC/C,kBAAkB,EAAE,MAAM,CAAA;IAC1B,MAAM,EAAE,MAAM,EAAE,CAAA;IAChB,OAAO,CAAC,EAAE,MAAM,CAAA;CACjB,GAAG,OAAO,CAAC,MAAM,CAAC,CA0ClB"}