@yankeguo/dsh-devlead 0.1.1 → 0.2.1

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.md ADDED
@@ -0,0 +1,50 @@
1
+ # @yankeguo/dsh-devlead
2
+
3
+ Core Host service of the DevLead suite (`ctx.devLead`): the durable mode switch, damage-recovery
4
+ `reset()`, Workspace and Session orchestration (including `useWorkspace(agent, request, signal?)`
5
+ with directory creation opt-in), the watched-session notification hub with cold-lead rehydration,
6
+ and the `devLead` / `devLeadMode` Session projections.
7
+
8
+ Normally installed as part of the bundle:
9
+
10
+ ```sh
11
+ dsh plugin --profile desktop add @yankeguo/dsh-devlead-bundle
12
+ ```
13
+
14
+ ## Requirements
15
+
16
+ - DSH `>=0.2.2-rc.1 <0.3.0` (the installed runtime is `0.2.2-rc.1`).
17
+ - Peer services `agents`, `sessions`, `sessionProjections` (provided by the default `dsh-base`
18
+ composition).
19
+ - Optional, probed at call time: `workspaceRegistry`, `sessionController`, `sessionTitle`,
20
+ `sessionQuery`, `sessionProjectionCache` (cold-lead rehydration pre-filter), `sessionPersistence`
21
+ (durable-corpus readiness barrier), and the experimental `worktrees` capability. Missing optional services degrade to fewer features or structured domain
22
+ errors; no experimental package is imported, injected, or declared.
23
+ - Cold-lead rehydration: at plugin load the hub rebuilds its watch index from durable state
24
+ (`sessionQuery` listing → projection-cache pre-filter → exact fold; unclassified rows are capped
25
+ at 64 full-log reads). Without a projection cache only live lead Sessions are recovered. A
26
+ disposed lead keeps observing; `wakeColdSession` defaults to `true`, so a queued notification
27
+ resumes the cold lead before delivering.
28
+
29
+ ## Configuration
30
+
31
+ The Loader row id `devlead` accepts `notificationBatchMs`, `maxWatchedSessions`,
32
+ `maxListedSessions`, `wakeColdSession` (default `true` since 0.2.0), and `defaultAgentPreset`. See the
33
+ [configuration section](https://github.com/yankeguo/dsh-devlead/blob/main/README.md#configuration) for defaults and ranges; all limits are
34
+ validated at both the Loader and direct-construction boundaries.
35
+
36
+ ## Related docs
37
+
38
+ - [Repository README (English)](https://github.com/yankeguo/dsh-devlead/blob/main/README.md) / [中文](https://github.com/yankeguo/dsh-devlead/blob/main/README.zh.md)
39
+ - [Design notes: service API, projections, notification pump, worktree isolation](https://github.com/yankeguo/dsh-devlead/blob/main/docs/DESIGN.md)
40
+ - [Optional-dependency audit](https://github.com/yankeguo/dsh-devlead/blob/main/docs/OPTIONAL-DEPENDENCIES.md)
41
+
42
+ ## 中文
43
+
44
+ `@yankeguo/dsh-devlead` 是套件的 Host 核心服务 `ctx.devLead`:模式开关、损坏状态恢复
45
+ `reset()`、Workspace/Session 编排(`useWorkspace(agent, request, signal?)`,目录创建 opt-in)、
46
+ 带冷 lead 索引重建的 watch 索引与通知投递,以及 `devLead` / `devLeadMode` projection。
47
+ `agents`、`sessions`、`sessionProjections` 为必需 peer;Workspace registry、Session controller、
48
+ 标题/查询服务、projection cache、`sessionPersistence`(冷重建就绪屏障)与实验性 worktree 能力
49
+ 均为可选探测。完整中文文档见[根 README.zh.md](https://github.com/yankeguo/dsh-devlead/blob/main/README.zh.md)与
50
+ [设计说明](https://github.com/yankeguo/dsh-devlead/blob/main/docs/DESIGN.md)。