@agent-native/core 0.15.13 → 0.16.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 (411) hide show
  1. package/README.md +37 -0
  2. package/dist/agent/app-model-defaults.d.ts +37 -0
  3. package/dist/agent/app-model-defaults.d.ts.map +1 -0
  4. package/dist/agent/app-model-defaults.js +136 -0
  5. package/dist/agent/app-model-defaults.js.map +1 -0
  6. package/dist/agent/engine/registry.d.ts +12 -7
  7. package/dist/agent/engine/registry.d.ts.map +1 -1
  8. package/dist/agent/engine/registry.js +28 -8
  9. package/dist/agent/engine/registry.js.map +1 -1
  10. package/dist/agent/production-agent.d.ts +2 -0
  11. package/dist/agent/production-agent.d.ts.map +1 -1
  12. package/dist/agent/production-agent.js +3 -1
  13. package/dist/agent/production-agent.js.map +1 -1
  14. package/dist/browser-sessions/actions.d.ts +7 -0
  15. package/dist/browser-sessions/actions.d.ts.map +1 -0
  16. package/dist/browser-sessions/actions.js +223 -0
  17. package/dist/browser-sessions/actions.js.map +1 -0
  18. package/dist/browser-sessions/routes.d.ts +7 -0
  19. package/dist/browser-sessions/routes.d.ts.map +1 -0
  20. package/dist/browser-sessions/routes.js +159 -0
  21. package/dist/browser-sessions/routes.js.map +1 -0
  22. package/dist/browser-sessions/store.d.ts +33 -0
  23. package/dist/browser-sessions/store.d.ts.map +1 -0
  24. package/dist/browser-sessions/store.js +506 -0
  25. package/dist/browser-sessions/store.js.map +1 -0
  26. package/dist/browser-sessions/types.d.ts +68 -0
  27. package/dist/browser-sessions/types.d.ts.map +1 -0
  28. package/dist/browser-sessions/types.js +2 -0
  29. package/dist/browser-sessions/types.js.map +1 -0
  30. package/dist/cli/code-agent-commands.d.ts +36 -0
  31. package/dist/cli/code-agent-commands.d.ts.map +1 -0
  32. package/dist/cli/code-agent-commands.js +192 -0
  33. package/dist/cli/code-agent-commands.js.map +1 -0
  34. package/dist/cli/code-agent-connector.d.ts +17 -0
  35. package/dist/cli/code-agent-connector.d.ts.map +1 -0
  36. package/dist/cli/code-agent-connector.js +724 -0
  37. package/dist/cli/code-agent-connector.js.map +1 -0
  38. package/dist/cli/code-agent-executor.d.ts +31 -0
  39. package/dist/cli/code-agent-executor.d.ts.map +1 -0
  40. package/dist/cli/code-agent-executor.js +921 -0
  41. package/dist/cli/code-agent-executor.js.map +1 -0
  42. package/dist/cli/code-agent-runs.d.ts +102 -0
  43. package/dist/cli/code-agent-runs.d.ts.map +1 -0
  44. package/dist/cli/code-agent-runs.js +277 -0
  45. package/dist/cli/code-agent-runs.js.map +1 -0
  46. package/dist/cli/code.d.ts +66 -0
  47. package/dist/cli/code.d.ts.map +1 -0
  48. package/dist/cli/code.js +1306 -0
  49. package/dist/cli/code.js.map +1 -0
  50. package/dist/cli/create.d.ts +2 -1
  51. package/dist/cli/create.d.ts.map +1 -1
  52. package/dist/cli/create.js +11 -1
  53. package/dist/cli/create.js.map +1 -1
  54. package/dist/cli/index.js +26 -1
  55. package/dist/cli/index.js.map +1 -1
  56. package/dist/cli/migrate.d.ts +27 -0
  57. package/dist/cli/migrate.d.ts.map +1 -1
  58. package/dist/cli/migrate.js +1328 -20
  59. package/dist/cli/migrate.js.map +1 -1
  60. package/dist/cli/templates-meta.d.ts.map +1 -1
  61. package/dist/cli/templates-meta.js +26 -2
  62. package/dist/cli/templates-meta.js.map +1 -1
  63. package/dist/cli/workspacify.d.ts +2 -0
  64. package/dist/cli/workspacify.d.ts.map +1 -1
  65. package/dist/cli/workspacify.js +2 -1
  66. package/dist/cli/workspacify.js.map +1 -1
  67. package/dist/client/AgentNative.d.ts +32 -0
  68. package/dist/client/AgentNative.d.ts.map +1 -0
  69. package/dist/client/AgentNative.js +79 -0
  70. package/dist/client/AgentNative.js.map +1 -0
  71. package/dist/client/AgentNativeEmbedded.d.ts +47 -0
  72. package/dist/client/AgentNativeEmbedded.d.ts.map +1 -0
  73. package/dist/client/AgentNativeEmbedded.js +148 -0
  74. package/dist/client/AgentNativeEmbedded.js.map +1 -0
  75. package/dist/client/AgentNativeFrame.d.ts +25 -0
  76. package/dist/client/AgentNativeFrame.d.ts.map +1 -0
  77. package/dist/client/AgentNativeFrame.js +68 -0
  78. package/dist/client/AgentNativeFrame.js.map +1 -0
  79. package/dist/client/AgentPanel.d.ts +19 -2
  80. package/dist/client/AgentPanel.d.ts.map +1 -1
  81. package/dist/client/AgentPanel.js +15 -4
  82. package/dist/client/AgentPanel.js.map +1 -1
  83. package/dist/client/AssistantChat.d.ts +1 -1
  84. package/dist/client/AssistantChat.d.ts.map +1 -1
  85. package/dist/client/AssistantChat.js +79 -48
  86. package/dist/client/AssistantChat.js.map +1 -1
  87. package/dist/client/MultiTabAssistantChat.d.ts.map +1 -1
  88. package/dist/client/MultiTabAssistantChat.js +2 -1
  89. package/dist/client/MultiTabAssistantChat.js.map +1 -1
  90. package/dist/client/NewWorkspaceAppFlow.d.ts.map +1 -1
  91. package/dist/client/NewWorkspaceAppFlow.js +3 -2
  92. package/dist/client/NewWorkspaceAppFlow.js.map +1 -1
  93. package/dist/client/browser-session-bridge.d.ts +44 -0
  94. package/dist/client/browser-session-bridge.d.ts.map +1 -0
  95. package/dist/client/browser-session-bridge.js +339 -0
  96. package/dist/client/browser-session-bridge.js.map +1 -0
  97. package/dist/client/client-action.d.ts +7 -0
  98. package/dist/client/client-action.d.ts.map +1 -0
  99. package/dist/client/client-action.js +4 -0
  100. package/dist/client/client-action.js.map +1 -0
  101. package/dist/client/components/ui/tooltip.d.ts.map +1 -1
  102. package/dist/client/components/ui/tooltip.js +1 -1
  103. package/dist/client/components/ui/tooltip.js.map +1 -1
  104. package/dist/client/composer/AgentComposerFrame.d.ts +17 -0
  105. package/dist/client/composer/AgentComposerFrame.d.ts.map +1 -0
  106. package/dist/client/composer/AgentComposerFrame.js +14 -0
  107. package/dist/client/composer/AgentComposerFrame.js.map +1 -0
  108. package/dist/client/composer/MentionPopover.d.ts.map +1 -1
  109. package/dist/client/composer/MentionPopover.js +2 -2
  110. package/dist/client/composer/MentionPopover.js.map +1 -1
  111. package/dist/client/composer/PromptComposer.d.ts +35 -2
  112. package/dist/client/composer/PromptComposer.d.ts.map +1 -1
  113. package/dist/client/composer/PromptComposer.js +31 -17
  114. package/dist/client/composer/PromptComposer.js.map +1 -1
  115. package/dist/client/composer/TiptapComposer.d.ts +20 -2
  116. package/dist/client/composer/TiptapComposer.d.ts.map +1 -1
  117. package/dist/client/composer/TiptapComposer.js +112 -22
  118. package/dist/client/composer/TiptapComposer.js.map +1 -1
  119. package/dist/client/composer/index.d.ts +3 -2
  120. package/dist/client/composer/index.d.ts.map +1 -1
  121. package/dist/client/composer/index.js +1 -0
  122. package/dist/client/composer/index.js.map +1 -1
  123. package/dist/client/composer/types.d.ts +1 -0
  124. package/dist/client/composer/types.d.ts.map +1 -1
  125. package/dist/client/composer/types.js.map +1 -1
  126. package/dist/client/extensions/AgentNativeExtensionFrame.d.ts +58 -0
  127. package/dist/client/extensions/AgentNativeExtensionFrame.d.ts.map +1 -0
  128. package/dist/client/extensions/AgentNativeExtensionFrame.e2e-host.d.ts +2 -0
  129. package/dist/client/extensions/AgentNativeExtensionFrame.e2e-host.d.ts.map +1 -0
  130. package/dist/client/extensions/AgentNativeExtensionFrame.e2e-host.js +110 -0
  131. package/dist/client/extensions/AgentNativeExtensionFrame.e2e-host.js.map +1 -0
  132. package/dist/client/extensions/AgentNativeExtensionFrame.js +354 -0
  133. package/dist/client/extensions/AgentNativeExtensionFrame.js.map +1 -0
  134. package/dist/client/extensions/AgentNativeExtensionFrame.spec.d.ts +2 -0
  135. package/dist/client/extensions/AgentNativeExtensionFrame.spec.d.ts.map +1 -0
  136. package/dist/client/extensions/AgentNativeExtensionFrame.spec.js +68 -0
  137. package/dist/client/extensions/AgentNativeExtensionFrame.spec.js.map +1 -0
  138. package/dist/client/extensions/agent-native-extension-runtime.d.ts +69 -0
  139. package/dist/client/extensions/agent-native-extension-runtime.d.ts.map +1 -0
  140. package/dist/client/extensions/agent-native-extension-runtime.js +348 -0
  141. package/dist/client/extensions/agent-native-extension-runtime.js.map +1 -0
  142. package/dist/client/extensions/index.d.ts +2 -0
  143. package/dist/client/extensions/index.d.ts.map +1 -1
  144. package/dist/client/extensions/index.js +2 -0
  145. package/dist/client/extensions/index.js.map +1 -1
  146. package/dist/client/extensions/portable-extension.d.ts +86 -0
  147. package/dist/client/extensions/portable-extension.d.ts.map +1 -0
  148. package/dist/client/extensions/portable-extension.js +480 -0
  149. package/dist/client/extensions/portable-extension.js.map +1 -0
  150. package/dist/client/host-bridge.d.ts +266 -0
  151. package/dist/client/host-bridge.d.ts.map +1 -0
  152. package/dist/client/host-bridge.js +745 -0
  153. package/dist/client/host-bridge.js.map +1 -0
  154. package/dist/client/host-tools.d.ts +40 -0
  155. package/dist/client/host-tools.d.ts.map +1 -0
  156. package/dist/client/host-tools.js +94 -0
  157. package/dist/client/host-tools.js.map +1 -0
  158. package/dist/client/index.d.ts +13 -2
  159. package/dist/client/index.d.ts.map +1 -1
  160. package/dist/client/index.js +11 -2
  161. package/dist/client/index.js.map +1 -1
  162. package/dist/client/resources/BuiltinCapabilityDetail.d.ts +10 -0
  163. package/dist/client/resources/BuiltinCapabilityDetail.d.ts.map +1 -0
  164. package/dist/client/resources/BuiltinCapabilityDetail.js +51 -0
  165. package/dist/client/resources/BuiltinCapabilityDetail.js.map +1 -0
  166. package/dist/client/resources/ResourceEditor.d.ts +3 -1
  167. package/dist/client/resources/ResourceEditor.d.ts.map +1 -1
  168. package/dist/client/resources/ResourceEditor.js +40 -17
  169. package/dist/client/resources/ResourceEditor.js.map +1 -1
  170. package/dist/client/resources/ResourceTree.d.ts.map +1 -1
  171. package/dist/client/resources/ResourceTree.js +23 -2
  172. package/dist/client/resources/ResourceTree.js.map +1 -1
  173. package/dist/client/resources/ResourcesPanel.d.ts.map +1 -1
  174. package/dist/client/resources/ResourcesPanel.js +77 -17
  175. package/dist/client/resources/ResourcesPanel.js.map +1 -1
  176. package/dist/client/resources/index.d.ts +1 -0
  177. package/dist/client/resources/index.d.ts.map +1 -1
  178. package/dist/client/resources/index.js +1 -0
  179. package/dist/client/resources/index.js.map +1 -1
  180. package/dist/client/resources/use-builtin-capabilities.d.ts +62 -0
  181. package/dist/client/resources/use-builtin-capabilities.d.ts.map +1 -0
  182. package/dist/client/resources/use-builtin-capabilities.js +54 -0
  183. package/dist/client/resources/use-builtin-capabilities.js.map +1 -0
  184. package/dist/client/resources/use-resources.d.ts +30 -2
  185. package/dist/client/resources/use-resources.d.ts.map +1 -1
  186. package/dist/client/resources/use-resources.js +42 -1
  187. package/dist/client/resources/use-resources.js.map +1 -1
  188. package/dist/client/settings/SettingsPanel.d.ts.map +1 -1
  189. package/dist/client/settings/SettingsPanel.js +151 -2
  190. package/dist/client/settings/SettingsPanel.js.map +1 -1
  191. package/dist/client/use-chat-models.d.ts.map +1 -1
  192. package/dist/client/use-chat-models.js +20 -0
  193. package/dist/client/use-chat-models.js.map +1 -1
  194. package/dist/client/use-chat-threads.d.ts.map +1 -1
  195. package/dist/client/use-chat-threads.js +46 -2
  196. package/dist/client/use-chat-threads.js.map +1 -1
  197. package/dist/client/use-chat-threads.spec.js +77 -0
  198. package/dist/client/use-chat-threads.spec.js.map +1 -1
  199. package/dist/code-agents/index.d.ts +4 -0
  200. package/dist/code-agents/index.d.ts.map +1 -0
  201. package/dist/code-agents/index.js +4 -0
  202. package/dist/code-agents/index.js.map +1 -0
  203. package/dist/connections/catalog.d.ts +134 -0
  204. package/dist/connections/catalog.d.ts.map +1 -0
  205. package/dist/connections/catalog.js +180 -0
  206. package/dist/connections/catalog.js.map +1 -0
  207. package/dist/connections/index.d.ts +2 -0
  208. package/dist/connections/index.d.ts.map +1 -0
  209. package/dist/connections/index.js +2 -0
  210. package/dist/connections/index.js.map +1 -0
  211. package/dist/extensions/change-marker.d.ts +10 -0
  212. package/dist/extensions/change-marker.d.ts.map +1 -0
  213. package/dist/extensions/change-marker.js +42 -0
  214. package/dist/extensions/change-marker.js.map +1 -0
  215. package/dist/extensions/routes.d.ts.map +1 -1
  216. package/dist/extensions/routes.js +1 -7
  217. package/dist/extensions/routes.js.map +1 -1
  218. package/dist/extensions/schema.d.ts +1 -0
  219. package/dist/extensions/schema.d.ts.map +1 -1
  220. package/dist/extensions/schema.js +1 -0
  221. package/dist/extensions/schema.js.map +1 -1
  222. package/dist/extensions/slots/routes.js +1 -1
  223. package/dist/extensions/slots/routes.js.map +1 -1
  224. package/dist/extensions/store.d.ts +3 -0
  225. package/dist/extensions/store.d.ts.map +1 -1
  226. package/dist/extensions/store.js +112 -4
  227. package/dist/extensions/store.js.map +1 -1
  228. package/dist/index.d.ts +4 -1
  229. package/dist/index.d.ts.map +1 -1
  230. package/dist/index.js +6 -1
  231. package/dist/index.js.map +1 -1
  232. package/dist/integrations/adapters/telegram.d.ts.map +1 -1
  233. package/dist/integrations/adapters/telegram.js +1 -0
  234. package/dist/integrations/adapters/telegram.js.map +1 -1
  235. package/dist/integrations/index.d.ts +5 -1
  236. package/dist/integrations/index.d.ts.map +1 -1
  237. package/dist/integrations/index.js +4 -1
  238. package/dist/integrations/index.js.map +1 -1
  239. package/dist/integrations/plugin.d.ts +8 -0
  240. package/dist/integrations/plugin.d.ts.map +1 -1
  241. package/dist/integrations/plugin.js +760 -32
  242. package/dist/integrations/plugin.js.map +1 -1
  243. package/dist/integrations/remote-commands-store.d.ts +36 -0
  244. package/dist/integrations/remote-commands-store.d.ts.map +1 -0
  245. package/dist/integrations/remote-commands-store.js +273 -0
  246. package/dist/integrations/remote-commands-store.js.map +1 -0
  247. package/dist/integrations/remote-devices-store.d.ts +43 -0
  248. package/dist/integrations/remote-devices-store.d.ts.map +1 -0
  249. package/dist/integrations/remote-devices-store.js +315 -0
  250. package/dist/integrations/remote-devices-store.js.map +1 -0
  251. package/dist/integrations/remote-push-store.d.ts +37 -0
  252. package/dist/integrations/remote-push-store.d.ts.map +1 -0
  253. package/dist/integrations/remote-push-store.js +299 -0
  254. package/dist/integrations/remote-push-store.js.map +1 -0
  255. package/dist/integrations/remote-retry-job.d.ts +7 -0
  256. package/dist/integrations/remote-retry-job.d.ts.map +1 -0
  257. package/dist/integrations/remote-retry-job.js +45 -0
  258. package/dist/integrations/remote-retry-job.js.map +1 -0
  259. package/dist/integrations/remote-run-events-store.d.ts +18 -0
  260. package/dist/integrations/remote-run-events-store.d.ts.map +1 -0
  261. package/dist/integrations/remote-run-events-store.js +82 -0
  262. package/dist/integrations/remote-run-events-store.js.map +1 -0
  263. package/dist/integrations/remote-types.d.ts +101 -0
  264. package/dist/integrations/remote-types.d.ts.map +1 -0
  265. package/dist/integrations/remote-types.js +2 -0
  266. package/dist/integrations/remote-types.js.map +1 -0
  267. package/dist/integrations/webhook-handler.d.ts +2 -0
  268. package/dist/integrations/webhook-handler.d.ts.map +1 -1
  269. package/dist/integrations/webhook-handler.js +4 -1
  270. package/dist/integrations/webhook-handler.js.map +1 -1
  271. package/dist/jobs/scheduler.d.ts +4 -2
  272. package/dist/jobs/scheduler.d.ts.map +1 -1
  273. package/dist/jobs/scheduler.js +9 -3
  274. package/dist/jobs/scheduler.js.map +1 -1
  275. package/dist/mcp-client/builtin-capabilities.d.ts +20 -0
  276. package/dist/mcp-client/builtin-capabilities.d.ts.map +1 -0
  277. package/dist/mcp-client/builtin-capabilities.js +75 -0
  278. package/dist/mcp-client/builtin-capabilities.js.map +1 -0
  279. package/dist/mcp-client/builtin-store.d.ts +10 -0
  280. package/dist/mcp-client/builtin-store.d.ts.map +1 -0
  281. package/dist/mcp-client/builtin-store.js +55 -0
  282. package/dist/mcp-client/builtin-store.js.map +1 -0
  283. package/dist/mcp-client/index.d.ts +3 -1
  284. package/dist/mcp-client/index.d.ts.map +1 -1
  285. package/dist/mcp-client/index.js +3 -1
  286. package/dist/mcp-client/index.js.map +1 -1
  287. package/dist/mcp-client/routes.d.ts +28 -0
  288. package/dist/mcp-client/routes.d.ts.map +1 -1
  289. package/dist/mcp-client/routes.js +195 -1
  290. package/dist/mcp-client/routes.js.map +1 -1
  291. package/dist/org/context.d.ts.map +1 -1
  292. package/dist/org/context.js +34 -0
  293. package/dist/org/context.js.map +1 -1
  294. package/dist/resources/handlers.d.ts +4 -0
  295. package/dist/resources/handlers.d.ts.map +1 -1
  296. package/dist/resources/handlers.js +46 -7
  297. package/dist/resources/handlers.js.map +1 -1
  298. package/dist/resources/script-helpers.d.ts +8 -1
  299. package/dist/resources/script-helpers.d.ts.map +1 -1
  300. package/dist/resources/script-helpers.js +18 -8
  301. package/dist/resources/script-helpers.js.map +1 -1
  302. package/dist/resources/store.d.ts +19 -0
  303. package/dist/resources/store.d.ts.map +1 -1
  304. package/dist/resources/store.js +86 -3
  305. package/dist/resources/store.js.map +1 -1
  306. package/dist/scripts/agent-engines/list-agent-engines.d.ts +1 -1
  307. package/dist/scripts/agent-engines/list-agent-engines.d.ts.map +1 -1
  308. package/dist/scripts/agent-engines/list-agent-engines.js +18 -7
  309. package/dist/scripts/agent-engines/list-agent-engines.js.map +1 -1
  310. package/dist/scripts/agent-engines/manage-agent-engine.d.ts.map +1 -1
  311. package/dist/scripts/agent-engines/manage-agent-engine.js +100 -7
  312. package/dist/scripts/agent-engines/manage-agent-engine.js.map +1 -1
  313. package/dist/scripts/resources/delete.d.ts.map +1 -1
  314. package/dist/scripts/resources/delete.js +4 -1
  315. package/dist/scripts/resources/delete.js.map +1 -1
  316. package/dist/scripts/resources/effective.d.ts +11 -0
  317. package/dist/scripts/resources/effective.d.ts.map +1 -0
  318. package/dist/scripts/resources/effective.js +54 -0
  319. package/dist/scripts/resources/effective.js.map +1 -0
  320. package/dist/scripts/resources/index.d.ts.map +1 -1
  321. package/dist/scripts/resources/index.js +1 -0
  322. package/dist/scripts/resources/index.js.map +1 -1
  323. package/dist/scripts/resources/list.d.ts +1 -1
  324. package/dist/scripts/resources/list.d.ts.map +1 -1
  325. package/dist/scripts/resources/list.js +17 -5
  326. package/dist/scripts/resources/list.js.map +1 -1
  327. package/dist/scripts/resources/read.d.ts +1 -1
  328. package/dist/scripts/resources/read.d.ts.map +1 -1
  329. package/dist/scripts/resources/read.js +20 -5
  330. package/dist/scripts/resources/read.js.map +1 -1
  331. package/dist/scripts/resources/write.d.ts.map +1 -1
  332. package/dist/scripts/resources/write.js +4 -1
  333. package/dist/scripts/resources/write.js.map +1 -1
  334. package/dist/scripts/runner.d.ts +11 -1
  335. package/dist/scripts/runner.d.ts.map +1 -1
  336. package/dist/scripts/runner.js +75 -27
  337. package/dist/scripts/runner.js.map +1 -1
  338. package/dist/server/action-discovery.d.ts.map +1 -1
  339. package/dist/server/action-discovery.js +5 -0
  340. package/dist/server/action-discovery.js.map +1 -1
  341. package/dist/server/agent-chat-plugin.d.ts +24 -0
  342. package/dist/server/agent-chat-plugin.d.ts.map +1 -1
  343. package/dist/server/agent-chat-plugin.js +608 -54
  344. package/dist/server/agent-chat-plugin.js.map +1 -1
  345. package/dist/server/core-routes-plugin.d.ts.map +1 -1
  346. package/dist/server/core-routes-plugin.js +2 -0
  347. package/dist/server/core-routes-plugin.js.map +1 -1
  348. package/dist/server/embedded.d.ts +72 -0
  349. package/dist/server/embedded.d.ts.map +1 -0
  350. package/dist/server/embedded.js +119 -0
  351. package/dist/server/embedded.js.map +1 -0
  352. package/dist/server/index.d.ts +8 -1
  353. package/dist/server/index.d.ts.map +1 -1
  354. package/dist/server/index.js +7 -1
  355. package/dist/server/index.js.map +1 -1
  356. package/dist/server/poll.d.ts.map +1 -1
  357. package/dist/server/poll.js +184 -13
  358. package/dist/server/poll.js.map +1 -1
  359. package/dist/server/resources-plugin.d.ts.map +1 -1
  360. package/dist/server/resources-plugin.js +11 -2
  361. package/dist/server/resources-plugin.js.map +1 -1
  362. package/dist/sharing/actions/extension-change.d.ts +4 -0
  363. package/dist/sharing/actions/extension-change.d.ts.map +1 -0
  364. package/dist/sharing/actions/extension-change.js +13 -0
  365. package/dist/sharing/actions/extension-change.js.map +1 -0
  366. package/dist/sharing/actions/set-resource-visibility.d.ts.map +1 -1
  367. package/dist/sharing/actions/set-resource-visibility.js +3 -0
  368. package/dist/sharing/actions/set-resource-visibility.js.map +1 -1
  369. package/dist/sharing/actions/share-resource.d.ts.map +1 -1
  370. package/dist/sharing/actions/share-resource.js +4 -0
  371. package/dist/sharing/actions/share-resource.js.map +1 -1
  372. package/dist/sharing/actions/unshare-resource.d.ts.map +1 -1
  373. package/dist/sharing/actions/unshare-resource.js +3 -0
  374. package/dist/sharing/actions/unshare-resource.js.map +1 -1
  375. package/dist/templates/default/AGENTS.md +3 -3
  376. package/dist/templates/workspace-core/AGENTS.md +7 -0
  377. package/dist/templates/workspace-root/AGENTS.md +7 -0
  378. package/dist/templates/workspace-root/README.md +25 -0
  379. package/dist/triggers/dispatcher.d.ts +3 -1
  380. package/dist/triggers/dispatcher.d.ts.map +1 -1
  381. package/dist/triggers/dispatcher.js +9 -3
  382. package/dist/triggers/dispatcher.js.map +1 -1
  383. package/dist/workspace-connections/index.d.ts +2 -0
  384. package/dist/workspace-connections/index.d.ts.map +1 -0
  385. package/dist/workspace-connections/index.js +2 -0
  386. package/dist/workspace-connections/index.js.map +1 -0
  387. package/dist/workspace-connections/store.d.ts +229 -0
  388. package/dist/workspace-connections/store.d.ts.map +1 -0
  389. package/dist/workspace-connections/store.js +938 -0
  390. package/dist/workspace-connections/store.js.map +1 -0
  391. package/docs/content/agent-teams.md +6 -0
  392. package/docs/content/cloneable-saas.md +1 -0
  393. package/docs/content/code-agents-ui.md +261 -0
  394. package/docs/content/dispatch.md +40 -3
  395. package/docs/content/embedding-sdk.md +459 -0
  396. package/docs/content/faq.md +1 -0
  397. package/docs/content/getting-started.md +1 -0
  398. package/docs/content/mcp-clients.md +41 -3
  399. package/docs/content/migration-workbench.md +237 -54
  400. package/docs/content/multi-app-workspace.md +41 -0
  401. package/docs/content/multi-tenancy.md +1 -1
  402. package/docs/content/template-brain.md +418 -0
  403. package/docs/content/template-dispatch.md +30 -0
  404. package/docs/content/workspace-connections.md +509 -0
  405. package/docs/content/workspace-management.md +12 -12
  406. package/docs/content/workspace.md +180 -40
  407. package/package.json +7 -2
  408. package/src/templates/default/AGENTS.md +3 -3
  409. package/src/templates/workspace-core/AGENTS.md +7 -0
  410. package/src/templates/workspace-root/AGENTS.md +7 -0
  411. package/src/templates/workspace-root/README.md +25 -0
@@ -32,33 +32,39 @@ The **Workspace** tab in the agent sidebar is where you and the agent share pers
32
32
  - Create files with the `+` menu. Upload with the upload button. Edit inline (visual or code view).
33
33
  - **Personal** is just you. **Shared** is your team/org.
34
34
  - The agent can read, write, and rename any of these files as part of a conversation.
35
- - Special files the agent preloads: shared `AGENTS.md`, shared `LEARNINGS.md`, and personal structured memory at `memory/MEMORY.md`.
35
+ - Special files the agent preloads: shared `AGENTS.md`, shared `instructions/*.md`, shared `LEARNINGS.md`, and personal structured memory at `memory/MEMORY.md`.
36
+ - Shared reference resources such as `context/brand-guidelines.md` are indexed for the agent; it reads the relevant file when a task may depend on company, brand, positioning, persona, product, or domain context.
36
37
 
37
38
  ## What goes in here? {#what-goes-in-here}
38
39
 
39
- | File / path | What it's for |
40
- | --------------------------- | ------------------------------------------------------------------------------------------------------ |
41
- | `AGENTS.md` (Shared) | Team instructions the agent reads every turn — tone, rules, domain context, skill references. |
42
- | `LEARNINGS.md` (Shared) | Shared corrections, conventions, and durable project memory the agent preloads. |
43
- | `memory/MEMORY.md` | Personal structured memory the chat preloads for the current user. |
44
- | `skills/<name>.md` | Focused domain guidance the agent pulls in on demand (invoked with `/` slash commands). |
45
- | `agents/<name>.md` | **Custom agents** reusable sub-agent profiles the agent can delegate to (invoked with `@` mentions). |
46
- | `remote-agents/<name>.json` | A2A manifests for connected remote agents edited via a form, not raw JSON. |
47
- | `jobs/<name>.md` | Scheduled tasks that run on a cron (see the recurring-jobs docs). |
48
- | Anything else | Notes, prompts, config, dataset snippets any text file. |
40
+ | File / path | What it's for |
41
+ | --------------------------- | ------------------------------------------------------------------------------------------------------- |
42
+ | `AGENTS.md` (Shared) | Team instructions the agent reads every turn — tone, rules, domain context, skill references. |
43
+ | `instructions/<name>.md` | Additional always-on shared guardrails loaded every turn. Good for compliance, brand voice, and policy. |
44
+ | `LEARNINGS.md` (Shared) | Shared corrections, conventions, and durable project memory the agent preloads. |
45
+ | `memory/MEMORY.md` | Personal structured memory the chat preloads for the current user. |
46
+ | `skills/<name>/SKILL.md` | Focused domain guidance the agent pulls in on demand (invoked with `/` slash commands). |
47
+ | `agents/<name>.md` | **Custom agents** reusable sub-agent profiles the agent can delegate to (invoked with `@` mentions). |
48
+ | `remote-agents/<name>.json` | A2A manifests for connected remote agents — edited via a form, not raw JSON. |
49
+ | `jobs/<name>.md` | Scheduled tasks that run on a cron (see the recurring-jobs docs). |
50
+ | `context/<name>.md` | Shared reference material: brand guidelines, personas, positioning, product facts, messaging, etc. |
51
+ | Anything else | Notes, prompts, config, dataset snippets — any text file. |
49
52
 
50
53
  ## Overview {#overview}
51
54
 
52
55
  Every agent-native app has a built-in resource system. Resources are SQL-backed files that persist across sessions and deployments. Unlike code files, resources live in the database — not the filesystem — so they work in serverless environments, edge runtimes, and production deploys without any filesystem dependency.
53
56
 
54
- Resources have two scopes:
57
+ Resources have three runtime scopes:
55
58
 
56
59
  - **Personal** — scoped to a single user (their email). Good for preferences, notes, and per-user context.
57
- - **Shared** — visible to all users. Good for team instructions, skills, and shared config.
60
+ - **Shared / organization** — visible to all users in the app or organization. Good for app/team instructions, skills, and shared config.
61
+ - **Workspace** — inherited global defaults managed from Dispatch Resources. Good for company facts, positioning, brand guidelines, global guardrails, and workspace-wide skills. Apps read these at runtime; they are not copied into each app.
62
+
63
+ The in-app Workspace panel shows all three scopes. Personal and shared/organization resources are editable there. Workspace-scope resources are read-only in app panels and edited centrally from Dispatch, so every app sees the same canonical files without a sync step.
58
64
 
59
65
  ## Workspace Panel {#workspace-panel}
60
66
 
61
- The agent panel includes a **Workspace** tab alongside Chat and CLI. This panel lets users browse, create, edit, and delete workspace resources. It displays a tree view of all resources organized by folder path.
67
+ The agent panel includes a **Workspace** tab alongside Chat and CLI. This panel lets users browse workspace resources, create/edit/delete personal or organization resources, and view inherited workspace defaults. It displays a tree view of all resources organized by folder path.
62
68
 
63
69
  Resources can be any text file — Markdown, JSON, YAML, plain text. The panel includes an inline editor for viewing and modifying resource content directly.
64
70
 
@@ -69,10 +75,23 @@ The `+` menu in Workspace supports typed creation flows for:
69
75
  - **Agents** — custom sub-agent profiles under `agents/*.md`
70
76
  - **Scheduled Tasks** — recurring jobs under `jobs/`
71
77
 
72
- Workspace resources come in two scopes:
78
+ Workspace resources appear in three scopes:
73
79
 
80
+ - **Workspace** — inherited from Dispatch by every app; read-only in app panels
81
+ - **Organization** — visible across the team/org
74
82
  - **Personal** — visible only to the current user
75
- - **Shared** — visible across the team/org
83
+
84
+ When you open a resource, the editor shows an **Effective context** strip with the precedence stack:
85
+
86
+ ```text
87
+ workspace default -> organization/app override -> personal override
88
+ ```
89
+
90
+ If the same path exists at multiple levels, the later level wins. For example, `instructions/guardrails.md` in Personal overrides the organization version, which overrides the workspace default. Workspace resources are still visible in the stack so users can see what was inherited and why an override is active.
91
+
92
+ Dispatch shows the same model from the control-plane side. On the **Resources** page, expand a resource and use **Effective in app** to choose an app and optional user email. The preview reports whether the resource is inherited by all apps or selected-only, and which layer is active for that exact path. From an app card's **Context** dialog, expand **Stack** on any resource row to see the same winner/override chain for that app.
93
+
94
+ When Dispatch approval policy is enabled, creating, updating, or deleting an **All apps** resource queues an approval request instead of applying immediately. The create/edit/delete dialogs show an impact preview before save: whether the change reaches all apps, whether approval is required, and whether the same path is overridden at the organization/app or personal layer.
76
95
 
77
96
  Click the `?` icon in the Workspace toolbar to jump back to these docs at any time.
78
97
 
@@ -100,15 +119,15 @@ Change how the agent behaves, in 60 seconds.
100
119
 
101
120
  ## How the Agent Uses Resources {#how-the-agent-uses-resources}
102
121
 
103
- The agent has built-in tools for managing resources: `resource-list`, `resource-read`, `resource-write`, and `resource-delete`. These are available in both dev and production modes.
122
+ The agent has built-in tools for managing resources: `resource-list`, `resource-read`, `resource-effective`, `resource-write`, and `resource-delete`. These are available in both dev and production modes.
104
123
 
105
124
  At the start of every conversation, the agent automatically reads:
106
125
 
107
126
  ### AGENTS.md {#agents-md}
108
127
 
109
- A shared resource seeded by default. It contains custom instructions, preferences, and skill references. Edit this to change how the agent behaves for all users tone, rules, domain context, and which skills to use.
128
+ An instruction resource seeded by default. The agent loads `AGENTS.md` from workspace, shared/organization, and personal scopes in that order. Edit the workspace version from Dispatch for company-wide defaults, the shared/app version for team or app-specific rules, and the personal version for per-user preferences.
110
129
 
111
- ```markdown
130
+ ```text
112
131
  # Agent Instructions
113
132
 
114
133
  ## Tone
@@ -122,9 +141,102 @@ Be concise. Lead with the answer.
122
141
 
123
142
  ## Skills
124
143
 
125
- | Skill | Path | Description |
126
- | ------------- | ------------------------- | --------------------------- |
127
- | data-analysis | `skills/data-analysis.md` | BigQuery and data workflows |
144
+ | Skill | Path | Description |
145
+ | ------------- | ------------------------------- | --------------------------- |
146
+ | data-analysis | `skills/data-analysis/SKILL.md` | BigQuery and data workflows |
147
+ ```
148
+
149
+ ### Global Instructions {#global-instructions}
150
+
151
+ Use workspace `AGENTS.md` for company-wide defaults, shared `AGENTS.md` for app/team rules, and personal `AGENTS.md` for per-user preferences. Use files under `instructions/` for separate guardrail documents that should also apply every turn, such as compliance rules, customer-facing tone, escalation policy, or brand voice. These files use the same workspace -> organization/app -> personal precedence.
152
+
153
+ For example:
154
+
155
+ ```text
156
+ AGENTS.md
157
+ instructions/customer-support-guardrails.md
158
+ instructions/legal-review-policy.md
159
+ ```
160
+
161
+ Both normal chat and integration-triggered agent runs load these instruction resources before responding.
162
+
163
+ ### Reference Resources {#reference-resources}
164
+
165
+ Put reusable company context under `context/`: personas, positioning, messaging, product facts, customer proof points, brand guidelines, competitive notes, and similar material. The agent sees an index of workspace and shared reference resources and reads the relevant file with `resource-read` when a task may depend on it. Use `resource-effective --path "context/brand.md"` when you need to see whether a workspace default is overridden by an organization/app or personal resource.
166
+
167
+ Examples:
168
+
169
+ ```text
170
+ context/core-positioning.md
171
+ context/buyer-personas.md
172
+ context/brand-guidelines.md
173
+ context/company-facts.md
174
+ ```
175
+
176
+ For a new workspace, a useful starter pack is:
177
+
178
+ ```text
179
+ context/company.md # what the company does, ICP, products, links
180
+ context/brand.md # voice, visual identity, spelling, forbidden usage
181
+ context/messaging.md # positioning, value props, proof points, objections
182
+ instructions/guardrails.md # compliance, escalation, and approval rules
183
+ skills/company-voice/SKILL.md # on-demand guidance for customer-facing writing
184
+ ```
185
+
186
+ Keep `context/` files factual and easy to skim. Put rules that must apply every turn in `instructions/guardrails.md`. Use `skills/company-voice/SKILL.md` when the agent should deliberately transform or review copy in the company's voice.
187
+
188
+ To override a global default for one app or team, create a shared/organization resource in that app with the same path. To override it for one person, create a personal resource with the same path. Do not copy the workspace file into every app; the runtime resolves the stack on read:
189
+
190
+ ```text
191
+ workspace context/brand.md
192
+ -> shared/app context/brand.md
193
+ -> personal context/brand.md
194
+ ```
195
+
196
+ Example contents:
197
+
198
+ ```text
199
+ <!-- context/company.md -->
200
+
201
+ # Company
202
+
203
+ - Company: Example Co
204
+ - Product: Agent-native workspace for internal teams
205
+ - ICP: Operations, support, and GTM teams managing many small tools
206
+ - Canonical links: https://example.com, https://docs.example.com
207
+
208
+ <!-- context/brand.md -->
209
+
210
+ # Brand
211
+
212
+ - Voice: direct, warm, concrete
213
+ - Use: "workspace", "agent", "team"
214
+ - Avoid: unsupported superlatives and vague AI claims
215
+
216
+ <!-- context/messaging.md -->
217
+
218
+ # Messaging
219
+
220
+ - Positioning: one control plane for every app agent
221
+ - Value props: shared context, shared credentials, cross-app delegation
222
+ - Proof points: fewer duplicated Slack bots, one vault, one policy surface
223
+
224
+ <!-- instructions/guardrails.md -->
225
+
226
+ # Guardrails
227
+
228
+ - Do not invent customer names, metrics, or legal claims.
229
+ - Ask for approval before changing shared instructions or All-app resources.
230
+ - Escalate security, billing, and data-loss concerns to an admin.
231
+
232
+ <!-- skills/company-voice/SKILL.md -->
233
+
234
+ ---
235
+ name: company-voice
236
+ description: Rewrite or review customer-facing copy using the workspace brand and messaging resources.
237
+ ---
238
+
239
+ Read `context/brand.md` and `context/messaging.md` before writing. Keep claims grounded in those files, preserve approved terminology, and flag missing proof instead of inventing it.
128
240
  ```
129
241
 
130
242
  ### Memory {#memory}
@@ -158,18 +270,38 @@ The resource system also seeds a personal `LEARNINGS.md` for compatibility with
158
270
 
159
271
  **Where it fits.**
160
272
 
161
- | Surface | Scope | Written by | Read when |
162
- | ------------------ | -------- | ------------------------- | ---------------------------- |
163
- | `AGENTS.md` | Shared | Humans / agent on request | Every turn |
164
- | `LEARNINGS.md` | Shared | Humans / agent on request | Every turn |
165
- | `memory/MEMORY.md` | Personal | Agent / humans | Every turn |
166
- | `skills/…` | Shared | Humans / agent on request | On demand (`/slash` command) |
273
+ | Surface | Scope | Written by | Read when |
274
+ | ------------------ | -------- | ------------------------- | -------------------------------------- |
275
+ | `AGENTS.md` | Shared | Humans / agent on request | Every turn |
276
+ | `LEARNINGS.md` | Shared | Humans / agent on request | Every turn |
277
+ | `memory/MEMORY.md` | Personal | Agent / humans | Every turn |
278
+ | `instructions/…` | Shared | Humans / agent on request | Every turn |
279
+ | `skills/…` | Shared | Humans / agent on request | On demand (`/slash` command) |
280
+ | `context/…` | Shared | Humans / agent on request | Indexed every turn, read when relevant |
167
281
 
168
282
  Users can edit these memory files directly in the Workspace tab — they're regular resources. Delete lines the agent got wrong, keep personal preferences in `memory/MEMORY.md`, or promote team-wide rules into `AGENTS.md`.
169
283
 
284
+ ## Workspace Connections {#workspace-connections}
285
+
286
+ Workspace Connections are the reusable integration metadata layer for apps that
287
+ need the same third-party account. A connection records the provider, account
288
+ label, status, scopes, allowed app slugs, and credential references in portable
289
+ SQL. Secrets stay in the scoped credential store; connection records should only
290
+ point at credential keys such as `SLACK_BOT_TOKEN` or `GITHUB_TOKEN`.
291
+
292
+ This is the foundation for “connect once, use everywhere”: Brain can ingest
293
+ approved repositories, Analytics can analyze the same provider later, and
294
+ Dispatch can remain the control plane for sharing credentials and policy. The
295
+ initial API lives in `@agent-native/core/workspace-connections` and is scoped by
296
+ the active request user/org.
297
+
298
+ See [Workspace Connections](/docs/workspace-connections) for the reusable
299
+ connector pattern, app grant/readiness APIs, and concrete Slack, HubSpot, and
300
+ GitHub examples.
301
+
170
302
  ## Skills {#skills}
171
303
 
172
- Skills are Markdown resource files that give the agent deep domain knowledge for specific tasks. They live under the `skills/` path prefix in resources (e.g. `skills/data-analysis.md`, `skills/code-review.md`).
304
+ Skills are Markdown resource files that give the agent deep domain knowledge for specific tasks. They live under the `skills/` path prefix in resources, preferably as `skills/<name>/SKILL.md` (e.g. `skills/data-analysis/SKILL.md`, `skills/code-review/SKILL.md`). Flat `skills/<name>.md` files still work for compatibility.
173
305
 
174
306
  When the agent encounters a task that matches a skill, it reads the skill file and follows its guidance. Skills referenced in `AGENTS.md` are discovered automatically.
175
307
 
@@ -177,7 +309,7 @@ When the agent encounters a task that matches a skill, it reads the skill file a
177
309
 
178
310
  There are two ways to add skills:
179
311
 
180
- 1. **Via Workspace tab** — Create a new resource with a path like `skills/my-skill.md`. This works in both dev and production.
312
+ 1. **Via Workspace tab** — Create a new resource with a path like `skills/my-skill/SKILL.md`. This works in both dev and production.
181
313
  2. **Via code (dev only)** — Add a Markdown file to `.agents/skills/` in your project. These are available when the app runs in dev mode.
182
314
 
183
315
  ## Custom Agents {#custom-agents}
@@ -309,15 +441,17 @@ Resources can be managed from server code, actions, or the REST API.
309
441
 
310
442
  REST endpoints mounted automatically:
311
443
 
312
- | Method | Endpoint | Description |
313
- | -------- | ----------------------------------------- | ------------------------- |
314
- | `GET` | `/_agent-native/resources?scope=all` | List resources |
315
- | `GET` | `/_agent-native/resources/tree?scope=all` | Get folder tree |
316
- | `POST` | `/_agent-native/resources` | Create a resource |
317
- | `GET` | `/_agent-native/resources/:id` | Get resource with content |
318
- | `PUT` | `/_agent-native/resources/:id` | Update a resource |
319
- | `DELETE` | `/_agent-native/resources/:id` | Delete a resource |
320
- | `POST` | `/_agent-native/resources/upload` | Upload a file as resource |
444
+ | Method | Endpoint | Description |
445
+ | -------- | --------------------------------------------- | ------------------------------------ |
446
+ | `GET` | `/_agent-native/resources?scope=all` | List resources |
447
+ | `GET` | `/_agent-native/resources?scope=workspace` | List inherited workspace resources |
448
+ | `GET` | `/_agent-native/resources/tree?scope=all` | Get folder tree |
449
+ | `GET` | `/_agent-native/resources/effective?path=...` | Show the effective inheritance stack |
450
+ | `POST` | `/_agent-native/resources` | Create a resource |
451
+ | `GET` | `/_agent-native/resources/:id` | Get resource with content |
452
+ | `PUT` | `/_agent-native/resources/:id` | Update a resource |
453
+ | `DELETE` | `/_agent-native/resources/:id` | Delete a resource |
454
+ | `POST` | `/_agent-native/resources/upload` | Upload a file as resource |
321
455
 
322
456
  ### Action API {#script-api}
323
457
 
@@ -328,7 +462,13 @@ The agent uses these built-in actions. You can also call them from your own acti
328
462
  pnpm action resource-list --scope all
329
463
 
330
464
  # Read a resource
331
- pnpm action resource-read --path "skills/my-skill.md"
465
+ pnpm action resource-read --path "skills/my-skill/SKILL.md"
466
+
467
+ # Read inherited workspace context managed by Dispatch
468
+ pnpm action resource-read --scope workspace --path "context/brand.md"
469
+
470
+ # Show workspace -> organization/app -> personal precedence for a path
471
+ pnpm action resource-effective --path "context/brand.md"
332
472
 
333
473
  # Write a resource
334
474
  pnpm action resource-write --path "notes/meeting.md" --content "# Meeting Notes..."
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@agent-native/core",
3
- "version": "0.15.13",
3
+ "version": "0.16.0",
4
4
  "type": "module",
5
5
  "description": "Framework for agent-native application development — where AI agents and UI share state via files",
6
6
  "license": "MIT",
@@ -76,6 +76,9 @@
76
76
  "./mcp-client": "./dist/mcp-client/index.js",
77
77
  "./tracking": "./dist/tracking/index.js",
78
78
  "./usage": "./dist/usage/store.js",
79
+ "./connections": "./dist/connections/index.js",
80
+ "./code-agents": "./dist/code-agents/index.js",
81
+ "./workspace-connections": "./dist/workspace-connections/index.js",
79
82
  "./notifications": "./dist/notifications/index.js",
80
83
  "./client/notifications": "./dist/client/notifications/index.js",
81
84
  "./progress": "./dist/progress/index.js",
@@ -99,7 +102,7 @@
99
102
  "dev": "tsc --watch",
100
103
  "typecheck": "tsc --noEmit",
101
104
  "test": "vitest --run src",
102
- "prepack": "cp ../../README.md ./README.md",
105
+ "prepack": "npm run build && cp ../../README.md ./README.md",
103
106
  "prepublishOnly": "npm run build",
104
107
  "release": "npm version patch && npm publish --access public"
105
108
  },
@@ -292,7 +295,9 @@
292
295
  "express": "^5.2.1",
293
296
  "firebase-admin": "^13.0.0",
294
297
  "node-pty": "^1.1.0",
298
+ "playwright": "^1.60.0",
295
299
  "react": "^19.2.5",
300
+ "react-dom": "19.2.5",
296
301
  "react-router": "^7.13.1",
297
302
  "tailwindcss": "catalog:",
298
303
  "typescript": "^6.0.3",
@@ -25,10 +25,10 @@ Use `getSession(event)` server-side and `useSession()` client-side.
25
25
 
26
26
  Resources are SQL-backed persistent files for notes, learnings, and context.
27
27
 
28
- **At the start of every conversation, read these resources (both personal and shared scopes):**
28
+ **At the start of every conversation, read these resources (workspace, shared, and personal scopes as relevant):**
29
29
 
30
- 1. **`AGENTS.md`** -- user-specific context. Read both `--scope personal` and `--scope shared`.
31
- 2. **`LEARNINGS.md`** -- user preferences, corrections, and patterns. Read both scopes.
30
+ 1. **`AGENTS.md`** -- inherited workspace defaults, app/team instructions, and user-specific context.
31
+ 2. **`LEARNINGS.md`** -- user preferences, corrections, and patterns. Read personal and shared scopes.
32
32
 
33
33
  **Update `LEARNINGS.md` when you learn something important.**
34
34
 
@@ -27,6 +27,13 @@ agent should know.
27
27
  notes, scripts, task plans, or intermediate outputs, but should promote them
28
28
  to normal workspace visibility only when the user explicitly asks to keep or
29
29
  manage the file.
30
+ - Runtime-editable global resources can be managed from Dispatch Resources.
31
+ Use `AGENTS.md` or `instructions/<slug>.md` for always-on guardrails,
32
+ `skills/<slug>/SKILL.md` for workspace skills, `context/<slug>.md` for
33
+ personas/positioning/messaging/company facts/brand guidelines, and
34
+ `agents/<slug>.md` for custom agent profiles. Scope them to All apps when
35
+ every workspace app should inherit them. All-app resources are inherited at
36
+ runtime; do not copy or sync them into individual apps.
30
37
 
31
38
  ## Adding Apps
32
39
 
@@ -24,6 +24,13 @@ coding agents can discover the same workspace-wide guidance from the root.
24
24
  manage the file.
25
25
  - Durable instructions, skills, jobs, memories, custom agents, and files the
26
26
  user explicitly asked to save belong in normal workspace visibility.
27
+ - Runtime-editable global resources are managed from Dispatch Resources. Use
28
+ `AGENTS.md` or `instructions/<slug>.md` for always-on guardrails,
29
+ `skills/<slug>/SKILL.md` for workspace skills, `context/<slug>.md` for
30
+ personas/positioning/messaging/company facts/brand guidelines, and
31
+ `agents/<slug>.md` for custom agent profiles.
32
+ - Set Dispatch resources to All apps when every workspace app should inherit
33
+ them. Use selected-app grants only for resources that should not be global.
27
34
 
28
35
  ## Workspace Scope
29
36
 
@@ -36,6 +36,28 @@ the shared package (`@{{APP_NAME}}/shared`).
36
36
  The workspace root also links `.agents/skills` to the shared package so coding
37
37
  agents launched from the root can discover the same workspace-wide skills.
38
38
 
39
+ Runtime-editable global resources live in Dispatch, not in `packages/shared`.
40
+ Use Dispatch **Resources** for company context and guardrails that admins should
41
+ change without a code deploy:
42
+
43
+ - `AGENTS.md` or `instructions/<slug>.md` for instructions every app agent loads
44
+ - `skills/<slug>/SKILL.md` for workspace skills
45
+ - `context/<slug>.md` for personas, positioning, messaging, company facts, and brand guidelines
46
+ - `agents/<slug>.md` for reusable custom agent profiles
47
+
48
+ Set those resources to **All apps** when every workspace app should receive
49
+ them; use selected-app grants for app-specific packs.
50
+
51
+ Starter global resources:
52
+
53
+ ```text
54
+ context/company.md # company overview, ICP, products, canonical links
55
+ context/brand.md # brand voice, visual identity, spelling, terms to avoid
56
+ context/messaging.md # positioning, value props, proof points, objections
57
+ instructions/guardrails.md # compliance, escalation, and approval rules
58
+ skills/company-voice/SKILL.md # copywriting/review guidance for customer-facing work
59
+ ```
60
+
39
61
  ## Getting started
40
62
 
41
63
  ```bash
@@ -55,6 +77,9 @@ localhost or dev ports because the active gateway origin owns the port.
55
77
  Dispatch vault keys are workspace-wide by default: every saved vault key is
56
78
  available to every workspace app and can be synced from Dispatch. Switch the
57
79
  Vault page to manual access only when you need explicit per-app key grants.
80
+ Dispatch resources are inherited rather than synced: All-app resources live
81
+ once at workspace scope and every app agent reads them at runtime. Use selected
82
+ resource grants only for genuinely app-specific context.
58
83
 
59
84
  ## Workspace org identity
60
85