@agent-native/core 0.99.3 → 0.100.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/corpus/README.md +2 -2
- package/corpus/core/CHANGELOG.md +21 -0
- package/corpus/core/docs/content/agent-surfaces.mdx +43 -0
- package/corpus/core/docs/content/external-agents.mdx +11 -0
- package/corpus/core/docs/content/locales/ar-SA/agent-surfaces.mdx +30 -0
- package/corpus/core/docs/content/locales/ar-SA/external-agents.mdx +9 -0
- package/corpus/core/docs/content/locales/de-DE/agent-surfaces.mdx +34 -0
- package/corpus/core/docs/content/locales/de-DE/external-agents.mdx +10 -0
- package/corpus/core/docs/content/locales/es-ES/agent-surfaces.mdx +34 -0
- package/corpus/core/docs/content/locales/es-ES/external-agents.mdx +10 -0
- package/corpus/core/docs/content/locales/fr-FR/agent-surfaces.mdx +34 -0
- package/corpus/core/docs/content/locales/fr-FR/external-agents.mdx +11 -0
- package/corpus/core/docs/content/locales/hi-IN/agent-surfaces.mdx +31 -0
- package/corpus/core/docs/content/locales/hi-IN/external-agents.mdx +9 -0
- package/corpus/core/docs/content/locales/ja-JP/agent-surfaces.mdx +32 -0
- package/corpus/core/docs/content/locales/ja-JP/external-agents.mdx +10 -0
- package/corpus/core/docs/content/locales/ko-KR/agent-surfaces.mdx +32 -0
- package/corpus/core/docs/content/locales/ko-KR/external-agents.mdx +9 -0
- package/corpus/core/docs/content/locales/pt-BR/agent-surfaces.mdx +33 -0
- package/corpus/core/docs/content/locales/pt-BR/external-agents.mdx +10 -0
- package/corpus/core/docs/content/locales/zh-CN/agent-surfaces.mdx +29 -0
- package/corpus/core/docs/content/locales/zh-CN/external-agents.mdx +8 -0
- package/corpus/core/docs/content/locales/zh-TW/agent-surfaces.mdx +29 -0
- package/corpus/core/docs/content/locales/zh-TW/external-agents.mdx +8 -0
- package/corpus/core/package.json +1 -1
- package/corpus/core/src/agent/context-xray/actions/context-evict.ts +11 -0
- package/corpus/core/src/agent/context-xray/actions/context-pin.ts +11 -0
- package/corpus/core/src/agent/context-xray/actions/context-preview-get.ts +134 -0
- package/corpus/core/src/agent/context-xray/actions/context-restore.ts +11 -0
- package/corpus/core/src/agent/context-xray/actions/errors.ts +20 -0
- package/corpus/core/src/agent/context-xray/manifest.ts +106 -7
- package/corpus/core/src/agent/engine/context-directives-transform.ts +5 -1
- package/corpus/core/src/agent/production-agent.ts +100 -38
- package/corpus/core/src/agent/run-loop-with-resume.ts +7 -2
- package/corpus/core/src/client/AgentPanel.tsx +35 -8
- package/corpus/core/src/client/agent-page/AgentContextTab.tsx +501 -0
- package/corpus/core/src/client/agent-page/AgentJobsTab.tsx +370 -0
- package/corpus/core/src/client/agent-page/AgentTabsPage.tsx +1084 -0
- package/corpus/core/src/client/agent-page/types.ts +18 -0
- package/corpus/core/src/client/agent-page/use-jobs.ts +150 -0
- package/corpus/core/src/client/context-xray/ContextMeter.tsx +22 -5
- package/corpus/core/src/client/context-xray/ContextTreemap.tsx +16 -1
- package/corpus/core/src/client/context-xray/ContextXRayPanel.tsx +168 -3
- package/corpus/core/src/client/context-xray/format.ts +6 -0
- package/corpus/core/src/client/index.ts +6 -0
- package/corpus/core/src/client/resources/ResourcesPanel.tsx +51 -23
- package/corpus/core/src/client/settings/AutomationsSection.tsx +407 -387
- package/corpus/core/src/jobs/actions/list-recurring-jobs.ts +105 -0
- package/corpus/core/src/jobs/actions/manage-recurring-job.ts +85 -0
- package/corpus/core/src/jobs/tools.ts +1 -1
- package/corpus/core/src/localization/default-messages.ts +110 -0
- package/corpus/core/src/mcp/build-server.ts +1 -0
- package/corpus/core/src/mcp/connect-route.ts +62 -65
- package/corpus/core/src/server/action-discovery.ts +23 -0
- package/corpus/core/src/server/agent-chat/prompt-resources.ts +174 -2
- package/corpus/core/src/server/agent-chat-plugin.ts +175 -2
- package/corpus/core/src/server/auth.ts +1 -7
- package/corpus/core/src/server/google-oauth.ts +1 -7
- package/corpus/core/src/server/workspace-oauth.ts +31 -0
- package/corpus/core/src/shared/context-xray.ts +84 -1
- package/corpus/core/src/shared/mcp-connect-content.ts +130 -0
- package/corpus/core/src/templates/default/app/routes/_index.tsx +11 -0
- package/corpus/core/src/templates/default/app/routes/agent.tsx +33 -0
- package/corpus/core/src/templates/workspace-core/.agents/skills/agent-native-toolkit/SKILL.md +6 -0
- package/corpus/core/src/templates/workspace-core/.agents/skills/agent-page/SKILL.md +59 -0
- package/corpus/core/src/templates/workspace-core/.agents/skills/context-xray/SKILL.md +25 -0
- package/corpus/core/src/templates/workspace-core/.agents/skills/external-agents/SKILL.md +7 -0
- package/corpus/core/src/templates/workspace-core/.agents/skills/recurring-jobs/SKILL.md +9 -0
- package/corpus/core/src/triggers/actions/list-automations.ts +99 -0
- package/corpus/core/src/triggers/actions/manage-automation.ts +78 -0
- package/corpus/templates/analytics/actions/data-source-status.ts +33 -15
- package/corpus/templates/analytics/actions/query-agent-native-analytics.ts +1 -1
- package/corpus/templates/analytics/app/components/dashboard/SqlChart.tsx +149 -24
- package/corpus/templates/analytics/app/components/layout/CommandPalette.tsx +17 -0
- package/corpus/templates/analytics/app/components/layout/Header.tsx +1 -0
- package/corpus/templates/analytics/app/components/layout/Layout.tsx +1 -0
- package/corpus/templates/analytics/app/components/layout/Sidebar.tsx +8 -0
- package/corpus/templates/analytics/app/i18n/zh-TW.ts +1 -0
- package/corpus/templates/analytics/app/i18n-data.ts +1 -0
- package/corpus/templates/analytics/app/routes/agent.tsx +5 -0
- package/corpus/templates/analytics/changelog/2026-07-13-a-full-agent-page-now-brings-context-files-connections-jobs-.md +6 -0
- package/corpus/templates/analytics/changelog/2026-07-13-analytics-answers-can-use-built-in-first-party-event-data.md +6 -0
- package/corpus/templates/analytics/changelog/2026-07-13-chart-legends-can-filter-to-one-series-or-hide-a-series-on-h.md +6 -0
- package/corpus/templates/analytics/changelog/2026-07-13-gpt-5-6-luna-answers-now-recover-normally-instead-of-showing.md +6 -0
- package/corpus/templates/analytics/server/plugins/agent-chat.ts +11 -2
- package/corpus/templates/assets/app/components/layout/Header.tsx +1 -0
- package/corpus/templates/assets/app/components/layout/Layout.tsx +1 -0
- package/corpus/templates/assets/app/components/layout/Sidebar.tsx +2 -0
- package/corpus/templates/assets/app/routes/agent.tsx +5 -0
- package/corpus/templates/assets/changelog/2026-07-13-a-full-agent-page-now-brings-context-files-connections-jobs-.md +6 -0
- package/corpus/templates/brain/app/components/layout/Layout.tsx +1 -0
- package/corpus/templates/brain/app/components/layout/Sidebar.tsx +4 -1
- package/corpus/templates/brain/app/lib/brain.ts +11 -0
- package/corpus/templates/brain/app/root.tsx +15 -1
- package/corpus/templates/brain/app/routes/agent.tsx +11 -0
- package/corpus/templates/brain/changelog/2026-07-13-a-full-agent-page-now-brings-context-files-connections-jobs-.md +6 -0
- package/corpus/templates/calendar/AGENTS.md +9 -0
- package/corpus/templates/calendar/actions/list-events.ts +659 -44
- package/corpus/templates/calendar/app/components/layout/AppLayout.tsx +1 -0
- package/corpus/templates/calendar/app/components/layout/Sidebar.tsx +2 -0
- package/corpus/templates/calendar/app/root.tsx +17 -1
- package/corpus/templates/calendar/app/routes/_app.agent.tsx +25 -0
- package/corpus/templates/calendar/changelog/2026-07-13-a-full-agent-page-now-brings-context-files-connections-jobs-.md +6 -0
- package/corpus/templates/calendar/changelog/2026-07-13-calendar-inventory-reads-report-source-coverage.md +6 -0
- package/corpus/templates/calendar/server/lib/calendar-connector-catalog.ts +8 -0
- package/corpus/templates/calendar/server/lib/google-calendar.ts +173 -51
- package/corpus/templates/calendar/server/lib/ical-fetcher.ts +13 -2
- package/corpus/templates/calendar/server/plugins/agent-chat.ts +5 -3
- package/corpus/templates/calendar/shared/api.ts +2 -0
- package/corpus/templates/chat/app/components/layout/Header.tsx +1 -0
- package/corpus/templates/chat/app/components/layout/Layout.tsx +1 -0
- package/corpus/templates/chat/app/components/layout/Sidebar.tsx +7 -0
- package/corpus/templates/chat/app/hooks/use-navigation-state.ts +3 -0
- package/corpus/templates/chat/app/root.tsx +24 -2
- package/corpus/templates/chat/app/routes/agent.tsx +15 -0
- package/corpus/templates/chat/changelog/2026-07-13-a-full-agent-page-now-brings-context-files-connections-jobs-.md +6 -0
- package/corpus/templates/clips/app/components/library/library-layout.tsx +8 -0
- package/corpus/templates/clips/app/i18n/ar-SA.ts +2 -0
- package/corpus/templates/clips/app/i18n/de-DE.ts +2 -0
- package/corpus/templates/clips/app/i18n/en-US.ts +2 -0
- package/corpus/templates/clips/app/i18n/es-ES.ts +2 -0
- package/corpus/templates/clips/app/i18n/fr-FR.ts +2 -0
- package/corpus/templates/clips/app/i18n/hi-IN.ts +2 -0
- package/corpus/templates/clips/app/i18n/ja-JP.ts +2 -0
- package/corpus/templates/clips/app/i18n/ko-KR.ts +2 -0
- package/corpus/templates/clips/app/i18n/pt-BR.ts +2 -0
- package/corpus/templates/clips/app/i18n/zh-CN.ts +2 -0
- package/corpus/templates/clips/app/i18n/zh-TW.ts +2 -0
- package/corpus/templates/clips/app/root.tsx +7 -1
- package/corpus/templates/clips/app/routes/_app.agent.tsx +15 -0
- package/corpus/templates/clips/changelog/2026-07-13-new-agent-page-see-and-manage-your-agent-s-context-files-con.md +6 -0
- package/corpus/templates/content/app/components/layout/Layout.tsx +1 -0
- package/corpus/templates/content/app/components/sidebar/DocumentSidebar.tsx +36 -0
- package/corpus/templates/content/app/i18n/zh-TW.ts +2 -0
- package/corpus/templates/content/app/i18n-data.ts +44 -6
- package/corpus/templates/content/app/root.tsx +8 -0
- package/corpus/templates/content/app/routes/_app.agent.tsx +15 -0
- package/corpus/templates/content/changelog/2026-07-13-new-agent-page-see-and-manage-your-agent-s-context-files-con.md +6 -0
- package/corpus/templates/design/app/components/layout/Layout.tsx +1 -0
- package/corpus/templates/design/app/components/layout/Sidebar.tsx +2 -0
- package/corpus/templates/design/app/i18n/zh-TW.ts +2 -0
- package/corpus/templates/design/app/i18n-data.ts +20 -0
- package/corpus/templates/design/app/root.tsx +7 -1
- package/corpus/templates/design/app/routes/agent.tsx +15 -0
- package/corpus/templates/design/changelog/2026-07-13-new-agent-page-see-and-manage-your-agent-s-context-files-con.md +6 -0
- package/corpus/templates/dispatch/app/dispatch-extensions.tsx +10 -1
- package/corpus/templates/dispatch/app/i18n/zh-TW.ts +2 -0
- package/corpus/templates/dispatch/app/i18n-data.ts +20 -0
- package/corpus/templates/dispatch/app/root.tsx +7 -2
- package/corpus/templates/dispatch/app/routes/agent.tsx +18 -0
- package/corpus/templates/dispatch/changelog/2026-07-13-new-agent-page-see-and-manage-your-agent-s-context-files-con.md +6 -0
- package/corpus/templates/forms/app/components/layout/Layout.tsx +1 -0
- package/corpus/templates/forms/app/components/layout/Sidebar.tsx +35 -0
- package/corpus/templates/forms/app/i18n/ar-SA.ts +2 -0
- package/corpus/templates/forms/app/i18n/de-DE.ts +2 -0
- package/corpus/templates/forms/app/i18n/en-US.ts +2 -0
- package/corpus/templates/forms/app/i18n/es-ES.ts +2 -0
- package/corpus/templates/forms/app/i18n/fr-FR.ts +2 -0
- package/corpus/templates/forms/app/i18n/hi-IN.ts +2 -0
- package/corpus/templates/forms/app/i18n/ja-JP.ts +2 -0
- package/corpus/templates/forms/app/i18n/ko-KR.ts +2 -0
- package/corpus/templates/forms/app/i18n/pt-BR.ts +2 -0
- package/corpus/templates/forms/app/i18n/zh-CN.ts +2 -0
- package/corpus/templates/forms/app/i18n/zh-TW.ts +2 -0
- package/corpus/templates/forms/app/root.tsx +6 -1
- package/corpus/templates/forms/app/routes/_app.agent.tsx +15 -0
- package/corpus/templates/forms/changelog/2026-07-13-new-agent-page-see-and-manage-your-agent-s-context-files-con.md +6 -0
- package/corpus/templates/macros/app/components/layout/AppLayout.tsx +14 -2
- package/corpus/templates/macros/app/components/layout/Header.tsx +1 -0
- package/corpus/templates/macros/app/root.tsx +17 -2
- package/corpus/templates/macros/app/routes/agent.tsx +15 -0
- package/corpus/templates/macros/changelog/2026-07-13-new-agent-page-see-and-manage-your-agent-s-context-files-con.md +6 -0
- package/corpus/templates/mail/AGENTS.md +12 -0
- package/corpus/templates/mail/actions/list-emails.ts +486 -4
- package/corpus/templates/mail/app/components/layout/AppLayout.tsx +42 -0
- package/corpus/templates/mail/app/components/layout/CommandPalette.tsx +6 -0
- package/corpus/templates/mail/app/routes/agent.tsx +15 -0
- package/corpus/templates/mail/changelog/2026-07-13-coverage-aware-connected-inbox-inventory.md +6 -0
- package/corpus/templates/mail/changelog/2026-07-13-new-agent-page-see-and-manage-your-agent-s-context-files-con.md +6 -0
- package/corpus/templates/mail/server/db/schema.ts +17 -0
- package/corpus/templates/mail/server/lib/google-auth.ts +33 -5
- package/corpus/templates/mail/server/lib/inventory-cursor.ts +406 -0
- package/corpus/templates/mail/server/lib/list-inbox-emails.ts +21 -2
- package/corpus/templates/mail/server/lib/mail-connector-catalog.ts +8 -0
- package/corpus/templates/mail/server/plugins/agent-chat.ts +4 -9
- package/corpus/templates/mail/server/plugins/db.ts +20 -0
- package/corpus/templates/plan/app/components/layout/Header.tsx +1 -0
- package/corpus/templates/plan/app/components/layout/Layout.tsx +1 -0
- package/corpus/templates/plan/app/components/layout/Sidebar.tsx +2 -0
- package/corpus/templates/plan/app/root.tsx +8 -0
- package/corpus/templates/plan/app/routes/agent.tsx +15 -0
- package/corpus/templates/plan/changelog/2026-07-13-new-agent-page-see-and-manage-your-agent-s-context-files-con.md +6 -0
- package/corpus/templates/slides/app/components/layout/Header.tsx +1 -0
- package/corpus/templates/slides/app/components/layout/Layout.tsx +1 -0
- package/corpus/templates/slides/app/components/layout/Sidebar.tsx +2 -0
- package/corpus/templates/slides/app/root.tsx +10 -1
- package/corpus/templates/slides/app/routes/agent.tsx +15 -0
- package/corpus/templates/slides/changelog/2026-07-13-new-agent-page-see-and-manage-your-agent-s-context-files-con.md +6 -0
- package/dist/agent/context-xray/actions/context-evict.js +5 -2
- package/dist/agent/context-xray/actions/context-evict.js.map +1 -1
- package/dist/agent/context-xray/actions/context-pin.js +5 -2
- package/dist/agent/context-xray/actions/context-pin.js.map +1 -1
- package/dist/agent/context-xray/actions/context-preview-get.d.ts +17 -0
- package/dist/agent/context-xray/actions/context-preview-get.d.ts.map +1 -0
- package/dist/agent/context-xray/actions/context-preview-get.js +94 -0
- package/dist/agent/context-xray/actions/context-preview-get.js.map +1 -0
- package/dist/agent/context-xray/actions/context-restore.js +5 -2
- package/dist/agent/context-xray/actions/context-restore.js.map +1 -1
- package/dist/agent/context-xray/actions/errors.d.ts +3 -0
- package/dist/agent/context-xray/actions/errors.d.ts.map +1 -1
- package/dist/agent/context-xray/actions/errors.js +6 -0
- package/dist/agent/context-xray/actions/errors.js.map +1 -1
- package/dist/agent/context-xray/manifest.d.ts +18 -1
- package/dist/agent/context-xray/manifest.d.ts.map +1 -1
- package/dist/agent/context-xray/manifest.js +68 -6
- package/dist/agent/context-xray/manifest.js.map +1 -1
- package/dist/agent/engine/context-directives-transform.d.ts +2 -0
- package/dist/agent/engine/context-directives-transform.d.ts.map +1 -1
- package/dist/agent/engine/context-directives-transform.js +2 -1
- package/dist/agent/engine/context-directives-transform.js.map +1 -1
- package/dist/agent/production-agent.d.ts +15 -0
- package/dist/agent/production-agent.d.ts.map +1 -1
- package/dist/agent/production-agent.js +74 -36
- package/dist/agent/production-agent.js.map +1 -1
- package/dist/agent/run-loop-with-resume.d.ts.map +1 -1
- package/dist/agent/run-loop-with-resume.js +6 -3
- package/dist/agent/run-loop-with-resume.js.map +1 -1
- package/dist/client/AgentPanel.d.ts +5 -1
- package/dist/client/AgentPanel.d.ts.map +1 -1
- package/dist/client/AgentPanel.js +9 -11
- package/dist/client/AgentPanel.js.map +1 -1
- package/dist/client/agent-page/AgentContextTab.d.ts +5 -0
- package/dist/client/agent-page/AgentContextTab.d.ts.map +1 -0
- package/dist/client/agent-page/AgentContextTab.js +202 -0
- package/dist/client/agent-page/AgentContextTab.js.map +1 -0
- package/dist/client/agent-page/AgentJobsTab.d.ts +3 -0
- package/dist/client/agent-page/AgentJobsTab.d.ts.map +1 -0
- package/dist/client/agent-page/AgentJobsTab.js +98 -0
- package/dist/client/agent-page/AgentJobsTab.js.map +1 -0
- package/dist/client/agent-page/AgentTabsPage.d.ts +20 -0
- package/dist/client/agent-page/AgentTabsPage.d.ts.map +1 -0
- package/dist/client/agent-page/AgentTabsPage.js +420 -0
- package/dist/client/agent-page/AgentTabsPage.js.map +1 -0
- package/dist/client/agent-page/types.d.ts +17 -0
- package/dist/client/agent-page/types.d.ts.map +1 -0
- package/dist/client/agent-page/types.js +9 -0
- package/dist/client/agent-page/types.js.map +1 -0
- package/dist/client/agent-page/use-jobs.d.ts +61 -0
- package/dist/client/agent-page/use-jobs.d.ts.map +1 -0
- package/dist/client/agent-page/use-jobs.js +71 -0
- package/dist/client/agent-page/use-jobs.js.map +1 -0
- package/dist/client/context-xray/ContextMeter.d.ts +3 -1
- package/dist/client/context-xray/ContextMeter.d.ts.map +1 -1
- package/dist/client/context-xray/ContextMeter.js +14 -5
- package/dist/client/context-xray/ContextMeter.js.map +1 -1
- package/dist/client/context-xray/ContextTreemap.d.ts +3 -2
- package/dist/client/context-xray/ContextTreemap.d.ts.map +1 -1
- package/dist/client/context-xray/ContextTreemap.js +9 -1
- package/dist/client/context-xray/ContextTreemap.js.map +1 -1
- package/dist/client/context-xray/ContextXRayPanel.d.ts.map +1 -1
- package/dist/client/context-xray/ContextXRayPanel.js +95 -20
- package/dist/client/context-xray/ContextXRayPanel.js.map +1 -1
- package/dist/client/context-xray/format.d.ts.map +1 -1
- package/dist/client/context-xray/format.js +12 -0
- package/dist/client/context-xray/format.js.map +1 -1
- package/dist/client/index.d.ts +3 -0
- package/dist/client/index.d.ts.map +1 -1
- package/dist/client/index.js +1 -0
- package/dist/client/index.js.map +1 -1
- package/dist/client/resources/ResourcesPanel.d.ts +9 -1
- package/dist/client/resources/ResourcesPanel.d.ts.map +1 -1
- package/dist/client/resources/ResourcesPanel.js +26 -10
- package/dist/client/resources/ResourcesPanel.js.map +1 -1
- package/dist/client/settings/AutomationsSection.d.ts +9 -0
- package/dist/client/settings/AutomationsSection.d.ts.map +1 -1
- package/dist/client/settings/AutomationsSection.js +128 -147
- package/dist/client/settings/AutomationsSection.js.map +1 -1
- package/dist/collab/routes.d.ts +1 -1
- package/dist/collab/struct-routes.d.ts +1 -1
- package/dist/file-upload/actions/upload-image.d.ts +1 -1
- package/dist/jobs/actions/list-recurring-jobs.d.ts +21 -0
- package/dist/jobs/actions/list-recurring-jobs.d.ts.map +1 -0
- package/dist/jobs/actions/list-recurring-jobs.js +74 -0
- package/dist/jobs/actions/list-recurring-jobs.js.map +1 -0
- package/dist/jobs/actions/manage-recurring-job.d.ts +18 -0
- package/dist/jobs/actions/manage-recurring-job.d.ts.map +1 -0
- package/dist/jobs/actions/manage-recurring-job.js +68 -0
- package/dist/jobs/actions/manage-recurring-job.js.map +1 -0
- package/dist/jobs/tools.d.ts +13 -0
- package/dist/jobs/tools.d.ts.map +1 -1
- package/dist/jobs/tools.js +1 -1
- package/dist/jobs/tools.js.map +1 -1
- package/dist/localization/default-messages.d.ts +96 -0
- package/dist/localization/default-messages.d.ts.map +1 -1
- package/dist/localization/default-messages.js +96 -0
- package/dist/localization/default-messages.js.map +1 -1
- package/dist/mcp/build-server.d.ts.map +1 -1
- package/dist/mcp/build-server.js +1 -0
- package/dist/mcp/build-server.js.map +1 -1
- package/dist/mcp/connect-route.d.ts.map +1 -1
- package/dist/mcp/connect-route.js +44 -59
- package/dist/mcp/connect-route.js.map +1 -1
- package/dist/notifications/routes.d.ts +1 -1
- package/dist/observability/routes.d.ts +5 -5
- package/dist/progress/routes.d.ts +1 -1
- package/dist/resources/handlers.d.ts +3 -3
- package/dist/secrets/routes.d.ts +9 -9
- package/dist/server/action-discovery.d.ts.map +1 -1
- package/dist/server/action-discovery.js +23 -0
- package/dist/server/action-discovery.js.map +1 -1
- package/dist/server/agent-chat/prompt-resources.d.ts +14 -0
- package/dist/server/agent-chat/prompt-resources.d.ts.map +1 -1
- package/dist/server/agent-chat/prompt-resources.js +139 -2
- package/dist/server/agent-chat/prompt-resources.js.map +1 -1
- package/dist/server/agent-chat-plugin.d.ts +1 -0
- package/dist/server/agent-chat-plugin.d.ts.map +1 -1
- package/dist/server/agent-chat-plugin.js +136 -3
- package/dist/server/agent-chat-plugin.js.map +1 -1
- package/dist/server/agent-engine-api-key-route.d.ts +1 -1
- package/dist/server/auth.d.ts.map +1 -1
- package/dist/server/auth.js +1 -4
- package/dist/server/auth.js.map +1 -1
- package/dist/server/google-oauth.d.ts.map +1 -1
- package/dist/server/google-oauth.js +1 -4
- package/dist/server/google-oauth.js.map +1 -1
- package/dist/server/workspace-oauth.d.ts +11 -0
- package/dist/server/workspace-oauth.d.ts.map +1 -0
- package/dist/server/workspace-oauth.js +25 -0
- package/dist/server/workspace-oauth.js.map +1 -0
- package/dist/shared/context-xray.d.ts +45 -1
- package/dist/shared/context-xray.d.ts.map +1 -1
- package/dist/shared/context-xray.js +12 -0
- package/dist/shared/context-xray.js.map +1 -1
- package/dist/shared/mcp-connect-content.d.ts +37 -0
- package/dist/shared/mcp-connect-content.d.ts.map +1 -0
- package/dist/shared/mcp-connect-content.js +92 -0
- package/dist/shared/mcp-connect-content.js.map +1 -0
- package/dist/templates/default/app/routes/_index.tsx +11 -0
- package/dist/templates/default/app/routes/agent.tsx +33 -0
- package/dist/templates/workspace-core/.agents/skills/agent-native-toolkit/SKILL.md +6 -0
- package/dist/templates/workspace-core/.agents/skills/agent-page/SKILL.md +59 -0
- package/dist/templates/workspace-core/.agents/skills/context-xray/SKILL.md +25 -0
- package/dist/templates/workspace-core/.agents/skills/external-agents/SKILL.md +7 -0
- package/dist/templates/workspace-core/.agents/skills/recurring-jobs/SKILL.md +9 -0
- package/dist/triggers/actions/list-automations.d.ts +24 -0
- package/dist/triggers/actions/list-automations.d.ts.map +1 -0
- package/dist/triggers/actions/list-automations.js +72 -0
- package/dist/triggers/actions/list-automations.js.map +1 -0
- package/dist/triggers/actions/manage-automation.d.ts +18 -0
- package/dist/triggers/actions/manage-automation.d.ts.map +1 -0
- package/dist/triggers/actions/manage-automation.js +60 -0
- package/dist/triggers/actions/manage-automation.js.map +1 -0
- package/docs/content/agent-surfaces.mdx +43 -0
- package/docs/content/external-agents.mdx +11 -0
- package/docs/content/locales/ar-SA/agent-surfaces.mdx +30 -0
- package/docs/content/locales/ar-SA/external-agents.mdx +9 -0
- package/docs/content/locales/de-DE/agent-surfaces.mdx +34 -0
- package/docs/content/locales/de-DE/external-agents.mdx +10 -0
- package/docs/content/locales/es-ES/agent-surfaces.mdx +34 -0
- package/docs/content/locales/es-ES/external-agents.mdx +10 -0
- package/docs/content/locales/fr-FR/agent-surfaces.mdx +34 -0
- package/docs/content/locales/fr-FR/external-agents.mdx +11 -0
- package/docs/content/locales/hi-IN/agent-surfaces.mdx +31 -0
- package/docs/content/locales/hi-IN/external-agents.mdx +9 -0
- package/docs/content/locales/ja-JP/agent-surfaces.mdx +32 -0
- package/docs/content/locales/ja-JP/external-agents.mdx +10 -0
- package/docs/content/locales/ko-KR/agent-surfaces.mdx +32 -0
- package/docs/content/locales/ko-KR/external-agents.mdx +9 -0
- package/docs/content/locales/pt-BR/agent-surfaces.mdx +33 -0
- package/docs/content/locales/pt-BR/external-agents.mdx +10 -0
- package/docs/content/locales/zh-CN/agent-surfaces.mdx +29 -0
- package/docs/content/locales/zh-CN/external-agents.mdx +8 -0
- package/docs/content/locales/zh-TW/agent-surfaces.mdx +29 -0
- package/docs/content/locales/zh-TW/external-agents.mdx +8 -0
- package/package.json +1 -1
- package/src/templates/default/app/routes/_index.tsx +11 -0
- package/src/templates/default/app/routes/agent.tsx +33 -0
- package/src/templates/workspace-core/.agents/skills/agent-native-toolkit/SKILL.md +6 -0
- package/src/templates/workspace-core/.agents/skills/agent-page/SKILL.md +59 -0
- package/src/templates/workspace-core/.agents/skills/context-xray/SKILL.md +25 -0
- package/src/templates/workspace-core/.agents/skills/external-agents/SKILL.md +7 -0
- package/src/templates/workspace-core/.agents/skills/recurring-jobs/SKILL.md +9 -0
|
@@ -15,6 +15,7 @@ const enUS = {
|
|
|
15
15
|
commandActions: "Actions",
|
|
16
16
|
commandSearch: "Search",
|
|
17
17
|
commandAppearance: "Appearance",
|
|
18
|
+
openAgent: "Open Agent",
|
|
18
19
|
toggleTheme: "Toggle theme",
|
|
19
20
|
},
|
|
20
21
|
navigation: {
|
|
@@ -23,6 +24,7 @@ const enUS = {
|
|
|
23
24
|
templates: "Templates",
|
|
24
25
|
designSystems: "Design Systems",
|
|
25
26
|
setupDesignSystem: "Set up design system",
|
|
27
|
+
agent: "Agent",
|
|
26
28
|
settings: "Settings",
|
|
27
29
|
openNavigation: "Open navigation",
|
|
28
30
|
expandSidebar: "Expand sidebar",
|
|
@@ -14693,6 +14695,7 @@ export const messagesByLocale = {
|
|
|
14693
14695
|
commandActions: "操作",
|
|
14694
14696
|
commandSearch: "搜索",
|
|
14695
14697
|
commandAppearance: "外观",
|
|
14698
|
+
openAgent: "打开代理",
|
|
14696
14699
|
toggleTheme: "切换主题",
|
|
14697
14700
|
},
|
|
14698
14701
|
navigation: {
|
|
@@ -14701,6 +14704,7 @@ export const messagesByLocale = {
|
|
|
14701
14704
|
templates: "模板",
|
|
14702
14705
|
designSystems: "设计系统",
|
|
14703
14706
|
setupDesignSystem: "设置设计系统",
|
|
14707
|
+
agent: "代理",
|
|
14704
14708
|
settings: "设置",
|
|
14705
14709
|
openNavigation: "打开导航",
|
|
14706
14710
|
expandSidebar: "展开侧边栏",
|
|
@@ -14768,6 +14772,7 @@ export const messagesByLocale = {
|
|
|
14768
14772
|
commandActions: "Acciones",
|
|
14769
14773
|
commandSearch: "Buscar",
|
|
14770
14774
|
commandAppearance: "Apariencia",
|
|
14775
|
+
openAgent: "Abrir agente",
|
|
14771
14776
|
toggleTheme: "Cambiar tema",
|
|
14772
14777
|
},
|
|
14773
14778
|
navigation: {
|
|
@@ -14775,6 +14780,7 @@ export const messagesByLocale = {
|
|
|
14775
14780
|
templates: "Plantillas",
|
|
14776
14781
|
designSystems: "Sistemas de diseño",
|
|
14777
14782
|
setupDesignSystem: "Configurar sistema de diseño",
|
|
14783
|
+
agent: "Agente",
|
|
14778
14784
|
settings: "Ajustes",
|
|
14779
14785
|
openNavigation: "Abrir navegación",
|
|
14780
14786
|
expandSidebar: "Expandir barra lateral",
|
|
@@ -14845,6 +14851,7 @@ export const messagesByLocale = {
|
|
|
14845
14851
|
commandActions: "Actions",
|
|
14846
14852
|
commandSearch: "Rechercher",
|
|
14847
14853
|
commandAppearance: "Apparence",
|
|
14854
|
+
openAgent: "Ouvrir l’agent",
|
|
14848
14855
|
toggleTheme: "Changer de thème",
|
|
14849
14856
|
},
|
|
14850
14857
|
navigation: {
|
|
@@ -14852,6 +14859,7 @@ export const messagesByLocale = {
|
|
|
14852
14859
|
templates: "Modèles",
|
|
14853
14860
|
designSystems: "Systèmes de design",
|
|
14854
14861
|
setupDesignSystem: "Configurer le système de design",
|
|
14862
|
+
agent: "Agent",
|
|
14855
14863
|
settings: "Paramètres",
|
|
14856
14864
|
openNavigation: "Ouvrir la navigation",
|
|
14857
14865
|
expandSidebar: "Développer la barre latérale",
|
|
@@ -14922,6 +14930,7 @@ export const messagesByLocale = {
|
|
|
14922
14930
|
commandActions: "Aktionen",
|
|
14923
14931
|
commandSearch: "Suchen",
|
|
14924
14932
|
commandAppearance: "Darstellung",
|
|
14933
|
+
openAgent: "Agent öffnen",
|
|
14925
14934
|
toggleTheme: "Theme wechseln",
|
|
14926
14935
|
},
|
|
14927
14936
|
navigation: {
|
|
@@ -14929,6 +14938,7 @@ export const messagesByLocale = {
|
|
|
14929
14938
|
templates: "Vorlagen",
|
|
14930
14939
|
designSystems: "Designsysteme",
|
|
14931
14940
|
setupDesignSystem: "Designsystem einrichten",
|
|
14941
|
+
agent: "Agent",
|
|
14932
14942
|
settings: "Einstellungen",
|
|
14933
14943
|
openNavigation: "Navigation öffnen",
|
|
14934
14944
|
expandSidebar: "Seitenleiste erweitern",
|
|
@@ -14999,6 +15009,7 @@ export const messagesByLocale = {
|
|
|
14999
15009
|
commandActions: "操作",
|
|
15000
15010
|
commandSearch: "検索",
|
|
15001
15011
|
commandAppearance: "外観",
|
|
15012
|
+
openAgent: "エージェントを開く",
|
|
15002
15013
|
toggleTheme: "テーマを切り替え",
|
|
15003
15014
|
},
|
|
15004
15015
|
navigation: {
|
|
@@ -15006,6 +15017,7 @@ export const messagesByLocale = {
|
|
|
15006
15017
|
templates: "テンプレート",
|
|
15007
15018
|
designSystems: "デザインシステム",
|
|
15008
15019
|
setupDesignSystem: "デザインシステムを設定",
|
|
15020
|
+
agent: "エージェント",
|
|
15009
15021
|
settings: "設定",
|
|
15010
15022
|
openNavigation: "ナビゲーションを開く",
|
|
15011
15023
|
expandSidebar: "サイドバーを展開",
|
|
@@ -15077,6 +15089,7 @@ export const messagesByLocale = {
|
|
|
15077
15089
|
commandActions: "작업",
|
|
15078
15090
|
commandSearch: "검색",
|
|
15079
15091
|
commandAppearance: "모양",
|
|
15092
|
+
openAgent: "에이전트 열기",
|
|
15080
15093
|
toggleTheme: "테마 전환",
|
|
15081
15094
|
},
|
|
15082
15095
|
navigation: {
|
|
@@ -15084,6 +15097,7 @@ export const messagesByLocale = {
|
|
|
15084
15097
|
templates: "템플릿",
|
|
15085
15098
|
designSystems: "디자인 시스템",
|
|
15086
15099
|
setupDesignSystem: "디자인 시스템 설정",
|
|
15100
|
+
agent: "에이전트",
|
|
15087
15101
|
settings: "설정",
|
|
15088
15102
|
openNavigation: "탐색 열기",
|
|
15089
15103
|
expandSidebar: "사이드바 펼치기",
|
|
@@ -15153,6 +15167,7 @@ export const messagesByLocale = {
|
|
|
15153
15167
|
commandActions: "Ações",
|
|
15154
15168
|
commandSearch: "Buscar",
|
|
15155
15169
|
commandAppearance: "Aparência",
|
|
15170
|
+
openAgent: "Abrir agente",
|
|
15156
15171
|
toggleTheme: "Alternar tema",
|
|
15157
15172
|
},
|
|
15158
15173
|
navigation: {
|
|
@@ -15160,6 +15175,7 @@ export const messagesByLocale = {
|
|
|
15160
15175
|
templates: "Modelos",
|
|
15161
15176
|
designSystems: "Sistemas de design",
|
|
15162
15177
|
setupDesignSystem: "Configurar sistema de design",
|
|
15178
|
+
agent: "Agente",
|
|
15163
15179
|
settings: "Configurações",
|
|
15164
15180
|
openNavigation: "Abrir navegação",
|
|
15165
15181
|
expandSidebar: "Expandir barra lateral",
|
|
@@ -15230,6 +15246,7 @@ export const messagesByLocale = {
|
|
|
15230
15246
|
commandActions: "क्रियाएं",
|
|
15231
15247
|
commandSearch: "खोजें",
|
|
15232
15248
|
commandAppearance: "रूप",
|
|
15249
|
+
openAgent: "एजेंट खोलें",
|
|
15233
15250
|
toggleTheme: "थीम बदलें",
|
|
15234
15251
|
},
|
|
15235
15252
|
navigation: {
|
|
@@ -15237,6 +15254,7 @@ export const messagesByLocale = {
|
|
|
15237
15254
|
templates: "टेम्पलेट",
|
|
15238
15255
|
designSystems: "डिज़ाइन सिस्टम",
|
|
15239
15256
|
setupDesignSystem: "डिज़ाइन सिस्टम सेट करें",
|
|
15257
|
+
agent: "एजेंट",
|
|
15240
15258
|
settings: "सेटिंग्स",
|
|
15241
15259
|
openNavigation: "नेविगेशन खोलें",
|
|
15242
15260
|
expandSidebar: "साइडबार फैलाएं",
|
|
@@ -15307,6 +15325,7 @@ export const messagesByLocale = {
|
|
|
15307
15325
|
commandActions: "الإجراءات",
|
|
15308
15326
|
commandSearch: "بحث",
|
|
15309
15327
|
commandAppearance: "المظهر",
|
|
15328
|
+
openAgent: "فتح الوكيل",
|
|
15310
15329
|
toggleTheme: "تبديل السمة",
|
|
15311
15330
|
},
|
|
15312
15331
|
navigation: {
|
|
@@ -15314,6 +15333,7 @@ export const messagesByLocale = {
|
|
|
15314
15333
|
templates: "القوالب",
|
|
15315
15334
|
designSystems: "أنظمة التصميم",
|
|
15316
15335
|
setupDesignSystem: "إعداد نظام التصميم",
|
|
15336
|
+
agent: "الوكيل",
|
|
15317
15337
|
settings: "الإعدادات",
|
|
15318
15338
|
openNavigation: "فتح التنقل",
|
|
15319
15339
|
expandSidebar: "توسيع الشريط الجانبي",
|
|
@@ -12,7 +12,7 @@ import {
|
|
|
12
12
|
useSession,
|
|
13
13
|
useT,
|
|
14
14
|
} from "@agent-native/core/client";
|
|
15
|
-
import { IconSun, IconMoon } from "@tabler/icons-react";
|
|
15
|
+
import { IconBrain, IconSun, IconMoon } from "@tabler/icons-react";
|
|
16
16
|
import { useQueryClient } from "@tanstack/react-query";
|
|
17
17
|
import { useTheme } from "next-themes";
|
|
18
18
|
import { useCallback, useState } from "react";
|
|
@@ -23,6 +23,7 @@ import {
|
|
|
23
23
|
Scripts,
|
|
24
24
|
ScrollRestoration,
|
|
25
25
|
useLocation,
|
|
26
|
+
useNavigate,
|
|
26
27
|
} from "react-router";
|
|
27
28
|
import type { LinksFunction } from "react-router";
|
|
28
29
|
|
|
@@ -122,6 +123,7 @@ function DesignCommandMenu({
|
|
|
122
123
|
onOpenChange: (open: boolean) => void;
|
|
123
124
|
}) {
|
|
124
125
|
const t = useT();
|
|
126
|
+
const navigate = useNavigate();
|
|
125
127
|
return (
|
|
126
128
|
<CommandMenu
|
|
127
129
|
open={open}
|
|
@@ -130,6 +132,10 @@ function DesignCommandMenu({
|
|
|
130
132
|
changelogKey="design"
|
|
131
133
|
>
|
|
132
134
|
<CommandMenu.Group heading={t("root.commandActions")}>
|
|
135
|
+
<CommandMenu.Item onSelect={() => navigate("/agent")}>
|
|
136
|
+
<IconBrain size={16} />
|
|
137
|
+
{t("root.openAgent")}
|
|
138
|
+
</CommandMenu.Item>
|
|
133
139
|
<CommandMenu.Item onSelect={() => {}}>
|
|
134
140
|
{t("root.commandSearch")}
|
|
135
141
|
</CommandMenu.Item>
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { AgentTabsPage, useT } from "@agent-native/core/client";
|
|
2
|
+
import { useSetPageTitle } from "@agent-native/toolkit/app-shell";
|
|
3
|
+
|
|
4
|
+
import messages from "@/i18n/en-US";
|
|
5
|
+
|
|
6
|
+
export function meta() {
|
|
7
|
+
return [{ title: messages.settings.agentTitle }];
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
export default function AgentRoute() {
|
|
11
|
+
const t = useT();
|
|
12
|
+
useSetPageTitle(t("settings.agentTitle"));
|
|
13
|
+
|
|
14
|
+
return <AgentTabsPage />;
|
|
15
|
+
}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import type { DispatchExtensionConfig } from "@agent-native/dispatch/components";
|
|
2
|
+
import { IconBrain } from "@tabler/icons-react";
|
|
2
3
|
|
|
3
4
|
/**
|
|
4
5
|
* Local Dispatch extensions for this generated workspace.
|
|
@@ -25,6 +26,14 @@ import type { DispatchExtensionConfig } from "@agent-native/dispatch/components"
|
|
|
25
26
|
* } satisfies DispatchExtensionConfig;
|
|
26
27
|
*/
|
|
27
28
|
export const dispatchExtensions = {
|
|
28
|
-
navItems: [
|
|
29
|
+
navItems: [
|
|
30
|
+
{
|
|
31
|
+
id: "agent",
|
|
32
|
+
to: "/agent",
|
|
33
|
+
label: "Agent",
|
|
34
|
+
icon: IconBrain,
|
|
35
|
+
section: "operations",
|
|
36
|
+
},
|
|
37
|
+
],
|
|
29
38
|
queryKeys: [],
|
|
30
39
|
} satisfies DispatchExtensionConfig;
|
|
@@ -4,6 +4,7 @@ const messages = {
|
|
|
4
4
|
commandSearch: "搜尋",
|
|
5
5
|
commandAppearance: "外觀",
|
|
6
6
|
toggleTheme: "切換主題",
|
|
7
|
+
openAgent: "開啟代理",
|
|
7
8
|
},
|
|
8
9
|
routeTitles: {
|
|
9
10
|
chat: "聊天 — Dispatch",
|
|
@@ -254,6 +255,7 @@ const messages = {
|
|
|
254
255
|
vault: "保管庫",
|
|
255
256
|
audit: "稽核",
|
|
256
257
|
operations: "營運",
|
|
258
|
+
agent: "代理",
|
|
257
259
|
},
|
|
258
260
|
pages: {
|
|
259
261
|
dataLoadFailed: "無法載入資料",
|
|
@@ -8,6 +8,7 @@ const enUS = {
|
|
|
8
8
|
commandSearch: "Search",
|
|
9
9
|
commandAppearance: "Appearance",
|
|
10
10
|
toggleTheme: "Toggle theme",
|
|
11
|
+
openAgent: "Open Agent",
|
|
11
12
|
},
|
|
12
13
|
routeTitles: {
|
|
13
14
|
chat: "Chat — Dispatch",
|
|
@@ -272,6 +273,7 @@ const enUS = {
|
|
|
272
273
|
vault: "Vault",
|
|
273
274
|
audit: "Audit",
|
|
274
275
|
operations: "Operations",
|
|
276
|
+
agent: "Agent",
|
|
275
277
|
},
|
|
276
278
|
pages: {
|
|
277
279
|
dataLoadFailed: "Couldn't load data",
|
|
@@ -410,6 +412,7 @@ export const messagesByLocale = {
|
|
|
410
412
|
commandSearch: "搜索",
|
|
411
413
|
commandAppearance: "外观",
|
|
412
414
|
toggleTheme: "切换主题",
|
|
415
|
+
openAgent: "打开代理",
|
|
413
416
|
},
|
|
414
417
|
settings: {
|
|
415
418
|
title: "设置",
|
|
@@ -656,6 +659,7 @@ export const messagesByLocale = {
|
|
|
656
659
|
vault: "保险库",
|
|
657
660
|
audit: "审计",
|
|
658
661
|
operations: "运营",
|
|
662
|
+
agent: "代理",
|
|
659
663
|
},
|
|
660
664
|
pages: {
|
|
661
665
|
dataLoadFailed: "无法加载数据",
|
|
@@ -701,6 +705,7 @@ export const messagesByLocale = {
|
|
|
701
705
|
commandSearch: "Buscar",
|
|
702
706
|
commandAppearance: "Apariencia",
|
|
703
707
|
toggleTheme: "Cambiar tema",
|
|
708
|
+
openAgent: "Abrir agente",
|
|
704
709
|
},
|
|
705
710
|
settings: {
|
|
706
711
|
title: "Ajustes",
|
|
@@ -975,6 +980,7 @@ export const messagesByLocale = {
|
|
|
975
980
|
vault: "Bóveda",
|
|
976
981
|
audit: "Auditoría",
|
|
977
982
|
operations: "Operaciones",
|
|
983
|
+
agent: "Agente",
|
|
978
984
|
},
|
|
979
985
|
pages: {
|
|
980
986
|
dataLoadFailed: "No se pudieron cargar los datos",
|
|
@@ -1025,6 +1031,7 @@ export const messagesByLocale = {
|
|
|
1025
1031
|
commandSearch: "Rechercher",
|
|
1026
1032
|
commandAppearance: "Apparence",
|
|
1027
1033
|
toggleTheme: "Changer de thème",
|
|
1034
|
+
openAgent: "Ouvrir l’agent",
|
|
1028
1035
|
},
|
|
1029
1036
|
settings: {
|
|
1030
1037
|
title: "Paramètres",
|
|
@@ -1299,6 +1306,7 @@ export const messagesByLocale = {
|
|
|
1299
1306
|
vault: "Coffre",
|
|
1300
1307
|
audit: "Audit",
|
|
1301
1308
|
operations: "Opérations",
|
|
1309
|
+
agent: "Agent",
|
|
1302
1310
|
},
|
|
1303
1311
|
pages: {
|
|
1304
1312
|
dataLoadFailed: "Impossible de charger les données",
|
|
@@ -1349,6 +1357,7 @@ export const messagesByLocale = {
|
|
|
1349
1357
|
commandSearch: "Suchen",
|
|
1350
1358
|
commandAppearance: "Darstellung",
|
|
1351
1359
|
toggleTheme: "Theme wechseln",
|
|
1360
|
+
openAgent: "Agent öffnen",
|
|
1352
1361
|
},
|
|
1353
1362
|
settings: {
|
|
1354
1363
|
title: "Einstellungen",
|
|
@@ -1612,6 +1621,7 @@ export const messagesByLocale = {
|
|
|
1612
1621
|
vault: "Tresor",
|
|
1613
1622
|
audit: "Audit",
|
|
1614
1623
|
operations: "Betrieb",
|
|
1624
|
+
agent: "Agent",
|
|
1615
1625
|
},
|
|
1616
1626
|
pages: {
|
|
1617
1627
|
dataLoadFailed: "Daten konnten nicht geladen werden",
|
|
@@ -1661,6 +1671,7 @@ export const messagesByLocale = {
|
|
|
1661
1671
|
commandSearch: "検索",
|
|
1662
1672
|
commandAppearance: "外観",
|
|
1663
1673
|
toggleTheme: "テーマを切り替え",
|
|
1674
|
+
openAgent: "エージェントを開く",
|
|
1664
1675
|
},
|
|
1665
1676
|
settings: {
|
|
1666
1677
|
title: "設定",
|
|
@@ -1921,6 +1932,7 @@ export const messagesByLocale = {
|
|
|
1921
1932
|
vault: "ボールト",
|
|
1922
1933
|
audit: "監査",
|
|
1923
1934
|
operations: "運用",
|
|
1935
|
+
agent: "エージェント",
|
|
1924
1936
|
},
|
|
1925
1937
|
pages: {
|
|
1926
1938
|
dataLoadFailed: "データを読み込めませんでした",
|
|
@@ -1969,6 +1981,7 @@ export const messagesByLocale = {
|
|
|
1969
1981
|
commandSearch: "검색",
|
|
1970
1982
|
commandAppearance: "모양",
|
|
1971
1983
|
toggleTheme: "테마 전환",
|
|
1984
|
+
openAgent: "에이전트 열기",
|
|
1972
1985
|
},
|
|
1973
1986
|
settings: {
|
|
1974
1987
|
title: "설정",
|
|
@@ -2226,6 +2239,7 @@ export const messagesByLocale = {
|
|
|
2226
2239
|
vault: "볼트",
|
|
2227
2240
|
audit: "감사",
|
|
2228
2241
|
operations: "운영",
|
|
2242
|
+
agent: "에이전트",
|
|
2229
2243
|
},
|
|
2230
2244
|
pages: {
|
|
2231
2245
|
dataLoadFailed: "데이터를 불러올 수 없습니다",
|
|
@@ -2273,6 +2287,7 @@ export const messagesByLocale = {
|
|
|
2273
2287
|
commandSearch: "Buscar",
|
|
2274
2288
|
commandAppearance: "Aparência",
|
|
2275
2289
|
toggleTheme: "Alternar tema",
|
|
2290
|
+
openAgent: "Abrir agente",
|
|
2276
2291
|
},
|
|
2277
2292
|
settings: {
|
|
2278
2293
|
title: "Configurações",
|
|
@@ -2543,6 +2558,7 @@ export const messagesByLocale = {
|
|
|
2543
2558
|
vault: "Cofre",
|
|
2544
2559
|
audit: "Auditoria",
|
|
2545
2560
|
operations: "Operações",
|
|
2561
|
+
agent: "Agente",
|
|
2546
2562
|
},
|
|
2547
2563
|
pages: {
|
|
2548
2564
|
dataLoadFailed: "Não foi possível carregar os dados",
|
|
@@ -2593,6 +2609,7 @@ export const messagesByLocale = {
|
|
|
2593
2609
|
commandSearch: "खोजें",
|
|
2594
2610
|
commandAppearance: "रूप",
|
|
2595
2611
|
toggleTheme: "थीम बदलें",
|
|
2612
|
+
openAgent: "एजेंट खोलें",
|
|
2596
2613
|
},
|
|
2597
2614
|
settings: {
|
|
2598
2615
|
title: "सेटिंग्स",
|
|
@@ -2845,6 +2862,7 @@ export const messagesByLocale = {
|
|
|
2845
2862
|
vault: "वॉल्ट",
|
|
2846
2863
|
audit: "ऑडिट",
|
|
2847
2864
|
operations: "संचालन",
|
|
2865
|
+
agent: "एजेंट",
|
|
2848
2866
|
},
|
|
2849
2867
|
pages: {
|
|
2850
2868
|
dataLoadFailed: "डेटा लोड नहीं हो सका",
|
|
@@ -2891,6 +2909,7 @@ export const messagesByLocale = {
|
|
|
2891
2909
|
commandSearch: "بحث",
|
|
2892
2910
|
commandAppearance: "المظهر",
|
|
2893
2911
|
toggleTheme: "تبديل السمة",
|
|
2912
|
+
openAgent: "فتح الوكيل",
|
|
2894
2913
|
},
|
|
2895
2914
|
settings: {
|
|
2896
2915
|
title: "الإعدادات",
|
|
@@ -3182,6 +3201,7 @@ export const messagesByLocale = {
|
|
|
3182
3201
|
vault: "الخزنة",
|
|
3183
3202
|
audit: "التدقيق",
|
|
3184
3203
|
operations: "التشغيل",
|
|
3204
|
+
agent: "الوكيل",
|
|
3185
3205
|
},
|
|
3186
3206
|
pages: {
|
|
3187
3207
|
dataLoadFailed: "تعذر تحميل البيانات",
|
|
@@ -11,7 +11,7 @@ import {
|
|
|
11
11
|
useT,
|
|
12
12
|
} from "@agent-native/core/client";
|
|
13
13
|
import { Layout as AppLayout } from "@agent-native/dispatch/components";
|
|
14
|
-
import { IconSun, IconMoon } from "@tabler/icons-react";
|
|
14
|
+
import { IconBrain, IconSun, IconMoon } from "@tabler/icons-react";
|
|
15
15
|
import { useQueryClient } from "@tanstack/react-query";
|
|
16
16
|
import { useTheme } from "next-themes";
|
|
17
17
|
import { useCallback, useEffect, useRef, useState } from "react";
|
|
@@ -177,6 +177,7 @@ function ThemeToggleItem() {
|
|
|
177
177
|
function AppContent() {
|
|
178
178
|
const [cmdkOpen, setCmdkOpen] = useState(false);
|
|
179
179
|
const t = useT();
|
|
180
|
+
const navigate = useNavigate();
|
|
180
181
|
useCommandMenuShortcut(useCallback(() => setCmdkOpen(true), []));
|
|
181
182
|
return (
|
|
182
183
|
<>
|
|
@@ -188,6 +189,10 @@ function AppContent() {
|
|
|
188
189
|
changelogKey="dispatch"
|
|
189
190
|
>
|
|
190
191
|
<CommandMenu.Group heading={t("root.commandActions")}>
|
|
192
|
+
<CommandMenu.Item onSelect={() => navigate("/agent")}>
|
|
193
|
+
<IconBrain size={16} />
|
|
194
|
+
{t("root.openAgent")}
|
|
195
|
+
</CommandMenu.Item>
|
|
191
196
|
<CommandMenu.Item onSelect={() => {}}>
|
|
192
197
|
{t("root.commandSearch")}
|
|
193
198
|
</CommandMenu.Item>
|
|
@@ -196,7 +201,7 @@ function AppContent() {
|
|
|
196
201
|
<ThemeToggleItem />
|
|
197
202
|
</CommandMenu.Group>
|
|
198
203
|
</CommandMenu>
|
|
199
|
-
<AppLayout extensions={dispatchExtensions}>
|
|
204
|
+
<AppLayout extensions={dispatchExtensions} agentPageHref="/agent">
|
|
200
205
|
<Outlet />
|
|
201
206
|
</AppLayout>
|
|
202
207
|
</>
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { AgentTabsPage, useT } from "@agent-native/core/client";
|
|
2
|
+
import { DispatchShell } from "@agent-native/dispatch/components";
|
|
3
|
+
|
|
4
|
+
import { messagesByLocale } from "@/i18n-data";
|
|
5
|
+
|
|
6
|
+
export function meta() {
|
|
7
|
+
return [{ title: messagesByLocale["en-US"].settings.agentTitle }];
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
export default function AgentRoute() {
|
|
11
|
+
const t = useT();
|
|
12
|
+
|
|
13
|
+
return (
|
|
14
|
+
<DispatchShell title={t("settings.agentTitle")}>
|
|
15
|
+
<AgentTabsPage />
|
|
16
|
+
</DispatchShell>
|
|
17
|
+
);
|
|
18
|
+
}
|
|
@@ -15,6 +15,7 @@ import {
|
|
|
15
15
|
IconMenu2,
|
|
16
16
|
IconX,
|
|
17
17
|
IconMessageCircle,
|
|
18
|
+
IconBrain,
|
|
18
19
|
IconSettings,
|
|
19
20
|
IconForms,
|
|
20
21
|
IconLayoutSidebarLeftCollapse,
|
|
@@ -273,6 +274,26 @@ export function Sidebar() {
|
|
|
273
274
|
{newFormPopover}
|
|
274
275
|
</Popover>
|
|
275
276
|
|
|
277
|
+
<Tooltip>
|
|
278
|
+
<TooltipTrigger asChild>
|
|
279
|
+
<Link
|
|
280
|
+
to="/agent"
|
|
281
|
+
aria-label={t("navigation.agent")}
|
|
282
|
+
className={cn(
|
|
283
|
+
"forms-sidebar-nav-item flex size-10 items-center justify-center rounded-lg active:scale-[0.96] transition-[background-color,box-shadow,color,transform]",
|
|
284
|
+
location.pathname.startsWith("/agent")
|
|
285
|
+
? "bg-accent text-accent-foreground"
|
|
286
|
+
: "text-muted-foreground hover:bg-accent/50 hover:text-foreground",
|
|
287
|
+
)}
|
|
288
|
+
>
|
|
289
|
+
<IconBrain className="h-4 w-4" />
|
|
290
|
+
</Link>
|
|
291
|
+
</TooltipTrigger>
|
|
292
|
+
<TooltipContent side="right">
|
|
293
|
+
{t("navigation.agent")}
|
|
294
|
+
</TooltipContent>
|
|
295
|
+
</Tooltip>
|
|
296
|
+
|
|
276
297
|
<Tooltip>
|
|
277
298
|
<TooltipTrigger asChild>
|
|
278
299
|
<Link
|
|
@@ -411,6 +432,20 @@ export function Sidebar() {
|
|
|
411
432
|
|
|
412
433
|
{/* Pinned nav + footer */}
|
|
413
434
|
<div className="shrink-0 px-3 py-1.5">
|
|
435
|
+
<Link
|
|
436
|
+
to="/agent"
|
|
437
|
+
onClick={() => isMobile && setMobileOpen(false)}
|
|
438
|
+
className={cn(
|
|
439
|
+
"forms-sidebar-nav-item flex min-h-[44px] w-full items-center gap-2.5 rounded-lg px-3 py-2 text-sm active:scale-[0.96] transition-[background-color,box-shadow,color,transform]",
|
|
440
|
+
location.pathname.startsWith("/agent")
|
|
441
|
+
? "bg-accent text-accent-foreground"
|
|
442
|
+
: "text-muted-foreground hover:bg-accent/50 hover:text-foreground",
|
|
443
|
+
)}
|
|
444
|
+
>
|
|
445
|
+
<IconBrain size={14} className="shrink-0" />
|
|
446
|
+
<span>{t("navigation.agent")}</span>
|
|
447
|
+
</Link>
|
|
448
|
+
|
|
414
449
|
<Link
|
|
415
450
|
to="/settings"
|
|
416
451
|
onClick={() => isMobile && setMobileOpen(false)}
|
|
@@ -4,6 +4,7 @@ const messages = {
|
|
|
4
4
|
searchForms: "بحث في النماذج",
|
|
5
5
|
appearance: "المظهر",
|
|
6
6
|
toggleTheme: "تبديل السمة",
|
|
7
|
+
openAgent: "فتح الوكيل",
|
|
7
8
|
},
|
|
8
9
|
header: {
|
|
9
10
|
settings: "الإعدادات",
|
|
@@ -19,6 +20,7 @@ const messages = {
|
|
|
19
20
|
askForms: "اسأل Forms",
|
|
20
21
|
allForms: "كل النماذج",
|
|
21
22
|
team: "الفريق",
|
|
23
|
+
agent: "الوكيل",
|
|
22
24
|
},
|
|
23
25
|
settings: {
|
|
24
26
|
title: "الإعدادات",
|
|
@@ -4,6 +4,7 @@ const messages = {
|
|
|
4
4
|
searchForms: "Formulare suchen",
|
|
5
5
|
appearance: "Darstellung",
|
|
6
6
|
toggleTheme: "Design wechseln",
|
|
7
|
+
openAgent: "Agent öffnen",
|
|
7
8
|
},
|
|
8
9
|
header: {
|
|
9
10
|
settings: "Einstellungen",
|
|
@@ -19,6 +20,7 @@ const messages = {
|
|
|
19
20
|
askForms: "Fragen Sie nach Formularen",
|
|
20
21
|
allForms: "Alle Formulare",
|
|
21
22
|
team: "Team",
|
|
23
|
+
agent: "Agent",
|
|
22
24
|
},
|
|
23
25
|
settings: {
|
|
24
26
|
title: "Einstellungen",
|
|
@@ -4,6 +4,7 @@ const messages = {
|
|
|
4
4
|
searchForms: "Search forms",
|
|
5
5
|
appearance: "Appearance",
|
|
6
6
|
toggleTheme: "Toggle theme",
|
|
7
|
+
openAgent: "Open Agent",
|
|
7
8
|
},
|
|
8
9
|
header: {
|
|
9
10
|
settings: "Settings",
|
|
@@ -19,6 +20,7 @@ const messages = {
|
|
|
19
20
|
askForms: "Ask Forms",
|
|
20
21
|
allForms: "All forms",
|
|
21
22
|
team: "Team",
|
|
23
|
+
agent: "Agent",
|
|
22
24
|
},
|
|
23
25
|
settings: {
|
|
24
26
|
title: "Settings",
|
|
@@ -4,6 +4,7 @@ const messages = {
|
|
|
4
4
|
searchForms: "Buscar formularios",
|
|
5
5
|
appearance: "Apariencia",
|
|
6
6
|
toggleTheme: "Cambiar tema",
|
|
7
|
+
openAgent: "Abrir agente",
|
|
7
8
|
},
|
|
8
9
|
header: {
|
|
9
10
|
settings: "Ajustes",
|
|
@@ -19,6 +20,7 @@ const messages = {
|
|
|
19
20
|
askForms: "Preguntar a Forms",
|
|
20
21
|
allForms: "Todos los formularios",
|
|
21
22
|
team: "Equipo",
|
|
23
|
+
agent: "Agente",
|
|
22
24
|
},
|
|
23
25
|
settings: {
|
|
24
26
|
title: "Ajustes",
|
|
@@ -4,6 +4,7 @@ const messages = {
|
|
|
4
4
|
searchForms: "Rechercher des formulaires",
|
|
5
5
|
appearance: "Apparence",
|
|
6
6
|
toggleTheme: "Changer de theme",
|
|
7
|
+
openAgent: "Ouvrir l’agent",
|
|
7
8
|
},
|
|
8
9
|
header: {
|
|
9
10
|
settings: "Paramètres",
|
|
@@ -19,6 +20,7 @@ const messages = {
|
|
|
19
20
|
askForms: "Demander a Forms",
|
|
20
21
|
allForms: "Tous les formulaires",
|
|
21
22
|
team: "Equipe",
|
|
23
|
+
agent: "Agent",
|
|
22
24
|
},
|
|
23
25
|
settings: {
|
|
24
26
|
title: "Paramètres",
|
|
@@ -4,6 +4,7 @@ const messages = {
|
|
|
4
4
|
searchForms: "फॉर्म खोजें",
|
|
5
5
|
appearance: "दिखावट",
|
|
6
6
|
toggleTheme: "थीम बदलें",
|
|
7
|
+
openAgent: "एजेंट खोलें",
|
|
7
8
|
},
|
|
8
9
|
header: {
|
|
9
10
|
settings: "सेटिंग्स",
|
|
@@ -19,6 +20,7 @@ const messages = {
|
|
|
19
20
|
askForms: "प्रपत्र पूछें",
|
|
20
21
|
allForms: "सभी फॉर्म",
|
|
21
22
|
team: "टीम",
|
|
23
|
+
agent: "एजेंट",
|
|
22
24
|
},
|
|
23
25
|
settings: {
|
|
24
26
|
title: "सेटिंग्स",
|
|
@@ -4,6 +4,7 @@ const messages = {
|
|
|
4
4
|
searchForms: "フォームを検索",
|
|
5
5
|
appearance: "表示",
|
|
6
6
|
toggleTheme: "テーマを切り替え",
|
|
7
|
+
openAgent: "エージェントを開く",
|
|
7
8
|
},
|
|
8
9
|
header: {
|
|
9
10
|
settings: "設定",
|
|
@@ -19,6 +20,7 @@ const messages = {
|
|
|
19
20
|
askForms: "フォームに質問する",
|
|
20
21
|
allForms: "すべてのフォーム",
|
|
21
22
|
team: "チーム",
|
|
23
|
+
agent: "エージェント",
|
|
22
24
|
},
|
|
23
25
|
settings: {
|
|
24
26
|
title: "設定",
|
|
@@ -4,6 +4,7 @@ const messages = {
|
|
|
4
4
|
searchForms: "양식 검색",
|
|
5
5
|
appearance: "모양",
|
|
6
6
|
toggleTheme: "테마 전환",
|
|
7
|
+
openAgent: "에이전트 열기",
|
|
7
8
|
},
|
|
8
9
|
header: {
|
|
9
10
|
settings: "설정",
|
|
@@ -19,6 +20,7 @@ const messages = {
|
|
|
19
20
|
askForms: "양식에 문의하기",
|
|
20
21
|
allForms: "모든 양식",
|
|
21
22
|
team: "팀",
|
|
23
|
+
agent: "에이전트",
|
|
22
24
|
},
|
|
23
25
|
settings: {
|
|
24
26
|
title: "설정",
|