Repository navigation
docs: #17 の残作業として、解決済みの #36 の注意書きを消し、rustdsh への提案を下書きする - #52
Merged
AliceSaikawa merged 3 commits intoNov 1, 2026
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This is by an automated agent, not a human.
#17 の残作業を洗い出しました。コードで片づくのは次の 2 つだけだったので、この PR にまとめました。
docs/rdsh-proposal.md)を書いた。判断が要る点は選択肢とおすすめを書き、差分はおすすめの形で作ったあわせて、この PR の CI(ubuntu)で落ちた既存のテスト 1 件の不安定さを直しました(下の変更点の 3 つ目)。
Refs #17
#17 の残作業
docs/rdsh-check.mdの Desktop 7)docs/rdsh-proposal.mdに書いた。提出はお任せします#17 本文のチェックボックスは閉じた Issue の分も外れたままです。agent のアカウントには cache-sentinel への書き込み権限が無いので、Issue 本文は編集していません。
変更点
README.md・README.ja.md・README.zh-CN.md: 「公式 Web UI では、引数つきの/sentinelは入力欄から実行できない(入力欄で /sentinel に引数を付けると、コマンドにならず普通のメッセージとして送られる #36)」の 2 か所を消した。入力欄で /sentinel に引数を付けると、コマンドにならず普通のメッセージとして送られる #36 は PR fix: /sentinel の引数を入力欄から渡せるよう input を登録する #37 で直って閉じており、0.2.1-rc.3 の実機確認(PR feat: 対応する DSH の範囲を 0.2.1-rc.3 まで広げる #48)で入力欄からの/sentinel archiveが動いている。「対応バージョン」の 0.2.0-rc.2・0.2.1-rc.1 の確認記録にある 入力欄で /sentinel に引数を付けると、コマンドにならず普通のメッセージとして送られる #36 の記述は、当時の記録なので残した。docs/rdsh-proposal.md(新規)とdocs/README.mdの目次: rustdsh mainb060ccfを調べた結果、判断が要る点、rustdsh に当てる差分、Issue の下書き(英語。rustdsh の feature の様式)。src/plugin_catalog.jsonにも入った。tests/plugin-catalog.test.mjsがこの一覧とinstall.shの一致を検査する。そのため差分はplugins/install.sh・src/plugin_catalog.json・plugins/recommended.mdと、件数を数える Rust のテスト 1 行(src/plugins.rs)に当てる。src/desktop.rsは変えない。tests/index.test.ts: ブロック通知がブロックされた turn の折りたたみの奥に隠れて、送信直後に読めない #27 の結線テスト(agent/statusの購読)で、最終応答の時刻(61 分前)を先に 1 回だけ決めるようにした。判定はnow()を取ってからsnapshotEvents()を読む(src/block.ts:199-206)。これまではテストのsnapshotEvents()が読むたびにDate.now() - 61 分を作っていたので、間に時計が 1 ms 進むと経過が 61 分に足りず「60 分」と表示され、/最終応答から 61 分/の照合に落ちた。この PR の最初の CI の ubuntu で実際に落ちている(docs だけの変更のとき)。期待値は変えていない。判断が要る点(詳細は
docs/rdsh-proposal.md)ui-comfortなど)をスターターセットから外しているため。github:AliceSaikawa/cache-sentinel(main)(おすすめ)/#v<版>で固定。v0.6.0 の宣言は<=0.2.1-rc.3なので、rustdsh が扱う 0.2.1-rc.4 と 0.2.2-alpha.2 では拒否される。固定するなら先に新しい版のリリースが要る。profilesで除外する(rustdsh の作りの変更になる)。features.cache_sentinelでの除外: 足さない(おすすめ。既定でオフのため)/ 足す。rustdsh(rdsh)の推奨プラグインに対応する #17 のとおり、提案文では rustdsh への相談事項にしている。src/desktop.rs: 変えない(おすすめ)。Desktop には--packageで渡る。検証
npm run typecheck: 成功npm test: 460 件成功。直したテストだけを 20 回続けて実行し、20 回とも成功npm run build: 成功。lib/に差分なしb060ccfに当てて確かめた。node --test tests/plugin-catalog.test.mjs: 5 件成功DRY_RUN=1で:PROFILE=webの既定では入らない。--recommended=cache-sentinel・CACHE_SENTINEL=1・--recommended=allではdsh plugin --profile web add github:AliceSaikawa/cache-sentinelが出る。PROFILE=headlessの既定では入らない。PROFILE=desktopではrdsh desktop installに--packageで渡るcargo testとtests/regress.shは実行していない。rustdsh に PR を出すには、rustdsh の CONTRIBUTING にあるテスト一式が要る実機での確認手順(お任せします)
#17 の完了条件「rustdsh の install.sh で web プロファイルに入れ、入力禁止・
/unlock・バナーが動くことを実機で確認している」のための手順です。この PR では DSH を実機で動かしていません。HOME・DSH_HOME・XDG_*・TMPDIRを作業ディレクトリに向けて隔離する。rustdsh が扱う版の DSH(例:npm install --prefix <dir>/prefix @deepseek-ai/dsh@0.2.1-rc.4)のdshとpnpmをPATHに置き、web プロファイルを用意する。LLM の資格情報も隔離して用意する(応答が 1 回要る)。b060ccfで clone し、docs/rdsh-proposal.mdの付録の差分をgit applyで当てる。PROFILE=web DRY_RUN=1 ./plugins/install.sh --recommended=cache-sentinelで、最後にdsh plugin --profile web add github:AliceSaikawa/cache-sentinelが出ることを見てから、DRY_RUN=1を外して実行する。done: N ok, 0 failedで終わることを確認する。rustdsh の必須プラグイン(rdsh-answer-guard など)も一緒に入るので、rdsh の環境そのものになる。PROFILE=web ./plugins/install.sh --recommended=noneの後にdsh plugin --profile web add github:AliceSaikawa/cache-sentinelを実行しても同じになる(差分の install.sh が実行するのはこのコマンドです)。dsh plugin --profile web list cache-sentinel --depth 0で入っていることを確認する。cordis.patch.ymlの cache-sentinel にmode: blockとidleMinutes: 1を入れてdsh webを起動する。ログに[cache-sentinel] 開始が出て、状態ファイルが…/cache-sentinel/profiles/web/state.jsonになっていることを確認する。/unlockを送る経路も同じように確かめる。残っていること
docs/rdsh-proposal.mdの下書きで Issue を出す)。package.jsonのversionは 0.6.0 のままですが、main の宣言はリリース済みの 0.6.0 と違います(PR feat: 対応する DSH の範囲を 0.2.2-alpha.2 まで広げる #51 で広げた後)。rustdsh で版を固定する場合や、tgz を配る場合は、先に版を上げてリリースする必要があります。