diff --git a/README.en.md b/README.en.md index 6b1212f..bfff6df 100644 --- a/README.en.md +++ b/README.en.md @@ -20,7 +20,7 @@ The plugin is deeply integrated into DSH's prompt assembly pipeline. While injec - [Web Mode](#web-mode) - [Desktop App](#desktop-app) - [Local Source Install](#local-source-install) -- [Usage & UI Features](#usage--ui-features) +- [Usage (Double-Switch Activation)](#usage-double-switch-activation) - [Operational Boundaries](#operational-boundaries) - [Development & Testing](#development--testing) - [License & Credits](#license--credits) @@ -112,7 +112,7 @@ dsh plugin --profile web add github:yexi-by/dsh-unrestricted#v0.2.1 # Or track master dsh plugin --profile web add github:yexi-by/dsh-unrestricted ``` -Restart `dsh web`, then open **Plugins → Unrestricted mode** in the sidebar to enable. +Restart `dsh web`, then follow the [Usage section](#usage-double-switch-activation) to enable both the plugin and the unrestrict toggle. #### Update ```sh @@ -146,7 +146,7 @@ On Windows, the default path is: ```powershell & "$env:LOCALAPPDATA\Programs\DeepSeek Harness\resources\runtime\cli\bin\dsh.cmd" plugin --profile desktop add github:yexi-by/dsh-unrestricted#v0.2.1 ``` -3. Launch the desktop app and enable "Unrestricted mode" under Settings → Plugins. +3. Launch the desktop app and follow the activation steps below. #### 3. Update 1. Completely exit the desktop app. @@ -178,12 +178,19 @@ dsh plugin --profile web add file:D:/work/dsh/plugin/unrestricted --- -## Usage & UI Features +## Usage (Double-Switch Activation) -In the **Plugins → Unrestricted mode** panel: +> **Important: Both switches must be turned on for unrestrict rules to take effect!** +> +> 1. **Step 1 (Plugin Activation Switch)**: Navigate to **Plugins** in the sidebar. In the installed plugins list, find `dsh-unrestricted` (Unrestricted mode) and **toggle the plugin ON**. If the plugin is not enabled here, DSH will not load the plugin runtime at all. +> 2. **Step 2 (Feature Toggle Switch)**: Navigate to **Unrestricted mode** in the sidebar/settings, and turn on the **"Enable unrestricted mode"** switch at the top. +> +> Both switches must be active for rules to be injected into the system prompt assembly pipeline. + +### Settings Panel Features - **Enable Switch**: Toggles unrestrict mode globally for future requests. -- **Per-Mode Status**: Shows real-time injection status across Standard, PTC, Cordis, and Minimal modes (`Active` indicates successful anchor verification and injection). +- **Per-Mode Status**: Shows real-time injection status across Standard, PTC, Cordis, and Minimal modes (`Active` indicates successful anchor verification and injection; if inactive, check whether the plugin is toggled on in the Plugins manager). - **Rule Fingerprint**: Displays the SHA-256 hash (first 16 hex characters) of the deployed unrestrict rule block. - **Prompt Preview**: Click **"Show preview"** under any mode to inspect the exact system prompt text, line count, and byte size. diff --git a/README.ja.md b/README.ja.md index f7a420d..000ad4e 100644 --- a/README.ja.md +++ b/README.ja.md @@ -20,7 +20,7 @@ - [Web 版](#web-版) - [デスクトップ版](#デスクトップ版) - [ローカルソースインストール](#ローカルソースインストール) -- [使用方法と UI 機能](#使用方法と-ui-機能) +- [使用方法(二重スイッチの確認)](#使用方法二重スイッチの確認) - [動作境界と注意事項](#動作境界と注意事項) - [開発とテスト](#開発とテスト) - [ライセンスと謝辞](#ライセンスと謝辞) @@ -110,7 +110,7 @@ dsh plugin --profile web add github:yexi-by/dsh-unrestricted#v0.2.1 # または master 最新コードのインストール dsh plugin --profile web add github:yexi-by/dsh-unrestricted ``` -インストール後に `dsh web` を再起動し、サイドバーの **「プラグイン」→「破限モード(Unrestricted mode)」** で有効化します。 +インストール後に `dsh web` を再起動し、下記の使用方法に従ってプラグインと機能スイッチの両方をオンにします。 #### アップデート ```sh @@ -144,7 +144,7 @@ Windows の標準パス: ```powershell & "$env:LOCALAPPDATA\Programs\DeepSeek Harness\resources\runtime\cli\bin\dsh.cmd" plugin --profile desktop add github:yexi-by/dsh-unrestricted#v0.2.1 ``` -3. デスクトップアプリを起動し、「プラグイン」設定から本プラグインを有効化します。 +3. デスクトップアプリを起動し、下記の使用方法に従って設定を完了します。 #### 3. アップデート手順 1. デスクトップアプリを完全に終了します。 @@ -176,12 +176,19 @@ dsh plugin --profile web add file:D:/work/dsh/plugin/unrestricted --- -## 使用方法と UI 機能 +## 使用方法(二重スイッチの確認) -設定画面(**プラグイン → 破限モード**): +> **重要:両方のスイッチがオンになって初めて、制限解除が実際に有効化されます!** +> +> 1. **ステップ 1(プラグイン読み込みスイッチ)**:サイドバーの **「プラグイン」** 管理画面を開き、インストール済み一覧から `dsh-unrestricted`(破限モード)を探して、**プラグイン自体を有効化(オン)**にします。ここがオフの場合、DSH はプラグインのコード自体をロードしません。 +> 2. **ステップ 2(機能トグルスイッチ)**:サイドバーの **「破限モード」** 設定画面を開き、上部の **「破限を有効化」** スイッチをオンにします。 +> +> 上記の 2 つが両方オンになって初めて、システムプロンプト構築時に制限解除ルールが注入されます。 + +### 設定画面の機能 - **有効化スイッチ**:ワンクリックで制限解除を切り替えます。 -- **各モードの状態表示**:Standard、PTC、Cordis、Minimal の注入状態を表示します。「有効」であれば正常にアンカーが一致し、適用されています。 +- **各モードの状態表示**:Standard、PTC、Cordis、Minimal の注入状態を表示します。「有効」であれば正常にアンカーが一致し、適用されています(未ロードの場合はプラグイン管理画面でプラグインがオンになっているか確認してください)。 - **ルールフィンガープリント**:適用されている制限解除テキストの SHA-256 ハッシュ(先頭 16 文字)を表示します。 - **プロンプトプレビュー**:「プレビューを表示」をクリックすると、モデルに送信される**実際のシステムプロンプト全文・行数・バイト数**を確認できます。 diff --git a/README.md b/README.md index 375d111..4e196ca 100644 --- a/README.md +++ b/README.md @@ -20,7 +20,7 @@ - [Web 端](#web-端) - [桌面端(Desktop App)](#桌面端desktop-app) - [本地源码安装](#本地源码安装) -- [使用说明](#使用说明) +- [使用说明(双重开关确认)](#使用说明双重开关确认) - [使用边界与说明](#使用边界与说明) - [本地开发与测试](#本地开发与测试) - [开源协议与致谢](#开源协议与致谢) @@ -112,7 +112,7 @@ dsh plugin --profile web add github:yexi-by/dsh-unrestricted#v0.2.1 # 或安装 master 最新代码 dsh plugin --profile web add github:yexi-by/dsh-unrestricted ``` -安装后重启 `dsh web`,在 Web 界面左侧菜单进入 **「插件」→「破限模式」** 开启开关。 +安装后重启 `dsh web`,在浏览器打开界面进行启用(详见下方[使用说明](#使用说明双重开关确认))。 #### 更新 ```sh @@ -146,7 +146,7 @@ dsh plugin --profile web remove dsh-unrestricted ```powershell & "$env:LOCALAPPDATA\Programs\DeepSeek Harness\resources\runtime\cli\bin\dsh.cmd" plugin --profile desktop add github:yexi-by/dsh-unrestricted#v0.2.1 ``` -3. 启动桌面客户端,在「插件」页面确认「破限模式」已加载并开启。 +3. 启动桌面客户端,按下方说明启用插件与功能开关。 #### 3. 更新步骤 1. 完全退出桌面客户端。 @@ -178,12 +178,19 @@ dsh plugin --profile web add file:D:/work/dsh/plugin/unrestricted --- -## 使用说明 +## 使用说明(双重开关确认) -进入界面的 **「插件」→「破限模式」** 设置卡片: +> **特别注意:必须同时确保两处开关均已打开,插件才会真正生效!** +> +> 1. **第一步(插件加载开关)**:进入左侧侧边栏的 **「插件」** 管理页面,在已安装插件列表中找到 `dsh-unrestricted`(破限模式),**点击打开/启用该插件**。如果未在插件列表开启,DSH 运行时根本不会加载该插件代码。 +> 2. **第二步(破限功能开关)**:在左侧菜单或设置中进入 **「破限模式」** 设置卡片,将卡片顶部的 **「启用破限」** 开关打开。 +> +> 只有上述两个开关同时开启,破限规则才会实际注入到系统提示词流水线中。 -- **启用破限开关**:一键切换破限状态,修改后下一次对话即刻生效。 -- **各模式状态**:实时查看 Standard、PTC、Cordis、Minimal 四个模式的注入状态。显示 `已生效` 即表示特征校验通过并成功注入。 +### 「破限模式」设置面板功能 + +- **启用破限开关**:一键切换破限功能状态,开启后下一次对话即刻生效。 +- **各模式状态**:实时查看 Standard、PTC、Cordis、Minimal 四个模式的注入状态。显示 `已生效` 即表示特征校验通过并成功注入;若显示异常,请首先检查「插件」管理页面中插件是否已被打开。 - **提示词指纹**:展示当前注入规则的 SHA-256 哈希值(前 16 位),便于核对部署版本。 - **查看提示词预览**:点击各模式下的「查看预览」,可实时查看即将发送给模型的**完整系统提示词正文、总行数与字节数**。