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 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