[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"project-108618":3},{"id":4,"name":5,"fullName":6,"owner":7,"repo":5,"description":8,"homepage":9,"htmlUrl":10,"language":11,"languages":10,"totalLinesOfCode":10,"stars":12,"forks":13,"watchers":14,"openIssues":15,"contributorsCount":15,"subscribersCount":15,"size":15,"stars1d":15,"stars7d":16,"stars30d":17,"stars90d":15,"forks30d":15,"starsTrendScore":15,"compositeScore":18,"rankGlobal":10,"rankLanguage":10,"license":19,"archived":20,"fork":20,"defaultBranch":21,"hasWiki":22,"hasPages":20,"topics":23,"createdAt":10,"pushedAt":35,"updatedAt":36,"readmeContent":37,"aiSummary":38,"trendingCount":15,"starSnapshotCount":15,"syncStatus":39,"lastSyncTime":40,"discoverSource":41},108618,"dsh-plugins","Mt-Youya\u002Fdsh-plugins","Mt-Youya","A plugin collection for DeepSeek Harness (DSH). Install this one bundle to get every plugin listed below; each plugin can also be installed on its own.","https:\u002F\u002Fnpmjs.com\u002Fpackage\u002F@cyrusdoyle\u002Fdsh-plugins",null,"TypeScript",109,55,51,0,22,135,66.24,"MIT License",false,"main",true,[24,25,26,27,28,29,30,31,32,33,34,5],"ai-agent","ai-agents","claude","claude-ai","claude-code","codex","dsh","dsh-bundle","dsh-plugin","dsh-plugin-desktop","dsh-plugin-market","2026-11-16 08:46:49","2026-11-23 15:17:15","English | [简体中文](.\u002FREADME.zh.md)\n\n# Cyrus Plugins · @cyrusdoyle\u002Fdsh-plugins\n\nA plugin collection for DeepSeek Harness (DSH). Install this one bundle to get every plugin listed below; each plugin can also be installed on its own.\n\n![The Sessions Insight panel](plugins\u002Fsessions-insight\u002Fdocs\u002Fimages\u002F01-merged-tree.png)\n\n## Plugins\n\n| Plugin                                                 | npm package                  | What it does                                                                                                                                  |\n| ------------------------------------------------------ | ---------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- |\n| [Sessions Insight](.\u002Fplugins\u002Fsessions-insight\u002FREADME.md) | `@cyrusdoyle\u002Fdsh-sessions-insight` | Opens up what each turn of a Claude Code, DSH or Codex session actually fed the model: composition, tool calls, compactions, cost. Includes confirmed session deletion. |\n\n## Install\n\nRequires DSH 0.2.1-rc.5 or newer (see `docs\u002Fadr\u002F0002-asar-021-is-the-contract.md`). First decide which profile to install into: the desktop app uses `desktop`, `dsh web` on the command line uses `web`. Installing into the wrong profile does not error; the plugin just never shows up.\n\n**Install the collection (recommended)** to get every plugin at once; when a plugin is added to the collection later, upgrading the collection brings it in.\n\n```bash\ndsh plugin --profile desktop add @cyrusdoyle\u002Fdsh-plugins   # desktop app\ndsh plugin --profile web     add @cyrusdoyle\u002Fdsh-plugins   # dsh web\n```\n\n**Install a single plugin**:\n\n```bash\ndsh plugin --profile desktop add @cyrusdoyle\u002Fdsh-sessions-insight   # desktop app\ndsh plugin --profile web     add @cyrusdoyle\u002Fdsh-sessions-insight   # dsh web\n```\n\nThen **fully quit and reopen** DSH. \"Cyrus Plugins\" or \"Sessions Insight\" in the plugin manager means it worked.\n\n> **Pick one of the two.** The collection and the standalone plugin insert the same id into the loader tree; with both in `dsh.profile.bundles`, DSH fails at boot with `duplicate loader entry id`. Run `dsh plugin --profile \u003Cname> remove` on one before switching to the other.\n>\n> **Git installs work for the standalone plugin, not for the collection.** `plugins\u002Fsessions-insight\u002Flib\u002F` is committed, so the member can be installed straight from this repository without running build scripts — for example `dsh plugin --profile desktop add github:Mt-Youya\u002Fdsh-plugins#path:\u002Fplugins\u002Fsessions-insight`, or point the plugin manager at a local checkout of that directory. The collection cannot be installed from Git: its root `dependencies` use `workspace:^`, which is only rewritten to a version number by `pnpm pack` \u002F publish. Install the collection from npm, or link this checkout as described below.\n\n**Installing from this working tree (developing the collection)**: the desktop plugin manager's \"Add plugin\" also accepts a local directory — point it at this checkout's absolute path. DSH records it as `\"@cyrusdoyle\u002Fdsh-plugins\": \"link:\u003Cthat path>\"`: a symlink into your working tree, not a copy, and nothing is built for you. The host resolves `lib\u002Findex.js` through that link, and `lib\u002F` is gitignored, so build it first (the collection embeds the compiled stylesheet, so the CSS step comes first):\n\n```bash\nnode scripts\u002Fbuild-css.mjs plugins\u002Fsessions-insight && npx tsdown --minify\n```\n\nThen fully quit and reopen DSH. Later edits only need a rebuild and a restart — there is no need to reinstall.\n\nEach plugin's usage, permission boundary and known limitations live in its own README.\n\n## Settings, balance and update checks\n\nThe collection embeds the same plugin source as the standalone member (ADR 0009), so its runtime behaviour is the Sessions Insight behaviour: read-only insight, the handoff, confirmed session deletion, plus a settings page and two opt-in utilities.\n\n- **Settings are saved by the Host.** `\u002Fapi\u002Fdsh-sessions-insight\u002Fsettings` is read-only; the six switches (session overview, Skills tab, cumulative level chart, expand tools by default, balance display, automatic version checks) are written through the Host's configuration form and stored by the Host. The plugin writes no config file.\n- **Balance and version checks are off by default.** Turning one on — or pressing its button — is the only thing that makes the plugin call out. Outbound traffic is limited to two fixed HTTPS endpoints, `https:\u002F\u002Fapi.deepseek.com\u002Fuser\u002Fbalance` and `https:\u002F\u002Fregistry.npmjs.org\u002F@cyrusdoyle%2F...\u002Flatest`, with no redirects, no cookies and no caller-controlled URL.\n- **Credentials**: the balance check resolves the credential reference configured for the DeepSeek official adapter (`apiKeyEnv`, default `DEEPSEEK_API_KEY`), then falls back to the signed-in DeepSeek account. Custom provider references are not followed; the plugin never stores or logs the key.\n- **The read surface never rewrites source logs.** The only writes are the handoff routes — `handoff\u002Fapply` delivers a brief through the official `session.create` + `session.prompt`, `handoff\u002Freveal` creates or reuses a workspace so an existing DSH session is visible there — and confirmed session deletion. `\u002Fbalance` additionally accepts loopback callers only, because the Host webserver has no site-wide auth.\n- **Requires DSH 0.2.1-rc.5+**: the settings page needs the `configForms` client service and the `plugins.bundle.config` slot introduced in that version.\n\nThe plugin README has the full route list, defaults and known limitations.\n\n## Repository layout\n\nThis is a pnpm monorepo. Only the collection and `plugins\u002F*` are published; the rest is inlined into the plugins at build time.\n\n| Path                         | Contents                                                                  | Published                             |\n| ---------------------------- | ------------------------------------------------------------------------- | ------------------------------------- |\n| `\u002F` (root)                   | The collection bundle: `cordis.patch.yml`, `locale\u002F`, its own `lib\u002F`      | **yes**, `@cyrusdoyle\u002Fdsh-plugins`         |\n| `plugins\u002Fsessions-insight`    | The Sessions Insight plugin: host half and browser half                       | **yes**, `@cyrusdoyle\u002Fdsh-sessions-insight` |\n| `packages\u002Fsession-contract`  | The unified IR, wire types and their guards                               | no                                    |\n| `packages\u002Fsession-readers`   | Claude Code \u002F Codex \u002F DSH readers                                         | no                                    |\n| `packages\u002Fplugin-kit`        | Plugin-agnostic JSON envelope and URL spelling                            | no                                    |\n| `packages\u002Fplugin-kit-host`   | Host-half plumbing: route table, same-origin gate, envelope, LRU          | no                                    |\n| `packages\u002Fplugin-kit-client` | Browser-half plumbing: decoding fetch, style injection, slot registration | no                                    |\n| `apps\u002Fpreview`               | Local preview harness on `:5178`                                          | no                                    |\n| `scripts`                    | CSS build, bundle-contract check, install script, session probes          | no                                    |\n| `tooling`                    | Package alias table, tsconfig base, tsdown config                         | no                                    |\n\nDependencies point one way only: `plugins\u002F* → packages\u002F*`. The package-name-to-source mapping lives in `tooling\u002Faliases.ts`, and `tsconfig.json`'s `paths` mirrors it, so tests, the preview app and the build never need the internal packages built first.\n\n## Development\n\n```bash\npnpm install\n```\n\n```bash\npnpm dev\n```\n\nThe preview runs at \u003Chttp:\u002F\u002Flocalhost:5178> and reads your real local sessions; add `?theme=light` or `?theme=dark` to switch themes.\n\nRun the gates before you commit:\n\n```bash\nnpx tsc --noEmit && npx tsc --noEmit -p tsconfig.client.json && npx vitest run && node scripts\u002Fbuild-css.mjs plugins\u002Fsessions-insight && npx tsdown --minify && node scripts\u002Fcheck-bundle.mjs plugins\u002Fsessions-insight && node scripts\u002Fcheck-bundle.mjs .\n```\n\nCI runs the same gates and additionally fails when the committed `plugins\u002Fsessions-insight\u002Flib\u002F` differs from a rebuild — see [`.github\u002Fworkflows\u002Fci.yml`](.\u002F.github\u002Fworkflows\u002Fci.yml).\n\nRebuild the artifacts and check that the profile's link really points at your build (this does not install — installation happens in the DSH plugin manager):\n\n```bash\npnpm install:plugin\n```\n\nRegenerate the README screenshots from the preview (headless Chrome, 1440×900; add `-- --theme light` for the light theme). They show the sessions on your machine, so look at them before committing:\n\n```bash\npnpm screenshots\n```\n\nOptional browser checks (need a local Chrome; not part of CI):\n\n- `pnpm smoke:preview` measures the mounted panel in both themes under `?probe=1`.\n- `pnpm check:ui` drives the session-menu interactions against a fixture server.\n\n## Publishing\n\nFollow [`docs\u002FRELEASE.md`](.\u002Fdocs\u002FRELEASE.md): the member and the collection share one version number and are published together, member first (ADR 0010).\n\n## Documentation\n\n- [`docs\u002FRELEASE.md`](.\u002Fdocs\u002FRELEASE.md) — publishing to npm\n- `docs\u002FPLAN.md` — decisions and milestones (Chinese)\n- `docs\u002FIR.md` — the unified turn IR, the adapter contract (Chinese)\n- `docs\u002FAPI.md` — host route contract (Chinese)\n- `docs\u002FHANDOFF.md` — handoff contract (Chinese)\n- `docs\u002Fadr\u002F` — architecture decision records (Chinese)\n- `GLOSSARY.md` — vocabulary (Chinese)\n\n## License\n\n[MIT](.\u002FLICENSE)\n\n## Star History\n\n\u003Ca href=\"https:\u002F\u002Fwww.star-history.com\u002F?repos=Mt-Youya%2Fdsh-plugins\">\n \u003Cpicture>\n   \u003Csource media=\"(prefers-color-scheme: dark)\" srcset=\"https:\u002F\u002Fapi.star-history.com\u002Fchart?repos=Mt-Youya\u002Fdsh-plugins&type=date&theme=dark&legend=top-left\" \u002F>\n   \u003Csource media=\"(prefers-color-scheme: light)\" srcset=\"https:\u002F\u002Fapi.star-history.com\u002Fchart?repos=Mt-Youya\u002Fdsh-plugins&type=date&legend=top-left\" \u002F>\n   \u003Cimg alt=\"Star History Chart\" src=\"https:\u002F\u002Fapi.star-history.com\u002Fchart?repos=Mt-Youya\u002Fdsh-plugins&type=date&legend=top-left\" \u002F>\n \u003C\u002Fpicture>\n\u003C\u002Fa>\n","这是一个为 DeepSeek Harness（DSH）AI 开发环境提供的插件集合包，旨在统一分发和管理各类增强型功能插件。当前核心插件为 Sessions Insight，可深度可视化 Claude Code、DSH 或 Codex 对话会话的底层结构，包括模型输入组成、工具调用序列、内容压缩过程及推理成本，并支持已确认会话的彻底删除。项目基于 TypeScript 构建，遵循 DSH 插件规范，支持桌面端与 Web 端双 profile 部署。适用于 AI 工程师、LLM 应用开发者及需要调试、审计和优化大模型交互流程的技术团队。",2,"2026-11-24 04:34:45","CREATED_QUERY"]