Compose Netx Ops preset from host standard instead of embedding it.

Drop the declarative @deepseek-ai/dsh-agent-preset patch (and the huge flat standard copy) so web/CLI boot no longer needs that package; install copies shipped standard then overlays persona/tools/skills.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
oliver 2026-10-09 23:35:52 +08:00
parent 3655eeef73
commit 2d86f55bf9
9 changed files with 468 additions and 1075 deletions

View file

@ -9,7 +9,7 @@ One install wires **all of**:
| Host tools | Capability groups **ops / topology** (one group ↔ one skill). Default ops in Ops preset; topology and all public off. Other agents may mount `dsh-netxops/tools-ops|topology` |
| Companion plugins | **dsh-im-ops** + **dsh-ops-cron** — add as **direct** profile deps in the same command (DSH/pnpm blocks `github:` as transitive deps) |
| Plugins card | Settings → Plugins → **Netx Ops** (URL / API lang / thinking+reply language / token / capability groups) |
| Agent preset + skills | Settings → Agent presets → **Netx Ops**. DSH ≥0.2.0: declarative `@deepseek-ai/dsh-agent-preset` patch row. DSH ≤0.1.5: copied into `~/.dsh/.agent-presets` on activate. Playbooks follow the same group toggles |
| Agent preset + skills | Settings → Agent presets → **Netx Ops**. On activate the Host composes `~/.dsh/.agent-presets/netxops` from the shipped **standard** preset + Netx Ops persona/tools/skills (DSH has no preset inheritance). Playbooks follow the same group toggles |
You do **not** run `link-preset.ps1` for normal use. That script is only a manual fallback.
@ -69,7 +69,7 @@ One command, three **direct** profile bundles. Do **not** nest IM/cron under net
Capability groups: leave default for **ops**, or enable **topology** / **对其他预设公开** (new sessions after save).
Optional: **知识库** — set package root (MANIFEST v1.0); default mounts `_skills/kb-*` into Netx Ops; optional public. See [KNOWLEDGE_BASE.md](KNOWLEDGE_BASE.md).
2. Restart after install/upgrade so the bundle patch layers apply. Open Settings → **Agent presets** → **Netx Ops** should appear.
The Netx Ops preset is **standard + netxops tools/persona** (shell, search, plan, todo, web, workflows, … plus `netx__*`). On DSH ≥0.2.0 the picker reads the declarative preset row (not `~/.dsh/.agent-presets`). On ≤0.1.5, re-activate so `$DSH_HOME/.agent-presets/netxops` is refreshed from the package.
The Netx Ops preset is **standard + netxops tools/persona** (shell, search, plan, todo, web, workflows, … plus `netx__*`). Re-activate (or restart the Host) so `$DSH_HOME/.agent-presets/netxops` is recomposed from the current Harness `standard` preset.
3. **New session → preset Netx Ops** → ask e.g. Critical Top / single-host alarms / 「能否登录」.
## Key-alarm push