dsh-any-agent 0.4.0 → 0.5.0
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/CHANGELOG.md +39 -0
- package/README.md +45 -674
- package/README.zh.md +41 -688
- package/bin/dsh-any-agent.mjs +59 -0
- package/demo/mcp-client.mjs +130 -0
- package/demo/run.mjs +326 -0
- package/demo/transcript.json +47 -0
- package/docs/brand/README.md +58 -0
- package/docs/brand/header.jpg +0 -0
- package/docs/en/architecture.md +43 -0
- package/docs/en/compatibility.md +51 -0
- package/docs/en/demo.md +90 -0
- package/docs/en/install.md +257 -0
- package/docs/en/limits.md +27 -0
- package/docs/en/locking.md +24 -0
- package/docs/en/reference.md +40 -0
- package/docs/en/release.md +33 -0
- package/docs/en/security.md +59 -0
- package/docs/en/team.md +74 -0
- package/docs/en/tests.md +96 -0
- package/docs/en/usage.md +71 -0
- package/docs/zh/architecture.md +43 -0
- package/docs/zh/compatibility.md +49 -0
- package/docs/zh/demo.md +90 -0
- package/docs/zh/install.md +274 -0
- package/docs/zh/limits.md +30 -0
- package/docs/zh/locking.md +24 -0
- package/docs/zh/reference.md +40 -0
- package/docs/zh/release.md +38 -0
- package/docs/zh/security.md +59 -0
- package/docs/zh/team.md +71 -0
- package/docs/zh/tests.md +95 -0
- package/docs/zh/usage.md +69 -0
- package/package.json +5 -1
- package/scripts/check-release.mjs +73 -0
- package/src/config.mjs +61 -23
- package/src/host.mjs +1 -1
- package/src/hub.mjs +76 -5
- package/src/tools.mjs +23 -3
package/CHANGELOG.md
CHANGED
|
@@ -7,6 +7,45 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
7
7
|
|
|
8
8
|
## [Unreleased]
|
|
9
9
|
|
|
10
|
+
## [0.5.0] — 2026-11-03
|
|
11
|
+
|
|
12
|
+
### Process model
|
|
13
|
+
|
|
14
|
+
- **The shared ACP process is now the default.** Sessions with the same `(cwd, permission)`
|
|
15
|
+
land on one DSH process: a second session costs ≈300 ms instead of a ≈4 s cold start, and the
|
|
16
|
+
300–480 MB is paid once per group instead of once per conversation.
|
|
17
|
+
`DSH_MCP_SHARED_PROCESS=0` restores one process per conversation (worth it when you need hard
|
|
18
|
+
isolation). Different workspaces or permission tiers still get separate processes —
|
|
19
|
+
`dsh-base` keeps the sandbox root and the approval policy process-wide.
|
|
20
|
+
- **`dsh_takeover` no longer kills a shared process blind.** When the PID it is about to kill
|
|
21
|
+
still carries other sessions, it refuses unless `force=true` and reports them as
|
|
22
|
+
`shared_sessions`; with `force` it says how many went down with it.
|
|
23
|
+
- **`dsh_doctor` de-duplicates RSS by PID** and reports the shared host count, so "live processes"
|
|
24
|
+
and "RSS total" stop multiplying by the number of sessions riding one process.
|
|
25
|
+
- Stale comments corrected: `DSH_MCP_IDLE_TTL_MS=0` is no longer the default (10 minutes since 0.4.0).
|
|
26
|
+
|
|
27
|
+
### Team mode and defaults
|
|
28
|
+
|
|
29
|
+
- **Agent Teams is now opt-in.** `DSH_MCP_TEAM` defaults to off. Enable with
|
|
30
|
+
`dsh-any-agent team on` (writes `<DSH_HOME>/.dsh-any-agent/settings.json`),
|
|
31
|
+
disable with `team off`, inspect with `team status`; no client config editing.
|
|
32
|
+
When on, the profile switches to `dsh-team`, the legacy subagent tools are
|
|
33
|
+
disabled, and `dsh_send` adds the "form a team when needed" line.
|
|
34
|
+
- **The default session permission is now `workspace-write`** (was
|
|
35
|
+
`danger-full-access`). `permission=danger-full-access` additionally requires
|
|
36
|
+
`DSH_MCP_ALLOW_FULL_ACCESS=1` on the machine, so a bare `dsh_start` can no
|
|
37
|
+
longer hand the caller whole-machine write access.
|
|
38
|
+
- `dsh_doctor` has a dedicated `team` check: on / off / requested-but-unavailable.
|
|
39
|
+
|
|
40
|
+
### Demo
|
|
41
|
+
|
|
42
|
+
- **`npm run demo`** — a five-minute, end-to-end case: create a conversation, dispatch a task with
|
|
43
|
+
`wait=false`, interject twice while it runs, collect the sentinel, then verify the artifacts on
|
|
44
|
+
disk (including `node --test`) instead of trusting the model's own summary. It runs against an
|
|
45
|
+
isolated registry / sentinel / lock directory, so it never touches your daily
|
|
46
|
+
`~/.dsh/.dsh-any-agent`. `--replay` walks a recorded transcript with no DSH and no tokens;
|
|
47
|
+
`--keep` keeps the workspace. Ships as `demo/` in the npm package.
|
|
48
|
+
|
|
10
49
|
## [0.4.0] — 2026-11-03
|
|
11
50
|
|
|
12
51
|
### Memory
|