diff --git a/src/client/locales-ja.ts b/src/client/locales-ja.ts index b188cb6f..6822e6fe 100644 --- a/src/client/locales-ja.ts +++ b/src/client/locales-ja.ts @@ -479,6 +479,7 @@ export const ja: Record = { openPlugin: '開く', copyInstall: 'インストールコマンドをコピー', pluginMdExportDesc: 'better-sidebar の Markdown ツールバーに「エクスポート」ボタンを追加:現在の .md を単体 HTML(テーブル・コードブロック・Mermaid 図表をインライン化、プレビューテーマに追従したレイアウト)にレンダリングして .md と同じディレクトリに保存、または印刷ダイアログ経由で PDF にエクスポート', + pluginAgentPersonaDesc: 'ワークスペースまたはセッションごとに system prompt のペルソナを割り当て:1 つのペルソナを複数のワークスペースディレクトリと複数のセッションに適用でき、完全一致 / 前方一致 / 部分一致 / 正規表現で照合、より具体的な方が優先、1 件を既定ペルソナとして指定可能。設定ページと会話の「人設」タブで管理し、次のメッセージから有効', pluginOfficeDesc: 'better-sidebar エディター向け Office スイートプレビュー(.docx / .xlsx / .pptx)。重い Office レンダリングライブラリをコアバンドルから分離、必要に応じてインストール', pluginFlowglassDesc: 'ライブセッションフローグラフ:ユーザー、アシスタント、ツール呼び出しの 3 レーン泳道、並列グループ、サブエージェント支線、ドリルダウン、ライブ状態をサポート。better-sidebar インストール時にネイティブ「Flowglass」Tab を登録、未インストール時は独立ドロワーを保持', pluginGitForgeDesc: 'better-sidebar「Git Forge」Tab:GitHub/Gitea 等 Forge アカウントライブラリ + プロジェクト単位の認可 + push ポリシー硬核拒絶。token はローカル secrets のみ、モデルコンテキストに入らない。読み取り専用 GitForge ツールと agent HTTPS credential helper を提供', @@ -505,6 +506,7 @@ export const ja: Record = { changesRedactOnLabel: "マスキング中", changesRedactOffLabel: "マスキング解除", changesRedactBanner: "マスク済み", + pluginAgentPersonaName: 'dsh-agent-persona ペルソナ', pluginSentinelName: 'dsh-sentinel ウェイクアップシステム', pluginEgoBrowserName: 'ego-browser エージェントブラウザー', pluginBetterOverleafName: 'dsh-better-overleaf Overleaf タブ', diff --git a/src/client/locales.ts b/src/client/locales.ts index a58f9874..b89d63e2 100644 --- a/src/client/locales.ts +++ b/src/client/locales.ts @@ -491,6 +491,7 @@ export const zh = { openPlugin: '跳转', copyInstall: '复制安装命令', pluginMdExportDesc: '在 better-sidebar 的 Markdown 工具栏上新增「导出」按钮:一键把当前 .md 渲染为独立 HTML(表格/代码块/Mermaid 图表内联,布局跟随预览主题)直接保存到同目录,或通过打印对话框导出为 PDF', + pluginAgentPersonaDesc: '按工作区或会话分发 system prompt 人设:一条人设可同时作用于多个工作区目录与会话,支持完全一致 / 前缀 / 包含 / 正则,越具体越优先,可标一条默认人设兜底;在设置页与对话页「人设」Tab 里管理,改完下一条消息生效', pluginOfficeDesc: '为 better-sidebar 编辑器提供 Office 三件套预览(.docx / .xlsx / .pptx),把重型 Office 渲染库拆出主包、按需安装', pluginFlowglassDesc: '实时会话流程图:三列泳道展示用户、助手与工具调用,支持并行分组、子代理支线、逐层钻取和实时状态;安装 better-sidebar 后注册原生「流镜」Tab,未安装时保留独立抽屉', pluginGitForgeDesc: 'better-sidebar「Git 凭据」Tab:GitHub/Gitea 等 Forge 账号库 + 按项目授权 + push 策略硬拦;token 仅存本地 secrets,不进模型上下文;提供只读 GitForge 工具与 agent HTTPS credential helper', @@ -513,6 +514,7 @@ export const zh = { pluginEgoBrowserDesc: '把 CitroLabs/ego-lite 接进 DeepSeek Harness 的 agent 浏览器:32 个 ego_* 工具驱动真实 Chromium,侧边栏原生「ego 浏览器」Tab 实时观察 agent 逛的每个页面,可直接点击/拖拽/输入接管;装 better-sidebar 时自动注册 Tab,没装则退回浮动浮窗', pluginBilingualReaderDesc: '在 DSH 侧边栏读论文 PDF:原生 PDF 显示,选中一段文字即用大模型划词翻译,结合上下文、完全隔离主对话,只作阅读辅助', pluginDshMemoryDeltaDesc: '跨会话记忆:只注入变化的部分(无变化时零注入),带到期复核提醒、相关度排序检索和侧边栏页签。', + pluginAgentPersonaName: 'dsh-agent-persona Agent 人设', pluginSentinelName: 'dsh-sentinel 唤醒系统', pluginMnemeName: 'dsh-mneme 记忆库', pluginMnemeDesc: '跨会话记忆引擎:autoDream 后台巩固、会话总结与用户画像,SQLite + 可人工编辑的 Markdown 镜像,完全离线私有;安装 better-sidebar 后注册「记忆库」Tab(记忆/实体/状态/设置四视图),未安装时保留侧边栏独立面板', @@ -1012,6 +1014,7 @@ export const en: Record = { openPlugin: 'Open', copyInstall: 'Copy install command', pluginMdExportDesc: 'Adds an "Export" button to the Markdown toolbar in better-sidebar: one click renders the current .md into standalone HTML (tables / code blocks / Mermaid diagrams inlined, layout follows the preview theme) and saves it next to the .md, or exports to PDF via the print dialog', + pluginAgentPersonaDesc: 'System-prompt personas by workspace or session: one persona can cover several workspace directories and several sessions, matched exactly, by prefix, by substring or by regex, most specific wins, and one persona can be marked as the default; managed from a settings page and a 「人设」tab on the conversation, effective on the next message', pluginOfficeDesc: 'Office-suite preview (.docx / .xlsx / .pptx) for the better-sidebar editor, keeping the heavy Office render libraries out of the core bundle', pluginFlowglassDesc: 'Live session flowgraph with three lanes for user, assistant, and tool calls, plus parallel groups, sub-agent branches, drill-down, and live status; registers a native Flowglass tab when better-sidebar is installed and keeps its standalone drawer as a fallback', pluginGitForgeDesc: 'Git Forge tab: GitHub/Gitea (and other forge) account library + per-project grants + hard push policy; tokens stay in local secrets (never in model context); read-only GitForge tool and agent HTTPS credential helper', @@ -1034,6 +1037,7 @@ export const en: Record = { pluginBetterOverleafDesc: 'Overleaf tab for better-sidebar: direct-CDP browser login (third-party Chromium supported), project list/switch, local git mirrors under /overleaf/, two-way git sync with read-only API fallback, and file preview through the sidebar workbench', pluginBilingualReaderDesc: 'Read paper PDFs in the DSH sidebar: native PDF rendering, select text to translate it with the LLM, using context while staying fully isolated from the main conversation — a reading aid only', pluginDshMemoryDeltaDesc: 'Cross-session memory that injects only what changed — nothing at all when nothing changed — with review-date reminders, relevance-ranked search and a sidebar tab.', + pluginAgentPersonaName: 'dsh-agent-persona Personas', pluginSentinelName: 'dsh-sentinel Wake-up System', pluginMnemeName: 'dsh-mneme Memory Library', pluginMnemeDesc: 'Cross-session memory engine: autoDream background consolidation, session summarization and user profile; SQLite + human-editable Markdown mirrors, fully offline and private. Registers a "Memory Library" tab (memories/entities/status/settings views) when better-sidebar is present and keeps its standalone sidebar panel as a fallback', diff --git a/src/client/plugins-tabs.ts b/src/client/plugins-tabs.ts index 856d3948..13a13593 100644 --- a/src/client/plugins-tabs.ts +++ b/src/client/plugins-tabs.ts @@ -44,6 +44,17 @@ export const builtinTabPlugins: readonly PluginEntry[] = [ // Published on npm (scoped); install the prerequisite first. install: 'cd ~/.dsh && dsh plugin --profile web add dsh-better-sidebar && dsh plugin --profile web add @modusensus/dsh-mneme', }, + { + id: 'dsh-agent-persona', + name: () => t('pluginAgentPersonaName'), + url: 'https://github.com/Awoodwhale/dsh-agent-persona', + description: () => t('pluginAgentPersonaDesc'), + // Scopes system-prompt personas by workspace or session and serves them from a + // 「人设」tab (with its own settings page). The tab registers through this plugin's + // service, so better-sidebar is installed first; the package is on npm, so the + // install line needs no git form. + install: 'cd ~/.dsh && dsh plugin --profile web add dsh-better-sidebar && dsh plugin --profile web add dsh-agent-persona', + }, { id: 'dsh-better-overleaf', name: () => t('pluginBetterOverleafName'),