mirror of
https://github.com/yexi-by/dsh-unrestricted.git
synced 2026-11-28 10:30:23 +08:00
优化卡片 UI 与文案、改用结构化段落融合、兼容 Desktop 并支持更新检测与一键更新 (v0.2.6)
This commit is contained in:
1 parent
fbd8475d01
commit
829bb9228d
18 files changed
+2340
-1156
No files matched your search
+108
-60
@@ -1,4 +1,4 @@
|
||||
/** Copy dictionaries for the unrestricted settings card. */
|
||||
/** Copy dictionaries for the unrestricted settings card and detail badge. */
|
||||
|
||||
/** Simplified Chinese dictionary and key source of truth. */
|
||||
export const zh = {
|
||||
@@ -6,46 +6,70 @@ export const zh = {
|
||||
summaryEnabled: '已开启',
|
||||
summaryDisabled: '已关闭',
|
||||
summaryLoading: '读取中',
|
||||
summaryUnavailable: '设置不可用',
|
||||
summaryValidationFailed: '部分模式校验未通过',
|
||||
description: '开启后,各模式的系统提示词整体替换为以当前原版为底稿、融合破限规则的完整版本;关闭即恢复 DSH 原版提示词。从下一次请求和新建子代理开始生效,不改动正在执行的请求、工具定义、权限配置与会话历史。',
|
||||
toggle: '启用破限',
|
||||
scopeNote: '提示词仅由 DSH 生成时才受本插件控制;模型平台或宿主环境中更高优先级的规则不在覆盖范围内。',
|
||||
statusTitle: '各模式状态',
|
||||
summaryUnavailable: '只读模式',
|
||||
summaryValidationFailed: '部分模式未生效',
|
||||
description: '开启后,各运行模式与委派子代理的系统提示词将自动融合无限制本地执行契约;关闭即恢复 DSH 原版提示词。切换从下一次请求生效,不改动正在执行的请求、工具定义、权限配置与会话历史。',
|
||||
toggle: '启用破限模式',
|
||||
scopeNote: '仅作用于由 DSH 组装的系统提示词;模型平台或外部网关的远端策略不在本插件覆盖范围内。',
|
||||
statusTitle: '模式覆盖与提示词预览',
|
||||
statusSubtitle: '覆盖全部 4 种预设及委派子代理,可随时展开核对或复制融合后的完整提示词。',
|
||||
modeStandard: 'Standard 标准模式',
|
||||
modePtc: 'PTC 模式',
|
||||
modeStandardDesc: '日常编码、逆向分析、脚本编写与综合问答',
|
||||
modePtc: 'PTC 编程模式',
|
||||
modePtcDesc: '基于 run_code 工具链的程序化任务执行',
|
||||
modeCordis: 'Cordis 创造模式',
|
||||
modeCordisDesc: 'DSH 与 Cordis 插件生态开发调试',
|
||||
modeMinimal: 'Minimal 极简模式',
|
||||
subagentNote: '子代理随所属模式一并生效。',
|
||||
modeMinimalDesc: '零内置先验的纯净系统提示词与子代理基座',
|
||||
subagentNote: '子代理(含结构化输出子代理)随所属会话模式一并生效。',
|
||||
stateActive: '已生效',
|
||||
stateOff: '已关闭',
|
||||
stateChecking: '校验中',
|
||||
stateValidationFailed: '校验未通过,已保持原版',
|
||||
recheck: '重新校验',
|
||||
refresh: '刷新',
|
||||
preflightTitle: '本次即将写入的内容',
|
||||
fingerprint: '契约指纹',
|
||||
fingerprintNote: '与当前提示词一一对应。各模式实际部署的就是下面这段文本。',
|
||||
preset: '预设',
|
||||
stateOff: '待命',
|
||||
stateValidationFailed: '已跳过(缺少角色段落)',
|
||||
refresh: '刷新状态',
|
||||
presetStandard: 'standard',
|
||||
presetPtc: 'ptc',
|
||||
presetCordis: 'cordis',
|
||||
presetMinimal: 'minimal',
|
||||
showPreview: '查看预览',
|
||||
showPreview: '查看提示词',
|
||||
hidePreview: '收起预览',
|
||||
previewLoading: '正在组装当前提示词…',
|
||||
previewUnavailable: '暂不可预览:',
|
||||
copyPreview: '复制全文',
|
||||
copiedPreview: '已复制',
|
||||
previewLoading: '正在生成当前模式的提示词预览…',
|
||||
previewUnavailable: '暂无法生成预览:',
|
||||
previewSize: '行',
|
||||
previewSourceLive: '实时会话',
|
||||
previewSourceStanding: '静态预设',
|
||||
settingsUnavailable: '当前连接不可写设置(远程浏览器只读)。',
|
||||
settingsLoading: '正在读取设置…',
|
||||
previewSourceLive: '当前会话实时组装',
|
||||
previewSourceStanding: '预设基准组装',
|
||||
settingsUnavailable: '当前连接处于只读模式,无法修改设置。',
|
||||
settingsLoading: '正在读取配置…',
|
||||
operationFailed: '操作失败:',
|
||||
issueIdentity: 'DSH 身份开场白已变更',
|
||||
issuePersona: '预设角色前缀已变更',
|
||||
issuePlan: '计划模式段落已变更',
|
||||
issuePtcOnly: 'PTC 模式 run_code 规则已变更',
|
||||
issueStructuredOutput: '结构化输出指令已变更',
|
||||
issuePersona: '未检测到预设角色前缀段落,已自动保留原版提示词',
|
||||
updateTitle: '版本与更新',
|
||||
currentVersion: '当前版本',
|
||||
latestVersion: '最新版本',
|
||||
installSource: '安装方式',
|
||||
sourceGithub: 'GitHub 仓库',
|
||||
sourceFile: '本地目录 (file:)',
|
||||
sourceRegistry: '软件包镜像',
|
||||
sourceUnknown: '当前 Profile',
|
||||
updateIdle: '尚未检查更新',
|
||||
updateChecking: '正在检查更新…',
|
||||
updateUpToDate: '已是最新版本',
|
||||
updateAvailable: '发现新版本',
|
||||
updateInstalling: '正在下载并安装更新,请稍候…',
|
||||
updateInstalled: '已安装新版本,重启 DSH Web 或桌面端后生效',
|
||||
updateBadge: '可更新',
|
||||
updateRestartBadge: '待重启生效',
|
||||
checkUpdate: '检查更新',
|
||||
installUpdate: '立即更新',
|
||||
viewRelease: '发布说明',
|
||||
errorRpcDisconnected: '无法连接宿主服务,请确认 DSH 正在运行后刷新重试。',
|
||||
errorUnsupportedPreset: '不支持该预设模式的提示词预览。',
|
||||
errorMissingPersona: '当前预设未包含角色前缀段落,已自动保留原版提示词。',
|
||||
errorPreviewFailed: '生成提示词预览失败,请稍后刷新重试。',
|
||||
errorUpdateCheckFailed: '检查更新失败,请确认网络连接正常后重试。',
|
||||
errorUpdateNoProfile: '当前运行环境未绑定可管理的 Profile 目录,无法执行自动更新。',
|
||||
errorUpdateFileOutdated: '当前通过本地目录 (file:) 安装,且本地目录版本低于远端最新版本,请先更新本地源码目录后再点更新。',
|
||||
errorUpdateInstallFailed: '安装更新失败:',
|
||||
} satisfies Record<string, string>
|
||||
|
||||
/** Unrestricted card locale key union. */
|
||||
@@ -53,50 +77,74 @@ export type UnrestrictedLocaleKey = keyof typeof zh
|
||||
|
||||
/** English dictionary checked against the Chinese key set. */
|
||||
export const en = {
|
||||
title: 'Unrestricted mode',
|
||||
title: 'Unrestricted Mode',
|
||||
summaryEnabled: 'Enabled',
|
||||
summaryDisabled: 'Disabled',
|
||||
summaryLoading: 'Loading',
|
||||
summaryUnavailable: 'Settings unavailable',
|
||||
summaryValidationFailed: 'Some mode checks failed',
|
||||
description: 'When enabled, each mode\'s system prompt is replaced wholesale by a fused prompt built on its current original; disabling restores the stock DSH prompt. Applies from the next request and new subagents; in-flight requests, tool definitions, permissions, and session history are never touched.',
|
||||
summaryUnavailable: 'Read-only',
|
||||
summaryValidationFailed: 'Partial mode coverage',
|
||||
description: 'When enabled, system prompts across all modes and delegated subagents are fused with the unrestricted local execution contract; disabling restores the stock DSH prompt immediately. Takes effect from the next request without altering in-flight turns, tool schemas, permissions, or session history.',
|
||||
toggle: 'Enable unrestricted mode',
|
||||
scopeNote: 'This plugin can only rewrite prompts DSH generates itself; higher-priority rules from the model platform or host environment are out of scope.',
|
||||
statusTitle: 'Per-mode status',
|
||||
scopeNote: 'Applies only to system prompts assembled by DSH; upstream model provider policies outside the prompt are out of scope.',
|
||||
statusTitle: 'Mode Coverage & Prompt Preview',
|
||||
statusSubtitle: 'Covers all 4 built-in presets and delegated subagents. Expand any mode to inspect or copy the full fused prompt.',
|
||||
modeStandard: 'Standard',
|
||||
modePtc: 'PTC',
|
||||
modeCordis: 'Cordis',
|
||||
modeMinimal: 'Minimal',
|
||||
subagentNote: 'Subagents follow their parent\'s mode.',
|
||||
modeStandardDesc: 'General coding, reverse engineering, scripting, and technical Q&A',
|
||||
modePtc: 'PTC Mode',
|
||||
modePtcDesc: 'Programmatic tool calling via the run_code execution environment',
|
||||
modeCordis: 'Cordis Mode',
|
||||
modeCordisDesc: 'DSH and Cordis plugin development and framework debugging',
|
||||
modeMinimal: 'Minimal Mode',
|
||||
modeMinimalDesc: 'Zero-prior minimal system prompt and subagent foundation',
|
||||
subagentNote: 'Subagents (including structured-output subagents) automatically follow their parent mode.',
|
||||
stateActive: 'Active',
|
||||
stateOff: 'Off',
|
||||
stateChecking: 'Checking',
|
||||
stateValidationFailed: 'Check failed — stock prompt kept',
|
||||
recheck: 'Re-check',
|
||||
stateOff: 'Standby',
|
||||
stateValidationFailed: 'Skipped (missing persona section)',
|
||||
refresh: 'Refresh',
|
||||
preflightTitle: 'What this deployment would write',
|
||||
fingerprint: 'Contract fingerprint',
|
||||
fingerprintNote: 'One-to-one with the current prompt: the text below is exactly what each mode deploys.',
|
||||
preset: 'Preset',
|
||||
presetStandard: 'standard',
|
||||
presetPtc: 'ptc',
|
||||
presetCordis: 'cordis',
|
||||
presetMinimal: 'minimal',
|
||||
showPreview: 'Show preview',
|
||||
showPreview: 'Preview prompt',
|
||||
hidePreview: 'Hide preview',
|
||||
previewLoading: 'Assembling the current prompt…',
|
||||
previewUnavailable: 'No preview available: ',
|
||||
copyPreview: 'Copy prompt',
|
||||
copiedPreview: 'Copied',
|
||||
previewLoading: 'Assembling prompt preview…',
|
||||
previewUnavailable: 'Preview unavailable: ',
|
||||
previewSize: 'lines',
|
||||
previewSourceLive: 'live session',
|
||||
previewSourceStanding: 'standing preset',
|
||||
settingsUnavailable: 'This connection cannot write settings (remote browser is read-only).',
|
||||
settingsLoading: 'Reading settings…',
|
||||
previewSourceLive: 'Live session assembly',
|
||||
previewSourceStanding: 'Preset baseline assembly',
|
||||
settingsUnavailable: 'This connection is read-only and cannot modify settings.',
|
||||
settingsLoading: 'Loading configuration…',
|
||||
operationFailed: 'Operation failed: ',
|
||||
issueIdentity: 'harness identity opening changed',
|
||||
issuePersona: 'preset persona changed',
|
||||
issuePlan: 'plan-mode section changed',
|
||||
issuePtcOnly: 'ptc-mode run_code rule changed',
|
||||
issueStructuredOutput: 'structured-output instruction changed',
|
||||
issuePersona: 'Preset persona section not found — stock prompt kept',
|
||||
updateTitle: 'Version & Updates',
|
||||
currentVersion: 'Current version',
|
||||
latestVersion: 'Latest version',
|
||||
installSource: 'Install source',
|
||||
sourceGithub: 'GitHub repository',
|
||||
sourceFile: 'Local directory (file:)',
|
||||
sourceRegistry: 'Package registry',
|
||||
sourceUnknown: 'Active profile',
|
||||
updateIdle: 'Not checked yet',
|
||||
updateChecking: 'Checking for updates…',
|
||||
updateUpToDate: 'Up to date',
|
||||
updateAvailable: 'Update available',
|
||||
updateInstalling: 'Downloading and installing update…',
|
||||
updateInstalled: 'Update installed — restart DSH Web or Desktop to apply',
|
||||
updateBadge: 'Update available',
|
||||
updateRestartBadge: 'Restart to apply',
|
||||
checkUpdate: 'Check for updates',
|
||||
installUpdate: 'Update now',
|
||||
viewRelease: 'Release notes',
|
||||
errorRpcDisconnected: 'Cannot reach the host service. Please verify DSH is running and refresh.',
|
||||
errorUnsupportedPreset: 'Prompt preview is not supported for this preset.',
|
||||
errorMissingPersona: 'The preset is missing a persona prefix section; the stock prompt is kept.',
|
||||
errorPreviewFailed: 'Could not assemble the prompt preview. Please try refreshing.',
|
||||
errorUpdateCheckFailed: 'Could not check for updates. Please verify your network connection and try again.',
|
||||
errorUpdateNoProfile: 'This runtime does not expose a managed profile directory for self-update.',
|
||||
errorUpdateFileOutdated: 'Installed from a local file: directory whose version is older than the latest release. Update the local directory first.',
|
||||
errorUpdateInstallFailed: 'Failed to install update: ',
|
||||
} satisfies Record<UnrestrictedLocaleKey, string>
|
||||
|
||||
/** Dictionary namespace owned by this plugin. */
|
||||
|
||||
Reference in new issue
Block a user