@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.
- package/README.md +37 -0
- package/dist/agent/app-model-defaults.d.ts +37 -0
- package/dist/agent/app-model-defaults.d.ts.map +1 -0
- package/dist/agent/app-model-defaults.js +136 -0
- package/dist/agent/app-model-defaults.js.map +1 -0
- package/dist/agent/engine/registry.d.ts +12 -7
- package/dist/agent/engine/registry.d.ts.map +1 -1
- package/dist/agent/engine/registry.js +28 -8
- package/dist/agent/engine/registry.js.map +1 -1
- package/dist/agent/production-agent.d.ts +2 -0
- package/dist/agent/production-agent.d.ts.map +1 -1
- package/dist/agent/production-agent.js +3 -1
- package/dist/agent/production-agent.js.map +1 -1
- package/dist/browser-sessions/actions.d.ts +7 -0
- package/dist/browser-sessions/actions.d.ts.map +1 -0
- package/dist/browser-sessions/actions.js +223 -0
- package/dist/browser-sessions/actions.js.map +1 -0
- package/dist/browser-sessions/routes.d.ts +7 -0
- package/dist/browser-sessions/routes.d.ts.map +1 -0
- package/dist/browser-sessions/routes.js +159 -0
- package/dist/browser-sessions/routes.js.map +1 -0
- package/dist/browser-sessions/store.d.ts +33 -0
- package/dist/browser-sessions/store.d.ts.map +1 -0
- package/dist/browser-sessions/store.js +506 -0
- package/dist/browser-sessions/store.js.map +1 -0
- package/dist/browser-sessions/types.d.ts +68 -0
- package/dist/browser-sessions/types.d.ts.map +1 -0
- package/dist/browser-sessions/types.js +2 -0
- package/dist/browser-sessions/types.js.map +1 -0
- package/dist/cli/code-agent-commands.d.ts +36 -0
- package/dist/cli/code-agent-commands.d.ts.map +1 -0
- package/dist/cli/code-agent-commands.js +192 -0
- package/dist/cli/code-agent-commands.js.map +1 -0
- package/dist/cli/code-agent-connector.d.ts +17 -0
- package/dist/cli/code-agent-connector.d.ts.map +1 -0
- package/dist/cli/code-agent-connector.js +724 -0
- package/dist/cli/code-agent-connector.js.map +1 -0
- package/dist/cli/code-agent-executor.d.ts +31 -0
- package/dist/cli/code-agent-executor.d.ts.map +1 -0
- package/dist/cli/code-agent-executor.js +921 -0
- package/dist/cli/code-agent-executor.js.map +1 -0
- package/dist/cli/code-agent-runs.d.ts +102 -0
- package/dist/cli/code-agent-runs.d.ts.map +1 -0
- package/dist/cli/code-agent-runs.js +277 -0
- package/dist/cli/code-agent-runs.js.map +1 -0
- package/dist/cli/code.d.ts +66 -0
- package/dist/cli/code.d.ts.map +1 -0
- package/dist/cli/code.js +1306 -0
- package/dist/cli/code.js.map +1 -0
- package/dist/cli/create.d.ts +2 -1
- package/dist/cli/create.d.ts.map +1 -1
- package/dist/cli/create.js +11 -1
- package/dist/cli/create.js.map +1 -1
- package/dist/cli/index.js +26 -1
- package/dist/cli/index.js.map +1 -1
- package/dist/cli/migrate.d.ts +27 -0
- package/dist/cli/migrate.d.ts.map +1 -1
- package/dist/cli/migrate.js +1328 -20
- package/dist/cli/migrate.js.map +1 -1
- package/dist/cli/templates-meta.d.ts.map +1 -1
- package/dist/cli/templates-meta.js +26 -2
- package/dist/cli/templates-meta.js.map +1 -1
- package/dist/cli/workspacify.d.ts +2 -0
- package/dist/cli/workspacify.d.ts.map +1 -1
- package/dist/cli/workspacify.js +2 -1
- package/dist/cli/workspacify.js.map +1 -1
- package/dist/client/AgentNative.d.ts +32 -0
- package/dist/client/AgentNative.d.ts.map +1 -0
- package/dist/client/AgentNative.js +79 -0
- package/dist/client/AgentNative.js.map +1 -0
- package/dist/client/AgentNativeEmbedded.d.ts +47 -0
- package/dist/client/AgentNativeEmbedded.d.ts.map +1 -0
- package/dist/client/AgentNativeEmbedded.js +148 -0
- package/dist/client/AgentNativeEmbedded.js.map +1 -0
- package/dist/client/AgentNativeFrame.d.ts +25 -0
- package/dist/client/AgentNativeFrame.d.ts.map +1 -0
- package/dist/client/AgentNativeFrame.js +68 -0
- package/dist/client/AgentNativeFrame.js.map +1 -0
- package/dist/client/AgentPanel.d.ts +19 -2
- package/dist/client/AgentPanel.d.ts.map +1 -1
- package/dist/client/AgentPanel.js +15 -4
- package/dist/client/AgentPanel.js.map +1 -1
- package/dist/client/AssistantChat.d.ts +1 -1
- package/dist/client/AssistantChat.d.ts.map +1 -1
- package/dist/client/AssistantChat.js +79 -48
- package/dist/client/AssistantChat.js.map +1 -1
- package/dist/client/MultiTabAssistantChat.d.ts.map +1 -1
- package/dist/client/MultiTabAssistantChat.js +2 -1
- package/dist/client/MultiTabAssistantChat.js.map +1 -1
- package/dist/client/NewWorkspaceAppFlow.d.ts.map +1 -1
- package/dist/client/NewWorkspaceAppFlow.js +3 -2
- package/dist/client/NewWorkspaceAppFlow.js.map +1 -1
- package/dist/client/browser-session-bridge.d.ts +44 -0
- package/dist/client/browser-session-bridge.d.ts.map +1 -0
- package/dist/client/browser-session-bridge.js +339 -0
- package/dist/client/browser-session-bridge.js.map +1 -0
- package/dist/client/client-action.d.ts +7 -0
- package/dist/client/client-action.d.ts.map +1 -0
- package/dist/client/client-action.js +4 -0
- package/dist/client/client-action.js.map +1 -0
- package/dist/client/components/ui/tooltip.d.ts.map +1 -1
- package/dist/client/components/ui/tooltip.js +1 -1
- package/dist/client/components/ui/tooltip.js.map +1 -1
- package/dist/client/composer/AgentComposerFrame.d.ts +17 -0
- package/dist/client/composer/AgentComposerFrame.d.ts.map +1 -0
- package/dist/client/composer/AgentComposerFrame.js +14 -0
- package/dist/client/composer/AgentComposerFrame.js.map +1 -0
- package/dist/client/composer/MentionPopover.d.ts.map +1 -1
- package/dist/client/composer/MentionPopover.js +2 -2
- package/dist/client/composer/MentionPopover.js.map +1 -1
- package/dist/client/composer/PromptComposer.d.ts +35 -2
- package/dist/client/composer/PromptComposer.d.ts.map +1 -1
- package/dist/client/composer/PromptComposer.js +31 -17
- package/dist/client/composer/PromptComposer.js.map +1 -1
- package/dist/client/composer/TiptapComposer.d.ts +20 -2
- package/dist/client/composer/TiptapComposer.d.ts.map +1 -1
- package/dist/client/composer/TiptapComposer.js +112 -22
- package/dist/client/composer/TiptapComposer.js.map +1 -1
- package/dist/client/composer/index.d.ts +3 -2
- package/dist/client/composer/index.d.ts.map +1 -1
- package/dist/client/composer/index.js +1 -0
- package/dist/client/composer/index.js.map +1 -1
- package/dist/client/composer/types.d.ts +1 -0
- package/dist/client/composer/types.d.ts.map +1 -1
- package/dist/client/composer/types.js.map +1 -1
- package/dist/client/extensions/AgentNativeExtensionFrame.d.ts +58 -0
- package/dist/client/extensions/AgentNativeExtensionFrame.d.ts.map +1 -0
- package/dist/client/extensions/AgentNativeExtensionFrame.e2e-host.d.ts +2 -0
- package/dist/client/extensions/AgentNativeExtensionFrame.e2e-host.d.ts.map +1 -0
- package/dist/client/extensions/AgentNativeExtensionFrame.e2e-host.js +110 -0
- package/dist/client/extensions/AgentNativeExtensionFrame.e2e-host.js.map +1 -0
- package/dist/client/extensions/AgentNativeExtensionFrame.js +354 -0
- package/dist/client/extensions/AgentNativeExtensionFrame.js.map +1 -0
- package/dist/client/extensions/AgentNativeExtensionFrame.spec.d.ts +2 -0
- package/dist/client/extensions/AgentNativeExtensionFrame.spec.d.ts.map +1 -0
- package/dist/client/extensions/AgentNativeExtensionFrame.spec.js +68 -0
- package/dist/client/extensions/AgentNativeExtensionFrame.spec.js.map +1 -0
- package/dist/client/extensions/agent-native-extension-runtime.d.ts +69 -0
- package/dist/client/extensions/agent-native-extension-runtime.d.ts.map +1 -0
- package/dist/client/extensions/agent-native-extension-runtime.js +348 -0
- package/dist/client/extensions/agent-native-extension-runtime.js.map +1 -0
- package/dist/client/extensions/index.d.ts +2 -0
- package/dist/client/extensions/index.d.ts.map +1 -1
- package/dist/client/extensions/index.js +2 -0
- package/dist/client/extensions/index.js.map +1 -1
- package/dist/client/extensions/portable-extension.d.ts +86 -0
- package/dist/client/extensions/portable-extension.d.ts.map +1 -0
- package/dist/client/extensions/portable-extension.js +480 -0
- package/dist/client/extensions/portable-extension.js.map +1 -0
- package/dist/client/host-bridge.d.ts +266 -0
- package/dist/client/host-bridge.d.ts.map +1 -0
- package/dist/client/host-bridge.js +745 -0
- package/dist/client/host-bridge.js.map +1 -0
- package/dist/client/host-tools.d.ts +40 -0
- package/dist/client/host-tools.d.ts.map +1 -0
- package/dist/client/host-tools.js +94 -0
- package/dist/client/host-tools.js.map +1 -0
- package/dist/client/index.d.ts +13 -2
- package/dist/client/index.d.ts.map +1 -1
- package/dist/client/index.js +11 -2
- package/dist/client/index.js.map +1 -1
- package/dist/client/resources/BuiltinCapabilityDetail.d.ts +10 -0
- package/dist/client/resources/BuiltinCapabilityDetail.d.ts.map +1 -0
- package/dist/client/resources/BuiltinCapabilityDetail.js +51 -0
- package/dist/client/resources/BuiltinCapabilityDetail.js.map +1 -0
- package/dist/client/resources/ResourceEditor.d.ts +3 -1
- package/dist/client/resources/ResourceEditor.d.ts.map +1 -1
- package/dist/client/resources/ResourceEditor.js +40 -17
- package/dist/client/resources/ResourceEditor.js.map +1 -1
- package/dist/client/resources/ResourceTree.d.ts.map +1 -1
- package/dist/client/resources/ResourceTree.js +23 -2
- package/dist/client/resources/ResourceTree.js.map +1 -1
- package/dist/client/resources/ResourcesPanel.d.ts.map +1 -1
- package/dist/client/resources/ResourcesPanel.js +77 -17
- package/dist/client/resources/ResourcesPanel.js.map +1 -1
- package/dist/client/resources/index.d.ts +1 -0
- package/dist/client/resources/index.d.ts.map +1 -1
- package/dist/client/resources/index.js +1 -0
- package/dist/client/resources/index.js.map +1 -1
- package/dist/client/resources/use-builtin-capabilities.d.ts +62 -0
- package/dist/client/resources/use-builtin-capabilities.d.ts.map +1 -0
- package/dist/client/resources/use-builtin-capabilities.js +54 -0
- package/dist/client/resources/use-builtin-capabilities.js.map +1 -0
- package/dist/client/resources/use-resources.d.ts +30 -2
- package/dist/client/resources/use-resources.d.ts.map +1 -1
- package/dist/client/resources/use-resources.js +42 -1
- package/dist/client/resources/use-resources.js.map +1 -1
- package/dist/client/settings/SettingsPanel.d.ts.map +1 -1
- package/dist/client/settings/SettingsPanel.js +151 -2
- package/dist/client/settings/SettingsPanel.js.map +1 -1
- package/dist/client/use-chat-models.d.ts.map +1 -1
- package/dist/client/use-chat-models.js +20 -0
- package/dist/client/use-chat-models.js.map +1 -1
- package/dist/client/use-chat-threads.d.ts.map +1 -1
- package/dist/client/use-chat-threads.js +46 -2
- package/dist/client/use-chat-threads.js.map +1 -1
- package/dist/client/use-chat-threads.spec.js +77 -0
- package/dist/client/use-chat-threads.spec.js.map +1 -1
- package/dist/code-agents/index.d.ts +4 -0
- package/dist/code-agents/index.d.ts.map +1 -0
- package/dist/code-agents/index.js +4 -0
- package/dist/code-agents/index.js.map +1 -0
- package/dist/connections/catalog.d.ts +134 -0
- package/dist/connections/catalog.d.ts.map +1 -0
- package/dist/connections/catalog.js +180 -0
- package/dist/connections/catalog.js.map +1 -0
- package/dist/connections/index.d.ts +2 -0
- package/dist/connections/index.d.ts.map +1 -0
- package/dist/connections/index.js +2 -0
- package/dist/connections/index.js.map +1 -0
- package/dist/extensions/change-marker.d.ts +10 -0
- package/dist/extensions/change-marker.d.ts.map +1 -0
- package/dist/extensions/change-marker.js +42 -0
- package/dist/extensions/change-marker.js.map +1 -0
- package/dist/extensions/routes.d.ts.map +1 -1
- package/dist/extensions/routes.js +1 -7
- package/dist/extensions/routes.js.map +1 -1
- package/dist/extensions/schema.d.ts +1 -0
- package/dist/extensions/schema.d.ts.map +1 -1
- package/dist/extensions/schema.js +1 -0
- package/dist/extensions/schema.js.map +1 -1
- package/dist/extensions/slots/routes.js +1 -1
- package/dist/extensions/slots/routes.js.map +1 -1
- package/dist/extensions/store.d.ts +3 -0
- package/dist/extensions/store.d.ts.map +1 -1
- package/dist/extensions/store.js +112 -4
- package/dist/extensions/store.js.map +1 -1
- package/dist/index.d.ts +4 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +6 -1
- package/dist/index.js.map +1 -1
- package/dist/integrations/adapters/telegram.d.ts.map +1 -1
- package/dist/integrations/adapters/telegram.js +1 -0
- package/dist/integrations/adapters/telegram.js.map +1 -1
- package/dist/integrations/index.d.ts +5 -1
- package/dist/integrations/index.d.ts.map +1 -1
- package/dist/integrations/index.js +4 -1
- package/dist/integrations/index.js.map +1 -1
- package/dist/integrations/plugin.d.ts +8 -0
- package/dist/integrations/plugin.d.ts.map +1 -1
- package/dist/integrations/plugin.js +760 -32
- package/dist/integrations/plugin.js.map +1 -1
- package/dist/integrations/remote-commands-store.d.ts +36 -0
- package/dist/integrations/remote-commands-store.d.ts.map +1 -0
- package/dist/integrations/remote-commands-store.js +273 -0
- package/dist/integrations/remote-commands-store.js.map +1 -0
- package/dist/integrations/remote-devices-store.d.ts +43 -0
- package/dist/integrations/remote-devices-store.d.ts.map +1 -0
- package/dist/integrations/remote-devices-store.js +315 -0
- package/dist/integrations/remote-devices-store.js.map +1 -0
- package/dist/integrations/remote-push-store.d.ts +37 -0
- package/dist/integrations/remote-push-store.d.ts.map +1 -0
- package/dist/integrations/remote-push-store.js +299 -0
- package/dist/integrations/remote-push-store.js.map +1 -0
- package/dist/integrations/remote-retry-job.d.ts +7 -0
- package/dist/integrations/remote-retry-job.d.ts.map +1 -0
- package/dist/integrations/remote-retry-job.js +45 -0
- package/dist/integrations/remote-retry-job.js.map +1 -0
- package/dist/integrations/remote-run-events-store.d.ts +18 -0
- package/dist/integrations/remote-run-events-store.d.ts.map +1 -0
- package/dist/integrations/remote-run-events-store.js +82 -0
- package/dist/integrations/remote-run-events-store.js.map +1 -0
- package/dist/integrations/remote-types.d.ts +101 -0
- package/dist/integrations/remote-types.d.ts.map +1 -0
- package/dist/integrations/remote-types.js +2 -0
- package/dist/integrations/remote-types.js.map +1 -0
- package/dist/integrations/webhook-handler.d.ts +2 -0
- package/dist/integrations/webhook-handler.d.ts.map +1 -1
- package/dist/integrations/webhook-handler.js +4 -1
- package/dist/integrations/webhook-handler.js.map +1 -1
- package/dist/jobs/scheduler.d.ts +4 -2
- package/dist/jobs/scheduler.d.ts.map +1 -1
- package/dist/jobs/scheduler.js +9 -3
- package/dist/jobs/scheduler.js.map +1 -1
- package/dist/mcp-client/builtin-capabilities.d.ts +20 -0
- package/dist/mcp-client/builtin-capabilities.d.ts.map +1 -0
- package/dist/mcp-client/builtin-capabilities.js +75 -0
- package/dist/mcp-client/builtin-capabilities.js.map +1 -0
- package/dist/mcp-client/builtin-store.d.ts +10 -0
- package/dist/mcp-client/builtin-store.d.ts.map +1 -0
- package/dist/mcp-client/builtin-store.js +55 -0
- package/dist/mcp-client/builtin-store.js.map +1 -0
- package/dist/mcp-client/index.d.ts +3 -1
- package/dist/mcp-client/index.d.ts.map +1 -1
- package/dist/mcp-client/index.js +3 -1
- package/dist/mcp-client/index.js.map +1 -1
- package/dist/mcp-client/routes.d.ts +28 -0
- package/dist/mcp-client/routes.d.ts.map +1 -1
- package/dist/mcp-client/routes.js +195 -1
- package/dist/mcp-client/routes.js.map +1 -1
- package/dist/org/context.d.ts.map +1 -1
- package/dist/org/context.js +34 -0
- package/dist/org/context.js.map +1 -1
- package/dist/resources/handlers.d.ts +4 -0
- package/dist/resources/handlers.d.ts.map +1 -1
- package/dist/resources/handlers.js +46 -7
- package/dist/resources/handlers.js.map +1 -1
- package/dist/resources/script-helpers.d.ts +8 -1
- package/dist/resources/script-helpers.d.ts.map +1 -1
- package/dist/resources/script-helpers.js +18 -8
- package/dist/resources/script-helpers.js.map +1 -1
- package/dist/resources/store.d.ts +19 -0
- package/dist/resources/store.d.ts.map +1 -1
- package/dist/resources/store.js +86 -3
- package/dist/resources/store.js.map +1 -1
- package/dist/scripts/agent-engines/list-agent-engines.d.ts +1 -1
- package/dist/scripts/agent-engines/list-agent-engines.d.ts.map +1 -1
- package/dist/scripts/agent-engines/list-agent-engines.js +18 -7
- package/dist/scripts/agent-engines/list-agent-engines.js.map +1 -1
- package/dist/scripts/agent-engines/manage-agent-engine.d.ts.map +1 -1
- package/dist/scripts/agent-engines/manage-agent-engine.js +100 -7
- package/dist/scripts/agent-engines/manage-agent-engine.js.map +1 -1
- package/dist/scripts/resources/delete.d.ts.map +1 -1
- package/dist/scripts/resources/delete.js +4 -1
- package/dist/scripts/resources/delete.js.map +1 -1
- package/dist/scripts/resources/effective.d.ts +11 -0
- package/dist/scripts/resources/effective.d.ts.map +1 -0
- package/dist/scripts/resources/effective.js +54 -0
- package/dist/scripts/resources/effective.js.map +1 -0
- package/dist/scripts/resources/index.d.ts.map +1 -1
- package/dist/scripts/resources/index.js +1 -0
- package/dist/scripts/resources/index.js.map +1 -1
- package/dist/scripts/resources/list.d.ts +1 -1
- package/dist/scripts/resources/list.d.ts.map +1 -1
- package/dist/scripts/resources/list.js +17 -5
- package/dist/scripts/resources/list.js.map +1 -1
- package/dist/scripts/resources/read.d.ts +1 -1
- package/dist/scripts/resources/read.d.ts.map +1 -1
- package/dist/scripts/resources/read.js +20 -5
- package/dist/scripts/resources/read.js.map +1 -1
- package/dist/scripts/resources/write.d.ts.map +1 -1
- package/dist/scripts/resources/write.js +4 -1
- package/dist/scripts/resources/write.js.map +1 -1
- package/dist/scripts/runner.d.ts +11 -1
- package/dist/scripts/runner.d.ts.map +1 -1
- package/dist/scripts/runner.js +75 -27
- package/dist/scripts/runner.js.map +1 -1
- package/dist/server/action-discovery.d.ts.map +1 -1
- package/dist/server/action-discovery.js +5 -0
- package/dist/server/action-discovery.js.map +1 -1
- package/dist/server/agent-chat-plugin.d.ts +24 -0
- package/dist/server/agent-chat-plugin.d.ts.map +1 -1
- package/dist/server/agent-chat-plugin.js +608 -54
- package/dist/server/agent-chat-plugin.js.map +1 -1
- package/dist/server/core-routes-plugin.d.ts.map +1 -1
- package/dist/server/core-routes-plugin.js +2 -0
- package/dist/server/core-routes-plugin.js.map +1 -1
- package/dist/server/embedded.d.ts +72 -0
- package/dist/server/embedded.d.ts.map +1 -0
- package/dist/server/embedded.js +119 -0
- package/dist/server/embedded.js.map +1 -0
- package/dist/server/index.d.ts +8 -1
- package/dist/server/index.d.ts.map +1 -1
- package/dist/server/index.js +7 -1
- package/dist/server/index.js.map +1 -1
- package/dist/server/poll.d.ts.map +1 -1
- package/dist/server/poll.js +184 -13
- package/dist/server/poll.js.map +1 -1
- package/dist/server/resources-plugin.d.ts.map +1 -1
- package/dist/server/resources-plugin.js +11 -2
- package/dist/server/resources-plugin.js.map +1 -1
- package/dist/sharing/actions/extension-change.d.ts +4 -0
- package/dist/sharing/actions/extension-change.d.ts.map +1 -0
- package/dist/sharing/actions/extension-change.js +13 -0
- package/dist/sharing/actions/extension-change.js.map +1 -0
- package/dist/sharing/actions/set-resource-visibility.d.ts.map +1 -1
- package/dist/sharing/actions/set-resource-visibility.js +3 -0
- package/dist/sharing/actions/set-resource-visibility.js.map +1 -1
- package/dist/sharing/actions/share-resource.d.ts.map +1 -1
- package/dist/sharing/actions/share-resource.js +4 -0
- package/dist/sharing/actions/share-resource.js.map +1 -1
- package/dist/sharing/actions/unshare-resource.d.ts.map +1 -1
- package/dist/sharing/actions/unshare-resource.js +3 -0
- package/dist/sharing/actions/unshare-resource.js.map +1 -1
- package/dist/templates/default/AGENTS.md +3 -3
- package/dist/templates/workspace-core/AGENTS.md +7 -0
- package/dist/templates/workspace-root/AGENTS.md +7 -0
- package/dist/templates/workspace-root/README.md +25 -0
- package/dist/triggers/dispatcher.d.ts +3 -1
- package/dist/triggers/dispatcher.d.ts.map +1 -1
- package/dist/triggers/dispatcher.js +9 -3
- package/dist/triggers/dispatcher.js.map +1 -1
- package/dist/workspace-connections/index.d.ts +2 -0
- package/dist/workspace-connections/index.d.ts.map +1 -0
- package/dist/workspace-connections/index.js +2 -0
- package/dist/workspace-connections/index.js.map +1 -0
- package/dist/workspace-connections/store.d.ts +229 -0
- package/dist/workspace-connections/store.d.ts.map +1 -0
- package/dist/workspace-connections/store.js +938 -0
- package/dist/workspace-connections/store.js.map +1 -0
- package/docs/content/agent-teams.md +6 -0
- package/docs/content/cloneable-saas.md +1 -0
- package/docs/content/code-agents-ui.md +261 -0
- package/docs/content/dispatch.md +40 -3
- package/docs/content/embedding-sdk.md +459 -0
- package/docs/content/faq.md +1 -0
- package/docs/content/getting-started.md +1 -0
- package/docs/content/mcp-clients.md +41 -3
- package/docs/content/migration-workbench.md +237 -54
- package/docs/content/multi-app-workspace.md +41 -0
- package/docs/content/multi-tenancy.md +1 -1
- package/docs/content/template-brain.md +418 -0
- package/docs/content/template-dispatch.md +30 -0
- package/docs/content/workspace-connections.md +509 -0
- package/docs/content/workspace-management.md +12 -12
- package/docs/content/workspace.md +180 -40
- package/package.json +7 -2
- package/src/templates/default/AGENTS.md +3 -3
- package/src/templates/workspace-core/AGENTS.md +7 -0
- package/src/templates/workspace-root/AGENTS.md +7 -0
- package/src/templates/workspace-root/README.md +25 -0
|
@@ -1,102 +1,283 @@
|
|
|
1
1
|
---
|
|
2
|
-
title: "
|
|
3
|
-
description: "Use
|
|
2
|
+
title: "Agent-Native Code Workspace and /migrate"
|
|
3
|
+
description: "Use the open-source Agent-Native Code workspace for coding sessions, including the built-in /migrate capability."
|
|
4
4
|
---
|
|
5
5
|
|
|
6
|
-
#
|
|
6
|
+
# Agent-Native Code Workspace and /migrate
|
|
7
7
|
|
|
8
|
-
|
|
8
|
+
Start from **Agent-Native Code**:
|
|
9
9
|
|
|
10
|
-
|
|
10
|
+
```bash
|
|
11
|
+
npx @agent-native/core@latest
|
|
12
|
+
npx @agent-native/core@latest "fix the failing auth tests"
|
|
13
|
+
npx @agent-native/core@latest code
|
|
14
|
+
npx @agent-native/core@latest code "fix the failing auth tests"
|
|
15
|
+
npx @agent-native/core@latest code attach --last
|
|
16
|
+
npx @agent-native/core@latest code /migrate ./my-next-app --out ../migrated-app
|
|
17
|
+
```
|
|
18
|
+
|
|
19
|
+
**Agent-Native Code** is the open-source Claude Code/Codex-like workspace for coding work in Agent-Native. `agent-native` or `agent-native code` launches it with no prompt required, and a bare prompt starts a generic coding task directly. `/migrate` is one built-in capability for moving an existing app, URL, or described product into agent-native. It uses the same session store, transcript, and desktop hub as the CLI `code` command, so migration behaves like a goal you can resume, attach to, inspect, and stop rather than a separate one-off product.
|
|
20
|
+
|
|
21
|
+
By default `/migrate` creates a generic Agent-Native Code session plus a portable migration dossier. Migration is a slash command in the Code workspace, not a normal template to scaffold. The hidden `migration` app is now a legacy/internal detail surface, available with `--app-surface` when a run needs a richer assessment/approval/task/verifier dashboard.
|
|
22
|
+
|
|
23
|
+
The direct `migrate` command remains a shortcut into the same goal:
|
|
24
|
+
|
|
25
|
+
```bash
|
|
26
|
+
npx @agent-native/core@latest migrate ./my-next-app --out ../migrated-app
|
|
27
|
+
```
|
|
28
|
+
|
|
29
|
+
Both forms print the same handoff: run id, source, output, dossier directory,
|
|
30
|
+
important artifact files, and the exact Agent-Native Code commands to inspect or
|
|
31
|
+
resume the session:
|
|
32
|
+
|
|
33
|
+
```bash
|
|
34
|
+
npx @agent-native/core@latest code attach --last
|
|
35
|
+
npx @agent-native/core@latest code logs --last
|
|
36
|
+
npx @agent-native/core@latest code resume --last
|
|
37
|
+
npx @agent-native/core@latest code status --last
|
|
38
|
+
```
|
|
39
|
+
|
|
40
|
+
## Code Workspace
|
|
41
|
+
|
|
42
|
+
`agent-native code` opens the interactive Agent-Native Code shell for coding-agent work. You do not need to pass an initial prompt:
|
|
43
|
+
|
|
44
|
+
```bash
|
|
45
|
+
npx @agent-native/core@latest code
|
|
46
|
+
```
|
|
47
|
+
|
|
48
|
+
Inside the shell, type a task or use slash goals as commands:
|
|
49
|
+
|
|
50
|
+
```text
|
|
51
|
+
code> fix the failing auth tests
|
|
52
|
+
code> /migrate ./my-next-app --out ../migrated-app
|
|
53
|
+
code> /audit --url https://example.com
|
|
54
|
+
```
|
|
55
|
+
|
|
56
|
+
The same goals can run directly from the command line:
|
|
57
|
+
|
|
58
|
+
```bash
|
|
59
|
+
npx @agent-native/core@latest "fix the failing auth tests"
|
|
60
|
+
npx @agent-native/core@latest code "fix the failing auth tests"
|
|
61
|
+
npx @agent-native/core@latest code exec "fix the failing auth tests"
|
|
62
|
+
npx @agent-native/core@latest code -p "fix the failing auth tests"
|
|
63
|
+
npx @agent-native/core@latest code --plan "explain the failing auth tests"
|
|
64
|
+
npx @agent-native/core@latest code --auto "fix the failing auth tests"
|
|
65
|
+
npx @agent-native/core@latest code /migrate ./my-next-app --out ../migrated-app
|
|
66
|
+
npx @agent-native/core@latest code /audit --url https://example.com
|
|
67
|
+
```
|
|
68
|
+
|
|
69
|
+
Run `agent-native code goals` to see the goals registered in your checkout. A bare prompt starts a local coding-agent session for open-ended code work, streams the run, records transcript/status/tool events, and accepts follow-up prompts through the same run record.
|
|
70
|
+
|
|
71
|
+
Bare `agent-native` launches the Agent-Native Code workspace in this branch, and `agent-native "prompt"` starts a generic Agent-Native Code task directly, matching the Codex/Claude Code habit of treating unknown text as a coding prompt. If an installed version does not include that top-level entrypoint yet, run `agent-native code` directly.
|
|
72
|
+
|
|
73
|
+
## Sessions and Modes
|
|
74
|
+
|
|
75
|
+
The next Agent-Native Code follow-up features make the workspace feel like a local Codex/Claude Code session manager instead of a one-shot command. The CLI and Desktop hub share the same run store, so you can start work in one place and continue it in the other:
|
|
76
|
+
|
|
77
|
+
```bash
|
|
78
|
+
npx @agent-native/core@latest code list
|
|
79
|
+
npx @agent-native/core@latest code attach --last
|
|
80
|
+
npx @agent-native/core@latest code logs --last
|
|
81
|
+
npx @agent-native/core@latest code approve --last
|
|
82
|
+
npx @agent-native/core@latest code resume --last
|
|
83
|
+
npx @agent-native/core@latest code resume --last "check the auth edge cases next"
|
|
84
|
+
```
|
|
85
|
+
|
|
86
|
+
`list` shows previous and active sessions for the current workspace. `attach` follows a live transcript. `logs` prints the transcript once. `resume` reopens a session with its prior context, and a quoted resume prompt records the next instruction against that same run. If a high-risk command pauses for approval, `approve --last` runs that one pending command and then points you back to resume the session. Desktop adds the visual session picker on top of the same data: choose a run, inspect status and tool events, then attach, resume, stop, or open the run workspace.
|
|
87
|
+
|
|
88
|
+
Run modes make editing policy explicit per session:
|
|
89
|
+
|
|
90
|
+
| Mode | CLI flag | Behavior |
|
|
91
|
+
| ------------- | -------- | -------------------------------------------------------------------------------------------------------- |
|
|
92
|
+
| **Plan mode** | `--plan` | Inspect, plan, and explain without writing files or running mutations. |
|
|
93
|
+
| **Auto mode** | `--auto` | Edit files, run checks, and pause only for genuinely destructive file, git, publish, or data operations. |
|
|
94
|
+
|
|
95
|
+
Auto mode is the default for local Agent-Native Code sessions. Use Plan mode for assessment, architecture, review, or any task where you want a proposal before edits.
|
|
96
|
+
|
|
97
|
+
## Project Slash Commands
|
|
98
|
+
|
|
99
|
+
Built-in slash goals such as `/migrate` and `/audit` are framework commands. Projects can also define custom commands in `.agents/commands/*.md` using the same npx-first workflow:
|
|
100
|
+
|
|
101
|
+
```bash
|
|
102
|
+
npx @agent-native/core@latest code /release-check
|
|
103
|
+
npx @agent-native/core@latest code /migrate-storefront ./legacy-shop --out ../agent-shop
|
|
104
|
+
```
|
|
105
|
+
|
|
106
|
+
Each Markdown file names the command and contains the prompt/instructions the Agent-Native Code should run. This keeps team-specific workflows close to the repository: release checks, migration variants, framework upgrade playbooks, security audits, or customer-specific handoffs can be versioned without adding code. Source-specific systems such as AEM or Builder.io should stay as optional instruction-pack examples inside those commands, not top-level migration assumptions.
|
|
107
|
+
|
|
108
|
+
## Input Shapes
|
|
109
|
+
|
|
110
|
+
Use a local source path when you have code:
|
|
111
|
+
|
|
112
|
+
```bash
|
|
113
|
+
npx @agent-native/core@latest code /migrate ./my-next-app --out ../migrated-app
|
|
114
|
+
```
|
|
115
|
+
|
|
116
|
+
Use a URL when the first artifact is a live site or product surface:
|
|
117
|
+
|
|
118
|
+
```bash
|
|
119
|
+
npx @agent-native/core@latest code /migrate https://example.com --describe "marketing site plus logged-in dashboard"
|
|
120
|
+
```
|
|
121
|
+
|
|
122
|
+
Use a description when the migration starts from requirements, screenshots, or a handoff brief:
|
|
123
|
+
|
|
124
|
+
```bash
|
|
125
|
+
npx @agent-native/core@latest code /migrate --describe "A Rails admin app with reports, approvals, and CSV imports" --emit
|
|
126
|
+
```
|
|
11
127
|
|
|
12
|
-
|
|
128
|
+
For local paths, the source is read-only. Generated output must live outside the source tree.
|
|
13
129
|
|
|
14
|
-
##
|
|
130
|
+
## Internal Run Surface
|
|
15
131
|
|
|
16
|
-
|
|
132
|
+
The normal command creates a generic Agent-Native Code session and writes artifacts under the Agent-Native Code run store. It does **not** scaffold an app/template.
|
|
133
|
+
|
|
134
|
+
Open the legacy hidden `migration` detail surface only when you explicitly want that richer dashboard:
|
|
17
135
|
|
|
18
136
|
```bash
|
|
19
|
-
agent-native migrate ./my-next-app --
|
|
137
|
+
npx @agent-native/core@latest code /migrate ./my-next-app --app-surface
|
|
138
|
+
cd migration
|
|
139
|
+
pnpm install
|
|
140
|
+
pnpm dev
|
|
141
|
+
```
|
|
142
|
+
|
|
143
|
+
The local dev URL is printed by Vite. In first-party dev setups it is usually:
|
|
144
|
+
|
|
145
|
+
```text
|
|
146
|
+
http://localhost:8101/
|
|
20
147
|
```
|
|
21
148
|
|
|
22
|
-
|
|
149
|
+
Inside that optional internal surface, the flow is:
|
|
23
150
|
|
|
24
|
-
1. **Discover** reads the source
|
|
151
|
+
1. **Discover** reads the source and creates `01-assessment.md`.
|
|
25
152
|
2. **Plan** creates recipe tasks and writes `02-plan.md` plus `03-tasks.md`.
|
|
26
153
|
3. **Approve** unlocks generated output writes.
|
|
27
154
|
4. **Sweep** runs migration tasks against the generated output project.
|
|
28
155
|
5. **Verify** runs deterministic checks and writes `04-report.md`.
|
|
29
156
|
|
|
30
|
-
|
|
157
|
+
Useful CLI helpers:
|
|
31
158
|
|
|
32
|
-
|
|
159
|
+
```bash
|
|
160
|
+
npx @agent-native/core@latest code status --last
|
|
161
|
+
npx @agent-native/core@latest code list
|
|
162
|
+
npx @agent-native/core@latest code attach --last
|
|
163
|
+
npx @agent-native/core@latest code logs --last
|
|
164
|
+
npx @agent-native/core@latest code approve --last
|
|
165
|
+
npx @agent-native/core@latest code resume --last
|
|
166
|
+
npx @agent-native/core@latest code --continue "check the auth edge cases next"
|
|
167
|
+
npx @agent-native/core@latest code resume --last "check the auth edge cases next"
|
|
168
|
+
npx @agent-native/core@latest code ui --last
|
|
169
|
+
npx @agent-native/core@latest code stop --last
|
|
170
|
+
```
|
|
33
171
|
|
|
34
|
-
|
|
172
|
+
`attach --last` follows a live transcript until the run reaches a terminal state, while `logs --last` prints the transcript once. `resume --last` reopens the latest run handoff. Passing a quoted prompt, or using `--continue "prompt"`, records it as a follow-up transcript event and immediately runs that follow-up against the same session context for executable coding sessions. `approve --last` is intentionally narrow: it only runs the pending approved command for a session that paused on a high-risk command, then tells you to resume.
|
|
35
173
|
|
|
36
|
-
|
|
37
|
-
| --------------------------- | ----------------------------------------------------------------- |
|
|
38
|
-
| API routes / server actions | `actions/`, except uploads, webhooks, OAuth, and streaming routes |
|
|
39
|
-
| app-owned data | Drizzle SQL tables plus actions |
|
|
40
|
-
| direct LLM calls | agent chat delegation |
|
|
41
|
-
| important client state | `application_state` navigation and selection |
|
|
42
|
-
| UI mutations | optimistic action mutations |
|
|
43
|
-
| shared resources | ownership, sharing, and access helpers |
|
|
44
|
-
| public pages | server rendering |
|
|
45
|
-
| logged-in workflows | persistent client app shell |
|
|
174
|
+
`stop` marks the run paused and sends SIGTERM when the run has a tracked Desktop/CLI runner process id. If the active work belongs to another terminal or external agent, stop that owner directly.
|
|
46
175
|
|
|
47
|
-
|
|
176
|
+
## Long-Running Goals
|
|
177
|
+
|
|
178
|
+
The `/migrate` goal has an action named `run-migration-goal`. It advances a run in bounded iterations:
|
|
179
|
+
|
|
180
|
+
- before approval, it can assess and plan but cannot write generated output
|
|
181
|
+
- after approval, it scaffolds once, advances pending tasks, verifies, and records verifier results
|
|
182
|
+
- if verification fails, the critic policy returns `retry-with-more-context`, `tune-recipe`, `manual-decision-needed`, `rollback-generated-output`, or `accept`
|
|
183
|
+
|
|
184
|
+
That gives the flow Claude Code `/goal`-style semantics without making migration a one-shot rewrite. The app state and disk artifacts let you resume after restarts, long pauses, or manual decisions.
|
|
185
|
+
|
|
186
|
+
## Credentials
|
|
187
|
+
|
|
188
|
+
The `/migrate` goal reuses the same credentials system as agent-native. There is no migration-specific key store and no `MIGRATION_*` secret namespace.
|
|
189
|
+
|
|
190
|
+
In Agent-Native Code, Desktop, or the internal run surface, connect providers through the normal settings and onboarding surfaces. For headless CLI use, existing provider environment variables are detected, including `ANTHROPIC_API_KEY`, `OPENAI_API_KEY`, `GOOGLE_GENERATIVE_AI_API_KEY`, and other provider env vars supported by the framework. Secret values are never copied into migration artifacts.
|
|
191
|
+
|
|
192
|
+
## Agent-Native Code
|
|
193
|
+
|
|
194
|
+
Agent-Native Desktop includes a **Agent-Native Code** hub for long-running coding-agent sessions. It is the general Code app/surface in Desktop, and it pairs with the `agent-native code` shell as the primary CLI/Desktop coding experience. A bare prompt is the generic coding session, and `/migrate` is one specialized capability there: the hub shows recent and active runs, opens a transcript-first session view, renders tool events and artifacts, sends follow-up prompts, stops tracked runners, opens a terminal in the run workspace, and handles links like:
|
|
195
|
+
|
|
196
|
+
```text
|
|
197
|
+
agentnative://open?goal=migrate&run=<runId>
|
|
198
|
+
```
|
|
199
|
+
|
|
200
|
+
The legacy app-style deep link still works and opens the internal run detail surface:
|
|
201
|
+
|
|
202
|
+
```text
|
|
203
|
+
agentnative://open?app=migration&run=<runId>
|
|
204
|
+
```
|
|
205
|
+
|
|
206
|
+
The hub also includes `/audit`, a lightweight native goal backed by `agent-native audit-agent-web`, to keep the shell honest about more than one goal:
|
|
207
|
+
|
|
208
|
+
```bash
|
|
209
|
+
npx @agent-native/core@latest code /audit --url https://example.com
|
|
210
|
+
```
|
|
48
211
|
|
|
49
|
-
|
|
212
|
+
The hub exposes the same generic run controls the CLI does: the session picker opens past runs, `resume` opens the goal surface or reattaches to the run, a quoted resume prompt records and executes follow-up feedback for executable goals, status refreshes the run list, and stop reports or stops the owning process when one is known. Browser/Desktop approval remains the trust gate for generated output writes. Future coding goals can reuse the same CLI and desktop shell by registering another slash goal or a project command under `.agents/commands/*.md`.
|
|
50
213
|
|
|
51
|
-
|
|
214
|
+
## Emit Mode
|
|
52
215
|
|
|
53
|
-
|
|
54
|
-
- `TargetAdapter` scaffolds and verifies output.
|
|
55
|
-
- `MigrationRecipe` turns IR graph inventory into tasks.
|
|
56
|
-
- `Verifier` returns structured migration evidence.
|
|
216
|
+
Use `--emit` when you want Codex, Claude Code, another code agent, or Agent-Native Desktop to do the next phase without opening the internal run surface:
|
|
57
217
|
|
|
58
|
-
|
|
218
|
+
```bash
|
|
219
|
+
npx @agent-native/core@latest code /migrate ./my-next-app --emit ../migration-dossier
|
|
220
|
+
```
|
|
59
221
|
|
|
60
|
-
|
|
61
|
-
- `ComponentGraph`: reusable UI components and design tokens.
|
|
62
|
-
- `ContentGraph`: CMS models, static content, and assets.
|
|
63
|
-
- `BehaviorGraph`: API endpoints, data stores, auth, jobs, client state, and LLM calls.
|
|
222
|
+
The dossier is always written outside `sourceRoot`. It includes:
|
|
64
223
|
|
|
65
|
-
|
|
224
|
+
- `AGENTS.md` with migration-specific instructions
|
|
225
|
+
- `.agents/skills/migration*/SKILL.md` when migration skills are available from the template
|
|
226
|
+
- `MIGRATION_PLAYBOOK.md`
|
|
227
|
+
- `01-assessment.md`
|
|
228
|
+
- `ir.json` when file-level inventory is available
|
|
66
229
|
|
|
67
|
-
|
|
230
|
+
Hand the dossier to your preferred coding agent with a prompt like:
|
|
68
231
|
|
|
69
|
-
|
|
232
|
+
```text
|
|
233
|
+
Use this migration dossier. Follow AGENTS.md and MIGRATION_PLAYBOOK.md, keep the source read-only, write the agent-native output outside the source tree, and record verification evidence before calling the migration complete.
|
|
234
|
+
```
|
|
70
235
|
|
|
71
|
-
-
|
|
72
|
-
- `api`: AEM GraphQL Content Fragments and DAM metadata.
|
|
73
|
-
- `package`: Vault/JCR package parsing.
|
|
74
|
-
- `code`: HTL components, dialogs, templates, and policies.
|
|
75
|
-
- `enterprise`: combines available modes and emits confidence/gap reports.
|
|
236
|
+
When `@agent-native/migrate` helpers are installed, `--emit` uses them for Next.js assessment and IR. If they are not available, the CLI falls back to a safe local inventory pass. URL-only and description-only dossiers still include the playbook and assessment, but they do not claim file-level IR until an agent inspects source.
|
|
76
237
|
|
|
77
|
-
|
|
238
|
+
## Instruction Packs
|
|
78
239
|
|
|
79
|
-
|
|
240
|
+
The `/migrate` goal is driven by instruction packs instead of one source-specific path.
|
|
80
241
|
|
|
81
|
-
|
|
242
|
+
| Pack | What it tells the agent to do |
|
|
243
|
+
| ---------------- | ------------------------------------------------------------------- |
|
|
244
|
+
| Source intake | Normalize path, URL, or prose input into an assessment |
|
|
245
|
+
| Agent-native map | Convert operations to actions, SQL, app state, sharing, and SSR |
|
|
246
|
+
| Output safety | Keep generated code outside sourceRoot and require approval gates |
|
|
247
|
+
| Verification | Use deterministic checks and record manual gaps |
|
|
248
|
+
| Platform exits | Add source-specific guidance for systems such as AEM or CMS exports |
|
|
82
249
|
|
|
83
|
-
-
|
|
84
|
-
- route inventory parity artifacts
|
|
85
|
-
- agent-native conformance checks
|
|
86
|
-
- future Playwright smoke tests
|
|
87
|
-
- future visual, a11y, Lighthouse, SEO, and redirect checks
|
|
250
|
+
Builder.io, AEM, crawls, package exports, and CMS APIs are optional instruction-pack concerns, not top-level assumptions. Builder Publish can be a target for marketing, docs, landing, and content surfaces. Transactional SaaS state, dashboards, app-owned data, and workflows stay in agent-native SQL/actions.
|
|
88
251
|
|
|
89
|
-
|
|
252
|
+
## Agent-Native Mapping
|
|
253
|
+
|
|
254
|
+
The recipes are named after the framework contracts they enforce:
|
|
255
|
+
|
|
256
|
+
| Source pattern | Agent-native target |
|
|
257
|
+
| --------------------------- | ----------------------------------------------------------------- |
|
|
258
|
+
| API routes / server actions | `actions/`, except uploads, webhooks, OAuth, and streaming routes |
|
|
259
|
+
| app-owned data | Drizzle SQL tables plus actions |
|
|
260
|
+
| direct LLM calls | agent chat delegation |
|
|
261
|
+
| important client state | `application_state` navigation and selection |
|
|
262
|
+
| UI mutations | optimistic action mutations |
|
|
263
|
+
| shared resources | ownership, sharing, and access helpers |
|
|
264
|
+
| public pages | server rendering |
|
|
265
|
+
| logged-in workflows | persistent client app shell |
|
|
266
|
+
|
|
267
|
+
This is the difference between porting React code and actually migrating to agent-native.
|
|
90
268
|
|
|
91
269
|
## Package Exports
|
|
92
270
|
|
|
93
|
-
|
|
271
|
+
`@agent-native/migrate` exposes a reusable engine for adapters and custom workflows:
|
|
94
272
|
|
|
95
273
|
```ts
|
|
96
274
|
import {
|
|
97
275
|
createMigrationRun,
|
|
98
276
|
discoverMigration,
|
|
99
277
|
planMigration,
|
|
278
|
+
selectSourceAdapter,
|
|
279
|
+
createSkeletonProjectIR,
|
|
280
|
+
createBrowserVerifier,
|
|
100
281
|
nextjsSourceAdapter,
|
|
101
282
|
agentNativeTargetAdapter,
|
|
102
283
|
} from "@agent-native/migrate";
|
|
@@ -108,3 +289,5 @@ Subpath exports are available for first-party V1 adapters:
|
|
|
108
289
|
import { nextjsSourceAdapter } from "@agent-native/migrate/source-nextjs";
|
|
109
290
|
import { agentNativeTargetAdapter } from "@agent-native/migrate/target-agent-native";
|
|
110
291
|
```
|
|
292
|
+
|
|
293
|
+
The intermediate representation is split into four graphs: site, components, content, and behavior. Verification starts with deterministic checks and can grow to Playwright, visual, accessibility, Lighthouse, SEO, and redirect checks.
|
|
@@ -134,6 +134,47 @@ Everything cross-cutting you customize lives in `packages/shared/`. Export an `a
|
|
|
134
134
|
|
|
135
135
|
Because the shared package is a `workspace:*` dependency, pnpm symlinks it into each app's `node_modules/`. You never build or publish it — the apps bundle whatever they need from it at build time.
|
|
136
136
|
|
|
137
|
+
## Runtime global resources {#runtime-global-resources}
|
|
138
|
+
|
|
139
|
+
Use `packages/shared` for code-level defaults that should ship with the repo: plugins, shared actions, shared React code, filesystem `AGENTS.md`, and filesystem skills. Use Dispatch workspace resources for runtime-editable global context that admins want to manage without a code change.
|
|
140
|
+
|
|
141
|
+
Dispatch resources support two scopes:
|
|
142
|
+
|
|
143
|
+
- **All apps** — global resources for every app in the workspace. Dispatch stores them once at workspace scope and every app agent inherits them at runtime; no copy or sync step is required.
|
|
144
|
+
- **Selected apps** — resources granted per app for app-specific context. Use these sparingly; most company, brand, persona, positioning, messaging, and guardrail context should be All apps.
|
|
145
|
+
|
|
146
|
+
Canonical paths control behavior:
|
|
147
|
+
|
|
148
|
+
| Runtime resource | Path | How agents use it |
|
|
149
|
+
| ----------------------- | --------------------------------------- | ----------------------------------------------- |
|
|
150
|
+
| Guardrail instructions | `AGENTS.md` or `instructions/<slug>.md` | Loaded every turn in every app that receives it |
|
|
151
|
+
| Global skills | `skills/<slug>/SKILL.md` | Listed as workspace skills and read on demand |
|
|
152
|
+
| Brand/company resources | `context/<slug>.md` | Indexed every turn, read when relevant |
|
|
153
|
+
| Custom agent profiles | `agents/<slug>.md` | Available as reusable local agent profiles |
|
|
154
|
+
|
|
155
|
+
This is the right home for core personas, positioning, messaging, company facts, brand guidelines, support policies, or other shared knowledge that many apps should benefit from.
|
|
156
|
+
|
|
157
|
+
For a starter workspace, create these Dispatch resources and scope them to **All apps**:
|
|
158
|
+
|
|
159
|
+
```text
|
|
160
|
+
context/company.md # company overview, ICP, products, canonical links
|
|
161
|
+
context/brand.md # brand voice, visual identity, spelling, terms to avoid
|
|
162
|
+
context/messaging.md # value props, product pillars, proof points, objections
|
|
163
|
+
instructions/guardrails.md # rules that must be loaded every turn
|
|
164
|
+
skills/company-voice/SKILL.md # copywriting and review workflow for brand voice
|
|
165
|
+
```
|
|
166
|
+
|
|
167
|
+
Example `skills/company-voice/SKILL.md`:
|
|
168
|
+
|
|
169
|
+
```markdown
|
|
170
|
+
---
|
|
171
|
+
name: company-voice
|
|
172
|
+
description: Rewrite or review customer-facing copy using the workspace brand and messaging resources.
|
|
173
|
+
---
|
|
174
|
+
|
|
175
|
+
Before writing, read `context/brand.md` and `context/messaging.md`. Keep claims grounded in those resources, preserve required terminology, and flag missing proof instead of inventing it.
|
|
176
|
+
```
|
|
177
|
+
|
|
137
178
|
## Authentication and RBAC {#auth-and-rbac}
|
|
138
179
|
|
|
139
180
|
Every agent-native app already ships with [Better Auth](/docs/authentication) and its organizations plugin — users, organizations, members, and the `owner` / `admin` / `member` roles are all first-class, shared across every template. In a workspace, you get that for free in every app, backed by the same database.
|
|
@@ -16,7 +16,7 @@ The framework uses [Better Auth](https://better-auth.com)'s organizations plugin
|
|
|
16
16
|
- **Active organization** — the session tracks which org the user is currently working in (`session.orgId`). Switching orgs changes the data they see.
|
|
17
17
|
- **Data isolation** — SQL queries are automatically scoped to the active org via `org_id` columns. Data tagged with one org is invisible to users in another org, including the agent.
|
|
18
18
|
|
|
19
|
-
All first-party templates (Mail, Calendar, Content, Slides, Video, Analytics) are multi-tenant out of the box. If you're building on any of these, your app already supports teams with no extra work.
|
|
19
|
+
All first-party templates (Mail, Calendar, Content, Brain, Slides, Video, Analytics, Clips, Design, Forms, and Dispatch) are multi-tenant out of the box. If you're building on any of these, your app already supports teams with no extra work.
|
|
20
20
|
|
|
21
21
|
## Organizations and members {#organizations-and-members}
|
|
22
22
|
|