@linxin666/dsh-liangshen 0.4.21 → 0.4.23

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.i18n.yaml CHANGED
@@ -2,5 +2,5 @@
2
2
  # side as of the last confirmed-consistent state. Both languages carry equal authority;
3
3
  # after editing either side, bring the other along and re-record with:
4
4
  # node scripts/verify-docs.mjs --write <dir>
5
- README.md: ae2d073d623a2705ed5bf1fe7aef60df72ab8ba7
6
- README.zh.md: 42fc9204268c2bd263fbae6a87cdb9bf07c40c5a
5
+ README.md: 6402f8237b58172cd7e5bdf3d5644e024dcf016f
6
+ README.zh.md: 36f3b9df68b58547a7af65c22f00b8cc9b552165
package/README.md CHANGED
@@ -5,7 +5,7 @@ English | [中文](README.zh.md)
5
5
  <p align="center">
6
6
  <img src="https://img.shields.io/npm/v/@linxin666/dsh-liangshen?style=flat-square" alt="Version">
7
7
  &nbsp;
8
- <img src="https://img.shields.io/badge/DSH-%3E%3D0.2.2--rc.3-4c6ef5?style=flat-square&amp;labelColor=454a54" alt="DSH">
8
+ <img src="https://img.shields.io/badge/DSH-%3E%3D0.2.3--alpha.4-4c6ef5?style=flat-square&amp;labelColor=454a54" alt="DSH">
9
9
  &nbsp;
10
10
  <img src="https://img.shields.io/badge/license-Apache--2.0-blue?style=flat-square" alt="License">
11
11
  </p>
@@ -25,11 +25,11 @@ LiangShen mode therefore keeps the whole session on one presentation, chosen by
25
25
 
26
26
  ## How it works
27
27
 
28
- 1. `minimal-prompt` narrows every assembled prompt to the persona section — the one-line persona, the mode's standing working discipline (close a repeated hypothesis after two reasoning passes and call an inspection tool instead of speculating; think only about the next concrete operation rather than pre-rehearsing code; emit multiple tool calls concurrently in a single turn for independent inspections; treat shell processes as ephemeral with no directory persistence across calls and use compound commands or explicit workdir for subdirectories; verify against actual tool output during execution; YAGNI and PDCA; no redundant comments), and one appended orientation line, `Your working directory is <cwd>.` read from the session header — so the harness identity, web-surface, tool-guidance, file-reference, and structured-output sections do not reach the model by default; plan mode's `plan:policy` is kept, because that section is the only thing that enforces plan mode (its exit tool stays registered in every mode);
28
+ 1. `minimal-prompt` narrows every assembled prompt to the persona section — the one-line persona, the mode's standing working discipline (close a repeated hypothesis after two reasoning passes and call an inspection tool instead of speculating; think only about the next concrete operation rather than pre-rehearsing code; emit multiple tool calls concurrently in a single turn for independent inspections; treat shell processes as ephemeral with no directory persistence across calls and use compound commands or explicit workdir for subdirectories; verify against actual tool output during execution; YAGNI and PDCA; no redundant comments), and one appended orientation line, `Your working directory is <cwd>.` read from the session header — so the harness identity, web-surface, tool-guidance, file-reference, and structured-output sections do not reach the model by default; plan mode's `plan:policy` is kept (as the only section enforcing plan mode, while its exit tool stays registered in every mode), and official `mcp:<server>:tools` summary sections are preserved when MCP `toolLoading: 'on-demand'` is active;
29
29
  2. AGENTS.md-style workspace instructions reach the model through `instructionSource`: by default (`host`) the preset appends no section of its own and leaves the harness's own delivery of those instructions untouched, so they arrive as its user-role messages — one persistent baseline plus incremental additions, replacements, and removals as directories are touched; under `system-prompt` they join the system prompt itself: at assembly time `minimal-prompt` reads the harness's baseline chain (`$DSH_HOME/AGENTS.md`, then `AGENTS.md` / `CLAUDE.md` and their `.local` overlays from the project root down to the session cwd) and appends the content as one `workspace-instructions` section after the stable prefix, under a byte budget that omits broadest files first and truncates the most specific last; the read happens on every assembly, so file edits propagate without durable messages, and the harness's own agent-instructions injections are dropped instead of duplicating the prompt. Subdirectory dynamic rules will subsequently support registered file tools (including `str_replace_editor`) and `run_code` sub-calls reaching target directories; arbitrary bash or program code is not parsed, and automatic discovery of file accesses performed directly within shell commands is not guaranteed;
30
30
  3. the wire keeps one presentation for the entire session, selected by `presentation`: `ptc` (the default) collapses the wire to `run_code` with every other tool reached through the generated SDK, and `native` carries the assembled native roster; `ptc` needs a mounted code runtime — without one no PTC executor can be mounted, so the session simply runs the native surface. The legacy `ptcPresentation` key maps onto `ptc`/`native` with a deprecation warning, and the retired `anchorTools` first-turn narrowing no longer engages — setting it warns;
31
31
  4. `tool-catalog` appends the tool list as a durable user message after the user's message, preserving complete input and output key parameter semantics (`descriptionMaxLength: 200` caps only the one-line summaries). The plugin carries a hand-written one-line summary for each host builtin this preset mounts: a curated tool renders that line whole, so a length cut never slices off the sentence that says what the tool is for, and `descriptionMaxLength` remains the fallback for every tool the table does not name. It names exactly the tools the current request opens — the native roster, or the SDK-reachable projection under `ptc` — and, under tool paging, adds one-line summaries for the namespaces whose tools are held back. Under `ptc` the summaries name namespaces that are genuinely unreachable — neither listed in the request's `tools:sdk` section nor callable from inside a `run_code` program — until `tool_activate`; It republishes only when that surface changes or the published copy left the visible surface (a compaction, a resume);
32
- 5. on-demand tool-family paging ships on (`pagedToolPatterns: ['mcp__*', 'browser_*', 'task_board_*', 'team_*', 'squad*', 'ui_*', 'ssh_*']`): the MCP bridge and the six mounted plugin tool families stay off the wire, out of the generated SDK, and unreachable to `run_code` dispatches — announced as one-line namespace summaries in the catalog — while every host builtin (shell, filesystem/read/write/edit/`str_replace_editor`, `glob`/`grep`, background jobs, `skill`, `ask_user_question`, `todo_write`, `web_search`, subagent delegation, plan, goal, `fact_register`, `tool_activate`, and MCP resource readers) stays resident. Each pattern's literal head determines how `patternNamespace` derives the namespace: a head ending in `__` is an MCP bridge and takes the first `__`-delimited segment of the remaining tool name (`mcp__codegraph__codegraph_explore` -> `codegraph`); any other head names a plugin family literally with at most one trailing `_` dropped (`task_board_*` -> `task_board`, `squad*` -> `squad`, grouping `squads_*` and `squad_member_*` under one namespace). Calling `tool_activate({ namespace })` brings that namespace back from the next request on; at most three paged namespaces stay active simultaneously (`maxActiveNamespaces`, default `3`), refreshing recency on activation or on any non-errored call into an active namespace and evicting the least recently used back to summary when a fourth is activated, with activation state replayed from the durable session event stream across compactions and resumes; optional `idleReclaimSteps` (default `0` = off) expires a namespace with no successful activation or call for N steps, but the expiry applies only at an application point — the next `tool_activate` activation or a `compaction/end` compaction boundary — moments the request's prefix rebuilds anyway, so reclaim adds no prefix-cache rebuild; until then the namespace stays resident and reachable, and any successful call refreshes its recency and cancels the expiry;
32
+ 5. on-demand tool-family paging ships on (`pagedToolPatterns: ['mcp__*', 'browser_*', 'task_board_*', 'team_*', 'squad*', 'ui_*', 'ssh_*']`): the MCP bridge and the six mounted plugin tool families stay off the wire, out of the generated SDK, and unreachable to `run_code` dispatches — announced as one-line namespace summaries in the catalog — while every host builtin (shell, filesystem/read/write/edit/`str_replace_editor`, `glob`/`grep`, background jobs, `skill`, `ask_user_question`, `todo_write`, `web_search`, subagent delegation, plan, goal, `fact_register`, `tool_activate`, and MCP resource readers) stays resident. When official MCP `toolLoading: 'on-demand'` is active on a server, its `mcp__<server>__load_tools` loader and already-loaded tools stay resident rather than being double-paged under `mcp__*`. Each pattern's literal head determines how `patternNamespace` derives the namespace: a head ending in `__` is an MCP bridge and takes the first `__`-delimited segment of the remaining tool name (`mcp__codegraph__codegraph_explore` -> `codegraph`); any other head names a plugin family literally with at most one trailing `_` dropped (`task_board_*` -> `task_board`, `squad*` -> `squad`, grouping `squads_*` and `squad_member_*` under one namespace). Calling `tool_activate({ namespace })` brings that namespace back from the next request on; at most three paged namespaces stay active simultaneously (`maxActiveNamespaces`, default `3`), refreshing recency on activation or on any non-errored call into an active namespace and evicting the least recently used back to summary when a fourth is activated, with activation state replayed from the durable session event stream across compactions and resumes; optional `idleReclaimSteps` (default `0` = off) expires a namespace with no successful activation or call for N steps, but the expiry applies only at an application point — the next `tool_activate` activation or a `compaction/end` compaction boundary — moments the request's prefix rebuilds anyway, so reclaim adds no prefix-cache rebuild; until then the namespace stays resident and reachable, and any successful call refreshes its recency and cancels the expiry;
33
33
  6. a minimal working-context line — plan-mode state, active paged namespaces, in-progress todos, and the key-fact register — is injected at the tail of the latest message only when its sources are readable, keeping current state inside the model's local attention window; runtime contexts (the sandbox and approval snapshots) and the skill catalog flow as in Standard mode;
34
34
  7. the catalog groups the tools of an activated paged family under a `namespace `<name>` (activated):` heading instead of scattering one family's tools through the alphabetical list, while every non-paged tool keeps its flat entry;
35
35
  8. `maxResidentTokens` (default 8000) estimates the always-on-wire surface and warns once when it is crossed, naming the heaviest tools and `pagedToolPatterns` as the remedy. The threshold was re-estimated for V4.1 (its KV cache is a quarter of V4-Flash's, so the same schema load occupies a quarter of the sparse-index slots and the budget moved from 6000 to 8000), still calibrated above the shipped roster so only real growth trips it. The guard never truncates: silently dropping a tool the session needs would trade a measurable context cost for an unmeasurable capability loss.
@@ -47,8 +47,6 @@ This mode operates strictly within the official host security architecture and c
47
47
 
48
48
  The browser half adds a slot-machine lever to the composer tool row, immediately left of the model selector, on the new-session screen, and the settings card marks this mode's own entry with a mark drawing that same lever — one knob, one arm, one pivot foot, painted in the current text color so it follows the active theme:
49
49
 
50
- - pull the lever down — drag it, click it, or press it with the keyboard — and the session about to start composes LiangShen mode; a landed pull plays the jackpot burst (flash, shockwave, sparks, and a banner reading 梁神模式 over classical Chinese, binary, and Morse lines);
51
-
52
50
  - pull the lever down — drag it, click it, or press it with the keyboard — and the session about to start composes LiangShen mode; a landed pull plays the jackpot burst (flash, shockwave, sparks, and a banner reading 梁神模式 over classical Chinese, binary, and Morse lines);
53
51
  - push it up and the preset you were on before comes back — with nothing remembered yet, that is the deployment default;
54
52
  - the arm always reports the session's real preset, so a reload shows the true state, and the lever renders only while the session is still blank — in a session that has started, the host refuses to recompose, and the row disappears from the composer entirely;
@@ -67,7 +65,7 @@ The preset-local plugins are configured in `agent.cordis.yml`:
67
65
  | `instructionSource` | `host` | Where workspace instructions reach the model. `host` (the default) appends no section of its own and leaves the harness's agent-instructions injection untouched, so the instructions arrive as the harness's own user-role messages: one persistent baseline plus incremental additions, replacements, and removals as directories are touched; `system-prompt` reads the AGENTS.md-style chain at assembly time and appends it to the system prompt (the harness's own injections are dropped); `hint` replaces the first injection with a one-time non-imperative reference-file hint and drops later ones. |
68
66
  | `instructionMaxBytes` | `65536` | Byte budget for the rendered workspace-instructions section, used only in `system-prompt` mode: broadest files are omitted first, the most specific file is truncated last. |
69
67
  | `descriptionMaxLength` | `200` | Cap for one tool's one-line summary in the injected catalog, applied to every tool the curated table does not name. A curated host builtin renders its hand-written line whole. Complete key parameter semantics remain fully preserved. |
70
- | `presentation` | `ptc` | Wire presentation for the whole session. `ptc` (the shipped default) collapses the wire to `run_code` with every other tool reached through the generated SDK; `native` keeps the assembled native roster. The settings overlay writes the value into the composition: the official `@deepseek-ai/dsh-tool-executor-ptc` row stays mounted for `ptc` and is disabled for `native`, so that row IS the wire (0.2.2 retired the per-scope `agent.ctx.tools.presentAs` declaration). A deployment with no PTC runtime keeps the native surface. The removed `both` mode is not accepted: an old profile naming it fails registration, so migrate the key to `ptc` or `native`. |
68
+ | `presentation` | `ptc` | Wire presentation for the whole session. `ptc` (the shipped default) collapses the wire to `run_code` with every other tool reached through the generated SDK; `native` keeps the assembled native roster. The settings overlay writes the value into the composition: the official `@deepseek-ai/dsh-tool-registry-ptc` row stays mounted for `ptc` and is disabled for `native`, so that row IS the wire (0.2.2 retired the per-scope `agent.ctx.tools.presentAs` declaration). A deployment with no PTC runtime keeps the native surface. The removed `both` mode is not accepted: an old profile naming it fails registration, so migrate the key to `ptc` or `native`. |
71
69
  | `pagedToolPatterns` | `['mcp__*', 'browser_*', 'task_board_*', 'team_*', 'squad*', 'ui_*', 'ssh_*']` | On-demand gentle paging ships on: each entry is a non-empty literal head without `*` ending in one trailing `*` (a bare `*` is rejected). Matching MCP and plugin tools stay off the wire and out of the generated SDK until activated via `tool_activate({ namespace })`, appearing in the catalog as one-line namespace summaries while all host builtins stay resident. A head ending in `__` derives the namespace from the first `__` segment of the remainder (MCP server); any other head drops at most one trailing `_` (`task_board_*` -> `task_board`, `squad*` -> `squad`). At most three paged namespaces stay active at once (`maxActiveNamespaces`, default `3`, integer `>= 1`), with LRU recency and active state replayed from the durable event stream. |
72
70
  | `idleReclaimSteps` | `0` | Deferred idle-reclaim threshold in steps (integer `>= 0`), written to the `tool-catalog`, `tool-activate`, and `working-context` rows from one source like `pagedToolPatterns`. `0` (the factory value) keeps activations resident until LRU eviction; a positive N expires a namespace with no successful activation or call for N steps, and the expiry applies only at the next activation or compaction boundary — moments the prefix cache rebuilds anyway, so no extra rebuild is paid; until then the namespace stays resident and reachable, and any call refreshes it. The expiry replays from the durable event stream too (`step/start` counts steps); a log without step evidence never reclaims. |
73
71
  | `maxResidentTokens` | `8000` | Estimated-token ceiling for the always-on-wire surface (the serialized schemas at roughly four characters per token), re-estimated for V4.1's compressed KV cache and still calibrated above the shipped roster so it flags real growth rather than the factory configuration. Crossing it warns once, names the heaviest tools, and points at `pagedToolPatterns`; it never truncates the roster. |
@@ -120,7 +118,7 @@ When validating mode behavior and evaluating performance, verification tiers mus
120
118
  | --- | --- | --- |
121
119
  | `enabled` | `true` | Master switch: when false, the preset is not declared and the announcement does not run. |
122
120
  | `announceToAgent` | `false` | Opt-in: when true, a system-prompt section announces the plugin. Off by default so agent system prompts stay clean. |
123
- | `presentation` | `ptc` | Wire presentation of the preset this plugin declares. The value is written into the `tool-catalog` row and drives the composition: the `@deepseek-ai/dsh-tool-executor-ptc` row it enables IS the wire, so `ptc` collapses it to `run_code` and `native` keeps the roster, and the catalog text describes the surface that composition produces. A change re-declares the preset as soon as the Host commits it, so the next session picks it up; a session that already started keeps the composition it declared. The removed `both` mode is rejected at registration — migrate an old profile to `ptc` or `native`. |
121
+ | `presentation` | `ptc` | Wire presentation of the preset this plugin declares. The value is written into the `tool-catalog` row and drives the composition: the `@deepseek-ai/dsh-tool-registry-ptc` row it enables IS the wire, so `ptc` collapses it to `run_code` and `native` keeps the roster, and the catalog text describes the surface that composition produces. A change re-declares the preset as soon as the Host commits it, so the next session picks it up; a session that already started keeps the composition it declared. The removed `both` mode is rejected at registration — migrate an old profile to `ptc` or `native`. |
124
122
  | `dispatcher` | `true` | Identity switch: when true (the shipped default), the declared preset appends the dispatcher rules section after the persona — complexity triage (L0/L1 direct; L2 split into L2-Clear, which plans briefly then executes, and L2-Governed, which runs the clarification interview and a plan approval), a shared task board that is bookkeeping rather than a second dispatcher (the R0.5 compatibility gate was deleted upstream at 0.72.0 once a new harness removed the legacy Agent Teams runtime entirely, so its criterion can only ever answer absent; the generation-independent board contract survives as a standing paragraph), an interview before planning on an L2-Governed task, the Lead & Dispatch identity with its three execution topologies (Lead-Core, Hybrid, Fan-out) chosen by coupling against parallel ROI, the R9 plan pipeline (plan mode is the user's switch: inside it the plan is explored, written, and submitted through `exit_plan_mode`; outside it the dispatcher plans and then executes), delegation with layer-by-layer review and acceptance, and task tracking in `todo_write` — then a local English supplement with the interview additions, one rule that keeps the task board a tracking surface rather than a dispatch path, and one that keeps a pinned fact an anchor rather than current state. The block is maintained in this repository: it was re-extracted on 2026-10-18 and re-synced on 2026-11-02 against 0.55.0, again on 2026-11-03 against 0.56.0 plus that package's unreleased Agent Teams pass, and again on 2026-11-13 against 0.72.0 (twenty-three anti-patterns; the R0.5 gate deleted and its board contract kept as a standing paragraph; the L2-Clear / L2-Governed split plus [Execution Economy]'s stop-after-two-steps-without-progress brake in R0; G4 now searches external prior art (GitHub docs/repos, official docs, research papers, specs) instead of asking the user; the R1 execution topologies; the Lead & Dispatch identity; R2's Harness 0.2.2 note that an explicit route may still be limited to the parent route; R8 restated against the planned direct execution R1 authorizes; R6's fix-and-reverify duty on a Lead-Core or Hybrid core; R2's three allowlist states; R8's withdrawn empty-allowlist fallback; R6's record-backed re-dispatch count, non-penalized hand_back and a UI evidence gate narrowed to regression-risk changes (pure copy, logic-only and additive work need none; with no reliable Before, an After plus a note suffices); R7's per-turn sweep and clause deletion test; R5's [Limits] rule that every cap states what it bounds, in what unit, the cap, and whether it accumulates, plus the [Compact Delta Brief] default; R0's impact-not-effort stop; the standing subagent contract, report protocol and coordinator-only tool list; and R9, adapted so plan mode stays the user's switch—this deployment mounts no enter_plan_mode row, and the dispatcher never asks the user for it); the text is written one decision sentence per rule (upstream's compact register, which took the block from about 35,000 to about 22,200 characters while every correction and addition stayed), corrections are applied in place rather than appended as a contradicting second copy, `DISPATCHER_RULES_PROVENANCE` records every correction and every addition along with the upstream commit it came from, `DISPATCHER_RULES_PROVENANCE.omissions` records the two upstream entries this preset deliberately does not carry, because each names a tool it does not mount (the `dispatch_ledger` tool and the `enter_plan_mode`/`leave_plan_mode` rows), `DISPATCHER_RULES_PROVENANCE.removals` records the R0.5 gate upstream deleted and this block dropped with it, and `node tools/check-dispatcher-rules.mjs` reports drift against an installed copy of the origin package. Switching it off returns the session to the bare persona with its working discipline. It is orthogonal to `presentation`: `presentation` decides the tool surface, `dispatcher` decides the identity and the process discipline. |
125
123
  | `pagedToolPatterns` | `''` | On-demand tool families ("On-demand tool families" text field in the plugin settings card): comma-separated prefix patterns, each a non-empty literal head without `*` ending in one trailing `*` (for example `mcp__*, browser_*, task_board_*`). `parsePagedToolPatterns` trims entries, skips empty segments, and writes the parsed array into the declared preset's `tool-catalog`, `tool-activate`, and `working-context` rows together (all three replay the session event log against `pagedToolPatterns`, so keeping one shared list prevents catalog eviction, `tool_activate` admission, and the rendered working-context line from diverging and stranding a withheld namespace). Leaving the field empty or resetting it writes no override and inherits the preset's shipped seven-pattern list (`['mcp__*', 'browser_*', 'task_board_*', 'team_*', 'squad*', 'ui_*', 'ssh_*']`); in the settings card, any malformed entry holds the draft unwritten, and on the Host any malformed string is ignored in favor of the shipped list. |
126
124
  | `idleReclaimSteps` | `0` | Idle reclaim steps (the "Idle reclaim steps" numeric field in the plugin settings card): a non-negative integer written through the overlay into the declared preset's `tool-catalog`, `tool-activate`, and `working-context` rows together (all three replay the session log against the same threshold, so one shared value keeps the catalog's restriction, `tool_activate`'s admission, and the working-context projection from diverging about which namespaces are still active). `0`, empty, or reset inherits the factory no-reclaim behavior; a negative or fractional draft stays unwritten in the settings card, and the Host schema rejects it with `min(0)`. Reclaim is deferred: expiry applies only at the next activation or compaction boundary, adding no prefix-cache rebuild. |
@@ -150,7 +148,7 @@ All fields are editable in the web settings surface (plugin config) or through t
150
148
  - The preset carries the same trust level as shell access — review `presets/liangshen/` before installing;
151
149
  - The plugin makes no network requests and adds no telemetry;
152
150
  - Do not switch presets mid-conversation;
153
- - Requires DSH 0.2.2-rc.3+ (preset mechanism, the `system-prompt/assemble` waterfall, the persona `prefix` schema, and the PTC presentation API).
151
+ - Requires DSH 0.2.3-alpha.4+ (preset mechanism, the `system-prompt/assemble` waterfall, the persona `prefix` schema, and `tool-registry-roots` / `PtcToolRegistry`).
154
152
 
155
153
  ## License
156
154
 
package/README.zh.md CHANGED
@@ -5,7 +5,7 @@
5
5
  <p align="center">
6
6
  <img src="https://img.shields.io/npm/v/@linxin666/dsh-liangshen?style=flat-square" alt="Version">
7
7
  &nbsp;
8
- <img src="https://img.shields.io/badge/DSH-%3E%3D0.2.2--rc.3-4c6ef5?style=flat-square&amp;labelColor=454a54" alt="DSH">
8
+ <img src="https://img.shields.io/badge/DSH-%3E%3D0.2.3--alpha.4-4c6ef5?style=flat-square&amp;labelColor=454a54" alt="DSH">
9
9
  &nbsp;
10
10
  <img src="https://img.shields.io/badge/license-Apache--2.0-blue?style=flat-square" alt="License">
11
11
  </p>
@@ -25,11 +25,11 @@ DeepSeek V4.1 Flash 的后训练直接对齐其原生 DSML 工具调用面,官
25
25
 
26
26
  ## 工作机制
27
27
 
28
- 1. `minimal-prompt` 把每次组装出的提示词收窄到 persona 一段——一行 persona、本模式的固定工作纪律(同一假设的思考推演不超过两轮,缺少事实时立即闭合思考并调用检查工具而非空想;思考只决定下一步具体操作,不预演完整代码实现;多处独立检查或搜索在单轮内并发发射多个工具调用;Shell 为无状态进程,跨调用目录不保留,子目录操作使用复合命令或显式 workdir;正确性一律在执行阶段以工具实际输出验证;YAGNI 与 PDCA;不写冗余注释)、以及一行从会话头读取的方位信息 `Your working directory is <cwd>.`——因此 harness identity、web surface、工具用法、文件引用与结构化输出等 section 默认不会到达模型;plan mode 的 `plan:policy` 保留,因为该 section 是 plan mode 唯一的执行依据(它的退出工具在任何模式下都保持注册);
28
+ 1. `minimal-prompt` 把每次组装出的提示词收窄到 persona 一段——一行 persona、本模式的固定工作纪律(同一假设的思考推演不超过两轮,缺少事实时立即闭合思考并调用检查工具而非空想;思考只决定下一步具体操作,不预演完整代码实现;多处独立检查或搜索在单轮内并发发射多个工具调用;Shell 为无状态进程,跨调用目录不保留,子目录操作使用复合命令或显式 workdir;正确性一律在执行阶段以工具实际输出验证;YAGNI 与 PDCA;不写冗余注释)、以及一行从会话头读取的方位信息 `Your working directory is <cwd>.`——因此 harness identity、web surface、工具用法、文件引用与结构化输出等 section 默认不会到达模型;plan mode 的 `plan:policy` 保留(作为 plan mode 唯一的执行依据,其退出工具在任何模式下都保持注册),启用官方 MCP `toolLoading: 'on-demand'` 时同时保留官方 `mcp:<server>:tools` 摘要段;
29
29
  2. AGENTS.md 类工作区指令经 `instructionSource` 送达模型:默认(`host`)下 preset 不追加任何自有段,也不改动宿主自己的送达,工作区指令以宿主的 user 角色消息抵达——一条持久基线,加上触碰目录后的增量、替换与移除;`system-prompt` 下它们直接进入系统提示词本身:组装时 `minimal-prompt` 读取 harness 的基线链(`$DSH_HOME/AGENTS.md`,再从项目根到会话 cwd 沿途的 `AGENTS.md` / `CLAUDE.md` 及其 `.local` 覆盖层),把内容作为一段 `workspace-instructions` 追加在稳定前缀之后,受字节预算约束——放不下时先省略最宽的文件、最后才截断最具体的文件;读取在每次组装时都发生,文件改动无需持久消息即可在下次请求生效,harness 自己的 agent-instructions 注入则被丢弃以免与提示词重复。工作区子目录动态规则后续将支持注册文件工具(含 `str_replace_editor`)及 `run_code` 内子调用触达的目录;不解析任意 bash/program 代码,不保证 shell 自行文件访问的自动发现;
30
30
  3. wire 在整个会话中保持由 `presentation` 选定的同一种呈现:`ptc`(出厂默认)把 wire 收拢为 `run_code`、其余工具经生成的 SDK 调用;`native` 携带组装出的原生清单;`ptc` 需要挂载的 code runtime;没有时无法挂载 PTC 执行器,会话直接运行原生工具面。旧键 `ptcPresentation` 映射到 `ptc`/`native` 并发出弃用告警,已退役的 `anchorTools` 首回合收窄不再生效——设置它会收到告警;
31
31
  4. `tool-catalog` 把工具清单作为持久 user 消息追加在用户消息之后,保留完整输入输出关键参数语义(`descriptionMaxLength: 200` 仅限制一行摘要长度)。插件为该预设挂载的每个宿主内置工具配有一行手写短描述:被策展的工具直接使用整行策展文,长度截断不会切掉说明工具用途的那句话,`descriptionMaxLength` 只作为未被策展工具的兜底。目录只宣告该次请求实际开放的工具——原生清单,或 `ptc` 下经 SDK 可达的投影——并在分页开启时为被扣留的命名空间附上一行摘要;`ptc` 下这些摘要代表真正不可达的命名空间——既不在该请求的 `tools:sdk` 段中,也不能在 `run_code` 程序内调用——直到 `tool_activate`;只在工具面变化、或已发布副本离开可见面(压缩、恢复)时重发;
32
- 5. 按需工具族温和分页出厂开启(`pagedToolPatterns: ['mcp__*', 'browser_*', 'task_board_*', 'team_*', 'squad*', 'ui_*', 'ssh_*']`):MCP 桥接与六个挂载的插件工具族默认扣留在 wire、生成的 SDK 与 `run_code` 程序分派之外,在目录中以一行命名空间摘要宣告;宿主内建工具(shell、文件系统/read/write/edit/`str_replace_editor`、`glob`/`grep`、后台作业、`skill`、`ask_user_question`、`todo_write`、`web_search`、子代理委派、plan、goal、`fact_register`、`tool_activate` 与 MCP 资源读取工具)全部常驻。每个模式的字面头部决定 `patternNamespace` 如何推导命名空间:头部以 `__` 结尾时视为 MCP 桥接,取余下工具名的第一个 `__` 分段(`mcp__codegraph__codegraph_explore` -> `codegraph`);其余头部直接命名插件工具族并去掉至多一个结尾 `_`(`task_board_*` -> `task_board`,`squad*` -> `squad`,使 `squads_*` 与 `squad_member_*` 归入同一命名空间)。调用 `tool_activate({ namespace })` 后,该命名空间从下一个请求起重新可达;同时最多保持三个活跃的分页命名空间(`maxActiveNamespaces`,默认 `3`),激活或对已激活命名空间内工具的非报错调用都会刷新新近度,激活第四个时将最近最少使用的逐回摘要状态,激活状态从持久会话事件流重建,压缩与恢复均可还原;可选 `idleReclaimSteps`(默认 `0` = 关闭)让连续 N 步没有成功激活或调用的命名空间过期,但过期只在应用点生效——下一次 `tool_activate` 激活或 `compaction/end` 压缩边界——这些时机请求的前缀本就要重建,因此收回不新增任何前缀缓存重建;应用前命名空间仍常驻可达,任何成功调用都会刷新新近度并取消过期;
32
+ 5. 按需工具族温和分页出厂开启(`pagedToolPatterns: ['mcp__*', 'browser_*', 'task_board_*', 'team_*', 'squad*', 'ui_*', 'ssh_*']`):MCP 桥接与六个挂载的插件工具族默认扣留在 wire、生成的 SDK 与 `run_code` 程序分派之外,在目录中以一行命名空间摘要宣告;宿主内建工具(shell、文件系统/read/write/edit/`str_replace_editor`、`glob`/`grep`、后台作业、`skill`、`ask_user_question`、`todo_write`、`web_search`、子代理委派、plan、goal、`fact_register`、`tool_activate` 与 MCP 资源读取工具)全部常驻。当某个 MCP server 启用官方 `toolLoading: 'on-demand'` 时,其 `mcp__<server>__load_tools` 加载器及已加载工具保持常驻,不再被 `mcp__*` 二次分页。每个模式的字面头部决定 `patternNamespace` 如何推导命名空间:头部以 `__` 结尾时视为 MCP 桥接,取余下工具名的第一个 `__` 分段(`mcp__codegraph__codegraph_explore` -> `codegraph`);其余头部直接命名插件工具族并去掉至多一个结尾 `_`(`task_board_*` -> `task_board`,`squad*` -> `squad`,使 `squads_*` 与 `squad_member_*` 归入同一命名空间)。调用 `tool_activate({ namespace })` 后,该命名空间从下一个请求起重新可达;同时最多保持三个活跃的分页命名空间(`maxActiveNamespaces`,默认 `3`),激活或对已激活命名空间内工具的非报错调用都会刷新新近度,激活第四个时将最近最少使用的逐回摘要状态,激活状态从持久会话事件流重建,压缩与恢复均可还原;可选 `idleReclaimSteps`(默认 `0` = 关闭)让连续 N 步没有成功激活或调用的命名空间过期,但过期只在应用点生效——下一次 `tool_activate` 激活或 `compaction/end` 压缩边界——这些时机请求的前缀本就要重建,因此收回不新增任何前缀缓存重建;应用前命名空间仍常驻可达,任何成功调用都会刷新新近度并取消过期;
33
33
  6. 最小版 working-context 行——plan-mode 状态、已激活的分页命名空间、进行中的 todo、以及关键事实登记簿——只在其来源可读时注入到最新消息尾部,让当前状态落在模型的局部注意力窗口内;运行时上下文(sandbox 与 approval 快照)与 skill 目录按 Standard 模式正常注入;
34
34
  7. 目录把已激活分页家族的工具归在 `namespace `<名称>` (activated):` 标题之下,而不是把同一工具族的工具散落在字母序清单里;未被分页的工具仍保持扁平条目;
35
35
  8. `maxResidentTokens`(默认 8000)估算常驻 wire 面并在超过时告警一次,列出最重的工具并把 `pagedToolPatterns` 指为处置手段。该阈值按 V4.1 的 KV 压缩重新校准(其 KV cache 为 V4-Flash 的 1/4,同样的 schema 负载只占 1/4 的稀疏索引槽位,阈值由 6000 上调至 8000),仍校准在出厂清单之上,用于发现真实增长而非出厂配置本身。该守卫从不截断:静默丢掉会话需要的工具,等于用可度量的上下文成本换取不可度量的能力损失。
@@ -47,8 +47,6 @@ DeepSeek V4.1 Flash 的后训练直接对齐其原生 DSML 工具调用面,官
47
47
 
48
48
  浏览器半区在新建会话页的输入框工具行里、模型选择器紧左侧装了一台老虎机拨杆,设置卡片则为梁神模式这一条目标出一枚图形标记,画的正是这台拨杆——一个球头、一根杆、一个底座,用当前文字颜色上色,跟随当前主题:
49
49
 
50
- - 把拨杆拨下——拖动、点击或用键盘激活都算——即将开始的会话就组合为梁神模式;命中后播放中奖特效(闪光、冲击环、火花,以及「梁神模式」横幅叠文言文、二进制、摩斯三行);
51
-
52
50
  - 把拨杆拨下——拖动、点击或用键盘激活都算——即将开始的会话就组合为梁神模式;命中后播放中奖特效(闪光、冲击环、火花,以及「梁神模式」横幅叠文言文、二进制、摩斯三行);
53
51
  - 把拨杆上拨,就回到你此前的模式——还没有记住任何模式时,回到部署默认预设;
54
52
  - 拨杆始终反映会话真实的预设,刷新页面后状态依然正确;且只在会话仍为空时渲染——会话一旦开始,宿主拒绝重新组合,整行控件直接从输入框中消失;
@@ -67,7 +65,7 @@ DeepSeek V4.1 Flash 的后训练直接对齐其原生 DSML 工具调用面,官
67
65
  | `instructionSource` | `host` | 工作区指令送达模型的方式。`host`(默认)不追加任何自有段,也不改动宿主的 agent-instructions 注入,工作区指令以宿主自己的 user 角色消息送达:一条持久基线,加上触碰目录后的增量、替换与移除;`system-prompt` 在组装时读取 AGENTS.md 链并追加进系统提示词(harness 自己的注入被丢弃);`hint` 把首次注入替换为一次性的、非命令式的参考文件提示,后续注入丢弃。 |
68
66
  | `instructionMaxBytes` | `65536` | 渲染后的 workspace-instructions 段的字节预算,仅在 `system-prompt` 模式下生效:最宽的文件先被省略,最具体的文件最后被截断。 |
69
67
  | `descriptionMaxLength` | `200` | 注入目录中单个工具一行摘要的长度上限,作用于所有未被策展表覆盖的工具;被策展的宿主内置工具直接使用整行手写短描述。完整关键参数语义保持完整。 |
70
- | `presentation` | `ptc` | 整个会话的 wire 呈现方式。`ptc`(出厂默认)把 wire 收拢为 `run_code`,其余工具经生成的 SDK 调用;`native` 保持组装出的原生清单。设置覆盖层把该取值写进组合:`ptc` 时保留官方 `@deepseek-ai/dsh-tool-executor-ptc` 行并借此执行 PTC 程序,`native` 时停用该行——**那一行就是 wire**(0.2.2 已移除按 scope 的 `agent.ctx.tools.presentAs` 声明)。部署没有 PTC runtime 时保持原生面。已删除的 `both` 取值不被接受:旧 profile 写明它会在注册时被拒绝,请迁移为 `ptc` 或 `native`。 |
68
+ | `presentation` | `ptc` | 整个会话的 wire 呈现方式。`ptc`(出厂默认)把 wire 收拢为 `run_code`,其余工具经生成的 SDK 调用;`native` 保持组装出的原生清单。设置覆盖层把该取值写进组合:`ptc` 时保留官方 `@deepseek-ai/dsh-tool-registry-ptc` 行并借此执行 PTC 程序,`native` 时停用该行——**那一行就是 wire**(0.2.2 已移除按 scope 的 `agent.ctx.tools.presentAs` 声明)。部署没有 PTC runtime 时保持原生面。已删除的 `both` 取值不被接受:旧 profile 写明它会在注册时被拒绝,请迁移为 `ptc` 或 `native`。 |
71
69
  | `pagedToolPatterns` | `['mcp__*', 'browser_*', 'task_board_*', 'team_*', 'squad*', 'ui_*', 'ssh_*']` | 出厂开启按需温和分页:每项为不含 `*` 的非空字面头部加单个结尾 `*`(裸 `*` 会被拒绝)。命中的 MCP 与插件工具被扣留在 wire 与生成的 SDK 之外,直到模型经 `tool_activate({ namespace })` 激活其命名空间,期间在目录中以一行摘要出现,宿主内建工具全部常驻。以 `__` 结尾的头部取余下工具名的第一个 `__` 段作为命名空间(MCP server);其余头部去掉至多一个结尾 `_`(`task_board_*` -> `task_board`,`squad*` -> `squad`)。同时最多保持三个活跃的分页命名空间(`maxActiveNamespaces`,默认 `3`,`>= 1` 的整数),LRU 新近度与激活状态均从持久事件流重建。 |
72
70
  | `idleReclaimSteps` | `0` | 延迟空闲收回的步数阈值(`>= 0` 的整数),与 `pagedToolPatterns` 一样三行同源写入 `tool-catalog`、`tool-activate`、`working-context`。`0`(出厂)保持激活后常驻至 LRU 驱逐;正整数 N 让连续 N 步无成功激活或调用的命名空间过期,过期只在下一次激活或压缩边界应用——这些时机前缀缓存本就要重建,因此不新增缓存重建;应用前仍常驻可达,再次调用即续命。过期判定同样从持久事件流重放(`step/start` 计步),无步数证据的日志不收回。 |
73
71
  | `maxResidentTokens` | `8000` | 常驻 wire 面的估算 token 上限(按序列化 schema 约四字符一 token),按 V4.1 的 KV 压缩重新校准后仍高于出厂清单,用于发现真实增长而非出厂配置本身。超过时告警一次、列出最重的工具并指向 `pagedToolPatterns`;不会截断工具清单。 |
@@ -120,7 +118,7 @@ dsh plugin --profile web remove @linxin666/dsh-liangshen
120
118
  | --- | --- | --- |
121
119
  | `enabled` | `true` | 总开关:关闭后不声明预设、也不发公告。 |
122
120
  | `announceToAgent` | `false` | 按需开启:开启后向 agent 系统提示注入本插件公告。默认关闭,保持系统提示词干净。 |
123
- | `presentation` | `ptc` | 本插件所声明 preset 的 wire 呈现。取值写进 `tool-catalog` 行并驱动组合:它启用的 `@deepseek-ai/dsh-tool-executor-ptc` 行**就是** wire,`ptc` 因此收拢为 `run_code`、`native` 保持原生清单,目录文本描述的就是该组合产生的面。Host 提交改动后立即重新声明 preset,此后新建的会话即采用新值;已开始的会话保持其已声明的组合。已删除的 `both` 取值在注册时被拒绝——旧 profile 请迁移为 `ptc` 或 `native`。 |
121
+ | `presentation` | `ptc` | 本插件所声明 preset 的 wire 呈现。取值写进 `tool-catalog` 行并驱动组合:它启用的 `@deepseek-ai/dsh-tool-registry-ptc` 行**就是** wire,`ptc` 因此收拢为 `run_code`、`native` 保持原生清单,目录文本描述的就是该组合产生的面。Host 提交改动后立即重新声明 preset,此后新建的会话即采用新值;已开始的会话保持其已声明的组合。已删除的 `both` 取值在注册时被拒绝——旧 profile 请迁移为 `ptc` 或 `native`。 |
124
122
  | `dispatcher` | `true` | 身份开关:开启时(出厂默认)所声明的 preset 在 persona 之后追加调度者规则段——复杂度分诊(L0/L1 直接执行;L2 分 L2-Clear 直接写计划后执行与 L2-Governed 走澄清访谈与计划审批)、共享任务板只是记账、不是第二个调度者(R0.5 兼容性闸门已随上游在 0.72.0 删除——新 harness 已整体移除旧代 Agent Teams 运行期,判据恒为缺席,与代次无关的任务板契约抽为常驻段保留)、L2 任务先澄清访谈再规划、Lead & Dispatch 身份与按「耦合度 × 并行收益」三选一的执行拓扑(Lead-Core / Hybrid / Fan-out)、R9 计划模式管线(计划模式是用户的开关:已经在该模式里就只读探索、写计划、经 `exit_plan_mode` 提交;不在就照常规划后执行,不向用户索要这个模式)、派发子代理并逐层审查与验收,以及落在 `todo_write` 的任务跟踪——其后是本地英文补充:访谈类新增内容,加上让任务看板停在做跟踪的表面、而不是派发路径的那一条,以及让登记的事实保持为锚点、而不是当前状态的那一条。这个块在本仓维护:2026-10-18 重新抽取,2026-11-02 按 0.55.0 同步,2026-11-03 再按 0.56.0 及该包尚未发布的 Agent Teams 改动同步一次,2026-11-13 又按 0.72.0 同步一次(二十三条反模式;删除 R0.5 闸门并把任务板契约留为常驻段;R0 补 L2-Clear / L2-Governed 分档与 [Execution Economy] 的「每步最多两次无进展就换招」闸门;G4 要求先检索外部先例(GitHub 文档与仓库、官方文档、论文、规范)再问用户;R1 的三套执行拓扑;Lead & Dispatch 身份;R2 补上 Harness 0.2.2 起显式路由可能仍受父路由限制;R8 改为相对 R1 授权的计划内直执来定义;R6 补上 Lead-Core / Hybrid 主干上「先修后交付」;R2 的 allowlist 三态;R8 被撤回的空 allowlist 兜底;R6 记录化的重派次数、不罚 hand_back、以及只对回归风险的界面改动要求 Before/After(纯文案、纯逻辑或新增改动不需要,无可靠 Before 时 After 加说明即可);R7 每轮扫描即将升级或过期的项,以及删除测试;R5 的 [Limits] 规则——每个上限都写明它约束什么、单位、上限值、以及是否累计,外加 [Compact Delta Brief] 的精简任务书默认形态;R0 的「按影响而非按工作量停手」;常设子代理契约、报告协议与主控专用工具清单;以及 R9——按「计划模式是用户的开关」做了适配:本部署没有 enter_plan_mode 行,调度者也不主动向用户索要它);行文按上游那套精简写法处理——每条规则一句判定,正文从约 35,000 字符压到约 22,200 字符,而每一条更正与新增都保留;更正就地应用,而不是作为一条自相矛盾的第二份副本追加;`DISPATCHER_RULES_PROVENANCE` 逐条记录每一次更正与每一处新增,并带上它来自的上游提交;`DISPATCHER_RULES_PROVENANCE.omissions` 记录本预设有意不带的两条上游内容,它们各自指向本预设没挂的工具(`dispatch_ledger` 工具,以及 `enter_plan_mode` / `leave_plan_mode` 两行),`DISPATCHER_RULES_PROVENANCE.removals` 记录上游已删除、本地随之移除的 R0.5 闸门;`node tools/check-dispatcher-rules.mjs` 对已安装的来源包报告漂移。关闭后回到仅含工作纪律的极简 persona。它与 `presentation` 正交:`presentation` 决定工具面,`dispatcher` 决定身份与流程纪律。 |
125
123
  | `pagedToolPatterns` | `''` | 按需工具族(插件设置卡片中的「按需工具族」文本字段):逗号分隔的前缀模式,每项为不含 `*` 的非空字面头部加单个结尾 `*`(例如 `mcp__*, browser_*, task_board_*`)。`parsePagedToolPatterns` 去空白、跳过空项后把解析出的数组同时写入所声明 preset 的 `tool-catalog`、`tool-activate` 与 `working-context` 三行(三行都按各自的 `pagedToolPatterns` 重放同一份会话日志,必须保持同源,否则目录的驱逐限制、`tool_activate` 的激活判定与 working-context 的状态投影会发生分叉,导致被扣留的命名空间无法再被重新激活)。留空或重置时不写覆盖项,继承 preset 出厂的 7 项清单(`['mcp__*', 'browser_*', 'task_board_*', 'team_*', 'squad*', 'ui_*', 'ssh_*']`);在设置卡片中,任一条目格式非法时草稿保持未写入状态,Host 侧收到含非法条目的文本时同样忽略并沿用出厂清单。 |
126
124
  | `idleReclaimSteps` | `0` | 空闲收回步数(插件设置卡片中的「空闲收回步数」数字字段):非负整数,经覆盖层同时写入所声明 preset 的 `tool-catalog`、`tool-activate` 与 `working-context` 三行(三行按同一阈值重放会话日志,必须同源,否则目录的扣留、`tool_activate` 的判定与 working-context 的投影会对「哪些命名空间仍活跃」发生分叉)。`0` 或留空/重置继承出厂的「不收回」;负数或小数在设置卡片中保持草稿未写入,Host schema 以 `min(0)` 拒绝。收回是延迟的:过期只在下一次激活或压缩边界应用,不新增前缀缓存重建。 |
@@ -150,7 +148,7 @@ dsh plugin --profile web remove @linxin666/dsh-liangshen
150
148
  - preset 与 shell 访问具有相同信任等级,安装前可自行审阅 `presets/liangshen/`;
151
149
  - 插件不发起网络请求,也不增加遥测;
152
150
  - 不要在已经产生内容的会话中途切换 preset;
153
- - 需要 DSH 0.2.2-rc.3+(preset 机制、`system-prompt/assemble` 瀑布、persona 的 `prefix` schema,以及 PTC 呈现 API)。
151
+ - 需要 DSH 0.2.3-alpha.4+(preset 机制、`system-prompt/assemble` 瀑布、persona 的 `prefix` schema,以及 `tool-registry-roots` / `PtcToolRegistry`)。
154
152
 
155
153
  ## 许可
156
154
 
package/lib/client.js CHANGED
@@ -8,15 +8,6 @@ window.__ModuleLoader__.load({
8
8
  let react_jsx_runtime = require("react/jsx-runtime");
9
9
  let _deepseek_ai_dsh_client_store = require("@deepseek-ai/dsh-client-store");
10
10
  //#region \0dsh-css:packages/dsh-liangshen/src/client/LiangShenLever.module.css.mjs
11
- const css$1 = ".hYkIZq_lever{align-items:center;font-size:12px;line-height:1;display:inline-flex;position:relative}.hYkIZq_control{color:var(--dsw-alias-label-secondary,inherit);font:inherit;cursor:pointer;touch-action:none;-webkit-user-select:none;user-select:none;background:0 0;border:none;border-radius:999px;align-items:center;gap:6px;margin:0;padding:2px 8px 2px 4px;transition:background-color .16s,color .16s;display:inline-flex}.hYkIZq_control:hover:not(:disabled){background:var(--dsw-alias-interactive-bg-hover,#0000000f)}.hYkIZq_control:focus-visible{outline:2px solid var(--dsw-alias-brand-primary,currentColor);outline-offset:2px}.hYkIZq_control:disabled{cursor:default;opacity:.55}.hYkIZq_track{background:linear-gradient(#2b2f36,#14161a);border-radius:8px;justify-content:center;align-items:flex-end;width:24px;height:28px;display:inline-flex;position:relative;overflow:hidden;box-shadow:inset 0 0 0 1px #ffffff24,inset 0 6px 10px #0000008c}.hYkIZq_track:after{content:\"\";background:#ffffff38;border-radius:2px;height:3px;position:absolute;bottom:2px;left:3px;right:3px}.hYkIZq_arm{transform-origin:50% 24px;width:16px;height:26px;margin-left:-8px;transition:transform .34s cubic-bezier(.2,1.7,.32,1);position:absolute;bottom:2px;left:50%;transform:rotate(-24deg)}.hYkIZq_lever[data-state=on] .hYkIZq_arm{transform:rotate(24deg)}.hYkIZq_rod{fill:#c9ced6;transition:fill .2s}.hYkIZq_knob{fill:#e04a33;stroke:#00000059;stroke-width:.6px;transition:fill .2s}.hYkIZq_lever[data-state=on] .hYkIZq_rod{fill:#ffd76a}.hYkIZq_lever[data-state=on] .hYkIZq_knob{fill:#f7c637}.hYkIZq_lever[data-state=on] .hYkIZq_track{box-shadow:inset 0 0 0 1px var(--dsw-alias-border-l3,#0000001f), 0 0 10px #f7c6378c}.hYkIZq_lever[data-busy=true] .hYkIZq_arm{animation:.42s ease-in-out infinite hYkIZq_lever-jitter}.hYkIZq_readout{white-space:nowrap;letter-spacing:.02em;min-width:4.4em}.hYkIZq_lever[data-state=on] .hYkIZq_readout{color:var(--dsw-alias-label-primary,inherit);font-weight:600}.hYkIZq_error{background:var(--dsw-alias-bg-layer-3,#0000000f);max-width:22ch;color:var(--dsw-alias-state-error-primary,#c0392b);text-overflow:ellipsis;white-space:nowrap;border-radius:6px;margin-left:4px;padding:2px 6px;overflow:hidden}.hYkIZq_burst{z-index:60;pointer-events:none;place-items:center;display:grid;position:fixed;inset:0;overflow:hidden}.hYkIZq_flash{background:radial-gradient(circle at 50% 62%,#fff6c8eb,#ffd04a73 38%,#ffa00000 72%);animation:.72s ease-out both hYkIZq_burst-flash;position:absolute;inset:0}.hYkIZq_ring{border:6px solid #ffd65ad9;border-radius:50%;width:220px;height:220px;animation:1.1s cubic-bezier(.16,.9,.3,1) both hYkIZq_burst-ring;position:absolute}.hYkIZq_ring:nth-of-type(2){animation-delay:.12s}.hYkIZq_ring:nth-of-type(3){animation-delay:.24s}.hYkIZq_banner{color:#ffe9a8;text-align:center;background:linear-gradient(160deg,#181004f0,#402604eb);border-radius:22px;flex-direction:column;align-items:center;gap:6px;padding:22px 40px;animation:.6s cubic-bezier(.16,1.5,.3,1) both hYkIZq_banner-slam,.5s ease-in-out .6s 2 hYkIZq_banner-shake;display:flex;position:relative;box-shadow:0 0 0 2px #ffd65abf,0 24px 70px #00000073}.hYkIZq_bannerName{letter-spacing:.16em;background:linear-gradient(#fff6d0,#ffc93c 55%,#b8730a);color:#0000;text-shadow:0 0 24px #ffc93ca6;-webkit-background-clip:text;background-clip:text;font-size:44px;font-weight:800}.hYkIZq_line{letter-spacing:.08em;font-size:15px}.hYkIZq_code{font-family:var(--dsw-font-mono,ui-monospace, SFMono-Regular, Menlo, monospace);letter-spacing:.06em;opacity:.82;font-size:11px;animation:.5s steps(2,end) 6 hYkIZq_code-blink}.hYkIZq_sparks{place-items:center;display:grid;position:absolute;inset:0}.hYkIZq_spark{transform-origin:50%;background:linear-gradient(#ffeca0f2,#ffaa1400);border-radius:3px;grid-area:1/1;width:3px;height:30px;animation:.95s ease-out both hYkIZq_spark-fly}@keyframes hYkIZq_lever-jitter{0%,to{transform:rotate(-22deg)}50%{transform:rotate(-8deg)}}@keyframes hYkIZq_burst-flash{0%{opacity:0;transform:scale(.6)}18%{opacity:1}to{opacity:0;transform:scale(1.5)}}@keyframes hYkIZq_burst-ring{0%{opacity:.9;transform:scale(.2)}to{opacity:0;transform:scale(3.4)}}@keyframes hYkIZq_banner-slam{0%{opacity:0;transform:scale(3.6)rotate(-9deg)}55%{opacity:1;transform:scale(.94)rotate(1.5deg)}75%{transform:scale(1.06)rotate(-1deg)}to{opacity:1;transform:scale(1)rotate(0)}}@keyframes hYkIZq_banner-shake{0%,to{transform:translate(0)}25%{transform:translate(-9px)rotate(-.6deg)}75%{transform:translate(9px)rotate(.6deg)}}@keyframes hYkIZq_spark-fly{0%{opacity:0;transform:translateY(-40px)scaleY(.3)}18%{opacity:1}to{opacity:0;transform:translateY(-300px)scaleY(1.15)}}@keyframes hYkIZq_code-blink{0%,to{opacity:.35}50%{opacity:1}}@media (prefers-reduced-motion:reduce){.hYkIZq_arm,.hYkIZq_control,.hYkIZq_rod,.hYkIZq_knob{transition:none}.hYkIZq_lever[data-busy=true] .hYkIZq_arm,.hYkIZq_flash,.hYkIZq_ring,.hYkIZq_banner,.hYkIZq_code,.hYkIZq_spark{animation:none}.hYkIZq_burst{animation:.3s ease-out both hYkIZq_burst-flash}.hYkIZq_spark{display:none}}";
12
- const tagId$1 = "@linxin666/dsh-liangshen/packages/dsh-liangshen/src/client/LiangShenLever.module.css";
13
- if (typeof document !== "undefined" && document.querySelector("style[data-plugin-css=" + JSON.stringify(tagId$1) + "]") === null) {
14
- const tag = document.createElement("style");
15
- tag.dataset.plugin = "@linxin666/dsh-liangshen";
16
- tag.dataset.pluginCss = tagId$1;
17
- tag.textContent = css$1;
18
- document.head.appendChild(tag);
19
- }
20
11
  var LiangShenLever_module_css_default = {
21
12
  "arm": "hYkIZq_arm",
22
13
  "banner": "hYkIZq_banner",
@@ -682,15 +673,6 @@ window.__ModuleLoader__.load({
682
673
  }
683
674
  //#endregion
684
675
  //#region \0dsh-css:packages/dsh-liangshen/src/client/settings-card.module.css.mjs
685
- const css = "._9t79wq_card{--settings-card-radius:12px;--settings-card-header-pad:16px;--settings-card-header-gap:13px;--settings-card-title-size:15px;--settings-card-description-size:13px;--settings-card-body-inset:16px;--settings-card-motion:.18s;border:1px solid var(--dsw-alias-border-l2);background:var(--dsw-alias-bg-layer-3);border-radius:var(--settings-card-radius);list-style:none;transition:border-color .16s,background .16s}._9t79wq_card:hover{border-color:var(--dsw-alias-label-dimmed)}._9t79wq_cardOpen{background:var(--dsw-alias-bg-layer-2);border-color:var(--dsw-alias-label-dimmed)}._9t79wq_cardNested{--settings-card-radius:10px;--settings-card-header-pad:10px 12px;--settings-card-header-gap:10px;--settings-card-title-size:13px;--settings-card-description-size:12px;--settings-card-body-inset:12px}._9t79wq_cardNested ._9t79wq_description{white-space:nowrap;text-overflow:ellipsis;overflow:hidden}._9t79wq_header{appearance:none;box-sizing:border-box;width:100%;font:inherit;color:inherit;text-align:left;cursor:pointer;border-radius:var(--settings-card-radius);align-items:center;gap:var(--settings-card-header-gap);padding:var(--settings-card-header-pad);background:0 0;border:0;display:flex}._9t79wq_header:focus-visible{outline:2px solid var(--dsw-alias-brand-primary);outline-offset:-2px}._9t79wq_headerStatic{box-sizing:border-box;border-radius:var(--settings-card-radius);align-items:center;gap:var(--settings-card-header-gap);width:100%;padding:var(--settings-card-header-pad);display:flex}._9t79wq_headText{flex-direction:column;flex:1;gap:4px;min-width:0;display:flex}._9t79wq_mark{background:var(--dsw-alias-bg-module-platform);width:34px;height:34px;color:var(--dsw-alias-label-secondary);border-radius:10px;flex:none;place-items:center;transition:color .16s;display:grid}._9t79wq_header:hover ._9t79wq_mark,._9t79wq_cardOpen ._9t79wq_mark{color:var(--dsw-alias-label-primary)}._9t79wq_name{color:var(--dsw-alias-label-primary);font-size:var(--settings-card-title-size);font-weight:600;line-height:1.4}._9t79wq_description{color:var(--dsw-alias-label-secondary);font-size:12px;line-height:18px}._9t79wq_headerAction{flex:none;align-items:center;display:inline-flex}._9t79wq_chevron{color:var(--dsw-alias-label-tertiary);flex:none;width:16px;height:16px;transition:transform .16s,color .16s}._9t79wq_header:hover ._9t79wq_chevron{color:var(--dsw-alias-label-secondary)}._9t79wq_chevronOpen{transform:rotate(180deg)}._9t79wq_disclosure{opacity:0;transition:grid-template-rows var(--settings-card-motion) ease, opacity var(--settings-card-motion) ease;grid-template-rows:0fr;display:grid}._9t79wq_disclosure[data-state=collapsed],._9t79wq_disclosure[data-state=entering],._9t79wq_disclosure[data-state=closing]{overflow:hidden}._9t79wq_disclosure[data-state=entering],._9t79wq_disclosure[data-state=shown]{opacity:1;grid-template-rows:1fr}._9t79wq_disclosure>._9t79wq_body{min-height:0}._9t79wq_body{border-top:1px solid var(--dsw-alias-border-l2);margin:0 var(--settings-card-body-inset);padding-bottom:8px;container:_9t79wq_settings-card/inline-size}._9t79wq_readOnly{color:var(--dsw-alias-label-secondary);margin:12px 0 0;font-size:12px;line-height:1.5}._9t79wq_notExposed{color:var(--dsw-alias-state-warn-primary);margin:12px 0 0;font-size:12px;line-height:1.5}._9t79wq_failed{color:var(--dsw-alias-state-error-primary,#b42318);overflow-wrap:anywhere;margin:8px 0 4px;font-size:12px;line-height:18px}._9t79wq_field{grid-template-columns:minmax(0,1fr) fit-content(50%);grid-template-areas:\"_9t79wq_head _9t79wq_control\"\"_9t79wq_hint _9t79wq_control\";align-items:center;gap:4px 24px;padding:16px 0;display:grid}._9t79wq_field>._9t79wq_head{grid-area:_9t79wq_head}._9t79wq_field>:is(._9t79wq_hint,._9t79wq_invalid){grid-area:_9t79wq_hint}._9t79wq_field>:not(._9t79wq_head,._9t79wq_hint,._9t79wq_invalid){grid-area:_9t79wq_control;justify-self:end;max-width:100%}._9t79wq_field+._9t79wq_field{border-top:1px solid var(--dsw-alias-border-l2)}._9t79wq_head{align-items:center;gap:8px;display:flex}._9t79wq_label{min-width:0;color:var(--dsw-alias-label-primary);flex:1;font-size:14px;font-weight:400;line-height:22px}._9t79wq_badges{align-items:center;gap:8px;display:inline-flex}._9t79wq_badge{white-space:nowrap;background:var(--dsw-alias-bg-module-platform);color:var(--dsw-alias-label-secondary);border-radius:999px;padding:1px 8px;font-size:11px;font-weight:500;line-height:17px}._9t79wq_reset{font:inherit;color:var(--dsw-alias-label-secondary);cursor:pointer;background:0 0;border:none;padding:0;font-size:12px;line-height:1.5}._9t79wq_reset:hover:not(:disabled){color:var(--dsw-alias-label-primary)}._9t79wq_reset:disabled{cursor:default}._9t79wq_reset:focus-visible{outline:2px solid var(--dsw-alias-brand-primary);outline-offset:2px}._9t79wq_segmentGroup{background:color-mix(in srgb, var(--dsw-alias-label-primary) 7%, transparent);box-shadow:inset 0 0 0 1px color-mix(in srgb, var(--dsw-alias-label-primary) 5%, transparent);border-radius:8px;flex-wrap:wrap;align-items:center;gap:2px;padding:2px;display:inline-flex;position:relative}._9t79wq_segment{appearance:none;color:var(--dsw-alias-label-secondary);font:inherit;white-space:nowrap;cursor:pointer;background:0 0;border:0;border-radius:7px;margin:0;padding:3px 12px;font-size:13px;font-weight:500;line-height:18px;transition:background-color .12s,color .12s}._9t79wq_segment:hover:not(:disabled):not([data-active]){color:var(--dsw-alias-label-primary)}._9t79wq_segmentGroup:not([data-pill])>._9t79wq_segment[data-active],._9t79wq_segmentGroup[data-pill]:before{background:var(--dsw-alias-bg-overlay,var(--dsw-alias-bg-layer-3));box-shadow:0 1px 2px #14141314}body[data-ds-dark-theme] ._9t79wq_segmentGroup:not([data-pill])>._9t79wq_segment[data-active],body[data-ds-dark-theme] ._9t79wq_segmentGroup[data-pill]:before{box-shadow:none;background:#ffffff24}._9t79wq_segment[data-active]{color:var(--dsw-alias-label-primary)}._9t79wq_segmentGroup[data-pill]:before{content:\"\";width:var(--segment-pill-w,0px);height:var(--segment-pill-h,0px);transform:translate(var(--segment-pill-x,0px), var(--segment-pill-y,0px));pointer-events:none;border-radius:7px;transition:transform .24s cubic-bezier(.22,.61,.36,1),width .24s cubic-bezier(.22,.61,.36,1),height .24s cubic-bezier(.22,.61,.36,1);position:absolute;top:0;left:0}._9t79wq_segmentGroup>*{z-index:1;position:relative}._9t79wq_segment:focus-visible{outline:2px solid var(--dsw-alias-brand-primary);outline-offset:1px}._9t79wq_segment:disabled{cursor:not-allowed;opacity:.45}._9t79wq_segmentGroup[data-pill]:has(>._9t79wq_segment:disabled):before{opacity:.45}._9t79wq_input,._9t79wq_select{border:1px solid var(--dsw-alias-border-l2);background:var(--dsw-alias-bg-layer-3);height:34px;font:inherit;color:var(--dsw-alias-label-primary);border-radius:8px;padding:0 12px;font-size:13px;line-height:1.5}._9t79wq_input:focus-visible,._9t79wq_select:focus-visible{border-color:var(--dsw-alias-brand-primary);outline:none}._9t79wq_input:disabled,._9t79wq_select:disabled{color:var(--dsw-alias-label-tertiary);cursor:default}._9t79wq_inputInvalid{border:1px solid var(--dsw-alias-state-error-primary,#b42318);background:var(--dsw-alias-bg-layer-3);height:34px;font:inherit;color:var(--dsw-alias-label-primary);border-radius:8px;padding:0 12px;font-size:13px;line-height:1.5}._9t79wq_inputInvalid:focus-visible{outline:2px solid var(--dsw-alias-state-error-primary,#b42318);outline-offset:1px;border-color:var(--dsw-alias-state-error-primary,#b42318)}._9t79wq_field>:is(._9t79wq_input,._9t79wq_inputInvalid,._9t79wq_select,._9t79wq_selectWrap,._9t79wq_rangeAnchor){box-sizing:border-box;width:220px}._9t79wq_rangeAnchor>:is(._9t79wq_input,._9t79wq_inputInvalid){box-sizing:border-box;width:100%}@container _9t79wq_settings-card (width<=440px){._9t79wq_field{grid-template-columns:minmax(0,1fr);grid-template-areas:\"_9t79wq_head\"\"_9t79wq_hint\"\"_9t79wq_control\";row-gap:8px}._9t79wq_field>:not(._9t79wq_head,._9t79wq_hint,._9t79wq_invalid){justify-self:start}._9t79wq_field>:is(._9t79wq_input,._9t79wq_inputInvalid,._9t79wq_select,._9t79wq_selectWrap,._9t79wq_rangeAnchor){justify-self:stretch;width:auto}}._9t79wq_selectWrap{position:relative}._9t79wq_selectButton{appearance:none;text-align:left;cursor:pointer;justify-content:space-between;align-items:center;gap:8px;width:100%;display:flex}._9t79wq_selectLabel{text-overflow:ellipsis;white-space:nowrap;min-width:0;overflow:hidden}._9t79wq_selectChevron{color:var(--dsw-alias-label-tertiary);flex:none;transition:transform .16s}._9t79wq_selectChevronOpen{transform:rotate(180deg)}._9t79wq_selectPopup{z-index:40;border:1px solid var(--dsw-alias-border-l2);background:var(--dsw-alias-bg-layer-3);max-height:240px;box-shadow:0 8px 24px var(--dsw-alias-bg-mask-2);opacity:0;border-radius:8px;flex-direction:column;padding:4px;transition:opacity .1s,transform .1s;display:flex;position:absolute;top:calc(100% + 4px);left:0;right:0;overflow-y:auto;transform:translateY(-4px)}._9t79wq_selectPopupOpen{opacity:1;transform:none}._9t79wq_selectPopupClose{opacity:0;pointer-events:none;transform:translateY(-4px)}._9t79wq_rangeAnchor{display:inline-flex;position:relative}._9t79wq_rangeBubble{z-index:40;box-sizing:border-box;border:1px solid var(--dsw-alias-border-l2);background:var(--dsw-alias-bg-layer-3);width:220px;box-shadow:0 8px 24px var(--dsw-alias-bg-mask-2);opacity:0;visibility:hidden;border-radius:10px;padding:10px 12px 6px;transition:opacity .12s,transform .12s,visibility 0s linear .12s;position:absolute;right:0}._9t79wq_rangeBubble[data-side=above]{bottom:calc(100% + 6px);transform:translateY(4px)}._9t79wq_rangeBubble[data-side=below]{top:calc(100% + 6px);transform:translateY(-4px)}._9t79wq_rangeBubble[data-open]{opacity:1;visibility:visible;transition:opacity .12s,transform .12s,visibility;transform:none}._9t79wq_rangeSlider{appearance:none;cursor:pointer;background:0 0;width:100%;height:18px;margin:0;display:block}._9t79wq_rangeSlider::-webkit-slider-runnable-track{background:linear-gradient(to right, var(--dsw-alias-brand-primary) var(--range-fill,0%), color-mix(in srgb, var(--dsw-alias-label-primary) 12%, transparent) var(--range-fill,0%));border-radius:999px;height:4px}._9t79wq_rangeSlider::-moz-range-track{background:color-mix(in srgb, var(--dsw-alias-label-primary) 12%, transparent);border-radius:999px;height:4px}._9t79wq_rangeSlider::-moz-range-progress{background:var(--dsw-alias-brand-primary);border-radius:999px;height:4px}._9t79wq_rangeSlider::-webkit-slider-thumb{appearance:none;background:#fff;border:0;border-radius:50%;width:14px;height:14px;margin-top:-5px;transition:transform .12s;box-shadow:0 0 0 1px #0000001f,0 1px 3px #00000040}._9t79wq_rangeSlider::-moz-range-thumb{background:#fff;border:0;border-radius:50%;width:14px;height:14px;box-shadow:0 0 0 1px #0000001f,0 1px 3px #00000040}._9t79wq_rangeSlider:active::-webkit-slider-thumb{transform:scale(1.15)}._9t79wq_rangeSlider:focus-visible{outline:none}._9t79wq_rangeSlider:focus-visible::-webkit-slider-thumb{box-shadow:0 0 0 2px var(--dsw-alias-brand-primary)}._9t79wq_rangeSlider:disabled{cursor:not-allowed}._9t79wq_rangeEnds{color:var(--dsw-alias-label-secondary);font-variant-numeric:tabular-nums;justify-content:space-between;margin-top:2px;font-size:11px;line-height:16px;display:flex}._9t79wq_selectOption{color:var(--dsw-alias-label-primary);cursor:pointer;white-space:nowrap;text-overflow:ellipsis;border-radius:6px;flex-shrink:0;padding:6px 10px;font-size:13px;line-height:1.5;overflow:hidden}._9t79wq_selectOption:hover,._9t79wq_selectOptionActive{background:var(--dsw-alias-interactive-bg-hover)}._9t79wq_selectOptionSelected{color:var(--dsw-alias-brand-primary);background:color-mix(in srgb, var(--dsw-alias-brand-primary) 10%, transparent);font-weight:500}._9t79wq_invalid{color:var(--dsw-alias-state-error-primary,#b42318);margin:0;font-size:12px;line-height:18px}._9t79wq_hint{color:var(--dsw-alias-label-secondary);margin:0;font-size:12px;line-height:18px}._9t79wq_toggle{appearance:none;cursor:pointer;font:inherit;background:0 0;border:0;border-radius:999px;align-items:center;margin:0;padding:0;display:inline-flex}._9t79wq_toggleTrack{background:var(--dsw-alias-label-dimmed);border-radius:999px;flex:none;width:36px;height:20px;transition:background-color .18s;position:relative}._9t79wq_toggleThumb{--toggle-travel:16px;--toggle-overshoot:1px;background:var(--dsw-alias-bg-layer-3);border-radius:50%;width:16px;height:16px;transition:translate .18s;position:absolute;top:2px;left:2px;translate:0;box-shadow:0 1px 2px #1414132e}._9t79wq_toggle[aria-checked=true] ._9t79wq_toggleTrack{background:var(--dsw-alias-button-primary-fill,var(--dsw-alias-label-primary))}._9t79wq_toggle[aria-checked=true] ._9t79wq_toggleThumb{translate:var(--toggle-travel) 0;background:var(--dsw-alias-label-primary-foreground,var(--dsw-alias-bg-layer-3))}._9t79wq_toggle[data-moved][aria-checked=true] ._9t79wq_toggleThumb{animation:.35s cubic-bezier(.34,1.45,.64,1) both _9t79wq_toggle-on}._9t79wq_toggle[data-moved][aria-checked=false] ._9t79wq_toggleThumb{animation:.35s cubic-bezier(.34,1.45,.64,1) both _9t79wq_toggle-off}@keyframes _9t79wq_toggle-on{0%{translate:0}55%{translate:calc(var(--toggle-travel) + var(--toggle-overshoot)) 0}80%,to{translate:var(--toggle-travel) 0}}@keyframes _9t79wq_toggle-off{0%{translate:var(--toggle-travel) 0}55%{translate:calc(0px - var(--toggle-overshoot)) 0}80%,to{translate:0}}._9t79wq_toggle:focus-visible{outline:2px solid var(--dsw-alias-brand-primary);outline-offset:2px}._9t79wq_toggle:disabled{opacity:.45;cursor:not-allowed}@media (prefers-reduced-motion:reduce){._9t79wq_card,._9t79wq_header,._9t79wq_mark,._9t79wq_chevron,._9t79wq_chevronOpen,._9t79wq_rangeBubble,._9t79wq_selectChevron,._9t79wq_selectChevronOpen,._9t79wq_selectPopup,._9t79wq_toggleTrack,._9t79wq_toggleThumb{transition:none}._9t79wq_toggle[data-moved] ._9t79wq_toggleThumb{animation:none}._9t79wq_disclosure{transition-property:opacity}}";
686
- const tagId = "@linxin666/dsh-liangshen/packages/dsh-liangshen/src/client/settings-card.module.css";
687
- if (typeof document !== "undefined" && document.querySelector("style[data-plugin-css=" + JSON.stringify(tagId) + "]") === null) {
688
- const tag = document.createElement("style");
689
- tag.dataset.plugin = "@linxin666/dsh-liangshen";
690
- tag.dataset.pluginCss = tagId;
691
- tag.textContent = css;
692
- document.head.appendChild(tag);
693
- }
694
676
  var settings_card_module_css_default = {
695
677
  "badge": "_9t79wq_badge",
696
678
  "badges": "_9t79wq_badges",
@@ -2636,7 +2618,11 @@ window.__ModuleLoader__.load({
2636
2618
  exports.restoreTarget = restoreTarget;
2637
2619
  exports.servedEntryId = servedEntryId;
2638
2620
  return module.exports;
2639
- }
2621
+ },
2622
+ meta: () => ({ stylesheets: {
2623
+ "packages/dsh-liangshen/src/client/LiangShenLever.module.css": { text: () => ".hYkIZq_lever{align-items:center;font-size:12px;line-height:1;display:inline-flex;position:relative}.hYkIZq_control{color:var(--dsw-alias-label-secondary,inherit);font:inherit;cursor:pointer;touch-action:none;-webkit-user-select:none;user-select:none;background:0 0;border:none;border-radius:999px;align-items:center;gap:6px;margin:0;padding:2px 8px 2px 4px;transition:background-color .16s,color .16s;display:inline-flex}.hYkIZq_control:hover:not(:disabled){background:var(--dsw-alias-interactive-bg-hover,#0000000f)}.hYkIZq_control:focus-visible{outline:2px solid var(--dsw-alias-brand-primary,currentColor);outline-offset:2px}.hYkIZq_control:disabled{cursor:default;opacity:.55}.hYkIZq_track{background:linear-gradient(#2b2f36,#14161a);border-radius:8px;justify-content:center;align-items:flex-end;width:24px;height:28px;display:inline-flex;position:relative;overflow:hidden;box-shadow:inset 0 0 0 1px #ffffff24,inset 0 6px 10px #0000008c}.hYkIZq_track:after{content:\"\";background:#ffffff38;border-radius:2px;height:3px;position:absolute;bottom:2px;left:3px;right:3px}.hYkIZq_arm{transform-origin:50% 24px;width:16px;height:26px;margin-left:-8px;transition:transform .34s cubic-bezier(.2,1.7,.32,1);position:absolute;bottom:2px;left:50%;transform:rotate(-24deg)}.hYkIZq_lever[data-state=on] .hYkIZq_arm{transform:rotate(24deg)}.hYkIZq_rod{fill:#c9ced6;transition:fill .2s}.hYkIZq_knob{fill:#e04a33;stroke:#00000059;stroke-width:.6px;transition:fill .2s}.hYkIZq_lever[data-state=on] .hYkIZq_rod{fill:#ffd76a}.hYkIZq_lever[data-state=on] .hYkIZq_knob{fill:#f7c637}.hYkIZq_lever[data-state=on] .hYkIZq_track{box-shadow:inset 0 0 0 1px var(--dsw-alias-border-l3,#0000001f), 0 0 10px #f7c6378c}.hYkIZq_lever[data-busy=true] .hYkIZq_arm{animation:.42s ease-in-out infinite hYkIZq_lever-jitter}.hYkIZq_readout{white-space:nowrap;letter-spacing:.02em;min-width:4.4em}.hYkIZq_lever[data-state=on] .hYkIZq_readout{color:var(--dsw-alias-label-primary,inherit);font-weight:600}.hYkIZq_error{background:var(--dsw-alias-bg-layer-3,#0000000f);max-width:22ch;color:var(--dsw-alias-state-error-primary,#c0392b);text-overflow:ellipsis;white-space:nowrap;border-radius:6px;margin-left:4px;padding:2px 6px;overflow:hidden}.hYkIZq_burst{z-index:60;pointer-events:none;place-items:center;display:grid;position:fixed;inset:0;overflow:hidden}.hYkIZq_flash{background:radial-gradient(circle at 50% 62%,#fff6c8eb,#ffd04a73 38%,#ffa00000 72%);animation:.72s ease-out both hYkIZq_burst-flash;position:absolute;inset:0}.hYkIZq_ring{border:6px solid #ffd65ad9;border-radius:50%;width:220px;height:220px;animation:1.1s cubic-bezier(.16,.9,.3,1) both hYkIZq_burst-ring;position:absolute}.hYkIZq_ring:nth-of-type(2){animation-delay:.12s}.hYkIZq_ring:nth-of-type(3){animation-delay:.24s}.hYkIZq_banner{color:#ffe9a8;text-align:center;background:linear-gradient(160deg,#181004f0,#402604eb);border-radius:22px;flex-direction:column;align-items:center;gap:6px;padding:22px 40px;animation:.6s cubic-bezier(.16,1.5,.3,1) both hYkIZq_banner-slam,.5s ease-in-out .6s 2 hYkIZq_banner-shake;display:flex;position:relative;box-shadow:0 0 0 2px #ffd65abf,0 24px 70px #00000073}.hYkIZq_bannerName{letter-spacing:.16em;background:linear-gradient(#fff6d0,#ffc93c 55%,#b8730a);color:#0000;text-shadow:0 0 24px #ffc93ca6;-webkit-background-clip:text;background-clip:text;font-size:44px;font-weight:800}.hYkIZq_line{letter-spacing:.08em;font-size:15px}.hYkIZq_code{font-family:var(--dsw-font-mono,ui-monospace, SFMono-Regular, Menlo, monospace);letter-spacing:.06em;opacity:.82;font-size:11px;animation:.5s steps(2,end) 6 hYkIZq_code-blink}.hYkIZq_sparks{place-items:center;display:grid;position:absolute;inset:0}.hYkIZq_spark{transform-origin:50%;background:linear-gradient(#ffeca0f2,#ffaa1400);border-radius:3px;grid-area:1/1;width:3px;height:30px;animation:.95s ease-out both hYkIZq_spark-fly}@keyframes hYkIZq_lever-jitter{0%,to{transform:rotate(-22deg)}50%{transform:rotate(-8deg)}}@keyframes hYkIZq_burst-flash{0%{opacity:0;transform:scale(.6)}18%{opacity:1}to{opacity:0;transform:scale(1.5)}}@keyframes hYkIZq_burst-ring{0%{opacity:.9;transform:scale(.2)}to{opacity:0;transform:scale(3.4)}}@keyframes hYkIZq_banner-slam{0%{opacity:0;transform:scale(3.6)rotate(-9deg)}55%{opacity:1;transform:scale(.94)rotate(1.5deg)}75%{transform:scale(1.06)rotate(-1deg)}to{opacity:1;transform:scale(1)rotate(0)}}@keyframes hYkIZq_banner-shake{0%,to{transform:translate(0)}25%{transform:translate(-9px)rotate(-.6deg)}75%{transform:translate(9px)rotate(.6deg)}}@keyframes hYkIZq_spark-fly{0%{opacity:0;transform:translateY(-40px)scaleY(.3)}18%{opacity:1}to{opacity:0;transform:translateY(-300px)scaleY(1.15)}}@keyframes hYkIZq_code-blink{0%,to{opacity:.35}50%{opacity:1}}@media (prefers-reduced-motion:reduce){.hYkIZq_arm,.hYkIZq_control,.hYkIZq_rod,.hYkIZq_knob{transition:none}.hYkIZq_lever[data-busy=true] .hYkIZq_arm,.hYkIZq_flash,.hYkIZq_ring,.hYkIZq_banner,.hYkIZq_code,.hYkIZq_spark{animation:none}.hYkIZq_burst{animation:.3s ease-out both hYkIZq_burst-flash}.hYkIZq_spark{display:none}}" },
2624
+ "packages/dsh-liangshen/src/client/settings-card.module.css": { text: () => "._9t79wq_card{--settings-card-radius:12px;--settings-card-header-pad:16px;--settings-card-header-gap:13px;--settings-card-title-size:15px;--settings-card-description-size:13px;--settings-card-body-inset:16px;--settings-card-motion:.18s;border:1px solid var(--dsw-alias-border-l2);background:var(--dsw-alias-bg-layer-3);border-radius:var(--settings-card-radius);list-style:none;transition:border-color .16s,background .16s}._9t79wq_card:hover{border-color:var(--dsw-alias-label-dimmed)}._9t79wq_cardOpen{background:var(--dsw-alias-bg-layer-2);border-color:var(--dsw-alias-label-dimmed)}._9t79wq_cardNested{--settings-card-radius:10px;--settings-card-header-pad:10px 12px;--settings-card-header-gap:10px;--settings-card-title-size:13px;--settings-card-description-size:12px;--settings-card-body-inset:12px}._9t79wq_cardNested ._9t79wq_description{white-space:nowrap;text-overflow:ellipsis;overflow:hidden}._9t79wq_header{appearance:none;box-sizing:border-box;width:100%;font:inherit;color:inherit;text-align:left;cursor:pointer;border-radius:var(--settings-card-radius);align-items:center;gap:var(--settings-card-header-gap);padding:var(--settings-card-header-pad);background:0 0;border:0;display:flex}._9t79wq_header:focus-visible{outline:2px solid var(--dsw-alias-brand-primary);outline-offset:-2px}._9t79wq_headerStatic{box-sizing:border-box;border-radius:var(--settings-card-radius);align-items:center;gap:var(--settings-card-header-gap);width:100%;padding:var(--settings-card-header-pad);display:flex}._9t79wq_headText{flex-direction:column;flex:1;gap:4px;min-width:0;display:flex}._9t79wq_mark{background:var(--dsw-alias-bg-module-platform);width:34px;height:34px;color:var(--dsw-alias-label-secondary);border-radius:10px;flex:none;place-items:center;transition:color .16s;display:grid}._9t79wq_header:hover ._9t79wq_mark,._9t79wq_cardOpen ._9t79wq_mark{color:var(--dsw-alias-label-primary)}._9t79wq_name{color:var(--dsw-alias-label-primary);font-size:var(--settings-card-title-size);font-weight:600;line-height:1.4}._9t79wq_description{color:var(--dsw-alias-label-secondary);font-size:12px;line-height:18px}._9t79wq_headerAction{flex:none;align-items:center;display:inline-flex}._9t79wq_chevron{color:var(--dsw-alias-label-tertiary);flex:none;width:16px;height:16px;transition:transform .16s,color .16s}._9t79wq_header:hover ._9t79wq_chevron{color:var(--dsw-alias-label-secondary)}._9t79wq_chevronOpen{transform:rotate(180deg)}._9t79wq_disclosure{opacity:0;transition:grid-template-rows var(--settings-card-motion) ease, opacity var(--settings-card-motion) ease;grid-template-rows:0fr;display:grid}._9t79wq_disclosure[data-state=collapsed],._9t79wq_disclosure[data-state=entering],._9t79wq_disclosure[data-state=closing]{overflow:hidden}._9t79wq_disclosure[data-state=entering],._9t79wq_disclosure[data-state=shown]{opacity:1;grid-template-rows:1fr}._9t79wq_disclosure>._9t79wq_body{min-height:0}._9t79wq_body{border-top:1px solid var(--dsw-alias-border-l2);margin:0 var(--settings-card-body-inset);padding-bottom:8px;container:_9t79wq_settings-card/inline-size}._9t79wq_readOnly{color:var(--dsw-alias-label-secondary);margin:12px 0 0;font-size:12px;line-height:1.5}._9t79wq_notExposed{color:var(--dsw-alias-state-warn-primary);margin:12px 0 0;font-size:12px;line-height:1.5}._9t79wq_failed{color:var(--dsw-alias-state-error-primary,#b42318);overflow-wrap:anywhere;margin:8px 0 4px;font-size:12px;line-height:18px}._9t79wq_field{grid-template-columns:minmax(0,1fr) fit-content(50%);grid-template-areas:\"_9t79wq_head _9t79wq_control\"\"_9t79wq_hint _9t79wq_control\";align-items:center;gap:4px 24px;padding:16px 0;display:grid}._9t79wq_field>._9t79wq_head{grid-area:_9t79wq_head}._9t79wq_field>:is(._9t79wq_hint,._9t79wq_invalid){grid-area:_9t79wq_hint}._9t79wq_field>:not(._9t79wq_head,._9t79wq_hint,._9t79wq_invalid){grid-area:_9t79wq_control;justify-self:end;max-width:100%}._9t79wq_field+._9t79wq_field{border-top:1px solid var(--dsw-alias-border-l2)}._9t79wq_head{align-items:center;gap:8px;display:flex}._9t79wq_label{min-width:0;color:var(--dsw-alias-label-primary);flex:1;font-size:14px;font-weight:400;line-height:22px}._9t79wq_badges{align-items:center;gap:8px;display:inline-flex}._9t79wq_badge{white-space:nowrap;background:var(--dsw-alias-bg-module-platform);color:var(--dsw-alias-label-secondary);border-radius:999px;padding:1px 8px;font-size:11px;font-weight:500;line-height:17px}._9t79wq_reset{font:inherit;color:var(--dsw-alias-label-secondary);cursor:pointer;background:0 0;border:none;padding:0;font-size:12px;line-height:1.5}._9t79wq_reset:hover:not(:disabled){color:var(--dsw-alias-label-primary)}._9t79wq_reset:disabled{cursor:default}._9t79wq_reset:focus-visible{outline:2px solid var(--dsw-alias-brand-primary);outline-offset:2px}._9t79wq_segmentGroup{background:color-mix(in srgb, var(--dsw-alias-label-primary) 7%, transparent);box-shadow:inset 0 0 0 1px color-mix(in srgb, var(--dsw-alias-label-primary) 5%, transparent);border-radius:8px;flex-wrap:wrap;align-items:center;gap:2px;padding:2px;display:inline-flex;position:relative}._9t79wq_segment{appearance:none;color:var(--dsw-alias-label-secondary);font:inherit;white-space:nowrap;cursor:pointer;background:0 0;border:0;border-radius:7px;margin:0;padding:3px 12px;font-size:13px;font-weight:500;line-height:18px;transition:background-color .12s,color .12s}._9t79wq_segment:hover:not(:disabled):not([data-active]){color:var(--dsw-alias-label-primary)}._9t79wq_segmentGroup:not([data-pill])>._9t79wq_segment[data-active],._9t79wq_segmentGroup[data-pill]:before{background:var(--dsw-alias-bg-overlay,var(--dsw-alias-bg-layer-3));box-shadow:0 1px 2px #14141314}body[data-ds-dark-theme] ._9t79wq_segmentGroup:not([data-pill])>._9t79wq_segment[data-active],body[data-ds-dark-theme] ._9t79wq_segmentGroup[data-pill]:before{box-shadow:none;background:#ffffff24}._9t79wq_segment[data-active]{color:var(--dsw-alias-label-primary)}._9t79wq_segmentGroup[data-pill]:before{content:\"\";width:var(--segment-pill-w,0px);height:var(--segment-pill-h,0px);transform:translate(var(--segment-pill-x,0px), var(--segment-pill-y,0px));pointer-events:none;border-radius:7px;transition:transform .24s cubic-bezier(.22,.61,.36,1),width .24s cubic-bezier(.22,.61,.36,1),height .24s cubic-bezier(.22,.61,.36,1);position:absolute;top:0;left:0}._9t79wq_segmentGroup>*{z-index:1;position:relative}._9t79wq_segment:focus-visible{outline:2px solid var(--dsw-alias-brand-primary);outline-offset:1px}._9t79wq_segment:disabled{cursor:not-allowed;opacity:.45}._9t79wq_segmentGroup[data-pill]:has(>._9t79wq_segment:disabled):before{opacity:.45}._9t79wq_input,._9t79wq_select{border:1px solid var(--dsw-alias-border-l2);background:var(--dsw-alias-bg-layer-3);height:34px;font:inherit;color:var(--dsw-alias-label-primary);border-radius:8px;padding:0 12px;font-size:13px;line-height:1.5}._9t79wq_input:focus-visible,._9t79wq_select:focus-visible{border-color:var(--dsw-alias-brand-primary);outline:none}._9t79wq_input:disabled,._9t79wq_select:disabled{color:var(--dsw-alias-label-tertiary);cursor:default}._9t79wq_inputInvalid{border:1px solid var(--dsw-alias-state-error-primary,#b42318);background:var(--dsw-alias-bg-layer-3);height:34px;font:inherit;color:var(--dsw-alias-label-primary);border-radius:8px;padding:0 12px;font-size:13px;line-height:1.5}._9t79wq_inputInvalid:focus-visible{outline:2px solid var(--dsw-alias-state-error-primary,#b42318);outline-offset:1px;border-color:var(--dsw-alias-state-error-primary,#b42318)}._9t79wq_field>:is(._9t79wq_input,._9t79wq_inputInvalid,._9t79wq_select,._9t79wq_selectWrap,._9t79wq_rangeAnchor){box-sizing:border-box;width:220px}._9t79wq_rangeAnchor>:is(._9t79wq_input,._9t79wq_inputInvalid){box-sizing:border-box;width:100%}@container _9t79wq_settings-card (width<=440px){._9t79wq_field{grid-template-columns:minmax(0,1fr);grid-template-areas:\"_9t79wq_head\"\"_9t79wq_hint\"\"_9t79wq_control\";row-gap:8px}._9t79wq_field>:not(._9t79wq_head,._9t79wq_hint,._9t79wq_invalid){justify-self:start}._9t79wq_field>:is(._9t79wq_input,._9t79wq_inputInvalid,._9t79wq_select,._9t79wq_selectWrap,._9t79wq_rangeAnchor){justify-self:stretch;width:auto}}._9t79wq_selectWrap{position:relative}._9t79wq_selectButton{appearance:none;text-align:left;cursor:pointer;justify-content:space-between;align-items:center;gap:8px;width:100%;display:flex}._9t79wq_selectLabel{text-overflow:ellipsis;white-space:nowrap;min-width:0;overflow:hidden}._9t79wq_selectChevron{color:var(--dsw-alias-label-tertiary);flex:none;transition:transform .16s}._9t79wq_selectChevronOpen{transform:rotate(180deg)}._9t79wq_selectPopup{z-index:40;border:1px solid var(--dsw-alias-border-l2);background:var(--dsw-alias-bg-layer-3);max-height:240px;box-shadow:0 8px 24px var(--dsw-alias-bg-mask-2);opacity:0;border-radius:8px;flex-direction:column;padding:4px;transition:opacity .1s,transform .1s;display:flex;position:absolute;top:calc(100% + 4px);left:0;right:0;overflow-y:auto;transform:translateY(-4px)}._9t79wq_selectPopupOpen{opacity:1;transform:none}._9t79wq_selectPopupClose{opacity:0;pointer-events:none;transform:translateY(-4px)}._9t79wq_rangeAnchor{display:inline-flex;position:relative}._9t79wq_rangeBubble{z-index:40;box-sizing:border-box;border:1px solid var(--dsw-alias-border-l2);background:var(--dsw-alias-bg-layer-3);width:220px;box-shadow:0 8px 24px var(--dsw-alias-bg-mask-2);opacity:0;visibility:hidden;border-radius:10px;padding:10px 12px 6px;transition:opacity .12s,transform .12s,visibility 0s linear .12s;position:absolute;right:0}._9t79wq_rangeBubble[data-side=above]{bottom:calc(100% + 6px);transform:translateY(4px)}._9t79wq_rangeBubble[data-side=below]{top:calc(100% + 6px);transform:translateY(-4px)}._9t79wq_rangeBubble[data-open]{opacity:1;visibility:visible;transition:opacity .12s,transform .12s,visibility;transform:none}._9t79wq_rangeSlider{appearance:none;cursor:pointer;background:0 0;width:100%;height:18px;margin:0;display:block}._9t79wq_rangeSlider::-webkit-slider-runnable-track{background:linear-gradient(to right, var(--dsw-alias-brand-primary) var(--range-fill,0%), color-mix(in srgb, var(--dsw-alias-label-primary) 12%, transparent) var(--range-fill,0%));border-radius:999px;height:4px}._9t79wq_rangeSlider::-moz-range-track{background:color-mix(in srgb, var(--dsw-alias-label-primary) 12%, transparent);border-radius:999px;height:4px}._9t79wq_rangeSlider::-moz-range-progress{background:var(--dsw-alias-brand-primary);border-radius:999px;height:4px}._9t79wq_rangeSlider::-webkit-slider-thumb{appearance:none;background:#fff;border:0;border-radius:50%;width:14px;height:14px;margin-top:-5px;transition:transform .12s;box-shadow:0 0 0 1px #0000001f,0 1px 3px #00000040}._9t79wq_rangeSlider::-moz-range-thumb{background:#fff;border:0;border-radius:50%;width:14px;height:14px;box-shadow:0 0 0 1px #0000001f,0 1px 3px #00000040}._9t79wq_rangeSlider:active::-webkit-slider-thumb{transform:scale(1.15)}._9t79wq_rangeSlider:focus-visible{outline:none}._9t79wq_rangeSlider:focus-visible::-webkit-slider-thumb{box-shadow:0 0 0 2px var(--dsw-alias-brand-primary)}._9t79wq_rangeSlider:disabled{cursor:not-allowed}._9t79wq_rangeEnds{color:var(--dsw-alias-label-secondary);font-variant-numeric:tabular-nums;justify-content:space-between;margin-top:2px;font-size:11px;line-height:16px;display:flex}._9t79wq_selectOption{color:var(--dsw-alias-label-primary);cursor:pointer;white-space:nowrap;text-overflow:ellipsis;border-radius:6px;flex-shrink:0;padding:6px 10px;font-size:13px;line-height:1.5;overflow:hidden}._9t79wq_selectOption:hover,._9t79wq_selectOptionActive{background:var(--dsw-alias-interactive-bg-hover)}._9t79wq_selectOptionSelected{color:var(--dsw-alias-brand-primary);background:color-mix(in srgb, var(--dsw-alias-brand-primary) 10%, transparent);font-weight:500}._9t79wq_invalid{color:var(--dsw-alias-state-error-primary,#b42318);margin:0;font-size:12px;line-height:18px}._9t79wq_hint{color:var(--dsw-alias-label-secondary);margin:0;font-size:12px;line-height:18px}._9t79wq_toggle{appearance:none;cursor:pointer;font:inherit;background:0 0;border:0;border-radius:999px;align-items:center;margin:0;padding:0;display:inline-flex}._9t79wq_toggleTrack{background:var(--dsw-alias-label-dimmed);border-radius:999px;flex:none;width:36px;height:20px;transition:background-color .18s;position:relative}._9t79wq_toggleThumb{--toggle-travel:16px;--toggle-overshoot:1px;background:var(--dsw-alias-bg-layer-3);border-radius:50%;width:16px;height:16px;transition:translate .18s;position:absolute;top:2px;left:2px;translate:0;box-shadow:0 1px 2px #1414132e}._9t79wq_toggle[aria-checked=true] ._9t79wq_toggleTrack{background:var(--dsw-alias-button-primary-fill,var(--dsw-alias-label-primary))}._9t79wq_toggle[aria-checked=true] ._9t79wq_toggleThumb{translate:var(--toggle-travel) 0;background:var(--dsw-alias-label-primary-foreground,var(--dsw-alias-bg-layer-3))}._9t79wq_toggle[data-moved][aria-checked=true] ._9t79wq_toggleThumb{animation:.35s cubic-bezier(.34,1.45,.64,1) both _9t79wq_toggle-on}._9t79wq_toggle[data-moved][aria-checked=false] ._9t79wq_toggleThumb{animation:.35s cubic-bezier(.34,1.45,.64,1) both _9t79wq_toggle-off}@keyframes _9t79wq_toggle-on{0%{translate:0}55%{translate:calc(var(--toggle-travel) + var(--toggle-overshoot)) 0}80%,to{translate:var(--toggle-travel) 0}}@keyframes _9t79wq_toggle-off{0%{translate:var(--toggle-travel) 0}55%{translate:calc(0px - var(--toggle-overshoot)) 0}80%,to{translate:0}}._9t79wq_toggle:focus-visible{outline:2px solid var(--dsw-alias-brand-primary);outline-offset:2px}._9t79wq_toggle:disabled{opacity:.45;cursor:not-allowed}@media (prefers-reduced-motion:reduce){._9t79wq_card,._9t79wq_header,._9t79wq_mark,._9t79wq_chevron,._9t79wq_chevronOpen,._9t79wq_rangeBubble,._9t79wq_selectChevron,._9t79wq_selectChevronOpen,._9t79wq_selectPopup,._9t79wq_toggleTrack,._9t79wq_toggleThumb{transition:none}._9t79wq_toggle[data-moved] ._9t79wq_toggleThumb{animation:none}._9t79wq_disclosure{transition-property:opacity}}" }
2625
+ } })
2640
2626
  });
2641
2627
 
2642
2628
  //# sourceMappingURL=client.js.map