diff --git a/README.ja.md b/README.ja.md index d62ee95..0a252c5 100644 --- a/README.ja.md +++ b/README.ja.md @@ -13,7 +13,7 @@ DeepSeek Harness(DSH)で、プロンプトキャッシュが切れた古い - **入力禁止(`block`)**:セッションは開いて読めるまま、あなたの送信だけを止めます。エージェントが進めている作業(ツールの実行・ジョブ・サブエージェント・ゴール・リマインダー)は止めません。続けて送りたいときは、入力欄の上のボタンか `/unlock` コマンドで次の 1 回だけを許可できます。 - **自動アーカイブ(`archive`)**:しばらく更新のないセッションを自動でアーカイブし、サイドバーから隠して開けないようにします。 -両方を組み合わせる `both` モード(60 分で入力禁止、24 時間でアーカイブ)や、一時的に機能を止める `off` モードへ、チャットの `/sentinel` コマンドからいつでも切り替えられます(公式 Web UI では、引数つきの `/sentinel` は現在入力欄から実行できません。[#36](https://github.com/AliceSaikawa/cache-sentinel/issues/36))。 +両方を組み合わせる `both` モード(60 分で入力禁止、24 時間でアーカイブ)や、一時的に機能を止める `off` モードへ、チャットの `/sentinel` コマンドからいつでも切り替えられます。 ## 導入 @@ -67,7 +67,6 @@ DeepSeek Harness(DSH)で、プロンプトキャッシュが切れた古い - `/sentinel`:現在の実効モードとその出どころ(`/sentinel` で設定 / YAML の設定)、しきい値、このセッションの最終応答からの経過分、`dryRun` の状態を表示します。 - `/sentinel block` | `archive` | `both` | `off`:実効モードを切り替えます。`$DSH_HOME/cache-sentinel/profiles/<プロファイル名>/state.json`(プロファイルごと)に保存され、DSH 再起動後も維持されます(YAML の `mode` より優先)。 - `/sentinel default`:`/sentinel` で保存したモードを消去し、YAML の `mode` 設定に戻します。 -- 注意:公式 Web UI では、引数つきの `/sentinel`(`block`・`archive`・`both`・`off`・`default`)は現在入力欄から実行できず、普通のメッセージとして送られます([#36](https://github.com/AliceSaikawa/cache-sentinel/issues/36))。引数なしの `/sentinel` と `/unlock` は使えます。修正されるまでは、モードは YAML の `mode` で切り替えてください。 引数は任意です。入力欄に `/sentinel ` と打つと、引数を入力するまで候補がプレースホルダとして表示されます。 diff --git a/README.md b/README.md index b367936..a1c4c53 100644 --- a/README.md +++ b/README.md @@ -13,7 +13,7 @@ For sessions where the prompt cache lifetime has passed, this plugin prevents ac - **Input blocking (`block`)**: Keeps the session open and readable while stopping the messages you send to the model. Work the agent is already doing (tool runs, jobs, subagents, goals, reminders) keeps going. When you want to continue sending, you can allow just the next send using the button above the input box or the `/unlock` command. - **Auto-archiving (`archive`)**: Automatically archives sessions that have not been updated for a while, hiding them from the sidebar so they cannot be opened. -You can switch at any time from the chat `/sentinel` command to `both` mode, which combines both (input blocking after 60 minutes, archiving after 24 hours), or `off` mode, which temporarily disables the feature. (In the official Web UI, `/sentinel` with an argument currently cannot be run from the input box: [#36](https://github.com/AliceSaikawa/cache-sentinel/issues/36).) +You can switch at any time from the chat `/sentinel` command to `both` mode, which combines both (input blocking after 60 minutes, archiving after 24 hours), or `off` mode, which temporarily disables the feature. ## Installation @@ -67,7 +67,6 @@ You can check the current status and switch modes from the chat input box. - `/sentinel`: Shows the current effective mode and its source (set via `/sentinel` / set in YAML), thresholds, elapsed minutes since the last response in this session, and `dryRun` status. - `/sentinel block` | `archive` | `both` | `off`: Switches the effective mode. It is saved to `$DSH_HOME/cache-sentinel/profiles//state.json` (per profile) and preserved across DSH restarts (takes precedence over `mode` in YAML). - `/sentinel default`: Clears the mode saved via `/sentinel` and reverts to the `mode` setting in YAML. -- Note: in the official Web UI, `/sentinel` with an argument (`block`, `archive`, `both`, `off`, `default`) currently cannot be run from the input box. It is sent as a normal message instead ([#36](https://github.com/AliceSaikawa/cache-sentinel/issues/36)). `/sentinel` without an argument and `/unlock` work. Until this is fixed, switch modes with `mode` in YAML. The argument is optional. After you type `/sentinel ` in the input box, the choices are shown as placeholder text until you type an argument. diff --git a/README.zh-CN.md b/README.zh-CN.md index c6e80c6..7577183 100644 --- a/README.zh-CN.md +++ b/README.zh-CN.md @@ -13,7 +13,7 @@ DeepSeek Harness(DSH)插件,用于防止误向提示缓存(Prompt Cache - **禁止输入(`block`)**:保持会话可打开和阅读,仅阻止你的发送。代理正在进行的工作(工具执行、作业、子代理、目标、提醒)不会被阻止。若希望继续发送,可通过输入框上方的按钮或 `/unlock` 命令仅允许下一次发送。 - **自动归档(`archive`)**:自动归档一段时间未更新的会话,将其从侧边栏隐藏并设为不可打开。 -您可以随时在聊天输入框中通过 `/sentinel` 命令切换到结合两者的 `both` 模式(60 分钟后禁止输入,24 小时后归档),或暂时停用功能的 `off` 模式。(在官方 Web UI 中,带参数的 `/sentinel` 目前无法从输入框执行:[#36](https://github.com/AliceSaikawa/cache-sentinel/issues/36)。) +您可以随时在聊天输入框中通过 `/sentinel` 命令切换到结合两者的 `both` 模式(60 分钟后禁止输入,24 小时后归档),或暂时停用功能的 `off` 模式。 ## 安装 @@ -67,7 +67,6 @@ DeepSeek Harness(DSH)插件,用于防止误向提示缓存(Prompt Cache - `/sentinel`:显示当前生效模式及其来源(通过 `/sentinel` 设置 / YAML 设置)、阈值、当前会话距最后一次响应的经过分钟数,以及 `dryRun` 状态。 - `/sentinel block` | `archive` | `both` | `off`:切换生效模式。保存在 `$DSH_HOME/cache-sentinel/profiles/<配置文件>/state.json` 中(按配置文件分开),DSH 重启后依然保持(优先于 YAML 中的 `mode`)。 - `/sentinel default`:清除通过 `/sentinel` 保存的模式,恢复为 YAML 中的 `mode` 设置。 -- 注意:在官方 Web UI 中,带参数的 `/sentinel`(`block`、`archive`、`both`、`off`、`default`)目前无法从输入框执行,会作为普通消息发送([#36](https://github.com/AliceSaikawa/cache-sentinel/issues/36))。不带参数的 `/sentinel` 和 `/unlock` 可以使用。在修复之前,请通过 YAML 中的 `mode` 切换模式。 参数可选。在输入框中输入 `/sentinel ` 后,在输入参数之前,候选项会以占位文字的形式显示。 diff --git a/docs/README.md b/docs/README.md index c390c07..e5a81f2 100644 --- a/docs/README.md +++ b/docs/README.md @@ -14,5 +14,6 @@ - [spike.md](spike.md): DSH 本体の型定義・API・イベント仕様の調査記録 - [dsh-version-check.md](dsh-version-check.md): 対応範囲の両端(DSH 0.2.0-rc.2・0.2.1-rc.1)での実機確認記録(Issue #12、2026-10-18)。範囲はその後 #31 で 0.2.1-rc.2 まで拡大(rc.2 は実機未確認)。0.2.1-rc.3 まで広げたときの実機確認(2026-10-26)も同じ文書にある。0.2.1-rc.4・rc.5・0.2.2-alpha.2 は実機未確認(2026-11-01、spike.md に比較の記録) - [rdsh-check.md](rdsh-check.md): rustdsh 環境(Desktop・同梱プラグイン)での動作確認記録(Issue #16、2026-10-17) +- [rdsh-proposal.md](rdsh-proposal.md): rustdsh の推奨プラグインへの追加の提案の下書きと、判断が要る点(Issue #17、2026-11-02) - [feasibility.md](feasibility.md): 初期の実現可能性調査メモ - [implementation-plan.md](implementation-plan.md): タスク分割と各バージョンの実装・実機検証記録 diff --git a/docs/rdsh-proposal.md b/docs/rdsh-proposal.md new file mode 100644 index 0000000..baeb00f --- /dev/null +++ b/docs/rdsh-proposal.md @@ -0,0 +1,293 @@ +# rustdsh の推奨プラグインへの追加の提案 (Issue #17, 2026-11-02) + +> この文書は開発時の記録と、rustdsh に出す提案の下書きです。rustdsh への提出は人が行います。 + +Issue #17 の「最後の手順」(rustdsh 側への追加の提案)のために、rustdsh の現状を調べ、変更案をまとめた。 + +- 対象: rustdsh main `b060ccf`(2026-11-01)。引用は `rustdsh/<パス>:行@b060ccf`。 +- #17 の起票時(`3ce1ad8`)から、rustdsh の導入の仕組みが変わった。推奨プラグインの一覧は `plugins/install.sh` のほかに `src/plugin_catalog.json` にもあり、バイナリに組み込まれる。`tests/plugin-catalog.test.mjs` が両者の一致を検査する(`rustdsh/src/plugin_catalog.json:3@b060ccf`、`rustdsh/tests/plugin-catalog.test.mjs:12-17@b060ccf`)。`rdsh plugins install` はこのカタログから導入する(`rustdsh/src/plugins.rs:172-200@b060ccf`)。そのため、変更の対象は #17 本文の 3 ファイルではなく、`plugins/install.sh`・`src/plugin_catalog.json`・`plugins/recommended.md` と、推奨の件数を数える Rust のテスト 1 行(`rustdsh/src/plugins.rs:1253-1256@b060ccf`)になる(`src/desktop.rs` は変更不要。後述の 5)。 + +## cache-sentinel 側の準備状況 + +#17 の背景にある「推奨には入れられない 3 点」は、cache-sentinel 側では対応が済んでいる。 + +| 点 | 状況 | 対応 | +|---|---|---| +| インストール | `github:AliceSaikawa/cache-sentinel` で導入できる。ビルド済みの `lib/` をコミットし、CI がビルド結果との一致を検査する | #14(PR #23)、#11 | +| 対応プラットフォーム | プロファイルは `web`・`desktop`。`headless` などでは起動しない(エラーは出ない)。Windows で state.json を保存できる。CI は Linux と Windows | #15(PR #24)、#6、#11 | +| 対応する DSH の版 | rustdsh が扱う版はすべて main の `peerDependencies`(`>=0.2.0-rc.2 <=0.2.1-rc.5 \|\| 0.2.2-alpha.2`)に入る(下記) | #12、#31、PR #48、PR #51 | +| 既定の挙動 | 既定の `mode: block` のまま、止めるのはユーザーの送信で始まるステップだけ。ジョブの完了通知・サブエージェント・ゴール・リマインダー(rdsh-answer-guard を含む)は止めない | #7(PR #33) | + +rustdsh が扱う DSH の版: + +- ツールの監査対象: 0.2.0-rc.2、0.2.1-alpha.1、0.2.1-alpha.3、0.2.1-rc.3、0.2.1-rc.4、0.2.2-alpha.2(`rustdsh/src/tool_security.rs:29-64@b060ccf`) +- Desktop の同梱: 0.2.1-alpha.2(`rustdsh/desktop/upstream.lock.json:5-6@b060ccf`) +- headless の実行環境: 0.2.0-rc.2(`rustdsh/scripts/headless-runtime/runtime/package.json:5@b060ccf`) + +ただし最新のリリース v0.6.0 の宣言は `>=0.2.0-rc.2 <=0.2.1-rc.3` なので、v0.6.0 のタグや tgz を指定すると、0.2.1-rc.4 と 0.2.2-alpha.2 では追加時に拒否される。main(PR #51 の後)を指す指定なら入る。 + +## 判断が要る点 + +### 1. どの段に入れるか + +1. **推奨の段に入れ、既定はオフ**(おすすめ): `--recommended=cache-sentinel`・`CACHE_SENTINEL=1`・`--recommended=all` で入る。 +2. スターターセットに入れる(web・desktop で既定オン)。 +3. 必須の段に入れる。 + +おすすめの理由: cache-sentinel は導入しただけで、古いセッションへの送信を止める。rustdsh は、慣れた既定の操作を変えるプラグイン(`ui-comfort` の Enter、`easy-work` の空のチャット)をスターターセットから外している(`rustdsh/plugins/recommended.md:57-64@b060ccf`、`rustdsh/plugins/install.sh:136-138@b060ccf`)。cache-sentinel もこれに当たる。2 にするなら、推奨経由で入れたときの既定のモードを `off` などにする必要があるが、#7 で既定は `block` のままと決めている。 + +### 2. 指定する版 + +1. **`github:AliceSaikawa/cache-sentinel`(main)**(おすすめ): sound・gitview と同じ形で、修正が rustdsh のリリースを待たずに届く。main の `lib/` は CI でビルド結果と照らしている。 +2. `github:AliceSaikawa/cache-sentinel#v<版>` で固定する: 上記のとおり v0.6.0 は rustdsh の一部の版で拒否されるので、先に新しい版のリリースが要る。版を上げるたびに rustdsh 側の更新も要る。 + +1 を選ぶと、cache-sentinel の main を常に導入できる状態に保つ責任がこちらに残る。 + +### 3. headless に入ったときの扱い + +`--recommended=all` や `--recommended=cache-sentinel` を `PROFILE=headless` で使うと、cache-sentinel は入るが起動しない(サービスを待ったままになり、エラーもログも出ない。README「対応バージョン・動作環境」)。 + +1. **そのままにし、表に web・desktop だけで動くと書く**(おすすめ): 実害がなく、変更が小さい。 +2. 推奨の段でも、カタログの `profiles` で web・desktop 以外には入れないようにする: いま `profiles` を見るのは必須の段だけ(`rustdsh/src/plugins.rs:137-142@b060ccf`、`rustdsh/tests/plugin-catalog.test.mjs:59-71@b060ccf`)。`install.sh` と `src/plugins.rs` の `recommended_for` を変える必要があり、rustdsh の作りの変更になる。 + +### 4. `rdsh.json` の `features.*` で除外できるようにするか + +1. **足さない**(おすすめ): 既定でオフなので、入るのは利用者が選んだときだけ。`features.*` は利用者の設定で、選ばれたプラグインを拒否するためのもの(`rustdsh/plugins/install.sh:218-220@b060ccf`)。いま `install.sh` でこの拒否を受ける推奨プラグインは、既定でオンの第三者プラグイン(sound・gitview)だけで、既定オフの `ui-comfort` などには無い(`rustdsh/plugins/install.sh:259-260@b060ccf`)。 +2. `features.cache_sentinel` を足す: `--recommended=all` でも除外したい人向け。`src/rdsh_config.rs` の `FEATURES`(`:108`)、`install.sh` の `*_feature_allowed`、テストを足すことになる。 + +#17 本文のとおり、ここは rustdsh 側と相談する点として提案文に書く。 + +### 5. `src/desktop.rs` + +変更しない(おすすめ)。`DEFAULT_THIRD_PARTY`(`rustdsh/src/desktop.rs:63@b060ccf`)は `rdsh desktop install` が既定で入れる一覧で、既定オフのものは入れない。Desktop には、`install.sh` の `PROFILE=desktop` の分岐が `--package` で渡し(下の差分)、`rdsh plugins install --profile desktop` もカタログで選んだものを `--package` で渡す(`rustdsh/src/plugins.rs:950-995@b060ccf`)。 + +## 変更案で確かめたこと + +下の差分を、ローカルの rustdsh `b060ccf` に当てて確かめた。 + +- `node --test tests/plugin-catalog.test.mjs`: 5 件成功 +- `DRY_RUN=1 sh plugins/install.sh`(`DSH_HOME` は空の一時ディレクトリ): + - `PROFILE=web`(既定): cache-sentinel は入らない + - `PROFILE=web` に `RECOMMENDED=cache-sentinel`・`CACHE_SENTINEL=1`・`RECOMMENDED=all` のどれか: `dsh plugin --profile web add github:AliceSaikawa/cache-sentinel` が出る + - `PROFILE=headless`(既定): 入らない + - `PROFILE=desktop RECOMMENDED=cache-sentinel`(`RDSH_BIN=true`): `rdsh desktop install` の引数に `--package github:AliceSaikawa/cache-sentinel` が入る。既定では入らない +- 確かめていないこと: cargo が無いので、rustdsh の Rust のテスト(`cargo test` など)と `tests/regress.sh` は実行していない。`--recommended=all` の件数を 9 と比べるテスト(`rustdsh/src/plugins.rs:1253-1256@b060ccf`)は、読んだうえで 10 に直した。ほかに件数や一覧を固定したテストが無いかは、`subagent-route` と `intelligent-ui` を grep して探しただけで、実行では確かめていない。rustdsh の PR には、CONTRIBUTING のテスト一式が要る。 + +## 提案文の下書き + +rustdsh の CONTRIBUTING は英語を先に書く。Issue の feature の様式(Goal・Non-goals・Proposal・Fit check)に合わせた。 + +```markdown +### Goal +Offer cache-sentinel (https://github.com/AliceSaikawa/cache-sentinel, MIT) as an opt-in +recommended plugin, so web/desktop users can guard against sending to sessions whose +prompt cache has likely expired (uncached prompts are billed at the full rate). + +### Non-goals +- Not part of the starter set or the essential tier: it is off by default, because it + changes a familiar default (your next send to an idle session is stopped until `/unlock`). +- No change to the agent loop or profile boot. + +### Proposal +- `plugins/install.sh`: new recommended id `cache-sentinel` (`CACHE_SENTINEL=1`), + spec `github:AliceSaikawa/cache-sentinel`, off by default on every profile. +- `src/plugin_catalog.json`: the matching recommended entry (not `starter`). +- `plugins/recommended.md`: the id list, a row in the recommended table and in the third-party credits. +- `src/plugins.rs`: the test that counts `--recommended=all` goes from 9 to 10. +- `src/desktop.rs`: no change (`DEFAULT_THIRD_PARTY` stays as is; desktop gets it through `--package`). + +Facts on the plugin side: +- Installs from `github:` without a build (built `lib/` is committed and checked in CI). +- Starts on profiles with `@deepseek-ai/dsh-web-app` (web, desktop). On headless it + never starts and stays silent. +- Declares `peerDependencies` `@deepseek-ai/dsh >=0.2.0-rc.2 <=0.2.1-rc.5 || 0.2.2-alpha.2`, + which covers 0.2.0-rc.2, 0.2.1-alpha.1/2/3, 0.2.1-rc.3/4 and 0.2.2-alpha.2. +- Blocks only steps started by the user's own send; job notices, subagents, goals and + reminders (including rdsh-answer-guard) pass. + +Questions for rustdsh: +- Should `features.cache_sentinel` be able to veto it (like sound/gitview), even under + `--recommended=all`? Our suggestion is no, because it is opt-in. +- Should recommended entries honor `profiles`, so it is skipped on headless? Our + suggestion is to keep the current behavior and document "web/desktop only". + +### Fit check +- [x] Keeps the agent loop / profile boot in `dsh` (no reimplementation) +- [x] Includes acceptance criteria I can test + +Acceptance criteria: +- `node --test tests/plugin-catalog.test.mjs` passes. +- `PROFILE=web DRY_RUN=1 ./plugins/install.sh` does not add cache-sentinel; + with `--recommended=cache-sentinel` it prints `dsh plugin --profile web add github:AliceSaikawa/cache-sentinel`. +- On a web profile installed this way, a send to a session idle past `idleMinutes` is + stopped with a notice in the conversation, the banner above the input box offers + `/unlock`, and `/unlock` lets one send through. +``` + +## 付録: 差分(rustdsh `b060ccf` に対して) + +```diff +diff --git a/plugins/install.sh b/plugins/install.sh +index 350f384..3dccf1c 100755 +--- a/plugins/install.sh ++++ b/plugins/install.sh +@@ -39,7 +39,7 @@ UI_COMFORT="${UI_COMFORT:-0}" + INTELLIGENT_UI="${INTELLIGENT_UI:-$BROWSER_PLUGINS_DEFAULT}" + TRANSLATION="${TRANSLATION:-$BROWSER_PLUGINS_DEFAULT}" + REPO_ROOT="$(cd "$(dirname "$0")/.." && pwd)" +-RECOMMENDED_IDS="translation compute easy-work subagents ui-comfort subagent-route sound gitview intelligent-ui" ++RECOMMENDED_IDS="translation compute easy-work subagents ui-comfort subagent-route sound gitview intelligent-ui cache-sentinel" + + usage() { + cat <&2 + exit 2 +@@ -192,13 +196,14 @@ select_recommended_individually() { + if prompt_yes_no "github:cwd514/dsh-sound-notifications" "$rec_sound"; then rec_sound=1; else rec_sound=0; fi + if prompt_yes_no "github:yugapor/dsh-gitview" "$rec_gitview"; then rec_gitview=1; else rec_gitview=0; fi + if prompt_yes_no "dsh-intelligent-ui (visual answers)" "$rec_intelligent_ui"; then rec_intelligent_ui=1; else rec_intelligent_ui=0; fi ++ if prompt_yes_no "github:AliceSaikawa/cache-sentinel (stop sends after the prompt cache expires)" "$rec_cache_sentinel"; then rec_cache_sentinel=1; else rec_cache_sentinel=0; fi + } + + prompt_recommended() { + printf '\nRecommended plugins (optional):\n' >&2 + printf ' rdsh-translation, rdsh-compute, rdsh-easy-work, rdsh-subagent-optimizer,\n' >&2 + printf ' rdsh-ui-comfort, github:cwd514/dsh-sound-notifications, github:yugapor/dsh-gitview,\n' >&2 +- printf ' dsh-intelligent-ui\n' >&2 ++ printf ' dsh-intelligent-ui, github:AliceSaikawa/cache-sentinel\n' >&2 + printf 'Install recommended plugins? [Y/n/a=all/s=select individually] ' >&2 + IFS= read -r _answer || _answer="" + case "$_answer" in +@@ -319,6 +324,7 @@ if [ "$PROFILE" = "desktop" ]; then + for p in $RECOMMENDED_BUNDLED; do echo " [recommended] $REPO_ROOT/plugins/$p" >&2; done + if [ "$rec_sound" = "1" ]; then echo " [recommended] github:cwd514/dsh-sound-notifications" >&2; fi + if [ "$rec_gitview" = "1" ]; then echo " [recommended] github:yugapor/dsh-gitview" >&2; fi ++ if [ "$rec_cache_sentinel" = "1" ]; then echo " [recommended] github:AliceSaikawa/cache-sentinel" >&2; fi + + exit 1 + fi +@@ -328,6 +334,7 @@ if [ "$PROFILE" = "desktop" ]; then + for p in $RECOMMENDED_BUNDLED; do set -- "$@" --package "$REPO_ROOT/plugins/$p"; done + if [ "$rec_sound" = "1" ]; then set -- "$@" --package github:cwd514/dsh-sound-notifications; fi + if [ "$rec_gitview" = "1" ]; then set -- "$@" --package github:yugapor/dsh-gitview; fi ++ if [ "$rec_cache_sentinel" = "1" ]; then set -- "$@" --package github:AliceSaikawa/cache-sentinel; fi + + if [ "$DRY_RUN" = "1" ]; then + printf '%s ' "$RDSH" desktop install "$@" +@@ -366,5 +373,8 @@ fi + if [ "$rec_gitview" = "1" ]; then + run_add github:yugapor/dsh-gitview "recommended third-party git panel" + fi ++if [ "$rec_cache_sentinel" = "1" ]; then ++ run_add github:AliceSaikawa/cache-sentinel "recommended third-party prompt-cache guard" ++fi + echo "done: $ok ok, $fail failed (profile: $PROFILE)" + [ "$fail" -eq 0 ] +diff --git a/plugins/recommended.md b/plugins/recommended.md +index 8fc38cf..21f4c81 100644 +--- a/plugins/recommended.md ++++ b/plugins/recommended.md +@@ -77,10 +77,10 @@ Choose a set explicitly (or for CI) with `--recommended`: + | `id,id` | exactly the listed ids | + + Ids: `translation`, `compute`, `easy-work`, `subagents`, `ui-comfort`, +-`sound`, `gitview`, `intelligent-ui`. The `RECOMMENDED` environment variable ++`sound`, `gitview`, `intelligent-ui`, `cache-sentinel`. The `RECOMMENDED` environment variable + carries the same value for callers that only set the environment. An explicit + spec replaces the `TRANSLATION`, `COMPUTE`, `EASY_WORK`, `SUBAGENTS`, +-`UI_COMFORT`, `INTELLIGENT_UI`, `SOUND` and `GITVIEW` defaults; ++`UI_COMFORT`, `INTELLIGENT_UI`, `SOUND`, `GITVIEW` and `CACHE_SENTINEL` defaults; + `features.sound=false` / `features.gitview=false` in `rdsh.json` still veto + those two, even under `--recommended=all`. + +@@ -146,6 +146,7 @@ check its duplicate-ID behavior before migrating existing profiles. + | `sound` | `github:cwd514/dsh-sound-notifications` (MIT, (c) 2026 cwd514) | web, desktop | Effect sounds (Web Audio synthesis, no audio files) and desktop notifications for reply-done / approval-waiting / questions / errors / re-login. Zero dependencies, no build step. | + | `gitview` | `github:yugapor/dsh-gitview` (MIT, (c) 2026 yugapor) | web, desktop | Git panel in the Web sidebar: working-tree changes, staging and commits, unified/side-by-side diffs, commit graph, branches, blame, reflog, and CI status. | + | `intelligent-ui` | `dsh-intelligent-ui` (bundled; MIT, (c) 2026 cwd514) | web, desktop | ChatGPT-style visual answers: the model calls the declarative `render_ui` tool and the plugin draws the view (tables, charts, comparisons, timelines, inputs, calculators; 15 block types, nesting up to 6 levels). A browser client plugin, so `PROFILE=web` is the intended target; skip it with `INTELLIGENT_UI=0`. | ++| `cache-sentinel` | `github:AliceSaikawa/cache-sentinel` (MIT, (c) 2026 AliceSaikawa) | off | Guards against uncached prompts: once a session has been idle past the prompt-cache lifetime (60 min by default), it stops your next send there (the agent's own work keeps running) and offers `/unlock` for one more send; `/sentinel archive` instead archives idle sessions. Works on web and desktop profiles only; on `headless` it never starts. | + + Notes: + +@@ -214,6 +215,7 @@ authors. + | [dsh-sound-notifications](https://github.com/cwd514/dsh-sound-notifications) by cwd514 | MIT | Recommended `sound` plugin: effect sounds and desktop notifications. Default on for web/desktop; skip with `--recommended=none`, `SOUND=0`, or `features.sound=false`. | + | [dsh-gitview](https://github.com/yugapor/dsh-gitview) by yugapor | MIT | Recommended `gitview` plugin: sidebar Git panel. Default on for web/desktop; skip with `--recommended=none`, `GITVIEW=0`, or `features.gitview=false`. | + | [dsh-intelligent-ui](https://github.com/cwd514/dsh-intelligent-ui) by cwd514 | MIT | Recommended `intelligent-ui` plugin: `render_ui` visual answers in the DSH Web chat. Default on for web/desktop; skip with `--recommended=none`, `INTELLIGENT_UI=0`, or `rdsh desktop install --no-intelligent-ui`. | ++| [cache-sentinel](https://github.com/AliceSaikawa/cache-sentinel) by AliceSaikawa | MIT | Recommended `cache-sentinel` plugin: stops sends to sessions whose prompt cache likely expired. Off by default; add with `--recommended=cache-sentinel` or `CACHE_SENTINEL=1`. | + + ## Workflow board source preparation + +diff --git a/src/plugin_catalog.json b/src/plugin_catalog.json +index 8d024b2..ad3b4a8 100644 +--- a/src/plugin_catalog.json ++++ b/src/plugin_catalog.json +@@ -145,6 +145,11 @@ + "starter": true, + "why": "interactive visual answers (render_ui), bundled", + "bundled": true ++ }, ++ { ++ "id": "cache-sentinel", ++ "package": "github:AliceSaikawa/cache-sentinel", ++ "why": "stop sends to sessions whose prompt cache likely expired (web/desktop)" + } + ] + } +diff --git a/src/plugins.rs b/src/plugins.rs +index a09a4b4..99b1aac 100644 +--- a/src/plugins.rs ++++ b/src/plugins.rs +@@ -1252,7 +1252,7 @@ mod tests { + ); + assert_eq!( + catalog.recommended_for("web", Some("all")).unwrap().len(), +- 9 ++ 10 + ); + assert!(catalog + .recommended_for("web", Some("none")) +``` diff --git a/tests/index.test.ts b/tests/index.test.ts index a2e201c..dbd265f 100644 --- a/tests/index.test.ts +++ b/tests/index.test.ts @@ -533,10 +533,13 @@ test('#27: agent/status の購読は payload.agent.session を取り出し、idl // 失効したセッション (最終応答から 61 分)。append を記録する。 // apply は実時計 (Date.now) を使うので、イベント時刻も実時計から作る。 + // 時刻は先に 1 回だけ決める。判定は now() を取ってから snapshotEvents を読むので、 + // 読むたびに作ると、その間に時計が進んだとき経過が 61 分に 1 ms 足りず 60 分と表示される。 + const lastStepEndAt = Date.now() - 61 * MINUTE const appends: Array<{ type: string; data: unknown }> = [] const session = { id: 's1', - snapshotEvents: () => [{ type: 'step/end', time: Date.now() - 61 * MINUTE }], + snapshotEvents: () => [{ type: 'step/end', time: lastStepEndAt }], append: (type: string, data: unknown) => { appends.push({ type, data }) },