@agent-native/core 0.76.5 → 0.76.6
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 +1 -1
- package/corpus/core/CHANGELOG.md +8 -0
- package/corpus/core/docs/content/extensions.md +16 -0
- package/corpus/core/docs/content/locales/ar-SA/a2a-protocol.md +392 -0
- package/corpus/core/docs/content/locales/ar-SA/actions.md +583 -0
- package/corpus/core/docs/content/locales/ar-SA/agent-mentions.md +164 -0
- package/corpus/core/docs/content/locales/ar-SA/agent-surfaces.md +397 -0
- package/corpus/core/docs/content/locales/ar-SA/agent-teams.md +171 -0
- package/corpus/core/docs/content/locales/ar-SA/agent-web-surfaces.md +161 -0
- package/corpus/core/docs/content/locales/ar-SA/audit-log.md +111 -0
- package/corpus/core/docs/content/locales/ar-SA/authentication.md +332 -0
- package/corpus/core/docs/content/locales/ar-SA/automations.md +268 -0
- package/corpus/core/docs/content/locales/ar-SA/blueprint-installer.md +83 -0
- package/corpus/core/docs/content/locales/ar-SA/cli-adapters.md +129 -0
- package/corpus/core/docs/content/locales/ar-SA/client.md +398 -0
- package/corpus/core/docs/content/locales/ar-SA/cloneable-saas.md +114 -0
- package/corpus/core/docs/content/locales/ar-SA/code-agents-ui.md +436 -0
- package/corpus/core/docs/content/locales/ar-SA/components.md +368 -0
- package/corpus/core/docs/content/locales/ar-SA/context-awareness.md +373 -0
- package/corpus/core/docs/content/locales/ar-SA/creating-templates.md +411 -0
- package/corpus/core/docs/content/locales/ar-SA/cross-app-sso.md +185 -0
- package/corpus/core/docs/content/locales/ar-SA/database.md +183 -0
- package/corpus/core/docs/content/locales/ar-SA/deployment.md +349 -0
- package/corpus/core/docs/content/locales/ar-SA/dispatch.md +146 -0
- package/corpus/core/docs/content/locales/ar-SA/drop-in-agent.md +260 -0
- package/corpus/core/docs/content/locales/ar-SA/durable-resume.md +65 -0
- package/corpus/core/docs/content/locales/ar-SA/embedding-sdk.md +597 -0
- package/corpus/core/docs/content/locales/ar-SA/evals.md +155 -0
- package/corpus/core/docs/content/locales/ar-SA/extensions.md +360 -0
- package/corpus/core/docs/content/locales/ar-SA/external-agents.md +619 -0
- package/corpus/core/docs/content/locales/ar-SA/faq.md +142 -0
- package/corpus/core/docs/content/locales/ar-SA/file-uploads.md +122 -0
- package/corpus/core/docs/content/locales/ar-SA/frames.md +153 -0
- package/corpus/core/docs/content/locales/ar-SA/getting-started.md +199 -0
- package/corpus/core/docs/content/locales/ar-SA/harness-agents.md +349 -0
- package/corpus/core/docs/content/locales/ar-SA/human-approval.md +86 -0
- package/corpus/core/docs/content/locales/ar-SA/internationalization.md +68 -25
- package/corpus/core/docs/content/locales/ar-SA/key-concepts.md +312 -0
- package/corpus/core/docs/content/locales/ar-SA/local-file-mode.md +433 -0
- package/corpus/core/docs/content/locales/ar-SA/mcp-apps.md +147 -0
- package/corpus/core/docs/content/locales/ar-SA/mcp-clients.md +330 -0
- package/corpus/core/docs/content/locales/ar-SA/mcp-protocol.md +279 -0
- package/corpus/core/docs/content/locales/ar-SA/messaging.md +461 -0
- package/corpus/core/docs/content/locales/ar-SA/migration-workbench.md +33 -0
- package/corpus/core/docs/content/locales/ar-SA/multi-app-workspace.md +312 -0
- package/corpus/core/docs/content/locales/ar-SA/multi-tenancy.md +52 -0
- package/corpus/core/docs/content/locales/ar-SA/native-chat-ui.md +321 -0
- package/corpus/core/docs/content/locales/ar-SA/notifications.md +231 -0
- package/corpus/core/docs/content/locales/ar-SA/observability.md +294 -0
- package/corpus/core/docs/content/locales/ar-SA/observational-memory.md +77 -0
- package/corpus/core/docs/content/locales/ar-SA/onboarding.md +216 -0
- package/corpus/core/docs/content/locales/ar-SA/plan-plugin.md +200 -0
- package/corpus/core/docs/content/locales/ar-SA/pr-visual-recap.md +384 -0
- package/corpus/core/docs/content/locales/ar-SA/processors.md +106 -0
- package/corpus/core/docs/content/locales/ar-SA/progress.md +199 -0
- package/corpus/core/docs/content/locales/ar-SA/pure-agent-apps.md +39 -0
- package/corpus/core/docs/content/locales/ar-SA/real-time-collaboration.md +676 -0
- package/corpus/core/docs/content/locales/ar-SA/recurring-jobs.md +142 -0
- package/corpus/core/docs/content/locales/ar-SA/routing.md +79 -0
- package/corpus/core/docs/content/locales/ar-SA/sandbox-adapters.md +227 -0
- package/corpus/core/docs/content/locales/ar-SA/security.md +330 -0
- package/corpus/core/docs/content/locales/ar-SA/server.md +253 -0
- package/corpus/core/docs/content/locales/ar-SA/sharing.md +219 -0
- package/corpus/core/docs/content/locales/ar-SA/skills-guide.md +281 -0
- package/corpus/core/docs/content/locales/ar-SA/template-analytics.md +259 -0
- package/corpus/core/docs/content/locales/ar-SA/template-assets.md +303 -0
- package/corpus/core/docs/content/locales/ar-SA/template-brain.md +324 -0
- package/corpus/core/docs/content/locales/ar-SA/template-calendar.md +194 -0
- package/corpus/core/docs/content/locales/ar-SA/template-chat.md +129 -0
- package/corpus/core/docs/content/locales/ar-SA/template-clips.md +368 -0
- package/corpus/core/docs/content/locales/ar-SA/template-content.md +402 -0
- package/corpus/core/docs/content/locales/ar-SA/template-design.md +173 -0
- package/corpus/core/docs/content/locales/ar-SA/template-dispatch.md +220 -0
- package/corpus/core/docs/content/locales/ar-SA/template-forms.md +178 -0
- package/corpus/core/docs/content/locales/ar-SA/template-mail.md +239 -0
- package/corpus/core/docs/content/locales/ar-SA/template-plan.md +815 -0
- package/corpus/core/docs/content/locales/ar-SA/template-slides.md +293 -0
- package/corpus/core/docs/content/locales/ar-SA/template-videos.md +222 -0
- package/corpus/core/docs/content/locales/ar-SA/tracking.md +236 -0
- package/corpus/core/docs/content/locales/ar-SA/using-your-agent.md +71 -0
- package/corpus/core/docs/content/locales/ar-SA/voice-input.md +81 -0
- package/corpus/core/docs/content/locales/ar-SA/what-is-agent-native.md +202 -0
- package/corpus/core/docs/content/locales/ar-SA/workspace-connections.md +321 -0
- package/corpus/core/docs/content/locales/ar-SA/workspace-management.md +175 -0
- package/corpus/core/docs/content/locales/ar-SA/workspace.md +323 -0
- package/corpus/core/docs/content/locales/ar-SA/writing-agent-instructions.md +173 -0
- package/corpus/core/docs/content/locales/de-DE/a2a-protocol.md +392 -0
- package/corpus/core/docs/content/locales/de-DE/actions.md +583 -0
- package/corpus/core/docs/content/locales/de-DE/agent-mentions.md +164 -0
- package/corpus/core/docs/content/locales/de-DE/agent-surfaces.md +397 -0
- package/corpus/core/docs/content/locales/de-DE/agent-teams.md +171 -0
- package/corpus/core/docs/content/locales/de-DE/agent-web-surfaces.md +161 -0
- package/corpus/core/docs/content/locales/de-DE/audit-log.md +111 -0
- package/corpus/core/docs/content/locales/de-DE/authentication.md +332 -0
- package/corpus/core/docs/content/locales/de-DE/automations.md +268 -0
- package/corpus/core/docs/content/locales/de-DE/blueprint-installer.md +83 -0
- package/corpus/core/docs/content/locales/de-DE/cli-adapters.md +129 -0
- package/corpus/core/docs/content/locales/de-DE/client.md +398 -0
- package/corpus/core/docs/content/locales/de-DE/cloneable-saas.md +114 -0
- package/corpus/core/docs/content/locales/de-DE/code-agents-ui.md +436 -0
- package/corpus/core/docs/content/locales/de-DE/components.md +368 -0
- package/corpus/core/docs/content/locales/de-DE/context-awareness.md +373 -0
- package/corpus/core/docs/content/locales/de-DE/creating-templates.md +411 -0
- package/corpus/core/docs/content/locales/de-DE/cross-app-sso.md +185 -0
- package/corpus/core/docs/content/locales/de-DE/database.md +183 -0
- package/corpus/core/docs/content/locales/de-DE/deployment.md +349 -0
- package/corpus/core/docs/content/locales/de-DE/dispatch.md +146 -0
- package/corpus/core/docs/content/locales/de-DE/drop-in-agent.md +260 -0
- package/corpus/core/docs/content/locales/de-DE/durable-resume.md +65 -0
- package/corpus/core/docs/content/locales/de-DE/embedding-sdk.md +597 -0
- package/corpus/core/docs/content/locales/de-DE/evals.md +155 -0
- package/corpus/core/docs/content/locales/de-DE/extensions.md +360 -0
- package/corpus/core/docs/content/locales/de-DE/external-agents.md +619 -0
- package/corpus/core/docs/content/locales/de-DE/faq.md +142 -0
- package/corpus/core/docs/content/locales/de-DE/file-uploads.md +122 -0
- package/corpus/core/docs/content/locales/de-DE/frames.md +153 -0
- package/corpus/core/docs/content/locales/de-DE/getting-started.md +199 -0
- package/corpus/core/docs/content/locales/de-DE/harness-agents.md +349 -0
- package/corpus/core/docs/content/locales/de-DE/human-approval.md +86 -0
- package/corpus/core/docs/content/locales/de-DE/internationalization.md +65 -22
- package/corpus/core/docs/content/locales/de-DE/key-concepts.md +312 -0
- package/corpus/core/docs/content/locales/de-DE/local-file-mode.md +433 -0
- package/corpus/core/docs/content/locales/de-DE/mcp-apps.md +147 -0
- package/corpus/core/docs/content/locales/de-DE/mcp-clients.md +330 -0
- package/corpus/core/docs/content/locales/de-DE/mcp-protocol.md +279 -0
- package/corpus/core/docs/content/locales/de-DE/messaging.md +461 -0
- package/corpus/core/docs/content/locales/de-DE/migration-workbench.md +33 -0
- package/corpus/core/docs/content/locales/de-DE/multi-app-workspace.md +312 -0
- package/corpus/core/docs/content/locales/de-DE/multi-tenancy.md +52 -0
- package/corpus/core/docs/content/locales/de-DE/native-chat-ui.md +321 -0
- package/corpus/core/docs/content/locales/de-DE/notifications.md +231 -0
- package/corpus/core/docs/content/locales/de-DE/observability.md +294 -0
- package/corpus/core/docs/content/locales/de-DE/observational-memory.md +77 -0
- package/corpus/core/docs/content/locales/de-DE/onboarding.md +216 -0
- package/corpus/core/docs/content/locales/de-DE/plan-plugin.md +200 -0
- package/corpus/core/docs/content/locales/de-DE/pr-visual-recap.md +384 -0
- package/corpus/core/docs/content/locales/de-DE/processors.md +106 -0
- package/corpus/core/docs/content/locales/de-DE/progress.md +199 -0
- package/corpus/core/docs/content/locales/de-DE/pure-agent-apps.md +39 -0
- package/corpus/core/docs/content/locales/de-DE/real-time-collaboration.md +676 -0
- package/corpus/core/docs/content/locales/de-DE/recurring-jobs.md +142 -0
- package/corpus/core/docs/content/locales/de-DE/routing.md +79 -0
- package/corpus/core/docs/content/locales/de-DE/sandbox-adapters.md +227 -0
- package/corpus/core/docs/content/locales/de-DE/security.md +330 -0
- package/corpus/core/docs/content/locales/de-DE/server.md +253 -0
- package/corpus/core/docs/content/locales/de-DE/sharing.md +219 -0
- package/corpus/core/docs/content/locales/de-DE/skills-guide.md +281 -0
- package/corpus/core/docs/content/locales/de-DE/template-analytics.md +259 -0
- package/corpus/core/docs/content/locales/de-DE/template-assets.md +303 -0
- package/corpus/core/docs/content/locales/de-DE/template-brain.md +324 -0
- package/corpus/core/docs/content/locales/de-DE/template-calendar.md +194 -0
- package/corpus/core/docs/content/locales/de-DE/template-chat.md +129 -0
- package/corpus/core/docs/content/locales/de-DE/template-clips.md +368 -0
- package/corpus/core/docs/content/locales/de-DE/template-content.md +402 -0
- package/corpus/core/docs/content/locales/de-DE/template-design.md +173 -0
- package/corpus/core/docs/content/locales/de-DE/template-dispatch.md +220 -0
- package/corpus/core/docs/content/locales/de-DE/template-forms.md +178 -0
- package/corpus/core/docs/content/locales/de-DE/template-mail.md +239 -0
- package/corpus/core/docs/content/locales/de-DE/template-plan.md +814 -0
- package/corpus/core/docs/content/locales/de-DE/template-slides.md +293 -0
- package/corpus/core/docs/content/locales/de-DE/template-videos.md +222 -0
- package/corpus/core/docs/content/locales/de-DE/tracking.md +236 -0
- package/corpus/core/docs/content/locales/de-DE/using-your-agent.md +71 -0
- package/corpus/core/docs/content/locales/de-DE/voice-input.md +81 -0
- package/corpus/core/docs/content/locales/de-DE/what-is-agent-native.md +202 -0
- package/corpus/core/docs/content/locales/de-DE/workspace-connections.md +321 -0
- package/corpus/core/docs/content/locales/de-DE/workspace-management.md +175 -0
- package/corpus/core/docs/content/locales/de-DE/workspace.md +323 -0
- package/corpus/core/docs/content/locales/de-DE/writing-agent-instructions.md +173 -0
- package/corpus/core/docs/content/locales/es-ES/a2a-protocol.md +392 -0
- package/corpus/core/docs/content/locales/es-ES/actions.md +583 -0
- package/corpus/core/docs/content/locales/es-ES/agent-mentions.md +164 -0
- package/corpus/core/docs/content/locales/es-ES/agent-surfaces.md +397 -0
- package/corpus/core/docs/content/locales/es-ES/agent-teams.md +171 -0
- package/corpus/core/docs/content/locales/es-ES/agent-web-surfaces.md +161 -0
- package/corpus/core/docs/content/locales/es-ES/audit-log.md +111 -0
- package/corpus/core/docs/content/locales/es-ES/authentication.md +332 -0
- package/corpus/core/docs/content/locales/es-ES/automations.md +268 -0
- package/corpus/core/docs/content/locales/es-ES/blueprint-installer.md +83 -0
- package/corpus/core/docs/content/locales/es-ES/cli-adapters.md +129 -0
- package/corpus/core/docs/content/locales/es-ES/client.md +398 -0
- package/corpus/core/docs/content/locales/es-ES/cloneable-saas.md +114 -0
- package/corpus/core/docs/content/locales/es-ES/code-agents-ui.md +436 -0
- package/corpus/core/docs/content/locales/es-ES/components.md +368 -0
- package/corpus/core/docs/content/locales/es-ES/context-awareness.md +373 -0
- package/corpus/core/docs/content/locales/es-ES/creating-templates.md +411 -0
- package/corpus/core/docs/content/locales/es-ES/cross-app-sso.md +185 -0
- package/corpus/core/docs/content/locales/es-ES/database.md +183 -0
- package/corpus/core/docs/content/locales/es-ES/deployment.md +349 -0
- package/corpus/core/docs/content/locales/es-ES/dispatch.md +146 -0
- package/corpus/core/docs/content/locales/es-ES/drop-in-agent.md +260 -0
- package/corpus/core/docs/content/locales/es-ES/durable-resume.md +65 -0
- package/corpus/core/docs/content/locales/es-ES/embedding-sdk.md +597 -0
- package/corpus/core/docs/content/locales/es-ES/evals.md +155 -0
- package/corpus/core/docs/content/locales/es-ES/extensions.md +360 -0
- package/corpus/core/docs/content/locales/es-ES/external-agents.md +619 -0
- package/corpus/core/docs/content/locales/es-ES/faq.md +142 -0
- package/corpus/core/docs/content/locales/es-ES/file-uploads.md +122 -0
- package/corpus/core/docs/content/locales/es-ES/frames.md +153 -0
- package/corpus/core/docs/content/locales/es-ES/getting-started.md +199 -0
- package/corpus/core/docs/content/locales/es-ES/harness-agents.md +349 -0
- package/corpus/core/docs/content/locales/es-ES/human-approval.md +86 -0
- package/corpus/core/docs/content/locales/es-ES/internationalization.md +67 -24
- package/corpus/core/docs/content/locales/es-ES/key-concepts.md +312 -0
- package/corpus/core/docs/content/locales/es-ES/local-file-mode.md +433 -0
- package/corpus/core/docs/content/locales/es-ES/mcp-apps.md +147 -0
- package/corpus/core/docs/content/locales/es-ES/mcp-clients.md +330 -0
- package/corpus/core/docs/content/locales/es-ES/mcp-protocol.md +279 -0
- package/corpus/core/docs/content/locales/es-ES/messaging.md +461 -0
- package/corpus/core/docs/content/locales/es-ES/migration-workbench.md +33 -0
- package/corpus/core/docs/content/locales/es-ES/multi-app-workspace.md +312 -0
- package/corpus/core/docs/content/locales/es-ES/multi-tenancy.md +52 -0
- package/corpus/core/docs/content/locales/es-ES/native-chat-ui.md +321 -0
- package/corpus/core/docs/content/locales/es-ES/notifications.md +231 -0
- package/corpus/core/docs/content/locales/es-ES/observability.md +294 -0
- package/corpus/core/docs/content/locales/es-ES/observational-memory.md +77 -0
- package/corpus/core/docs/content/locales/es-ES/onboarding.md +216 -0
- package/corpus/core/docs/content/locales/es-ES/plan-plugin.md +200 -0
- package/corpus/core/docs/content/locales/es-ES/pr-visual-recap.md +384 -0
- package/corpus/core/docs/content/locales/es-ES/processors.md +106 -0
- package/corpus/core/docs/content/locales/es-ES/progress.md +199 -0
- package/corpus/core/docs/content/locales/es-ES/pure-agent-apps.md +39 -0
- package/corpus/core/docs/content/locales/es-ES/real-time-collaboration.md +676 -0
- package/corpus/core/docs/content/locales/es-ES/recurring-jobs.md +142 -0
- package/corpus/core/docs/content/locales/es-ES/routing.md +79 -0
- package/corpus/core/docs/content/locales/es-ES/sandbox-adapters.md +227 -0
- package/corpus/core/docs/content/locales/es-ES/security.md +330 -0
- package/corpus/core/docs/content/locales/es-ES/server.md +253 -0
- package/corpus/core/docs/content/locales/es-ES/sharing.md +219 -0
- package/corpus/core/docs/content/locales/es-ES/skills-guide.md +281 -0
- package/corpus/core/docs/content/locales/es-ES/template-analytics.md +259 -0
- package/corpus/core/docs/content/locales/es-ES/template-assets.md +303 -0
- package/corpus/core/docs/content/locales/es-ES/template-brain.md +324 -0
- package/corpus/core/docs/content/locales/es-ES/template-calendar.md +194 -0
- package/corpus/core/docs/content/locales/es-ES/template-chat.md +129 -0
- package/corpus/core/docs/content/locales/es-ES/template-clips.md +368 -0
- package/corpus/core/docs/content/locales/es-ES/template-content.md +402 -0
- package/corpus/core/docs/content/locales/es-ES/template-design.md +173 -0
- package/corpus/core/docs/content/locales/es-ES/template-dispatch.md +220 -0
- package/corpus/core/docs/content/locales/es-ES/template-forms.md +178 -0
- package/corpus/core/docs/content/locales/es-ES/template-mail.md +239 -0
- package/corpus/core/docs/content/locales/es-ES/template-plan.md +815 -0
- package/corpus/core/docs/content/locales/es-ES/template-slides.md +293 -0
- package/corpus/core/docs/content/locales/es-ES/template-videos.md +222 -0
- package/corpus/core/docs/content/locales/es-ES/tracking.md +236 -0
- package/corpus/core/docs/content/locales/es-ES/using-your-agent.md +71 -0
- package/corpus/core/docs/content/locales/es-ES/voice-input.md +81 -0
- package/corpus/core/docs/content/locales/es-ES/what-is-agent-native.md +202 -0
- package/corpus/core/docs/content/locales/es-ES/workspace-connections.md +321 -0
- package/corpus/core/docs/content/locales/es-ES/workspace-management.md +175 -0
- package/corpus/core/docs/content/locales/es-ES/workspace.md +323 -0
- package/corpus/core/docs/content/locales/es-ES/writing-agent-instructions.md +173 -0
- package/corpus/core/docs/content/locales/fr-FR/a2a-protocol.md +392 -0
- package/corpus/core/docs/content/locales/fr-FR/actions.md +583 -0
- package/corpus/core/docs/content/locales/fr-FR/agent-mentions.md +164 -0
- package/corpus/core/docs/content/locales/fr-FR/agent-surfaces.md +397 -0
- package/corpus/core/docs/content/locales/fr-FR/agent-teams.md +171 -0
- package/corpus/core/docs/content/locales/fr-FR/agent-web-surfaces.md +161 -0
- package/corpus/core/docs/content/locales/fr-FR/audit-log.md +111 -0
- package/corpus/core/docs/content/locales/fr-FR/authentication.md +332 -0
- package/corpus/core/docs/content/locales/fr-FR/automations.md +268 -0
- package/corpus/core/docs/content/locales/fr-FR/blueprint-installer.md +83 -0
- package/corpus/core/docs/content/locales/fr-FR/cli-adapters.md +129 -0
- package/corpus/core/docs/content/locales/fr-FR/client.md +398 -0
- package/corpus/core/docs/content/locales/fr-FR/cloneable-saas.md +114 -0
- package/corpus/core/docs/content/locales/fr-FR/code-agents-ui.md +436 -0
- package/corpus/core/docs/content/locales/fr-FR/components.md +368 -0
- package/corpus/core/docs/content/locales/fr-FR/context-awareness.md +373 -0
- package/corpus/core/docs/content/locales/fr-FR/creating-templates.md +411 -0
- package/corpus/core/docs/content/locales/fr-FR/cross-app-sso.md +185 -0
- package/corpus/core/docs/content/locales/fr-FR/database.md +183 -0
- package/corpus/core/docs/content/locales/fr-FR/deployment.md +349 -0
- package/corpus/core/docs/content/locales/fr-FR/dispatch.md +146 -0
- package/corpus/core/docs/content/locales/fr-FR/drop-in-agent.md +260 -0
- package/corpus/core/docs/content/locales/fr-FR/durable-resume.md +65 -0
- package/corpus/core/docs/content/locales/fr-FR/embedding-sdk.md +597 -0
- package/corpus/core/docs/content/locales/fr-FR/evals.md +155 -0
- package/corpus/core/docs/content/locales/fr-FR/extensions.md +360 -0
- package/corpus/core/docs/content/locales/fr-FR/external-agents.md +619 -0
- package/corpus/core/docs/content/locales/fr-FR/faq.md +142 -0
- package/corpus/core/docs/content/locales/fr-FR/file-uploads.md +122 -0
- package/corpus/core/docs/content/locales/fr-FR/frames.md +153 -0
- package/corpus/core/docs/content/locales/fr-FR/getting-started.md +199 -0
- package/corpus/core/docs/content/locales/fr-FR/harness-agents.md +349 -0
- package/corpus/core/docs/content/locales/fr-FR/human-approval.md +86 -0
- package/corpus/core/docs/content/locales/fr-FR/internationalization.md +67 -24
- package/corpus/core/docs/content/locales/fr-FR/key-concepts.md +312 -0
- package/corpus/core/docs/content/locales/fr-FR/local-file-mode.md +433 -0
- package/corpus/core/docs/content/locales/fr-FR/mcp-apps.md +147 -0
- package/corpus/core/docs/content/locales/fr-FR/mcp-clients.md +330 -0
- package/corpus/core/docs/content/locales/fr-FR/mcp-protocol.md +279 -0
- package/corpus/core/docs/content/locales/fr-FR/messaging.md +461 -0
- package/corpus/core/docs/content/locales/fr-FR/migration-workbench.md +33 -0
- package/corpus/core/docs/content/locales/fr-FR/multi-app-workspace.md +312 -0
- package/corpus/core/docs/content/locales/fr-FR/multi-tenancy.md +52 -0
- package/corpus/core/docs/content/locales/fr-FR/native-chat-ui.md +321 -0
- package/corpus/core/docs/content/locales/fr-FR/notifications.md +231 -0
- package/corpus/core/docs/content/locales/fr-FR/observability.md +294 -0
- package/corpus/core/docs/content/locales/fr-FR/observational-memory.md +77 -0
- package/corpus/core/docs/content/locales/fr-FR/onboarding.md +216 -0
- package/corpus/core/docs/content/locales/fr-FR/plan-plugin.md +200 -0
- package/corpus/core/docs/content/locales/fr-FR/pr-visual-recap.md +384 -0
- package/corpus/core/docs/content/locales/fr-FR/processors.md +106 -0
- package/corpus/core/docs/content/locales/fr-FR/progress.md +199 -0
- package/corpus/core/docs/content/locales/fr-FR/pure-agent-apps.md +39 -0
- package/corpus/core/docs/content/locales/fr-FR/real-time-collaboration.md +676 -0
- package/corpus/core/docs/content/locales/fr-FR/recurring-jobs.md +142 -0
- package/corpus/core/docs/content/locales/fr-FR/routing.md +79 -0
- package/corpus/core/docs/content/locales/fr-FR/sandbox-adapters.md +227 -0
- package/corpus/core/docs/content/locales/fr-FR/security.md +330 -0
- package/corpus/core/docs/content/locales/fr-FR/server.md +253 -0
- package/corpus/core/docs/content/locales/fr-FR/sharing.md +219 -0
- package/corpus/core/docs/content/locales/fr-FR/skills-guide.md +281 -0
- package/corpus/core/docs/content/locales/fr-FR/template-analytics.md +259 -0
- package/corpus/core/docs/content/locales/fr-FR/template-assets.md +303 -0
- package/corpus/core/docs/content/locales/fr-FR/template-brain.md +324 -0
- package/corpus/core/docs/content/locales/fr-FR/template-calendar.md +194 -0
- package/corpus/core/docs/content/locales/fr-FR/template-chat.md +129 -0
- package/corpus/core/docs/content/locales/fr-FR/template-clips.md +368 -0
- package/corpus/core/docs/content/locales/fr-FR/template-content.md +402 -0
- package/corpus/core/docs/content/locales/fr-FR/template-design.md +173 -0
- package/corpus/core/docs/content/locales/fr-FR/template-dispatch.md +220 -0
- package/corpus/core/docs/content/locales/fr-FR/template-forms.md +178 -0
- package/corpus/core/docs/content/locales/fr-FR/template-mail.md +239 -0
- package/corpus/core/docs/content/locales/fr-FR/template-plan.md +815 -0
- package/corpus/core/docs/content/locales/fr-FR/template-slides.md +293 -0
- package/corpus/core/docs/content/locales/fr-FR/template-videos.md +222 -0
- package/corpus/core/docs/content/locales/fr-FR/tracking.md +236 -0
- package/corpus/core/docs/content/locales/fr-FR/using-your-agent.md +71 -0
- package/corpus/core/docs/content/locales/fr-FR/voice-input.md +81 -0
- package/corpus/core/docs/content/locales/fr-FR/what-is-agent-native.md +202 -0
- package/corpus/core/docs/content/locales/fr-FR/workspace-connections.md +321 -0
- package/corpus/core/docs/content/locales/fr-FR/workspace-management.md +175 -0
- package/corpus/core/docs/content/locales/fr-FR/workspace.md +323 -0
- package/corpus/core/docs/content/locales/fr-FR/writing-agent-instructions.md +173 -0
- package/corpus/core/docs/content/locales/hi-IN/a2a-protocol.md +392 -0
- package/corpus/core/docs/content/locales/hi-IN/actions.md +583 -0
- package/corpus/core/docs/content/locales/hi-IN/agent-mentions.md +164 -0
- package/corpus/core/docs/content/locales/hi-IN/agent-surfaces.md +397 -0
- package/corpus/core/docs/content/locales/hi-IN/agent-teams.md +171 -0
- package/corpus/core/docs/content/locales/hi-IN/agent-web-surfaces.md +161 -0
- package/corpus/core/docs/content/locales/hi-IN/audit-log.md +111 -0
- package/corpus/core/docs/content/locales/hi-IN/authentication.md +332 -0
- package/corpus/core/docs/content/locales/hi-IN/automations.md +268 -0
- package/corpus/core/docs/content/locales/hi-IN/blueprint-installer.md +83 -0
- package/corpus/core/docs/content/locales/hi-IN/cli-adapters.md +129 -0
- package/corpus/core/docs/content/locales/hi-IN/client.md +398 -0
- package/corpus/core/docs/content/locales/hi-IN/cloneable-saas.md +114 -0
- package/corpus/core/docs/content/locales/hi-IN/code-agents-ui.md +436 -0
- package/corpus/core/docs/content/locales/hi-IN/components.md +368 -0
- package/corpus/core/docs/content/locales/hi-IN/context-awareness.md +373 -0
- package/corpus/core/docs/content/locales/hi-IN/creating-templates.md +411 -0
- package/corpus/core/docs/content/locales/hi-IN/cross-app-sso.md +185 -0
- package/corpus/core/docs/content/locales/hi-IN/database.md +183 -0
- package/corpus/core/docs/content/locales/hi-IN/deployment.md +349 -0
- package/corpus/core/docs/content/locales/hi-IN/dispatch.md +146 -0
- package/corpus/core/docs/content/locales/hi-IN/drop-in-agent.md +260 -0
- package/corpus/core/docs/content/locales/hi-IN/durable-resume.md +65 -0
- package/corpus/core/docs/content/locales/hi-IN/embedding-sdk.md +597 -0
- package/corpus/core/docs/content/locales/hi-IN/evals.md +155 -0
- package/corpus/core/docs/content/locales/hi-IN/extensions.md +360 -0
- package/corpus/core/docs/content/locales/hi-IN/external-agents.md +619 -0
- package/corpus/core/docs/content/locales/hi-IN/faq.md +142 -0
- package/corpus/core/docs/content/locales/hi-IN/file-uploads.md +122 -0
- package/corpus/core/docs/content/locales/hi-IN/frames.md +153 -0
- package/corpus/core/docs/content/locales/hi-IN/getting-started.md +199 -0
- package/corpus/core/docs/content/locales/hi-IN/harness-agents.md +349 -0
- package/corpus/core/docs/content/locales/hi-IN/human-approval.md +86 -0
- package/corpus/core/docs/content/locales/hi-IN/internationalization.md +70 -27
- package/corpus/core/docs/content/locales/hi-IN/key-concepts.md +312 -0
- package/corpus/core/docs/content/locales/hi-IN/local-file-mode.md +433 -0
- package/corpus/core/docs/content/locales/hi-IN/mcp-apps.md +147 -0
- package/corpus/core/docs/content/locales/hi-IN/mcp-clients.md +330 -0
- package/corpus/core/docs/content/locales/hi-IN/mcp-protocol.md +279 -0
- package/corpus/core/docs/content/locales/hi-IN/messaging.md +461 -0
- package/corpus/core/docs/content/locales/hi-IN/migration-workbench.md +33 -0
- package/corpus/core/docs/content/locales/hi-IN/multi-app-workspace.md +312 -0
- package/corpus/core/docs/content/locales/hi-IN/multi-tenancy.md +52 -0
- package/corpus/core/docs/content/locales/hi-IN/native-chat-ui.md +321 -0
- package/corpus/core/docs/content/locales/hi-IN/notifications.md +231 -0
- package/corpus/core/docs/content/locales/hi-IN/observability.md +294 -0
- package/corpus/core/docs/content/locales/hi-IN/observational-memory.md +77 -0
- package/corpus/core/docs/content/locales/hi-IN/onboarding.md +216 -0
- package/corpus/core/docs/content/locales/hi-IN/plan-plugin.md +200 -0
- package/corpus/core/docs/content/locales/hi-IN/pr-visual-recap.md +384 -0
- package/corpus/core/docs/content/locales/hi-IN/processors.md +106 -0
- package/corpus/core/docs/content/locales/hi-IN/progress.md +199 -0
- package/corpus/core/docs/content/locales/hi-IN/pure-agent-apps.md +39 -0
- package/corpus/core/docs/content/locales/hi-IN/real-time-collaboration.md +676 -0
- package/corpus/core/docs/content/locales/hi-IN/recurring-jobs.md +142 -0
- package/corpus/core/docs/content/locales/hi-IN/routing.md +79 -0
- package/corpus/core/docs/content/locales/hi-IN/sandbox-adapters.md +227 -0
- package/corpus/core/docs/content/locales/hi-IN/security.md +330 -0
- package/corpus/core/docs/content/locales/hi-IN/server.md +253 -0
- package/corpus/core/docs/content/locales/hi-IN/sharing.md +219 -0
- package/corpus/core/docs/content/locales/hi-IN/skills-guide.md +281 -0
- package/corpus/core/docs/content/locales/hi-IN/template-analytics.md +259 -0
- package/corpus/core/docs/content/locales/hi-IN/template-assets.md +303 -0
- package/corpus/core/docs/content/locales/hi-IN/template-brain.md +324 -0
- package/corpus/core/docs/content/locales/hi-IN/template-calendar.md +194 -0
- package/corpus/core/docs/content/locales/hi-IN/template-chat.md +129 -0
- package/corpus/core/docs/content/locales/hi-IN/template-clips.md +368 -0
- package/corpus/core/docs/content/locales/hi-IN/template-content.md +402 -0
- package/corpus/core/docs/content/locales/hi-IN/template-design.md +173 -0
- package/corpus/core/docs/content/locales/hi-IN/template-dispatch.md +220 -0
- package/corpus/core/docs/content/locales/hi-IN/template-forms.md +178 -0
- package/corpus/core/docs/content/locales/hi-IN/template-mail.md +239 -0
- package/corpus/core/docs/content/locales/hi-IN/template-plan.md +815 -0
- package/corpus/core/docs/content/locales/hi-IN/template-slides.md +293 -0
- package/corpus/core/docs/content/locales/hi-IN/template-videos.md +222 -0
- package/corpus/core/docs/content/locales/hi-IN/tracking.md +236 -0
- package/corpus/core/docs/content/locales/hi-IN/using-your-agent.md +71 -0
- package/corpus/core/docs/content/locales/hi-IN/voice-input.md +81 -0
- package/corpus/core/docs/content/locales/hi-IN/what-is-agent-native.md +202 -0
- package/corpus/core/docs/content/locales/hi-IN/workspace-connections.md +321 -0
- package/corpus/core/docs/content/locales/hi-IN/workspace-management.md +175 -0
- package/corpus/core/docs/content/locales/hi-IN/workspace.md +323 -0
- package/corpus/core/docs/content/locales/hi-IN/writing-agent-instructions.md +173 -0
- package/corpus/core/docs/content/locales/ja-JP/a2a-protocol.md +392 -0
- package/corpus/core/docs/content/locales/ja-JP/actions.md +583 -0
- package/corpus/core/docs/content/locales/ja-JP/agent-mentions.md +164 -0
- package/corpus/core/docs/content/locales/ja-JP/agent-surfaces.md +397 -0
- package/corpus/core/docs/content/locales/ja-JP/agent-teams.md +171 -0
- package/corpus/core/docs/content/locales/ja-JP/agent-web-surfaces.md +161 -0
- package/corpus/core/docs/content/locales/ja-JP/audit-log.md +111 -0
- package/corpus/core/docs/content/locales/ja-JP/authentication.md +332 -0
- package/corpus/core/docs/content/locales/ja-JP/automations.md +268 -0
- package/corpus/core/docs/content/locales/ja-JP/blueprint-installer.md +83 -0
- package/corpus/core/docs/content/locales/ja-JP/cli-adapters.md +129 -0
- package/corpus/core/docs/content/locales/ja-JP/client.md +398 -0
- package/corpus/core/docs/content/locales/ja-JP/cloneable-saas.md +114 -0
- package/corpus/core/docs/content/locales/ja-JP/code-agents-ui.md +436 -0
- package/corpus/core/docs/content/locales/ja-JP/components.md +368 -0
- package/corpus/core/docs/content/locales/ja-JP/context-awareness.md +373 -0
- package/corpus/core/docs/content/locales/ja-JP/creating-templates.md +411 -0
- package/corpus/core/docs/content/locales/ja-JP/cross-app-sso.md +185 -0
- package/corpus/core/docs/content/locales/ja-JP/database.md +183 -0
- package/corpus/core/docs/content/locales/ja-JP/deployment.md +349 -0
- package/corpus/core/docs/content/locales/ja-JP/dispatch.md +146 -0
- package/corpus/core/docs/content/locales/ja-JP/drop-in-agent.md +260 -0
- package/corpus/core/docs/content/locales/ja-JP/durable-resume.md +65 -0
- package/corpus/core/docs/content/locales/ja-JP/embedding-sdk.md +597 -0
- package/corpus/core/docs/content/locales/ja-JP/evals.md +155 -0
- package/corpus/core/docs/content/locales/ja-JP/extensions.md +360 -0
- package/corpus/core/docs/content/locales/ja-JP/external-agents.md +619 -0
- package/corpus/core/docs/content/locales/ja-JP/faq.md +142 -0
- package/corpus/core/docs/content/locales/ja-JP/file-uploads.md +122 -0
- package/corpus/core/docs/content/locales/ja-JP/frames.md +153 -0
- package/corpus/core/docs/content/locales/ja-JP/getting-started.md +199 -0
- package/corpus/core/docs/content/locales/ja-JP/harness-agents.md +349 -0
- package/corpus/core/docs/content/locales/ja-JP/human-approval.md +86 -0
- package/corpus/core/docs/content/locales/ja-JP/internationalization.md +54 -23
- package/corpus/core/docs/content/locales/ja-JP/key-concepts.md +312 -0
- package/corpus/core/docs/content/locales/ja-JP/local-file-mode.md +433 -0
- package/corpus/core/docs/content/locales/ja-JP/mcp-apps.md +147 -0
- package/corpus/core/docs/content/locales/ja-JP/mcp-clients.md +330 -0
- package/corpus/core/docs/content/locales/ja-JP/mcp-protocol.md +279 -0
- package/corpus/core/docs/content/locales/ja-JP/messaging.md +461 -0
- package/corpus/core/docs/content/locales/ja-JP/migration-workbench.md +33 -0
- package/corpus/core/docs/content/locales/ja-JP/multi-app-workspace.md +312 -0
- package/corpus/core/docs/content/locales/ja-JP/multi-tenancy.md +52 -0
- package/corpus/core/docs/content/locales/ja-JP/native-chat-ui.md +321 -0
- package/corpus/core/docs/content/locales/ja-JP/notifications.md +231 -0
- package/corpus/core/docs/content/locales/ja-JP/observability.md +294 -0
- package/corpus/core/docs/content/locales/ja-JP/observational-memory.md +77 -0
- package/corpus/core/docs/content/locales/ja-JP/onboarding.md +216 -0
- package/corpus/core/docs/content/locales/ja-JP/plan-plugin.md +200 -0
- package/corpus/core/docs/content/locales/ja-JP/pr-visual-recap.md +384 -0
- package/corpus/core/docs/content/locales/ja-JP/processors.md +106 -0
- package/corpus/core/docs/content/locales/ja-JP/progress.md +199 -0
- package/corpus/core/docs/content/locales/ja-JP/pure-agent-apps.md +39 -0
- package/corpus/core/docs/content/locales/ja-JP/real-time-collaboration.md +676 -0
- package/corpus/core/docs/content/locales/ja-JP/recurring-jobs.md +142 -0
- package/corpus/core/docs/content/locales/ja-JP/routing.md +79 -0
- package/corpus/core/docs/content/locales/ja-JP/sandbox-adapters.md +227 -0
- package/corpus/core/docs/content/locales/ja-JP/security.md +330 -0
- package/corpus/core/docs/content/locales/ja-JP/server.md +253 -0
- package/corpus/core/docs/content/locales/ja-JP/sharing.md +219 -0
- package/corpus/core/docs/content/locales/ja-JP/skills-guide.md +281 -0
- package/corpus/core/docs/content/locales/ja-JP/template-analytics.md +259 -0
- package/corpus/core/docs/content/locales/ja-JP/template-assets.md +303 -0
- package/corpus/core/docs/content/locales/ja-JP/template-brain.md +324 -0
- package/corpus/core/docs/content/locales/ja-JP/template-calendar.md +194 -0
- package/corpus/core/docs/content/locales/ja-JP/template-chat.md +129 -0
- package/corpus/core/docs/content/locales/ja-JP/template-clips.md +368 -0
- package/corpus/core/docs/content/locales/ja-JP/template-content.md +402 -0
- package/corpus/core/docs/content/locales/ja-JP/template-design.md +173 -0
- package/corpus/core/docs/content/locales/ja-JP/template-dispatch.md +220 -0
- package/corpus/core/docs/content/locales/ja-JP/template-forms.md +178 -0
- package/corpus/core/docs/content/locales/ja-JP/template-mail.md +239 -0
- package/corpus/core/docs/content/locales/ja-JP/template-plan.md +814 -0
- package/corpus/core/docs/content/locales/ja-JP/template-slides.md +293 -0
- package/corpus/core/docs/content/locales/ja-JP/template-videos.md +222 -0
- package/corpus/core/docs/content/locales/ja-JP/tracking.md +236 -0
- package/corpus/core/docs/content/locales/ja-JP/using-your-agent.md +71 -0
- package/corpus/core/docs/content/locales/ja-JP/voice-input.md +81 -0
- package/corpus/core/docs/content/locales/ja-JP/what-is-agent-native.md +202 -0
- package/corpus/core/docs/content/locales/ja-JP/workspace-connections.md +321 -0
- package/corpus/core/docs/content/locales/ja-JP/workspace-management.md +175 -0
- package/corpus/core/docs/content/locales/ja-JP/workspace.md +323 -0
- package/corpus/core/docs/content/locales/ja-JP/writing-agent-instructions.md +173 -0
- package/corpus/core/docs/content/locales/ko-KR/a2a-protocol.md +392 -0
- package/corpus/core/docs/content/locales/ko-KR/actions.md +583 -0
- package/corpus/core/docs/content/locales/ko-KR/agent-mentions.md +164 -0
- package/corpus/core/docs/content/locales/ko-KR/agent-surfaces.md +397 -0
- package/corpus/core/docs/content/locales/ko-KR/agent-teams.md +171 -0
- package/corpus/core/docs/content/locales/ko-KR/agent-web-surfaces.md +161 -0
- package/corpus/core/docs/content/locales/ko-KR/audit-log.md +111 -0
- package/corpus/core/docs/content/locales/ko-KR/authentication.md +332 -0
- package/corpus/core/docs/content/locales/ko-KR/automations.md +268 -0
- package/corpus/core/docs/content/locales/ko-KR/blueprint-installer.md +83 -0
- package/corpus/core/docs/content/locales/ko-KR/cli-adapters.md +129 -0
- package/corpus/core/docs/content/locales/ko-KR/client.md +398 -0
- package/corpus/core/docs/content/locales/ko-KR/cloneable-saas.md +114 -0
- package/corpus/core/docs/content/locales/ko-KR/code-agents-ui.md +436 -0
- package/corpus/core/docs/content/locales/ko-KR/components.md +368 -0
- package/corpus/core/docs/content/locales/ko-KR/context-awareness.md +373 -0
- package/corpus/core/docs/content/locales/ko-KR/creating-templates.md +411 -0
- package/corpus/core/docs/content/locales/ko-KR/cross-app-sso.md +187 -0
- package/corpus/core/docs/content/locales/ko-KR/database.md +183 -0
- package/corpus/core/docs/content/locales/ko-KR/deployment.md +349 -0
- package/corpus/core/docs/content/locales/ko-KR/dispatch.md +146 -0
- package/corpus/core/docs/content/locales/ko-KR/drop-in-agent.md +260 -0
- package/corpus/core/docs/content/locales/ko-KR/durable-resume.md +65 -0
- package/corpus/core/docs/content/locales/ko-KR/embedding-sdk.md +597 -0
- package/corpus/core/docs/content/locales/ko-KR/evals.md +155 -0
- package/corpus/core/docs/content/locales/ko-KR/extensions.md +360 -0
- package/corpus/core/docs/content/locales/ko-KR/external-agents.md +621 -0
- package/corpus/core/docs/content/locales/ko-KR/faq.md +142 -0
- package/corpus/core/docs/content/locales/ko-KR/file-uploads.md +122 -0
- package/corpus/core/docs/content/locales/ko-KR/frames.md +153 -0
- package/corpus/core/docs/content/locales/ko-KR/getting-started.md +199 -0
- package/corpus/core/docs/content/locales/ko-KR/harness-agents.md +349 -0
- package/corpus/core/docs/content/locales/ko-KR/human-approval.md +88 -0
- package/corpus/core/docs/content/locales/ko-KR/internationalization.md +66 -23
- package/corpus/core/docs/content/locales/ko-KR/key-concepts.md +312 -0
- package/corpus/core/docs/content/locales/ko-KR/local-file-mode.md +433 -0
- package/corpus/core/docs/content/locales/ko-KR/mcp-apps.md +147 -0
- package/corpus/core/docs/content/locales/ko-KR/mcp-clients.md +330 -0
- package/corpus/core/docs/content/locales/ko-KR/mcp-protocol.md +279 -0
- package/corpus/core/docs/content/locales/ko-KR/messaging.md +464 -0
- package/corpus/core/docs/content/locales/ko-KR/migration-workbench.md +33 -0
- package/corpus/core/docs/content/locales/ko-KR/multi-app-workspace.md +312 -0
- package/corpus/core/docs/content/locales/ko-KR/multi-tenancy.md +52 -0
- package/corpus/core/docs/content/locales/ko-KR/native-chat-ui.md +321 -0
- package/corpus/core/docs/content/locales/ko-KR/notifications.md +231 -0
- package/corpus/core/docs/content/locales/ko-KR/observability.md +294 -0
- package/corpus/core/docs/content/locales/ko-KR/observational-memory.md +77 -0
- package/corpus/core/docs/content/locales/ko-KR/onboarding.md +216 -0
- package/corpus/core/docs/content/locales/ko-KR/plan-plugin.md +200 -0
- package/corpus/core/docs/content/locales/ko-KR/pr-visual-recap.md +384 -0
- package/corpus/core/docs/content/locales/ko-KR/processors.md +106 -0
- package/corpus/core/docs/content/locales/ko-KR/progress.md +199 -0
- package/corpus/core/docs/content/locales/ko-KR/pure-agent-apps.md +39 -0
- package/corpus/core/docs/content/locales/ko-KR/real-time-collaboration.md +676 -0
- package/corpus/core/docs/content/locales/ko-KR/recurring-jobs.md +142 -0
- package/corpus/core/docs/content/locales/ko-KR/routing.md +79 -0
- package/corpus/core/docs/content/locales/ko-KR/sandbox-adapters.md +227 -0
- package/corpus/core/docs/content/locales/ko-KR/security.md +330 -0
- package/corpus/core/docs/content/locales/ko-KR/server.md +253 -0
- package/corpus/core/docs/content/locales/ko-KR/sharing.md +219 -0
- package/corpus/core/docs/content/locales/ko-KR/skills-guide.md +281 -0
- package/corpus/core/docs/content/locales/ko-KR/template-analytics.md +259 -0
- package/corpus/core/docs/content/locales/ko-KR/template-assets.md +307 -0
- package/corpus/core/docs/content/locales/ko-KR/template-brain.md +324 -0
- package/corpus/core/docs/content/locales/ko-KR/template-calendar.md +194 -0
- package/corpus/core/docs/content/locales/ko-KR/template-chat.md +129 -0
- package/corpus/core/docs/content/locales/ko-KR/template-clips.md +372 -0
- package/corpus/core/docs/content/locales/ko-KR/template-content.md +402 -0
- package/corpus/core/docs/content/locales/ko-KR/template-design.md +173 -0
- package/corpus/core/docs/content/locales/ko-KR/template-dispatch.md +220 -0
- package/corpus/core/docs/content/locales/ko-KR/template-forms.md +178 -0
- package/corpus/core/docs/content/locales/ko-KR/template-mail.md +239 -0
- package/corpus/core/docs/content/locales/ko-KR/template-plan.md +815 -0
- package/corpus/core/docs/content/locales/ko-KR/template-slides.md +293 -0
- package/corpus/core/docs/content/locales/ko-KR/template-videos.md +222 -0
- package/corpus/core/docs/content/locales/ko-KR/tracking.md +236 -0
- package/corpus/core/docs/content/locales/ko-KR/using-your-agent.md +71 -0
- package/corpus/core/docs/content/locales/ko-KR/voice-input.md +81 -0
- package/corpus/core/docs/content/locales/ko-KR/what-is-agent-native.md +202 -0
- package/corpus/core/docs/content/locales/ko-KR/workspace-connections.md +321 -0
- package/corpus/core/docs/content/locales/ko-KR/workspace-management.md +175 -0
- package/corpus/core/docs/content/locales/ko-KR/workspace.md +323 -0
- package/corpus/core/docs/content/locales/ko-KR/writing-agent-instructions.md +173 -0
- package/corpus/core/docs/content/locales/pt-BR/a2a-protocol.md +392 -0
- package/corpus/core/docs/content/locales/pt-BR/actions.md +583 -0
- package/corpus/core/docs/content/locales/pt-BR/agent-mentions.md +164 -0
- package/corpus/core/docs/content/locales/pt-BR/agent-surfaces.md +397 -0
- package/corpus/core/docs/content/locales/pt-BR/agent-teams.md +171 -0
- package/corpus/core/docs/content/locales/pt-BR/agent-web-surfaces.md +161 -0
- package/corpus/core/docs/content/locales/pt-BR/audit-log.md +111 -0
- package/corpus/core/docs/content/locales/pt-BR/authentication.md +332 -0
- package/corpus/core/docs/content/locales/pt-BR/automations.md +268 -0
- package/corpus/core/docs/content/locales/pt-BR/blueprint-installer.md +83 -0
- package/corpus/core/docs/content/locales/pt-BR/cli-adapters.md +129 -0
- package/corpus/core/docs/content/locales/pt-BR/client.md +398 -0
- package/corpus/core/docs/content/locales/pt-BR/cloneable-saas.md +114 -0
- package/corpus/core/docs/content/locales/pt-BR/code-agents-ui.md +436 -0
- package/corpus/core/docs/content/locales/pt-BR/components.md +368 -0
- package/corpus/core/docs/content/locales/pt-BR/context-awareness.md +373 -0
- package/corpus/core/docs/content/locales/pt-BR/creating-templates.md +411 -0
- package/corpus/core/docs/content/locales/pt-BR/cross-app-sso.md +185 -0
- package/corpus/core/docs/content/locales/pt-BR/database.md +183 -0
- package/corpus/core/docs/content/locales/pt-BR/deployment.md +349 -0
- package/corpus/core/docs/content/locales/pt-BR/dispatch.md +146 -0
- package/corpus/core/docs/content/locales/pt-BR/drop-in-agent.md +260 -0
- package/corpus/core/docs/content/locales/pt-BR/durable-resume.md +65 -0
- package/corpus/core/docs/content/locales/pt-BR/embedding-sdk.md +597 -0
- package/corpus/core/docs/content/locales/pt-BR/evals.md +155 -0
- package/corpus/core/docs/content/locales/pt-BR/extensions.md +360 -0
- package/corpus/core/docs/content/locales/pt-BR/external-agents.md +619 -0
- package/corpus/core/docs/content/locales/pt-BR/faq.md +142 -0
- package/corpus/core/docs/content/locales/pt-BR/file-uploads.md +122 -0
- package/corpus/core/docs/content/locales/pt-BR/frames.md +153 -0
- package/corpus/core/docs/content/locales/pt-BR/getting-started.md +199 -0
- package/corpus/core/docs/content/locales/pt-BR/harness-agents.md +349 -0
- package/corpus/core/docs/content/locales/pt-BR/human-approval.md +86 -0
- package/corpus/core/docs/content/locales/pt-BR/internationalization.md +67 -24
- package/corpus/core/docs/content/locales/pt-BR/key-concepts.md +312 -0
- package/corpus/core/docs/content/locales/pt-BR/local-file-mode.md +433 -0
- package/corpus/core/docs/content/locales/pt-BR/mcp-apps.md +147 -0
- package/corpus/core/docs/content/locales/pt-BR/mcp-clients.md +330 -0
- package/corpus/core/docs/content/locales/pt-BR/mcp-protocol.md +279 -0
- package/corpus/core/docs/content/locales/pt-BR/messaging.md +461 -0
- package/corpus/core/docs/content/locales/pt-BR/migration-workbench.md +33 -0
- package/corpus/core/docs/content/locales/pt-BR/multi-app-workspace.md +312 -0
- package/corpus/core/docs/content/locales/pt-BR/multi-tenancy.md +52 -0
- package/corpus/core/docs/content/locales/pt-BR/native-chat-ui.md +321 -0
- package/corpus/core/docs/content/locales/pt-BR/notifications.md +231 -0
- package/corpus/core/docs/content/locales/pt-BR/observability.md +294 -0
- package/corpus/core/docs/content/locales/pt-BR/observational-memory.md +77 -0
- package/corpus/core/docs/content/locales/pt-BR/onboarding.md +216 -0
- package/corpus/core/docs/content/locales/pt-BR/plan-plugin.md +200 -0
- package/corpus/core/docs/content/locales/pt-BR/pr-visual-recap.md +384 -0
- package/corpus/core/docs/content/locales/pt-BR/processors.md +106 -0
- package/corpus/core/docs/content/locales/pt-BR/progress.md +199 -0
- package/corpus/core/docs/content/locales/pt-BR/pure-agent-apps.md +39 -0
- package/corpus/core/docs/content/locales/pt-BR/real-time-collaboration.md +676 -0
- package/corpus/core/docs/content/locales/pt-BR/recurring-jobs.md +142 -0
- package/corpus/core/docs/content/locales/pt-BR/routing.md +79 -0
- package/corpus/core/docs/content/locales/pt-BR/sandbox-adapters.md +227 -0
- package/corpus/core/docs/content/locales/pt-BR/security.md +330 -0
- package/corpus/core/docs/content/locales/pt-BR/server.md +253 -0
- package/corpus/core/docs/content/locales/pt-BR/sharing.md +219 -0
- package/corpus/core/docs/content/locales/pt-BR/skills-guide.md +281 -0
- package/corpus/core/docs/content/locales/pt-BR/template-analytics.md +259 -0
- package/corpus/core/docs/content/locales/pt-BR/template-assets.md +303 -0
- package/corpus/core/docs/content/locales/pt-BR/template-brain.md +324 -0
- package/corpus/core/docs/content/locales/pt-BR/template-calendar.md +194 -0
- package/corpus/core/docs/content/locales/pt-BR/template-chat.md +129 -0
- package/corpus/core/docs/content/locales/pt-BR/template-clips.md +368 -0
- package/corpus/core/docs/content/locales/pt-BR/template-content.md +402 -0
- package/corpus/core/docs/content/locales/pt-BR/template-design.md +173 -0
- package/corpus/core/docs/content/locales/pt-BR/template-dispatch.md +220 -0
- package/corpus/core/docs/content/locales/pt-BR/template-forms.md +178 -0
- package/corpus/core/docs/content/locales/pt-BR/template-mail.md +239 -0
- package/corpus/core/docs/content/locales/pt-BR/template-plan.md +815 -0
- package/corpus/core/docs/content/locales/pt-BR/template-slides.md +293 -0
- package/corpus/core/docs/content/locales/pt-BR/template-videos.md +222 -0
- package/corpus/core/docs/content/locales/pt-BR/tracking.md +236 -0
- package/corpus/core/docs/content/locales/pt-BR/using-your-agent.md +71 -0
- package/corpus/core/docs/content/locales/pt-BR/voice-input.md +81 -0
- package/corpus/core/docs/content/locales/pt-BR/what-is-agent-native.md +202 -0
- package/corpus/core/docs/content/locales/pt-BR/workspace-connections.md +321 -0
- package/corpus/core/docs/content/locales/pt-BR/workspace-management.md +175 -0
- package/corpus/core/docs/content/locales/pt-BR/workspace.md +323 -0
- package/corpus/core/docs/content/locales/pt-BR/writing-agent-instructions.md +173 -0
- package/corpus/core/docs/content/locales/zh-CN/a2a-protocol.md +392 -0
- package/corpus/core/docs/content/locales/zh-CN/actions.md +583 -0
- package/corpus/core/docs/content/locales/zh-CN/agent-mentions.md +164 -0
- package/corpus/core/docs/content/locales/zh-CN/agent-surfaces.md +397 -0
- package/corpus/core/docs/content/locales/zh-CN/agent-teams.md +171 -0
- package/corpus/core/docs/content/locales/zh-CN/agent-web-surfaces.md +161 -0
- package/corpus/core/docs/content/locales/zh-CN/audit-log.md +111 -0
- package/corpus/core/docs/content/locales/zh-CN/authentication.md +332 -0
- package/corpus/core/docs/content/locales/zh-CN/automations.md +268 -0
- package/corpus/core/docs/content/locales/zh-CN/blueprint-installer.md +83 -0
- package/corpus/core/docs/content/locales/zh-CN/cli-adapters.md +129 -0
- package/corpus/core/docs/content/locales/zh-CN/client.md +398 -0
- package/corpus/core/docs/content/locales/zh-CN/cloneable-saas.md +114 -0
- package/corpus/core/docs/content/locales/zh-CN/code-agents-ui.md +436 -0
- package/corpus/core/docs/content/locales/zh-CN/components.md +368 -0
- package/corpus/core/docs/content/locales/zh-CN/context-awareness.md +373 -0
- package/corpus/core/docs/content/locales/zh-CN/creating-templates.md +411 -0
- package/corpus/core/docs/content/locales/zh-CN/cross-app-sso.md +188 -0
- package/corpus/core/docs/content/locales/zh-CN/database.md +183 -0
- package/corpus/core/docs/content/locales/zh-CN/deployment.md +349 -0
- package/corpus/core/docs/content/locales/zh-CN/dispatch.md +146 -0
- package/corpus/core/docs/content/locales/zh-CN/drop-in-agent.md +260 -0
- package/corpus/core/docs/content/locales/zh-CN/durable-resume.md +65 -0
- package/corpus/core/docs/content/locales/zh-CN/embedding-sdk.md +597 -0
- package/corpus/core/docs/content/locales/zh-CN/evals.md +155 -0
- package/corpus/core/docs/content/locales/zh-CN/extensions.md +360 -0
- package/corpus/core/docs/content/locales/zh-CN/external-agents.md +619 -0
- package/corpus/core/docs/content/locales/zh-CN/faq.md +142 -0
- package/corpus/core/docs/content/locales/zh-CN/file-uploads.md +122 -0
- package/corpus/core/docs/content/locales/zh-CN/frames.md +153 -0
- package/corpus/core/docs/content/locales/zh-CN/getting-started.md +199 -0
- package/corpus/core/docs/content/locales/zh-CN/harness-agents.md +349 -0
- package/corpus/core/docs/content/locales/zh-CN/human-approval.md +86 -0
- package/corpus/core/docs/content/locales/zh-CN/internationalization.md +67 -24
- package/corpus/core/docs/content/locales/zh-CN/key-concepts.md +312 -0
- package/corpus/core/docs/content/locales/zh-CN/local-file-mode.md +433 -0
- package/corpus/core/docs/content/locales/zh-CN/mcp-apps.md +147 -0
- package/corpus/core/docs/content/locales/zh-CN/mcp-clients.md +330 -0
- package/corpus/core/docs/content/locales/zh-CN/mcp-protocol.md +279 -0
- package/corpus/core/docs/content/locales/zh-CN/messaging.md +461 -0
- package/corpus/core/docs/content/locales/zh-CN/migration-workbench.md +33 -0
- package/corpus/core/docs/content/locales/zh-CN/multi-app-workspace.md +312 -0
- package/corpus/core/docs/content/locales/zh-CN/multi-tenancy.md +52 -0
- package/corpus/core/docs/content/locales/zh-CN/native-chat-ui.md +321 -0
- package/corpus/core/docs/content/locales/zh-CN/notifications.md +231 -0
- package/corpus/core/docs/content/locales/zh-CN/observability.md +294 -0
- package/corpus/core/docs/content/locales/zh-CN/observational-memory.md +77 -0
- package/corpus/core/docs/content/locales/zh-CN/onboarding.md +216 -0
- package/corpus/core/docs/content/locales/zh-CN/plan-plugin.md +200 -0
- package/corpus/core/docs/content/locales/zh-CN/pr-visual-recap.md +384 -0
- package/corpus/core/docs/content/locales/zh-CN/processors.md +106 -0
- package/corpus/core/docs/content/locales/zh-CN/progress.md +199 -0
- package/corpus/core/docs/content/locales/zh-CN/pure-agent-apps.md +39 -0
- package/corpus/core/docs/content/locales/zh-CN/real-time-collaboration.md +676 -0
- package/corpus/core/docs/content/locales/zh-CN/recurring-jobs.md +142 -0
- package/corpus/core/docs/content/locales/zh-CN/routing.md +79 -0
- package/corpus/core/docs/content/locales/zh-CN/sandbox-adapters.md +227 -0
- package/corpus/core/docs/content/locales/zh-CN/security.md +330 -0
- package/corpus/core/docs/content/locales/zh-CN/server.md +253 -0
- package/corpus/core/docs/content/locales/zh-CN/sharing.md +219 -0
- package/corpus/core/docs/content/locales/zh-CN/skills-guide.md +281 -0
- package/corpus/core/docs/content/locales/zh-CN/template-analytics.md +259 -0
- package/corpus/core/docs/content/locales/zh-CN/template-assets.md +303 -0
- package/corpus/core/docs/content/locales/zh-CN/template-brain.md +324 -0
- package/corpus/core/docs/content/locales/zh-CN/template-calendar.md +194 -0
- package/corpus/core/docs/content/locales/zh-CN/template-chat.md +129 -0
- package/corpus/core/docs/content/locales/zh-CN/template-clips.md +368 -0
- package/corpus/core/docs/content/locales/zh-CN/template-content.md +402 -0
- package/corpus/core/docs/content/locales/zh-CN/template-design.md +173 -0
- package/corpus/core/docs/content/locales/zh-CN/template-dispatch.md +220 -0
- package/corpus/core/docs/content/locales/zh-CN/template-forms.md +178 -0
- package/corpus/core/docs/content/locales/zh-CN/template-mail.md +239 -0
- package/corpus/core/docs/content/locales/zh-CN/template-plan.md +814 -0
- package/corpus/core/docs/content/locales/zh-CN/template-slides.md +293 -0
- package/corpus/core/docs/content/locales/zh-CN/template-videos.md +222 -0
- package/corpus/core/docs/content/locales/zh-CN/tracking.md +236 -0
- package/corpus/core/docs/content/locales/zh-CN/using-your-agent.md +71 -0
- package/corpus/core/docs/content/locales/zh-CN/voice-input.md +81 -0
- package/corpus/core/docs/content/locales/zh-CN/what-is-agent-native.md +202 -0
- package/corpus/core/docs/content/locales/zh-CN/workspace-connections.md +321 -0
- package/corpus/core/docs/content/locales/zh-CN/workspace-management.md +175 -0
- package/corpus/core/docs/content/locales/zh-CN/workspace.md +323 -0
- package/corpus/core/docs/content/locales/zh-CN/writing-agent-instructions.md +173 -0
- package/corpus/core/package.json +1 -1
- package/corpus/core/src/agent/run-store.ts +13 -0
- package/corpus/core/src/client/components/CodeRequiredDialog.tsx +37 -23
- package/corpus/core/src/client/extensions/EmbeddedExtension.tsx +13 -9
- package/corpus/core/src/client/extensions/ExtensionEditor.tsx +43 -33
- package/corpus/core/src/client/extensions/ExtensionSlot.tsx +16 -12
- package/corpus/core/src/client/extensions/ExtensionsListPage.tsx +52 -37
- package/corpus/core/src/client/i18n.tsx +87 -2
- package/corpus/core/src/client/integrations/IntegrationCard.tsx +13 -8
- package/corpus/core/src/client/integrations/IntegrationsPanel.tsx +34 -30
- package/corpus/core/src/client/observability/ObservabilityDashboard.tsx +90 -65
- package/corpus/core/src/client/org/RequireActiveOrg.tsx +24 -18
- package/corpus/core/src/client/org/TeamPage.tsx +37 -26
- package/corpus/core/src/client/progress/RunsTray.tsx +67 -33
- package/corpus/core/src/extensions/routes.ts +45 -25
- package/corpus/core/src/templates/default/app/i18n/ar-SA.ts +356 -0
- package/corpus/core/src/templates/default/app/i18n/de-DE.ts +332 -0
- package/corpus/core/src/templates/default/app/i18n/en-US.ts +303 -0
- package/corpus/core/src/templates/default/app/i18n/es-ES.ts +339 -0
- package/corpus/core/src/templates/default/app/i18n/fr-FR.ts +339 -0
- package/corpus/core/src/templates/default/app/i18n/hi-IN.ts +332 -0
- package/corpus/core/src/templates/default/app/i18n/index.ts +18 -0
- package/corpus/core/src/templates/default/app/i18n/ja-JP.ts +326 -0
- package/corpus/core/src/templates/default/app/i18n/ko-KR.ts +326 -0
- package/corpus/core/src/templates/default/app/i18n/pt-BR.ts +339 -0
- package/corpus/core/src/templates/default/app/i18n/zh-CN.ts +324 -0
- package/corpus/core/src/templates/default/app/root.tsx +109 -6
- package/corpus/core/src/templates/workspace-core/.agents/skills/extensions/references/api.md +34 -12
- package/corpus/templates/analytics/app/components/layout/NewAnalysisDialog.tsx +16 -10
- package/corpus/templates/analytics/app/components/layout/NewDashboardDialog.tsx +9 -4
- package/corpus/templates/analytics/app/i18n-data.ts +16 -0
- package/corpus/templates/assets/app/i18n-data.ts +101 -0
- package/corpus/templates/assets/app/routes/asset.$id.tsx +60 -36
- package/corpus/templates/assets/app/routes/brand-kits._index.tsx +19 -16
- package/corpus/templates/assets/app/routes/settings.tsx +58 -37
- package/corpus/templates/brain/app/i18n-data.ts +114 -0
- package/corpus/templates/brain/app/routes/_index.tsx +7 -4
- package/corpus/templates/brain/app/routes/ops.tsx +88 -60
- package/corpus/templates/brain/app/routes/search.tsx +97 -56
- package/corpus/templates/calendar/app/components/calendar/DeleteEventDialog.tsx +33 -21
- package/corpus/templates/calendar/app/components/calendar/EventDialog.tsx +25 -30
- package/corpus/templates/calendar/app/i18n/index.ts +3 -24
- package/corpus/templates/calendar/app/i18n-data.ts +61 -0
- package/corpus/templates/calendar/app/pages/Settings.tsx +23 -23
- package/corpus/templates/chat/app/i18n-data.ts +78 -0
- package/corpus/templates/chat/app/routes/database.tsx +3 -1
- package/corpus/templates/chat/app/routes/observability.tsx +3 -2
- package/corpus/templates/chat/app/routes/team.tsx +4 -2
- package/corpus/templates/clips/app/i18n/ar-SA.ts +17 -0
- package/corpus/templates/clips/app/i18n/de-DE.ts +17 -0
- package/corpus/templates/clips/app/i18n/en-US.ts +17 -0
- package/corpus/templates/clips/app/i18n/es-ES.ts +17 -0
- package/corpus/templates/clips/app/i18n/fr-FR.ts +17 -0
- package/corpus/templates/clips/app/i18n/hi-IN.ts +17 -0
- package/corpus/templates/clips/app/i18n/ja-JP.ts +17 -0
- package/corpus/templates/clips/app/i18n/ko-KR.ts +17 -0
- package/corpus/templates/clips/app/i18n/pt-BR.ts +17 -0
- package/corpus/templates/clips/app/i18n/zh-CN.ts +15 -0
- package/corpus/templates/clips/app/routes/_app.trash.tsx +33 -20
- package/corpus/templates/content/app/i18n-data.ts +100 -0
- package/corpus/templates/content/app/routes/_app.team.tsx +7 -6
- package/corpus/templates/design/app/i18n-data.ts +58 -0
- package/corpus/templates/design/app/pages/Present.tsx +4 -3
- package/corpus/templates/design/app/routes/team.tsx +3 -1
- package/corpus/templates/forms/app/i18n/ar-SA.ts +88 -0
- package/corpus/templates/forms/app/i18n/de-DE.ts +88 -0
- package/corpus/templates/forms/app/i18n/en-US.ts +88 -0
- package/corpus/templates/forms/app/i18n/es-ES.ts +90 -0
- package/corpus/templates/forms/app/i18n/fr-FR.ts +88 -0
- package/corpus/templates/forms/app/i18n/hi-IN.ts +88 -0
- package/corpus/templates/forms/app/i18n/ja-JP.ts +88 -0
- package/corpus/templates/forms/app/i18n/ko-KR.ts +88 -0
- package/corpus/templates/forms/app/i18n/pt-BR.ts +88 -0
- package/corpus/templates/forms/app/i18n/zh-CN.ts +88 -0
- package/corpus/templates/forms/app/pages/FormsListPage.tsx +92 -63
- package/corpus/templates/forms/app/pages/ResponsesPage.tsx +37 -20
- package/corpus/templates/forms/app/routes/_index.tsx +15 -14
- package/corpus/templates/macros/app/i18n/ar-SA.ts +22 -0
- package/corpus/templates/macros/app/i18n/de-DE.ts +22 -0
- package/corpus/templates/macros/app/i18n/en-US.ts +22 -0
- package/corpus/templates/macros/app/i18n/es-ES.ts +22 -0
- package/corpus/templates/macros/app/i18n/fr-FR.ts +22 -0
- package/corpus/templates/macros/app/i18n/hi-IN.ts +22 -0
- package/corpus/templates/macros/app/i18n/ja-JP.ts +22 -0
- package/corpus/templates/macros/app/i18n/ko-KR.ts +22 -0
- package/corpus/templates/macros/app/i18n/pt-BR.ts +22 -0
- package/corpus/templates/macros/app/i18n/zh-CN.ts +22 -0
- package/corpus/templates/macros/app/routes/analytics.tsx +54 -27
- package/corpus/templates/mail/app/components/layout/CommandPalette.tsx +34 -26
- package/corpus/templates/mail/app/i18n/ar-SA.ts +30 -0
- package/corpus/templates/mail/app/i18n/de-DE.ts +30 -0
- package/corpus/templates/mail/app/i18n/en-US.ts +30 -0
- package/corpus/templates/mail/app/i18n/es-ES.ts +30 -0
- package/corpus/templates/mail/app/i18n/fr-FR.ts +30 -0
- package/corpus/templates/mail/app/i18n/hi-IN.ts +30 -0
- package/corpus/templates/mail/app/i18n/ja-JP.ts +30 -0
- package/corpus/templates/mail/app/i18n/ko-KR.ts +30 -0
- package/corpus/templates/mail/app/i18n/pt-BR.ts +30 -0
- package/corpus/templates/mail/app/i18n/zh-CN.ts +30 -0
- package/corpus/templates/mail/app/pages/NotFound.tsx +6 -2
- package/corpus/templates/plan/app/components/plan/GuestModeBanner.tsx +4 -3
- package/corpus/templates/plan/app/i18n/ar-SA.ts +17 -0
- package/corpus/templates/plan/app/i18n/de-DE.ts +17 -0
- package/corpus/templates/plan/app/i18n/en-US.ts +17 -0
- package/corpus/templates/plan/app/i18n/es-ES.ts +17 -0
- package/corpus/templates/plan/app/i18n/fr-FR.ts +17 -0
- package/corpus/templates/plan/app/i18n/hi-IN.ts +17 -0
- package/corpus/templates/plan/app/i18n/ja-JP.ts +17 -0
- package/corpus/templates/plan/app/i18n/ko-KR.ts +17 -0
- package/corpus/templates/plan/app/i18n/pt-BR.ts +17 -0
- package/corpus/templates/plan/app/i18n/zh-CN.ts +17 -0
- package/corpus/templates/plan/app/pages/PlanChatPage.tsx +12 -13
- package/corpus/templates/slides/app/i18n/ar-SA.ts +11 -0
- package/corpus/templates/slides/app/i18n/de-DE.ts +11 -0
- package/corpus/templates/slides/app/i18n/en-US.ts +11 -0
- package/corpus/templates/slides/app/i18n/es-ES.ts +11 -0
- package/corpus/templates/slides/app/i18n/fr-FR.ts +11 -0
- package/corpus/templates/slides/app/i18n/hi-IN.ts +11 -0
- package/corpus/templates/slides/app/i18n/ja-JP.ts +11 -0
- package/corpus/templates/slides/app/i18n/ko-KR.ts +11 -0
- package/corpus/templates/slides/app/i18n/pt-BR.ts +11 -0
- package/corpus/templates/slides/app/i18n/zh-CN.ts +11 -0
- package/corpus/templates/slides/app/pages/DesignSystems.tsx +10 -9
- package/corpus/templates/slides/app/pages/NotFound.tsx +4 -2
- package/corpus/templates/videos/app/i18n/ar-SA.ts +14 -0
- package/corpus/templates/videos/app/i18n/de-DE.ts +14 -0
- package/corpus/templates/videos/app/i18n/en-US.ts +14 -0
- package/corpus/templates/videos/app/i18n/es-ES.ts +14 -0
- package/corpus/templates/videos/app/i18n/fr-FR.ts +14 -0
- package/corpus/templates/videos/app/i18n/hi-IN.ts +14 -0
- package/corpus/templates/videos/app/i18n/ja-JP.ts +14 -0
- package/corpus/templates/videos/app/i18n/ko-KR.ts +14 -0
- package/corpus/templates/videos/app/i18n/pt-BR.ts +14 -0
- package/corpus/templates/videos/app/i18n/zh-CN.ts +14 -0
- package/corpus/templates/videos/app/pages/DesignSystems.tsx +10 -9
- package/corpus/templates/videos/app/pages/NewComposition.tsx +9 -9
- package/corpus/templates/videos/app/pages/NotFound.tsx +4 -2
- package/dist/agent/run-store.d.ts +13 -0
- package/dist/agent/run-store.d.ts.map +1 -1
- package/dist/agent/run-store.js +13 -0
- package/dist/agent/run-store.js.map +1 -1
- package/dist/client/components/CodeRequiredDialog.d.ts.map +1 -1
- package/dist/client/components/CodeRequiredDialog.js +12 -9
- package/dist/client/components/CodeRequiredDialog.js.map +1 -1
- package/dist/client/extensions/EmbeddedExtension.d.ts.map +1 -1
- package/dist/client/extensions/EmbeddedExtension.js +4 -2
- package/dist/client/extensions/EmbeddedExtension.js.map +1 -1
- package/dist/client/extensions/ExtensionEditor.d.ts.map +1 -1
- package/dist/client/extensions/ExtensionEditor.js +22 -12
- package/dist/client/extensions/ExtensionEditor.js.map +1 -1
- package/dist/client/extensions/ExtensionSlot.d.ts.map +1 -1
- package/dist/client/extensions/ExtensionSlot.js +9 -7
- package/dist/client/extensions/ExtensionSlot.js.map +1 -1
- package/dist/client/extensions/ExtensionsListPage.d.ts.map +1 -1
- package/dist/client/extensions/ExtensionsListPage.js +28 -15
- package/dist/client/extensions/ExtensionsListPage.js.map +1 -1
- package/dist/client/i18n.d.ts +1 -1
- package/dist/client/i18n.d.ts.map +1 -1
- package/dist/client/i18n.js +68 -2
- package/dist/client/i18n.js.map +1 -1
- package/dist/client/integrations/IntegrationCard.d.ts.map +1 -1
- package/dist/client/integrations/IntegrationCard.js +8 -4
- package/dist/client/integrations/IntegrationCard.js.map +1 -1
- package/dist/client/integrations/IntegrationsPanel.d.ts.map +1 -1
- package/dist/client/integrations/IntegrationsPanel.js +15 -8
- package/dist/client/integrations/IntegrationsPanel.js.map +1 -1
- package/dist/client/observability/ObservabilityDashboard.d.ts.map +1 -1
- package/dist/client/observability/ObservabilityDashboard.js +40 -17
- package/dist/client/observability/ObservabilityDashboard.js.map +1 -1
- package/dist/client/org/RequireActiveOrg.d.ts.map +1 -1
- package/dist/client/org/RequireActiveOrg.js +14 -8
- package/dist/client/org/RequireActiveOrg.js.map +1 -1
- package/dist/client/org/TeamPage.d.ts.map +1 -1
- package/dist/client/org/TeamPage.js +21 -14
- package/dist/client/org/TeamPage.js.map +1 -1
- package/dist/client/progress/RunsTray.d.ts.map +1 -1
- package/dist/client/progress/RunsTray.js +49 -30
- package/dist/client/progress/RunsTray.js.map +1 -1
- package/dist/extensions/routes.d.ts.map +1 -1
- package/dist/extensions/routes.js +38 -24
- package/dist/extensions/routes.js.map +1 -1
- package/dist/templates/default/app/i18n/ar-SA.ts +356 -0
- package/dist/templates/default/app/i18n/de-DE.ts +332 -0
- package/dist/templates/default/app/i18n/en-US.ts +303 -0
- package/dist/templates/default/app/i18n/es-ES.ts +339 -0
- package/dist/templates/default/app/i18n/fr-FR.ts +339 -0
- package/dist/templates/default/app/i18n/hi-IN.ts +332 -0
- package/dist/templates/default/app/i18n/index.ts +18 -0
- package/dist/templates/default/app/i18n/ja-JP.ts +326 -0
- package/dist/templates/default/app/i18n/ko-KR.ts +326 -0
- package/dist/templates/default/app/i18n/pt-BR.ts +339 -0
- package/dist/templates/default/app/i18n/zh-CN.ts +324 -0
- package/dist/templates/default/app/root.tsx +109 -6
- package/dist/templates/workspace-core/.agents/skills/extensions/references/api.md +34 -12
- package/docs/content/extensions.md +16 -0
- package/docs/content/locales/ar-SA/a2a-protocol.md +392 -0
- package/docs/content/locales/ar-SA/actions.md +583 -0
- package/docs/content/locales/ar-SA/agent-mentions.md +164 -0
- package/docs/content/locales/ar-SA/agent-surfaces.md +397 -0
- package/docs/content/locales/ar-SA/agent-teams.md +171 -0
- package/docs/content/locales/ar-SA/agent-web-surfaces.md +161 -0
- package/docs/content/locales/ar-SA/audit-log.md +111 -0
- package/docs/content/locales/ar-SA/authentication.md +332 -0
- package/docs/content/locales/ar-SA/automations.md +268 -0
- package/docs/content/locales/ar-SA/blueprint-installer.md +83 -0
- package/docs/content/locales/ar-SA/cli-adapters.md +129 -0
- package/docs/content/locales/ar-SA/client.md +398 -0
- package/docs/content/locales/ar-SA/cloneable-saas.md +114 -0
- package/docs/content/locales/ar-SA/code-agents-ui.md +436 -0
- package/docs/content/locales/ar-SA/components.md +368 -0
- package/docs/content/locales/ar-SA/context-awareness.md +373 -0
- package/docs/content/locales/ar-SA/creating-templates.md +411 -0
- package/docs/content/locales/ar-SA/cross-app-sso.md +185 -0
- package/docs/content/locales/ar-SA/database.md +183 -0
- package/docs/content/locales/ar-SA/deployment.md +349 -0
- package/docs/content/locales/ar-SA/dispatch.md +146 -0
- package/docs/content/locales/ar-SA/drop-in-agent.md +260 -0
- package/docs/content/locales/ar-SA/durable-resume.md +65 -0
- package/docs/content/locales/ar-SA/embedding-sdk.md +597 -0
- package/docs/content/locales/ar-SA/evals.md +155 -0
- package/docs/content/locales/ar-SA/extensions.md +360 -0
- package/docs/content/locales/ar-SA/external-agents.md +619 -0
- package/docs/content/locales/ar-SA/faq.md +142 -0
- package/docs/content/locales/ar-SA/file-uploads.md +122 -0
- package/docs/content/locales/ar-SA/frames.md +153 -0
- package/docs/content/locales/ar-SA/getting-started.md +199 -0
- package/docs/content/locales/ar-SA/harness-agents.md +349 -0
- package/docs/content/locales/ar-SA/human-approval.md +86 -0
- package/docs/content/locales/ar-SA/internationalization.md +68 -25
- package/docs/content/locales/ar-SA/key-concepts.md +312 -0
- package/docs/content/locales/ar-SA/local-file-mode.md +433 -0
- package/docs/content/locales/ar-SA/mcp-apps.md +147 -0
- package/docs/content/locales/ar-SA/mcp-clients.md +330 -0
- package/docs/content/locales/ar-SA/mcp-protocol.md +279 -0
- package/docs/content/locales/ar-SA/messaging.md +461 -0
- package/docs/content/locales/ar-SA/migration-workbench.md +33 -0
- package/docs/content/locales/ar-SA/multi-app-workspace.md +312 -0
- package/docs/content/locales/ar-SA/multi-tenancy.md +52 -0
- package/docs/content/locales/ar-SA/native-chat-ui.md +321 -0
- package/docs/content/locales/ar-SA/notifications.md +231 -0
- package/docs/content/locales/ar-SA/observability.md +294 -0
- package/docs/content/locales/ar-SA/observational-memory.md +77 -0
- package/docs/content/locales/ar-SA/onboarding.md +216 -0
- package/docs/content/locales/ar-SA/plan-plugin.md +200 -0
- package/docs/content/locales/ar-SA/pr-visual-recap.md +384 -0
- package/docs/content/locales/ar-SA/processors.md +106 -0
- package/docs/content/locales/ar-SA/progress.md +199 -0
- package/docs/content/locales/ar-SA/pure-agent-apps.md +39 -0
- package/docs/content/locales/ar-SA/real-time-collaboration.md +676 -0
- package/docs/content/locales/ar-SA/recurring-jobs.md +142 -0
- package/docs/content/locales/ar-SA/routing.md +79 -0
- package/docs/content/locales/ar-SA/sandbox-adapters.md +227 -0
- package/docs/content/locales/ar-SA/security.md +330 -0
- package/docs/content/locales/ar-SA/server.md +253 -0
- package/docs/content/locales/ar-SA/sharing.md +219 -0
- package/docs/content/locales/ar-SA/skills-guide.md +281 -0
- package/docs/content/locales/ar-SA/template-analytics.md +259 -0
- package/docs/content/locales/ar-SA/template-assets.md +303 -0
- package/docs/content/locales/ar-SA/template-brain.md +324 -0
- package/docs/content/locales/ar-SA/template-calendar.md +194 -0
- package/docs/content/locales/ar-SA/template-chat.md +129 -0
- package/docs/content/locales/ar-SA/template-clips.md +368 -0
- package/docs/content/locales/ar-SA/template-content.md +402 -0
- package/docs/content/locales/ar-SA/template-design.md +173 -0
- package/docs/content/locales/ar-SA/template-dispatch.md +220 -0
- package/docs/content/locales/ar-SA/template-forms.md +178 -0
- package/docs/content/locales/ar-SA/template-mail.md +239 -0
- package/docs/content/locales/ar-SA/template-plan.md +815 -0
- package/docs/content/locales/ar-SA/template-slides.md +293 -0
- package/docs/content/locales/ar-SA/template-videos.md +222 -0
- package/docs/content/locales/ar-SA/tracking.md +236 -0
- package/docs/content/locales/ar-SA/using-your-agent.md +71 -0
- package/docs/content/locales/ar-SA/voice-input.md +81 -0
- package/docs/content/locales/ar-SA/what-is-agent-native.md +202 -0
- package/docs/content/locales/ar-SA/workspace-connections.md +321 -0
- package/docs/content/locales/ar-SA/workspace-management.md +175 -0
- package/docs/content/locales/ar-SA/workspace.md +323 -0
- package/docs/content/locales/ar-SA/writing-agent-instructions.md +173 -0
- package/docs/content/locales/de-DE/a2a-protocol.md +392 -0
- package/docs/content/locales/de-DE/actions.md +583 -0
- package/docs/content/locales/de-DE/agent-mentions.md +164 -0
- package/docs/content/locales/de-DE/agent-surfaces.md +397 -0
- package/docs/content/locales/de-DE/agent-teams.md +171 -0
- package/docs/content/locales/de-DE/agent-web-surfaces.md +161 -0
- package/docs/content/locales/de-DE/audit-log.md +111 -0
- package/docs/content/locales/de-DE/authentication.md +332 -0
- package/docs/content/locales/de-DE/automations.md +268 -0
- package/docs/content/locales/de-DE/blueprint-installer.md +83 -0
- package/docs/content/locales/de-DE/cli-adapters.md +129 -0
- package/docs/content/locales/de-DE/client.md +398 -0
- package/docs/content/locales/de-DE/cloneable-saas.md +114 -0
- package/docs/content/locales/de-DE/code-agents-ui.md +436 -0
- package/docs/content/locales/de-DE/components.md +368 -0
- package/docs/content/locales/de-DE/context-awareness.md +373 -0
- package/docs/content/locales/de-DE/creating-templates.md +411 -0
- package/docs/content/locales/de-DE/cross-app-sso.md +185 -0
- package/docs/content/locales/de-DE/database.md +183 -0
- package/docs/content/locales/de-DE/deployment.md +349 -0
- package/docs/content/locales/de-DE/dispatch.md +146 -0
- package/docs/content/locales/de-DE/drop-in-agent.md +260 -0
- package/docs/content/locales/de-DE/durable-resume.md +65 -0
- package/docs/content/locales/de-DE/embedding-sdk.md +597 -0
- package/docs/content/locales/de-DE/evals.md +155 -0
- package/docs/content/locales/de-DE/extensions.md +360 -0
- package/docs/content/locales/de-DE/external-agents.md +619 -0
- package/docs/content/locales/de-DE/faq.md +142 -0
- package/docs/content/locales/de-DE/file-uploads.md +122 -0
- package/docs/content/locales/de-DE/frames.md +153 -0
- package/docs/content/locales/de-DE/getting-started.md +199 -0
- package/docs/content/locales/de-DE/harness-agents.md +349 -0
- package/docs/content/locales/de-DE/human-approval.md +86 -0
- package/docs/content/locales/de-DE/internationalization.md +65 -22
- package/docs/content/locales/de-DE/key-concepts.md +312 -0
- package/docs/content/locales/de-DE/local-file-mode.md +433 -0
- package/docs/content/locales/de-DE/mcp-apps.md +147 -0
- package/docs/content/locales/de-DE/mcp-clients.md +330 -0
- package/docs/content/locales/de-DE/mcp-protocol.md +279 -0
- package/docs/content/locales/de-DE/messaging.md +461 -0
- package/docs/content/locales/de-DE/migration-workbench.md +33 -0
- package/docs/content/locales/de-DE/multi-app-workspace.md +312 -0
- package/docs/content/locales/de-DE/multi-tenancy.md +52 -0
- package/docs/content/locales/de-DE/native-chat-ui.md +321 -0
- package/docs/content/locales/de-DE/notifications.md +231 -0
- package/docs/content/locales/de-DE/observability.md +294 -0
- package/docs/content/locales/de-DE/observational-memory.md +77 -0
- package/docs/content/locales/de-DE/onboarding.md +216 -0
- package/docs/content/locales/de-DE/plan-plugin.md +200 -0
- package/docs/content/locales/de-DE/pr-visual-recap.md +384 -0
- package/docs/content/locales/de-DE/processors.md +106 -0
- package/docs/content/locales/de-DE/progress.md +199 -0
- package/docs/content/locales/de-DE/pure-agent-apps.md +39 -0
- package/docs/content/locales/de-DE/real-time-collaboration.md +676 -0
- package/docs/content/locales/de-DE/recurring-jobs.md +142 -0
- package/docs/content/locales/de-DE/routing.md +79 -0
- package/docs/content/locales/de-DE/sandbox-adapters.md +227 -0
- package/docs/content/locales/de-DE/security.md +330 -0
- package/docs/content/locales/de-DE/server.md +253 -0
- package/docs/content/locales/de-DE/sharing.md +219 -0
- package/docs/content/locales/de-DE/skills-guide.md +281 -0
- package/docs/content/locales/de-DE/template-analytics.md +259 -0
- package/docs/content/locales/de-DE/template-assets.md +303 -0
- package/docs/content/locales/de-DE/template-brain.md +324 -0
- package/docs/content/locales/de-DE/template-calendar.md +194 -0
- package/docs/content/locales/de-DE/template-chat.md +129 -0
- package/docs/content/locales/de-DE/template-clips.md +368 -0
- package/docs/content/locales/de-DE/template-content.md +402 -0
- package/docs/content/locales/de-DE/template-design.md +173 -0
- package/docs/content/locales/de-DE/template-dispatch.md +220 -0
- package/docs/content/locales/de-DE/template-forms.md +178 -0
- package/docs/content/locales/de-DE/template-mail.md +239 -0
- package/docs/content/locales/de-DE/template-plan.md +814 -0
- package/docs/content/locales/de-DE/template-slides.md +293 -0
- package/docs/content/locales/de-DE/template-videos.md +222 -0
- package/docs/content/locales/de-DE/tracking.md +236 -0
- package/docs/content/locales/de-DE/using-your-agent.md +71 -0
- package/docs/content/locales/de-DE/voice-input.md +81 -0
- package/docs/content/locales/de-DE/what-is-agent-native.md +202 -0
- package/docs/content/locales/de-DE/workspace-connections.md +321 -0
- package/docs/content/locales/de-DE/workspace-management.md +175 -0
- package/docs/content/locales/de-DE/workspace.md +323 -0
- package/docs/content/locales/de-DE/writing-agent-instructions.md +173 -0
- package/docs/content/locales/es-ES/a2a-protocol.md +392 -0
- package/docs/content/locales/es-ES/actions.md +583 -0
- package/docs/content/locales/es-ES/agent-mentions.md +164 -0
- package/docs/content/locales/es-ES/agent-surfaces.md +397 -0
- package/docs/content/locales/es-ES/agent-teams.md +171 -0
- package/docs/content/locales/es-ES/agent-web-surfaces.md +161 -0
- package/docs/content/locales/es-ES/audit-log.md +111 -0
- package/docs/content/locales/es-ES/authentication.md +332 -0
- package/docs/content/locales/es-ES/automations.md +268 -0
- package/docs/content/locales/es-ES/blueprint-installer.md +83 -0
- package/docs/content/locales/es-ES/cli-adapters.md +129 -0
- package/docs/content/locales/es-ES/client.md +398 -0
- package/docs/content/locales/es-ES/cloneable-saas.md +114 -0
- package/docs/content/locales/es-ES/code-agents-ui.md +436 -0
- package/docs/content/locales/es-ES/components.md +368 -0
- package/docs/content/locales/es-ES/context-awareness.md +373 -0
- package/docs/content/locales/es-ES/creating-templates.md +411 -0
- package/docs/content/locales/es-ES/cross-app-sso.md +185 -0
- package/docs/content/locales/es-ES/database.md +183 -0
- package/docs/content/locales/es-ES/deployment.md +349 -0
- package/docs/content/locales/es-ES/dispatch.md +146 -0
- package/docs/content/locales/es-ES/drop-in-agent.md +260 -0
- package/docs/content/locales/es-ES/durable-resume.md +65 -0
- package/docs/content/locales/es-ES/embedding-sdk.md +597 -0
- package/docs/content/locales/es-ES/evals.md +155 -0
- package/docs/content/locales/es-ES/extensions.md +360 -0
- package/docs/content/locales/es-ES/external-agents.md +619 -0
- package/docs/content/locales/es-ES/faq.md +142 -0
- package/docs/content/locales/es-ES/file-uploads.md +122 -0
- package/docs/content/locales/es-ES/frames.md +153 -0
- package/docs/content/locales/es-ES/getting-started.md +199 -0
- package/docs/content/locales/es-ES/harness-agents.md +349 -0
- package/docs/content/locales/es-ES/human-approval.md +86 -0
- package/docs/content/locales/es-ES/internationalization.md +67 -24
- package/docs/content/locales/es-ES/key-concepts.md +312 -0
- package/docs/content/locales/es-ES/local-file-mode.md +433 -0
- package/docs/content/locales/es-ES/mcp-apps.md +147 -0
- package/docs/content/locales/es-ES/mcp-clients.md +330 -0
- package/docs/content/locales/es-ES/mcp-protocol.md +279 -0
- package/docs/content/locales/es-ES/messaging.md +461 -0
- package/docs/content/locales/es-ES/migration-workbench.md +33 -0
- package/docs/content/locales/es-ES/multi-app-workspace.md +312 -0
- package/docs/content/locales/es-ES/multi-tenancy.md +52 -0
- package/docs/content/locales/es-ES/native-chat-ui.md +321 -0
- package/docs/content/locales/es-ES/notifications.md +231 -0
- package/docs/content/locales/es-ES/observability.md +294 -0
- package/docs/content/locales/es-ES/observational-memory.md +77 -0
- package/docs/content/locales/es-ES/onboarding.md +216 -0
- package/docs/content/locales/es-ES/plan-plugin.md +200 -0
- package/docs/content/locales/es-ES/pr-visual-recap.md +384 -0
- package/docs/content/locales/es-ES/processors.md +106 -0
- package/docs/content/locales/es-ES/progress.md +199 -0
- package/docs/content/locales/es-ES/pure-agent-apps.md +39 -0
- package/docs/content/locales/es-ES/real-time-collaboration.md +676 -0
- package/docs/content/locales/es-ES/recurring-jobs.md +142 -0
- package/docs/content/locales/es-ES/routing.md +79 -0
- package/docs/content/locales/es-ES/sandbox-adapters.md +227 -0
- package/docs/content/locales/es-ES/security.md +330 -0
- package/docs/content/locales/es-ES/server.md +253 -0
- package/docs/content/locales/es-ES/sharing.md +219 -0
- package/docs/content/locales/es-ES/skills-guide.md +281 -0
- package/docs/content/locales/es-ES/template-analytics.md +259 -0
- package/docs/content/locales/es-ES/template-assets.md +303 -0
- package/docs/content/locales/es-ES/template-brain.md +324 -0
- package/docs/content/locales/es-ES/template-calendar.md +194 -0
- package/docs/content/locales/es-ES/template-chat.md +129 -0
- package/docs/content/locales/es-ES/template-clips.md +368 -0
- package/docs/content/locales/es-ES/template-content.md +402 -0
- package/docs/content/locales/es-ES/template-design.md +173 -0
- package/docs/content/locales/es-ES/template-dispatch.md +220 -0
- package/docs/content/locales/es-ES/template-forms.md +178 -0
- package/docs/content/locales/es-ES/template-mail.md +239 -0
- package/docs/content/locales/es-ES/template-plan.md +815 -0
- package/docs/content/locales/es-ES/template-slides.md +293 -0
- package/docs/content/locales/es-ES/template-videos.md +222 -0
- package/docs/content/locales/es-ES/tracking.md +236 -0
- package/docs/content/locales/es-ES/using-your-agent.md +71 -0
- package/docs/content/locales/es-ES/voice-input.md +81 -0
- package/docs/content/locales/es-ES/what-is-agent-native.md +202 -0
- package/docs/content/locales/es-ES/workspace-connections.md +321 -0
- package/docs/content/locales/es-ES/workspace-management.md +175 -0
- package/docs/content/locales/es-ES/workspace.md +323 -0
- package/docs/content/locales/es-ES/writing-agent-instructions.md +173 -0
- package/docs/content/locales/fr-FR/a2a-protocol.md +392 -0
- package/docs/content/locales/fr-FR/actions.md +583 -0
- package/docs/content/locales/fr-FR/agent-mentions.md +164 -0
- package/docs/content/locales/fr-FR/agent-surfaces.md +397 -0
- package/docs/content/locales/fr-FR/agent-teams.md +171 -0
- package/docs/content/locales/fr-FR/agent-web-surfaces.md +161 -0
- package/docs/content/locales/fr-FR/audit-log.md +111 -0
- package/docs/content/locales/fr-FR/authentication.md +332 -0
- package/docs/content/locales/fr-FR/automations.md +268 -0
- package/docs/content/locales/fr-FR/blueprint-installer.md +83 -0
- package/docs/content/locales/fr-FR/cli-adapters.md +129 -0
- package/docs/content/locales/fr-FR/client.md +398 -0
- package/docs/content/locales/fr-FR/cloneable-saas.md +114 -0
- package/docs/content/locales/fr-FR/code-agents-ui.md +436 -0
- package/docs/content/locales/fr-FR/components.md +368 -0
- package/docs/content/locales/fr-FR/context-awareness.md +373 -0
- package/docs/content/locales/fr-FR/creating-templates.md +411 -0
- package/docs/content/locales/fr-FR/cross-app-sso.md +185 -0
- package/docs/content/locales/fr-FR/database.md +183 -0
- package/docs/content/locales/fr-FR/deployment.md +349 -0
- package/docs/content/locales/fr-FR/dispatch.md +146 -0
- package/docs/content/locales/fr-FR/drop-in-agent.md +260 -0
- package/docs/content/locales/fr-FR/durable-resume.md +65 -0
- package/docs/content/locales/fr-FR/embedding-sdk.md +597 -0
- package/docs/content/locales/fr-FR/evals.md +155 -0
- package/docs/content/locales/fr-FR/extensions.md +360 -0
- package/docs/content/locales/fr-FR/external-agents.md +619 -0
- package/docs/content/locales/fr-FR/faq.md +142 -0
- package/docs/content/locales/fr-FR/file-uploads.md +122 -0
- package/docs/content/locales/fr-FR/frames.md +153 -0
- package/docs/content/locales/fr-FR/getting-started.md +199 -0
- package/docs/content/locales/fr-FR/harness-agents.md +349 -0
- package/docs/content/locales/fr-FR/human-approval.md +86 -0
- package/docs/content/locales/fr-FR/internationalization.md +67 -24
- package/docs/content/locales/fr-FR/key-concepts.md +312 -0
- package/docs/content/locales/fr-FR/local-file-mode.md +433 -0
- package/docs/content/locales/fr-FR/mcp-apps.md +147 -0
- package/docs/content/locales/fr-FR/mcp-clients.md +330 -0
- package/docs/content/locales/fr-FR/mcp-protocol.md +279 -0
- package/docs/content/locales/fr-FR/messaging.md +461 -0
- package/docs/content/locales/fr-FR/migration-workbench.md +33 -0
- package/docs/content/locales/fr-FR/multi-app-workspace.md +312 -0
- package/docs/content/locales/fr-FR/multi-tenancy.md +52 -0
- package/docs/content/locales/fr-FR/native-chat-ui.md +321 -0
- package/docs/content/locales/fr-FR/notifications.md +231 -0
- package/docs/content/locales/fr-FR/observability.md +294 -0
- package/docs/content/locales/fr-FR/observational-memory.md +77 -0
- package/docs/content/locales/fr-FR/onboarding.md +216 -0
- package/docs/content/locales/fr-FR/plan-plugin.md +200 -0
- package/docs/content/locales/fr-FR/pr-visual-recap.md +384 -0
- package/docs/content/locales/fr-FR/processors.md +106 -0
- package/docs/content/locales/fr-FR/progress.md +199 -0
- package/docs/content/locales/fr-FR/pure-agent-apps.md +39 -0
- package/docs/content/locales/fr-FR/real-time-collaboration.md +676 -0
- package/docs/content/locales/fr-FR/recurring-jobs.md +142 -0
- package/docs/content/locales/fr-FR/routing.md +79 -0
- package/docs/content/locales/fr-FR/sandbox-adapters.md +227 -0
- package/docs/content/locales/fr-FR/security.md +330 -0
- package/docs/content/locales/fr-FR/server.md +253 -0
- package/docs/content/locales/fr-FR/sharing.md +219 -0
- package/docs/content/locales/fr-FR/skills-guide.md +281 -0
- package/docs/content/locales/fr-FR/template-analytics.md +259 -0
- package/docs/content/locales/fr-FR/template-assets.md +303 -0
- package/docs/content/locales/fr-FR/template-brain.md +324 -0
- package/docs/content/locales/fr-FR/template-calendar.md +194 -0
- package/docs/content/locales/fr-FR/template-chat.md +129 -0
- package/docs/content/locales/fr-FR/template-clips.md +368 -0
- package/docs/content/locales/fr-FR/template-content.md +402 -0
- package/docs/content/locales/fr-FR/template-design.md +173 -0
- package/docs/content/locales/fr-FR/template-dispatch.md +220 -0
- package/docs/content/locales/fr-FR/template-forms.md +178 -0
- package/docs/content/locales/fr-FR/template-mail.md +239 -0
- package/docs/content/locales/fr-FR/template-plan.md +815 -0
- package/docs/content/locales/fr-FR/template-slides.md +293 -0
- package/docs/content/locales/fr-FR/template-videos.md +222 -0
- package/docs/content/locales/fr-FR/tracking.md +236 -0
- package/docs/content/locales/fr-FR/using-your-agent.md +71 -0
- package/docs/content/locales/fr-FR/voice-input.md +81 -0
- package/docs/content/locales/fr-FR/what-is-agent-native.md +202 -0
- package/docs/content/locales/fr-FR/workspace-connections.md +321 -0
- package/docs/content/locales/fr-FR/workspace-management.md +175 -0
- package/docs/content/locales/fr-FR/workspace.md +323 -0
- package/docs/content/locales/fr-FR/writing-agent-instructions.md +173 -0
- package/docs/content/locales/hi-IN/a2a-protocol.md +392 -0
- package/docs/content/locales/hi-IN/actions.md +583 -0
- package/docs/content/locales/hi-IN/agent-mentions.md +164 -0
- package/docs/content/locales/hi-IN/agent-surfaces.md +397 -0
- package/docs/content/locales/hi-IN/agent-teams.md +171 -0
- package/docs/content/locales/hi-IN/agent-web-surfaces.md +161 -0
- package/docs/content/locales/hi-IN/audit-log.md +111 -0
- package/docs/content/locales/hi-IN/authentication.md +332 -0
- package/docs/content/locales/hi-IN/automations.md +268 -0
- package/docs/content/locales/hi-IN/blueprint-installer.md +83 -0
- package/docs/content/locales/hi-IN/cli-adapters.md +129 -0
- package/docs/content/locales/hi-IN/client.md +398 -0
- package/docs/content/locales/hi-IN/cloneable-saas.md +114 -0
- package/docs/content/locales/hi-IN/code-agents-ui.md +436 -0
- package/docs/content/locales/hi-IN/components.md +368 -0
- package/docs/content/locales/hi-IN/context-awareness.md +373 -0
- package/docs/content/locales/hi-IN/creating-templates.md +411 -0
- package/docs/content/locales/hi-IN/cross-app-sso.md +185 -0
- package/docs/content/locales/hi-IN/database.md +183 -0
- package/docs/content/locales/hi-IN/deployment.md +349 -0
- package/docs/content/locales/hi-IN/dispatch.md +146 -0
- package/docs/content/locales/hi-IN/drop-in-agent.md +260 -0
- package/docs/content/locales/hi-IN/durable-resume.md +65 -0
- package/docs/content/locales/hi-IN/embedding-sdk.md +597 -0
- package/docs/content/locales/hi-IN/evals.md +155 -0
- package/docs/content/locales/hi-IN/extensions.md +360 -0
- package/docs/content/locales/hi-IN/external-agents.md +619 -0
- package/docs/content/locales/hi-IN/faq.md +142 -0
- package/docs/content/locales/hi-IN/file-uploads.md +122 -0
- package/docs/content/locales/hi-IN/frames.md +153 -0
- package/docs/content/locales/hi-IN/getting-started.md +199 -0
- package/docs/content/locales/hi-IN/harness-agents.md +349 -0
- package/docs/content/locales/hi-IN/human-approval.md +86 -0
- package/docs/content/locales/hi-IN/internationalization.md +70 -27
- package/docs/content/locales/hi-IN/key-concepts.md +312 -0
- package/docs/content/locales/hi-IN/local-file-mode.md +433 -0
- package/docs/content/locales/hi-IN/mcp-apps.md +147 -0
- package/docs/content/locales/hi-IN/mcp-clients.md +330 -0
- package/docs/content/locales/hi-IN/mcp-protocol.md +279 -0
- package/docs/content/locales/hi-IN/messaging.md +461 -0
- package/docs/content/locales/hi-IN/migration-workbench.md +33 -0
- package/docs/content/locales/hi-IN/multi-app-workspace.md +312 -0
- package/docs/content/locales/hi-IN/multi-tenancy.md +52 -0
- package/docs/content/locales/hi-IN/native-chat-ui.md +321 -0
- package/docs/content/locales/hi-IN/notifications.md +231 -0
- package/docs/content/locales/hi-IN/observability.md +294 -0
- package/docs/content/locales/hi-IN/observational-memory.md +77 -0
- package/docs/content/locales/hi-IN/onboarding.md +216 -0
- package/docs/content/locales/hi-IN/plan-plugin.md +200 -0
- package/docs/content/locales/hi-IN/pr-visual-recap.md +384 -0
- package/docs/content/locales/hi-IN/processors.md +106 -0
- package/docs/content/locales/hi-IN/progress.md +199 -0
- package/docs/content/locales/hi-IN/pure-agent-apps.md +39 -0
- package/docs/content/locales/hi-IN/real-time-collaboration.md +676 -0
- package/docs/content/locales/hi-IN/recurring-jobs.md +142 -0
- package/docs/content/locales/hi-IN/routing.md +79 -0
- package/docs/content/locales/hi-IN/sandbox-adapters.md +227 -0
- package/docs/content/locales/hi-IN/security.md +330 -0
- package/docs/content/locales/hi-IN/server.md +253 -0
- package/docs/content/locales/hi-IN/sharing.md +219 -0
- package/docs/content/locales/hi-IN/skills-guide.md +281 -0
- package/docs/content/locales/hi-IN/template-analytics.md +259 -0
- package/docs/content/locales/hi-IN/template-assets.md +303 -0
- package/docs/content/locales/hi-IN/template-brain.md +324 -0
- package/docs/content/locales/hi-IN/template-calendar.md +194 -0
- package/docs/content/locales/hi-IN/template-chat.md +129 -0
- package/docs/content/locales/hi-IN/template-clips.md +368 -0
- package/docs/content/locales/hi-IN/template-content.md +402 -0
- package/docs/content/locales/hi-IN/template-design.md +173 -0
- package/docs/content/locales/hi-IN/template-dispatch.md +220 -0
- package/docs/content/locales/hi-IN/template-forms.md +178 -0
- package/docs/content/locales/hi-IN/template-mail.md +239 -0
- package/docs/content/locales/hi-IN/template-plan.md +815 -0
- package/docs/content/locales/hi-IN/template-slides.md +293 -0
- package/docs/content/locales/hi-IN/template-videos.md +222 -0
- package/docs/content/locales/hi-IN/tracking.md +236 -0
- package/docs/content/locales/hi-IN/using-your-agent.md +71 -0
- package/docs/content/locales/hi-IN/voice-input.md +81 -0
- package/docs/content/locales/hi-IN/what-is-agent-native.md +202 -0
- package/docs/content/locales/hi-IN/workspace-connections.md +321 -0
- package/docs/content/locales/hi-IN/workspace-management.md +175 -0
- package/docs/content/locales/hi-IN/workspace.md +323 -0
- package/docs/content/locales/hi-IN/writing-agent-instructions.md +173 -0
- package/docs/content/locales/ja-JP/a2a-protocol.md +392 -0
- package/docs/content/locales/ja-JP/actions.md +583 -0
- package/docs/content/locales/ja-JP/agent-mentions.md +164 -0
- package/docs/content/locales/ja-JP/agent-surfaces.md +397 -0
- package/docs/content/locales/ja-JP/agent-teams.md +171 -0
- package/docs/content/locales/ja-JP/agent-web-surfaces.md +161 -0
- package/docs/content/locales/ja-JP/audit-log.md +111 -0
- package/docs/content/locales/ja-JP/authentication.md +332 -0
- package/docs/content/locales/ja-JP/automations.md +268 -0
- package/docs/content/locales/ja-JP/blueprint-installer.md +83 -0
- package/docs/content/locales/ja-JP/cli-adapters.md +129 -0
- package/docs/content/locales/ja-JP/client.md +398 -0
- package/docs/content/locales/ja-JP/cloneable-saas.md +114 -0
- package/docs/content/locales/ja-JP/code-agents-ui.md +436 -0
- package/docs/content/locales/ja-JP/components.md +368 -0
- package/docs/content/locales/ja-JP/context-awareness.md +373 -0
- package/docs/content/locales/ja-JP/creating-templates.md +411 -0
- package/docs/content/locales/ja-JP/cross-app-sso.md +185 -0
- package/docs/content/locales/ja-JP/database.md +183 -0
- package/docs/content/locales/ja-JP/deployment.md +349 -0
- package/docs/content/locales/ja-JP/dispatch.md +146 -0
- package/docs/content/locales/ja-JP/drop-in-agent.md +260 -0
- package/docs/content/locales/ja-JP/durable-resume.md +65 -0
- package/docs/content/locales/ja-JP/embedding-sdk.md +597 -0
- package/docs/content/locales/ja-JP/evals.md +155 -0
- package/docs/content/locales/ja-JP/extensions.md +360 -0
- package/docs/content/locales/ja-JP/external-agents.md +619 -0
- package/docs/content/locales/ja-JP/faq.md +142 -0
- package/docs/content/locales/ja-JP/file-uploads.md +122 -0
- package/docs/content/locales/ja-JP/frames.md +153 -0
- package/docs/content/locales/ja-JP/getting-started.md +199 -0
- package/docs/content/locales/ja-JP/harness-agents.md +349 -0
- package/docs/content/locales/ja-JP/human-approval.md +86 -0
- package/docs/content/locales/ja-JP/internationalization.md +54 -23
- package/docs/content/locales/ja-JP/key-concepts.md +312 -0
- package/docs/content/locales/ja-JP/local-file-mode.md +433 -0
- package/docs/content/locales/ja-JP/mcp-apps.md +147 -0
- package/docs/content/locales/ja-JP/mcp-clients.md +330 -0
- package/docs/content/locales/ja-JP/mcp-protocol.md +279 -0
- package/docs/content/locales/ja-JP/messaging.md +461 -0
- package/docs/content/locales/ja-JP/migration-workbench.md +33 -0
- package/docs/content/locales/ja-JP/multi-app-workspace.md +312 -0
- package/docs/content/locales/ja-JP/multi-tenancy.md +52 -0
- package/docs/content/locales/ja-JP/native-chat-ui.md +321 -0
- package/docs/content/locales/ja-JP/notifications.md +231 -0
- package/docs/content/locales/ja-JP/observability.md +294 -0
- package/docs/content/locales/ja-JP/observational-memory.md +77 -0
- package/docs/content/locales/ja-JP/onboarding.md +216 -0
- package/docs/content/locales/ja-JP/plan-plugin.md +200 -0
- package/docs/content/locales/ja-JP/pr-visual-recap.md +384 -0
- package/docs/content/locales/ja-JP/processors.md +106 -0
- package/docs/content/locales/ja-JP/progress.md +199 -0
- package/docs/content/locales/ja-JP/pure-agent-apps.md +39 -0
- package/docs/content/locales/ja-JP/real-time-collaboration.md +676 -0
- package/docs/content/locales/ja-JP/recurring-jobs.md +142 -0
- package/docs/content/locales/ja-JP/routing.md +79 -0
- package/docs/content/locales/ja-JP/sandbox-adapters.md +227 -0
- package/docs/content/locales/ja-JP/security.md +330 -0
- package/docs/content/locales/ja-JP/server.md +253 -0
- package/docs/content/locales/ja-JP/sharing.md +219 -0
- package/docs/content/locales/ja-JP/skills-guide.md +281 -0
- package/docs/content/locales/ja-JP/template-analytics.md +259 -0
- package/docs/content/locales/ja-JP/template-assets.md +303 -0
- package/docs/content/locales/ja-JP/template-brain.md +324 -0
- package/docs/content/locales/ja-JP/template-calendar.md +194 -0
- package/docs/content/locales/ja-JP/template-chat.md +129 -0
- package/docs/content/locales/ja-JP/template-clips.md +368 -0
- package/docs/content/locales/ja-JP/template-content.md +402 -0
- package/docs/content/locales/ja-JP/template-design.md +173 -0
- package/docs/content/locales/ja-JP/template-dispatch.md +220 -0
- package/docs/content/locales/ja-JP/template-forms.md +178 -0
- package/docs/content/locales/ja-JP/template-mail.md +239 -0
- package/docs/content/locales/ja-JP/template-plan.md +814 -0
- package/docs/content/locales/ja-JP/template-slides.md +293 -0
- package/docs/content/locales/ja-JP/template-videos.md +222 -0
- package/docs/content/locales/ja-JP/tracking.md +236 -0
- package/docs/content/locales/ja-JP/using-your-agent.md +71 -0
- package/docs/content/locales/ja-JP/voice-input.md +81 -0
- package/docs/content/locales/ja-JP/what-is-agent-native.md +202 -0
- package/docs/content/locales/ja-JP/workspace-connections.md +321 -0
- package/docs/content/locales/ja-JP/workspace-management.md +175 -0
- package/docs/content/locales/ja-JP/workspace.md +323 -0
- package/docs/content/locales/ja-JP/writing-agent-instructions.md +173 -0
- package/docs/content/locales/ko-KR/a2a-protocol.md +392 -0
- package/docs/content/locales/ko-KR/actions.md +583 -0
- package/docs/content/locales/ko-KR/agent-mentions.md +164 -0
- package/docs/content/locales/ko-KR/agent-surfaces.md +397 -0
- package/docs/content/locales/ko-KR/agent-teams.md +171 -0
- package/docs/content/locales/ko-KR/agent-web-surfaces.md +161 -0
- package/docs/content/locales/ko-KR/audit-log.md +111 -0
- package/docs/content/locales/ko-KR/authentication.md +332 -0
- package/docs/content/locales/ko-KR/automations.md +268 -0
- package/docs/content/locales/ko-KR/blueprint-installer.md +83 -0
- package/docs/content/locales/ko-KR/cli-adapters.md +129 -0
- package/docs/content/locales/ko-KR/client.md +398 -0
- package/docs/content/locales/ko-KR/cloneable-saas.md +114 -0
- package/docs/content/locales/ko-KR/code-agents-ui.md +436 -0
- package/docs/content/locales/ko-KR/components.md +368 -0
- package/docs/content/locales/ko-KR/context-awareness.md +373 -0
- package/docs/content/locales/ko-KR/creating-templates.md +411 -0
- package/docs/content/locales/ko-KR/cross-app-sso.md +187 -0
- package/docs/content/locales/ko-KR/database.md +183 -0
- package/docs/content/locales/ko-KR/deployment.md +349 -0
- package/docs/content/locales/ko-KR/dispatch.md +146 -0
- package/docs/content/locales/ko-KR/drop-in-agent.md +260 -0
- package/docs/content/locales/ko-KR/durable-resume.md +65 -0
- package/docs/content/locales/ko-KR/embedding-sdk.md +597 -0
- package/docs/content/locales/ko-KR/evals.md +155 -0
- package/docs/content/locales/ko-KR/extensions.md +360 -0
- package/docs/content/locales/ko-KR/external-agents.md +621 -0
- package/docs/content/locales/ko-KR/faq.md +142 -0
- package/docs/content/locales/ko-KR/file-uploads.md +122 -0
- package/docs/content/locales/ko-KR/frames.md +153 -0
- package/docs/content/locales/ko-KR/getting-started.md +199 -0
- package/docs/content/locales/ko-KR/harness-agents.md +349 -0
- package/docs/content/locales/ko-KR/human-approval.md +88 -0
- package/docs/content/locales/ko-KR/internationalization.md +66 -23
- package/docs/content/locales/ko-KR/key-concepts.md +312 -0
- package/docs/content/locales/ko-KR/local-file-mode.md +433 -0
- package/docs/content/locales/ko-KR/mcp-apps.md +147 -0
- package/docs/content/locales/ko-KR/mcp-clients.md +330 -0
- package/docs/content/locales/ko-KR/mcp-protocol.md +279 -0
- package/docs/content/locales/ko-KR/messaging.md +464 -0
- package/docs/content/locales/ko-KR/migration-workbench.md +33 -0
- package/docs/content/locales/ko-KR/multi-app-workspace.md +312 -0
- package/docs/content/locales/ko-KR/multi-tenancy.md +52 -0
- package/docs/content/locales/ko-KR/native-chat-ui.md +321 -0
- package/docs/content/locales/ko-KR/notifications.md +231 -0
- package/docs/content/locales/ko-KR/observability.md +294 -0
- package/docs/content/locales/ko-KR/observational-memory.md +77 -0
- package/docs/content/locales/ko-KR/onboarding.md +216 -0
- package/docs/content/locales/ko-KR/plan-plugin.md +200 -0
- package/docs/content/locales/ko-KR/pr-visual-recap.md +384 -0
- package/docs/content/locales/ko-KR/processors.md +106 -0
- package/docs/content/locales/ko-KR/progress.md +199 -0
- package/docs/content/locales/ko-KR/pure-agent-apps.md +39 -0
- package/docs/content/locales/ko-KR/real-time-collaboration.md +676 -0
- package/docs/content/locales/ko-KR/recurring-jobs.md +142 -0
- package/docs/content/locales/ko-KR/routing.md +79 -0
- package/docs/content/locales/ko-KR/sandbox-adapters.md +227 -0
- package/docs/content/locales/ko-KR/security.md +330 -0
- package/docs/content/locales/ko-KR/server.md +253 -0
- package/docs/content/locales/ko-KR/sharing.md +219 -0
- package/docs/content/locales/ko-KR/skills-guide.md +281 -0
- package/docs/content/locales/ko-KR/template-analytics.md +259 -0
- package/docs/content/locales/ko-KR/template-assets.md +307 -0
- package/docs/content/locales/ko-KR/template-brain.md +324 -0
- package/docs/content/locales/ko-KR/template-calendar.md +194 -0
- package/docs/content/locales/ko-KR/template-chat.md +129 -0
- package/docs/content/locales/ko-KR/template-clips.md +372 -0
- package/docs/content/locales/ko-KR/template-content.md +402 -0
- package/docs/content/locales/ko-KR/template-design.md +173 -0
- package/docs/content/locales/ko-KR/template-dispatch.md +220 -0
- package/docs/content/locales/ko-KR/template-forms.md +178 -0
- package/docs/content/locales/ko-KR/template-mail.md +239 -0
- package/docs/content/locales/ko-KR/template-plan.md +815 -0
- package/docs/content/locales/ko-KR/template-slides.md +293 -0
- package/docs/content/locales/ko-KR/template-videos.md +222 -0
- package/docs/content/locales/ko-KR/tracking.md +236 -0
- package/docs/content/locales/ko-KR/using-your-agent.md +71 -0
- package/docs/content/locales/ko-KR/voice-input.md +81 -0
- package/docs/content/locales/ko-KR/what-is-agent-native.md +202 -0
- package/docs/content/locales/ko-KR/workspace-connections.md +321 -0
- package/docs/content/locales/ko-KR/workspace-management.md +175 -0
- package/docs/content/locales/ko-KR/workspace.md +323 -0
- package/docs/content/locales/ko-KR/writing-agent-instructions.md +173 -0
- package/docs/content/locales/pt-BR/a2a-protocol.md +392 -0
- package/docs/content/locales/pt-BR/actions.md +583 -0
- package/docs/content/locales/pt-BR/agent-mentions.md +164 -0
- package/docs/content/locales/pt-BR/agent-surfaces.md +397 -0
- package/docs/content/locales/pt-BR/agent-teams.md +171 -0
- package/docs/content/locales/pt-BR/agent-web-surfaces.md +161 -0
- package/docs/content/locales/pt-BR/audit-log.md +111 -0
- package/docs/content/locales/pt-BR/authentication.md +332 -0
- package/docs/content/locales/pt-BR/automations.md +268 -0
- package/docs/content/locales/pt-BR/blueprint-installer.md +83 -0
- package/docs/content/locales/pt-BR/cli-adapters.md +129 -0
- package/docs/content/locales/pt-BR/client.md +398 -0
- package/docs/content/locales/pt-BR/cloneable-saas.md +114 -0
- package/docs/content/locales/pt-BR/code-agents-ui.md +436 -0
- package/docs/content/locales/pt-BR/components.md +368 -0
- package/docs/content/locales/pt-BR/context-awareness.md +373 -0
- package/docs/content/locales/pt-BR/creating-templates.md +411 -0
- package/docs/content/locales/pt-BR/cross-app-sso.md +185 -0
- package/docs/content/locales/pt-BR/database.md +183 -0
- package/docs/content/locales/pt-BR/deployment.md +349 -0
- package/docs/content/locales/pt-BR/dispatch.md +146 -0
- package/docs/content/locales/pt-BR/drop-in-agent.md +260 -0
- package/docs/content/locales/pt-BR/durable-resume.md +65 -0
- package/docs/content/locales/pt-BR/embedding-sdk.md +597 -0
- package/docs/content/locales/pt-BR/evals.md +155 -0
- package/docs/content/locales/pt-BR/extensions.md +360 -0
- package/docs/content/locales/pt-BR/external-agents.md +619 -0
- package/docs/content/locales/pt-BR/faq.md +142 -0
- package/docs/content/locales/pt-BR/file-uploads.md +122 -0
- package/docs/content/locales/pt-BR/frames.md +153 -0
- package/docs/content/locales/pt-BR/getting-started.md +199 -0
- package/docs/content/locales/pt-BR/harness-agents.md +349 -0
- package/docs/content/locales/pt-BR/human-approval.md +86 -0
- package/docs/content/locales/pt-BR/internationalization.md +67 -24
- package/docs/content/locales/pt-BR/key-concepts.md +312 -0
- package/docs/content/locales/pt-BR/local-file-mode.md +433 -0
- package/docs/content/locales/pt-BR/mcp-apps.md +147 -0
- package/docs/content/locales/pt-BR/mcp-clients.md +330 -0
- package/docs/content/locales/pt-BR/mcp-protocol.md +279 -0
- package/docs/content/locales/pt-BR/messaging.md +461 -0
- package/docs/content/locales/pt-BR/migration-workbench.md +33 -0
- package/docs/content/locales/pt-BR/multi-app-workspace.md +312 -0
- package/docs/content/locales/pt-BR/multi-tenancy.md +52 -0
- package/docs/content/locales/pt-BR/native-chat-ui.md +321 -0
- package/docs/content/locales/pt-BR/notifications.md +231 -0
- package/docs/content/locales/pt-BR/observability.md +294 -0
- package/docs/content/locales/pt-BR/observational-memory.md +77 -0
- package/docs/content/locales/pt-BR/onboarding.md +216 -0
- package/docs/content/locales/pt-BR/plan-plugin.md +200 -0
- package/docs/content/locales/pt-BR/pr-visual-recap.md +384 -0
- package/docs/content/locales/pt-BR/processors.md +106 -0
- package/docs/content/locales/pt-BR/progress.md +199 -0
- package/docs/content/locales/pt-BR/pure-agent-apps.md +39 -0
- package/docs/content/locales/pt-BR/real-time-collaboration.md +676 -0
- package/docs/content/locales/pt-BR/recurring-jobs.md +142 -0
- package/docs/content/locales/pt-BR/routing.md +79 -0
- package/docs/content/locales/pt-BR/sandbox-adapters.md +227 -0
- package/docs/content/locales/pt-BR/security.md +330 -0
- package/docs/content/locales/pt-BR/server.md +253 -0
- package/docs/content/locales/pt-BR/sharing.md +219 -0
- package/docs/content/locales/pt-BR/skills-guide.md +281 -0
- package/docs/content/locales/pt-BR/template-analytics.md +259 -0
- package/docs/content/locales/pt-BR/template-assets.md +303 -0
- package/docs/content/locales/pt-BR/template-brain.md +324 -0
- package/docs/content/locales/pt-BR/template-calendar.md +194 -0
- package/docs/content/locales/pt-BR/template-chat.md +129 -0
- package/docs/content/locales/pt-BR/template-clips.md +368 -0
- package/docs/content/locales/pt-BR/template-content.md +402 -0
- package/docs/content/locales/pt-BR/template-design.md +173 -0
- package/docs/content/locales/pt-BR/template-dispatch.md +220 -0
- package/docs/content/locales/pt-BR/template-forms.md +178 -0
- package/docs/content/locales/pt-BR/template-mail.md +239 -0
- package/docs/content/locales/pt-BR/template-plan.md +815 -0
- package/docs/content/locales/pt-BR/template-slides.md +293 -0
- package/docs/content/locales/pt-BR/template-videos.md +222 -0
- package/docs/content/locales/pt-BR/tracking.md +236 -0
- package/docs/content/locales/pt-BR/using-your-agent.md +71 -0
- package/docs/content/locales/pt-BR/voice-input.md +81 -0
- package/docs/content/locales/pt-BR/what-is-agent-native.md +202 -0
- package/docs/content/locales/pt-BR/workspace-connections.md +321 -0
- package/docs/content/locales/pt-BR/workspace-management.md +175 -0
- package/docs/content/locales/pt-BR/workspace.md +323 -0
- package/docs/content/locales/pt-BR/writing-agent-instructions.md +173 -0
- package/docs/content/locales/zh-CN/a2a-protocol.md +392 -0
- package/docs/content/locales/zh-CN/actions.md +583 -0
- package/docs/content/locales/zh-CN/agent-mentions.md +164 -0
- package/docs/content/locales/zh-CN/agent-surfaces.md +397 -0
- package/docs/content/locales/zh-CN/agent-teams.md +171 -0
- package/docs/content/locales/zh-CN/agent-web-surfaces.md +161 -0
- package/docs/content/locales/zh-CN/audit-log.md +111 -0
- package/docs/content/locales/zh-CN/authentication.md +332 -0
- package/docs/content/locales/zh-CN/automations.md +268 -0
- package/docs/content/locales/zh-CN/blueprint-installer.md +83 -0
- package/docs/content/locales/zh-CN/cli-adapters.md +129 -0
- package/docs/content/locales/zh-CN/client.md +398 -0
- package/docs/content/locales/zh-CN/cloneable-saas.md +114 -0
- package/docs/content/locales/zh-CN/code-agents-ui.md +436 -0
- package/docs/content/locales/zh-CN/components.md +368 -0
- package/docs/content/locales/zh-CN/context-awareness.md +373 -0
- package/docs/content/locales/zh-CN/creating-templates.md +411 -0
- package/docs/content/locales/zh-CN/cross-app-sso.md +188 -0
- package/docs/content/locales/zh-CN/database.md +183 -0
- package/docs/content/locales/zh-CN/deployment.md +349 -0
- package/docs/content/locales/zh-CN/dispatch.md +146 -0
- package/docs/content/locales/zh-CN/drop-in-agent.md +260 -0
- package/docs/content/locales/zh-CN/durable-resume.md +65 -0
- package/docs/content/locales/zh-CN/embedding-sdk.md +597 -0
- package/docs/content/locales/zh-CN/evals.md +155 -0
- package/docs/content/locales/zh-CN/extensions.md +360 -0
- package/docs/content/locales/zh-CN/external-agents.md +619 -0
- package/docs/content/locales/zh-CN/faq.md +142 -0
- package/docs/content/locales/zh-CN/file-uploads.md +122 -0
- package/docs/content/locales/zh-CN/frames.md +153 -0
- package/docs/content/locales/zh-CN/getting-started.md +199 -0
- package/docs/content/locales/zh-CN/harness-agents.md +349 -0
- package/docs/content/locales/zh-CN/human-approval.md +86 -0
- package/docs/content/locales/zh-CN/internationalization.md +67 -24
- package/docs/content/locales/zh-CN/key-concepts.md +312 -0
- package/docs/content/locales/zh-CN/local-file-mode.md +433 -0
- package/docs/content/locales/zh-CN/mcp-apps.md +147 -0
- package/docs/content/locales/zh-CN/mcp-clients.md +330 -0
- package/docs/content/locales/zh-CN/mcp-protocol.md +279 -0
- package/docs/content/locales/zh-CN/messaging.md +461 -0
- package/docs/content/locales/zh-CN/migration-workbench.md +33 -0
- package/docs/content/locales/zh-CN/multi-app-workspace.md +312 -0
- package/docs/content/locales/zh-CN/multi-tenancy.md +52 -0
- package/docs/content/locales/zh-CN/native-chat-ui.md +321 -0
- package/docs/content/locales/zh-CN/notifications.md +231 -0
- package/docs/content/locales/zh-CN/observability.md +294 -0
- package/docs/content/locales/zh-CN/observational-memory.md +77 -0
- package/docs/content/locales/zh-CN/onboarding.md +216 -0
- package/docs/content/locales/zh-CN/plan-plugin.md +200 -0
- package/docs/content/locales/zh-CN/pr-visual-recap.md +384 -0
- package/docs/content/locales/zh-CN/processors.md +106 -0
- package/docs/content/locales/zh-CN/progress.md +199 -0
- package/docs/content/locales/zh-CN/pure-agent-apps.md +39 -0
- package/docs/content/locales/zh-CN/real-time-collaboration.md +676 -0
- package/docs/content/locales/zh-CN/recurring-jobs.md +142 -0
- package/docs/content/locales/zh-CN/routing.md +79 -0
- package/docs/content/locales/zh-CN/sandbox-adapters.md +227 -0
- package/docs/content/locales/zh-CN/security.md +330 -0
- package/docs/content/locales/zh-CN/server.md +253 -0
- package/docs/content/locales/zh-CN/sharing.md +219 -0
- package/docs/content/locales/zh-CN/skills-guide.md +281 -0
- package/docs/content/locales/zh-CN/template-analytics.md +259 -0
- package/docs/content/locales/zh-CN/template-assets.md +303 -0
- package/docs/content/locales/zh-CN/template-brain.md +324 -0
- package/docs/content/locales/zh-CN/template-calendar.md +194 -0
- package/docs/content/locales/zh-CN/template-chat.md +129 -0
- package/docs/content/locales/zh-CN/template-clips.md +368 -0
- package/docs/content/locales/zh-CN/template-content.md +402 -0
- package/docs/content/locales/zh-CN/template-design.md +173 -0
- package/docs/content/locales/zh-CN/template-dispatch.md +220 -0
- package/docs/content/locales/zh-CN/template-forms.md +178 -0
- package/docs/content/locales/zh-CN/template-mail.md +239 -0
- package/docs/content/locales/zh-CN/template-plan.md +814 -0
- package/docs/content/locales/zh-CN/template-slides.md +293 -0
- package/docs/content/locales/zh-CN/template-videos.md +222 -0
- package/docs/content/locales/zh-CN/tracking.md +236 -0
- package/docs/content/locales/zh-CN/using-your-agent.md +71 -0
- package/docs/content/locales/zh-CN/voice-input.md +81 -0
- package/docs/content/locales/zh-CN/what-is-agent-native.md +202 -0
- package/docs/content/locales/zh-CN/workspace-connections.md +321 -0
- package/docs/content/locales/zh-CN/workspace-management.md +175 -0
- package/docs/content/locales/zh-CN/workspace.md +323 -0
- package/docs/content/locales/zh-CN/writing-agent-instructions.md +173 -0
- package/package.json +1 -1
- package/src/templates/default/app/i18n/ar-SA.ts +356 -0
- package/src/templates/default/app/i18n/de-DE.ts +332 -0
- package/src/templates/default/app/i18n/en-US.ts +303 -0
- package/src/templates/default/app/i18n/es-ES.ts +339 -0
- package/src/templates/default/app/i18n/fr-FR.ts +339 -0
- package/src/templates/default/app/i18n/hi-IN.ts +332 -0
- package/src/templates/default/app/i18n/index.ts +18 -0
- package/src/templates/default/app/i18n/ja-JP.ts +326 -0
- package/src/templates/default/app/i18n/ko-KR.ts +326 -0
- package/src/templates/default/app/i18n/pt-BR.ts +339 -0
- package/src/templates/default/app/i18n/zh-CN.ts +324 -0
- package/src/templates/default/app/root.tsx +109 -6
- package/src/templates/workspace-core/.agents/skills/extensions/references/api.md +34 -12
|
@@ -7,6 +7,7 @@ import { IconDots, IconExternalLink, IconLayoutSidebarRightCollapse, IconTrash,
|
|
|
7
7
|
import { Popover, PopoverContent, PopoverTrigger, } from "../components/ui/popover.js";
|
|
8
8
|
import { isAllowedExtensionPath, sanitizeExtensionRequestOptions, checkBridgePolicy, } from "./iframe-bridge.js";
|
|
9
9
|
import { Tooltip, TooltipContent, TooltipProvider, TooltipTrigger, } from "../components/ui/tooltip.js";
|
|
10
|
+
import { useT } from "../i18n.js";
|
|
10
11
|
import { deleteOrHideExtension, invalidateExtensionRemoval, } from "./delete-extension.js";
|
|
11
12
|
import { extensionLoadError, shouldRetryExtensionLoad, } from "./extension-load-error.js";
|
|
12
13
|
import { extensionPath } from "../../extensions/path.js";
|
|
@@ -205,6 +206,7 @@ export function EmbeddedExtension({ extensionId, slotId, context, className, ini
|
|
|
205
206
|
} }, `${extensionId}-${extension.updatedAt ?? ""}`), _jsx(EmbeddedToolMenu, { extensionId: extensionId, slotId: slotId, toolName: extension.name, canDelete: extension.canDelete })] }));
|
|
206
207
|
}
|
|
207
208
|
function EmbeddedToolMenu({ extensionId, slotId, toolName, canDelete, }) {
|
|
209
|
+
const t = useT();
|
|
208
210
|
const [open, setOpen] = useState(false);
|
|
209
211
|
const [confirmingDelete, setConfirmingDelete] = useState(false);
|
|
210
212
|
const queryClient = useQueryClient();
|
|
@@ -237,9 +239,9 @@ function EmbeddedToolMenu({ extensionId, slotId, toolName, canDelete, }) {
|
|
|
237
239
|
setOpen(o);
|
|
238
240
|
if (!o)
|
|
239
241
|
setConfirmingDelete(false);
|
|
240
|
-
}, children: [_jsx(TooltipProvider, { delayDuration: 200, children: _jsxs(Tooltip, { children: [_jsx(TooltipTrigger, { asChild: true, children: _jsx(PopoverTrigger, { asChild: true, children: _jsx("button", { type: "button", className: "absolute top-1 right-1 flex h-6 w-6 items-center justify-center rounded-md bg-background/60 text-muted-foreground/60 opacity-0 hover:bg-accent hover:text-foreground hover:opacity-100 group-hover/embedded-extension:opacity-100 cursor-pointer transition-opacity", "aria-label":
|
|
242
|
+
}, children: [_jsx(TooltipProvider, { delayDuration: 200, children: _jsxs(Tooltip, { children: [_jsx(TooltipTrigger, { asChild: true, children: _jsx(PopoverTrigger, { asChild: true, children: _jsx("button", { type: "button", className: "absolute top-1 right-1 flex h-6 w-6 items-center justify-center rounded-md bg-background/60 text-muted-foreground/60 opacity-0 hover:bg-accent hover:text-foreground hover:opacity-100 group-hover/embedded-extension:opacity-100 cursor-pointer transition-opacity", "aria-label": t("extensions.optionsFor", { name: toolName }), children: _jsx(IconDots, { className: "h-3.5 w-3.5" }) }) }) }), _jsx(TooltipContent, { children: t("extensions.optionsFor", { name: toolName }) })] }) }), _jsx(PopoverContent, { align: "end", sideOffset: 4, className: "w-56 p-1", children: !confirmingDelete ? (_jsxs("div", { className: "flex flex-col", children: [_jsxs("button", { type: "button", onClick: () => {
|
|
241
243
|
closeMenu();
|
|
242
244
|
navigate(extensionPath(extensionId, toolName));
|
|
243
|
-
}, className: "flex items-center gap-2 rounded-sm px-2 py-1.5 text-[12px] hover:bg-accent cursor-pointer text-left", children: [_jsx(IconExternalLink, { className: "h-3.5 w-3.5" }), _jsx("span", { children: "
|
|
245
|
+
}, className: "flex items-center gap-2 rounded-sm px-2 py-1.5 text-[12px] hover:bg-accent cursor-pointer text-left", children: [_jsx(IconExternalLink, { className: "h-3.5 w-3.5" }), _jsx("span", { children: t("extensions.openFullView") })] }), _jsxs("button", { type: "button", onClick: removeFromSlot, className: "flex items-center gap-2 rounded-sm px-2 py-1.5 text-[12px] hover:bg-accent cursor-pointer text-left", children: [_jsx(IconLayoutSidebarRightCollapse, { className: "h-3.5 w-3.5" }), _jsx("span", { children: t("extensions.removeFromWidgetArea") })] }), canDelete !== false && (_jsxs(_Fragment, { children: [_jsx("div", { className: "my-1 h-px bg-border/40" }), _jsxs("button", { type: "button", onClick: () => setConfirmingDelete(true), className: "flex items-center gap-2 rounded-sm px-2 py-1.5 text-[12px] text-destructive hover:bg-destructive/10 cursor-pointer text-left", children: [_jsx(IconTrash, { className: "h-3.5 w-3.5" }), _jsx("span", { children: t("extensions.deleteExtensionEllipsis") })] })] }))] })) : (_jsxs("div", { className: "flex flex-col gap-2 p-2", children: [_jsxs("p", { className: "text-[12px]", children: [t("extensions.deleteQuestion", { name: toolName }), " ", t("extensions.deleteEverywhereConfirmation")] }), _jsxs("div", { className: "flex justify-end gap-1", children: [_jsx("button", { type: "button", onClick: () => setConfirmingDelete(false), className: "rounded-md px-2 py-1 text-[12px] hover:bg-accent cursor-pointer", children: t("extensions.cancel") }), _jsx("button", { type: "button", onClick: deleteExtension, className: "rounded-md bg-destructive px-2 py-1 text-[12px] text-destructive-foreground hover:bg-destructive/90 cursor-pointer", children: t("extensions.delete") })] })] })) })] }));
|
|
244
246
|
}
|
|
245
247
|
//# sourceMappingURL=EmbeddedExtension.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"EmbeddedExtension.js","sourceRoot":"","sources":["../../../src/client/extensions/EmbeddedExtension.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,gBAAgB,CAAC;AACjD,OAAO,EAAE,SAAS,EAAE,OAAO,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAC7D,OAAO,EAAE,QAAQ,EAAE,cAAc,EAAE,MAAM,uBAAuB,CAAC;AACjE,OAAO,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AAC3C,OAAO,EACL,QAAQ,EACR,gBAAgB,EAChB,8BAA8B,EAC9B,SAAS,GACV,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EACL,OAAO,EACP,cAAc,EACd,cAAc,GACf,MAAM,6BAA6B,CAAC;AACrC,OAAO,EACL,sBAAsB,EACtB,+BAA+B,EAC/B,iBAAiB,GAGlB,MAAM,oBAAoB,CAAC;AAC5B,OAAO,EACL,OAAO,EACP,cAAc,EACd,eAAe,EACf,cAAc,GACf,MAAM,6BAA6B,CAAC;AACrC,OAAO,EACL,qBAAqB,EACrB,0BAA0B,GAC3B,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EACL,kBAAkB,EAClB,wBAAwB,GACzB,MAAM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,GAAG,EAAE,CAAC,mBAAmB,CAAC,IAAI,CAAC,EACxC,SAAS,EAAC,8HAA8H,aAExI,KAAC,SAAS,IAAC,SAAS,EAAC,aAAa,GAAG,EACrC,iDAAgC,IACzB,IACR,CACJ,IACG,CACP,CAAC,CAAC,CAAC,CACF,eAAK,SAAS,EAAC,yBAAyB,aACtC,aAAG,SAAS,EAAC,aAAa,wBACjB,eAAM,SAAS,EAAC,aAAa,YAAE,QAAQ,GAAQ,+EAEpD,EACJ,eAAK,SAAS,EAAC,wBAAwB,aACrC,iBACE,IAAI,EAAC,QAAQ,EACb,OAAO,EAAE,GAAG,EAAE,CAAC,mBAAmB,CAAC,KAAK,CAAC,EACzC,SAAS,EAAC,iEAAiE,uBAGpE,EACT,iBACE,IAAI,EAAC,QAAQ,EACb,OAAO,EAAE,eAAe,EACxB,SAAS,EAAC,oHAAoH,uBAGvH,IACL,IACF,CACP,GACc,IACT,CACX,CAAC;AACJ,CAAC","sourcesContent":["import { agentNativePath } from \"../api-path.js\";\nimport { useEffect, useMemo, useRef, useState } from \"react\";\nimport { useQuery, useQueryClient } from \"@tanstack/react-query\";\nimport { useNavigate } from \"react-router\";\nimport {\n IconDots,\n IconExternalLink,\n IconLayoutSidebarRightCollapse,\n IconTrash,\n} from \"@tabler/icons-react\";\nimport {\n Popover,\n PopoverContent,\n PopoverTrigger,\n} from \"../components/ui/popover.js\";\nimport {\n isAllowedExtensionPath,\n sanitizeExtensionRequestOptions,\n checkBridgePolicy,\n type BridgePolicyContext,\n type ExtensionBridgeRole,\n} from \"./iframe-bridge.js\";\nimport {\n Tooltip,\n TooltipContent,\n TooltipProvider,\n TooltipTrigger,\n} from \"../components/ui/tooltip.js\";\nimport {\n deleteOrHideExtension,\n invalidateExtensionRemoval,\n} from \"./delete-extension.js\";\nimport {\n extensionLoadError,\n shouldRetryExtensionLoad,\n} from \"./extension-load-error.js\";\nimport { extensionPath } from \"../../extensions/path.js\";\n\ninterface Extension {\n id: string;\n name: string;\n description?: string;\n content?: string;\n updatedAt?: string;\n canDelete?: boolean;\n source?: {\n mode?: \"database\" | \"local-files\";\n permissions?: BridgePolicyContext[\"permissions\"];\n };\n}\n\nexport interface EmbeddedExtensionProps {\n extensionId: string;\n /** Slot identifier passed via the iframe URL so the extension runtime knows it's\n * embedded and enables auto-resize. */\n slotId: string;\n /** Object pushed into the extension as `window.slotContext`. Re-posted whenever\n * the host re-renders with a new context. */\n context?: Record<string, unknown> | null;\n /** Optional className applied to the iframe container. */\n className?: string;\n /** Initial iframe height before content reports a real height. */\n initialHeight?: number;\n}\n\n/**\n * Renders a extension inline as a small auto-sized iframe — for use inside an\n * `<ExtensionSlot>`. Different from `<ExtensionViewer>` (which is full-page with a\n * toolbar): no header, sized to content, receives a `slotContext`.\n */\nexport function EmbeddedExtension({\n extensionId,\n slotId,\n context,\n className,\n initialHeight = 80,\n}: EmbeddedExtensionProps) {\n const iframeRef = useRef<HTMLIFrameElement | null>(null);\n const [height, setHeight] = useState<number>(initialHeight);\n const [isDark, setIsDark] = useState(false);\n // (audit H4) Mirror ExtensionViewer's role-aware gating; deny-by-default until\n // the iframe's render binding announcement arrives.\n const bridgeContextRef = useRef<BridgePolicyContext>({\n role: \"viewer\",\n isAuthor: false,\n });\n // (audit H4) Latch the render binding once per iframe instance. The shell\n // posts the server-resolved binding BEFORE user content runs; any later\n // agent-native-extension-binding message is attacker-controllable (it\n // originates inside the same sandboxed realm as user code) and must be\n // ignored so a viewer cannot self-escalate to owner.\n const bindingLatchedRef = useRef(false);\n\n useEffect(() => {\n setIsDark(document.documentElement.classList.contains(\"dark\"));\n const observer = new MutationObserver(() => {\n setIsDark(document.documentElement.classList.contains(\"dark\"));\n });\n observer.observe(document.documentElement, {\n attributes: true,\n attributeFilter: [\"class\"],\n });\n return () => observer.disconnect();\n }, []);\n\n const {\n data: extension,\n isFetching,\n isLoading,\n } = useQuery<Extension>({\n queryKey: [\"extension\", extensionId],\n queryFn: async () => {\n const res = await fetch(\n agentNativePath(`/_agent-native/extensions/${extensionId}`),\n );\n if (res.status === 404) {\n throw extensionLoadError(404, \"Extension not found\");\n }\n if (res.status === 403) {\n throw extensionLoadError(403, \"Extension access denied\");\n }\n if (!res.ok) {\n throw extensionLoadError(res.status, \"Failed to fetch extension\");\n }\n return res.json();\n },\n retry: shouldRetryExtensionLoad,\n retryDelay: (attempt) => Math.min(1000 * 2 ** attempt, 4000),\n });\n\n // Initial dark state is baked into the URL on first load only; subsequent\n // theme toggles update the iframe's <html class=\"dark\"> via postMessage so\n // the user's interaction state inside the extension survives the toggle.\n const initialDarkRef = useRef(isDark);\n const iframeSrc = useMemo(() => {\n const v = encodeURIComponent(extension?.updatedAt ?? \"\");\n return agentNativePath(\n `/_agent-native/extensions/${extensionId}/render?slot=${encodeURIComponent(slotId)}&dark=${initialDarkRef.current}&v=${v}`,\n );\n }, [extensionId, slotId, extension?.updatedAt]);\n\n // Reset role + binding latch to deny-by-default whenever the iframe is\n // recreated (its key changes). The new render's first binding announcement\n // re-establishes the role.\n useEffect(() => {\n bridgeContextRef.current = { role: \"viewer\", isAuthor: false };\n bindingLatchedRef.current = false;\n }, [extensionId, extension?.updatedAt]);\n\n useEffect(() => {\n const win = iframeRef.current?.contentWindow;\n if (!win) return;\n win.postMessage({ type: \"agent-native-theme-update\", isDark }, \"*\");\n }, [isDark]);\n\n // Forward slot context whenever it changes. The iframe's own load handler\n // posts the initial value once it's ready; this effect handles updates.\n const contextJson = JSON.stringify(context ?? {});\n useEffect(() => {\n const win = iframeRef.current?.contentWindow;\n if (!win) return;\n win.postMessage(\n { type: \"agent-native-slot-context\", context: context ?? {} },\n \"*\",\n );\n }, [contextJson]);\n\n // Bridge extension requests + height reports.\n useEffect(() => {\n const handleMessage = async (event: MessageEvent) => {\n if (event.source !== iframeRef.current?.contentWindow) return;\n const message = event.data;\n if (!message || typeof message !== \"object\") return;\n\n if (message.type === \"agent-native-extension-binding\") {\n // Only the FIRST announcement (sent by the shell before user content\n // runs) is trusted. Ignore re-announcements — a malicious extension\n // body could otherwise postMessage a forged owner binding to escalate.\n if (bindingLatchedRef.current) return;\n bindingLatchedRef.current = true;\n const binding = (message as any).binding ?? {};\n const role: ExtensionBridgeRole =\n binding.role === \"owner\" ||\n binding.role === \"admin\" ||\n binding.role === \"editor\" ||\n binding.role === \"viewer\"\n ? binding.role\n : \"viewer\";\n bridgeContextRef.current = {\n role,\n isAuthor: !!binding.isAuthor,\n source: binding.source === \"local-files\" ? \"local-files\" : \"database\",\n permissions:\n binding && typeof binding.permissions === \"object\"\n ? binding.permissions\n : undefined,\n };\n return;\n }\n\n if (message.type === \"agent-native-extension-resize\") {\n const h = Number(message.height);\n if (Number.isFinite(h) && h > 0) {\n setHeight(Math.ceil(h));\n }\n return;\n }\n\n if (message.type !== \"agent-native-extension-request\") return;\n\n const requestId = String(message.requestId ?? \"\");\n const path = String(message.path ?? \"\");\n const respond = (payload: Record<string, unknown>) => {\n iframeRef.current?.contentWindow?.postMessage(\n { type: \"agent-native-extension-response\", requestId, ...payload },\n \"*\",\n );\n };\n\n if (!requestId || !isAllowedExtensionPath(path, extensionId)) {\n respond({ error: \"Extension request path is not allowed\" });\n return;\n }\n\n try {\n const options = sanitizeExtensionRequestOptions(message.options);\n // (audit H4) Role-aware gating: viewer-shared extensions can read but not\n // write. The bridge policy is decided here in the parent before the\n // request leaves; the server enforces a second layer.\n const policy = checkBridgePolicy(\n path,\n options.method ?? \"GET\",\n bridgeContextRef.current,\n );\n if (!policy.ok) {\n respond({\n response: {\n ok: false,\n status: 403,\n statusText: \"Forbidden\",\n body: { error: policy.error },\n },\n });\n return;\n }\n // (audit H5) Same extension-bridge tagging as <ExtensionViewer>. action-routes\n // uses these headers to enforce per-action `toolCallable` opt-in.\n const finalHeaders = new Headers(options.headers ?? undefined);\n finalHeaders.set(\"X-Agent-Native-Extension-Bridge\", \"1\");\n finalHeaders.set(\"X-Agent-Native-Extension-Id\", extensionId);\n finalHeaders.set(\"X-Agent-Native-Tool-Bridge\", \"1\");\n finalHeaders.set(\"X-Agent-Native-Tool-Id\", extensionId);\n const res = await fetch(agentNativePath(path), {\n ...options,\n headers: finalHeaders,\n credentials: \"same-origin\",\n });\n const text = await res.text();\n let body: unknown = text;\n if (text) {\n try {\n body = JSON.parse(text);\n } catch {\n body = text;\n }\n }\n respond({\n response: {\n ok: res.ok,\n status: res.status,\n statusText: res.statusText,\n body,\n },\n });\n } catch (err: any) {\n respond({ error: err?.message ?? \"Extension host request failed\" });\n }\n };\n\n window.addEventListener(\"message\", handleMessage);\n return () => window.removeEventListener(\"message\", handleMessage);\n }, [extensionId]);\n\n if (!extension) {\n if (!isLoading && !isFetching) return null;\n return (\n <div\n className={className}\n style={{ height: initialHeight }}\n aria-busy=\"true\"\n />\n );\n }\n\n return (\n <div className={`relative group/embedded-extension ${className ?? \"\"}`}>\n <iframe\n ref={iframeRef}\n key={`${extensionId}-${extension.updatedAt ?? \"\"}`}\n src={iframeSrc}\n title={extension.name}\n sandbox=\"allow-scripts allow-forms\"\n style={{ width: \"100%\", border: 0, height, display: \"block\" }}\n onLoad={() => {\n iframeRef.current?.contentWindow?.postMessage(\n { type: \"agent-native-slot-context\", context: context ?? {} },\n \"*\",\n );\n }}\n />\n <EmbeddedToolMenu\n extensionId={extensionId}\n slotId={slotId}\n toolName={extension.name}\n canDelete={extension.canDelete}\n />\n </div>\n );\n}\n\nfunction EmbeddedToolMenu({\n extensionId,\n slotId,\n toolName,\n canDelete,\n}: {\n extensionId: string;\n slotId: string;\n toolName: string;\n canDelete?: boolean;\n}) {\n const [open, setOpen] = useState(false);\n const [confirmingDelete, setConfirmingDelete] = useState(false);\n const queryClient = useQueryClient();\n const navigate = useNavigate();\n\n const closeMenu = () => {\n setOpen(false);\n setConfirmingDelete(false);\n };\n\n const removeFromSlot = async () => {\n closeMenu();\n queryClient.setQueryData<any[]>([\"slot-installs\", slotId], (old) =>\n (old ?? []).filter((i) => i.extensionId !== extensionId),\n );\n try {\n await fetch(\n agentNativePath(\n `/_agent-native/slots/${encodeURIComponent(slotId)}/install/${encodeURIComponent(extensionId)}`,\n ),\n { method: \"DELETE\" },\n );\n } finally {\n queryClient.invalidateQueries({ queryKey: [\"slot-installs\", slotId] });\n }\n };\n\n const deleteExtension = async () => {\n closeMenu();\n try {\n await deleteOrHideExtension({ id: extensionId, canDelete });\n invalidateExtensionRemoval(queryClient, extensionId);\n } catch {\n queryClient.invalidateQueries({ queryKey: [\"extension\", extensionId] });\n }\n };\n\n return (\n <Popover\n open={open}\n onOpenChange={(o) => {\n setOpen(o);\n if (!o) setConfirmingDelete(false);\n }}\n >\n <TooltipProvider delayDuration={200}>\n <Tooltip>\n <TooltipTrigger asChild>\n <PopoverTrigger asChild>\n <button\n type=\"button\"\n className=\"absolute top-1 right-1 flex h-6 w-6 items-center justify-center rounded-md bg-background/60 text-muted-foreground/60 opacity-0 hover:bg-accent hover:text-foreground hover:opacity-100 group-hover/embedded-extension:opacity-100 cursor-pointer transition-opacity\"\n aria-label={`${toolName} options`}\n >\n <IconDots className=\"h-3.5 w-3.5\" />\n </button>\n </PopoverTrigger>\n </TooltipTrigger>\n <TooltipContent>{`${toolName} options`}</TooltipContent>\n </Tooltip>\n </TooltipProvider>\n <PopoverContent align=\"end\" sideOffset={4} className=\"w-56 p-1\">\n {!confirmingDelete ? (\n <div className=\"flex flex-col\">\n <button\n type=\"button\"\n onClick={() => {\n closeMenu();\n navigate(extensionPath(extensionId, toolName));\n }}\n className=\"flex items-center gap-2 rounded-sm px-2 py-1.5 text-[12px] hover:bg-accent cursor-pointer text-left\"\n >\n <IconExternalLink className=\"h-3.5 w-3.5\" />\n <span>Open full view</span>\n </button>\n <button\n type=\"button\"\n onClick={removeFromSlot}\n className=\"flex items-center gap-2 rounded-sm px-2 py-1.5 text-[12px] hover:bg-accent cursor-pointer text-left\"\n >\n <IconLayoutSidebarRightCollapse className=\"h-3.5 w-3.5\" />\n <span>Remove from this widget area</span>\n </button>\n {canDelete !== false && (\n <>\n <div className=\"my-1 h-px bg-border/40\" />\n <button\n type=\"button\"\n onClick={() => setConfirmingDelete(true)}\n className=\"flex items-center gap-2 rounded-sm px-2 py-1.5 text-[12px] text-destructive hover:bg-destructive/10 cursor-pointer text-left\"\n >\n <IconTrash className=\"h-3.5 w-3.5\" />\n <span>Delete extension...</span>\n </button>\n </>\n )}\n </div>\n ) : (\n <div className=\"flex flex-col gap-2 p-2\">\n <p className=\"text-[12px]\">\n Delete <span className=\"font-medium\">{toolName}</span>? This\n removes the extension everywhere, for everyone it's shared with.\n </p>\n <div className=\"flex justify-end gap-1\">\n <button\n type=\"button\"\n onClick={() => setConfirmingDelete(false)}\n className=\"rounded-md px-2 py-1 text-[12px] hover:bg-accent cursor-pointer\"\n >\n Cancel\n </button>\n <button\n type=\"button\"\n onClick={deleteExtension}\n className=\"rounded-md bg-destructive px-2 py-1 text-[12px] text-destructive-foreground hover:bg-destructive/90 cursor-pointer\"\n >\n Delete\n </button>\n </div>\n </div>\n )}\n </PopoverContent>\n </Popover>\n );\n}\n"]}
|
|
1
|
+
{"version":3,"file":"EmbeddedExtension.js","sourceRoot":"","sources":["../../../src/client/extensions/EmbeddedExtension.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,gBAAgB,CAAC;AACjD,OAAO,EAAE,SAAS,EAAE,OAAO,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAC7D,OAAO,EAAE,QAAQ,EAAE,cAAc,EAAE,MAAM,uBAAuB,CAAC;AACjE,OAAO,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AAC3C,OAAO,EACL,QAAQ,EACR,gBAAgB,EAChB,8BAA8B,EAC9B,SAAS,GACV,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EACL,OAAO,EACP,cAAc,EACd,cAAc,GACf,MAAM,6BAA6B,CAAC;AACrC,OAAO,EACL,sBAAsB,EACtB,+BAA+B,EAC/B,iBAAiB,GAGlB,MAAM,oBAAoB,CAAC;AAC5B,OAAO,EACL,O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ef, useState } from \"react\";\nimport { useQuery, useQueryClient } from \"@tanstack/react-query\";\nimport { useNavigate } from \"react-router\";\nimport {\n IconDots,\n IconExternalLink,\n IconLayoutSidebarRightCollapse,\n IconTrash,\n} from \"@tabler/icons-react\";\nimport {\n Popover,\n PopoverContent,\n PopoverTrigger,\n} from \"../components/ui/popover.js\";\nimport {\n isAllowedExtensionPath,\n sanitizeExtensionRequestOptions,\n checkBridgePolicy,\n type BridgePolicyContext,\n type ExtensionBridgeRole,\n} from \"./iframe-bridge.js\";\nimport {\n Tooltip,\n TooltipContent,\n TooltipProvider,\n TooltipTrigger,\n} from \"../components/ui/tooltip.js\";\nimport { useT } from \"../i18n.js\";\nimport {\n deleteOrHideExtension,\n invalidateExtensionRemoval,\n} from \"./delete-extension.js\";\nimport {\n extensionLoadError,\n shouldRetryExtensionLoad,\n} from \"./extension-load-error.js\";\nimport { extensionPath } from \"../../extensions/path.js\";\n\ninterface Extension {\n id: string;\n name: string;\n description?: string;\n content?: string;\n updatedAt?: string;\n canDelete?: boolean;\n source?: {\n mode?: \"database\" | \"local-files\";\n permissions?: BridgePolicyContext[\"permissions\"];\n };\n}\n\nexport interface EmbeddedExtensionProps {\n extensionId: string;\n /** Slot identifier passed via the iframe URL so the extension runtime knows it's\n * embedded and enables auto-resize. */\n slotId: string;\n /** Object pushed into the extension as `window.slotContext`. Re-posted whenever\n * the host re-renders with a new context. */\n context?: Record<string, unknown> | null;\n /** Optional className applied to the iframe container. */\n className?: string;\n /** Initial iframe height before content reports a real height. */\n initialHeight?: number;\n}\n\n/**\n * Renders a extension inline as a small auto-sized iframe — for use inside an\n * `<ExtensionSlot>`. Different from `<ExtensionViewer>` (which is full-page with a\n * toolbar): no header, sized to content, receives a `slotContext`.\n */\nexport function EmbeddedExtension({\n extensionId,\n slotId,\n context,\n className,\n initialHeight = 80,\n}: EmbeddedExtensionProps) {\n const iframeRef = useRef<HTMLIFrameElement | null>(null);\n const [height, setHeight] = useState<number>(initialHeight);\n const [isDark, setIsDark] = useState(false);\n // (audit H4) Mirror ExtensionViewer's role-aware gating; deny-by-default until\n // the iframe's render binding announcement arrives.\n const bridgeContextRef = useRef<BridgePolicyContext>({\n role: \"viewer\",\n isAuthor: false,\n });\n // (audit H4) Latch the render binding once per iframe instance. The shell\n // posts the server-resolved binding BEFORE user content runs; any later\n // agent-native-extension-binding message is attacker-controllable (it\n // originates inside the same sandboxed realm as user code) and must be\n // ignored so a viewer cannot self-escalate to owner.\n const bindingLatchedRef = useRef(false);\n\n useEffect(() => {\n setIsDark(document.documentElement.classList.contains(\"dark\"));\n const observer = new MutationObserver(() => {\n setIsDark(document.documentElement.classList.contains(\"dark\"));\n });\n observer.observe(document.documentElement, {\n attributes: true,\n attributeFilter: [\"class\"],\n });\n return () => observer.disconnect();\n }, []);\n\n const {\n data: extension,\n isFetching,\n isLoading,\n } = useQuery<Extension>({\n queryKey: [\"extension\", extensionId],\n queryFn: async () => {\n const res = await fetch(\n agentNativePath(`/_agent-native/extensions/${extensionId}`),\n );\n if (res.status === 404) {\n throw extensionLoadError(404, \"Extension not found\");\n }\n if (res.status === 403) {\n throw extensionLoadError(403, \"Extension access denied\");\n }\n if (!res.ok) {\n throw extensionLoadError(res.status, \"Failed to fetch extension\");\n }\n return res.json();\n },\n retry: shouldRetryExtensionLoad,\n retryDelay: (attempt) => Math.min(1000 * 2 ** attempt, 4000),\n });\n\n // Initial dark state is baked into the URL on first load only; subsequent\n // theme toggles update the iframe's <html class=\"dark\"> via postMessage so\n // the user's interaction state inside the extension survives the toggle.\n const initialDarkRef = useRef(isDark);\n const iframeSrc = useMemo(() => {\n const v = encodeURIComponent(extension?.updatedAt ?? \"\");\n return agentNativePath(\n `/_agent-native/extensions/${extensionId}/render?slot=${encodeURIComponent(slotId)}&dark=${initialDarkRef.current}&v=${v}`,\n );\n }, [extensionId, slotId, extension?.updatedAt]);\n\n // Reset role + binding latch to deny-by-default whenever the iframe is\n // recreated (its key changes). The new render's first binding announcement\n // re-establishes the role.\n useEffect(() => {\n bridgeContextRef.current = { role: \"viewer\", isAuthor: false };\n bindingLatchedRef.current = false;\n }, [extensionId, extension?.updatedAt]);\n\n useEffect(() => {\n const win = iframeRef.current?.contentWindow;\n if (!win) return;\n win.postMessage({ type: \"agent-native-theme-update\", isDark }, \"*\");\n }, [isDark]);\n\n // Forward slot context whenever it changes. The iframe's own load handler\n // posts the initial value once it's ready; this effect handles updates.\n const contextJson = JSON.stringify(context ?? {});\n useEffect(() => {\n const win = iframeRef.current?.contentWindow;\n if (!win) return;\n win.postMessage(\n { type: \"agent-native-slot-context\", context: context ?? {} },\n \"*\",\n );\n }, [contextJson]);\n\n // Bridge extension requests + height reports.\n useEffect(() => {\n const handleMessage = async (event: MessageEvent) => {\n if (event.source !== iframeRef.current?.contentWindow) return;\n const message = event.data;\n if (!message || typeof message !== \"object\") return;\n\n if (message.type === \"agent-native-extension-binding\") {\n // Only the FIRST announcement (sent by the shell before user content\n // runs) is trusted. Ignore re-announcements — a malicious extension\n // body could otherwise postMessage a forged owner binding to escalate.\n if (bindingLatchedRef.current) return;\n bindingLatchedRef.current = true;\n const binding = (message as any).binding ?? {};\n const role: ExtensionBridgeRole =\n binding.role === \"owner\" ||\n binding.role === \"admin\" ||\n binding.role === \"editor\" ||\n binding.role === \"viewer\"\n ? binding.role\n : \"viewer\";\n bridgeContextRef.current = {\n role,\n isAuthor: !!binding.isAuthor,\n source: binding.source === \"local-files\" ? \"local-files\" : \"database\",\n permissions:\n binding && typeof binding.permissions === \"object\"\n ? binding.permissions\n : undefined,\n };\n return;\n }\n\n if (message.type === \"agent-native-extension-resize\") {\n const h = Number(message.height);\n if (Number.isFinite(h) && h > 0) {\n setHeight(Math.ceil(h));\n }\n return;\n }\n\n if (message.type !== \"agent-native-extension-request\") return;\n\n const requestId = String(message.requestId ?? \"\");\n const path = String(message.path ?? \"\");\n const respond = (payload: Record<string, unknown>) => {\n iframeRef.current?.contentWindow?.postMessage(\n { type: \"agent-native-extension-response\", requestId, ...payload },\n \"*\",\n );\n };\n\n if (!requestId || !isAllowedExtensionPath(path, extensionId)) {\n respond({ error: \"Extension request path is not allowed\" });\n return;\n }\n\n try {\n const options = sanitizeExtensionRequestOptions(message.options);\n // (audit H4) Role-aware gating: viewer-shared extensions can read but not\n // write. The bridge policy is decided here in the parent before the\n // request leaves; the server enforces a second layer.\n const policy = checkBridgePolicy(\n path,\n options.method ?? \"GET\",\n bridgeContextRef.current,\n );\n if (!policy.ok) {\n respond({\n response: {\n ok: false,\n status: 403,\n statusText: \"Forbidden\",\n body: { error: policy.error },\n },\n });\n return;\n }\n // (audit H5) Same extension-bridge tagging as <ExtensionViewer>. action-routes\n // uses these headers to enforce per-action `toolCallable` opt-in.\n const finalHeaders = new Headers(options.headers ?? undefined);\n finalHeaders.set(\"X-Agent-Native-Extension-Bridge\", \"1\");\n finalHeaders.set(\"X-Agent-Native-Extension-Id\", extensionId);\n finalHeaders.set(\"X-Agent-Native-Tool-Bridge\", \"1\");\n finalHeaders.set(\"X-Agent-Native-Tool-Id\", extensionId);\n const res = await fetch(agentNativePath(path), {\n ...options,\n headers: finalHeaders,\n credentials: \"same-origin\",\n });\n const text = await res.text();\n let body: unknown = text;\n if (text) {\n try {\n body = JSON.parse(text);\n } catch {\n body = text;\n }\n }\n respond({\n response: {\n ok: res.ok,\n status: res.status,\n statusText: res.statusText,\n body,\n },\n });\n } catch (err: any) {\n respond({ error: err?.message ?? \"Extension host request failed\" });\n }\n };\n\n window.addEventListener(\"message\", handleMessage);\n return () => window.removeEventListener(\"message\", handleMessage);\n }, [extensionId]);\n\n if (!extension) {\n if (!isLoading && !isFetching) return null;\n return (\n <div\n className={className}\n style={{ height: initialHeight }}\n aria-busy=\"true\"\n />\n );\n }\n\n return (\n <div className={`relative group/embedded-extension ${className ?? \"\"}`}>\n <iframe\n ref={iframeRef}\n key={`${extensionId}-${extension.updatedAt ?? \"\"}`}\n src={iframeSrc}\n title={extension.name}\n sandbox=\"allow-scripts allow-forms\"\n style={{ width: \"100%\", border: 0, height, display: \"block\" }}\n onLoad={() => {\n iframeRef.current?.contentWindow?.postMessage(\n { type: \"agent-native-slot-context\", context: context ?? {} },\n \"*\",\n );\n }}\n />\n <EmbeddedToolMenu\n extensionId={extensionId}\n slotId={slotId}\n toolName={extension.name}\n canDelete={extension.canDelete}\n />\n </div>\n );\n}\n\nfunction EmbeddedToolMenu({\n extensionId,\n slotId,\n toolName,\n canDelete,\n}: {\n extensionId: string;\n slotId: string;\n toolName: string;\n canDelete?: boolean;\n}) {\n const t = useT();\n const [open, setOpen] = useState(false);\n const [confirmingDelete, setConfirmingDelete] = useState(false);\n const queryClient = useQueryClient();\n const navigate = useNavigate();\n\n const closeMenu = () => {\n setOpen(false);\n setConfirmingDelete(false);\n };\n\n const removeFromSlot = async () => {\n closeMenu();\n queryClient.setQueryData<any[]>([\"slot-installs\", slotId], (old) =>\n (old ?? []).filter((i) => i.extensionId !== extensionId),\n );\n try {\n await fetch(\n agentNativePath(\n `/_agent-native/slots/${encodeURIComponent(slotId)}/install/${encodeURIComponent(extensionId)}`,\n ),\n { method: \"DELETE\" },\n );\n } finally {\n queryClient.invalidateQueries({ queryKey: [\"slot-installs\", slotId] });\n }\n };\n\n const deleteExtension = async () => {\n closeMenu();\n try {\n await deleteOrHideExtension({ id: extensionId, canDelete });\n invalidateExtensionRemoval(queryClient, extensionId);\n } catch {\n queryClient.invalidateQueries({ queryKey: [\"extension\", extensionId] });\n }\n };\n\n return (\n <Popover\n open={open}\n onOpenChange={(o) => {\n setOpen(o);\n if (!o) setConfirmingDelete(false);\n }}\n >\n <TooltipProvider delayDuration={200}>\n <Tooltip>\n <TooltipTrigger asChild>\n <PopoverTrigger asChild>\n <button\n type=\"button\"\n className=\"absolute top-1 right-1 flex h-6 w-6 items-center justify-center rounded-md bg-background/60 text-muted-foreground/60 opacity-0 hover:bg-accent hover:text-foreground hover:opacity-100 group-hover/embedded-extension:opacity-100 cursor-pointer transition-opacity\"\n aria-label={t(\"extensions.optionsFor\", { name: toolName })}\n >\n <IconDots className=\"h-3.5 w-3.5\" />\n </button>\n </PopoverTrigger>\n </TooltipTrigger>\n <TooltipContent>\n {t(\"extensions.optionsFor\", { name: toolName })}\n </TooltipContent>\n </Tooltip>\n </TooltipProvider>\n <PopoverContent align=\"end\" sideOffset={4} className=\"w-56 p-1\">\n {!confirmingDelete ? (\n <div className=\"flex flex-col\">\n <button\n type=\"button\"\n onClick={() => {\n closeMenu();\n navigate(extensionPath(extensionId, toolName));\n }}\n className=\"flex items-center gap-2 rounded-sm px-2 py-1.5 text-[12px] hover:bg-accent cursor-pointer text-left\"\n >\n <IconExternalLink className=\"h-3.5 w-3.5\" />\n <span>{t(\"extensions.openFullView\")}</span>\n </button>\n <button\n type=\"button\"\n onClick={removeFromSlot}\n className=\"flex items-center gap-2 rounded-sm px-2 py-1.5 text-[12px] hover:bg-accent cursor-pointer text-left\"\n >\n <IconLayoutSidebarRightCollapse className=\"h-3.5 w-3.5\" />\n <span>{t(\"extensions.removeFromWidgetArea\")}</span>\n </button>\n {canDelete !== false && (\n <>\n <div className=\"my-1 h-px bg-border/40\" />\n <button\n type=\"button\"\n onClick={() => setConfirmingDelete(true)}\n className=\"flex items-center gap-2 rounded-sm px-2 py-1.5 text-[12px] text-destructive hover:bg-destructive/10 cursor-pointer text-left\"\n >\n <IconTrash className=\"h-3.5 w-3.5\" />\n <span>{t(\"extensions.deleteExtensionEllipsis\")}</span>\n </button>\n </>\n )}\n </div>\n ) : (\n <div className=\"flex flex-col gap-2 p-2\">\n <p className=\"text-[12px]\">\n {t(\"extensions.deleteQuestion\", { name: toolName })}{\" \"}\n {t(\"extensions.deleteEverywhereConfirmation\")}\n </p>\n <div className=\"flex justify-end gap-1\">\n <button\n type=\"button\"\n onClick={() => setConfirmingDelete(false)}\n className=\"rounded-md px-2 py-1 text-[12px] hover:bg-accent cursor-pointer\"\n >\n {t(\"extensions.cancel\")}\n </button>\n <button\n type=\"button\"\n onClick={deleteExtension}\n className=\"rounded-md bg-destructive px-2 py-1 text-[12px] text-destructive-foreground hover:bg-destructive/90 cursor-pointer\"\n >\n {t(\"extensions.delete\")}\n </button>\n </div>\n </div>\n )}\n </PopoverContent>\n </Popover>\n );\n}\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ExtensionEditor.d.ts","sourceRoot":"","sources":["../../../src/client/extensions/ExtensionEditor.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ExtensionEditor.d.ts","sourceRoot":"","sources":["../../../src/client/extensions/ExtensionEditor.tsx"],"names":[],"mappings":"AA4CA,MAAM,WAAW,oBAAoB;IACnC,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB;AAED,wBAAgB,eAAe,CAAC,EAAE,WAAW,EAAE,EAAE,oBAAoB,2CAwWpE"}
|
|
@@ -7,9 +7,11 @@ import { IconArrowLeft, IconDeviceFloppy, IconDots, IconTrash, IconX, } from "@t
|
|
|
7
7
|
import { Popover, PopoverContent, PopoverTrigger, } from "../components/ui/popover.js";
|
|
8
8
|
import { cn } from "../utils.js";
|
|
9
9
|
import { Tooltip, TooltipContent, TooltipProvider, TooltipTrigger, } from "../components/ui/tooltip.js";
|
|
10
|
+
import { useT } from "../i18n.js";
|
|
10
11
|
import { deleteOrHideExtension, invalidateExtensionRemoval, } from "./delete-extension.js";
|
|
11
12
|
import { extensionPath } from "../../extensions/path.js";
|
|
12
13
|
export function ExtensionEditor({ extensionId }) {
|
|
14
|
+
const t = useT();
|
|
13
15
|
const navigate = useNavigate();
|
|
14
16
|
const queryClient = useQueryClient();
|
|
15
17
|
const isEdit = !!extensionId;
|
|
@@ -125,22 +127,30 @@ export function ExtensionEditor({ extensionId }) {
|
|
|
125
127
|
};
|
|
126
128
|
return (_jsx(TooltipProvider, { delayDuration: 200, children: _jsxs("div", { className: "flex h-full flex-col", children: [_jsxs("header", { className: "flex items-center justify-between border-b px-4 py-3", children: [_jsxs("div", { className: "flex items-center gap-3", children: [_jsx(Link, { to: extensionId
|
|
127
129
|
? extensionPath(extensionId, existingTool?.name ?? name)
|
|
128
|
-
: "/extensions", className: "inline-flex cursor-pointer items-center justify-center rounded-md p-1 text-muted-foreground hover:bg-accent hover:text-accent-foreground", "aria-label": "
|
|
130
|
+
: "/extensions", className: "inline-flex cursor-pointer items-center justify-center rounded-md p-1 text-muted-foreground hover:bg-accent hover:text-accent-foreground", "aria-label": t("extensions.back"), children: _jsx(IconArrowLeft, { className: "h-4 w-4" }) }), _jsx("h1", { className: "text-sm font-semibold", children: isEdit
|
|
131
|
+
? t("extensions.editExtension")
|
|
132
|
+
: t("extensions.newExtension") })] }), _jsxs("div", { className: "flex items-center gap-2", children: [_jsxs("button", { type: "button", onClick: handleSave, disabled: saving || !name.trim(), className: cn("inline-flex cursor-pointer items-center justify-center gap-1.5 rounded-md bg-primary px-3 py-1.5 text-sm text-primary-foreground hover:bg-primary/90", (saving || !name.trim()) && "opacity-60"), children: [_jsx(IconDeviceFloppy, { className: "h-3.5 w-3.5" }), saving
|
|
133
|
+
? t("extensions.saving")
|
|
134
|
+
: isEdit
|
|
135
|
+
? t("extensions.save")
|
|
136
|
+
: t("extensions.create")] }), isEdit && (_jsxs(Popover, { open: menuOpen, onOpenChange: (o) => {
|
|
129
137
|
setMenuOpen(o);
|
|
130
138
|
if (!o)
|
|
131
139
|
setConfirmingDelete(false);
|
|
132
|
-
}, children: [_jsxs(Tooltip, { children: [_jsx(TooltipTrigger, { asChild: true, children: _jsx(PopoverTrigger, { asChild: true, children: _jsx("button", { type: "button", className: "inline-flex h-8 w-8 cursor-pointer items-center justify-center rounded-md text-muted-foreground hover:bg-accent hover:text-accent-foreground", "aria-label": "
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
? "
|
|
138
|
-
: "
|
|
140
|
+
}, children: [_jsxs(Tooltip, { children: [_jsx(TooltipTrigger, { asChild: true, children: _jsx(PopoverTrigger, { asChild: true, children: _jsx("button", { type: "button", className: "inline-flex h-8 w-8 cursor-pointer items-center justify-center rounded-md text-muted-foreground hover:bg-accent hover:text-accent-foreground", "aria-label": t("extensions.moreOptions"), children: _jsx(IconDots, { className: "h-4 w-4" }) }) }) }), _jsx(TooltipContent, { children: t("extensions.moreOptions") })] }), _jsx(PopoverContent, { align: "end", sideOffset: 4, className: "w-72 p-0", children: !confirmingDelete ? (_jsxs(_Fragment, { children: [_jsxs("div", { className: "px-3 py-2 border-b border-border/40", children: [_jsx("p", { className: "text-[12px] font-medium", children: t("extensions.appearsIn") }), slots.length === 0 ? (_jsx("p", { className: "text-[11px] text-muted-foreground/70 mt-0.5", children: t("extensions.noWidgetAreas") })) : (_jsx("p", { className: "text-[11px] text-muted-foreground/70 mt-0.5", children: t("extensions.widgetAreaCount", {
|
|
141
|
+
count: slots.length,
|
|
142
|
+
}) }))] }), slots.length > 0 && (_jsx("div", { className: "max-h-48 overflow-y-auto py-1", children: slots.map((s) => (_jsxs("div", { className: "flex items-center gap-2 px-3 py-1.5 text-[12px]", children: [_jsx("span", { className: "flex-1 truncate font-mono text-[11px] text-muted-foreground", children: s.slotId }), _jsxs(Tooltip, { children: [_jsx(TooltipTrigger, { asChild: true, children: _jsx("button", { type: "button", onClick: () => handleRemoveFromSlot(s.slotId), className: "rounded p-1 text-muted-foreground/60 hover:bg-accent hover:text-foreground cursor-pointer", "aria-label": t("extensions.removeFromWidgetArea"), children: _jsx(IconX, { className: "h-3.5 w-3.5" }) }) }), _jsx(TooltipContent, { children: t("extensions.removeFromWidgetAreaForMe") })] })] }, s.id))) })), _jsx("div", { className: "border-t border-border/40 p-1", children: _jsxs("button", { type: "button", onClick: () => setConfirmingDelete(true), className: "flex w-full items-center gap-2 rounded-sm px-2 py-1.5 text-[12px] text-destructive hover:bg-destructive/10 cursor-pointer text-left", children: [_jsx(IconTrash, { className: "h-3.5 w-3.5" }), _jsx("span", { children: existingTool?.canDelete === false
|
|
143
|
+
? t("extensions.removeFromMyListEllipsis")
|
|
144
|
+
: t("extensions.deleteExtensionEllipsis") })] }) })] })) : (_jsxs("div", { className: "flex flex-col gap-2 p-3", children: [_jsxs("p", { className: "text-[12px]", children: [existingTool?.canDelete === false
|
|
145
|
+
? t("extensions.removeQuestion", { name })
|
|
146
|
+
: t("extensions.deleteQuestion", { name }), " ", existingTool?.canDelete === false
|
|
147
|
+
? t("extensions.hideForYouDescription")
|
|
148
|
+
: t("extensions.deleteEverywhereConfirmation")] }), _jsxs("div", { className: "flex justify-end gap-1", children: [_jsx("button", { type: "button", onClick: () => setConfirmingDelete(false), className: "rounded-md px-2 py-1 text-[12px] hover:bg-accent cursor-pointer", children: t("extensions.cancel") }), _jsx("button", { type: "button", onClick: handleDelete, disabled: deleting, className: cn("rounded-md bg-destructive px-2 py-1 text-[12px] text-destructive-foreground hover:bg-destructive/90 cursor-pointer", deleting && "opacity-60"), children: deleting
|
|
139
149
|
? existingTool?.canDelete === false
|
|
140
|
-
? "
|
|
141
|
-
: "
|
|
150
|
+
? t("extensions.removing")
|
|
151
|
+
: t("extensions.deleting")
|
|
142
152
|
: existingTool?.canDelete === false
|
|
143
|
-
? "
|
|
144
|
-
: "
|
|
153
|
+
? t("extensions.remove")
|
|
154
|
+
: t("extensions.delete") })] })] })) })] }))] })] }), _jsxs("div", { className: "flex flex-1 overflow-hidden", children: [_jsxs("div", { className: "flex w-1/2 flex-col gap-4 overflow-auto border-r p-4", children: [_jsxs("div", { children: [_jsx("label", { className: "mb-1.5 block text-sm font-medium text-foreground", children: t("extensions.nameLabel") }), _jsx("input", { type: "text", value: name, onChange: (e) => setName(e.target.value), placeholder: t("extensions.namePlaceholder"), className: "h-9 w-full rounded-md border border-input bg-background px-3 text-sm text-foreground placeholder:text-muted-foreground focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 focus:ring-offset-background" })] }), _jsxs("div", { children: [_jsx("label", { className: "mb-1.5 block text-sm font-medium text-foreground", children: t("extensions.descriptionLabel") }), _jsx("textarea", { value: description, onChange: (e) => setDescription(e.target.value), placeholder: t("extensions.descriptionPlaceholder"), rows: 2, className: "w-full resize-none rounded-md border border-input bg-background px-3 py-2 text-sm text-foreground placeholder:text-muted-foreground focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 focus:ring-offset-background" })] }), _jsxs("div", { className: "flex flex-1 flex-col", children: [_jsx("label", { className: "mb-1.5 block text-sm font-medium text-foreground", children: t("extensions.contentLabel") }), _jsx("textarea", { value: content, onChange: (e) => setContent(e.target.value), placeholder: t("extensions.contentPlaceholder"), className: "flex-1 resize-none rounded-md border border-input bg-background p-3 font-mono text-sm text-foreground placeholder:text-muted-foreground focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 focus:ring-offset-background", spellCheck: false })] })] }), _jsx("div", { className: "w-1/2", children: content ? (_jsx("iframe", { srcDoc: content, className: "h-full w-full border-0", sandbox: "allow-scripts allow-forms", title: t("extensions.previewTitle") })) : (_jsx("div", { className: "flex h-full items-center justify-center text-sm text-muted-foreground", children: t("extensions.previewEmpty") })) })] })] }) }));
|
|
145
155
|
}
|
|
146
156
|
//# sourceMappingURL=ExtensionEditor.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ExtensionEditor.js","sourceRoot":"","sources":["../../../src/client/extensions/ExtensionEditor.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,gBAAgB,CAAC;AACjD,OAAO,EAAE,QAAQ,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAC5C,OAAO,EAAE,QAAQ,EAAE,cAAc,EAAE,MAAM,uBAAuB,CAAC;AACjE,OAAO,EAAE,IAAI,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AACjD,OAAO,EACL,aAAa,EACb,gBAAgB,EAChB,QAAQ,EACR,SAAS,EACT,KAAK,GACN,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EACL,OAAO,EACP,cAAc,EACd,cAAc,GACf,MAAM,6BAA6B,CAAC;AACrC,OAAO,EAAE,EAAE,EAAE,MAAM,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AAO,EAAC,2BAA2B,EACnC,KAAK,EAAC,mBAAmB,GACzB,CACH,CAAC,CAAC,CAAC,CACF,cAAK,SAAS,EAAC,uEAAuE,yCAEhF,CACP,GACG,IACF,IACF,GACU,CACnB,CAAC;AACJ,CAAC","sourcesContent":["import { agentNativePath } from \"../api-path.js\";\nimport { useState, useEffect } from \"react\";\nimport { useQuery, useQueryClient } from \"@tanstack/react-query\";\nimport { Link, useNavigate } from \"react-router\";\nimport {\n IconArrowLeft,\n IconDeviceFloppy,\n IconDots,\n IconTrash,\n IconX,\n} from \"@tabler/icons-react\";\nimport {\n Popover,\n PopoverContent,\n PopoverTrigger,\n} from \"../components/ui/popover.js\";\nimport { cn } from \"../utils.js\";\nimport {\n Tooltip,\n TooltipContent,\n TooltipProvider,\n TooltipTrigger,\n} from \"../components/ui/tooltip.js\";\nimport {\n deleteOrHideExtension,\n invalidateExtensionRemoval,\n} from \"./delete-extension.js\";\nimport { extensionPath } from \"../../extensions/path.js\";\n\ninterface SlotDeclaration {\n id: string;\n extensionId: string;\n slotId: string;\n}\n\ninterface Extension {\n id: string;\n name: string;\n description?: string;\n content?: string;\n canDelete?: boolean;\n}\n\nexport interface ExtensionEditorProps {\n extensionId?: string;\n}\n\nexport function ExtensionEditor({ extensionId }: ExtensionEditorProps) {\n const navigate = useNavigate();\n const queryClient = useQueryClient();\n const isEdit = !!extensionId;\n\n const [name, setName] = useState(\"\");\n const [description, setDescription] = useState(\"\");\n const [content, setContent] = useState(\"\");\n const [saving, setSaving] = useState(false);\n const [deleting, setDeleting] = useState(false);\n const [menuOpen, setMenuOpen] = useState(false);\n const [confirmingDelete, setConfirmingDelete] = useState(false);\n\n const { data: slots = [] } = useQuery<SlotDeclaration[]>({\n queryKey: [\"extension-slots\", extensionId],\n queryFn: async () => {\n const res = await fetch(\n agentNativePath(`/_agent-native/slots/extension/${extensionId}`),\n );\n if (!res.ok) return [];\n return res.json();\n },\n enabled: isEdit && menuOpen,\n });\n\n const { data: existingTool } = useQuery<Extension>({\n queryKey: [\"extension\", extensionId],\n queryFn: async () => {\n const res = await fetch(\n agentNativePath(`/_agent-native/extensions/${extensionId}`),\n );\n if (!res.ok) throw new Error(\"Failed to fetch extension\");\n return res.json();\n },\n enabled: isEdit,\n });\n\n useEffect(() => {\n if (existingTool) {\n setName(existingTool.name ?? \"\");\n setDescription(existingTool.description ?? \"\");\n setContent(existingTool.content ?? \"\");\n }\n }, [existingTool]);\n\n const handleSave = async () => {\n if (!name.trim()) return;\n setSaving(true);\n try {\n const body = JSON.stringify({\n name: name.trim(),\n description: description.trim() || undefined,\n content,\n });\n\n if (isEdit) {\n const res = await fetch(\n agentNativePath(`/_agent-native/extensions/${extensionId}`),\n {\n method: \"PUT\",\n headers: { \"Content-Type\": \"application/json\" },\n body,\n },\n );\n if (!res.ok) throw new Error(\"Update failed\");\n queryClient.invalidateQueries({ queryKey: [\"extension\", extensionId] });\n queryClient.invalidateQueries({ queryKey: [\"extensions\"] });\n navigate(extensionPath(extensionId, name.trim()));\n } else {\n const res = await fetch(agentNativePath(\"/_agent-native/extensions\"), {\n method: \"POST\",\n headers: { \"Content-Type\": \"application/json\" },\n body,\n });\n if (!res.ok) throw new Error(\"Create failed\");\n const created = await res.json();\n queryClient.invalidateQueries({ queryKey: [\"extensions\"] });\n navigate(extensionPath(created.id, created.name ?? name.trim()));\n }\n } finally {\n setSaving(false);\n }\n };\n\n const handleDelete = async () => {\n if (!extensionId) return;\n setDeleting(true);\n const prev = queryClient.getQueryData<Extension[]>([\"extensions\"]);\n try {\n queryClient.setQueryData<Extension[]>([\"extensions\"], (old) =>\n (old ?? []).filter((t) => t.id !== extensionId),\n );\n\n await deleteOrHideExtension({\n id: extensionId,\n canDelete: existingTool?.canDelete,\n });\n invalidateExtensionRemoval(queryClient, extensionId);\n slots.forEach((s) =>\n queryClient.invalidateQueries({\n queryKey: [\"slot-installs\", s.slotId],\n }),\n );\n navigate(\"/extensions\");\n } catch {\n if (prev) queryClient.setQueryData([\"extensions\"], prev);\n } finally {\n setDeleting(false);\n setConfirmingDelete(false);\n setMenuOpen(false);\n }\n };\n\n const handleRemoveFromSlot = async (slotId: string) => {\n if (!extensionId) return;\n try {\n await fetch(\n agentNativePath(\n `/_agent-native/slots/${encodeURIComponent(slotId)}/install/${encodeURIComponent(extensionId)}`,\n ),\n { method: \"DELETE\" },\n );\n } finally {\n queryClient.invalidateQueries({ queryKey: [\"slot-installs\", slotId] });\n }\n };\n\n return (\n <TooltipProvider delayDuration={200}>\n <div className=\"flex h-full flex-col\">\n <header className=\"flex items-center justify-between border-b px-4 py-3\">\n <div className=\"flex items-center gap-3\">\n <Link\n to={\n extensionId\n ? extensionPath(extensionId, existingTool?.name ?? name)\n : \"/extensions\"\n }\n className=\"inline-flex cursor-pointer items-center justify-center rounded-md p-1 text-muted-foreground hover:bg-accent hover:text-accent-foreground\"\n aria-label=\"Back\"\n >\n <IconArrowLeft className=\"h-4 w-4\" />\n </Link>\n <h1 className=\"text-sm font-semibold\">\n {isEdit ? \"Edit Extension\" : \"New Extension\"}\n </h1>\n </div>\n <div className=\"flex items-center gap-2\">\n <button\n type=\"button\"\n onClick={handleSave}\n disabled={saving || !name.trim()}\n className={cn(\n \"inline-flex cursor-pointer items-center justify-center gap-1.5 rounded-md bg-primary px-3 py-1.5 text-sm text-primary-foreground hover:bg-primary/90\",\n (saving || !name.trim()) && \"opacity-60\",\n )}\n >\n <IconDeviceFloppy className=\"h-3.5 w-3.5\" />\n {saving ? \"Saving...\" : isEdit ? \"Save\" : \"Create\"}\n </button>\n {isEdit && (\n <Popover\n open={menuOpen}\n onOpenChange={(o) => {\n setMenuOpen(o);\n if (!o) setConfirmingDelete(false);\n }}\n >\n <Tooltip>\n <TooltipTrigger asChild>\n <PopoverTrigger asChild>\n <button\n type=\"button\"\n className=\"inline-flex h-8 w-8 cursor-pointer items-center justify-center rounded-md text-muted-foreground hover:bg-accent hover:text-accent-foreground\"\n aria-label=\"More options\"\n >\n <IconDots className=\"h-4 w-4\" />\n </button>\n </PopoverTrigger>\n </TooltipTrigger>\n <TooltipContent>More options</TooltipContent>\n </Tooltip>\n <PopoverContent align=\"end\" sideOffset={4} className=\"w-72 p-0\">\n {!confirmingDelete ? (\n <>\n <div className=\"px-3 py-2 border-b border-border/40\">\n <p className=\"text-[12px] font-medium\">Appears in</p>\n {slots.length === 0 ? (\n <p className=\"text-[11px] text-muted-foreground/70 mt-0.5\">\n Not installed in any widget areas. Ask the agent to\n add it somewhere.\n </p>\n ) : (\n <p className=\"text-[11px] text-muted-foreground/70 mt-0.5\">\n This extension can render in {slots.length} widget\n area\n {slots.length === 1 ? \"\" : \"s\"}.\n </p>\n )}\n </div>\n {slots.length > 0 && (\n <div className=\"max-h-48 overflow-y-auto py-1\">\n {slots.map((s) => (\n <div\n key={s.id}\n className=\"flex items-center gap-2 px-3 py-1.5 text-[12px]\"\n >\n <span className=\"flex-1 truncate font-mono text-[11px] text-muted-foreground\">\n {s.slotId}\n </span>\n <Tooltip>\n <TooltipTrigger asChild>\n <button\n type=\"button\"\n onClick={() =>\n handleRemoveFromSlot(s.slotId)\n }\n className=\"rounded p-1 text-muted-foreground/60 hover:bg-accent hover:text-foreground cursor-pointer\"\n aria-label=\"Remove from this widget area\"\n >\n <IconX className=\"h-3.5 w-3.5\" />\n </button>\n </TooltipTrigger>\n <TooltipContent>\n Remove from this widget area (for me)\n </TooltipContent>\n </Tooltip>\n </div>\n ))}\n </div>\n )}\n <div className=\"border-t border-border/40 p-1\">\n <button\n type=\"button\"\n onClick={() => setConfirmingDelete(true)}\n className=\"flex w-full items-center gap-2 rounded-sm px-2 py-1.5 text-[12px] text-destructive hover:bg-destructive/10 cursor-pointer text-left\"\n >\n <IconTrash className=\"h-3.5 w-3.5\" />\n <span>\n {existingTool?.canDelete === false\n ? \"Remove from my list...\"\n : \"Delete extension...\"}\n </span>\n </button>\n </div>\n </>\n ) : (\n <div className=\"flex flex-col gap-2 p-3\">\n <p className=\"text-[12px]\">\n {existingTool?.canDelete === false\n ? \"Remove \"\n : \"Delete \"}\n <span className=\"font-medium\">{name}</span>?\n {existingTool?.canDelete === false\n ? \" This hides it from your Extensions list without deleting it for anyone else.\"\n : \" This removes the extension everywhere, for everyone it's shared with.\"}\n </p>\n <div className=\"flex justify-end gap-1\">\n <button\n type=\"button\"\n onClick={() => setConfirmingDelete(false)}\n className=\"rounded-md px-2 py-1 text-[12px] hover:bg-accent cursor-pointer\"\n >\n Cancel\n </button>\n <button\n type=\"button\"\n onClick={handleDelete}\n disabled={deleting}\n className={cn(\n \"rounded-md bg-destructive px-2 py-1 text-[12px] text-destructive-foreground hover:bg-destructive/90 cursor-pointer\",\n deleting && \"opacity-60\",\n )}\n >\n {deleting\n ? existingTool?.canDelete === false\n ? \"Removing...\"\n : \"Deleting...\"\n : existingTool?.canDelete === false\n ? \"Remove\"\n : \"Delete\"}\n </button>\n </div>\n </div>\n )}\n </PopoverContent>\n </Popover>\n )}\n </div>\n </header>\n\n <div className=\"flex flex-1 overflow-hidden\">\n <div className=\"flex w-1/2 flex-col gap-4 overflow-auto border-r p-4\">\n <div>\n <label className=\"mb-1.5 block text-sm font-medium text-foreground\">\n Name\n </label>\n <input\n type=\"text\"\n value={name}\n onChange={(e) => setName(e.target.value)}\n placeholder=\"My Extension\"\n className=\"h-9 w-full rounded-md border border-input bg-background px-3 text-sm text-foreground placeholder:text-muted-foreground focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 focus:ring-offset-background\"\n />\n </div>\n\n <div>\n <label className=\"mb-1.5 block text-sm font-medium text-foreground\">\n Description\n </label>\n <textarea\n value={description}\n onChange={(e) => setDescription(e.target.value)}\n placeholder=\"What does this extension do?\"\n rows={2}\n className=\"w-full resize-none rounded-md border border-input bg-background px-3 py-2 text-sm text-foreground placeholder:text-muted-foreground focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 focus:ring-offset-background\"\n />\n </div>\n\n <div className=\"flex flex-1 flex-col\">\n <label className=\"mb-1.5 block text-sm font-medium text-foreground\">\n Content\n </label>\n <textarea\n value={content}\n onChange={(e) => setContent(e.target.value)}\n placeholder=\"<html>...</html>\"\n className=\"flex-1 resize-none rounded-md border border-input bg-background p-3 font-mono text-sm text-foreground placeholder:text-muted-foreground focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 focus:ring-offset-background\"\n spellCheck={false}\n />\n </div>\n </div>\n\n <div className=\"w-1/2\">\n {content ? (\n <iframe\n srcDoc={content}\n className=\"h-full w-full border-0\"\n sandbox=\"allow-scripts allow-forms\"\n title=\"Extension preview\"\n />\n ) : (\n <div className=\"flex h-full items-center justify-center text-sm text-muted-foreground\">\n Preview will appear here\n </div>\n )}\n </div>\n </div>\n </div>\n </TooltipProvider>\n );\n}\n"]}
|
|
1
|
+
{"version":3,"file":"ExtensionEditor.js","sourceRoot":"","sources":["../../../src/client/extensions/ExtensionEditor.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,gBAAgB,CAAC;AACjD,OAAO,EAAE,QAAQ,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAC5C,OAAO,EAAE,QAAQ,EAAE,cAAc,EAAE,MAAM,uBAAuB,CAAC;AACjE,OAAO,EAAE,IAAI,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AACjD,OAAO,EACL,aAAa,EACb,gBAAgB,EAChB,QAAQ,EACR,SAAS,EACT,KAAK,GACN,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EACL,OAAO,EACP,cAAc,EACd,cAAc,GACf,MAAM,6BAA6B,CAAC;AACrC,OAAO,EAAE,EAAE,EAAE,MAAM,aAAa,CAAC;AACjC,OAAO,EACL,OAAO,EACP,cAAc,EACd,eAAe,EACf,cAAc,GACf,MAAM,6BAA6B,CAAC;AACrC,OAAO,EAAE,IAAI,EAAE,MAAM,YAAY,CAAC;AAClC,OAAO,EACL,qBAAqB,EACrB,0BAA0B,GAC3B,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EAAE,aAAa,EAAE,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S,EAAC,sOAAsO,GAChP,IACE,EAEN,eAAK,SAAS,EAAC,sBAAsB,aACnC,gBAAO,SAAS,EAAC,kDAAkD,YAChE,CAAC,CAAC,yBAAyB,CAAC,GACvB,EACR,mBACE,KAAK,EAAE,OAAO,EACd,QAAQ,EAAE,CAAC,CAAC,EAAE,EAAE,CAAC,UAAU,CAAC,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,EAC3C,WAAW,EAAE,CAAC,CAAC,+BAA+B,CAAC,EAC/C,SAAS,EAAC,0OAA0O,EACpP,UAAU,EAAE,KAAK,GACjB,IACE,IACF,EAEN,cAAK,SAAS,EAAC,OAAO,YACnB,OAAO,CAAC,CAAC,CAAC,CACT,iBACE,MAAM,EAAE,OAAO,EACf,SAAS,EAAC,wBAAwB,EAClC,OAAO,EAAC,2BAA2B,EACnC,KAAK,EAAE,CAAC,CAAC,yBAAyB,CAAC,GACnC,CACH,CAAC,CAAC,CAAC,CACF,cAAK,SAAS,EAAC,uEAAuE,YACnF,CAAC,CAAC,yBAAyB,CAAC,GACzB,CACP,GACG,IACF,IACF,GACU,CACnB,CAAC;AACJ,CAAC","sourcesContent":["import { agentNativePath } from \"../api-path.js\";\nimport { useState, useEffect } from \"react\";\nimport { useQuery, useQueryClient } from \"@tanstack/react-query\";\nimport { Link, useNavigate } from \"react-router\";\nimport {\n IconArrowLeft,\n IconDeviceFloppy,\n IconDots,\n IconTrash,\n IconX,\n} from \"@tabler/icons-react\";\nimport {\n Popover,\n PopoverContent,\n PopoverTrigger,\n} from \"../components/ui/popover.js\";\nimport { cn } from \"../utils.js\";\nimport {\n Tooltip,\n TooltipContent,\n TooltipProvider,\n TooltipTrigger,\n} from \"../components/ui/tooltip.js\";\nimport { useT } from \"../i18n.js\";\nimport {\n deleteOrHideExtension,\n invalidateExtensionRemoval,\n} from \"./delete-extension.js\";\nimport { extensionPath } from \"../../extensions/path.js\";\n\ninterface SlotDeclaration {\n id: string;\n extensionId: string;\n slotId: string;\n}\n\ninterface Extension {\n id: string;\n name: string;\n description?: string;\n content?: string;\n canDelete?: boolean;\n}\n\nexport interface ExtensionEditorProps {\n extensionId?: string;\n}\n\nexport function ExtensionEditor({ extensionId }: ExtensionEditorProps) {\n const t = useT();\n const navigate = useNavigate();\n const queryClient = useQueryClient();\n const isEdit = !!extensionId;\n\n const [name, setName] = useState(\"\");\n const [description, setDescription] = useState(\"\");\n const [content, setContent] = useState(\"\");\n const [saving, setSaving] = useState(false);\n const [deleting, setDeleting] = useState(false);\n const [menuOpen, setMenuOpen] = useState(false);\n const [confirmingDelete, setConfirmingDelete] = useState(false);\n\n const { data: slots = [] } = useQuery<SlotDeclaration[]>({\n queryKey: [\"extension-slots\", extensionId],\n queryFn: async () => {\n const res = await fetch(\n agentNativePath(`/_agent-native/slots/extension/${extensionId}`),\n );\n if (!res.ok) return [];\n return res.json();\n },\n enabled: isEdit && menuOpen,\n });\n\n const { data: existingTool } = useQuery<Extension>({\n queryKey: [\"extension\", extensionId],\n queryFn: async () => {\n const res = await fetch(\n agentNativePath(`/_agent-native/extensions/${extensionId}`),\n );\n if (!res.ok) throw new Error(\"Failed to fetch extension\");\n return res.json();\n },\n enabled: isEdit,\n });\n\n useEffect(() => {\n if (existingTool) {\n setName(existingTool.name ?? \"\");\n setDescription(existingTool.description ?? \"\");\n setContent(existingTool.content ?? \"\");\n }\n }, [existingTool]);\n\n const handleSave = async () => {\n if (!name.trim()) return;\n setSaving(true);\n try {\n const body = JSON.stringify({\n name: name.trim(),\n description: description.trim() || undefined,\n content,\n });\n\n if (isEdit) {\n const res = await fetch(\n agentNativePath(`/_agent-native/extensions/${extensionId}`),\n {\n method: \"PUT\",\n headers: { \"Content-Type\": \"application/json\" },\n body,\n },\n );\n if (!res.ok) throw new Error(\"Update failed\");\n queryClient.invalidateQueries({ queryKey: [\"extension\", extensionId] });\n queryClient.invalidateQueries({ queryKey: [\"extensions\"] });\n navigate(extensionPath(extensionId, name.trim()));\n } else {\n const res = await fetch(agentNativePath(\"/_agent-native/extensions\"), {\n method: \"POST\",\n headers: { \"Content-Type\": \"application/json\" },\n body,\n });\n if (!res.ok) throw new Error(\"Create failed\");\n const created = await res.json();\n queryClient.invalidateQueries({ queryKey: [\"extensions\"] });\n navigate(extensionPath(created.id, created.name ?? name.trim()));\n }\n } finally {\n setSaving(false);\n }\n };\n\n const handleDelete = async () => {\n if (!extensionId) return;\n setDeleting(true);\n const prev = queryClient.getQueryData<Extension[]>([\"extensions\"]);\n try {\n queryClient.setQueryData<Extension[]>([\"extensions\"], (old) =>\n (old ?? []).filter((t) => t.id !== extensionId),\n );\n\n await deleteOrHideExtension({\n id: extensionId,\n canDelete: existingTool?.canDelete,\n });\n invalidateExtensionRemoval(queryClient, extensionId);\n slots.forEach((s) =>\n queryClient.invalidateQueries({\n queryKey: [\"slot-installs\", s.slotId],\n }),\n );\n navigate(\"/extensions\");\n } catch {\n if (prev) queryClient.setQueryData([\"extensions\"], prev);\n } finally {\n setDeleting(false);\n setConfirmingDelete(false);\n setMenuOpen(false);\n }\n };\n\n const handleRemoveFromSlot = async (slotId: string) => {\n if (!extensionId) return;\n try {\n await fetch(\n agentNativePath(\n `/_agent-native/slots/${encodeURIComponent(slotId)}/install/${encodeURIComponent(extensionId)}`,\n ),\n { method: \"DELETE\" },\n );\n } finally {\n queryClient.invalidateQueries({ queryKey: [\"slot-installs\", slotId] });\n }\n };\n\n return (\n <TooltipProvider delayDuration={200}>\n <div className=\"flex h-full flex-col\">\n <header className=\"flex items-center justify-between border-b px-4 py-3\">\n <div className=\"flex items-center gap-3\">\n <Link\n to={\n extensionId\n ? extensionPath(extensionId, existingTool?.name ?? name)\n : \"/extensions\"\n }\n className=\"inline-flex cursor-pointer items-center justify-center rounded-md p-1 text-muted-foreground hover:bg-accent hover:text-accent-foreground\"\n aria-label={t(\"extensions.back\")}\n >\n <IconArrowLeft className=\"h-4 w-4\" />\n </Link>\n <h1 className=\"text-sm font-semibold\">\n {isEdit\n ? t(\"extensions.editExtension\")\n : t(\"extensions.newExtension\")}\n </h1>\n </div>\n <div className=\"flex items-center gap-2\">\n <button\n type=\"button\"\n onClick={handleSave}\n disabled={saving || !name.trim()}\n className={cn(\n \"inline-flex cursor-pointer items-center justify-center gap-1.5 rounded-md bg-primary px-3 py-1.5 text-sm text-primary-foreground hover:bg-primary/90\",\n (saving || !name.trim()) && \"opacity-60\",\n )}\n >\n <IconDeviceFloppy className=\"h-3.5 w-3.5\" />\n {saving\n ? t(\"extensions.saving\")\n : isEdit\n ? t(\"extensions.save\")\n : t(\"extensions.create\")}\n </button>\n {isEdit && (\n <Popover\n open={menuOpen}\n onOpenChange={(o) => {\n setMenuOpen(o);\n if (!o) setConfirmingDelete(false);\n }}\n >\n <Tooltip>\n <TooltipTrigger asChild>\n <PopoverTrigger asChild>\n <button\n type=\"button\"\n className=\"inline-flex h-8 w-8 cursor-pointer items-center justify-center rounded-md text-muted-foreground hover:bg-accent hover:text-accent-foreground\"\n aria-label={t(\"extensions.moreOptions\")}\n >\n <IconDots className=\"h-4 w-4\" />\n </button>\n </PopoverTrigger>\n </TooltipTrigger>\n <TooltipContent>{t(\"extensions.moreOptions\")}</TooltipContent>\n </Tooltip>\n <PopoverContent align=\"end\" sideOffset={4} className=\"w-72 p-0\">\n {!confirmingDelete ? (\n <>\n <div className=\"px-3 py-2 border-b border-border/40\">\n <p className=\"text-[12px] font-medium\">\n {t(\"extensions.appearsIn\")}\n </p>\n {slots.length === 0 ? (\n <p className=\"text-[11px] text-muted-foreground/70 mt-0.5\">\n {t(\"extensions.noWidgetAreas\")}\n </p>\n ) : (\n <p className=\"text-[11px] text-muted-foreground/70 mt-0.5\">\n {t(\"extensions.widgetAreaCount\", {\n count: slots.length,\n })}\n </p>\n )}\n </div>\n {slots.length > 0 && (\n <div className=\"max-h-48 overflow-y-auto py-1\">\n {slots.map((s) => (\n <div\n key={s.id}\n className=\"flex items-center gap-2 px-3 py-1.5 text-[12px]\"\n >\n <span className=\"flex-1 truncate font-mono text-[11px] text-muted-foreground\">\n {s.slotId}\n </span>\n <Tooltip>\n <TooltipTrigger asChild>\n <button\n type=\"button\"\n onClick={() =>\n handleRemoveFromSlot(s.slotId)\n }\n className=\"rounded p-1 text-muted-foreground/60 hover:bg-accent hover:text-foreground cursor-pointer\"\n aria-label={t(\n \"extensions.removeFromWidgetArea\",\n )}\n >\n <IconX className=\"h-3.5 w-3.5\" />\n </button>\n </TooltipTrigger>\n <TooltipContent>\n {t(\"extensions.removeFromWidgetAreaForMe\")}\n </TooltipContent>\n </Tooltip>\n </div>\n ))}\n </div>\n )}\n <div className=\"border-t border-border/40 p-1\">\n <button\n type=\"button\"\n onClick={() => setConfirmingDelete(true)}\n className=\"flex w-full items-center gap-2 rounded-sm px-2 py-1.5 text-[12px] text-destructive hover:bg-destructive/10 cursor-pointer text-left\"\n >\n <IconTrash className=\"h-3.5 w-3.5\" />\n <span>\n {existingTool?.canDelete === false\n ? t(\"extensions.removeFromMyListEllipsis\")\n : t(\"extensions.deleteExtensionEllipsis\")}\n </span>\n </button>\n </div>\n </>\n ) : (\n <div className=\"flex flex-col gap-2 p-3\">\n <p className=\"text-[12px]\">\n {existingTool?.canDelete === false\n ? t(\"extensions.removeQuestion\", { name })\n : t(\"extensions.deleteQuestion\", { name })}{\" \"}\n {existingTool?.canDelete === false\n ? t(\"extensions.hideForYouDescription\")\n : t(\"extensions.deleteEverywhereConfirmation\")}\n </p>\n <div className=\"flex justify-end gap-1\">\n <button\n type=\"button\"\n onClick={() => setConfirmingDelete(false)}\n className=\"rounded-md px-2 py-1 text-[12px] hover:bg-accent cursor-pointer\"\n >\n {t(\"extensions.cancel\")}\n </button>\n <button\n type=\"button\"\n onClick={handleDelete}\n disabled={deleting}\n className={cn(\n \"rounded-md bg-destructive px-2 py-1 text-[12px] text-destructive-foreground hover:bg-destructive/90 cursor-pointer\",\n deleting && \"opacity-60\",\n )}\n >\n {deleting\n ? existingTool?.canDelete === false\n ? t(\"extensions.removing\")\n : t(\"extensions.deleting\")\n : existingTool?.canDelete === false\n ? t(\"extensions.remove\")\n : t(\"extensions.delete\")}\n </button>\n </div>\n </div>\n )}\n </PopoverContent>\n </Popover>\n )}\n </div>\n </header>\n\n <div className=\"flex flex-1 overflow-hidden\">\n <div className=\"flex w-1/2 flex-col gap-4 overflow-auto border-r p-4\">\n <div>\n <label className=\"mb-1.5 block text-sm font-medium text-foreground\">\n {t(\"extensions.nameLabel\")}\n </label>\n <input\n type=\"text\"\n value={name}\n onChange={(e) => setName(e.target.value)}\n placeholder={t(\"extensions.namePlaceholder\")}\n className=\"h-9 w-full rounded-md border border-input bg-background px-3 text-sm text-foreground placeholder:text-muted-foreground focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 focus:ring-offset-background\"\n />\n </div>\n\n <div>\n <label className=\"mb-1.5 block text-sm font-medium text-foreground\">\n {t(\"extensions.descriptionLabel\")}\n </label>\n <textarea\n value={description}\n onChange={(e) => setDescription(e.target.value)}\n placeholder={t(\"extensions.descriptionPlaceholder\")}\n rows={2}\n className=\"w-full resize-none rounded-md border border-input bg-background px-3 py-2 text-sm text-foreground placeholder:text-muted-foreground focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 focus:ring-offset-background\"\n />\n </div>\n\n <div className=\"flex flex-1 flex-col\">\n <label className=\"mb-1.5 block text-sm font-medium text-foreground\">\n {t(\"extensions.contentLabel\")}\n </label>\n <textarea\n value={content}\n onChange={(e) => setContent(e.target.value)}\n placeholder={t(\"extensions.contentPlaceholder\")}\n className=\"flex-1 resize-none rounded-md border border-input bg-background p-3 font-mono text-sm text-foreground placeholder:text-muted-foreground focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 focus:ring-offset-background\"\n spellCheck={false}\n />\n </div>\n </div>\n\n <div className=\"w-1/2\">\n {content ? (\n <iframe\n srcDoc={content}\n className=\"h-full w-full border-0\"\n sandbox=\"allow-scripts allow-forms\"\n title={t(\"extensions.previewTitle\")}\n />\n ) : (\n <div className=\"flex h-full items-center justify-center text-sm text-muted-foreground\">\n {t(\"extensions.previewEmpty\")}\n </div>\n )}\n </div>\n </div>\n </div>\n </TooltipProvider>\n );\n}\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ExtensionSlot.d.ts","sourceRoot":"","sources":["../../../src/client/extensions/ExtensionSlot.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ExtensionSlot.d.ts","sourceRoot":"","sources":["../../../src/client/extensions/ExtensionSlot.tsx"],"names":[],"mappings":"AAsCA,MAAM,WAAW,kBAAkB;IACjC,sEAAsE;IACtE,EAAE,EAAE,MAAM,CAAC;IACX,iEAAiE;IACjE,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,IAAI,CAAC;IACzC,iFAAiF;IACjF,mBAAmB,CAAC,EAAE,OAAO,CAAC;IAC9B,iDAAiD;IACjD,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,4DAA4D;IAC5D,aAAa,CAAC,EAAE,MAAM,CAAC;CACxB;AAED;;;;;;;;;;;;GAYG;AACH,wBAAgB,aAAa,CAAC,EAC5B,EAAE,EACF,OAAO,EACP,mBAAmB,EACnB,SAAS,EACT,aAAa,GACd,EAAE,kBAAkB,kDAwCpB"}
|
|
@@ -7,6 +7,7 @@ import { Popover, PopoverContent, PopoverTrigger, } from "../components/ui/popov
|
|
|
7
7
|
import { sendToAgentChat } from "../agent-chat.js";
|
|
8
8
|
import { EmbeddedExtension } from "./EmbeddedExtension.js";
|
|
9
9
|
import { Tooltip, TooltipContent, TooltipProvider, TooltipTrigger, } from "../components/ui/tooltip.js";
|
|
10
|
+
import { useT } from "../i18n.js";
|
|
10
11
|
/**
|
|
11
12
|
* A named UI slot that user-installed extensions can render into. Apps drop this
|
|
12
13
|
* component wherever they want to allow extensions; the framework handles
|
|
@@ -41,6 +42,7 @@ export function ExtensionSlot({ id, context, showEmptyAffordance, className, too
|
|
|
41
42
|
return (_jsx("div", { className: className, children: installs.map((install) => (_jsx(EmbeddedExtension, { extensionId: install.extensionId, slotId: id, context: context, className: toolClassName }, install.installId))) }));
|
|
42
43
|
}
|
|
43
44
|
function SlotEmptyAffordance({ slotId }) {
|
|
45
|
+
const t = useT();
|
|
44
46
|
const [open, setOpen] = useState(false);
|
|
45
47
|
const { data: available = [], isLoading } = useQuery({
|
|
46
48
|
queryKey: ["slot-available", slotId],
|
|
@@ -87,23 +89,23 @@ function SlotEmptyAffordance({ slotId }) {
|
|
|
87
89
|
const requestNew = () => {
|
|
88
90
|
setOpen(false);
|
|
89
91
|
sendToAgentChat({
|
|
90
|
-
message:
|
|
92
|
+
message: t("extensions.createWidgetPrompt", { slotId }),
|
|
91
93
|
submit: false,
|
|
92
94
|
openSidebar: true,
|
|
93
95
|
});
|
|
94
96
|
};
|
|
95
|
-
const slotDescription = describeSlot(slotId);
|
|
96
|
-
return (_jsxs(Popover, { open: open, onOpenChange: setOpen, children: [_jsx(TooltipProvider, { delayDuration: 200, children: _jsxs(Tooltip, { children: [_jsx(TooltipTrigger, { asChild: true, children: _jsx(PopoverTrigger, { asChild: true, children: _jsxs("button", { type: "button", className: "flex w-full items-center gap-2 px-4 py-2 text-[11px] text-muted-foreground/60 hover:text-muted-foreground cursor-pointer", children: [_jsx("div", { className: "h-5 w-5 rounded-md border border-dashed border-border/40 flex items-center justify-center shrink-0", children: _jsx(IconPlus, { className: "h-3 w-3" }) }), _jsx("span", { children: "
|
|
97
|
+
const slotDescription = describeSlot(slotId, t);
|
|
98
|
+
return (_jsxs(Popover, { open: open, onOpenChange: setOpen, children: [_jsx(TooltipProvider, { delayDuration: 200, children: _jsxs(Tooltip, { children: [_jsx(TooltipTrigger, { asChild: true, children: _jsx(PopoverTrigger, { asChild: true, children: _jsxs("button", { type: "button", className: "flex w-full items-center gap-2 px-4 py-2 text-[11px] text-muted-foreground/60 hover:text-muted-foreground cursor-pointer", children: [_jsx("div", { className: "h-5 w-5 rounded-md border border-dashed border-border/40 flex items-center justify-center shrink-0", children: _jsx(IconPlus, { className: "h-3 w-3" }) }), _jsx("span", { children: t("extensions.addWidget") })] }) }) }), _jsx(TooltipContent, { children: t("extensions.addWidget") })] }) }), _jsxs(PopoverContent, { side: "left", align: "end", sideOffset: 8, className: "w-72 p-0 overflow-hidden", children: [_jsxs("div", { className: "px-3 py-2 border-b border-border/40", children: [_jsx("p", { className: "text-[12px] font-medium", children: slotDescription.title }), _jsx("p", { className: "text-[11px] text-muted-foreground/70", children: slotDescription.description })] }), _jsxs("div", { className: "max-h-72 overflow-y-auto py-1", children: [isLoading && (_jsx("div", { className: "px-3 py-3 text-[12px] text-muted-foreground/60", children: t("extensions.loading") })), !isLoading && available.length === 0 && (_jsx("div", { className: "px-3 py-3 text-[12px] text-muted-foreground/60", children: t("extensions.noWidgetsAvailable") })), available.map((extension) => (_jsx("button", { type: "button", onClick: () => install(extension.extensionId), className: "flex w-full items-start gap-2 px-3 py-2 text-left hover:bg-accent cursor-pointer", children: _jsxs("div", { className: "flex-1 min-w-0", children: [_jsx("p", { className: "text-[12px] font-medium truncate", children: extension.name }), extension.description && (_jsx("p", { className: "text-[11px] text-muted-foreground/70 truncate", children: extension.description }))] }) }, extension.extensionId)))] }), _jsx("div", { className: "border-t border-border/40 p-1", children: _jsxs("button", { type: "button", onClick: requestNew, className: "flex w-full items-center gap-2 rounded-md px-3 py-2 text-[12px] text-muted-foreground hover:bg-accent hover:text-foreground cursor-pointer", children: [_jsx(IconPlus, { className: "h-3.5 w-3.5" }), _jsx("span", { children: t("extensions.buildNewWidget") })] }) })] })] }));
|
|
97
99
|
}
|
|
98
|
-
function describeSlot(slotId) {
|
|
100
|
+
function describeSlot(slotId, t) {
|
|
99
101
|
if (slotId === "mail.contact-sidebar.bottom") {
|
|
100
102
|
return {
|
|
101
|
-
title: "
|
|
102
|
-
description: "
|
|
103
|
+
title: t("extensions.contactSidebarWidget"),
|
|
104
|
+
description: t("extensions.contactSidebarDescription"),
|
|
103
105
|
};
|
|
104
106
|
}
|
|
105
107
|
return {
|
|
106
|
-
title: "
|
|
108
|
+
title: t("extensions.addWidgetHere"),
|
|
107
109
|
description: slotId,
|
|
108
110
|
};
|
|
109
111
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ExtensionSlot.js","sourceRoot":"","sources":["../../../src/client/extensions/ExtensionSlot.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,gBAAgB,CAAC;AACjD,OAAO,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACjC,OAAO,EAAE,QAAQ,EAAE,cAAc,EAAE,MAAM,uBAAuB,CAAC;AACjE,OAAO,EAAE,QAAQ,EAAE,MAAM,qBAAqB,CAAC;AAC/C,OAAO,EACL,OAAO,EACP,cAAc,EACd,cAAc,GACf,MAAM,6BAA6B,CAAC;AACrC,OAAO,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAC;AACnD,OAAO,EAAE,iBAAiB,EAAE,MAAM,wBAAwB,CAAC;AAC3D,OAAO,EACL,OAAO,EACP,cAAc,EACd,eAAe,EACf,cAAc,GACf,MAAM,6BAA6B,CAAC;AAkCrC;;;;;;;;;;;;GAYG;AACH,MAAM,UAAU,aAAa,CAAC,EAC5B,EAAE,EACF,OAAO,EACP,mBAAmB,EACnB,SAAS,EACT,aAAa,GACM;IACnB,MAAM,EAAE,IAAI,EAAE,QAAQ,GAAG,EAAE,EAAE,SAAS,EAAE,GAAG,QAAQ,CAAgB;QACjE,QAAQ,EAAE,CAAC,eAAe,EAAE,EAAE,CAAC;QAC/B,OAAO,EAAE,KAAK,IAAI,EAAE;YAClB,MAAM,GAAG,GAAG,MAAM,KAAK,CACrB,eAAe,CACb,wBAAwB,kBAAkB,CAAC,EAAE,CAAC,WAAW,CAC1D,CACF,CAAC;YACF,IAAI,CAAC,GAAG,CAAC,EAAE;gBAAE,OAAO,EAAE,CAAC;YACvB,OAAO,GAAG,CAAC,IAAI,EAAE,CAAC;QACpB,CAAC;KACF,CAAC,CAAC;IA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F,eAAK,SAAS,EAAC,gBAAgB,aAC7B,YAAG,SAAS,EAAC,kCAAkC,YAC5C,SAAS,CAAC,IAAI,GACb,EACH,SAAS,CAAC,WAAW,IAAI,CACxB,YAAG,SAAS,EAAC,+CAA+C,YACzD,SAAS,CAAC,WAAW,GACpB,CACL,IACG,IAdD,SAAS,CAAC,WAAW,CAenB,CACV,CAAC,IACE,EACN,cAAK,SAAS,EAAC,+BAA+B,YAC5C,kBACE,IAAI,EAAC,QAAQ,EACb,OAAO,EAAE,UAAU,EACnB,SAAS,EAAC,4IAA4I,aAEtJ,KAAC,QAAQ,IAAC,SAAS,EAAC,aAAa,GAAG,EACpC,gDAA+B,IACxB,GACL,IACS,IACT,CACX,CAAC;AACJ,CAAC;AAED,SAAS,YAAY,CAAC,MAAc;IAClC,IAAI,MAAM,KAAK,6BAA6B,EAAE,CAAC;QAC7C,OAAO;YACL,KAAK,EAAE,wBAAwB;YAC/B,WAAW,EACT,0EAA0E;SAC7E,CAAC;IACJ,CAAC;IAED,OAAO;QACL,KAAK,EAAE,iBAAiB;QACxB,WAAW,EAAE,MAAM;KACpB,CAAC;AACJ,CAAC","sourcesContent":["import { agentNativePath } from \"../api-path.js\";\nimport { useState } from \"react\";\nimport { useQuery, useQueryClient } from \"@tanstack/react-query\";\nimport { IconPlus } from \"@tabler/icons-react\";\nimport {\n Popover,\n PopoverContent,\n PopoverTrigger,\n} from \"../components/ui/popover.js\";\nimport { sendToAgentChat } from \"../agent-chat.js\";\nimport { EmbeddedExtension } from \"./EmbeddedExtension.js\";\nimport {\n Tooltip,\n TooltipContent,\n TooltipProvider,\n TooltipTrigger,\n} from \"../components/ui/tooltip.js\";\n\ninterface SlotInstall {\n installId: string;\n extensionId: string;\n name: string;\n description: string;\n icon: string | null;\n updatedAt: string;\n position: number;\n config: string | null;\n}\n\ninterface AvailableTool {\n extensionId: string;\n name: string;\n description: string;\n icon: string | null;\n config: string | null;\n}\n\nexport interface ExtensionSlotProps {\n /** Stable slot identifier — convention: `<app>.<area>.<position>`. */\n id: string;\n /** Object pushed to each embedded extension as `slotContext`. */\n context?: Record<string, unknown> | null;\n /** Show a small \"+\" affordance when the slot has no installs. Default: false. */\n showEmptyAffordance?: boolean;\n /** Optional className applied to the wrapper. */\n className?: string;\n /** Optional className applied to each EmbeddedExtension. */\n toolClassName?: string;\n}\n\n/**\n * A named UI slot that user-installed extensions can render into. Apps drop this\n * component wherever they want to allow extensions; the framework handles\n * fetching, sandboxing, context delivery, and lifecycle.\n *\n * Example:\n *\n * <ExtensionSlot\n * id=\"mail.contact-sidebar.bottom\"\n * context={{ contactEmail }}\n * showEmptyAffordance\n * />\n */\nexport function ExtensionSlot({\n id,\n context,\n showEmptyAffordance,\n className,\n toolClassName,\n}: ExtensionSlotProps) {\n const { data: installs = [], isLoading } = useQuery<SlotInstall[]>({\n queryKey: [\"slot-installs\", id],\n queryFn: async () => {\n const res = await fetch(\n agentNativePath(\n `/_agent-native/slots/${encodeURIComponent(id)}/installs`,\n ),\n );\n if (!res.ok) return [];\n return res.json();\n },\n });\n\n if (isLoading) {\n return null;\n }\n\n if (installs.length === 0) {\n if (!showEmptyAffordance) return null;\n return (\n <div className={className}>\n <SlotEmptyAffordance slotId={id} />\n </div>\n );\n }\n\n return (\n <div className={className}>\n {installs.map((install) => (\n <EmbeddedExtension\n key={install.installId}\n extensionId={install.extensionId}\n slotId={id}\n context={context}\n className={toolClassName}\n />\n ))}\n </div>\n );\n}\n\nfunction SlotEmptyAffordance({ slotId }: { slotId: string }) {\n const [open, setOpen] = useState(false);\n const { data: available = [], isLoading } = useQuery<AvailableTool[]>({\n queryKey: [\"slot-available\", slotId],\n queryFn: async () => {\n const res = await fetch(\n agentNativePath(\n `/_agent-native/slots/${encodeURIComponent(slotId)}/available`,\n ),\n );\n if (!res.ok) return [];\n return res.json();\n },\n enabled: open,\n });\n const queryClient = useQueryClient();\n\n const install = async (extensionId: string) => {\n queryClient.setQueryData<SlotInstall[]>(\n [\"slot-installs\", slotId],\n (old) => {\n const extension = available.find((t) => t.extensionId === extensionId);\n if (!extension || !old) return old;\n return [\n ...old,\n {\n installId: `optimistic-${extensionId}`,\n extensionId,\n name: extension.name,\n description: extension.description,\n icon: extension.icon,\n updatedAt: new Date().toISOString(),\n position: old.length,\n config: extension.config,\n },\n ];\n },\n );\n setOpen(false);\n try {\n await fetch(\n agentNativePath(\n `/_agent-native/slots/${encodeURIComponent(slotId)}/install`,\n ),\n {\n method: \"POST\",\n headers: { \"Content-Type\": \"application/json\" },\n body: JSON.stringify({ extensionId }),\n },\n );\n } finally {\n queryClient.invalidateQueries({ queryKey: [\"slot-installs\", slotId] });\n }\n };\n\n const requestNew = () => {\n setOpen(false);\n sendToAgentChat({\n message: `Create a new widget that fits in slot \"${slotId}\". I'll describe what it should do next.`,\n submit: false,\n openSidebar: true,\n });\n };\n const slotDescription = describeSlot(slotId);\n\n return (\n <Popover open={open} onOpenChange={setOpen}>\n <TooltipProvider delayDuration={200}>\n <Tooltip>\n <TooltipTrigger asChild>\n <PopoverTrigger asChild>\n <button\n type=\"button\"\n className=\"flex w-full items-center gap-2 px-4 py-2 text-[11px] text-muted-foreground/60 hover:text-muted-foreground cursor-pointer\"\n >\n <div className=\"h-5 w-5 rounded-md border border-dashed border-border/40 flex items-center justify-center shrink-0\">\n <IconPlus className=\"h-3 w-3\" />\n </div>\n <span>Add widget</span>\n </button>\n </PopoverTrigger>\n </TooltipTrigger>\n <TooltipContent>Add a widget</TooltipContent>\n </Tooltip>\n </TooltipProvider>\n <PopoverContent\n side=\"left\"\n align=\"end\"\n sideOffset={8}\n className=\"w-72 p-0 overflow-hidden\"\n >\n <div className=\"px-3 py-2 border-b border-border/40\">\n <p className=\"text-[12px] font-medium\">{slotDescription.title}</p>\n <p className=\"text-[11px] text-muted-foreground/70\">\n {slotDescription.description}\n </p>\n </div>\n <div className=\"max-h-72 overflow-y-auto py-1\">\n {isLoading && (\n <div className=\"px-3 py-3 text-[12px] text-muted-foreground/60\">\n Loading…\n </div>\n )}\n {!isLoading && available.length === 0 && (\n <div className=\"px-3 py-3 text-[12px] text-muted-foreground/60\">\n No widgets available for this slot yet.\n </div>\n )}\n {available.map((extension) => (\n <button\n key={extension.extensionId}\n type=\"button\"\n onClick={() => install(extension.extensionId)}\n className=\"flex w-full items-start gap-2 px-3 py-2 text-left hover:bg-accent cursor-pointer\"\n >\n <div className=\"flex-1 min-w-0\">\n <p className=\"text-[12px] font-medium truncate\">\n {extension.name}\n </p>\n {extension.description && (\n <p className=\"text-[11px] text-muted-foreground/70 truncate\">\n {extension.description}\n </p>\n )}\n </div>\n </button>\n ))}\n </div>\n <div className=\"border-t border-border/40 p-1\">\n <button\n type=\"button\"\n onClick={requestNew}\n className=\"flex w-full items-center gap-2 rounded-md px-3 py-2 text-[12px] text-muted-foreground hover:bg-accent hover:text-foreground cursor-pointer\"\n >\n <IconPlus className=\"h-3.5 w-3.5\" />\n <span>Build a new widget</span>\n </button>\n </div>\n </PopoverContent>\n </Popover>\n );\n}\n\nfunction describeSlot(slotId: string): { title: string; description: string } {\n if (slotId === \"mail.contact-sidebar.bottom\") {\n return {\n title: \"Contact sidebar widget\",\n description:\n \"Appears beside the current conversation with contact and thread context.\",\n };\n }\n\n return {\n title: \"Add widget here\",\n description: slotId,\n };\n}\n"]}
|
|
1
|
+
{"version":3,"file":"ExtensionSlot.js","sourceRoot":"","sources":["../../../src/client/extensions/ExtensionSlot.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,gBAAgB,CAAC;AACjD,OAAO,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACjC,OAAO,EAAE,QAAQ,EAAE,cAAc,EAAE,MAAM,uBAAuB,CAAC;AACjE,OAAO,EAAE,QAAQ,EAAE,MAAM,qBAAqB,CAAC;AAC/C,OAAO,EACL,OAAO,EACP,cAAc,EACd,cAAc,GACf,MAAM,6BAA6B,CAAC;AACrC,OAAO,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAC;AACnD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ACb,OAAO,EAAE,UAAU,EACnB,SAAS,EAAC,4IAA4I,aAEtJ,KAAC,QAAQ,IAAC,SAAS,EAAC,aAAa,GAAG,EACpC,yBAAO,CAAC,CAAC,2BAA2B,CAAC,GAAQ,IACtC,GACL,IACS,IACT,CACX,CAAC;AACJ,CAAC;AAED,SAAS,YAAY,CACnB,MAAc,EACd,CAA0B;IAE1B,IAAI,MAAM,KAAK,6BAA6B,EAAE,CAAC;QAC7C,OAAO;YACL,KAAK,EAAE,CAAC,CAAC,iCAAiC,CAAC;YAC3C,WAAW,EAAE,CAAC,CAAC,sCAAsC,CAAC;SACvD,CAAC;IACJ,CAAC;IAED,OAAO;QACL,KAAK,EAAE,CAAC,CAAC,0BAA0B,CAAC;QACpC,WAAW,EAAE,MAAM;KACpB,CAAC;AACJ,CAAC","sourcesContent":["import { agentNativePath } from \"../api-path.js\";\nimport { useState } from \"react\";\nimport { useQuery, useQueryClient } from \"@tanstack/react-query\";\nimport { IconPlus } from \"@tabler/icons-react\";\nimport {\n Popover,\n PopoverContent,\n PopoverTrigger,\n} from \"../components/ui/popover.js\";\nimport { sendToAgentChat } from \"../agent-chat.js\";\nimport { EmbeddedExtension } from \"./EmbeddedExtension.js\";\nimport {\n Tooltip,\n TooltipContent,\n TooltipProvider,\n TooltipTrigger,\n} from \"../components/ui/tooltip.js\";\nimport { useT } from \"../i18n.js\";\n\ninterface SlotInstall {\n installId: string;\n extensionId: string;\n name: string;\n description: string;\n icon: string | null;\n updatedAt: string;\n position: number;\n config: string | null;\n}\n\ninterface AvailableTool {\n extensionId: string;\n name: string;\n description: string;\n icon: string | null;\n config: string | null;\n}\n\nexport interface ExtensionSlotProps {\n /** Stable slot identifier — convention: `<app>.<area>.<position>`. */\n id: string;\n /** Object pushed to each embedded extension as `slotContext`. */\n context?: Record<string, unknown> | null;\n /** Show a small \"+\" affordance when the slot has no installs. Default: false. */\n showEmptyAffordance?: boolean;\n /** Optional className applied to the wrapper. */\n className?: string;\n /** Optional className applied to each EmbeddedExtension. */\n toolClassName?: string;\n}\n\n/**\n * A named UI slot that user-installed extensions can render into. Apps drop this\n * component wherever they want to allow extensions; the framework handles\n * fetching, sandboxing, context delivery, and lifecycle.\n *\n * Example:\n *\n * <ExtensionSlot\n * id=\"mail.contact-sidebar.bottom\"\n * context={{ contactEmail }}\n * showEmptyAffordance\n * />\n */\nexport function ExtensionSlot({\n id,\n context,\n showEmptyAffordance,\n className,\n toolClassName,\n}: ExtensionSlotProps) {\n const { data: installs = [], isLoading } = useQuery<SlotInstall[]>({\n queryKey: [\"slot-installs\", id],\n queryFn: async () => {\n const res = await fetch(\n agentNativePath(\n `/_agent-native/slots/${encodeURIComponent(id)}/installs`,\n ),\n );\n if (!res.ok) return [];\n return res.json();\n },\n });\n\n if (isLoading) {\n return null;\n }\n\n if (installs.length === 0) {\n if (!showEmptyAffordance) return null;\n return (\n <div className={className}>\n <SlotEmptyAffordance slotId={id} />\n </div>\n );\n }\n\n return (\n <div className={className}>\n {installs.map((install) => (\n <EmbeddedExtension\n key={install.installId}\n extensionId={install.extensionId}\n slotId={id}\n context={context}\n className={toolClassName}\n />\n ))}\n </div>\n );\n}\n\nfunction SlotEmptyAffordance({ slotId }: { slotId: string }) {\n const t = useT();\n const [open, setOpen] = useState(false);\n const { data: available = [], isLoading } = useQuery<AvailableTool[]>({\n queryKey: [\"slot-available\", slotId],\n queryFn: async () => {\n const res = await fetch(\n agentNativePath(\n `/_agent-native/slots/${encodeURIComponent(slotId)}/available`,\n ),\n );\n if (!res.ok) return [];\n return res.json();\n },\n enabled: open,\n });\n const queryClient = useQueryClient();\n\n const install = async (extensionId: string) => {\n queryClient.setQueryData<SlotInstall[]>(\n [\"slot-installs\", slotId],\n (old) => {\n const extension = available.find((t) => t.extensionId === extensionId);\n if (!extension || !old) return old;\n return [\n ...old,\n {\n installId: `optimistic-${extensionId}`,\n extensionId,\n name: extension.name,\n description: extension.description,\n icon: extension.icon,\n updatedAt: new Date().toISOString(),\n position: old.length,\n config: extension.config,\n },\n ];\n },\n );\n setOpen(false);\n try {\n await fetch(\n agentNativePath(\n `/_agent-native/slots/${encodeURIComponent(slotId)}/install`,\n ),\n {\n method: \"POST\",\n headers: { \"Content-Type\": \"application/json\" },\n body: JSON.stringify({ extensionId }),\n },\n );\n } finally {\n queryClient.invalidateQueries({ queryKey: [\"slot-installs\", slotId] });\n }\n };\n\n const requestNew = () => {\n setOpen(false);\n sendToAgentChat({\n message: t(\"extensions.createWidgetPrompt\", { slotId }),\n submit: false,\n openSidebar: true,\n });\n };\n const slotDescription = describeSlot(slotId, t);\n\n return (\n <Popover open={open} onOpenChange={setOpen}>\n <TooltipProvider delayDuration={200}>\n <Tooltip>\n <TooltipTrigger asChild>\n <PopoverTrigger asChild>\n <button\n type=\"button\"\n className=\"flex w-full items-center gap-2 px-4 py-2 text-[11px] text-muted-foreground/60 hover:text-muted-foreground cursor-pointer\"\n >\n <div className=\"h-5 w-5 rounded-md border border-dashed border-border/40 flex items-center justify-center shrink-0\">\n <IconPlus className=\"h-3 w-3\" />\n </div>\n <span>{t(\"extensions.addWidget\")}</span>\n </button>\n </PopoverTrigger>\n </TooltipTrigger>\n <TooltipContent>{t(\"extensions.addWidget\")}</TooltipContent>\n </Tooltip>\n </TooltipProvider>\n <PopoverContent\n side=\"left\"\n align=\"end\"\n sideOffset={8}\n className=\"w-72 p-0 overflow-hidden\"\n >\n <div className=\"px-3 py-2 border-b border-border/40\">\n <p className=\"text-[12px] font-medium\">{slotDescription.title}</p>\n <p className=\"text-[11px] text-muted-foreground/70\">\n {slotDescription.description}\n </p>\n </div>\n <div className=\"max-h-72 overflow-y-auto py-1\">\n {isLoading && (\n <div className=\"px-3 py-3 text-[12px] text-muted-foreground/60\">\n {t(\"extensions.loading\")}\n </div>\n )}\n {!isLoading && available.length === 0 && (\n <div className=\"px-3 py-3 text-[12px] text-muted-foreground/60\">\n {t(\"extensions.noWidgetsAvailable\")}\n </div>\n )}\n {available.map((extension) => (\n <button\n key={extension.extensionId}\n type=\"button\"\n onClick={() => install(extension.extensionId)}\n className=\"flex w-full items-start gap-2 px-3 py-2 text-left hover:bg-accent cursor-pointer\"\n >\n <div className=\"flex-1 min-w-0\">\n <p className=\"text-[12px] font-medium truncate\">\n {extension.name}\n </p>\n {extension.description && (\n <p className=\"text-[11px] text-muted-foreground/70 truncate\">\n {extension.description}\n </p>\n )}\n </div>\n </button>\n ))}\n </div>\n <div className=\"border-t border-border/40 p-1\">\n <button\n type=\"button\"\n onClick={requestNew}\n className=\"flex w-full items-center gap-2 rounded-md px-3 py-2 text-[12px] text-muted-foreground hover:bg-accent hover:text-foreground cursor-pointer\"\n >\n <IconPlus className=\"h-3.5 w-3.5\" />\n <span>{t(\"extensions.buildNewWidget\")}</span>\n </button>\n </div>\n </PopoverContent>\n </Popover>\n );\n}\n\nfunction describeSlot(\n slotId: string,\n t: ReturnType<typeof useT>,\n): { title: string; description: string } {\n if (slotId === \"mail.contact-sidebar.bottom\") {\n return {\n title: t(\"extensions.contactSidebarWidget\"),\n description: t(\"extensions.contactSidebarDescription\"),\n };\n }\n\n return {\n title: t(\"extensions.addWidgetHere\"),\n description: slotId,\n };\n}\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ExtensionsListPage.d.ts","sourceRoot":"","sources":["../../../src/client/extensions/ExtensionsListPage.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ExtensionsListPage.d.ts","sourceRoot":"","sources":["../../../src/client/extensions/ExtensionsListPage.tsx"],"names":[],"mappings":"AA+FA,wBAAgB,kBAAkB,4CAuUjC"}
|