Your lightweight open-source personal agent.
Python agent-frameworkai-agentai-agentschatbotchatopsdiscord-botllm-agentsllmslocal-llmmcpmodel-context-protocolmulti-agentopenai-compatibleopenclawpersonal-ai-assistantpythonself-hostedtelegram-bot-ai-assistantwebuiworkflow-automation
fix(linear): clarify setup actions and MCP configuration
chengyongru1fc44e091bfc
diff --git a/nanobot/channels/linear/tests/webui/LinearPanel.test.tsx b/nanobot/channels/linear/tests/webui/LinearPanel.test.tsxindex eac904161..159346c46 100644--- a/nanobot/channels/linear/tests/webui/LinearPanel.test.tsx+++ b/nanobot/channels/linear/tests/webui/LinearPanel.test.tsx@@ -90,6 +90,52 @@ describe("Linear channel UI", () => {expect(manifest.webhook?.resourceTypes).not.toContain("Comment");});+ it("prompts for the missing public URL and focuses its field after dismissal", async () => {+ mockFeature(linearFeature);+ renderSettingsView({ initialSection: "channels" });+ fireEvent.click(await screen.findByRole("button", { name: "View Linear settings" }));+ const createApp = await screen.findByRole("button", { name: "Create Linear app" });+ expect(createApp).toBeEnabled();+ fireEvent.click(createApp);+ const prompt = await screen.findByRole("alertdialog", { name: "Public HTTPS URL" });+ expect(prompt).toHaveTextContent("Enter a public HTTPS URL to create a Linear app.");+ expect(requestMutationMock).not.toHaveBeenCalled();+ fireEvent.click(within(prompt).getByRole("button", { name: "Close" }));+ await waitFor(() => expect(screen.queryByRole("alertdialog")).not.toBeInTheDocument());+ expect(screen.getByRole("textbox", { name: "Public HTTPS URL" })).toHaveFocus();+ expect(screen.getByRole("dialog")).toBeVisible();+ });++ it("opens the Linear MCP connection settings without starting authorization", async () => {+ mockFeature(savedFeature());+ renderSettingsView({ initialSection: "channels" });+ fireEvent.click(await screen.findByRole("button", { name: "View Linear settings" }));+ await screen.findByRole("textbox", { name: "OAuth client ID" });+ expect(screen.queryByText("Pair on first use; connect Linear MCP to search or edit issues.")).not.toBeInTheDocument();+ fireEvent.keyDown(screen.getByRole("button", { name: "Help" }), { key: "ArrowDown" });+ expect(await screen.findByText("Pair on first use; connect Linear MCP to search or edit issues.")).toBeVisible();+ fireEvent.keyDown(screen.getByRole("menu"), { key: "Escape" });+ fireEvent.click(await screen.findByRole("button", { name: "Configure Linear MCP" }));+ const dialog = await screen.findByRole("dialog", { name: "Linear" });+ expect(within(dialog).getByRole("button", { name: "Connect" })).toBeVisible();+ expect(screen.queryByRole("button", { name: "Configure Linear MCP" })).not.toBeInTheDocument();+ expect(requestMutationMock).not.toHaveBeenCalled();+ });++ it("keeps the channel draft open when saving before MCP setup fails", async () => {+ mockFeature(savedFeature());+ requestMutationMock.mockRejectedValueOnce(new Error("Unable to save settings"));+ renderSettingsView({ initialSection: "channels" });+ fireEvent.click(await screen.findByRole("button", { name: "View Linear settings" }));+ fireEvent.change(await screen.findByRole("textbox", { name: "OAuth client ID" }), {+ target: { value: "replacement-client" },+ });+ fireEvent.click(await screen.findByRole("button", { name: "Configure Linear MCP" }));+ expect(await screen.findByRole("alert")).toHaveTextContent("Unable to save settings");+ expect(screen.getByRole("textbox", { name: "OAuth client ID" })).toHaveValue("replacement-client");+ expect(screen.queryByRole("dialog", { name: "Linear" })).not.toBeInTheDocument();+ });+it("automatically saves a public URL before OAuth credentials and reveals the app button", async () => {vi.stubGlobal("fetch",@@ -154,7 +200,7 @@ describe("Linear channel UI", () => {await screen.findByText("Settings saved."),).toBeInTheDocument();expect(- await screen.findByRole("link", { name: "Create prefilled Linear app" }),+ await screen.findByRole("link", { name: "Create Linear app" }),).toBeInTheDocument();expect(screen.getByRole("button", { name: "Connect Linear" })).toBeDisabled();});@@ -496,7 +542,15 @@ function mockFeature(feature: NanobotFeatureInfo) {const url = String(input);if (url === "/api/settings") return jsonResponse(settingsPayload());if (url === "/api/settings/cli-apps") return jsonResponse({ apps: [], installed_count: 0 });- if (url === "/api/settings/mcp-presets") return jsonResponse({ presets: [], installed_count: 0 });+ if (url === "/api/settings/mcp-presets") return jsonResponse({+ presets: [{+ name: "linear", display_name: "Linear", category: "productivity",+ description: "Search and update Linear issues.", transport: "streamableHttp",+ auth: "oauth", install_supported: true, installed: false, configured: false,+ available: false, status: "not_installed", required_fields: [],+ enabled_tools: ["*"], source: "preset", connection_summary: "",+ }], installed_count: 0,+ });if (url === "/api/settings/nanobot-features") return jsonResponse({ features: [feature], enabled_count: 0 });return { ok: false, status: 404, json: async () => ({}) } as Response;}));diff --git a/nanobot/channels/linear/webui/LinearHelpContent.tsx b/nanobot/channels/linear/webui/LinearHelpContent.tsxnew file mode 100644index 000000000..8bfb4b0b4--- /dev/null+++ b/nanobot/channels/linear/webui/LinearHelpContent.tsx@@ -0,0 +1,24 @@+import { useTranslation } from "react-i18next";++import { channelTranslator } from "@/channel-plugins/i18n";+import type { ChannelPluginHelpProps } from "@/channel-plugins/types";+import { DropdownMenuSeparator } from "@/components/ui/dropdown-menu";++export function LinearHelpContent({ feature }: ChannelPluginHelpProps) {+ const { t } = useTranslation();+ const tx = channelTranslator(t, "linear");+ const allowFrom = feature.config_values?.["channels.linear.allowFrom"]?.trim() ?? "";++ return (+ <>+ <p className="max-w-72 px-3 py-2 text-[12px] leading-5 text-muted-foreground">+ {allowFrom === "*"+ ? tx("custom.accessAll", "Every member of an authorized workspace can run this agent.")+ : allowFrom+ ? tx("custom.accessRestricted", "Only the Linear user IDs listed in Advanced can run this agent.")+ : tx("custom.accessPairing", "Pair on first use; connect Linear MCP to search or edit issues.")}+ </p>+ <DropdownMenuSeparator />+ </>+ );+}diff --git a/nanobot/channels/linear/webui/LinearPanel.tsx b/nanobot/channels/linear/webui/LinearPanel.tsxindex 4f220ed26..15b66c53e 100644--- a/nanobot/channels/linear/webui/LinearPanel.tsx+++ b/nanobot/channels/linear/webui/LinearPanel.tsx@@ -6,6 +6,7 @@ import { channelTranslator } from "@/channel-plugins/i18n";import type { ChannelPluginPanelProps } from "@/channel-plugins/types";import {CredentialForm,+ channelFieldInputId,channelValuesForSubmit,defaultChannelFieldValues,} from "@/components/settings/channels/CredentialForm";@@ -17,6 +18,15 @@ import {localizedChannelDisplayName,} from "@/components/settings/channels/ChannelIdentity";import { Button } from "@/components/ui/button";+import {+ AlertDialog,+ AlertDialogCancel,+ AlertDialogContent,+ AlertDialogDescription,+ AlertDialogFooter,+ AlertDialogHeader,+ AlertDialogTitle,+} from "@/components/ui/alert-dialog";import { channelValidationStatusClass } from "@/components/settings/channels/ChannelValidationProgress";import { useAutoSave } from "@/components/settings/shared/useAutoSave";import { configureChannel, disableNanobotFeature, startChannelConnect } from "@/lib/api";@@ -30,7 +40,6 @@ import { linearManifestUrl } from "./manifest";const PUBLIC_BASE_URL_KEY = "channels.linear.publicBaseUrl";const WEBHOOK_PATH_KEY = "channels.linear.webhookPath";const CALLBACK_PATH_KEY = "channels.linear.oauthCallbackPath";-const ALLOW_FROM_KEY = "channels.linear.allowFrom";export function LinearPanel({token,@@ -39,6 +48,7 @@ export function LinearPanel({showBrandLogos,onFeaturesUpdate,onBeforeCloseChange,+ onConfigureMcp,}: ChannelPluginPanelProps) {const { client } = useClient();const { t, i18n } = useTranslation();@@ -64,6 +74,7 @@ export function LinearPanel({const [connecting, setConnecting] = useState(false);const [notice, setNotice] = useState<string | null>(null);const [saved, setSaved] = useState(false);+ const [publicUrlPromptOpen, setPublicUrlPromptOpen] = useState(false);const [installations, setInstallations] = useState<ChannelInstallationSummary[]>([]);const [loadingInstallations, setLoadingInstallations] = useState(false);const [disconnectingId, setDisconnectingId] = useState<string | null>(null);@@ -104,7 +115,6 @@ export function LinearPanel({feature.config_values?.[CALLBACK_PATH_KEY] || "/linear/oauth/callback",): null;- const allowFrom = feature.config_values?.[ALLOW_FROM_KEY]?.trim() ?? "";const loadInstallations = useCallback(async () => {if (!credentialsSaved || dirty) return;@@ -275,11 +285,6 @@ export function LinearPanel({</div><ChannelRuntimeError message={feature.runtime_error} /><CredentialForm {...formProps} fields={fields.filter((field) => field.key === PUBLIC_BASE_URL_KEY)} />- {!manifestUrl || manifestDirty ? (- <p className="text-[12px] leading-5 text-muted-foreground">- {tx("custom.savePublicUrl", "Enter a public HTTPS URL to create a prefilled Linear app.")}- </p>- ) : null}<CredentialForm {...formProps} fields={fields.filter((field) => field.key !== PUBLIC_BASE_URL_KEY)} /><div id={advancedPanelId} hidden={!advancedOpen}><CredentialForm {...formProps} fields={advancedFields} />@@ -294,26 +299,6 @@ export function LinearPanel({</div>) : null}</form>- <section className="mt-5 space-y-3" aria-labelledby="linear-access-heading">- <div>- <h4 id="linear-access-heading" className="text-[13px] font-semibold text-foreground">- {tx("custom.accessTitle", "Access and issue tools")}- </h4>- <p className="mt-1 text-[12px] leading-5 text-muted-foreground">- {allowFrom === "*"- ? tx("custom.accessAll", "Every member of an authorized workspace can run this agent.")- : allowFrom- ? tx("custom.accessRestricted", "Only the Linear user IDs listed in Advanced can run this agent.")- : tx("custom.accessPairing", "On first use, mention nanobot in Linear, approve the pairing code in Settings → Pairing, then mention it again.")}- </p>- <p className="mt-2 text-[12px] leading-5 text-muted-foreground">- {tx("custom.mcpDescription", "This channel handles agent conversations. Connect Linear tools to let the agent search or change issues.")}{" "}- <a href="#/apps" className="font-medium text-foreground underline underline-offset-4">- {tx("custom.configureTools", "Configure Linear tools")}- </a>- </p>- </div>- </section>{feature.runtime_status === "running" ? (<section className="mt-5 space-y-3" aria-labelledby="linear-workspaces-heading"><div className="flex flex-wrap items-center justify-between gap-2">@@ -400,19 +385,29 @@ export function LinearPanel({onActiveChange={setConnecting}renderActions={(connectButton) => (<div className="flex flex-wrap items-center justify-end gap-2 sm:grid sm:grid-cols-[minmax(0,1fr)_auto_auto]">- <div className="me-auto min-w-0 max-w-full">+ <div className="me-auto flex min-w-0 max-w-full flex-wrap items-center gap-2">+ <Button type="button" variant="outline" size="sm"+ className="h-auto min-h-10 whitespace-normal rounded-full px-4 py-2 text-[12px]"+ disabled={busy || connecting || !onConfigureMcp}+ onClick={async () => {+ if (await saveSettings()) onConfigureMcp?.("linear");+ }}>+ {tx("custom.configureTools", "Configure Linear MCP")}+ </Button>{manifestUrl && !manifestDirty ? (- <Button asChild variant="secondary" size="sm"+ <Button asChild variant="outline" size="sm"className="h-auto min-h-10 max-w-full gap-2 whitespace-normal rounded-full px-4 py-2 text-[12px]"><a href={manifestUrl} target="_blank" rel="noreferrer">- {tx("custom.createApp", "Create prefilled Linear app")}+ {tx("custom.createApp", "Create Linear app")}<ExternalLink className="h-3.5 w-3.5 shrink-0" aria-hidden /></a></Button>) : (- <Button variant="secondary" size="sm" disabled+ <Button type="button" variant="outline" size="sm"+ disabled={Boolean(fieldValues[PUBLIC_BASE_URL_KEY]?.trim())}+ onClick={() => setPublicUrlPromptOpen(true)}className="h-auto min-h-10 max-w-full whitespace-normal rounded-full px-4 py-2 text-[12px]">- {tx("custom.createApp", "Create prefilled Linear app")}+ {tx("custom.createApp", "Create Linear app")}</Button>)}</div>@@ -429,11 +424,26 @@ export function LinearPanel({</fieldset></div>)} />- {dirty || !credentialsSaved ? (- <p className="mt-2 text-[12px] leading-5 text-muted-foreground">- {tx("custom.saveBeforeConnect", "Enter the app credentials and wait for them to save before connecting.")}- </p>- ) : null}+ <AlertDialog open={publicUrlPromptOpen} onOpenChange={setPublicUrlPromptOpen}>+ <AlertDialogContent onCloseAutoFocus={(event) => {+ event.preventDefault();+ document.getElementById(channelFieldInputId(PUBLIC_BASE_URL_KEY))?.focus();+ }}>+ <AlertDialogHeader>+ <AlertDialogTitle>+ {tx("setup.fields.publicBaseUrl.label", "Public HTTPS URL")}+ </AlertDialogTitle>+ <AlertDialogDescription>+ {tx("custom.savePublicUrl", "Enter a public HTTPS URL to create a Linear app.")}+ </AlertDialogDescription>+ </AlertDialogHeader>+ <AlertDialogFooter>+ <AlertDialogCancel>+ {t("common.close", { defaultValue: "Close" })}+ </AlertDialogCancel>+ </AlertDialogFooter>+ </AlertDialogContent>+ </AlertDialog></aside>);}diff --git a/nanobot/channels/linear/webui/index.tsx b/nanobot/channels/linear/webui/index.tsxindex 929bd773f..e9aa1893d 100644--- a/nanobot/channels/linear/webui/index.tsx+++ b/nanobot/channels/linear/webui/index.tsx@@ -3,6 +3,8 @@ import { lazy } from "react";import type { ChannelUiContribution } from "@/channel-plugins/types";import { chatAppGuideUrl } from "@/components/settings/channels/catalog";+import { LinearHelpContent } from "./LinearHelpContent";+const LinearPanel = lazy(() =>import("./LinearPanel").then(({ LinearPanel: component }) => ({default: component,@@ -11,6 +13,7 @@ const LinearPanel = lazy(() =>export default {Panel: LinearPanel,+ HelpContent: LinearHelpContent,presentation: {displayName: "Linear",initials: "LI",diff --git a/nanobot/channels/linear/webui/locales/en.json b/nanobot/channels/linear/webui/locales/en.jsonindex 2bef3cf87..3e730cc49 100644--- a/nanobot/channels/linear/webui/locales/en.json+++ b/nanobot/channels/linear/webui/locales/en.json@@ -10,7 +10,7 @@"Expose this nanobot instance through a stable HTTPS URL (a tunnel is fine).","Create a private OAuth app in Linear with read, write, app:mentionable, and app:assignable scopes.","Subscribe the app webhook to AgentSessionEvent, PermissionChange, and OAuthAuthorization using the generated webhook URL.",- "Enter the app credentials, wait for them to save automatically, connect the workspace with OAuth, then @mention the app on an issue."+ "Connect the workspace with OAuth, then mention the app or delegate an issue to it."],"fields": {"clientId": {@@ -71,18 +71,15 @@"reconnect": "Connect another workspace","connect": "Connect Linear","openLinear": "Continue in Linear",- "createApp": "Create prefilled Linear app",- "savePublicUrl": "Enter a public HTTPS URL to create a prefilled Linear app.",- "saveBeforeConnect": "Enter the app credentials and wait for them to save before connecting.",+ "createApp": "Create Linear app",+ "savePublicUrl": "Enter a public HTTPS URL to create a Linear app.","removeCredentials": "Remove saved credentials","retrySave": "Retry","channelRunning": "Channel running",- "accessTitle": "Access and issue tools","accessAll": "Every member of an authorized workspace can run this agent.","accessRestricted": "Only the Linear user IDs listed in Advanced can run this agent.",- "accessPairing": "On first use, mention nanobot in Linear, approve the pairing code in Settings → Pairing, then mention it again.",- "mcpDescription": "This channel handles agent conversations. Connect Linear tools to let the agent search or change issues.",- "configureTools": "Configure Linear tools",+ "accessPairing": "Pair on first use; connect Linear MCP to search or edit issues.",+ "configureTools": "Configure Linear MCP","workspacesTitle": "Authorized workspaces","refreshWorkspaces": "Refresh workspaces","loadingWorkspaces": "Loading workspaces",diff --git a/nanobot/channels/linear/webui/locales/es.json b/nanobot/channels/linear/webui/locales/es.jsonindex 0e879cd31..f95b331a7 100644--- a/nanobot/channels/linear/webui/locales/es.json+++ b/nanobot/channels/linear/webui/locales/es.json@@ -4,13 +4,13 @@"setup": {"docsLabel": "Abrir la guía de configuración de Linear","officialLabel": "Crear una aplicación OAuth de Linear",- "tryIt": "Menciona la aplicación en un comentario de una incidencia. Las respuestas dentro de su sesión de agente no necesitan otra mención.",- "summary": "Crea una aplicación OAuth privada de Linear, guarda sus credenciales y la URL pública y, después, autoriza el espacio de trabajo. Cada sesión nueva requiere una @mención explícita; los comentarios normales se ignoran.",+ "tryIt": "Menciona la aplicación o delégale una incidencia; no necesitas volver a mencionarla dentro de la sesión de agente.",+ "summary": "Crea una aplicación OAuth privada de Linear, guarda sus credenciales y la URL pública y autoriza el espacio de trabajo. Inicia una sesión mencionando la aplicación o delegándole una incidencia; los comentarios normales se ignoran.","steps": ["Expón esta instancia de nanobot mediante una URL HTTPS estable (puedes usar un túnel).","Crea una aplicación OAuth privada en Linear con los permisos read, write, app:mentionable y app:assignable.","Suscribe el webhook de la aplicación a AgentSessionEvent, PermissionChange y OAuthAuthorization con la URL generada.",- "Introduce las credenciales de la aplicación, espera a que se guarden automáticamente, conecta el espacio de trabajo con OAuth y menciona la aplicación con @ en una incidencia."+ "Conecta el espacio de trabajo con OAuth y menciona la aplicación o delégale una incidencia."],"fields": {"clientId": {@@ -71,18 +71,15 @@"reconnect": "Conectar otro espacio de trabajo","connect": "Conectar Linear","openLinear": "Continuar en Linear",- "createApp": "Crear app de Linear preconfigurada",- "savePublicUrl": "Introduce una URL HTTPS pública para crear una aplicación de Linear preconfigurada.",- "saveBeforeConnect": "Introduce las credenciales de la aplicación y espera a que se guarden antes de conectar.",+ "createApp": "Crear aplicación de Linear",+ "savePublicUrl": "Introduce una URL HTTPS pública para crear una aplicación de Linear.","removeCredentials": "Eliminar credenciales guardadas","retrySave": "Reintentar","channelRunning": "Canal en ejecución",- "accessTitle": "Acceso y herramientas de incidencias","accessAll": "Todos los miembros de un espacio autorizado pueden ejecutar este agente.","accessRestricted": "Solo los ID de usuario de Linear indicados en Avanzado pueden ejecutar este agente.",- "accessPairing": "En el primer uso, menciona a nanobot en Linear, aprueba el código en Ajustes → Emparejamiento y vuelve a mencionarlo.",- "mcpDescription": "Este canal gestiona las conversaciones del agente. Conecta las herramientas de Linear para buscar o modificar incidencias.",- "configureTools": "Configurar herramientas de Linear",+ "accessPairing": "Empareja en el primer uso y conecta Linear MCP para buscar o editar issues.",+ "configureTools": "Configurar Linear MCP","workspacesTitle": "Espacios autorizados","refreshWorkspaces": "Actualizar espacios","loadingWorkspaces": "Cargando espacios",diff --git a/nanobot/channels/linear/webui/locales/fr.json b/nanobot/channels/linear/webui/locales/fr.jsonindex 4dcb3b391..5e83e11c3 100644--- a/nanobot/channels/linear/webui/locales/fr.json+++ b/nanobot/channels/linear/webui/locales/fr.json@@ -4,13 +4,13 @@"setup": {"docsLabel": "Ouvrir le guide de configuration Linear","officialLabel": "Créer une application OAuth Linear",- "tryIt": "Mentionnez l’application dans un commentaire de ticket. Les messages suivants dans sa session d’agent ne nécessitent pas de nouvelle mention.",- "summary": "Créez une application OAuth Linear privée, enregistrez ses identifiants et son URL publique, puis autorisez l’espace de travail. Chaque nouvelle session exige une @mention explicite ; les commentaires ordinaires sont ignorés.",+ "tryIt": "Mentionnez l’application ou déléguez-lui un ticket ; aucune nouvelle mention n’est nécessaire dans la session d’agent.",+ "summary": "Créez une application OAuth Linear privée, enregistrez ses identifiants et son URL publique, puis autorisez l’espace de travail. Lancez une session en mentionnant l’application ou en lui déléguant un ticket ; les commentaires ordinaires sont ignorés.","steps": ["Exposez cette instance nanobot avec une URL HTTPS stable (un tunnel convient).","Créez une application OAuth privée dans Linear avec les autorisations read, write, app:mentionable et app:assignable.","Abonnez le webhook de l’application à AgentSessionEvent, PermissionChange et OAuthAuthorization avec l’URL générée.",- "Saisissez les identifiants de l’application, attendez leur enregistrement automatique, connectez l’espace de travail avec OAuth, puis mentionnez l’application avec @ dans une issue."+ "Connectez l’espace de travail avec OAuth, puis mentionnez l’application ou déléguez-lui un ticket."],"fields": {"clientId": {@@ -71,18 +71,15 @@"reconnect": "Connecter un autre espace de travail","connect": "Connecter Linear","openLinear": "Continuer dans Linear",- "createApp": "Créer une application Linear préremplie",- "savePublicUrl": "Saisissez une URL HTTPS publique pour créer une application Linear préremplie.",- "saveBeforeConnect": "Saisissez les identifiants de l’application et attendez leur enregistrement avant de vous connecter.",+ "createApp": "Créer une application Linear",+ "savePublicUrl": "Saisissez une URL HTTPS publique pour créer une application Linear.","removeCredentials": "Supprimer les identifiants enregistrés","retrySave": "Réessayer","channelRunning": "Canal en cours d’exécution",- "accessTitle": "Accès et outils pour les tickets","accessAll": "Tous les membres d’un espace autorisé peuvent exécuter cet agent.","accessRestricted": "Seuls les ID utilisateur Linear répertoriés dans Avancé peuvent exécuter cet agent.",- "accessPairing": "À la première utilisation, mentionnez nanobot dans Linear, approuvez le code dans Paramètres → Association, puis mentionnez-le à nouveau.",- "mcpDescription": "Ce canal gère les conversations de l’agent. Connectez les outils Linear pour rechercher ou modifier des tickets.",- "configureTools": "Configurer les outils Linear",+ "accessPairing": "Associez au premier usage et connectez Linear MCP pour rechercher ou modifier des issues.",+ "configureTools": "Configurer Linear MCP","workspacesTitle": "Espaces autorisés","refreshWorkspaces": "Actualiser les espaces","loadingWorkspaces": "Chargement des espaces",diff --git a/nanobot/channels/linear/webui/locales/id.json b/nanobot/channels/linear/webui/locales/id.jsonindex 5e6c8e7d9..910bed2f1 100644--- a/nanobot/channels/linear/webui/locales/id.json+++ b/nanobot/channels/linear/webui/locales/id.json@@ -4,13 +4,13 @@"setup": {"docsLabel": "Buka panduan penyiapan Linear","officialLabel": "Buat aplikasi OAuth Linear",- "tryIt": "Mention aplikasi dalam komentar issue. Pesan lanjutan di Agent Session tidak memerlukan mention lagi.",- "summary": "Buat aplikasi OAuth Linear privat, simpan kredensial dan URL publiknya, lalu otorisasi workspace. Setiap sesi baru memerlukan @mention eksplisit; komentar biasa akan diabaikan.",+ "tryIt": "Mention aplikasi atau delegasikan issue kepadanya; percakapan lanjutan di Agent Session tidak memerlukan mention lagi.",+ "summary": "Buat aplikasi OAuth Linear privat, simpan kredensial dan URL publiknya, lalu otorisasi workspace. Mulai sesi dengan mention aplikasi atau mendelegasikan issue; komentar biasa diabaikan.","steps": ["Ekspos instans nanobot ini melalui URL HTTPS yang stabil (tunnel dapat digunakan).","Buat aplikasi OAuth privat di Linear dengan scope read, write, app:mentionable, dan app:assignable.","Daftarkan webhook aplikasi untuk AgentSessionEvent, PermissionChange, dan OAuthAuthorization menggunakan URL yang dibuat.",- "Masukkan kredensial aplikasi, tunggu hingga tersimpan otomatis, hubungkan ruang kerja dengan OAuth, lalu sebut aplikasi dengan @ dalam issue."+ "Hubungkan workspace melalui OAuth, lalu mention aplikasi atau delegasikan issue kepadanya."],"fields": {"clientId": {@@ -71,18 +71,15 @@"reconnect": "Hubungkan workspace lain","connect": "Hubungkan Linear","openLinear": "Lanjutkan di Linear",- "createApp": "Buat aplikasi Linear yang sudah diisi",- "savePublicUrl": "Masukkan URL HTTPS publik untuk membuat aplikasi Linear yang sudah terisi.",- "saveBeforeConnect": "Masukkan kredensial aplikasi dan tunggu hingga tersimpan sebelum menghubungkan.",+ "createApp": "Buat aplikasi Linear",+ "savePublicUrl": "Masukkan URL HTTPS publik untuk membuat aplikasi Linear.","removeCredentials": "Hapus kredensial tersimpan","retrySave": "Coba lagi","channelRunning": "Channel berjalan",- "accessTitle": "Akses dan alat issue","accessAll": "Semua anggota workspace yang diotorisasi dapat menjalankan agen ini.","accessRestricted": "Hanya ID pengguna Linear yang tercantum di Lanjutan yang dapat menjalankan agen ini.",- "accessPairing": "Saat pertama digunakan, mention nanobot di Linear, setujui kode pairing di Pengaturan → Pairing, lalu mention lagi.",- "mcpDescription": "Channel ini menangani percakapan agen. Hubungkan alat Linear agar agen dapat mencari atau mengubah issue.",- "configureTools": "Konfigurasi alat Linear",+ "accessPairing": "Lakukan pairing saat pertama digunakan dan hubungkan Linear MCP untuk mencari atau mengedit issue.",+ "configureTools": "Konfigurasi Linear MCP","workspacesTitle": "Workspace yang diotorisasi","refreshWorkspaces": "Muat ulang workspace","loadingWorkspaces": "Memuat workspace",diff --git a/nanobot/channels/linear/webui/locales/ja.json b/nanobot/channels/linear/webui/locales/ja.jsonindex b34518a31..fd8e5999c 100644--- a/nanobot/channels/linear/webui/locales/ja.json+++ b/nanobot/channels/linear/webui/locales/ja.json@@ -4,13 +4,13 @@"setup": {"docsLabel": "Linear セットアップガイドを開く","officialLabel": "Linear OAuth アプリを作成",- "tryIt": "issue のコメントでアプリをメンションしてください。Agent Session 内の続きのメッセージでは、再度メンションする必要はありません。",- "summary": "非公開の Linear OAuth アプリを作成し、認証情報と公開 URL を保存してからワークスペースを認証します。新しいセッションの開始には明示的な @メンションが必要で、通常のコメントは無視されます。",+ "tryIt": "アプリをメンションするか issue を委任してください。Agent Session 内では再度メンションする必要はありません。",+ "summary": "非公開の Linear OAuth アプリを作成し、認証情報と公開 URL を保存してからワークスペースを認証します。メンションまたは issue の委任でセッションを開始でき、通常のコメントは無視されます。","steps": ["この nanobot インスタンスを安定した HTTPS URL で公開します(トンネルも利用できます)。","Linear で read、write、app:mentionable、app:assignable スコープを持つ非公開 OAuth アプリを作成します。","生成された URL を使い、アプリの webhook を AgentSessionEvent、PermissionChange、OAuthAuthorization に登録します。",- "アプリの認証情報を入力し、自動保存の完了後に OAuth でワークスペースを接続して、issue でアプリを @メンションします。"+ "OAuth でワークスペースを接続し、アプリをメンションするか issue を委任します。"],"fields": {"clientId": {@@ -71,18 +71,15 @@"reconnect": "別のワークスペースを接続","connect": "Linear に接続","openLinear": "Linear で続行",- "createApp": "入力済みの Linear アプリを作成",- "savePublicUrl": "公開 HTTPS URL を入力すると、入力済みの Linear アプリを作成できます。",- "saveBeforeConnect": "アプリの認証情報を入力し、自動保存が完了してから接続してください。",+ "createApp": "Linear アプリを作成",+ "savePublicUrl": "公開 HTTPS URL を入力してから Linear アプリを作成してください。","removeCredentials": "保存済みの認証情報を削除","retrySave": "再試行","channelRunning": "チャンネル実行中",- "accessTitle": "アクセスと issue ツール","accessAll": "認証済みワークスペースの全メンバーがこのエージェントを実行できます。","accessRestricted": "詳細設定に記載された Linear ユーザー ID のみがこのエージェントを実行できます。",- "accessPairing": "初回は Linear で nanobot をメンションし、設定 → ペアリングでコードを承認してから、もう一度メンションしてください。",- "mcpDescription": "このチャンネルはエージェントとの会話を処理します。issue の検索や変更には Linear ツールを接続してください。",- "configureTools": "Linear ツールを設定",+ "accessPairing": "初回にペアリングし、Linear MCP に接続すると issue を検索・編集できます。",+ "configureTools": "Linear MCP を設定","workspacesTitle": "認証済みワークスペース","refreshWorkspaces": "ワークスペースを更新","loadingWorkspaces": "ワークスペースを読み込み中",diff --git a/nanobot/channels/linear/webui/locales/ko.json b/nanobot/channels/linear/webui/locales/ko.jsonindex 54768519d..7246d7e39 100644--- a/nanobot/channels/linear/webui/locales/ko.json+++ b/nanobot/channels/linear/webui/locales/ko.json@@ -4,13 +4,13 @@"setup": {"docsLabel": "Linear 설정 가이드 열기","officialLabel": "Linear OAuth 앱 만들기",- "tryIt": "이슈 댓글에서 앱을 멘션하세요. Agent Session 안의 후속 메시지에는 다시 멘션할 필요가 없습니다.",- "summary": "비공개 Linear OAuth 앱을 만들고 인증 정보와 공개 URL을 저장한 다음 워크스페이스를 승인하세요. 새 세션은 명시적인 @멘션으로만 시작되며 일반 댓글은 무시됩니다.",+ "tryIt": "앱을 멘션하거나 이슈를 위임하세요. Agent Session 안에서는 다시 멘션할 필요가 없습니다.",+ "summary": "비공개 Linear OAuth 앱을 만들고 인증 정보와 공개 URL을 저장한 다음 워크스페이스를 승인하세요. 앱 멘션이나 이슈 위임으로 세션을 시작할 수 있으며 일반 댓글은 무시됩니다.","steps": ["이 nanobot 인스턴스를 안정적인 HTTPS URL로 공개하세요(터널을 사용할 수 있습니다).","Linear에서 read, write, app:mentionable, app:assignable 범위가 있는 비공개 OAuth 앱을 만드세요.","생성된 URL로 앱 webhook을 AgentSessionEvent, PermissionChange, OAuthAuthorization에 구독하세요.",- "앱 인증 정보를 입력하고 자동 저장이 완료되면 OAuth로 워크스페이스를 연결한 후 이슈에서 앱을 @멘션하세요."+ "OAuth로 워크스페이스를 연결한 뒤 앱을 멘션하거나 이슈를 위임하세요."],"fields": {"clientId": {@@ -71,18 +71,15 @@"reconnect": "다른 워크스페이스 연결","connect": "Linear 연결","openLinear": "Linear에서 계속",- "createApp": "미리 입력된 Linear 앱 만들기",- "savePublicUrl": "공개 HTTPS URL을 입력하면 미리 채워진 Linear 앱을 만들 수 있습니다.",- "saveBeforeConnect": "앱 인증 정보를 입력하고 자동 저장이 완료된 후 연결하세요.",+ "createApp": "Linear 앱 만들기",+ "savePublicUrl": "공개 HTTPS URL을 입력한 후 Linear 앱을 만드세요.","removeCredentials": "저장된 인증 정보 삭제","retrySave": "다시 시도","channelRunning": "채널 실행 중",- "accessTitle": "접근 및 이슈 도구","accessAll": "승인된 워크스페이스의 모든 멤버가 이 에이전트를 실행할 수 있습니다.","accessRestricted": "고급 설정에 나열된 Linear 사용자 ID만 이 에이전트를 실행할 수 있습니다.",- "accessPairing": "처음 사용할 때 Linear에서 nanobot을 멘션하고 설정 → 페어링에서 코드를 승인한 뒤 다시 멘션하세요.",- "mcpDescription": "이 채널은 에이전트 대화를 처리합니다. 이슈 검색이나 변경을 위해 Linear 도구를 연결하세요.",- "configureTools": "Linear 도구 구성",+ "accessPairing": "처음 사용 시 페어링하고, Linear MCP를 연결해 이슈를 검색하거나 수정하세요.",+ "configureTools": "Linear MCP 설정","workspacesTitle": "승인된 워크스페이스","refreshWorkspaces": "워크스페이스 새로 고침","loadingWorkspaces": "워크스페이스 불러오는 중",diff --git a/nanobot/channels/linear/webui/locales/pt-BR.json b/nanobot/channels/linear/webui/locales/pt-BR.jsonindex eb09e1870..142d06840 100644--- a/nanobot/channels/linear/webui/locales/pt-BR.json+++ b/nanobot/channels/linear/webui/locales/pt-BR.json@@ -4,13 +4,13 @@"setup": {"docsLabel": "Abrir o guia de configuração do Linear","officialLabel": "Criar aplicativo OAuth do Linear",- "tryIt": "Mencione o aplicativo em um comentário da issue. As mensagens seguintes dentro da Agent Session não precisam de outra menção.",- "summary": "Crie um aplicativo OAuth privado do Linear, salve as credenciais e a URL pública e autorize o workspace. Cada nova sessão exige uma @menção explícita; comentários comuns são ignorados.",+ "tryIt": "Mencione o aplicativo ou delegue uma issue a ele; não é preciso mencioná-lo novamente dentro da Agent Session.",+ "summary": "Crie um aplicativo OAuth privado do Linear, salve as credenciais e a URL pública e autorize o workspace. Inicie uma sessão mencionando o aplicativo ou delegando uma issue a ele; comentários comuns são ignorados.","steps": ["Exponha esta instância do nanobot por uma URL HTTPS estável (um túnel pode ser usado).","Crie um aplicativo OAuth privado no Linear com os escopos read, write, app:mentionable e app:assignable.","Inscreva o webhook do aplicativo em AgentSessionEvent, PermissionChange e OAuthAuthorization usando a URL gerada.",- "Insira as credenciais do aplicativo, aguarde o salvamento automático, conecte o espaço de trabalho com OAuth e mencione o aplicativo com @ em uma issue."+ "Conecte o workspace com OAuth e mencione o aplicativo ou delegue uma issue a ele."],"fields": {"clientId": {@@ -71,18 +71,15 @@"reconnect": "Conectar outro workspace","connect": "Conectar Linear","openLinear": "Continuar no Linear",- "createApp": "Criar app Linear pré-preenchido",- "savePublicUrl": "Insira uma URL HTTPS pública para criar um aplicativo Linear pré-preenchido.",- "saveBeforeConnect": "Insira as credenciais do aplicativo e aguarde o salvamento antes de conectar.",+ "createApp": "Criar aplicativo Linear",+ "savePublicUrl": "Insira uma URL HTTPS pública para criar um aplicativo Linear.","removeCredentials": "Remover credenciais salvas","retrySave": "Tentar novamente","channelRunning": "Canal em execução",- "accessTitle": "Acesso e ferramentas de issues","accessAll": "Todos os membros de um workspace autorizado podem executar este agente.","accessRestricted": "Somente os IDs de usuário do Linear listados em Avançado podem executar este agente.",- "accessPairing": "No primeiro uso, mencione o nanobot no Linear, aprove o código em Configurações → Pareamento e mencione-o novamente.",- "mcpDescription": "Este canal gerencia conversas do agente. Conecte as ferramentas do Linear para pesquisar ou alterar issues.",- "configureTools": "Configurar ferramentas do Linear",+ "accessPairing": "Faça o pareamento no primeiro uso e conecte o Linear MCP para buscar ou editar issues.",+ "configureTools": "Configurar Linear MCP","workspacesTitle": "Workspaces autorizados","refreshWorkspaces": "Atualizar workspaces","loadingWorkspaces": "Carregando workspaces",diff --git a/nanobot/channels/linear/webui/locales/vi.json b/nanobot/channels/linear/webui/locales/vi.jsonindex bc56500a8..d365eb7d9 100644--- a/nanobot/channels/linear/webui/locales/vi.json+++ b/nanobot/channels/linear/webui/locales/vi.json@@ -4,13 +4,13 @@"setup": {"docsLabel": "Mở hướng dẫn thiết lập Linear","officialLabel": "Tạo ứng dụng OAuth Linear",- "tryIt": "Nhắc đến ứng dụng trong bình luận của issue. Tin nhắn tiếp theo trong Agent Session không cần nhắc lại.",- "summary": "Tạo ứng dụng OAuth Linear riêng tư, lưu thông tin xác thực và URL công khai, rồi cấp quyền cho workspace. Mỗi phiên mới cần @mention rõ ràng; bình luận thông thường sẽ bị bỏ qua.",+ "tryIt": "Nhắc đến ứng dụng hoặc giao issue cho ứng dụng; không cần nhắc lại trong Agent Session.",+ "summary": "Tạo ứng dụng OAuth Linear riêng tư, lưu thông tin xác thực và URL công khai, rồi cấp quyền cho workspace. Bắt đầu phiên bằng cách nhắc đến ứng dụng hoặc giao issue; bình luận thông thường sẽ bị bỏ qua.","steps": ["Công khai phiên bản nanobot này qua URL HTTPS ổn định (có thể dùng tunnel).","Tạo ứng dụng OAuth riêng tư trong Linear với các scope read, write, app:mentionable và app:assignable.","Đăng ký webhook của ứng dụng cho AgentSessionEvent, PermissionChange và OAuthAuthorization bằng URL được tạo.",- "Nhập thông tin xác thực của ứng dụng, chờ lưu tự động, kết nối không gian làm việc bằng OAuth, rồi nhắc đến ứng dụng bằng @ trong issue."+ "Kết nối workspace qua OAuth, rồi nhắc đến ứng dụng hoặc giao issue cho ứng dụng."],"fields": {"clientId": {@@ -71,18 +71,15 @@"reconnect": "Kết nối workspace khác","connect": "Kết nối Linear","openLinear": "Tiếp tục trong Linear",- "createApp": "Tạo ứng dụng Linear điền sẵn",- "savePublicUrl": "Nhập URL HTTPS công khai để tạo ứng dụng Linear được điền sẵn.",- "saveBeforeConnect": "Nhập thông tin xác thực của ứng dụng và chờ lưu xong trước khi kết nối.",+ "createApp": "Tạo ứng dụng Linear",+ "savePublicUrl": "Nhập URL HTTPS công khai để tạo ứng dụng Linear.","removeCredentials": "Xóa thông tin xác thực đã lưu","retrySave": "Thử lại","channelRunning": "Channel đang chạy",- "accessTitle": "Quyền truy cập và công cụ issue","accessAll": "Mọi thành viên trong workspace được cấp quyền đều có thể chạy agent này.","accessRestricted": "Chỉ ID người dùng Linear được liệt kê trong Nâng cao mới có thể chạy agent này.",- "accessPairing": "Khi dùng lần đầu, hãy nhắc nanobot trong Linear, duyệt mã tại Cài đặt → Ghép đôi, rồi nhắc lại.",- "mcpDescription": "Channel này xử lý hội thoại với agent. Kết nối công cụ Linear để agent tìm kiếm hoặc thay đổi issue.",- "configureTools": "Cấu hình công cụ Linear",+ "accessPairing": "Ghép đôi khi dùng lần đầu và kết nối Linear MCP để tìm kiếm hoặc chỉnh sửa issue.",+ "configureTools": "Cấu hình Linear MCP","workspacesTitle": "Workspace được cấp quyền","refreshWorkspaces": "Làm mới workspace","loadingWorkspaces": "Đang tải workspace",diff --git a/nanobot/channels/linear/webui/locales/zh-CN.json b/nanobot/channels/linear/webui/locales/zh-CN.jsonindex cd26bfb0d..8ee9a3ac6 100644--- a/nanobot/channels/linear/webui/locales/zh-CN.json+++ b/nanobot/channels/linear/webui/locales/zh-CN.json@@ -1 +1 @@-{"description":"通过 Linear 原生 Agent Session 在 issue 中使用 nanobot。","requirements":"一个私有 Linear OAuth 应用和稳定的公网 HTTPS 回调地址","setup":{"docsLabel":"打开 Linear 配置指南","officialLabel":"创建 Linear OAuth 应用","tryIt":"在 issue 评论中 @ 应用或把 issue 委派给它;进入 Agent Session 后,后续对话无需重复 @。","summary":"创建私有 Linear OAuth 应用,保存凭据和公网地址,再授权工作区。可通过 @ 应用或委派 issue 开启会话,普通评论会被忽略。","steps":["用稳定的 HTTPS 地址暴露此 nanobot 实例(可以使用隧道)。","在 Linear 创建私有 OAuth 应用,启用 read、write、app:mentionable 和 app:assignable。","将应用 webhook 订阅 AgentSessionEvent、PermissionChange 和 OAuthAuthorization,并填写生成的 webhook 地址。","填写应用凭据,等待自动保存完成,通过 OAuth 连接工作区,然后在 issue 中 @ 应用或把 issue 委派给它。"],"fields":{"clientId":{"label":"OAuth Client ID","placeholder":"Linear OAuth Client ID","help":"从 Linear 私有 OAuth 应用中复制。"},"clientSecret":{"label":"OAuth Client Secret","placeholder":"••••••","help":"只保存在此 nanobot 实例中。"},"webhookSigningSecret":{"label":"Webhook 签名密钥","placeholder":"••••••","help":"在解析 webhook 内容前验证 Linear-Signature。"},"publicBaseUrl":{"label":"公网 HTTPS 地址","placeholder":"https://nanobot.example.com","help":"稳定且能转发到下方监听端口的 HTTPS 源地址,不要包含路径。"},"host":{"label":"监听地址","placeholder":"0.0.0.0"},"port":{"label":"监听端口","placeholder":"3979"},"webhookPath":{"label":"Webhook 路径","placeholder":"/linear/webhook"},"oauthCallbackPath":{"label":"OAuth 回调路径","placeholder":"/linear/oauth/callback"},"allowFrom":{"label":"允许的 Linear 用户","placeholder":"用逗号分隔 Linear 用户 ID","help":"留空使用 nanobot 配对;填写 * 允许已连接工作区内的所有用户。"},"showReasoning":{"label":"显示推理过程","help":"把模型推理作为思考动态发布到 Linear;关闭后会话更简洁。"}}},"custom":{"qrAlt":"Linear 授权二维码","authorizeTitle":"在 Linear 中授权","authorizeDescription":"在当前浏览器打开 Linear 或扫描二维码;授权后 nanobot 会自动启用 channel。","waiting":"正在等待 Linear 授权……","connected":"Linear 已连接。","stopped":"授权已停止。","connecting":"正在连接……","reconnect":"连接另一个工作区","connect":"连接 Linear","openLinear":"前往 Linear","createApp":"创建预填的 Linear 应用","savePublicUrl":"填写公网 HTTPS 地址后,即可创建预填的 Linear 应用。","saveBeforeConnect":"填写应用凭据,等待自动保存完成后再连接。","removeCredentials":"删除已保存的凭据","retrySave":"重试","channelRunning":"Channel 正在运行","accessTitle":"访问权限和 issue 工具","accessAll":"已授权工作区中的所有成员都可以运行此 Agent。","accessRestricted":"只有“高级”中列出的 Linear 用户 ID 可以运行此 Agent。","accessPairing":"首次使用时,请在 Linear 中 @nanobot,在“设置 → 配对”中批准配对码,然后再次 @ 它。","mcpDescription":"此 channel 负责 Agent 对话。连接 Linear 工具后,Agent 才能搜索或修改 issue。","configureTools":"配置 Linear 工具","workspacesTitle":"已授权的工作区","refreshWorkspaces":"刷新工作区","loadingWorkspaces":"正在加载工作区","noWorkspaces":"尚未授权工作区。连接工作区后才能接收 Linear Agent 请求。","refreshRequired":"需要刷新授权","missingScopes":"重新连接以授予:{{scopes}}","authorized":"已授权","confirmDisconnect":"断开工作区连接","disconnect":"断开连接"}}+{"description":"通过 Linear 原生 Agent Session 在 issue 中使用 nanobot。","requirements":"一个私有 Linear OAuth 应用和稳定的公网 HTTPS 回调地址","setup":{"docsLabel":"打开 Linear 配置指南","officialLabel":"创建 Linear OAuth 应用","tryIt":"在 issue 评论中 @ 应用或把 issue 委派给它;进入 Agent Session 后,后续对话无需重复 @。","summary":"创建私有 Linear OAuth 应用,保存凭据和公网地址,再授权工作区。可通过 @ 应用或委派 issue 开启会话,普通评论会被忽略。","steps":["用稳定的 HTTPS 地址暴露此 nanobot 实例(可以使用隧道)。","在 Linear 创建私有 OAuth 应用,启用 read、write、app:mentionable 和 app:assignable。","将应用 webhook 订阅 AgentSessionEvent、PermissionChange 和 OAuthAuthorization,并填写生成的 webhook 地址。","通过 OAuth 连接工作区,然后 @ 应用或把 issue 委派给它。"],"fields":{"clientId":{"label":"OAuth Client ID","placeholder":"Linear OAuth Client ID","help":"从 Linear 私有 OAuth 应用中复制。"},"clientSecret":{"label":"OAuth Client Secret","placeholder":"••••••","help":"只保存在此 nanobot 实例中。"},"webhookSigningSecret":{"label":"Webhook 签名密钥","placeholder":"••••••","help":"在解析 webhook 内容前验证 Linear-Signature。"},"publicBaseUrl":{"label":"公网 HTTPS 地址","placeholder":"https://nanobot.example.com","help":"稳定且能转发到下方监听端口的 HTTPS 源地址,不要包含路径。"},"host":{"label":"监听地址","placeholder":"0.0.0.0"},"port":{"label":"监听端口","placeholder":"3979"},"webhookPath":{"label":"Webhook 路径","placeholder":"/linear/webhook"},"oauthCallbackPath":{"label":"OAuth 回调路径","placeholder":"/linear/oauth/callback"},"allowFrom":{"label":"允许的 Linear 用户","placeholder":"用逗号分隔 Linear 用户 ID","help":"留空使用 nanobot 配对;填写 * 允许已连接工作区内的所有用户。"},"showReasoning":{"label":"显示推理过程","help":"把模型推理作为思考动态发布到 Linear;关闭后会话更简洁。"}}},"custom":{"qrAlt":"Linear 授权二维码","authorizeTitle":"在 Linear 中授权","authorizeDescription":"在当前浏览器打开 Linear 或扫描二维码;授权后 nanobot 会自动启用 channel。","waiting":"正在等待 Linear 授权……","connected":"Linear 已连接。","stopped":"授权已停止。","connecting":"正在连接……","reconnect":"连接另一个工作区","connect":"连接 Linear","openLinear":"前往 Linear","createApp":"创建 Linear 应用","savePublicUrl":"请先填写公网 HTTPS 地址,再创建 Linear 应用。","removeCredentials":"删除已保存的凭据","retrySave":"重试","channelRunning":"Channel 正在运行","accessAll":"已授权工作区中的所有成员都可以运行此 Agent。","accessRestricted":"只有“高级”中列出的 Linear 用户 ID 可以运行此 Agent。","accessPairing":"首次使用需配对,连接 Linear MCP 后可搜索或修改 issue。","configureTools":"配置 Linear MCP","workspacesTitle":"已授权的工作区","refreshWorkspaces":"刷新工作区","loadingWorkspaces":"正在加载工作区","noWorkspaces":"尚未授权工作区。连接工作区后才能接收 Linear Agent 请求。","refreshRequired":"需要刷新授权","missingScopes":"重新连接以授予:{{scopes}}","authorized":"已授权","confirmDisconnect":"断开工作区连接","disconnect":"断开连接"}}diff --git a/nanobot/channels/linear/webui/locales/zh-TW.json b/nanobot/channels/linear/webui/locales/zh-TW.jsonindex 7d761819f..4c994c385 100644--- a/nanobot/channels/linear/webui/locales/zh-TW.json+++ b/nanobot/channels/linear/webui/locales/zh-TW.json@@ -1 +1 @@-{"description":"透過 Linear 原生 Agent Session 在 issue 中使用 nanobot。","requirements":"一個私有 Linear OAuth 應用程式和穩定的公網 HTTPS 回呼網址","setup":{"docsLabel":"開啟 Linear 設定指南","officialLabel":"建立 Linear OAuth 應用程式","tryIt":"在 issue 評論中 @ 應用程式或將 issue 委派給它;進入 Agent Session 後,後續對話無需重複 @。","summary":"建立私有 Linear OAuth 應用程式,儲存憑證和公網網址,再授權工作區。可透過 @ 應用程式或委派 issue 開啟會話,普通評論會被忽略。","steps":["用穩定的 HTTPS 網址公開此 nanobot 實例(可以使用隧道)。","在 Linear 建立私有 OAuth 應用程式,啟用 read、write、app:mentionable 和 app:assignable。","將應用程式 webhook 訂閱 AgentSessionEvent、PermissionChange 和 OAuthAuthorization,並填入產生的 webhook 網址。","填寫應用程式憑證,等待自動儲存完成,透過 OAuth 連接工作區,然後在 issue 中 @ 應用程式或將 issue 委派給它。"],"fields":{"clientId":{"label":"OAuth Client ID","placeholder":"Linear OAuth Client ID","help":"從 Linear 私有 OAuth 應用程式中複製。"},"clientSecret":{"label":"OAuth Client Secret","placeholder":"••••••","help":"只儲存在此 nanobot 實例中。"},"webhookSigningSecret":{"label":"Webhook 簽署密鑰","placeholder":"••••••","help":"在解析 webhook 內容前驗證 Linear-Signature。"},"publicBaseUrl":{"label":"公網 HTTPS 網址","placeholder":"https://nanobot.example.com","help":"穩定且能轉送到下方監聽連接埠的 HTTPS 來源網址,不要包含路徑。"},"host":{"label":"監聽位址","placeholder":"0.0.0.0"},"port":{"label":"監聽連接埠","placeholder":"3979"},"webhookPath":{"label":"Webhook 路徑","placeholder":"/linear/webhook"},"oauthCallbackPath":{"label":"OAuth 回呼路徑","placeholder":"/linear/oauth/callback"},"allowFrom":{"label":"允許的 Linear 使用者","placeholder":"以逗號分隔 Linear 使用者 ID","help":"留空使用 nanobot 配對;填寫 * 允許已連接工作區內的所有使用者。"},"showReasoning":{"label":"顯示推理過程","help":"將模型推理作為思考動態發佈到 Linear;關閉後會話更簡潔。"}}},"custom":{"qrAlt":"Linear 授權 QR code","authorizeTitle":"在 Linear 中授權","authorizeDescription":"在目前瀏覽器開啟 Linear 或掃描 QR code;授權後 nanobot 會自動啟用 channel。","waiting":"正在等待 Linear 授權……","connected":"Linear 已連接。","stopped":"授權已停止。","connecting":"正在連接……","reconnect":"連接另一個工作區","connect":"連接 Linear","openLinear":"前往 Linear","createApp":"建立預填的 Linear 應用程式","savePublicUrl":"填寫公開 HTTPS 網址後,即可建立預填的 Linear 應用程式。","saveBeforeConnect":"填寫應用程式憑證,等待自動儲存完成後再連線。","removeCredentials":"刪除已儲存的憑證","retrySave":"重試","channelRunning":"Channel 正在執行","accessTitle":"存取權限和 issue 工具","accessAll":"已授權工作區中的所有成員都可以執行此 Agent。","accessRestricted":"只有「進階」中列出的 Linear 使用者 ID 可以執行此 Agent。","accessPairing":"首次使用時,請在 Linear 中 @nanobot,在「設定 → 配對」中核准配對碼,然後再次 @ 它。","mcpDescription":"此 channel 負責 Agent 對話。連接 Linear 工具後,Agent 才能搜尋或修改 issue。","configureTools":"設定 Linear 工具","workspacesTitle":"已授權的工作區","refreshWorkspaces":"重新整理工作區","loadingWorkspaces":"正在載入工作區","noWorkspaces":"尚未授權工作區。連接工作區後才能接收 Linear Agent 請求。","refreshRequired":"需要重新整理授權","missingScopes":"重新連接以授予:{{scopes}}","authorized":"已授權","confirmDisconnect":"中斷工作區連線","disconnect":"中斷連線"}}+{"description":"透過 Linear 原生 Agent Session 在 issue 中使用 nanobot。","requirements":"一個私有 Linear OAuth 應用程式和穩定的公網 HTTPS 回呼網址","setup":{"docsLabel":"開啟 Linear 設定指南","officialLabel":"建立 Linear OAuth 應用程式","tryIt":"在 issue 評論中 @ 應用程式或將 issue 委派給它;進入 Agent Session 後,後續對話無需重複 @。","summary":"建立私有 Linear OAuth 應用程式,儲存憑證和公網網址,再授權工作區。可透過 @ 應用程式或委派 issue 開啟會話,普通評論會被忽略。","steps":["用穩定的 HTTPS 網址公開此 nanobot 實例(可以使用隧道)。","在 Linear 建立私有 OAuth 應用程式,啟用 read、write、app:mentionable 和 app:assignable。","將應用程式 webhook 訂閱 AgentSessionEvent、PermissionChange 和 OAuthAuthorization,並填入產生的 webhook 網址。","透過 OAuth 連接工作區,然後 @ 應用程式或將 issue 委派給它。"],"fields":{"clientId":{"label":"OAuth Client ID","placeholder":"Linear OAuth Client ID","help":"從 Linear 私有 OAuth 應用程式中複製。"},"clientSecret":{"label":"OAuth Client Secret","placeholder":"••••••","help":"只儲存在此 nanobot 實例中。"},"webhookSigningSecret":{"label":"Webhook 簽署密鑰","placeholder":"••••••","help":"在解析 webhook 內容前驗證 Linear-Signature。"},"publicBaseUrl":{"label":"公網 HTTPS 網址","placeholder":"https://nanobot.example.com","help":"穩定且能轉送到下方監聽連接埠的 HTTPS 來源網址,不要包含路徑。"},"host":{"label":"監聽位址","placeholder":"0.0.0.0"},"port":{"label":"監聽連接埠","placeholder":"3979"},"webhookPath":{"label":"Webhook 路徑","placeholder":"/linear/webhook"},"oauthCallbackPath":{"label":"OAuth 回呼路徑","placeholder":"/linear/oauth/callback"},"allowFrom":{"label":"允許的 Linear 使用者","placeholder":"以逗號分隔 Linear 使用者 ID","help":"留空使用 nanobot 配對;填寫 * 允許已連接工作區內的所有使用者。"},"showReasoning":{"label":"顯示推理過程","help":"將模型推理作為思考動態發佈到 Linear;關閉後會話更簡潔。"}}},"custom":{"qrAlt":"Linear 授權 QR code","authorizeTitle":"在 Linear 中授權","authorizeDescription":"在目前瀏覽器開啟 Linear 或掃描 QR code;授權後 nanobot 會自動啟用 channel。","waiting":"正在等待 Linear 授權……","connected":"Linear 已連接。","stopped":"授權已停止。","connecting":"正在連接……","reconnect":"連接另一個工作區","connect":"連接 Linear","openLinear":"前往 Linear","createApp":"建立 Linear 應用程式","savePublicUrl":"請先填寫公網 HTTPS 網址,再建立 Linear 應用程式。","removeCredentials":"刪除已儲存的憑證","retrySave":"重試","channelRunning":"Channel 正在執行","accessAll":"已授權工作區中的所有成員都可以執行此 Agent。","accessRestricted":"只有「進階」中列出的 Linear 使用者 ID 可以執行此 Agent。","accessPairing":"首次使用需配對,連接 Linear MCP 後可搜尋或修改 issue。","configureTools":"設定 Linear MCP","workspacesTitle":"已授權的工作區","refreshWorkspaces":"重新整理工作區","loadingWorkspaces":"正在載入工作區","noWorkspaces":"尚未授權工作區。連接工作區後才能接收 Linear Agent 請求。","refreshRequired":"需要重新整理授權","missingScopes":"重新連接以授予:{{scopes}}","authorized":"已授權","confirmDisconnect":"中斷工作區連線","disconnect":"中斷連線"}}diff --git a/webui/src/channel-plugins/types.ts b/webui/src/channel-plugins/types.tsindex d9d708469..cebfdf609 100644--- a/webui/src/channel-plugins/types.ts+++ b/webui/src/channel-plugins/types.ts@@ -25,6 +25,7 @@ export type ChannelPluginPanelProps = {showBrandLogos: boolean;onAction: ChannelFeatureAction;onFeaturesUpdate: (payload: NanobotFeaturesPayload) => void;+ onConfigureMcp?: (name: string) => void;onBeforeCloseChange?: (handler: (() => Promise<boolean>) | null) => void;};@@ -36,10 +37,15 @@ export type ChannelPluginConnectFlowProps = {onFeaturesUpdate: (payload: NanobotFeaturesPayload) => void;};+export type ChannelPluginHelpProps = {+ feature: NanobotFeatureInfo;+};+export type ChannelUiContribution = {presentation: ChannelPresentation;aliases?: Record<string, Partial<ChannelPresentation>>;Panel?: ComponentType<ChannelPluginPanelProps>;+ HelpContent?: ComponentType<ChannelPluginHelpProps>;ConnectFlow?: ComponentType<ChannelPluginConnectFlowProps>;canConnectBeforeConfigured?: boolean;};diff --git a/webui/src/components/settings/SettingsPage.tsx b/webui/src/components/settings/SettingsPage.tsxindex 344000a6c..d94aa4837 100644--- a/webui/src/components/settings/SettingsPage.tsx+++ b/webui/src/components/settings/SettingsPage.tsx@@ -81,6 +81,7 @@ export function SettingsPage({hostChromeInset,}: SettingsPageProps) {const [dialogLayoutAnchor, setDialogLayoutAnchor] = useState<HTMLDivElement | null>(null);+ const [mcpSetupName, setMcpSetupName] = useState<string | null>(null);const [pendingExit, setPendingExit] = useState<(() => void) | null>(null);const [automationDetailReturn, setAutomationDetailReturn] =useState<SessionAutomationJob | null>(null);@@ -485,6 +486,12 @@ export function SettingsPage({case "channels":return (<ChannelsSettings+ onConfigureMcp={(name) => {+ setMcpSetupName(name);+ setAppsKindFilter("mcp");+ setAppsQuery(name);+ selectSection("apps");+ }}token={token}nanobotFeatures={nanobotFeatures}loading={nanobotFeaturesLoading}@@ -506,6 +513,8 @@ export function SettingsPage({return (<div className="settings-stack"><AppsCatalogSettings+ setupName={mcpSetupName}+ onSetupOpened={() => setMcpSetupName(null)}cliApps={cliApps}mcpPresets={mcpPresets}cliAppsLoading={cliAppsLoading}diff --git a/webui/src/components/settings/channels/ChannelHelpMenu.tsx b/webui/src/components/settings/channels/ChannelHelpMenu.tsxindex e81994760..5060ad51d 100644--- a/webui/src/components/settings/channels/ChannelHelpMenu.tsx+++ b/webui/src/components/settings/channels/ChannelHelpMenu.tsx@@ -1,3 +1,4 @@+import { channelUiContribution } from "@/channel-plugins/registry";import { CircleHelp, ExternalLink } from "lucide-react";import { useTranslation } from "react-i18next";import { channelSetup } from "@/components/settings/channels/ChannelIdentity";@@ -16,7 +17,8 @@ export function ChannelHelpMenu({ feature, chatAppsDocsUrl }: {{ url: setup.officialUrl, label: setup.officialLabel },{ url: docsUrlWithBase(setup.docsUrl, chatAppsDocsUrl), label: setup.docsLabel },].filter((link) => link.url);- if (!links.length) return null;+ const HelpContent = channelUiContribution(feature.name, feature.webui)?.HelpContent;+ if (!links.length && !HelpContent) return null;const label = t("settings.channels.help", { defaultValue: "Help" });return (<TooltipProvider>@@ -33,6 +35,7 @@ export function ChannelHelpMenu({ feature, chatAppsDocsUrl }: {<TooltipContent>{label}</TooltipContent></Tooltip><DropdownMenuContent align="end">+ {HelpContent ? <HelpContent feature={feature} /> : null}{links.map((link) => (<DropdownMenuItem key={link.url} asChild><a href={link.url} target="_blank" rel="noreferrer">diff --git a/webui/src/components/settings/channels/ChannelSetupPanel.tsx b/webui/src/components/settings/channels/ChannelSetupPanel.tsxindex b35d66c3e..7577b04b9 100644--- a/webui/src/components/settings/channels/ChannelSetupPanel.tsx+++ b/webui/src/components/settings/channels/ChannelSetupPanel.tsx@@ -79,6 +79,7 @@ export function ChannelSetupPanel({onFeaturesUpdate,connectRequestId = 0,onBeforeCloseChange,+ onConfigureMcp,}: {token: string;feature: NanobotFeatureInfo;@@ -87,6 +88,7 @@ export function ChannelSetupPanel({onAction: ChannelFeatureAction;onFeaturesUpdate: (payload: NanobotFeaturesPayload) => void;connectRequestId?: number;+ onConfigureMcp?: (name: string) => void;onBeforeCloseChange?: (handler: (() => Promise<boolean>) | null) => void;}) {const { t, i18n } = useTranslation();@@ -108,6 +110,7 @@ export function ChannelSetupPanel({onAction={onAction}onFeaturesUpdate={onFeaturesUpdate}onBeforeCloseChange={onBeforeCloseChange}+ onConfigureMcp={onConfigureMcp}/></Suspense>);diff --git a/webui/src/components/settings/system/AppsSettings.tsx b/webui/src/components/settings/system/AppsSettings.tsxindex b43b49640..4ceb74477 100644--- a/webui/src/components/settings/system/AppsSettings.tsx+++ b/webui/src/components/settings/system/AppsSettings.tsx@@ -1,5 +1,6 @@import {forwardRef,+ useEffect,useId,useMemo,useState,@@ -94,6 +95,8 @@ export const DEFAULT_CUSTOM_MCP_FORM: CustomMcpForm = {};export function AppsCatalogSettings({+ setupName,+ onSetupOpened,cliApps,mcpPresets,cliAppsLoading,@@ -137,6 +140,8 @@ export function AppsCatalogSettings({onRestart,isRestarting,}: {+ setupName?: string | null;+ onSetupOpened?: () => void;cliApps: CliAppsPayload | null;mcpPresets: McpPresetsPayload | null;cliAppsLoading: boolean;@@ -321,6 +326,8 @@ export function AppsCatalogSettings({<McpAppsCatalogRowkey={item.id}preset={item.preset}+ openConnection={setupName === item.preset.name}+ onConnectionOpened={onSetupOpened}values={mcpFieldValues[item.preset.name] ?? {}}actionKey={mcpActionKey}oauthFlow={mcpOAuthFlow?.name === item.preset.name ? mcpOAuthFlow : null}@@ -484,6 +491,8 @@ function CliAppsCatalogRow({}function McpAppsCatalogRow({+ openConnection = false,+ onConnectionOpened,preset,values,actionKey,@@ -503,6 +512,8 @@ function McpAppsCatalogRow({onOAuthComplete,onToolsChange,}: {+ openConnection?: boolean;+ onConnectionOpened?: () => void;preset: McpPresetInfo;values: Record<string, string>;actionKey: string | null;@@ -526,6 +537,12 @@ function McpAppsCatalogRow({const tx = (key: string, fallback: string) => t(key, { defaultValue: fallback });const [managementOpen, setManagementOpen] = useState(false);const [managementTab, setManagementTab] = useState<McpManagementTab>("overview");+ useEffect(() => {+ if (!openConnection) return;+ setManagementTab("connection");+ setManagementOpen(true);+ onConnectionOpened?.();+ }, [openConnection, onConnectionOpened]);const enableBusy = actionKey === `enable:${preset.name}`;const disableBusy = actionKey === `disable:${preset.name}`;const removeBusy = actionKey === `remove:${preset.name}`;diff --git a/webui/src/components/settings/system/ChannelsSettings.tsx b/webui/src/components/settings/system/ChannelsSettings.tsxindex ff8e599f1..3a92ed1b4 100644--- a/webui/src/components/settings/system/ChannelsSettings.tsx+++ b/webui/src/components/settings/system/ChannelsSettings.tsx@@ -19,7 +19,7 @@ type ChannelFilter = "all" | "enabled";export function ChannelsSettings({token, nanobotFeatures, loading, actionKey, chatAppsDocsUrl, showBrandLogos,error, requiresRestartPending, onAction, onFeaturesUpdate, onDismissStatus,- onRestart, isRestarting,+ onRestart, isRestarting, onConfigureMcp,}: {token: string;nanobotFeatures: NanobotFeaturesPayload | null;@@ -32,6 +32,7 @@ export function ChannelsSettings({onAction: ChannelFeatureAction;onFeaturesUpdate: (payload: NanobotFeaturesPayload) => void;onDismissStatus: () => void;+ onConfigureMcp?: (name: string) => void;onRestart?: () => void;isRestarting?: boolean;}) {@@ -176,6 +177,7 @@ export function ChannelsSettings({{selectedChannel ? <ChannelSetupPanel token={token} feature={selectedChannel} actionKey={actionKey}showBrandLogos={showBrandLogos}onAction={onAction} onFeaturesUpdate={onFeaturesUpdate} connectRequestId={connectRequestId}+ onConfigureMcp={onConfigureMcp}onBeforeCloseChange={setBeforeChannelClose} /> : null}</div></div>