@agent-native/dispatch 0.1.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 (737) hide show
  1. package/README.md +220 -0
  2. package/dist/actions/approve-dispatch-change.d.ts +3 -0
  3. package/dist/actions/approve-dispatch-change.d.ts.map +1 -0
  4. package/dist/actions/approve-dispatch-change.js +11 -0
  5. package/dist/actions/approve-dispatch-change.js.map +1 -0
  6. package/dist/actions/approve-vault-request.d.ts +3 -0
  7. package/dist/actions/approve-vault-request.d.ts.map +1 -0
  8. package/dist/actions/approve-vault-request.js +16 -0
  9. package/dist/actions/approve-vault-request.js.map +1 -0
  10. package/dist/actions/create-link-token.d.ts +3 -0
  11. package/dist/actions/create-link-token.d.ts.map +1 -0
  12. package/dist/actions/create-link-token.js +11 -0
  13. package/dist/actions/create-link-token.js.map +1 -0
  14. package/dist/actions/create-vault-grant.d.ts +3 -0
  15. package/dist/actions/create-vault-grant.d.ts.map +1 -0
  16. package/dist/actions/create-vault-grant.js +14 -0
  17. package/dist/actions/create-vault-grant.js.map +1 -0
  18. package/dist/actions/create-vault-secret.d.ts +3 -0
  19. package/dist/actions/create-vault-secret.d.ts.map +1 -0
  20. package/dist/actions/create-vault-secret.js +20 -0
  21. package/dist/actions/create-vault-secret.js.map +1 -0
  22. package/dist/actions/create-workspace-resource-grant.d.ts +3 -0
  23. package/dist/actions/create-workspace-resource-grant.d.ts.map +1 -0
  24. package/dist/actions/create-workspace-resource-grant.js +14 -0
  25. package/dist/actions/create-workspace-resource-grant.js.map +1 -0
  26. package/dist/actions/create-workspace-resource.d.ts +3 -0
  27. package/dist/actions/create-workspace-resource.d.ts.map +1 -0
  28. package/dist/actions/create-workspace-resource.js +24 -0
  29. package/dist/actions/create-workspace-resource.js.map +1 -0
  30. package/dist/actions/delete-destination.d.ts +3 -0
  31. package/dist/actions/delete-destination.d.ts.map +1 -0
  32. package/dist/actions/delete-destination.js +11 -0
  33. package/dist/actions/delete-destination.js.map +1 -0
  34. package/dist/actions/delete-vault-secret.d.ts +3 -0
  35. package/dist/actions/delete-vault-secret.d.ts.map +1 -0
  36. package/dist/actions/delete-vault-secret.js +11 -0
  37. package/dist/actions/delete-vault-secret.js.map +1 -0
  38. package/dist/actions/delete-workspace-resource.d.ts +3 -0
  39. package/dist/actions/delete-workspace-resource.d.ts.map +1 -0
  40. package/dist/actions/delete-workspace-resource.js +11 -0
  41. package/dist/actions/delete-workspace-resource.js.map +1 -0
  42. package/dist/actions/deny-vault-request.d.ts +3 -0
  43. package/dist/actions/deny-vault-request.d.ts.map +1 -0
  44. package/dist/actions/deny-vault-request.js +12 -0
  45. package/dist/actions/deny-vault-request.js.map +1 -0
  46. package/dist/actions/get-app-creation-settings.d.ts +3 -0
  47. package/dist/actions/get-app-creation-settings.d.ts.map +1 -0
  48. package/dist/actions/get-app-creation-settings.js +10 -0
  49. package/dist/actions/get-app-creation-settings.js.map +1 -0
  50. package/dist/actions/get-dispatch-settings.d.ts +3 -0
  51. package/dist/actions/get-dispatch-settings.d.ts.map +1 -0
  52. package/dist/actions/get-dispatch-settings.js +10 -0
  53. package/dist/actions/get-dispatch-settings.js.map +1 -0
  54. package/dist/actions/get-workspace-info.d.ts +3 -0
  55. package/dist/actions/get-workspace-info.d.ts.map +1 -0
  56. package/dist/actions/get-workspace-info.js +10 -0
  57. package/dist/actions/get-workspace-info.js.map +1 -0
  58. package/dist/actions/grant-vault-secrets-to-app.d.ts +3 -0
  59. package/dist/actions/grant-vault-secrets-to-app.d.ts.map +1 -0
  60. package/dist/actions/grant-vault-secrets-to-app.js +19 -0
  61. package/dist/actions/grant-vault-secrets-to-app.js.map +1 -0
  62. package/dist/actions/index.d.ts +9 -0
  63. package/dist/actions/index.d.ts.map +1 -0
  64. package/dist/actions/index.js +101 -0
  65. package/dist/actions/index.js.map +1 -0
  66. package/dist/actions/list-connected-agents.d.ts +3 -0
  67. package/dist/actions/list-connected-agents.d.ts.map +1 -0
  68. package/dist/actions/list-connected-agents.js +79 -0
  69. package/dist/actions/list-connected-agents.js.map +1 -0
  70. package/dist/actions/list-destinations.d.ts +3 -0
  71. package/dist/actions/list-destinations.d.ts.map +1 -0
  72. package/dist/actions/list-destinations.js +10 -0
  73. package/dist/actions/list-destinations.js.map +1 -0
  74. package/dist/actions/list-dispatch-approvals.d.ts +3 -0
  75. package/dist/actions/list-dispatch-approvals.d.ts.map +1 -0
  76. package/dist/actions/list-dispatch-approvals.js +10 -0
  77. package/dist/actions/list-dispatch-approvals.js.map +1 -0
  78. package/dist/actions/list-dispatch-audit.d.ts +3 -0
  79. package/dist/actions/list-dispatch-audit.d.ts.map +1 -0
  80. package/dist/actions/list-dispatch-audit.js +12 -0
  81. package/dist/actions/list-dispatch-audit.js.map +1 -0
  82. package/dist/actions/list-dispatch-overview.d.ts +3 -0
  83. package/dist/actions/list-dispatch-overview.d.ts.map +1 -0
  84. package/dist/actions/list-dispatch-overview.js +17 -0
  85. package/dist/actions/list-dispatch-overview.js.map +1 -0
  86. package/dist/actions/list-integrations-catalog.d.ts +3 -0
  87. package/dist/actions/list-integrations-catalog.d.ts.map +1 -0
  88. package/dist/actions/list-integrations-catalog.js +10 -0
  89. package/dist/actions/list-integrations-catalog.js.map +1 -0
  90. package/dist/actions/list-linked-identities.d.ts +3 -0
  91. package/dist/actions/list-linked-identities.d.ts.map +1 -0
  92. package/dist/actions/list-linked-identities.js +10 -0
  93. package/dist/actions/list-linked-identities.js.map +1 -0
  94. package/dist/actions/list-vault-audit.d.ts +3 -0
  95. package/dist/actions/list-vault-audit.d.ts.map +1 -0
  96. package/dist/actions/list-vault-audit.js +15 -0
  97. package/dist/actions/list-vault-audit.js.map +1 -0
  98. package/dist/actions/list-vault-grants.d.ts +3 -0
  99. package/dist/actions/list-vault-grants.d.ts.map +1 -0
  100. package/dist/actions/list-vault-grants.js +13 -0
  101. package/dist/actions/list-vault-grants.js.map +1 -0
  102. package/dist/actions/list-vault-requests.d.ts +3 -0
  103. package/dist/actions/list-vault-requests.d.ts.map +1 -0
  104. package/dist/actions/list-vault-requests.js +15 -0
  105. package/dist/actions/list-vault-requests.js.map +1 -0
  106. package/dist/actions/list-vault-secret-options.d.ts +3 -0
  107. package/dist/actions/list-vault-secret-options.d.ts.map +1 -0
  108. package/dist/actions/list-vault-secret-options.js +19 -0
  109. package/dist/actions/list-vault-secret-options.js.map +1 -0
  110. package/dist/actions/list-vault-secrets.d.ts +3 -0
  111. package/dist/actions/list-vault-secrets.d.ts.map +1 -0
  112. package/dist/actions/list-vault-secrets.js +25 -0
  113. package/dist/actions/list-vault-secrets.js.map +1 -0
  114. package/dist/actions/list-workspace-apps.d.ts +3 -0
  115. package/dist/actions/list-workspace-apps.d.ts.map +1 -0
  116. package/dist/actions/list-workspace-apps.js +24 -0
  117. package/dist/actions/list-workspace-apps.js.map +1 -0
  118. package/dist/actions/list-workspace-resource-grants.d.ts +3 -0
  119. package/dist/actions/list-workspace-resource-grants.d.ts.map +1 -0
  120. package/dist/actions/list-workspace-resource-grants.js +13 -0
  121. package/dist/actions/list-workspace-resource-grants.js.map +1 -0
  122. package/dist/actions/list-workspace-resources.d.ts +3 -0
  123. package/dist/actions/list-workspace-resources.d.ts.map +1 -0
  124. package/dist/actions/list-workspace-resources.js +15 -0
  125. package/dist/actions/list-workspace-resources.js.map +1 -0
  126. package/dist/actions/navigate.d.ts +16 -0
  127. package/dist/actions/navigate.d.ts.map +1 -0
  128. package/dist/actions/navigate.js +55 -0
  129. package/dist/actions/navigate.js.map +1 -0
  130. package/dist/actions/reject-dispatch-change.d.ts +3 -0
  131. package/dist/actions/reject-dispatch-change.d.ts.map +1 -0
  132. package/dist/actions/reject-dispatch-change.js +12 -0
  133. package/dist/actions/reject-dispatch-change.js.map +1 -0
  134. package/dist/actions/request-vault-secret.d.ts +3 -0
  135. package/dist/actions/request-vault-secret.d.ts.map +1 -0
  136. package/dist/actions/request-vault-secret.js +15 -0
  137. package/dist/actions/request-vault-secret.js.map +1 -0
  138. package/dist/actions/revoke-vault-grant.d.ts +3 -0
  139. package/dist/actions/revoke-vault-grant.d.ts.map +1 -0
  140. package/dist/actions/revoke-vault-grant.js +11 -0
  141. package/dist/actions/revoke-vault-grant.js.map +1 -0
  142. package/dist/actions/revoke-workspace-resource-grant.d.ts +3 -0
  143. package/dist/actions/revoke-workspace-resource-grant.d.ts.map +1 -0
  144. package/dist/actions/revoke-workspace-resource-grant.js +11 -0
  145. package/dist/actions/revoke-workspace-resource-grant.js.map +1 -0
  146. package/dist/actions/send-platform-message.d.ts +3 -0
  147. package/dist/actions/send-platform-message.d.ts.map +1 -0
  148. package/dist/actions/send-platform-message.js +73 -0
  149. package/dist/actions/send-platform-message.js.map +1 -0
  150. package/dist/actions/set-app-creation-settings.d.ts +3 -0
  151. package/dist/actions/set-app-creation-settings.d.ts.map +1 -0
  152. package/dist/actions/set-app-creation-settings.js +18 -0
  153. package/dist/actions/set-app-creation-settings.js.map +1 -0
  154. package/dist/actions/set-dispatch-approval-policy.d.ts +3 -0
  155. package/dist/actions/set-dispatch-approval-policy.d.ts.map +1 -0
  156. package/dist/actions/set-dispatch-approval-policy.js +19 -0
  157. package/dist/actions/set-dispatch-approval-policy.js.map +1 -0
  158. package/dist/actions/start-workspace-app-creation.d.ts +3 -0
  159. package/dist/actions/start-workspace-app-creation.d.ts.map +1 -0
  160. package/dist/actions/start-workspace-app-creation.js +31 -0
  161. package/dist/actions/start-workspace-app-creation.js.map +1 -0
  162. package/dist/actions/sync-vault-to-app.d.ts +3 -0
  163. package/dist/actions/sync-vault-to-app.d.ts.map +1 -0
  164. package/dist/actions/sync-vault-to-app.js +13 -0
  165. package/dist/actions/sync-vault-to-app.js.map +1 -0
  166. package/dist/actions/sync-workspace-resources-to-all.d.ts +3 -0
  167. package/dist/actions/sync-workspace-resources-to-all.d.ts.map +1 -0
  168. package/dist/actions/sync-workspace-resources-to-all.js +9 -0
  169. package/dist/actions/sync-workspace-resources-to-all.js.map +1 -0
  170. package/dist/actions/sync-workspace-resources-to-app.d.ts +3 -0
  171. package/dist/actions/sync-workspace-resources-to-app.d.ts.map +1 -0
  172. package/dist/actions/sync-workspace-resources-to-app.js +11 -0
  173. package/dist/actions/sync-workspace-resources-to-app.js.map +1 -0
  174. package/dist/actions/update-vault-secret.d.ts +3 -0
  175. package/dist/actions/update-vault-secret.d.ts.map +1 -0
  176. package/dist/actions/update-vault-secret.js +12 -0
  177. package/dist/actions/update-vault-secret.js.map +1 -0
  178. package/dist/actions/update-workspace-resource.d.ts +3 -0
  179. package/dist/actions/update-workspace-resource.d.ts.map +1 -0
  180. package/dist/actions/update-workspace-resource.js +18 -0
  181. package/dist/actions/update-workspace-resource.js.map +1 -0
  182. package/dist/actions/upsert-destination.d.ts +3 -0
  183. package/dist/actions/upsert-destination.d.ts.map +1 -0
  184. package/dist/actions/upsert-destination.js +26 -0
  185. package/dist/actions/upsert-destination.js.map +1 -0
  186. package/dist/actions/view-screen.d.ts +11 -0
  187. package/dist/actions/view-screen.d.ts.map +1 -0
  188. package/dist/actions/view-screen.js +68 -0
  189. package/dist/actions/view-screen.js.map +1 -0
  190. package/dist/components/agents-panel.d.ts +16 -0
  191. package/dist/components/agents-panel.d.ts.map +1 -0
  192. package/dist/components/agents-panel.js +64 -0
  193. package/dist/components/agents-panel.js.map +1 -0
  194. package/dist/components/app-keys-popover.d.ts +11 -0
  195. package/dist/components/app-keys-popover.d.ts.map +1 -0
  196. package/dist/components/app-keys-popover.js +84 -0
  197. package/dist/components/app-keys-popover.js.map +1 -0
  198. package/dist/components/create-app-popover.d.ts +24 -0
  199. package/dist/components/create-app-popover.d.ts.map +1 -0
  200. package/dist/components/create-app-popover.js +188 -0
  201. package/dist/components/create-app-popover.js.map +1 -0
  202. package/dist/components/dispatch-shell.d.ts +13 -0
  203. package/dist/components/dispatch-shell.d.ts.map +1 -0
  204. package/dist/components/dispatch-shell.js +15 -0
  205. package/dist/components/dispatch-shell.js.map +1 -0
  206. package/dist/components/index.d.ts +12 -0
  207. package/dist/components/index.d.ts.map +1 -0
  208. package/dist/components/index.js +12 -0
  209. package/dist/components/index.js.map +1 -0
  210. package/dist/components/layout/Header.d.ts +5 -0
  211. package/dist/components/layout/Header.d.ts.map +1 -0
  212. package/dist/components/layout/Header.js +34 -0
  213. package/dist/components/layout/Header.js.map +1 -0
  214. package/dist/components/layout/HeaderActions.d.ts +18 -0
  215. package/dist/components/layout/HeaderActions.d.ts.map +1 -0
  216. package/dist/components/layout/HeaderActions.js +52 -0
  217. package/dist/components/layout/HeaderActions.js.map +1 -0
  218. package/dist/components/layout/Layout.d.ts +8 -0
  219. package/dist/components/layout/Layout.d.ts.map +1 -0
  220. package/dist/components/layout/Layout.js +70 -0
  221. package/dist/components/layout/Layout.js.map +1 -0
  222. package/dist/components/messaging-setup-panel.d.ts +2 -0
  223. package/dist/components/messaging-setup-panel.d.ts.map +1 -0
  224. package/dist/components/messaging-setup-panel.js +300 -0
  225. package/dist/components/messaging-setup-panel.js.map +1 -0
  226. package/dist/components/ui/accordion.d.ts +8 -0
  227. package/dist/components/ui/accordion.d.ts.map +1 -0
  228. package/dist/components/ui/accordion.js +14 -0
  229. package/dist/components/ui/accordion.js.map +1 -0
  230. package/dist/components/ui/alert-dialog.d.ts +21 -0
  231. package/dist/components/ui/alert-dialog.d.ts.map +1 -0
  232. package/dist/components/ui/alert-dialog.js +27 -0
  233. package/dist/components/ui/alert-dialog.js.map +1 -0
  234. package/dist/components/ui/alert.d.ts +9 -0
  235. package/dist/components/ui/alert.d.ts.map +1 -0
  236. package/dist/components/ui/alert.js +23 -0
  237. package/dist/components/ui/alert.js.map +1 -0
  238. package/dist/components/ui/aspect-ratio.d.ts +4 -0
  239. package/dist/components/ui/aspect-ratio.d.ts.map +1 -0
  240. package/dist/components/ui/aspect-ratio.js +4 -0
  241. package/dist/components/ui/aspect-ratio.js.map +1 -0
  242. package/dist/components/ui/avatar.d.ts +7 -0
  243. package/dist/components/ui/avatar.d.ts.map +1 -0
  244. package/dist/components/ui/avatar.js +12 -0
  245. package/dist/components/ui/avatar.js.map +1 -0
  246. package/dist/components/ui/badge.d.ts +10 -0
  247. package/dist/components/ui/badge.d.ts.map +1 -0
  248. package/dist/components/ui/badge.js +21 -0
  249. package/dist/components/ui/badge.js.map +1 -0
  250. package/dist/components/ui/breadcrumb.d.ts +20 -0
  251. package/dist/components/ui/breadcrumb.d.ts.map +1 -0
  252. package/dist/components/ui/breadcrumb.js +24 -0
  253. package/dist/components/ui/breadcrumb.js.map +1 -0
  254. package/dist/components/ui/button.d.ts +12 -0
  255. package/dist/components/ui/button.d.ts.map +1 -0
  256. package/dist/components/ui/button.js +34 -0
  257. package/dist/components/ui/button.js.map +1 -0
  258. package/dist/components/ui/calendar.d.ts +9 -0
  259. package/dist/components/ui/calendar.d.ts.map +1 -0
  260. package/dist/components/ui/calendar.js +41 -0
  261. package/dist/components/ui/calendar.js.map +1 -0
  262. package/dist/components/ui/card.d.ts +9 -0
  263. package/dist/components/ui/card.d.ts.map +1 -0
  264. package/dist/components/ui/card.js +17 -0
  265. package/dist/components/ui/card.js.map +1 -0
  266. package/dist/components/ui/carousel.d.ts +19 -0
  267. package/dist/components/ui/carousel.d.ts.map +1 -0
  268. package/dist/components/ui/carousel.js +99 -0
  269. package/dist/components/ui/carousel.js.map +1 -0
  270. package/dist/components/ui/chart.d.ts +80 -0
  271. package/dist/components/ui/chart.d.ts.map +1 -0
  272. package/dist/components/ui/chart.js +131 -0
  273. package/dist/components/ui/chart.js.map +1 -0
  274. package/dist/components/ui/checkbox.d.ts +5 -0
  275. package/dist/components/ui/checkbox.d.ts.map +1 -0
  276. package/dist/components/ui/checkbox.js +9 -0
  277. package/dist/components/ui/checkbox.js.map +1 -0
  278. package/dist/components/ui/collapsible.d.ts +6 -0
  279. package/dist/components/ui/collapsible.d.ts.map +1 -0
  280. package/dist/components/ui/collapsible.js +6 -0
  281. package/dist/components/ui/collapsible.js.map +1 -0
  282. package/dist/components/ui/command.d.ts +83 -0
  283. package/dist/components/ui/command.d.ts.map +1 -0
  284. package/dist/components/ui/command.js +29 -0
  285. package/dist/components/ui/command.js.map +1 -0
  286. package/dist/components/ui/context-menu.d.ts +28 -0
  287. package/dist/components/ui/context-menu.d.ts.map +1 -0
  288. package/dist/components/ui/context-menu.js +34 -0
  289. package/dist/components/ui/context-menu.js.map +1 -0
  290. package/dist/components/ui/dialog.d.ts +20 -0
  291. package/dist/components/ui/dialog.d.ts.map +1 -0
  292. package/dist/components/ui/dialog.js +23 -0
  293. package/dist/components/ui/dialog.js.map +1 -0
  294. package/dist/components/ui/drawer.d.ts +23 -0
  295. package/dist/components/ui/drawer.d.ts.map +1 -0
  296. package/dist/components/ui/drawer.js +23 -0
  297. package/dist/components/ui/drawer.js.map +1 -0
  298. package/dist/components/ui/dropdown-menu.d.ts +28 -0
  299. package/dist/components/ui/dropdown-menu.d.ts.map +1 -0
  300. package/dist/components/ui/dropdown-menu.js +36 -0
  301. package/dist/components/ui/dropdown-menu.js.map +1 -0
  302. package/dist/components/ui/form.d.ts +24 -0
  303. package/dist/components/ui/form.d.ts.map +1 -0
  304. package/dist/components/ui/form.js +63 -0
  305. package/dist/components/ui/form.js.map +1 -0
  306. package/dist/components/ui/hover-card.d.ts +7 -0
  307. package/dist/components/ui/hover-card.d.ts.map +1 -0
  308. package/dist/components/ui/hover-card.js +10 -0
  309. package/dist/components/ui/hover-card.js.map +1 -0
  310. package/dist/components/ui/input-otp.d.ts +35 -0
  311. package/dist/components/ui/input-otp.d.ts.map +1 -0
  312. package/dist/components/ui/input-otp.js +19 -0
  313. package/dist/components/ui/input-otp.js.map +1 -0
  314. package/dist/components/ui/input.d.ts +4 -0
  315. package/dist/components/ui/input.d.ts.map +1 -0
  316. package/dist/components/ui/input.js +9 -0
  317. package/dist/components/ui/input.js.map +1 -0
  318. package/dist/components/ui/label.d.ts +6 -0
  319. package/dist/components/ui/label.d.ts.map +1 -0
  320. package/dist/components/ui/label.js +10 -0
  321. package/dist/components/ui/label.js.map +1 -0
  322. package/dist/components/ui/menubar.d.ts +29 -0
  323. package/dist/components/ui/menubar.d.ts.map +1 -0
  324. package/dist/components/ui/menubar.js +41 -0
  325. package/dist/components/ui/menubar.js.map +1 -0
  326. package/dist/components/ui/navigation-menu.d.ts +13 -0
  327. package/dist/components/ui/navigation-menu.d.ts.map +1 -0
  328. package/dist/components/ui/navigation-menu.js +25 -0
  329. package/dist/components/ui/navigation-menu.js.map +1 -0
  330. package/dist/components/ui/pagination.d.ts +29 -0
  331. package/dist/components/ui/pagination.d.ts.map +1 -0
  332. package/dist/components/ui/pagination.js +24 -0
  333. package/dist/components/ui/pagination.js.map +1 -0
  334. package/dist/components/ui/popover.d.ts +7 -0
  335. package/dist/components/ui/popover.d.ts.map +1 -0
  336. package/dist/components/ui/popover.js +10 -0
  337. package/dist/components/ui/popover.js.map +1 -0
  338. package/dist/components/ui/progress.d.ts +5 -0
  339. package/dist/components/ui/progress.d.ts.map +1 -0
  340. package/dist/components/ui/progress.js +8 -0
  341. package/dist/components/ui/progress.js.map +1 -0
  342. package/dist/components/ui/radio-group.d.ts +6 -0
  343. package/dist/components/ui/radio-group.d.ts.map +1 -0
  344. package/dist/components/ui/radio-group.js +15 -0
  345. package/dist/components/ui/radio-group.js.map +1 -0
  346. package/dist/components/ui/resizable.d.ts +8 -0
  347. package/dist/components/ui/resizable.d.ts.map +1 -0
  348. package/dist/components/ui/resizable.js +9 -0
  349. package/dist/components/ui/resizable.js.map +1 -0
  350. package/dist/components/ui/scroll-area.d.ts +6 -0
  351. package/dist/components/ui/scroll-area.d.ts.map +1 -0
  352. package/dist/components/ui/scroll-area.js +12 -0
  353. package/dist/components/ui/scroll-area.js.map +1 -0
  354. package/dist/components/ui/select.d.ts +14 -0
  355. package/dist/components/ui/select.d.ts.map +1 -0
  356. package/dist/components/ui/select.js +27 -0
  357. package/dist/components/ui/select.js.map +1 -0
  358. package/dist/components/ui/separator.d.ts +5 -0
  359. package/dist/components/ui/separator.d.ts.map +1 -0
  360. package/dist/components/ui/separator.js +8 -0
  361. package/dist/components/ui/separator.js.map +1 -0
  362. package/dist/components/ui/sheet.d.ts +26 -0
  363. package/dist/components/ui/sheet.d.ts.map +1 -0
  364. package/dist/components/ui/sheet.js +37 -0
  365. package/dist/components/ui/sheet.js.map +1 -0
  366. package/dist/components/ui/sidebar.d.ts +67 -0
  367. package/dist/components/ui/sidebar.d.ts.map +1 -0
  368. package/dist/components/ui/sidebar.js +233 -0
  369. package/dist/components/ui/sidebar.js.map +1 -0
  370. package/dist/components/ui/skeleton.d.ts +3 -0
  371. package/dist/components/ui/skeleton.d.ts.map +1 -0
  372. package/dist/components/ui/skeleton.js +7 -0
  373. package/dist/components/ui/skeleton.js.map +1 -0
  374. package/dist/components/ui/slider.d.ts +5 -0
  375. package/dist/components/ui/slider.d.ts.map +1 -0
  376. package/dist/components/ui/slider.js +8 -0
  377. package/dist/components/ui/slider.js.map +1 -0
  378. package/dist/components/ui/sonner.d.ts +5 -0
  379. package/dist/components/ui/sonner.d.ts.map +1 -0
  380. package/dist/components/ui/sonner.js +25 -0
  381. package/dist/components/ui/sonner.js.map +1 -0
  382. package/dist/components/ui/spinner.d.ts +3 -0
  383. package/dist/components/ui/spinner.d.ts.map +1 -0
  384. package/dist/components/ui/spinner.js +7 -0
  385. package/dist/components/ui/spinner.js.map +1 -0
  386. package/dist/components/ui/switch.d.ts +5 -0
  387. package/dist/components/ui/switch.d.ts.map +1 -0
  388. package/dist/components/ui/switch.js +8 -0
  389. package/dist/components/ui/switch.js.map +1 -0
  390. package/dist/components/ui/table.d.ts +11 -0
  391. package/dist/components/ui/table.d.ts.map +1 -0
  392. package/dist/components/ui/table.js +21 -0
  393. package/dist/components/ui/table.js.map +1 -0
  394. package/dist/components/ui/tabs.d.ts +8 -0
  395. package/dist/components/ui/tabs.d.ts.map +1 -0
  396. package/dist/components/ui/tabs.js +13 -0
  397. package/dist/components/ui/tabs.js.map +1 -0
  398. package/dist/components/ui/textarea.d.ts +6 -0
  399. package/dist/components/ui/textarea.d.ts.map +1 -0
  400. package/dist/components/ui/textarea.js +9 -0
  401. package/dist/components/ui/textarea.js.map +1 -0
  402. package/dist/components/ui/toast.d.ts +16 -0
  403. package/dist/components/ui/toast.d.ts.map +1 -0
  404. package/dist/components/ui/toast.js +34 -0
  405. package/dist/components/ui/toast.js.map +1 -0
  406. package/dist/components/ui/toaster.d.ts +2 -0
  407. package/dist/components/ui/toaster.d.ts.map +1 -0
  408. package/dist/components/ui/toaster.js +10 -0
  409. package/dist/components/ui/toaster.js.map +1 -0
  410. package/dist/components/ui/toggle-group.d.ts +13 -0
  411. package/dist/components/ui/toggle-group.d.ts.map +1 -0
  412. package/dist/components/ui/toggle-group.js +21 -0
  413. package/dist/components/ui/toggle-group.js.map +1 -0
  414. package/dist/components/ui/toggle.d.ts +13 -0
  415. package/dist/components/ui/toggle.d.ts.map +1 -0
  416. package/dist/components/ui/toggle.js +26 -0
  417. package/dist/components/ui/toggle.js.map +1 -0
  418. package/dist/components/ui/tooltip.d.ts +8 -0
  419. package/dist/components/ui/tooltip.d.ts.map +1 -0
  420. package/dist/components/ui/tooltip.js +11 -0
  421. package/dist/components/ui/tooltip.js.map +1 -0
  422. package/dist/components/ui/use-toast.d.ts +3 -0
  423. package/dist/components/ui/use-toast.d.ts.map +1 -0
  424. package/dist/components/ui/use-toast.js +3 -0
  425. package/dist/components/ui/use-toast.js.map +1 -0
  426. package/dist/config.d.ts +33 -0
  427. package/dist/config.d.ts.map +1 -0
  428. package/dist/config.js +7 -0
  429. package/dist/config.js.map +1 -0
  430. package/dist/db/index.d.ts +7 -0
  431. package/dist/db/index.d.ts.map +1 -0
  432. package/dist/db/index.js +10 -0
  433. package/dist/db/index.js.map +1 -0
  434. package/dist/db/migrations.d.ts +5 -0
  435. package/dist/db/migrations.d.ts.map +1 -0
  436. package/dist/db/migrations.js +166 -0
  437. package/dist/db/migrations.js.map +1 -0
  438. package/dist/db/schema.d.ts +2344 -0
  439. package/dist/db/schema.d.ts.map +1 -0
  440. package/dist/db/schema.js +148 -0
  441. package/dist/db/schema.js.map +1 -0
  442. package/dist/hooks/use-mobile.d.ts +2 -0
  443. package/dist/hooks/use-mobile.d.ts.map +1 -0
  444. package/dist/hooks/use-mobile.js +16 -0
  445. package/dist/hooks/use-mobile.js.map +1 -0
  446. package/dist/hooks/use-navigation-state.d.ts +6 -0
  447. package/dist/hooks/use-navigation-state.d.ts.map +1 -0
  448. package/dist/hooks/use-navigation-state.js +129 -0
  449. package/dist/hooks/use-navigation-state.js.map +1 -0
  450. package/dist/hooks/use-toast.d.ts +45 -0
  451. package/dist/hooks/use-toast.d.ts.map +1 -0
  452. package/dist/hooks/use-toast.js +127 -0
  453. package/dist/hooks/use-toast.js.map +1 -0
  454. package/dist/index.d.ts +15 -0
  455. package/dist/index.d.ts.map +1 -0
  456. package/dist/index.js +15 -0
  457. package/dist/index.js.map +1 -0
  458. package/dist/lib/utils.d.ts +2 -0
  459. package/dist/lib/utils.d.ts.map +1 -0
  460. package/dist/lib/utils.js +2 -0
  461. package/dist/lib/utils.js.map +1 -0
  462. package/dist/routes/index.d.ts +32 -0
  463. package/dist/routes/index.d.ts.map +1 -0
  464. package/dist/routes/index.js +51 -0
  465. package/dist/routes/index.js.map +1 -0
  466. package/dist/routes/pages/_index.d.ts +15 -0
  467. package/dist/routes/pages/_index.d.ts.map +1 -0
  468. package/dist/routes/pages/_index.js +42 -0
  469. package/dist/routes/pages/_index.js.map +1 -0
  470. package/dist/routes/pages/agents.d.ts +5 -0
  471. package/dist/routes/pages/agents.d.ts.map +1 -0
  472. package/dist/routes/pages/agents.js +12 -0
  473. package/dist/routes/pages/agents.js.map +1 -0
  474. package/dist/routes/pages/approval.d.ts +5 -0
  475. package/dist/routes/pages/approval.d.ts.map +1 -0
  476. package/dist/routes/pages/approval.js +47 -0
  477. package/dist/routes/pages/approval.js.map +1 -0
  478. package/dist/routes/pages/approvals.d.ts +5 -0
  479. package/dist/routes/pages/approvals.d.ts.map +1 -0
  480. package/dist/routes/pages/approvals.js +48 -0
  481. package/dist/routes/pages/approvals.js.map +1 -0
  482. package/dist/routes/pages/apps.$appId.d.ts +5 -0
  483. package/dist/routes/pages/apps.$appId.d.ts.map +1 -0
  484. package/dist/routes/pages/apps.$appId.js +31 -0
  485. package/dist/routes/pages/apps.$appId.js.map +1 -0
  486. package/dist/routes/pages/apps.d.ts +5 -0
  487. package/dist/routes/pages/apps.d.ts.map +1 -0
  488. package/dist/routes/pages/apps.js +42 -0
  489. package/dist/routes/pages/apps.js.map +1 -0
  490. package/dist/routes/pages/audit.d.ts +5 -0
  491. package/dist/routes/pages/audit.d.ts.map +1 -0
  492. package/dist/routes/pages/audit.js +11 -0
  493. package/dist/routes/pages/audit.js.map +1 -0
  494. package/dist/routes/pages/destinations.d.ts +5 -0
  495. package/dist/routes/pages/destinations.d.ts.map +1 -0
  496. package/dist/routes/pages/destinations.js +80 -0
  497. package/dist/routes/pages/destinations.js.map +1 -0
  498. package/dist/routes/pages/identities.d.ts +5 -0
  499. package/dist/routes/pages/identities.d.ts.map +1 -0
  500. package/dist/routes/pages/identities.js +18 -0
  501. package/dist/routes/pages/identities.js.map +1 -0
  502. package/dist/routes/pages/integrations.d.ts +5 -0
  503. package/dist/routes/pages/integrations.d.ts.map +1 -0
  504. package/dist/routes/pages/integrations.js +46 -0
  505. package/dist/routes/pages/integrations.js.map +1 -0
  506. package/dist/routes/pages/messaging.d.ts +5 -0
  507. package/dist/routes/pages/messaging.d.ts.map +1 -0
  508. package/dist/routes/pages/messaging.js +10 -0
  509. package/dist/routes/pages/messaging.js.map +1 -0
  510. package/dist/routes/pages/new-app.d.ts +5 -0
  511. package/dist/routes/pages/new-app.d.ts.map +1 -0
  512. package/dist/routes/pages/new-app.js +10 -0
  513. package/dist/routes/pages/new-app.js.map +1 -0
  514. package/dist/routes/pages/overview.d.ts +5 -0
  515. package/dist/routes/pages/overview.d.ts.map +1 -0
  516. package/dist/routes/pages/overview.js +225 -0
  517. package/dist/routes/pages/overview.js.map +1 -0
  518. package/dist/routes/pages/team.d.ts +5 -0
  519. package/dist/routes/pages/team.d.ts.map +1 -0
  520. package/dist/routes/pages/team.js +10 -0
  521. package/dist/routes/pages/team.js.map +1 -0
  522. package/dist/routes/pages/tools.$id.d.ts +2 -0
  523. package/dist/routes/pages/tools.$id.d.ts.map +1 -0
  524. package/dist/routes/pages/tools.$id.js +6 -0
  525. package/dist/routes/pages/tools.$id.js.map +1 -0
  526. package/dist/routes/pages/tools._index.d.ts +2 -0
  527. package/dist/routes/pages/tools._index.d.ts.map +1 -0
  528. package/dist/routes/pages/tools._index.js +6 -0
  529. package/dist/routes/pages/tools._index.js.map +1 -0
  530. package/dist/routes/pages/vault.d.ts +5 -0
  531. package/dist/routes/pages/vault.d.ts.map +1 -0
  532. package/dist/routes/pages/vault.js +131 -0
  533. package/dist/routes/pages/vault.js.map +1 -0
  534. package/dist/routes/pages/workspace.d.ts +5 -0
  535. package/dist/routes/pages/workspace.d.ts.map +1 -0
  536. package/dist/routes/pages/workspace.js +149 -0
  537. package/dist/routes/pages/workspace.js.map +1 -0
  538. package/dist/server/index.d.ts +44 -0
  539. package/dist/server/index.d.ts.map +1 -0
  540. package/dist/server/index.js +68 -0
  541. package/dist/server/index.js.map +1 -0
  542. package/dist/server/lib/app-creation-store.d.ts +102 -0
  543. package/dist/server/lib/app-creation-store.d.ts.map +1 -0
  544. package/dist/server/lib/app-creation-store.js +780 -0
  545. package/dist/server/lib/app-creation-store.js.map +1 -0
  546. package/dist/server/lib/dispatch-integrations.d.ts +10 -0
  547. package/dist/server/lib/dispatch-integrations.d.ts.map +1 -0
  548. package/dist/server/lib/dispatch-integrations.js +105 -0
  549. package/dist/server/lib/dispatch-integrations.js.map +1 -0
  550. package/dist/server/lib/dispatch-store.d.ts +313 -0
  551. package/dist/server/lib/dispatch-store.d.ts.map +1 -0
  552. package/dist/server/lib/dispatch-store.js +669 -0
  553. package/dist/server/lib/dispatch-store.js.map +1 -0
  554. package/dist/server/lib/env-config.d.ts +3 -0
  555. package/dist/server/lib/env-config.d.ts.map +1 -0
  556. package/dist/server/lib/env-config.js +43 -0
  557. package/dist/server/lib/env-config.js.map +1 -0
  558. package/dist/server/lib/pre-auth-routing.d.ts +2 -0
  559. package/dist/server/lib/pre-auth-routing.d.ts.map +1 -0
  560. package/dist/server/lib/pre-auth-routing.js +128 -0
  561. package/dist/server/lib/pre-auth-routing.js.map +1 -0
  562. package/dist/server/lib/vault-store.d.ts +270 -0
  563. package/dist/server/lib/vault-store.d.ts.map +1 -0
  564. package/dist/server/lib/vault-store.js +554 -0
  565. package/dist/server/lib/vault-store.js.map +1 -0
  566. package/dist/server/lib/workspace-resources-store.d.ts +165 -0
  567. package/dist/server/lib/workspace-resources-store.d.ts.map +1 -0
  568. package/dist/server/lib/workspace-resources-store.js +310 -0
  569. package/dist/server/lib/workspace-resources-store.js.map +1 -0
  570. package/dist/server/plugins/agent-chat.d.ts +3 -0
  571. package/dist/server/plugins/agent-chat.d.ts.map +1 -0
  572. package/dist/server/plugins/agent-chat.js +36 -0
  573. package/dist/server/plugins/agent-chat.js.map +1 -0
  574. package/dist/server/plugins/auth.d.ts +9 -0
  575. package/dist/server/plugins/auth.d.ts.map +1 -0
  576. package/dist/server/plugins/auth.js +30 -0
  577. package/dist/server/plugins/auth.js.map +1 -0
  578. package/dist/server/plugins/core-routes.d.ts +3 -0
  579. package/dist/server/plugins/core-routes.d.ts.map +1 -0
  580. package/dist/server/plugins/core-routes.js +6 -0
  581. package/dist/server/plugins/core-routes.js.map +1 -0
  582. package/dist/server/plugins/db.d.ts +3 -0
  583. package/dist/server/plugins/db.d.ts.map +1 -0
  584. package/dist/server/plugins/db.js +6 -0
  585. package/dist/server/plugins/db.js.map +1 -0
  586. package/dist/server/plugins/integrations.d.ts +8 -0
  587. package/dist/server/plugins/integrations.d.ts.map +1 -0
  588. package/dist/server/plugins/integrations.js +51 -0
  589. package/dist/server/plugins/integrations.js.map +1 -0
  590. package/package.json +103 -0
  591. package/src/actions/approve-dispatch-change.ts +11 -0
  592. package/src/actions/approve-vault-request.ts +23 -0
  593. package/src/actions/create-link-token.ts +12 -0
  594. package/src/actions/create-vault-grant.ts +15 -0
  595. package/src/actions/create-vault-secret.ts +21 -0
  596. package/src/actions/create-workspace-resource-grant.ts +15 -0
  597. package/src/actions/create-workspace-resource.ts +29 -0
  598. package/src/actions/delete-destination.ts +11 -0
  599. package/src/actions/delete-vault-secret.ts +12 -0
  600. package/src/actions/delete-workspace-resource.ts +12 -0
  601. package/src/actions/deny-vault-request.ts +12 -0
  602. package/src/actions/get-app-creation-settings.ts +11 -0
  603. package/src/actions/get-dispatch-settings.ts +10 -0
  604. package/src/actions/get-workspace-info.ts +11 -0
  605. package/src/actions/grant-vault-secrets-to-app.ts +20 -0
  606. package/src/actions/index.ts +102 -0
  607. package/src/actions/list-connected-agents.ts +103 -0
  608. package/src/actions/list-destinations.ts +10 -0
  609. package/src/actions/list-dispatch-approvals.ts +10 -0
  610. package/src/actions/list-dispatch-audit.ts +12 -0
  611. package/src/actions/list-dispatch-overview.ts +18 -0
  612. package/src/actions/list-integrations-catalog.ts +11 -0
  613. package/src/actions/list-linked-identities.ts +10 -0
  614. package/src/actions/list-vault-audit.ts +16 -0
  615. package/src/actions/list-vault-grants.ts +14 -0
  616. package/src/actions/list-vault-requests.ts +16 -0
  617. package/src/actions/list-vault-secret-options.ts +20 -0
  618. package/src/actions/list-vault-secrets.ts +26 -0
  619. package/src/actions/list-workspace-apps.ts +25 -0
  620. package/src/actions/list-workspace-resource-grants.ts +14 -0
  621. package/src/actions/list-workspace-resources.ts +16 -0
  622. package/src/actions/navigate.ts +55 -0
  623. package/src/actions/reject-dispatch-change.ts +12 -0
  624. package/src/actions/request-vault-secret.ts +16 -0
  625. package/src/actions/revoke-vault-grant.ts +11 -0
  626. package/src/actions/revoke-workspace-resource-grant.ts +15 -0
  627. package/src/actions/send-platform-message.ts +96 -0
  628. package/src/actions/set-app-creation-settings.ts +19 -0
  629. package/src/actions/set-dispatch-approval-policy.ts +24 -0
  630. package/src/actions/start-workspace-app-creation.ts +33 -0
  631. package/src/actions/sync-vault-to-app.ts +14 -0
  632. package/src/actions/sync-workspace-resources-to-all.ts +10 -0
  633. package/src/actions/sync-workspace-resources-to-app.ts +12 -0
  634. package/src/actions/update-vault-secret.ts +12 -0
  635. package/src/actions/update-workspace-resource.ts +19 -0
  636. package/src/actions/upsert-destination.ts +29 -0
  637. package/src/actions/view-screen.ts +78 -0
  638. package/src/components/agents-panel.tsx +262 -0
  639. package/src/components/app-keys-popover.tsx +231 -0
  640. package/src/components/create-app-popover.tsx +423 -0
  641. package/src/components/dispatch-shell.tsx +53 -0
  642. package/src/components/index.ts +11 -0
  643. package/src/components/layout/Header.tsx +69 -0
  644. package/src/components/layout/HeaderActions.tsx +84 -0
  645. package/src/components/layout/Layout.tsx +243 -0
  646. package/src/components/messaging-setup-panel.tsx +666 -0
  647. package/src/components/ui/accordion.tsx +56 -0
  648. package/src/components/ui/alert-dialog.tsx +139 -0
  649. package/src/components/ui/alert.tsx +59 -0
  650. package/src/components/ui/aspect-ratio.tsx +5 -0
  651. package/src/components/ui/avatar.tsx +48 -0
  652. package/src/components/ui/badge.tsx +37 -0
  653. package/src/components/ui/breadcrumb.tsx +115 -0
  654. package/src/components/ui/button.tsx +57 -0
  655. package/src/components/ui/calendar.tsx +68 -0
  656. package/src/components/ui/card.tsx +86 -0
  657. package/src/components/ui/carousel.tsx +260 -0
  658. package/src/components/ui/chart.tsx +375 -0
  659. package/src/components/ui/checkbox.tsx +28 -0
  660. package/src/components/ui/collapsible.tsx +9 -0
  661. package/src/components/ui/command.tsx +154 -0
  662. package/src/components/ui/context-menu.tsx +198 -0
  663. package/src/components/ui/dialog.tsx +120 -0
  664. package/src/components/ui/drawer.tsx +116 -0
  665. package/src/components/ui/dropdown-menu.tsx +198 -0
  666. package/src/components/ui/form.tsx +177 -0
  667. package/src/components/ui/hover-card.tsx +27 -0
  668. package/src/components/ui/input-otp.tsx +69 -0
  669. package/src/components/ui/input.tsx +22 -0
  670. package/src/components/ui/label.tsx +24 -0
  671. package/src/components/ui/menubar.tsx +235 -0
  672. package/src/components/ui/navigation-menu.tsx +128 -0
  673. package/src/components/ui/pagination.tsx +121 -0
  674. package/src/components/ui/popover.tsx +29 -0
  675. package/src/components/ui/progress.tsx +26 -0
  676. package/src/components/ui/radio-group.tsx +42 -0
  677. package/src/components/ui/resizable.tsx +43 -0
  678. package/src/components/ui/scroll-area.tsx +46 -0
  679. package/src/components/ui/select.tsx +158 -0
  680. package/src/components/ui/separator.tsx +29 -0
  681. package/src/components/ui/sheet.tsx +139 -0
  682. package/src/components/ui/sidebar.tsx +778 -0
  683. package/src/components/ui/skeleton.tsx +15 -0
  684. package/src/components/ui/slider.tsx +26 -0
  685. package/src/components/ui/sonner.tsx +58 -0
  686. package/src/components/ui/spinner.tsx +17 -0
  687. package/src/components/ui/switch.tsx +27 -0
  688. package/src/components/ui/table.tsx +117 -0
  689. package/src/components/ui/tabs.tsx +53 -0
  690. package/src/components/ui/textarea.tsx +23 -0
  691. package/src/components/ui/toast.tsx +127 -0
  692. package/src/components/ui/toaster.tsx +33 -0
  693. package/src/components/ui/toggle-group.tsx +59 -0
  694. package/src/components/ui/toggle.tsx +43 -0
  695. package/src/components/ui/tooltip.tsx +28 -0
  696. package/src/components/ui/use-toast.ts +3 -0
  697. package/src/config.ts +35 -0
  698. package/src/db/index.ts +12 -0
  699. package/src/db/migrations.ts +165 -0
  700. package/src/db/schema.ts +160 -0
  701. package/src/hooks/use-mobile.tsx +21 -0
  702. package/src/hooks/use-navigation-state.ts +132 -0
  703. package/src/hooks/use-toast.ts +188 -0
  704. package/src/index.ts +19 -0
  705. package/src/lib/utils.ts +1 -0
  706. package/src/routes/index.ts +51 -0
  707. package/src/routes/pages/_index.tsx +51 -0
  708. package/src/routes/pages/agents.tsx +23 -0
  709. package/src/routes/pages/approval.tsx +243 -0
  710. package/src/routes/pages/approvals.tsx +157 -0
  711. package/src/routes/pages/apps.$appId.tsx +134 -0
  712. package/src/routes/pages/apps.tsx +163 -0
  713. package/src/routes/pages/audit.tsx +41 -0
  714. package/src/routes/pages/destinations.tsx +253 -0
  715. package/src/routes/pages/identities.tsx +91 -0
  716. package/src/routes/pages/integrations.tsx +278 -0
  717. package/src/routes/pages/messaging.tsx +17 -0
  718. package/src/routes/pages/new-app.tsx +17 -0
  719. package/src/routes/pages/overview.tsx +792 -0
  720. package/src/routes/pages/team.tsx +23 -0
  721. package/src/routes/pages/tools.$id.tsx +5 -0
  722. package/src/routes/pages/tools._index.tsx +5 -0
  723. package/src/routes/pages/vault.tsx +617 -0
  724. package/src/routes/pages/workspace.tsx +598 -0
  725. package/src/server/index.ts +78 -0
  726. package/src/server/lib/app-creation-store.ts +996 -0
  727. package/src/server/lib/dispatch-integrations.ts +125 -0
  728. package/src/server/lib/dispatch-store.ts +889 -0
  729. package/src/server/lib/env-config.ts +44 -0
  730. package/src/server/lib/pre-auth-routing.ts +150 -0
  731. package/src/server/lib/vault-store.ts +811 -0
  732. package/src/server/lib/workspace-resources-store.ts +445 -0
  733. package/src/server/plugins/agent-chat.ts +36 -0
  734. package/src/server/plugins/auth.ts +34 -0
  735. package/src/server/plugins/core-routes.ts +6 -0
  736. package/src/server/plugins/db.ts +6 -0
  737. package/src/server/plugins/integrations.ts +59 -0
@@ -0,0 +1,6 @@
1
+ import { createCoreRoutesPlugin } from "@agent-native/core/server";
2
+ import { envKeys } from "../lib/env-config.js";
3
+ export default createCoreRoutesPlugin({
4
+ envKeys,
5
+ });
6
+ //# sourceMappingURL=core-routes.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"core-routes.js","sourceRoot":"","sources":["../../../src/server/plugins/core-routes.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,sBAAsB,EAAE,MAAM,2BAA2B,CAAC;AACnE,OAAO,EAAE,OAAO,EAAE,MAAM,sBAAsB,CAAC;AAE/C,eAAe,sBAAsB,CAAC;IACpC,OAAO;CACR,CAAC,CAAC","sourcesContent":["import { createCoreRoutesPlugin } from \"@agent-native/core/server\";\nimport { envKeys } from \"../lib/env-config.js\";\n\nexport default createCoreRoutesPlugin({\n envKeys,\n});\n"]}
@@ -0,0 +1,3 @@
1
+ declare const _default: (nitroApp: any) => void | Promise<void>;
2
+ export default _default;
3
+ //# sourceMappingURL=db.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"db.d.ts","sourceRoot":"","sources":["../../../src/server/plugins/db.ts"],"names":[],"mappings":";AAGA,wBAEG"}
@@ -0,0 +1,6 @@
1
+ import { runMigrations } from "@agent-native/core/db";
2
+ import { dispatchMigrations } from "../../db/migrations.js";
3
+ export default runMigrations(dispatchMigrations, {
4
+ table: "dispatch_migrations",
5
+ });
6
+ //# sourceMappingURL=db.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"db.js","sourceRoot":"","sources":["../../../src/server/plugins/db.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,uBAAuB,CAAC;AACtD,OAAO,EAAE,kBAAkB,EAAE,MAAM,wBAAwB,CAAC;AAE5D,eAAe,aAAa,CAAC,kBAAkB,EAAE;IAC/C,KAAK,EAAE,qBAAqB;CAC7B,CAAC,CAAC","sourcesContent":["import { runMigrations } from \"@agent-native/core/db\";\nimport { dispatchMigrations } from \"../../db/migrations.js\";\n\nexport default runMigrations(dispatchMigrations, {\n table: \"dispatch_migrations\",\n});\n"]}
@@ -0,0 +1,8 @@
1
+ /**
2
+ * Defer plugin construction until the Nitro plugin actually fires so the
3
+ * config-aware system prompt resolves AFTER `setupDispatch(config)` has
4
+ * stamped the active config (plugin module load order is not guaranteed).
5
+ */
6
+ declare const dispatchIntegrationsPlugin: (nitroApp: any) => Promise<void>;
7
+ export default dispatchIntegrationsPlugin;
8
+ //# sourceMappingURL=integrations.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"integrations.d.ts","sourceRoot":"","sources":["../../../src/server/plugins/integrations.ts"],"names":[],"mappings":"AA4BA;;;;GAIG;AACH,QAAA,MAAM,0BAA0B,GAAU,UAAU,GAAG,kBAuBtD,CAAC;AAEF,eAAe,0BAA0B,CAAC"}
@@ -0,0 +1,51 @@
1
+ import { createIntegrationsPlugin } from "@agent-native/core/server";
2
+ import { beforeDispatchProcess, resolveDispatchOwner, } from "../lib/dispatch-integrations.js";
3
+ import { getDispatchConfig } from "../index.js";
4
+ import { dispatchActions } from "../../actions/index.js";
5
+ const DISPATCH_INTEGRATION_SYSTEM_PROMPT = `You are the central dispatch for this workspace, responding via a messaging platform integration (Slack, Telegram, email, etc.).
6
+
7
+ Default posture:
8
+ - Treat Slack, Telegram, and email as shared entrypoints into the workspace.
9
+ - Heavily delegate domain work to specialized agents through A2A (call-agent) when another app owns the job. Apps you can delegate to include slides (decks/presentations), analytics (data/dashboards), content (docs/articles), videos (Remotion compositions), forms (form builder), clips (screen recordings), and design (visual designs).
10
+ - Use list-connected-agents to see what agents are available before assuming a request must be handled locally.
11
+ - When asked whether workspace apps expose agent cards or A2A endpoints, call list-workspace-apps with includeAgentCards=true. Without that probe, missing agent-card fields mean unchecked, not unavailable.
12
+ - Keep durable memory and operating instructions in resources rather than ephemeral chat.
13
+ - Reply in the originating thread unless the user explicitly asks you to send to a saved destination.
14
+
15
+ When a user asks for something:
16
+ - If it belongs to analytics, content, slides, videos, etc., delegate via call-agent — do not re-implement the domain logic in dispatch.
17
+ - After call-agent returns an answer, RELAY IT DIRECTLY to the user with at most a one-line preface — do not rephrase, summarize, or add commentary. The downstream agent already crafted the answer; your job is delivery, not editing. This minimizes round-trips and keeps the user-visible reply fast.
18
+ - Exception: if the downstream agent reports a missing model/provider credential, do not name exact env vars, Vault keys, tokens, or secrets. Say the target app needs an LLM connection and recommend connecting Builder/managed LLM for that app; keep bring-your-own provider keys as a secondary option only if the user asks.
19
+ - If the user asks to create, build, make, scaffold, or generate a new workspace app or agent, call start-workspace-app-creation with their prompt. In this codebase, "agent" and "app" are synonyms — every agent-native app is an agent, so "build me an agent" and "build me an app" mean the same thing. Route both to start-workspace-app-creation. If the request is too vague to produce an app, ask one concise follow-up. If the action returns mode "builder", reply with the Builder branch URL. If it returns mode "local-agent", tell the user it is ready for the local code agent and include the returned app path/prompt summary. If it returns mode "coming-soon" or "builder-unavailable", explain the missing Builder setup and ask them to connect/configure Builder.
20
+ - For digests, reminders, or saved behavior, prefer recurring jobs, resources, or destinations over chat replies.
21
+ - Keep responses concise and operational — messaging platforms have character limits.
22
+ - Use markdown sparingly (bold and lists are fine, avoid complex formatting).
23
+ - If a task requires many steps, summarize what you did rather than streaming every detail.`;
24
+ /**
25
+ * Defer plugin construction until the Nitro plugin actually fires so the
26
+ * config-aware system prompt resolves AFTER `setupDispatch(config)` has
27
+ * stamped the active config (plugin module load order is not guaranteed).
28
+ */
29
+ const dispatchIntegrationsPlugin = async (nitroApp) => {
30
+ const { integrations = {} } = getDispatchConfig();
31
+ const promptOverride = integrations.systemPrompt;
32
+ const systemPrompt = typeof promptOverride === "string"
33
+ ? promptOverride
34
+ : typeof promptOverride === "function"
35
+ ? promptOverride(DISPATCH_INTEGRATION_SYSTEM_PROMPT)
36
+ : DISPATCH_INTEGRATION_SYSTEM_PROMPT;
37
+ const plugin = createIntegrationsPlugin({
38
+ appId: "dispatch",
39
+ actions: dispatchActions,
40
+ resolveOwner: resolveDispatchOwner,
41
+ beforeProcess: beforeDispatchProcess,
42
+ systemPrompt,
43
+ // Inherit the framework default (claude-sonnet-4-6 from
44
+ // packages/core/src/integrations/plugin.ts). Haiku was tried for latency
45
+ // but hallucinated URLs/IDs after delegated call-agent results
46
+ // (e.g. inventing `https://slides.workspace.com/deck/builder-io-deck-2024`).
47
+ });
48
+ return plugin(nitroApp);
49
+ };
50
+ export default dispatchIntegrationsPlugin;
51
+ //# sourceMappingURL=integrations.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"integrations.js","sourceRoot":"","sources":["../../../src/server/plugins/integrations.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,wBAAwB,EAAE,MAAM,2BAA2B,CAAC;AACrE,OAAO,EACL,qBAAqB,EACrB,oBAAoB,GACrB,MAAM,iCAAiC,CAAC;AACzC,OAAO,EAAE,iBAAiB,EAAE,MAAM,aAAa,CAAC;AAChD,OAAO,EAAE,eAAe,EAAE,MAAM,wBAAwB,CAAC;AAEzD,MAAM,kCAAkC,GAAG;;;;;;;;;;;;;;;;;;4FAkBiD,CAAC;AAE7F;;;;GAIG;AACH,MAAM,0BAA0B,GAAG,KAAK,EAAE,QAAa,EAAE,EAAE;IACzD,MAAM,EAAE,YAAY,GAAG,EAAE,EAAE,GAAG,iBAAiB,EAAE,CAAC;IAClD,MAAM,cAAc,GAAG,YAAY,CAAC,YAAY,CAAC;IACjD,MAAM,YAAY,GAChB,OAAO,cAAc,KAAK,QAAQ;QAChC,CAAC,CAAC,cAAc;QAChB,CAAC,CAAC,OAAO,cAAc,KAAK,UAAU;YACpC,CAAC,CAAC,cAAc,CAAC,kCAAkC,CAAC;YACpD,CAAC,CAAC,kCAAkC,CAAC;IAE3C,MAAM,MAAM,GAAG,wBAAwB,CAAC;QACtC,KAAK,EAAE,UAAU;QACjB,OAAO,EAAE,eAAe;QACxB,YAAY,EAAE,oBAAoB;QAClC,aAAa,EAAE,qBAAqB;QACpC,YAAY;QACZ,wDAAwD;QACxD,yEAAyE;QACzE,+DAA+D;QAC/D,6EAA6E;KAC9E,CAAC,CAAC;IAEH,OAAO,MAAM,CAAC,QAAQ,CAAC,CAAC;AAC1B,CAAC,CAAC;AAEF,eAAe,0BAA0B,CAAC","sourcesContent":["import { createIntegrationsPlugin } from \"@agent-native/core/server\";\nimport {\n beforeDispatchProcess,\n resolveDispatchOwner,\n} from \"../lib/dispatch-integrations.js\";\nimport { getDispatchConfig } from \"../index.js\";\nimport { dispatchActions } from \"../../actions/index.js\";\n\nconst DISPATCH_INTEGRATION_SYSTEM_PROMPT = `You are the central dispatch for this workspace, responding via a messaging platform integration (Slack, Telegram, email, etc.).\n\nDefault posture:\n- Treat Slack, Telegram, and email as shared entrypoints into the workspace.\n- Heavily delegate domain work to specialized agents through A2A (call-agent) when another app owns the job. Apps you can delegate to include slides (decks/presentations), analytics (data/dashboards), content (docs/articles), videos (Remotion compositions), forms (form builder), clips (screen recordings), and design (visual designs).\n- Use list-connected-agents to see what agents are available before assuming a request must be handled locally.\n- When asked whether workspace apps expose agent cards or A2A endpoints, call list-workspace-apps with includeAgentCards=true. Without that probe, missing agent-card fields mean unchecked, not unavailable.\n- Keep durable memory and operating instructions in resources rather than ephemeral chat.\n- Reply in the originating thread unless the user explicitly asks you to send to a saved destination.\n\nWhen a user asks for something:\n- If it belongs to analytics, content, slides, videos, etc., delegate via call-agent — do not re-implement the domain logic in dispatch.\n- After call-agent returns an answer, RELAY IT DIRECTLY to the user with at most a one-line preface — do not rephrase, summarize, or add commentary. The downstream agent already crafted the answer; your job is delivery, not editing. This minimizes round-trips and keeps the user-visible reply fast.\n- Exception: if the downstream agent reports a missing model/provider credential, do not name exact env vars, Vault keys, tokens, or secrets. Say the target app needs an LLM connection and recommend connecting Builder/managed LLM for that app; keep bring-your-own provider keys as a secondary option only if the user asks.\n- If the user asks to create, build, make, scaffold, or generate a new workspace app or agent, call start-workspace-app-creation with their prompt. In this codebase, \"agent\" and \"app\" are synonyms — every agent-native app is an agent, so \"build me an agent\" and \"build me an app\" mean the same thing. Route both to start-workspace-app-creation. If the request is too vague to produce an app, ask one concise follow-up. If the action returns mode \"builder\", reply with the Builder branch URL. If it returns mode \"local-agent\", tell the user it is ready for the local code agent and include the returned app path/prompt summary. If it returns mode \"coming-soon\" or \"builder-unavailable\", explain the missing Builder setup and ask them to connect/configure Builder.\n- For digests, reminders, or saved behavior, prefer recurring jobs, resources, or destinations over chat replies.\n- Keep responses concise and operational — messaging platforms have character limits.\n- Use markdown sparingly (bold and lists are fine, avoid complex formatting).\n- If a task requires many steps, summarize what you did rather than streaming every detail.`;\n\n/**\n * Defer plugin construction until the Nitro plugin actually fires so the\n * config-aware system prompt resolves AFTER `setupDispatch(config)` has\n * stamped the active config (plugin module load order is not guaranteed).\n */\nconst dispatchIntegrationsPlugin = async (nitroApp: any) => {\n const { integrations = {} } = getDispatchConfig();\n const promptOverride = integrations.systemPrompt;\n const systemPrompt =\n typeof promptOverride === \"string\"\n ? promptOverride\n : typeof promptOverride === \"function\"\n ? promptOverride(DISPATCH_INTEGRATION_SYSTEM_PROMPT)\n : DISPATCH_INTEGRATION_SYSTEM_PROMPT;\n\n const plugin = createIntegrationsPlugin({\n appId: \"dispatch\",\n actions: dispatchActions,\n resolveOwner: resolveDispatchOwner,\n beforeProcess: beforeDispatchProcess,\n systemPrompt,\n // Inherit the framework default (claude-sonnet-4-6 from\n // packages/core/src/integrations/plugin.ts). Haiku was tried for latency\n // but hallucinated URLs/IDs after delegated call-agent results\n // (e.g. inventing `https://slides.workspace.com/deck/builder-io-deck-2024`).\n });\n\n return plugin(nitroApp);\n};\n\nexport default dispatchIntegrationsPlugin;\n"]}
package/package.json ADDED
@@ -0,0 +1,103 @@
1
+ {
2
+ "name": "@agent-native/dispatch",
3
+ "version": "0.1.1",
4
+ "type": "module",
5
+ "description": "Dispatch — workspace control plane for agent-native apps. Vault, integrations, destinations, scheduled jobs, and cross-app delegation, shipped as a single drop-in package.",
6
+ "license": "MIT",
7
+ "repository": {
8
+ "type": "git",
9
+ "url": "https://github.com/BuilderIO/agent-native",
10
+ "directory": "packages/dispatch"
11
+ },
12
+ "bugs": {
13
+ "url": "https://github.com/BuilderIO/agent-native/issues"
14
+ },
15
+ "homepage": "https://github.com/BuilderIO/agent-native#readme",
16
+ "exports": {
17
+ ".": "./dist/index.js",
18
+ "./routes": "./dist/routes/index.js",
19
+ "./routes/pages/*": "./dist/routes/pages/*.js",
20
+ "./server": "./dist/server/index.js",
21
+ "./actions": "./dist/actions/index.js",
22
+ "./db": "./dist/db/index.js",
23
+ "./components": "./dist/components/index.js"
24
+ },
25
+ "files": [
26
+ "dist",
27
+ "src"
28
+ ],
29
+ "peerDependencies": {
30
+ "@agent-native/core": ">=0.7.82",
31
+ "react": ">=18",
32
+ "react-dom": ">=18",
33
+ "react-router": ">=7"
34
+ },
35
+ "dependencies": {
36
+ "@radix-ui/react-accordion": "^1.2.12",
37
+ "@radix-ui/react-alert-dialog": "^1.1.15",
38
+ "@radix-ui/react-aspect-ratio": "^1.1.8",
39
+ "@radix-ui/react-avatar": "^1.1.11",
40
+ "@radix-ui/react-checkbox": "^1.3.2",
41
+ "@radix-ui/react-collapsible": "^1.1.12",
42
+ "@radix-ui/react-context-menu": "^2.2.16",
43
+ "@radix-ui/react-dialog": "^1.1.14",
44
+ "@radix-ui/react-dropdown-menu": "^2.1.15",
45
+ "@radix-ui/react-hover-card": "^1.1.15",
46
+ "@radix-ui/react-label": "^2.1.7",
47
+ "@radix-ui/react-menubar": "^1.1.16",
48
+ "@radix-ui/react-navigation-menu": "^1.2.14",
49
+ "@radix-ui/react-popover": "^1.1.14",
50
+ "@radix-ui/react-progress": "^1.1.8",
51
+ "@radix-ui/react-radio-group": "^1.3.7",
52
+ "@radix-ui/react-scroll-area": "^1.2.9",
53
+ "@radix-ui/react-select": "^2.2.5",
54
+ "@radix-ui/react-separator": "^1.1.7",
55
+ "@radix-ui/react-slider": "^1.3.5",
56
+ "@radix-ui/react-slot": "^1.2.3",
57
+ "@radix-ui/react-switch": "^1.2.5",
58
+ "@radix-ui/react-tabs": "^1.1.12",
59
+ "@radix-ui/react-toast": "^1.2.15",
60
+ "@radix-ui/react-toggle": "^1.1.10",
61
+ "@radix-ui/react-toggle-group": "^1.1.11",
62
+ "@radix-ui/react-tooltip": "^1.2.7",
63
+ "@tabler/icons-react": "^3.40.0",
64
+ "@tanstack/react-query": "^5.99.2",
65
+ "class-variance-authority": "^0.7.1",
66
+ "clsx": "^2.1.1",
67
+ "cmdk": "^1.1.1",
68
+ "drizzle-orm": "^0.45.2",
69
+ "embla-carousel-react": "^8.6.0",
70
+ "h3": "^2.0.1-rc.20",
71
+ "input-otp": "^1.4.2",
72
+ "lucide-react": "^1.8.0",
73
+ "next-themes": "^0.4.6",
74
+ "react-day-picker": "^9.14.0",
75
+ "react-hook-form": "^7.71.2",
76
+ "react-resizable-panels": "^4.10.0",
77
+ "recharts": "^3.8.1",
78
+ "sonner": "^2.0.7",
79
+ "tailwind-merge": "^3.5.0",
80
+ "vaul": "^1.1.2",
81
+ "zod": "^4.3.6"
82
+ },
83
+ "devDependencies": {
84
+ "@react-router/dev": "^7.13.1",
85
+ "@types/node": "^24.2.1",
86
+ "@types/react": "^19.2.14",
87
+ "@types/react-dom": "^19.2.3",
88
+ "react": "^19.2.5",
89
+ "react-dom": "^19.2.5",
90
+ "react-router": "^7.13.1",
91
+ "tsc-alias": "^1.8.10",
92
+ "typescript": "^6.0.3",
93
+ "vite": "8.0.3",
94
+ "vitest": "^4.1.5",
95
+ "@agent-native/core": "0.7.83"
96
+ },
97
+ "scripts": {
98
+ "build": "tsc && tsc-alias",
99
+ "dev": "tsc --watch & tsc-alias --watch",
100
+ "typecheck": "tsc --noEmit",
101
+ "test": "vitest --run src --passWithNoTests"
102
+ }
103
+ }
@@ -0,0 +1,11 @@
1
+ import { defineAction } from "@agent-native/core";
2
+ import { z } from "zod";
3
+ import { approveRequest } from "../server/lib/dispatch-store.js";
4
+
5
+ export default defineAction({
6
+ description: "Approve a pending dispatch change request and apply it.",
7
+ schema: z.object({
8
+ id: z.string().describe("Approval request id"),
9
+ }),
10
+ run: async ({ id }) => approveRequest(id),
11
+ });
@@ -0,0 +1,23 @@
1
+ import { defineAction } from "@agent-native/core";
2
+ import { z } from "zod";
3
+ import { approveRequest, requireVaultCtx } from "../server/lib/vault-store.js";
4
+
5
+ export default defineAction({
6
+ description:
7
+ "Approve a pending vault secret request. Creates the secret (if it doesn't exist) and grants it to the requesting app. Admin only.",
8
+ schema: z.object({
9
+ id: z.string().describe("Request ID to approve"),
10
+ secretValue: z.string().describe("The secret value to store"),
11
+ secretName: z
12
+ .string()
13
+ .optional()
14
+ .describe("Human-readable name for the secret"),
15
+ }),
16
+ run: async (args) =>
17
+ approveRequest(
18
+ args.id,
19
+ args.secretValue,
20
+ args.secretName,
21
+ requireVaultCtx(),
22
+ ),
23
+ });
@@ -0,0 +1,12 @@
1
+ import { defineAction } from "@agent-native/core";
2
+ import { z } from "zod";
3
+ import { createLinkToken } from "../server/lib/dispatch-store.js";
4
+
5
+ export default defineAction({
6
+ description:
7
+ "Create a /link token so a Slack or Telegram user can bind to their personal dispatch identity.",
8
+ schema: z.object({
9
+ platform: z.enum(["slack", "telegram"]),
10
+ }),
11
+ run: async ({ platform }) => createLinkToken(platform),
12
+ });
@@ -0,0 +1,15 @@
1
+ import { defineAction } from "@agent-native/core";
2
+ import { z } from "zod";
3
+ import { createGrant } from "../server/lib/vault-store.js";
4
+
5
+ export default defineAction({
6
+ description:
7
+ "Grant an app access to a vault secret. The secret can then be synced to the app. Admin only.",
8
+ schema: z.object({
9
+ secretId: z.string().describe("ID of the secret to grant"),
10
+ appId: z
11
+ .string()
12
+ .describe("App ID to grant access to, e.g. mail, calendar"),
13
+ }),
14
+ run: async (args) => createGrant(args.secretId, args.appId),
15
+ });
@@ -0,0 +1,21 @@
1
+ import { defineAction } from "@agent-native/core";
2
+ import { z } from "zod";
3
+ import { createSecret } from "../server/lib/vault-store.js";
4
+
5
+ export default defineAction({
6
+ description:
7
+ "Store a new secret in the workspace vault. Admin only. The secret can then be granted to specific apps.",
8
+ schema: z.object({
9
+ credentialKey: z
10
+ .string()
11
+ .describe("Environment variable name, e.g. GOOGLE_CLIENT_ID"),
12
+ value: z.string().describe("The secret value"),
13
+ name: z.string().describe("Human-readable label for this secret"),
14
+ provider: z
15
+ .string()
16
+ .optional()
17
+ .describe("Provider grouping tag, e.g. google, sendgrid, slack"),
18
+ description: z.string().optional().describe("Optional description"),
19
+ }),
20
+ run: async (args) => createSecret(args),
21
+ });
@@ -0,0 +1,15 @@
1
+ import { defineAction } from "@agent-native/core";
2
+ import { z } from "zod";
3
+ import { createResourceGrant } from "../server/lib/workspace-resources-store.js";
4
+
5
+ export default defineAction({
6
+ description:
7
+ "Grant an app access to a workspace resource (skill, instruction, or agent). Admin only.",
8
+ schema: z.object({
9
+ resourceId: z.string().describe("Workspace resource ID"),
10
+ appId: z
11
+ .string()
12
+ .describe("App ID to grant access to, e.g. mail, analytics"),
13
+ }),
14
+ run: async (args) => createResourceGrant(args.resourceId, args.appId),
15
+ });
@@ -0,0 +1,29 @@
1
+ import { defineAction } from "@agent-native/core";
2
+ import { z } from "zod";
3
+ import { createWorkspaceResource } from "../server/lib/workspace-resources-store.js";
4
+
5
+ export default defineAction({
6
+ description:
7
+ 'Create a workspace-wide skill, instruction, or agent profile. Set scope to "all" to push to every app, or "selected" to grant per-app.',
8
+ schema: z.object({
9
+ kind: z
10
+ .enum(["skill", "instruction", "agent"])
11
+ .describe("Resource kind: skill, instruction, or agent"),
12
+ name: z.string().describe("Human-readable name"),
13
+ description: z.string().optional().describe("Short description"),
14
+ path: z
15
+ .string()
16
+ .describe(
17
+ 'Resource path, e.g. "skills/designer.md", "agents/researcher.md", or "remote-agents/researcher.json"',
18
+ ),
19
+ content: z
20
+ .string()
21
+ .describe("Full resource content (markdown or remote-agent JSON)"),
22
+ scope: z
23
+ .enum(["all", "selected"])
24
+ .describe(
25
+ '"all" = push to every app, "selected" = only apps with explicit grants',
26
+ ),
27
+ }),
28
+ run: async (args) => createWorkspaceResource(args),
29
+ });
@@ -0,0 +1,11 @@
1
+ import { defineAction } from "@agent-native/core";
2
+ import { z } from "zod";
3
+ import { deleteDestination } from "../server/lib/dispatch-store.js";
4
+
5
+ export default defineAction({
6
+ description: "Delete a saved dispatch destination.",
7
+ schema: z.object({
8
+ id: z.string().describe("Destination id"),
9
+ }),
10
+ run: async ({ id }) => deleteDestination(id),
11
+ });
@@ -0,0 +1,12 @@
1
+ import { defineAction } from "@agent-native/core";
2
+ import { z } from "zod";
3
+ import { deleteSecret } from "../server/lib/vault-store.js";
4
+
5
+ export default defineAction({
6
+ description:
7
+ "Delete a secret from the workspace vault. Also revokes all active grants for this secret. Admin only.",
8
+ schema: z.object({
9
+ id: z.string().describe("Secret ID to delete"),
10
+ }),
11
+ run: async (args) => deleteSecret(args.id),
12
+ });
@@ -0,0 +1,12 @@
1
+ import { defineAction } from "@agent-native/core";
2
+ import { z } from "zod";
3
+ import { deleteWorkspaceResource } from "../server/lib/workspace-resources-store.js";
4
+
5
+ export default defineAction({
6
+ description:
7
+ "Delete a workspace resource and revoke all its grants. Admin only.",
8
+ schema: z.object({
9
+ id: z.string().describe("Resource ID to delete"),
10
+ }),
11
+ run: async (args) => deleteWorkspaceResource(args.id),
12
+ });
@@ -0,0 +1,12 @@
1
+ import { defineAction } from "@agent-native/core";
2
+ import { z } from "zod";
3
+ import { denyRequest, requireVaultCtx } from "../server/lib/vault-store.js";
4
+
5
+ export default defineAction({
6
+ description: "Deny a pending vault secret request. Admin only.",
7
+ schema: z.object({
8
+ id: z.string().describe("Request ID to deny"),
9
+ reason: z.string().optional().describe("Reason for denial"),
10
+ }),
11
+ run: async (args) => denyRequest(args.id, args.reason, requireVaultCtx()),
12
+ });
@@ -0,0 +1,11 @@
1
+ import { defineAction } from "@agent-native/core";
2
+ import { z } from "zod";
3
+ import { getAppCreationSettings } from "../server/lib/app-creation-store.js";
4
+
5
+ export default defineAction({
6
+ description:
7
+ "Get Dispatch settings for creating new workspace apps, including the default Builder project.",
8
+ schema: z.object({}),
9
+ http: { method: "GET" },
10
+ run: async () => getAppCreationSettings(),
11
+ });
@@ -0,0 +1,10 @@
1
+ import { defineAction } from "@agent-native/core";
2
+ import { z } from "zod";
3
+ import { getApprovalPolicy } from "../server/lib/dispatch-store.js";
4
+
5
+ export default defineAction({
6
+ description: "Get dispatch approval settings for the current organization.",
7
+ schema: z.object({}),
8
+ http: { method: "GET" },
9
+ run: async () => getApprovalPolicy(),
10
+ });
@@ -0,0 +1,11 @@
1
+ import { defineAction } from "@agent-native/core";
2
+ import { z } from "zod";
3
+ import { getWorkspaceInfo } from "../server/lib/app-creation-store.js";
4
+
5
+ export default defineAction({
6
+ description:
7
+ "Get the current workspace's identity (name and app count) from the workspace root package.json. Surfaced in the Dispatch UI so users can see which workspace their apps belong to.",
8
+ schema: z.object({}),
9
+ http: { method: "GET" },
10
+ run: async () => getWorkspaceInfo(),
11
+ });
@@ -0,0 +1,20 @@
1
+ import { defineAction } from "@agent-native/core";
2
+ import { z } from "zod";
3
+ import { grantSecretsToApp } from "../server/lib/vault-store.js";
4
+
5
+ export default defineAction({
6
+ description:
7
+ "Grant multiple Dispatch vault secrets to a workspace app. Existing active grants are skipped.",
8
+ http: { method: "POST" },
9
+ schema: z.object({
10
+ appId: z
11
+ .string()
12
+ .regex(/^[a-z][a-z0-9-]{0,63}$/)
13
+ .describe("Workspace app id/path, e.g. customer-health"),
14
+ secretIds: z
15
+ .array(z.string())
16
+ .max(100)
17
+ .describe("Vault secret IDs to grant to the app"),
18
+ }),
19
+ run: async (args) => grantSecretsToApp(args.secretIds, args.appId),
20
+ });
@@ -0,0 +1,102 @@
1
+ import type { ActionEntry } from "@agent-native/core/server";
2
+ import approveDispatchChange from "./approve-dispatch-change.js";
3
+ import approveVaultRequest from "./approve-vault-request.js";
4
+ import createLinkToken from "./create-link-token.js";
5
+ import createVaultGrant from "./create-vault-grant.js";
6
+ import createVaultSecret from "./create-vault-secret.js";
7
+ import createWorkspaceResourceGrant from "./create-workspace-resource-grant.js";
8
+ import createWorkspaceResource from "./create-workspace-resource.js";
9
+ import deleteDestination from "./delete-destination.js";
10
+ import deleteVaultSecret from "./delete-vault-secret.js";
11
+ import deleteWorkspaceResource from "./delete-workspace-resource.js";
12
+ import denyVaultRequest from "./deny-vault-request.js";
13
+ import getAppCreationSettings from "./get-app-creation-settings.js";
14
+ import getDispatchSettings from "./get-dispatch-settings.js";
15
+ import getWorkspaceInfo from "./get-workspace-info.js";
16
+ import grantVaultSecretsToApp from "./grant-vault-secrets-to-app.js";
17
+ import listConnectedAgents from "./list-connected-agents.js";
18
+ import listDestinations from "./list-destinations.js";
19
+ import listDispatchApprovals from "./list-dispatch-approvals.js";
20
+ import listDispatchAudit from "./list-dispatch-audit.js";
21
+ import listDispatchOverview from "./list-dispatch-overview.js";
22
+ import listIntegrationsCatalog from "./list-integrations-catalog.js";
23
+ import listLinkedIdentities from "./list-linked-identities.js";
24
+ import listVaultAudit from "./list-vault-audit.js";
25
+ import listVaultGrants from "./list-vault-grants.js";
26
+ import listVaultRequests from "./list-vault-requests.js";
27
+ import listVaultSecretOptions from "./list-vault-secret-options.js";
28
+ import listVaultSecrets from "./list-vault-secrets.js";
29
+ import listWorkspaceApps from "./list-workspace-apps.js";
30
+ import listWorkspaceResourceGrants from "./list-workspace-resource-grants.js";
31
+ import listWorkspaceResources from "./list-workspace-resources.js";
32
+ import navigate from "./navigate.js";
33
+ import rejectDispatchChange from "./reject-dispatch-change.js";
34
+ import requestVaultSecret from "./request-vault-secret.js";
35
+ import revokeVaultGrant from "./revoke-vault-grant.js";
36
+ import revokeWorkspaceResourceGrant from "./revoke-workspace-resource-grant.js";
37
+ import sendPlatformMessage from "./send-platform-message.js";
38
+ import setAppCreationSettings from "./set-app-creation-settings.js";
39
+ import setDispatchApprovalPolicy from "./set-dispatch-approval-policy.js";
40
+ import startWorkspaceAppCreation from "./start-workspace-app-creation.js";
41
+ import syncVaultToApp from "./sync-vault-to-app.js";
42
+ import syncWorkspaceResourcesToAll from "./sync-workspace-resources-to-all.js";
43
+ import syncWorkspaceResourcesToApp from "./sync-workspace-resources-to-app.js";
44
+ import updateVaultSecret from "./update-vault-secret.js";
45
+ import updateWorkspaceResource from "./update-workspace-resource.js";
46
+ import upsertDestination from "./upsert-destination.js";
47
+ import viewScreen from "./view-screen.js";
48
+
49
+ /**
50
+ * Dispatch's actions registered as a flat name→entry map. Imported by
51
+ * `@agent-native/dispatch/server`'s side-effect block, which calls
52
+ * `registerPackageActions(dispatchActions)` so the framework's action
53
+ * loader picks them up.
54
+ */
55
+ export const dispatchActions: Record<string, ActionEntry> = {
56
+ "approve-dispatch-change": approveDispatchChange,
57
+ "approve-vault-request": approveVaultRequest,
58
+ "create-link-token": createLinkToken,
59
+ "create-vault-grant": createVaultGrant,
60
+ "create-vault-secret": createVaultSecret,
61
+ "create-workspace-resource-grant": createWorkspaceResourceGrant,
62
+ "create-workspace-resource": createWorkspaceResource,
63
+ "delete-destination": deleteDestination,
64
+ "delete-vault-secret": deleteVaultSecret,
65
+ "delete-workspace-resource": deleteWorkspaceResource,
66
+ "deny-vault-request": denyVaultRequest,
67
+ "get-app-creation-settings": getAppCreationSettings,
68
+ "get-dispatch-settings": getDispatchSettings,
69
+ "get-workspace-info": getWorkspaceInfo,
70
+ "grant-vault-secrets-to-app": grantVaultSecretsToApp,
71
+ "list-connected-agents": listConnectedAgents,
72
+ "list-destinations": listDestinations,
73
+ "list-dispatch-approvals": listDispatchApprovals,
74
+ "list-dispatch-audit": listDispatchAudit,
75
+ "list-dispatch-overview": listDispatchOverview,
76
+ "list-integrations-catalog": listIntegrationsCatalog,
77
+ "list-linked-identities": listLinkedIdentities,
78
+ "list-vault-audit": listVaultAudit,
79
+ "list-vault-grants": listVaultGrants,
80
+ "list-vault-requests": listVaultRequests,
81
+ "list-vault-secret-options": listVaultSecretOptions,
82
+ "list-vault-secrets": listVaultSecrets,
83
+ "list-workspace-apps": listWorkspaceApps,
84
+ "list-workspace-resource-grants": listWorkspaceResourceGrants,
85
+ "list-workspace-resources": listWorkspaceResources,
86
+ navigate: navigate,
87
+ "reject-dispatch-change": rejectDispatchChange,
88
+ "request-vault-secret": requestVaultSecret,
89
+ "revoke-vault-grant": revokeVaultGrant,
90
+ "revoke-workspace-resource-grant": revokeWorkspaceResourceGrant,
91
+ "send-platform-message": sendPlatformMessage,
92
+ "set-app-creation-settings": setAppCreationSettings,
93
+ "set-dispatch-approval-policy": setDispatchApprovalPolicy,
94
+ "start-workspace-app-creation": startWorkspaceAppCreation,
95
+ "sync-vault-to-app": syncVaultToApp,
96
+ "sync-workspace-resources-to-all": syncWorkspaceResourcesToAll,
97
+ "sync-workspace-resources-to-app": syncWorkspaceResourcesToApp,
98
+ "update-vault-secret": updateVaultSecret,
99
+ "update-workspace-resource": updateWorkspaceResource,
100
+ "upsert-destination": upsertDestination,
101
+ "view-screen": viewScreen,
102
+ };