@agent-native/core 0.141.7 → 0.144.0

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 (328) hide show
  1. package/agent-native.eject.json +9 -0
  2. package/corpus/README.md +1 -1
  3. package/corpus/templates/analytics/.agents/skills/provider-api/SKILL.md +19 -0
  4. package/corpus/templates/analytics/.agents/skills/turn-into-app/SKILL.md +296 -0
  5. package/corpus/templates/analytics/.agents/skills/turn-into-app/agents/openai.yaml +4 -0
  6. package/corpus/templates/analytics/.agents/skills/turn-into-skill/SKILL.md +112 -0
  7. package/corpus/templates/analytics/.agents/skills/turn-into-skill/agents/openai.yaml +4 -0
  8. package/corpus/templates/analytics/AGENTS.md +35 -38
  9. package/corpus/templates/analytics/actions/ensure-native-v2-dashboards.ts +1 -1
  10. package/corpus/templates/analytics/actions/list-dashboard-usage-stats.ts +17 -22
  11. package/corpus/templates/analytics/actions/navigate.ts +4 -5
  12. package/corpus/templates/analytics/actions/provider-api-register.ts +50 -0
  13. package/corpus/templates/analytics/actions/query-agent-native-analytics.ts +44 -11
  14. package/corpus/templates/analytics/actions/test-custom-api-connection.ts +106 -0
  15. package/corpus/templates/analytics/app/components/CustomApiCard.tsx +430 -0
  16. package/corpus/templates/analytics/app/i18n-data.ts +680 -0
  17. package/corpus/templates/analytics/app/lib/native-mcp-exclusions.ts +6 -0
  18. package/corpus/templates/analytics/app/lib/sql-query.ts +33 -6
  19. package/corpus/templates/analytics/app/pages/DataSources.tsx +4 -0
  20. package/corpus/templates/analytics/changelog/2026-08-06-analytics-dashboards-load-reliably-during-background-data-sw.md +6 -0
  21. package/corpus/templates/analytics/changelog/2026-08-06-analytics-dashboards-remain-responsive-while-historical-data.md +6 -0
  22. package/corpus/templates/analytics/changelog/2026-08-06-analytics-query-results-now-render-as-a-table-with-csv-downl.md +6 -0
  23. package/corpus/templates/analytics/changelog/2026-08-06-connect-public-https-custom-apis-and-hand-tested-endpoints-t.md +6 -0
  24. package/corpus/templates/analytics/changelog/2026-08-06-durable-agent-worker-memory.md +6 -0
  25. package/corpus/templates/analytics/changelog/2026-08-06-live-dashboard-panels-use-the-shared-query-timeout.md +6 -0
  26. package/corpus/templates/analytics/changelog/2026-08-06-on-demand-billing-is-available-as-a-native-dashboard-with-ta.md +6 -0
  27. package/corpus/templates/analytics/changelog/2026-08-06-visible-dashboard-names-are-unique.md +6 -0
  28. package/corpus/templates/analytics/netlify.toml +7 -0
  29. package/corpus/templates/analytics/scripts/emit-netlify-dashboard-report-cron.ts +4 -0
  30. package/corpus/templates/analytics/server/db/index.ts +27 -0
  31. package/corpus/templates/analytics/server/db/schema.ts +10 -0
  32. package/corpus/templates/analytics/server/lib/dashboards-store.ts +227 -60
  33. package/corpus/templates/analytics/server/lib/first-party-analytics-backend.ts +133 -44
  34. package/corpus/templates/analytics/server/lib/native-v2-dashboards.ts +227 -1
  35. package/corpus/templates/analytics/server/plugins/agent-chat.ts +5 -0
  36. package/corpus/templates/analytics/server/plugins/analytics-rollup-backfill-jobs.ts +1 -0
  37. package/corpus/templates/analytics/server/plugins/db.ts +52 -18
  38. package/corpus/templates/assets/.agents/skills/asset-generation/SKILL.md +28 -2
  39. package/corpus/templates/assets/.agents/skills/image-generation/SKILL.md +16 -1
  40. package/corpus/templates/assets/.agents/skills/turn-into-app/SKILL.md +296 -0
  41. package/corpus/templates/assets/.agents/skills/turn-into-app/agents/openai.yaml +4 -0
  42. package/corpus/templates/assets/.agents/skills/turn-into-skill/SKILL.md +112 -0
  43. package/corpus/templates/assets/.agents/skills/turn-into-skill/agents/openai.yaml +4 -0
  44. package/corpus/templates/brain/.agents/skills/turn-into-app/SKILL.md +296 -0
  45. package/corpus/templates/brain/.agents/skills/turn-into-app/agents/openai.yaml +4 -0
  46. package/corpus/templates/brain/.agents/skills/turn-into-skill/SKILL.md +112 -0
  47. package/corpus/templates/brain/.agents/skills/turn-into-skill/agents/openai.yaml +4 -0
  48. package/corpus/templates/brain/actions/list-connection-providers.ts +24 -3
  49. package/corpus/templates/brain/app/lib/dispatch-links.ts +44 -0
  50. package/corpus/templates/brain/app/routes/sources.tsx +15 -7
  51. package/corpus/templates/brain/changelog/2026-08-06-brain-provider-setup-links-open-dispatch-correctly-in-standa.md +6 -0
  52. package/corpus/templates/brain/server/plugins/agent-chat.ts +1 -0
  53. package/corpus/templates/calendar/.agents/skills/event-management/SKILL.md +26 -0
  54. package/corpus/templates/calendar/.agents/skills/turn-into-app/SKILL.md +296 -0
  55. package/corpus/templates/calendar/.agents/skills/turn-into-app/agents/openai.yaml +4 -0
  56. package/corpus/templates/calendar/.agents/skills/turn-into-skill/SKILL.md +112 -0
  57. package/corpus/templates/calendar/.agents/skills/turn-into-skill/agents/openai.yaml +4 -0
  58. package/corpus/templates/calendar/AGENTS.md +11 -32
  59. package/corpus/templates/calendar/actions/update-event.ts +107 -1
  60. package/corpus/templates/calendar/app/components/calendar/EventCalendarSelect.tsx +83 -0
  61. package/corpus/templates/calendar/app/components/calendar/EventDetailPanel.tsx +57 -0
  62. package/corpus/templates/calendar/app/components/calendar/EventDetailPopover.tsx +59 -73
  63. package/corpus/templates/calendar/app/hooks/use-events.ts +4 -1
  64. package/corpus/templates/calendar/app/i18n-data.ts +20 -0
  65. package/corpus/templates/calendar/changelog/2026-08-06-delegated-requests-continue-in-the-background.md +6 -0
  66. package/corpus/templates/calendar/changelog/2026-08-06-existing-events-can-move-between-connected-google-account-ca.md +6 -0
  67. package/corpus/templates/calendar/server/lib/google-calendar.ts +101 -0
  68. package/corpus/templates/calendar/server/plugins/agent-chat.ts +7 -1
  69. package/corpus/templates/chat/.agents/skills/turn-into-app/SKILL.md +296 -0
  70. package/corpus/templates/chat/.agents/skills/turn-into-app/agents/openai.yaml +4 -0
  71. package/corpus/templates/chat/.agents/skills/turn-into-skill/SKILL.md +112 -0
  72. package/corpus/templates/chat/.agents/skills/turn-into-skill/agents/openai.yaml +4 -0
  73. package/corpus/templates/clips/.agents/skills/turn-into-app/SKILL.md +296 -0
  74. package/corpus/templates/clips/.agents/skills/turn-into-app/agents/openai.yaml +4 -0
  75. package/corpus/templates/clips/.agents/skills/turn-into-skill/SKILL.md +112 -0
  76. package/corpus/templates/clips/.agents/skills/turn-into-skill/agents/openai.yaml +4 -0
  77. package/corpus/templates/clips/app/components/editor/editor-layout.tsx +9 -24
  78. package/corpus/templates/clips/app/components/editor/timeline-geometry.ts +15 -0
  79. package/corpus/templates/clips/app/components/editor/waveform.tsx +4 -17
  80. package/corpus/templates/clips/app/components/player/delete-recording-menu.tsx +14 -3
  81. package/corpus/templates/clips/app/routes/r.$recordingId.tsx +28 -38
  82. package/corpus/templates/clips/app/routes/share.$shareId.tsx +21 -27
  83. package/corpus/templates/clips/changelog/2026-08-06-clips-recovers-from-stalled-recording-setup-without-requirin.md +6 -0
  84. package/corpus/templates/clips/changelog/2026-08-06-clips-starts-faster-after-a-deploy-or-idle-period-startup-no.md +6 -0
  85. package/corpus/templates/clips/changelog/2026-08-06-deleting-a-recording-returns-cleanly-to-the-library-and-fit-.md +6 -0
  86. package/corpus/templates/clips/changelog/2026-08-06-hide-clip-insights-from-viewers-without-analytics-access.md +6 -0
  87. package/corpus/templates/clips/desktop/src/app.tsx +48 -20
  88. package/corpus/templates/clips/desktop/src/lib/recorder.ts +275 -74
  89. package/corpus/templates/clips/desktop/src/lib/recording-start-guard.ts +84 -0
  90. package/corpus/templates/clips/desktop/src/overlays/toolbar.tsx +14 -4
  91. package/corpus/templates/clips/server/plugins/db.ts +214 -26
  92. package/corpus/templates/content/.agents/skills/turn-into-app/SKILL.md +296 -0
  93. package/corpus/templates/content/.agents/skills/turn-into-app/agents/openai.yaml +4 -0
  94. package/corpus/templates/content/.agents/skills/turn-into-skill/SKILL.md +112 -0
  95. package/corpus/templates/content/.agents/skills/turn-into-skill/agents/openai.yaml +4 -0
  96. package/corpus/templates/crm/.agents/skills/turn-into-app/SKILL.md +296 -0
  97. package/corpus/templates/crm/.agents/skills/turn-into-app/agents/openai.yaml +4 -0
  98. package/corpus/templates/crm/.agents/skills/turn-into-skill/SKILL.md +112 -0
  99. package/corpus/templates/crm/.agents/skills/turn-into-skill/agents/openai.yaml +4 -0
  100. package/corpus/templates/crm/changelog/2026-08-06-crm-starts-faster-after-a-deploy-or-idle-period-one-time-dat.md +6 -0
  101. package/corpus/templates/crm/server/plugins/db.ts +11 -8
  102. package/corpus/templates/design/.agents/skills/design-generation/SKILL.md +36 -1
  103. package/corpus/templates/design/.agents/skills/turn-into-app/SKILL.md +296 -0
  104. package/corpus/templates/design/.agents/skills/turn-into-app/agents/openai.yaml +4 -0
  105. package/corpus/templates/design/.agents/skills/turn-into-skill/SKILL.md +112 -0
  106. package/corpus/templates/design/.agents/skills/turn-into-skill/agents/openai.yaml +4 -0
  107. package/corpus/templates/design/actions/import-from-url.ts +1 -1
  108. package/corpus/templates/design/app/components/design/LayersPanel.tsx +27 -18
  109. package/corpus/templates/design/app/pages/Index.tsx +6 -2
  110. package/corpus/templates/design/changelog/2026-08-05-deleting-a-design-from-the-home-page-no-longer-leaves-the-ap.md +6 -0
  111. package/corpus/templates/design/changelog/2026-08-05-renaming-a-layer-now-focuses-its-name-field-automatically.md +6 -0
  112. package/corpus/templates/design/server/plugins/agent-chat.ts +2 -0
  113. package/corpus/templates/dispatch/.agents/skills/turn-into-app/SKILL.md +296 -0
  114. package/corpus/templates/dispatch/.agents/skills/turn-into-app/agents/openai.yaml +4 -0
  115. package/corpus/templates/dispatch/.agents/skills/turn-into-skill/SKILL.md +112 -0
  116. package/corpus/templates/dispatch/.agents/skills/turn-into-skill/agents/openai.yaml +4 -0
  117. package/corpus/templates/dispatch/changelog/2026-08-06-ready-workspace-apps-stay-one-click-away-in-a-compact-dispat.md +6 -0
  118. package/corpus/templates/dispatch/changelog/2026-08-06-shared-vault-values-and-management-are-now-restricted-to-wor.md +6 -0
  119. package/corpus/templates/factory/.agents/skills/turn-into-app/SKILL.md +296 -0
  120. package/corpus/templates/factory/.agents/skills/turn-into-app/agents/openai.yaml +4 -0
  121. package/corpus/templates/factory/.agents/skills/turn-into-skill/SKILL.md +112 -0
  122. package/corpus/templates/factory/.agents/skills/turn-into-skill/agents/openai.yaml +4 -0
  123. package/corpus/templates/forms/.agents/skills/turn-into-app/SKILL.md +296 -0
  124. package/corpus/templates/forms/.agents/skills/turn-into-app/agents/openai.yaml +4 -0
  125. package/corpus/templates/forms/.agents/skills/turn-into-skill/SKILL.md +112 -0
  126. package/corpus/templates/forms/.agents/skills/turn-into-skill/agents/openai.yaml +4 -0
  127. package/corpus/templates/forms/changelog/2026-08-06-delegated-requests-continue-in-the-background.md +6 -0
  128. package/corpus/templates/forms/server/plugins/agent-chat.ts +4 -0
  129. package/corpus/templates/macros/.agents/skills/turn-into-app/SKILL.md +296 -0
  130. package/corpus/templates/macros/.agents/skills/turn-into-app/agents/openai.yaml +4 -0
  131. package/corpus/templates/macros/.agents/skills/turn-into-skill/SKILL.md +112 -0
  132. package/corpus/templates/macros/.agents/skills/turn-into-skill/agents/openai.yaml +4 -0
  133. package/corpus/templates/mail/.agents/skills/turn-into-app/SKILL.md +296 -0
  134. package/corpus/templates/mail/.agents/skills/turn-into-app/agents/openai.yaml +4 -0
  135. package/corpus/templates/mail/.agents/skills/turn-into-skill/SKILL.md +112 -0
  136. package/corpus/templates/mail/.agents/skills/turn-into-skill/agents/openai.yaml +4 -0
  137. package/corpus/templates/mail/changelog/2026-08-06-delegated-requests-continue-in-the-background.md +6 -0
  138. package/corpus/templates/mail/server/plugins/agent-chat.ts +6 -0
  139. package/corpus/templates/plan/.agents/skills/turn-into-app/SKILL.md +296 -0
  140. package/corpus/templates/plan/.agents/skills/turn-into-app/agents/openai.yaml +4 -0
  141. package/corpus/templates/plan/.agents/skills/turn-into-skill/SKILL.md +112 -0
  142. package/corpus/templates/plan/.agents/skills/turn-into-skill/agents/openai.yaml +4 -0
  143. package/corpus/templates/slides/.agents/skills/create-deck/SKILL.md +48 -5
  144. package/corpus/templates/slides/.agents/skills/design-systems/SKILL.md +37 -1
  145. package/corpus/templates/slides/.agents/skills/image-generation-via-a2a/SKILL.md +6 -0
  146. package/corpus/templates/slides/.agents/skills/slide-editing/SKILL.md +15 -2
  147. package/corpus/templates/slides/.agents/skills/slide-images/SKILL.md +29 -24
  148. package/corpus/templates/slides/.agents/skills/turn-into-app/SKILL.md +296 -0
  149. package/corpus/templates/slides/.agents/skills/turn-into-app/agents/openai.yaml +4 -0
  150. package/corpus/templates/slides/.agents/skills/turn-into-skill/SKILL.md +112 -0
  151. package/corpus/templates/slides/.agents/skills/turn-into-skill/agents/openai.yaml +4 -0
  152. package/corpus/templates/slides/AGENTS.md +7 -9
  153. package/corpus/templates/slides/_gitignore +1 -0
  154. package/corpus/templates/slides/actions/export-pptx.ts +402 -36
  155. package/corpus/templates/slides/actions/import-file.ts +46 -85
  156. package/corpus/templates/slides/actions/import-google-slides-reference.ts +271 -12
  157. package/corpus/templates/slides/actions/import-pptx.ts +85 -60
  158. package/corpus/templates/slides/app/components/deck/DeckCard.tsx +10 -13
  159. package/corpus/templates/slides/app/components/editor/AddSlidePopover.tsx +5 -1
  160. package/corpus/templates/slides/app/components/editor/EditorToolbar.tsx +25 -12
  161. package/corpus/templates/slides/app/components/editor/ExportMenu.tsx +112 -57
  162. package/corpus/templates/slides/app/components/editor/GoogleDriveConnectionCta.tsx +202 -0
  163. package/corpus/templates/slides/app/components/editor/GoogleSlidesReferenceImport.tsx +26 -14
  164. package/corpus/templates/slides/app/components/editor/PromptDialog.tsx +173 -0
  165. package/corpus/templates/slides/app/components/editor/SlideEditor.tsx +182 -141
  166. package/corpus/templates/slides/app/components/editor/canvas-interactions/index.ts +1 -0
  167. package/corpus/templates/slides/app/components/editor/canvas-interactions/slides-canvas-adapter.ts +18 -0
  168. package/corpus/templates/slides/app/components/editor/slide-text-targets.ts +85 -0
  169. package/corpus/templates/slides/app/components/layout/Layout.tsx +3 -0
  170. package/corpus/templates/slides/app/components/onboarding/FirstDeckOnboardingFlow.tsx +4 -0
  171. package/corpus/templates/slides/app/components/presentation/PresentationView.tsx +27 -1
  172. package/corpus/templates/slides/app/i18n/en-US.ts +1 -0
  173. package/corpus/templates/slides/app/lib/create-deck-generation.ts +1 -1
  174. package/corpus/templates/slides/app/lib/deck-preview-frame.ts +15 -0
  175. package/corpus/templates/slides/app/lib/deck-share-links.ts +9 -0
  176. package/corpus/templates/slides/app/lib/export-pptx-client.ts +89 -0
  177. package/corpus/templates/slides/app/lib/slide-animation-elements.ts +3 -0
  178. package/corpus/templates/slides/app/pages/Index.tsx +91 -1
  179. package/corpus/templates/slides/changelog/2026-08-06-clicking-the-gray-canvas-around-a-slide-clears-its-selection.md +6 -0
  180. package/corpus/templates/slides/changelog/2026-08-06-deck-thumbnails-keep-a-consistent-listing-frame-across-aspec.md +6 -0
  181. package/corpus/templates/slides/changelog/2026-08-06-deep-linked-decks-open-directly-instead-of-being-interrupted.md +6 -0
  182. package/corpus/templates/slides/changelog/2026-08-06-google-slides-exports-now-show-clear-import-steps-when-direc.md +6 -0
  183. package/corpus/templates/slides/changelog/2026-08-06-import-pdf-google-slides-and-powerpoint-decks-directly-from-.md +6 -0
  184. package/corpus/templates/slides/changelog/2026-08-06-imported-powerpoint-exports-keep-text-and-images-editable-an.md +6 -0
  185. package/corpus/templates/slides/changelog/2026-08-06-presentation-prompts-continue-adding-rendered-slides-until-t.md +6 -0
  186. package/corpus/templates/slides/changelog/2026-08-06-public-decks-now-share-read-only-presentation-links-by-defau.md +6 -0
  187. package/corpus/templates/slides/changelog/2026-08-06-slides-offers-a-direct-connect-google-button-when-a-drive-co.md +6 -0
  188. package/corpus/templates/slides/changelog/2026-08-06-slides-preserve-uploaded-pdf-layouts-accept-larger-reference.md +6 -0
  189. package/corpus/templates/slides/changelog/2026-08-06-styled-words-stay-part-of-their-text-box-instead-of-becoming.md +6 -0
  190. package/corpus/templates/slides/server/handlers/google-docs-auth.ts +7 -20
  191. package/corpus/templates/slides/server/handlers/import/html-converter.ts +236 -13
  192. package/corpus/templates/slides/server/handlers/import/pptx-assets.ts +67 -0
  193. package/corpus/templates/slides/server/handlers/import/pptx-parser.ts +2 -0
  194. package/corpus/templates/slides/server/handlers/uploads.ts +7 -3
  195. package/corpus/templates/slides/server/lib/chat-attachments.ts +6 -3
  196. package/corpus/templates/slides/server/lib/emails.ts +7 -2
  197. package/corpus/templates/slides/server/lib/google-docs-error.ts +50 -0
  198. package/corpus/templates/slides/server/lib/google-docs-oauth.ts +1 -0
  199. package/corpus/templates/slides/server/lib/import-asset-storage.ts +127 -0
  200. package/corpus/templates/slides/server/plugins/agent-chat.ts +4 -3
  201. package/corpus/templates/slides/server/routes/api/import-assets/[token].get.ts +70 -0
  202. package/corpus/templates/slides/shared/upload-types.ts +3 -0
  203. package/corpus/templates/tasks/.agents/skills/turn-into-app/SKILL.md +296 -0
  204. package/corpus/templates/tasks/.agents/skills/turn-into-app/agents/openai.yaml +4 -0
  205. package/corpus/templates/tasks/.agents/skills/turn-into-skill/SKILL.md +112 -0
  206. package/corpus/templates/tasks/.agents/skills/turn-into-skill/agents/openai.yaml +4 -0
  207. package/dist/agent/production-agent.d.ts +17 -0
  208. package/dist/agent/production-agent.js +72 -1
  209. package/dist/cli/agent-plugin.d.ts +112 -0
  210. package/dist/cli/agent-plugin.js +1081 -0
  211. package/dist/cli/app-skill.js +39 -1
  212. package/dist/cli/code-agent-executor.d.ts +3 -0
  213. package/dist/cli/code-agent-executor.js +51 -13
  214. package/dist/cli/index.js +13 -0
  215. package/dist/cli/templates-meta.js +1 -1
  216. package/dist/client/AgentPanel.d.ts +3 -1
  217. package/dist/client/AgentPanel.js +9 -2
  218. package/dist/client/AssistantChat.d.ts +8 -0
  219. package/dist/client/AssistantChat.js +23 -8
  220. package/dist/client/NewWorkspaceAppFlow.js +1 -0
  221. package/dist/client/agent-chat-adapter.js +123 -4
  222. package/dist/client/assistant-ui-recovery.d.ts +2 -1
  223. package/dist/client/assistant-ui-recovery.js +7 -3
  224. package/dist/client/onboarding/FirstRunOnboarding.js +11 -4
  225. package/dist/client/org/TeamPage.js +1 -1
  226. package/dist/client/require-session.js +1 -1
  227. package/dist/client/resources/McpConnectionSuggestion.d.ts +1 -0
  228. package/dist/client/resources/McpConnectionSuggestion.js +27 -10
  229. package/dist/client/resources/McpIntegrationDialog.js +77 -45
  230. package/dist/client/resources/mcp-integration-catalog.d.ts +13 -1
  231. package/dist/client/resources/mcp-integration-catalog.js +255 -2
  232. package/dist/client/resources/mcp-integration-logos.js +18 -2
  233. package/dist/client/settings/AccountSettingsCard.js +2 -1
  234. package/dist/collab/routes.d.ts +1 -1
  235. package/dist/collab/struct-routes.d.ts +1 -1
  236. package/dist/db/client.d.ts +9 -0
  237. package/dist/db/client.js +51 -16
  238. package/dist/db/create-get-db.js +2 -2
  239. package/dist/db/ddl-guard.d.ts +11 -10
  240. package/dist/db/ddl-guard.js +40 -12
  241. package/dist/deploy/build.d.ts +2 -0
  242. package/dist/deploy/build.js +97 -4
  243. package/dist/deploy/workspace-deploy.js +0 -2
  244. package/dist/file-upload/actions/upload-image.d.ts +1 -1
  245. package/dist/guards/no-env-credentials.js +9 -0
  246. package/dist/ingestion/index.d.ts +1 -1
  247. package/dist/ingestion/pptx.d.ts +68 -0
  248. package/dist/ingestion/pptx.js +660 -213
  249. package/dist/integrations/plugin.js +9 -6
  250. package/dist/localization/default-messages.d.ts +54 -0
  251. package/dist/localization/default-messages.js +57 -2
  252. package/dist/mcp/screen-memory-stdio.d.ts +7 -7
  253. package/dist/mcp-client/oauth-routes.d.ts +2 -0
  254. package/dist/mcp-client/oauth-routes.js +73 -6
  255. package/dist/notifications/routes.d.ts +1 -1
  256. package/dist/observability/routes.d.ts +3 -3
  257. package/dist/onboarding/app-profile.js +11 -0
  258. package/dist/resources/handlers.d.ts +1 -1
  259. package/dist/resources/store.js +15 -1
  260. package/dist/scripts/call-agent.js +34 -4
  261. package/dist/secrets/routes.d.ts +9 -9
  262. package/dist/server/agent-chat/action-filters-a2a.d.ts +1 -1
  263. package/dist/server/agent-chat/action-filters-a2a.js +36 -1
  264. package/dist/server/agent-chat-plugin.js +29 -8
  265. package/dist/server/agent-engine-api-key-route.d.ts +1 -1
  266. package/dist/server/auth.js +47 -11
  267. package/dist/server/better-auth-instance.js +5 -3
  268. package/dist/server/core-routes-plugin.d.ts +8 -1
  269. package/dist/server/core-routes-plugin.js +28 -3
  270. package/dist/server/credential-provider.d.ts +3 -3
  271. package/dist/server/credential-provider.js +90 -4
  272. package/dist/server/onboarding-html.d.ts +2 -0
  273. package/dist/server/onboarding-html.js +115 -29
  274. package/dist/server/self-dispatch.d.ts +5 -4
  275. package/dist/server/self-dispatch.js +25 -14
  276. package/dist/server/ssr-handler.d.ts +1 -1
  277. package/dist/server/ssr-handler.js +1 -1
  278. package/dist/server/transcribe-voice.d.ts +1 -1
  279. package/dist/shared/cache-control.d.ts +26 -2
  280. package/dist/shared/cache-control.js +43 -2
  281. package/dist/shared/password-policy.d.ts +3 -0
  282. package/dist/shared/password-policy.js +3 -0
  283. package/dist/sharing/actions/set-resource-visibility.js +16 -4
  284. package/dist/sharing/registry.d.ts +14 -0
  285. package/dist/styles/agent-native.css +6 -0
  286. package/dist/templates/chat/.agents/skills/turn-into-app/SKILL.md +296 -0
  287. package/dist/templates/chat/.agents/skills/turn-into-app/agents/openai.yaml +4 -0
  288. package/dist/templates/chat/.agents/skills/turn-into-skill/SKILL.md +112 -0
  289. package/dist/templates/chat/.agents/skills/turn-into-skill/agents/openai.yaml +4 -0
  290. package/dist/templates/default/.agents/skills/turn-into-app/SKILL.md +296 -0
  291. package/dist/templates/default/.agents/skills/turn-into-app/agents/openai.yaml +4 -0
  292. package/dist/templates/default/.agents/skills/turn-into-skill/SKILL.md +112 -0
  293. package/dist/templates/default/.agents/skills/turn-into-skill/agents/openai.yaml +4 -0
  294. package/dist/templates/headless/.agents/skills/turn-into-app/SKILL.md +296 -0
  295. package/dist/templates/headless/.agents/skills/turn-into-app/agents/openai.yaml +4 -0
  296. package/dist/templates/headless/.agents/skills/turn-into-skill/SKILL.md +112 -0
  297. package/dist/templates/headless/.agents/skills/turn-into-skill/agents/openai.yaml +4 -0
  298. package/dist/templates/workspace-core/.agents/skills/adding-workspace-apps/SKILL.md +6 -0
  299. package/dist/templates/workspace-core/.agents/skills/performance/SKILL.md +51 -0
  300. package/dist/templates/workspace-core/.agents/skills/turn-into-app/SKILL.md +296 -0
  301. package/dist/templates/workspace-core/.agents/skills/turn-into-app/agents/openai.yaml +4 -0
  302. package/dist/templates/workspace-core/.agents/skills/turn-into-skill/SKILL.md +112 -0
  303. package/dist/templates/workspace-core/.agents/skills/turn-into-skill/agents/openai.yaml +4 -0
  304. package/dist/templates/workspace-root/AGENTS.md +7 -0
  305. package/dist/user-profile/actions/change-password.js +8 -3
  306. package/dist/user-profile/actions/set-password.js +5 -1
  307. package/dist/vite/action-types-plugin.js +59 -0
  308. package/docs/content/skills-guide.mdx +13 -0
  309. package/package.json +6 -2
  310. package/src/templates/chat/.agents/skills/turn-into-app/SKILL.md +296 -0
  311. package/src/templates/chat/.agents/skills/turn-into-app/agents/openai.yaml +4 -0
  312. package/src/templates/chat/.agents/skills/turn-into-skill/SKILL.md +112 -0
  313. package/src/templates/chat/.agents/skills/turn-into-skill/agents/openai.yaml +4 -0
  314. package/src/templates/default/.agents/skills/turn-into-app/SKILL.md +296 -0
  315. package/src/templates/default/.agents/skills/turn-into-app/agents/openai.yaml +4 -0
  316. package/src/templates/default/.agents/skills/turn-into-skill/SKILL.md +112 -0
  317. package/src/templates/default/.agents/skills/turn-into-skill/agents/openai.yaml +4 -0
  318. package/src/templates/headless/.agents/skills/turn-into-app/SKILL.md +296 -0
  319. package/src/templates/headless/.agents/skills/turn-into-app/agents/openai.yaml +4 -0
  320. package/src/templates/headless/.agents/skills/turn-into-skill/SKILL.md +112 -0
  321. package/src/templates/headless/.agents/skills/turn-into-skill/agents/openai.yaml +4 -0
  322. package/src/templates/workspace-core/.agents/skills/adding-workspace-apps/SKILL.md +6 -0
  323. package/src/templates/workspace-core/.agents/skills/performance/SKILL.md +51 -0
  324. package/src/templates/workspace-core/.agents/skills/turn-into-app/SKILL.md +296 -0
  325. package/src/templates/workspace-core/.agents/skills/turn-into-app/agents/openai.yaml +4 -0
  326. package/src/templates/workspace-core/.agents/skills/turn-into-skill/SKILL.md +112 -0
  327. package/src/templates/workspace-core/.agents/skills/turn-into-skill/agents/openai.yaml +4 -0
  328. package/src/templates/workspace-root/AGENTS.md +7 -0
@@ -0,0 +1,296 @@
1
+ ---
2
+ name: turn-into-app
3
+ description: >-
4
+ Turn a proven thread, skill, or workflow into a runnable Agent-Native app
5
+ with simple buttons, visible agent steps, preview, and deployment handoff.
6
+ Use when a user invokes `/turn-into-app` or asks to make a workflow into an
7
+ app.
8
+ user-invocable: true
9
+ scope: both
10
+ metadata:
11
+ internal: true
12
+ ---
13
+
14
+ # Turn Into App
15
+
16
+ ## Default behavior
17
+
18
+ This is an end-to-end build skill, not a request for an app proposal.
19
+
20
+ - With no argument, use the current thread as the source. This is the normal
21
+ invocation at the end of a successful workflow.
22
+ - With a named skill or local workflow, read that source and package it
23
+ immediately, even at the beginning of a thread. For example,
24
+ `/turn-into-app /some-skill` means “turn `/some-skill` into an app.”
25
+ - With an attachment or path, read the supplied artifact as the source.
26
+ - Do not ask the user to restate context that is already in the thread.
27
+ - When invoked from an Agent-Native app, keep the current thread as the source
28
+ and use the available workspace/coding-agent handoff when the current runtime
29
+ cannot edit files. Do not claim the app exists without an actual path and
30
+ verification result.
31
+
32
+ ## Source support
33
+
34
+ Supported source paths today are the current Codex thread, a named skill, or a
35
+ local workflow/transcript supplied as a path or attachment. An exported
36
+ ChatGPT or Claude transcript can use the same local-file path today.
37
+
38
+ ChatGPT shared-conversation import and Claude web conversation/project import
39
+ are **coming soon**. Do not claim private web access, invent an importer, add
40
+ fake OAuth, or scrape a logged-in page without an explicit supported adapter.
41
+ If a user gives one of those URLs before an adapter exists, ask for an export or
42
+ transcript instead and treat it as imported source material.
43
+
44
+ Deliver a fresh app in a new directory, implement the repeatable workflow with
45
+ buttons and agent handoffs, start its dev server, verify the main path, and
46
+ continue through build/deployment handoff. Do not stop at a plan.
47
+
48
+ ## Source selection guard
49
+
50
+ The generated app must implement the concrete workflow found in the source. It
51
+ must not become a generic “what app do you want to make?” intake form.
52
+
53
+ - In a delegated or forked task, read the actual referenced source thread and
54
+ the latest explicit workflow direction in the current task. If they disagree,
55
+ the latest concrete workflow direction wins.
56
+ - Do not treat a thread that merely discusses building this skill as the product
57
+ source unless the user explicitly asks to appify that meta-workflow.
58
+ - If the source contains several workflows, choose the latest successful,
59
+ repeatable job that motivated the request and name it in the handoff. If no
60
+ concrete job can be identified, stop and report what is missing instead of
61
+ inventing an app-builder UI.
62
+
63
+ ## UI contract for generated apps
64
+
65
+ Generated apps must follow the shared Agent-Native surface model:
66
+
67
+ - Keep the domain workflow on a named route (`/workflow`, `/automations`,
68
+ `/block`, or the source's equivalent). Preserve the scaffold's full-page
69
+ chat route instead of replacing it with a domain form while leaving the
70
+ layout configured as a chat page.
71
+ - Use the right `AgentSidebar` for contextual AI. Every button-triggered
72
+ `sendToAgentChat` handoff should open or focus that sidebar and keep the user
73
+ on the current domain page.
74
+ - Use a sans-first SaaS hierarchy for the app shell. Choose a named visual
75
+ direction in `DESIGN.md` before styling: product mode, audience, palette
76
+ family, type treatment, composition, shape language, and anti-references.
77
+ One restrained editorial cue is welcome, but warm beige plus terracotta is
78
+ not the default and serif type belongs in content previews or a deliberate
79
+ brand moment rather than the whole tool.
80
+ - Preserve existing brand tokens. For a new unbranded app, choose a
81
+ product-fitting palette family and compare sibling apps before reusing their
82
+ accent. Keep shared semantic tokens and Agent-Native behavior consistent
83
+ while varying the visual world, density, composition, and shape language.
84
+ - Give the AgentSidebar a subtle surface or divider boundary so it is visually
85
+ distinct from the domain page without becoming a heavy panel wall.
86
+ - Every AI-labeled button must actually call `sendToAgentChat` with bounded
87
+ context and `openSidebar: true`. Keep `submit: true` for direct execution and
88
+ `submit: false` only when the user should edit the staged prompt first. Label
89
+ deterministic local actions as local, preview, or analyze instead of AI.
90
+ - Standalone apps that render `AgentSidebar` must keep one assistant-ui runtime
91
+ context. Pin the versions compatible with the installed core/toolkit peer
92
+ graph, and add Vite dedupe/aliases when linked or transitive packages resolve
93
+ duplicate assistant-ui modules. Verify a fresh AI handoff has no
94
+ `AssistantUiStaleIndexErrorBoundary` or stale-index console error.
95
+ - Make the left navigation describe domain destinations. Chat is a separate
96
+ destination, not the label for every app page.
97
+ - Start with one primary action and one compact state. Put setup choices,
98
+ advanced inputs, diagnostics, and long explanations behind progressive
99
+ disclosure or later workflow steps.
100
+ - Never use sparkle, wand, magic, robot, or similar decorative AI icons. Use a
101
+ message or neutral action icon, or no icon when the button label is enough.
102
+ - Before handoff, inspect the first viewport for text density, repeated cards,
103
+ unrelated forms, and generic helper copy. Remove what the user does not need
104
+ until the next decision.
105
+ - Run a `distill`, `typeset`, `colorize`, `layout`, `polish`, and `audit` pass
106
+ as useful named reviews. Make one intervention at a time and commit the
107
+ chosen direction rather than averaging several options into generic SaaS.
108
+ - For before/after or original/generated review, stack the source first and the
109
+ result second by default. Reserve side-by-side layouts for short content that
110
+ remains comfortable to scan at the target width.
111
+
112
+ ## 1. Extract the workflow
113
+
114
+ Read the full available source before coding. Reduce it to a short working
115
+ brief:
116
+
117
+ - the user and repeatable job;
118
+ - inputs and outputs;
119
+ - the 1-3 judgment-heavy agent moments;
120
+ - the buttons, review points, and retry states a user needs;
121
+ - data, permissions, integrations, and failure boundaries.
122
+
123
+ Preserve useful judgment from the source, but do not turn a one-off answer,
124
+ private data, or an unverified result into a product contract. If the source is
125
+ not available or does not contain a repeatable job, say what is missing rather
126
+ than claiming the app is complete.
127
+
128
+ ## 2. Create a fresh app
129
+
130
+ Choose a short slug from the workflow and create a new directory. Never
131
+ overwrite an existing app. If the user supplied a directory, use it; otherwise
132
+ use `apps/<slug>` inside an existing Agent-Native workspace, or a new sibling
133
+ directory when working outside one.
134
+
135
+ For a new UI-bearing standalone app, use the current Agent-Native scaffold and
136
+ then read the generated `AGENTS.md`:
137
+
138
+ ```bash
139
+ npx @agent-native/core@latest create <app-directory> --template chat
140
+ cd <app-directory>
141
+ pnpm install
142
+ ```
143
+
144
+ When working inside an existing Agent-Native workspace, create the app from
145
+ the workspace root instead:
146
+
147
+ ```bash
148
+ pnpm exec agent-native add-app <slug> --template=chat
149
+ ```
150
+
151
+ Do not use `create` for an existing workspace; it scaffolds a new standalone
152
+ workspace rather than adding an app to the current one.
153
+
154
+ Use a first-party template only when it materially fits the workflow. Keep the
155
+ new app independent from the source thread's working tree unless the user
156
+ explicitly asks to extend an existing app.
157
+
158
+ Read the generated `DESIGN.md` before building the first screen and fill in the
159
+ visual direction as part of the app brief. Do not copy the previous app's
160
+ palette just because its tokens are nearby.
161
+
162
+ ## 3. Turn the workflow into buttons and agent work
163
+
164
+ Implement the smallest useful surface around the extracted brief. The app
165
+ should make the repeated path obvious without hiding the agent's judgment:
166
+
167
+ - Give each important repeated moment a clear button, such as “Analyze,”
168
+ “Suggest options,” “Draft,” “Review,” or “Publish.” Use the source's actual
169
+ vocabulary when it is clear.
170
+ - Put deterministic reads, writes, approvals, and publishing in `actions/`
171
+ with `defineAction`. The UI and agent must call the same action surface.
172
+ - Use application state for the current screen, selected item, and focused
173
+ object so the agent can see where the user is.
174
+ - Use `sendToAgentChat({ message, context, submit: true })` for intentional
175
+ button-triggered agent work. Use `submit: false` when the user should review
176
+ or edit the proposed prompt first.
177
+ - Pass IDs, URLs, and bounded summaries in context. Do not paste large provider
178
+ dumps into prompts, call an LLM directly from the browser, or invent fake
179
+ progress.
180
+ - Make agent results visible, editable, retryable, and attributable. Keep
181
+ irreversible actions behind an explicit review or confirmation point.
182
+
183
+ Use the existing shadcn/ui primitives, Tabler icons, shared composer, and
184
+ optimistic action patterns. Do not add a parallel CRUD API route for an action.
185
+
186
+ ## 4. Keep onboarding shared
187
+
188
+ Use the framework's existing setup experience. The app should offer the normal
189
+ “Connect Builder” and “Add your own keys” paths for AI setup. Do not create a
190
+ second credential form or hardcode a provider key.
191
+
192
+ In local-development instructions, add a brief note that a developer can set
193
+ an environment variable such as `ANTHROPIC_API_KEY` or `OPENAI_API_KEY` before
194
+ starting the app; after restart, the setup prompt is no longer shown when the
195
+ key is available. Keep real secrets out of source, examples, and generated
196
+ content.
197
+
198
+ Turn-into-app apps should commit an `agent-native.json` app configuration so a
199
+ plain `pnpm dev` has the right first-run behavior without extra flags:
200
+
201
+ ```json
202
+ {
203
+ "version": 1,
204
+ "onboarding": {
205
+ "firstRun": {
206
+ "development": "connect",
207
+ "production": "connect-and-integrations"
208
+ }
209
+ }
210
+ }
211
+ ```
212
+
213
+ `connect` keeps the Connect Builder / Add your own keys choice visible and
214
+ skips only the generic “This app is an agent.” integrations catalog. The
215
+ production value includes that catalog for a hosted app. Do not replace this
216
+ with a local credential form or remove the shared onboarding. In development,
217
+ the shared Connect Builder card also explains the deployment-level
218
+ `ANTHROPIC_API_KEY` / `OPENAI_API_KEY` fallback and links to the full
219
+ environment-variable guide.
220
+
221
+ When the onboarding default needs code rather than a static mode map, add an
222
+ optional `agent-native.config.ts` with the same returned shape:
223
+
224
+ ```ts
225
+ import { defineAgentNativeConfig } from "@agent-native/core/config";
226
+
227
+ export default defineAgentNativeConfig(({ isDev }) => ({
228
+ version: 1,
229
+ onboarding: {
230
+ firstRun: isDev ? "connect" : "connect-and-integrations",
231
+ },
232
+ }));
233
+ ```
234
+
235
+ The Vite preset loads this file automatically on supported Node versions. The
236
+ JSON file remains the portable, inspectable fallback. See the [Agent-Native
237
+ app configuration guide](/docs/agent-native-config) for precedence, supported
238
+ modes, and the boundary between committed config and deployment secrets.
239
+
240
+ For an account-free local preview, create the ignored local `.env` file with
241
+ `AUTH_DISABLED=1` before starting the dev server. This is only for loopback
242
+ development; never commit or deploy this setting. AI/provider connections still
243
+ use the normal onboarding flow or the documented environment-variable keys.
244
+
245
+ ## 5. Run it immediately
246
+
247
+ From the new app directory:
248
+
249
+ ```bash
250
+ pnpm dev
251
+ ```
252
+
253
+ For a fresh local test app, use the ignored `.env` with `AUTH_DISABLED=1` so the
254
+ domain UI opens without an account; the committed app config makes shared
255
+ onboarding visible. Keep the process running so the user can try the app. Read
256
+ the actual server output and report the real local URL. If the app needs installation or a setup step,
257
+ complete it when possible and distinguish “not configured” from an unavailable
258
+ credential store.
259
+
260
+ ## 6. Verify, build, and deploy
261
+
262
+ Exercise the actual happy path, not only the source files:
263
+
264
+ 1. Load the reported URL and confirm the main route renders.
265
+ 2. Confirm the shared onboarding state or a configured local key.
266
+ 3. Click the primary workflow button and confirm the intended agent handoff.
267
+ Also click every other AI-labeled button and confirm it opens the same
268
+ contextual sidebar with the expected prompt or staged context.
269
+ 4. Confirm the result, action persistence, application state, and sync path.
270
+ 5. Check the dev output for browser/runtime errors, and capture input, result,
271
+ and agent-sidebar states so the complete flow is reviewable.
272
+
273
+ Then run the supported build. For a standalone app, use the generated app's
274
+ documented build and hosting path. For an app inside a workspace, use the
275
+ workspace deploy command, for example:
276
+
277
+ ```bash
278
+ npx @agent-native/core@latest build
279
+ npx @agent-native/core@latest deploy --preset netlify
280
+ ```
281
+
282
+ Use `vercel` or another supported preset when that is the configured target.
283
+ Attempt deployment when the user requested it or the project already has the
284
+ required provider configuration. If external authentication, a production
285
+ secret, or a hosting decision is missing, finish local verification and report
286
+ the exact remaining handoff without claiming a live deployment.
287
+
288
+ Label evidence separately: locally running, locally verified, build-ready,
289
+ deployed, and live-verified are different states.
290
+
291
+ ## Handoff
292
+
293
+ End with the new app directory, local URL, visual direction, what the buttons do,
294
+ account-free local-preview status, verification performed, deployment URL if it is real,
295
+ and one precise pending step when something could not be completed. Keep the
296
+ handoff short enough to use in a demo or recording.
@@ -0,0 +1,4 @@
1
+ interface:
2
+ display_name: "Turn Into App"
3
+ short_description: "Turn a thread or skill into a runnable app"
4
+ default_prompt: "Scan the current thread, turn the workflow into a new Agent-Native app with clear buttons, run it locally, verify it, and complete the deployment handoff."
@@ -0,0 +1,112 @@
1
+ ---
2
+ name: turn-into-skill
3
+ description: >-
4
+ Capture a proven thread or workflow as a reusable Agent-Native skill and save
5
+ it as a personal or organization resource. Use when a user invokes
6
+ `/turn-into-skill` or asks to save a workflow for reuse.
7
+ user-invocable: true
8
+ scope: both
9
+ metadata:
10
+ internal: true
11
+ ---
12
+
13
+ # Turn Into Skill
14
+
15
+ This is a packaging-and-save workflow, not a request for a proposal. A skill
16
+ is the lightweight path for a repeatable job that mostly needs guidance and
17
+ existing app actions. Use `turn-into-app` when the job needs a dedicated UI,
18
+ new persistent domain state, or a distinct app route.
19
+
20
+ ## Default behavior
21
+
22
+ - With no argument, use the current thread as the source.
23
+ - With a named skill, local workflow, transcript path, or attachment, read that
24
+ source and package it immediately.
25
+ - Do not ask the user to restate context already present in the source.
26
+ - Default to a personal skill unless the user explicitly asks for a team,
27
+ organization, or all-app skill, or passes `shared` as the scope.
28
+ - If the current thread only discusses creating a skill, do not package that
29
+ meta-workflow unless the user explicitly asks for it.
30
+ - Treat an explicit `/turn-into-skill` invocation as authorization to save the
31
+ resulting skill, but never overwrite an existing skill at the target path
32
+ unless the user clearly asks to update it.
33
+
34
+ ## 1. Extract the repeatable workflow
35
+
36
+ Read the full source before writing. Reduce it to a concise working brief:
37
+
38
+ - the repeatable job and the user outcome;
39
+ - when the skill should trigger;
40
+ - required inputs, context, permissions, and integrations;
41
+ - the ordered steps and the one to three judgment-heavy decisions;
42
+ - expected outputs, verification, retry, and failure boundaries.
43
+
44
+ Preserve the useful judgment from the source, not its transcript. Do not turn
45
+ one-off answers, private data, customer data, secrets, or unverified claims into
46
+ the skill's contract. If no repeatable job can be identified, stop and report
47
+ what is missing instead of inventing generic guidance.
48
+
49
+ ## 2. Author the skill
50
+
51
+ Create a single `SKILL.md` with:
52
+
53
+ - a short hyphen-case name and a description under 40 words that says what the
54
+ skill does and when to use it;
55
+ - `user-invocable: true` so it can be selected from the app's `/` picker;
56
+ - `scope: both` so the saved skill can guide the app runtime and connected
57
+ coding agents;
58
+ - concise sections for purpose, trigger, inputs, workflow, verification, and
59
+ failure or retry behavior.
60
+
61
+ Write imperative, reusable instructions. Keep exact action names, field rules,
62
+ and decision criteria when they matter. Use placeholders for credentials and
63
+ provider data. Do not paste the source transcript, large dumps, or ephemeral
64
+ thread details into the saved skill.
65
+
66
+ Choose a new slug when the target path already exists. Read an existing skill
67
+ before changing it, and update it only when the user explicitly requested an
68
+ update.
69
+
70
+ ## 3. Save at the requested scope
71
+
72
+ Skills are resources at `skills/<slug>/SKILL.md`.
73
+
74
+ | User intent | Save path |
75
+ | --- | --- |
76
+ | Just me or personal reuse | Use the `resources` tool with `action: "write"`, `scope: "personal"`, `visibility: "workspace"`, and the generated skill content. |
77
+ | Shared organization or app reuse | Use the `resources` tool with `action: "write"`, `scope: "shared"`, `visibility: "workspace"`, and the generated skill content. |
78
+ | Every workspace app | Use `create-workspace-resource` with `kind: "skill"`, `scope: "all"`, the generated path, name, description, and content. |
79
+ | Only selected apps | Use the workspace resource flow with `scope: "selected"` only when the user names the app set. |
80
+
81
+ For an all-app workspace skill, use the workspace resource action when it is
82
+ available. If the current app does not expose it, discover or delegate to the
83
+ configured Dispatch workspace agent. Do not silently save a personal skill and
84
+ report it as shared. If organization approval is queued, report that the skill
85
+ is pending approval rather than claiming it is active.
86
+
87
+ Set `visibility: "workspace"` for an explicitly requested saved skill. Use
88
+ `agent_scratch` only for temporary drafting, then promote or rewrite it before
89
+ reporting the skill as saved.
90
+
91
+ ## 4. Verify and hand off
92
+
93
+ After saving, read the exact `skills/<slug>/SKILL.md` resource back at the
94
+ target scope. Confirm that the frontmatter name, trigger description, and full
95
+ workflow body are present. If the read-back fails or the save returned an
96
+ approval request, say so plainly and include the actual pending state.
97
+
98
+ Report:
99
+
100
+ - the skill name and path;
101
+ - whether it is personal, organization-wide, or selected-app;
102
+ - the trigger users can invoke from `/`;
103
+ - the verification result and any approval or setup still required.
104
+
105
+ ## Related skills
106
+
107
+ - `turn-into-app` — package the same source as a UI-bearing app with buttons,
108
+ agent handoffs, and a domain workflow.
109
+ - `create-skill` — general skill format and authoring rules.
110
+ - `capture-learnings` — lightweight memory for preferences and corrections,
111
+ rather than reusable workflows.
112
+ - `self-modifying-code` — safety boundaries when the agent edits app source.
@@ -0,0 +1,4 @@
1
+ interface:
2
+ display_name: "Turn Into Skill"
3
+ short_description: "Save a proven workflow as a reusable skill"
4
+ default_prompt: "Read the current thread, distill the repeatable workflow into a concise user-invocable skill, save it at personal or organization scope, verify the saved resource, and report its path."
@@ -4,6 +4,10 @@ import {
4
4
  listProviderApiCatalog,
5
5
  } from "@agent-native/core/provider-api";
6
6
  import { getCredentialContext } from "@agent-native/core/server";
7
+ import {
8
+ findWorkspaceDispatchAgent,
9
+ getBuiltinAgents,
10
+ } from "@agent-native/core/server/agent-discovery";
7
11
  import { accessFilter } from "@agent-native/core/sharing";
8
12
  import {
9
13
  listWorkspaceConnectionProviderCatalogForApp,
@@ -30,13 +34,30 @@ const SUPPORTED_SOURCE_PROVIDERS = new Set([
30
34
  "github",
31
35
  ]);
32
36
 
33
- function dispatchIntegrationsHref(providerId: string) {
37
+ function dispatchBaseHref(): string | undefined {
38
+ const workspaceDispatch = findWorkspaceDispatchAgent();
39
+ if (workspaceDispatch?.url) return workspaceDispatch.url;
40
+
41
+ return getBuiltinAgents(APP_ID).find((agent) => agent.id === "dispatch")?.url;
42
+ }
43
+
44
+ function dispatchIntegrationsHref(providerId: string): string | undefined {
34
45
  const params = new URLSearchParams({
35
46
  provider: providerId,
36
47
  appId: APP_ID,
37
48
  returnTo: "ask",
38
49
  });
39
- return `/dispatch/integrations?${params.toString()}`;
50
+ const dispatchHref = dispatchBaseHref();
51
+ if (!dispatchHref) return undefined;
52
+ const base = dispatchHref
53
+ .replace(/\/(?:overview|apps)\/?$/, "")
54
+ .replace(/\/$/, "");
55
+ const path = `integrations?${params.toString()}`;
56
+ try {
57
+ return new URL(path, `${base}/`).toString();
58
+ } catch {
59
+ return `${base}/${path}`;
60
+ }
40
61
  }
41
62
 
42
63
  function providerApiConfigured({
@@ -262,7 +283,7 @@ async function listWorkspaceConnectionsForCatalog(): Promise<{
262
283
 
263
284
  export default defineAction({
264
285
  description:
265
- "Check reusable Brain source and provider API readiness before using a provider. Each provider reports whether authenticated access is configured and includes a focused setupLink. When a requested provider is unavailable, explain the missing connection and return its setupLink instead of attempting provider-api-request.",
286
+ "Check reusable Brain source and provider API readiness before using a provider. Each provider reports whether authenticated access is configured and includes an absolute Dispatch setupLink when shared setup is needed. When a requested provider is unavailable, explain the missing connection and return its setupLink instead of attempting provider-api-request; if the user is not a workspace admin, mention that a personal MCP connection may be available in chat.",
266
287
  schema: z.object({}),
267
288
  http: { method: "GET" },
268
289
  readOnly: true,
@@ -0,0 +1,44 @@
1
+ import {
2
+ defaultOrgAppLinks,
3
+ dispatchOverviewHref,
4
+ parseWorkspaceAppLinksJson,
5
+ } from "@agent-native/core/client/org";
6
+
7
+ type RuntimeEnv = Record<string, string | boolean | undefined>;
8
+
9
+ function runtimeEnv(): RuntimeEnv {
10
+ return (
11
+ (
12
+ import.meta as unknown as {
13
+ env?: RuntimeEnv;
14
+ }
15
+ ).env ?? {}
16
+ );
17
+ }
18
+
19
+ export function getDispatchHref(): string {
20
+ const env = runtimeEnv();
21
+ const apps =
22
+ parseWorkspaceAppLinksJson(
23
+ typeof env.VITE_AGENT_NATIVE_WORKSPACE_APPS_JSON === "string"
24
+ ? env.VITE_AGENT_NATIVE_WORKSPACE_APPS_JSON
25
+ : undefined,
26
+ env,
27
+ ) ?? defaultOrgAppLinks();
28
+ return dispatchOverviewHref(apps, env);
29
+ }
30
+
31
+ export function dispatchIntegrationsHref(
32
+ providerId: string,
33
+ dispatchHref: string,
34
+ ): string {
35
+ const params = new URLSearchParams({
36
+ provider: providerId,
37
+ appId: "brain",
38
+ returnTo: "ask",
39
+ });
40
+ const base = dispatchHref
41
+ .replace(/\/(?:overview|apps)\/?$/, "")
42
+ .replace(/\/$/, "");
43
+ return `${base}/integrations?${params.toString()}`;
44
+ }
@@ -105,6 +105,10 @@ import {
105
105
  sourceReviewRequired,
106
106
  sourceType,
107
107
  } from "@/lib/brain";
108
+ import {
109
+ dispatchIntegrationsHref,
110
+ getDispatchHref,
111
+ } from "@/lib/dispatch-links";
108
112
  import {
109
113
  createOneTimeIngestHandoff,
110
114
  type OneTimeIngestHandoff,
@@ -418,11 +422,6 @@ function isSourceProvider(providerId: string): providerId is Provider {
418
422
  return providers.some((provider) => provider.value === providerId);
419
423
  }
420
424
 
421
- function dispatchIntegrationsHref(providerId: string) {
422
- const params = new URLSearchParams({ provider: providerId, appId: "brain" });
423
- return `/dispatch/integrations?${params.toString()}`;
424
- }
425
-
426
425
  function grantStateLabel(state: BrainWorkspaceConnectionGrantState, t: BrainT) {
427
426
  switch (state) {
428
427
  case "connected":
@@ -1045,11 +1044,13 @@ function ProviderCatalog({
1045
1044
  providers: connectionProviders,
1046
1045
  loading,
1047
1046
  workspaceError,
1047
+ dispatchHref,
1048
1048
  onAddSource,
1049
1049
  }: {
1050
1050
  providers: BrainConnectionProvider[];
1051
1051
  loading: boolean;
1052
1052
  workspaceError?: string | null;
1053
+ dispatchHref: string;
1053
1054
  onAddSource: (provider: Provider) => void;
1054
1055
  }) {
1055
1056
  const t = useT();
@@ -1122,7 +1123,8 @@ function ProviderCatalog({
1122
1123
  provider.providerHealth?.status === "unhealthy" ||
1123
1124
  provider.providerHealth?.status === "missing_credentials");
1124
1125
  const providerSetupHref =
1125
- provider.setupLink ?? dispatchIntegrationsHref(provider.id);
1126
+ provider.setupLink ??
1127
+ dispatchIntegrationsHref(provider.id, dispatchHref);
1126
1128
  return (
1127
1129
  <div
1128
1130
  key={provider.id}
@@ -1411,7 +1413,11 @@ function ProviderCatalog({
1411
1413
  </Button>
1412
1414
  {grantState === "needs_grant" || providerNeedsSetup ? (
1413
1415
  <Button size="sm" variant="outline" asChild>
1414
- <a href={providerSetupHref}>
1416
+ <a
1417
+ href={providerSetupHref}
1418
+ target="_blank"
1419
+ rel="noopener noreferrer"
1420
+ >
1415
1421
  <IconExternalLink className="size-4" />
1416
1422
  {grantState === "needs_grant"
1417
1423
  ? t("sources.grantInDispatch")
@@ -1734,6 +1740,7 @@ function SourceListItem({
1734
1740
 
1735
1741
  export default function SourcesRoute() {
1736
1742
  const t = useT();
1743
+ const dispatchHref = getDispatchHref();
1737
1744
  const [params, setParams] = useSearchParams();
1738
1745
  const type = params.get("type") ?? "all";
1739
1746
  const [advancedOpen, setAdvancedOpen] = useState(false);
@@ -2149,6 +2156,7 @@ export default function SourcesRoute() {
2149
2156
  <ProviderCatalog
2150
2157
  providers={connectionProviders}
2151
2158
  loading={connectionProvidersQuery.isLoading}
2159
+ dispatchHref={dispatchHref}
2152
2160
  workspaceError={
2153
2161
  connectionProvidersQuery.data?.workspaceConnections?.error ??
2154
2162
  null
@@ -0,0 +1,6 @@
1
+ ---
2
+ type: fixed
3
+ date: 2026-08-06
4
+ ---
5
+
6
+ Brain provider setup links open Dispatch correctly in standalone and workspace deployments.
@@ -62,6 +62,7 @@ Important rules:
62
62
  - Company-tier knowledge may create a proposal instead of publishing immediately, depending on settings.
63
63
  - Slack and Granola sources are configurable v1 connectors. Generic capture and transcript import are always available.
64
64
  - Source/read actions are convenience readers, not provider capability limits. Before any provider API request, call list-connection-providers and inspect the matching provider. If configured is not true, do not attempt the request; explain that the connection needs setup or repair and include setupLink. Jira is queried on demand through the provider API rather than indexed as a Brain source. For ad hoc provider analysis that needs an endpoint, filter, payload, pagination mode, or API version not modeled by a Brain action, call provider-api-catalog/provider-api-docs, then provider-api-request against the provider's real HTTP API. Use connectionId for a specific shared grant and accountId for a specific OAuth account.
65
+ - Analytics owns live HubSpot, Gong, CRM, call, pipeline, and provider-backed analytics questions. For those requests, use describe-workspace-apps when needed and delegate a bounded task with call-agent so Analytics chooses the provider, credentials, and query shape. Do not duplicate Analytics provider queries in Brain. If shared access is unavailable, include the absolute setupLink and mention the personal MCP option when the chat offers it; personal MCP connections are user-scoped and do not require workspace-admin privileges.
65
66
  - For broad searches, joins, classification, source-corpus counts, or absence claims across provider records, fetch every relevant page or an explicitly bounded cohort, stage/save large responses with stageAs/saveToFile/fetchAllPages, then use query-staged-dataset or run-code to reduce the corpus. Report source, filters, row counts, pagination, truncation, and gaps.`,
66
67
  a2aMessageFallback: async ({ text }) => tryAnswerBrainA2AQuestion(text),
67
68
  mentionProviders: async () => {
@@ -15,6 +15,12 @@ Create, search, list, update, and delete calendar events. Events come from the G
15
15
 
16
16
  **Events live in Google Calendar, not SQL.** Never use `db-query` or `db-exec` to work with events. Always use the dedicated scripts which query the Google Calendar API directly.
17
17
 
18
+ Event detail panels and popovers expose `calendar.event-detail.bottom` as an
19
+ `ExtensionSlot` with `slotContext` containing the event id, title, times,
20
+ timezones, location, attendees, and account email. Use the first-party
21
+ attendee-timezone UI or a source edit for adornments next to guest rows; the
22
+ slot does not inject per-row UI.
23
+
18
24
  ## Scripts
19
25
 
20
26
  ### list-events
@@ -232,6 +238,25 @@ Update an existing Google Calendar event. Use the event `id` from `list-events`,
232
238
  `search-events`, or `get-event`. Always preserve the event's `accountEmail` on
233
239
  the update so multi-account calendars use the right connected account.
234
240
 
241
+ To move an existing event between connected Google account calendars, pass its
242
+ current account as `--accountEmail` and the destination account as
243
+ `--targetAccountEmail`:
244
+
245
+ ```bash
246
+ pnpm action update-event \
247
+ --id google-event-id \
248
+ --accountEmail work@example.com \
249
+ --targetAccountEmail personal@example.com
250
+ ```
251
+
252
+ The action creates a copy on the destination account and deletes the source
253
+ event. It preserves the supported event fields and creates a fresh Google Meet
254
+ when the original has one. Do not combine a calendar move with other event
255
+ field changes. If guests are present, pass `--sendUpdates all` or
256
+ `--sendUpdates none` explicitly when the desired notification behavior matters.
257
+ Moving an entire recurring series is not supported; use `--scope single` for
258
+ one occurrence.
259
+
235
260
  ```bash
236
261
  pnpm action update-event --id google-event-id --accountEmail secondary@example.com --title "New title"
237
262
  pnpm action update-event --id google-event-id --start 2026-04-03T10:00:00 --end 2026-04-03T10:30:00
@@ -385,6 +410,7 @@ When the user says:
385
410
  | "schedule a meeting" | `create-event --title ... --start ... --end ...` |
386
411
  | "draft an invite" | `manage-event-draft --action create --title ... --start ... --end ...` |
387
412
  | "schedule a Zoom meeting" | `create-event --title ... --start ... --end ... --addZoom=true` |
413
+ | "move an event to another connected calendar" | `update-event --id ... --accountEmail ... --targetAccountEmail ...` |
388
414
  | "move/rename/update a meeting" | `update-event --id ...` |
389
415
  | "add Zoom to this meeting" | `update-event --id ... --addZoom=true` |
390
416
  | "delete/remove a meeting" | `delete-event --id ...` |