dsh-ai-collab 0.5.0 → 0.7.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/AGENTS.global.template.md +1 -1
- package/AGENTS.template.md +6 -2
- package/CHANGELOG.md +45 -0
- package/README.md +38 -28
- package/docs/DETAIL.md +29 -11
- package/docs/DISCLAIMER.md +2 -2
- package/docs/MARKET.md +13 -4
- package/docs/index.html +24 -19
- package/index.js +132 -11
- package/lib/dashboard.js +187 -0
- package/lib/handoff.js +2 -2
- package/lib/plan.js +336 -0
- package/lib/tasks.js +27 -25
- package/package.json +4 -4
- package/template/.ai/llm.ps1 +4 -3
package/AGENTS.template.md
CHANGED
|
@@ -78,9 +78,13 @@
|
|
|
78
78
|
| 历史补丁(可复现每一步改动) | `.ai\changelog\patches\` |
|
|
79
79
|
| 日志 / 状态格式与校验 | `.ai\LOG_FORMAT.md`、`.ai\schema\log.schema.json` |
|
|
80
80
|
| 敏感信息规则 | `.ai\SECURITY.md` |
|
|
81
|
-
|
|
|
81
|
+
| 执行计划 / 检查清单 / 风险应对 | `.ai\plan.json`(数据)、`.ai\PLAN.md`(渲染) |
|
|
82
|
+
| 项目文档(对外介绍 / 维护记录) | `.ai\docs\` |
|
|
83
|
+
| 维护脚本 | `.ai\scripts\` |
|
|
84
|
+
| 发布产物 | `.ai\dist\` |
|
|
85
|
+
| 跨项目看板 / 仪表盘 | `..\.ai\board.md`、`..\.ai\dashboard.html` |
|
|
82
86
|
| 工程内修改历史(对外) | 各工程 `readme.txt` |
|
|
83
|
-
|
|
|
87
|
+
| 任务记录清单(所有项目) | 根 `TASKS.html`(可视化,自动生成)、`.ai\TASKS.md`(markdown 归档,自动生成) |
|
|
84
88
|
|
|
85
89
|
## 7. 多工具入口(严格单文件)
|
|
86
90
|
|
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,50 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 0.7.0 (2026-11-27)
|
|
4
|
+
|
|
5
|
+
- Feature: **clean project root**. `TASKS.md` moved to `.ai/TASKS.md`; the root keeps only
|
|
6
|
+
`AGENTS.md` and the rendered HTML pages. Workspace docs/scripts/artifacts are sorted into
|
|
7
|
+
`.ai/docs`, `.ai/scripts`, `.ai/dist` and `.ai/market`.
|
|
8
|
+
- Feature: **automatic HTML regeneration**. New `syncArtifacts(root)` in `index.js` re-renders
|
|
9
|
+
`.ai/TASKS.md` + root `TASKS.html` + `.ai/PLAN.md` + `..\.ai\dashboard.html`; it is called from
|
|
10
|
+
`ai_status`, `ai_log`, `ai_board`, `ai_plan` (`set`/`done`), `ai_init` and `session/created`
|
|
11
|
+
autoInit, and from a global `session/event` hook (8 s throttle) that covers resumed sessions.
|
|
12
|
+
- Fix: visualization files were never produced unless an `ai_log`/`ai_plan` call happened after
|
|
13
|
+
the upgrade.
|
|
14
|
+
- `session/created` autoInit now renders the artifacts right after the workspace is synced.
|
|
15
|
+
- `ai_board` now refreshes `dashboard.html` on every call (it still never writes `board.md`).
|
|
16
|
+
- `ai_init` returns the artifacts flag and renders the same files.
|
|
17
|
+
- Fix: `dashboard.html` per-project links were resolved against `.ai\` instead of the parent
|
|
18
|
+
directory (`../<project>/TASKS.html`) and were not URL-encoded (spaces broke the link).
|
|
19
|
+
- Docs: intro page (`docs/index.html`) refreshed for 0.7.0 (root layout policy, auto-sync,
|
|
20
|
+
eight tools).
|
|
21
|
+
- Migration: `ai-ensure` / `ai_init` moves an existing root `TASKS.md` into `.ai/TASKS.md` and
|
|
22
|
+
re-renders; verified on 10 workspaces (32/6/38/12/49/2/49/36/18/24 records).
|
|
23
|
+
- Tests: **41** (2 new artifact-sync tests in `test/smoke.test.mjs`; `npm run check` clean).
|
|
24
|
+
## 0.6.0
|
|
25
|
+
|
|
26
|
+
- Plan & task management: new `ai_plan` tool (show / set / done).
|
|
27
|
+
- `.ai/plan.json` stores a structured plan: a goal block, a checklist block, and a risk block.
|
|
28
|
+
Each risk has a severity (red/yellow/green), a mitigation, and an active/resolved flag.
|
|
29
|
+
- `appendRecord` auto-merges active plan risks into `status.json` → `blockers`.
|
|
30
|
+
- `lib/plan.js` renders three files atomically: `PLAN.md` (the plan itself), `TASKS.md` (three
|
|
31
|
+
sections: current plan → checklist → risk log, followed by the reverse-chronological log),
|
|
32
|
+
and `TASKS.html` (self-contained dashboard-style HTML, same visual language as
|
|
33
|
+
`dashboard.html`).
|
|
34
|
+
- `refreshTasks` no longer requires a manual `.ai/tasks-enabled` marker — the file is created
|
|
35
|
+
automatically on first write.
|
|
36
|
+
- Cross-project dashboard: `lib/dashboard.js` generates `F:\MyProject\.ai\dashboard.html` from
|
|
37
|
+
all sibling project statuses. Rows with active blockers are highlighted in red; each project
|
|
38
|
+
gets a sparkline bar of record counts from the last 7 log entries. Run automatically after
|
|
39
|
+
every `ai_log` and `ai_init`.
|
|
40
|
+
- Workspace cleanup: root directory reduced to `AGENTS.md` + `TASKS.md` + `dsh-ai-collab.html`;
|
|
41
|
+
everything else moved into `.ai/docs/`, `.ai/scripts/`, `.ai/dist/`, `.ai/market/`.
|
|
42
|
+
Stray `dsh-ai-collab-0.4.3.zip` deleted.
|
|
43
|
+
- Tests: 39 (14 new for plan I/O, checklist toggling, risk merging, Markdown/HTML rendering,
|
|
44
|
+
project scanning and dashboard generation; all old tests pass).
|
|
45
|
+
- Documentation: `AGENTS.template.md` §6 table now lists `plan.json`/`PLAN.md`, the three
|
|
46
|
+
sub-directories, `dashboard.html` and `TASKS.html`.
|
|
47
|
+
|
|
3
48
|
## 0.5.0
|
|
4
49
|
|
|
5
50
|
- Disciplines: global modules + project rules.
|
package/README.md
CHANGED
|
@@ -11,28 +11,38 @@ The point: any AI tool working in the repo (DSH, Claude Code, Cursor, Copilot, C
|
|
|
11
11
|
|
|
12
12
|
> **Visual introduction (中文):** <https://ZhuYw3927.github.io/dsh-ai-collab/>
|
|
13
13
|
|
|
14
|
-
> Status: **0.
|
|
15
|
-
|
|
16
|
-
## What's new in 0.
|
|
17
|
-
|
|
18
|
-
- **
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
project
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
14
|
+
> Status: **0.7.0, experimental**. Published on npm as [`dsh-ai-collab`](https://www.npmjs.com/package/dsh-ai-collab) and listed in the community plugin market — see [Known limitations](#known-limitations).
|
|
15
|
+
|
|
16
|
+
## What's new in 0.7.0
|
|
17
|
+
|
|
18
|
+
- **Clean project root.** The root now only holds what a human reads: `AGENTS.md` plus the rendered
|
|
19
|
+
HTML pages (`TASKS.html`). The markdown task list moved to `.ai/TASKS.md`; docs, scripts, release
|
|
20
|
+
artifacts and market clones live under `.ai/docs`, `.ai/scripts`, `.ai/dist` and `.ai/market`.
|
|
21
|
+
- **HTML views regenerate themselves.** `ai_status`, `ai_log`, `ai_board`, `ai_plan` and `ai_init`
|
|
22
|
+
refresh `TASKS.html`, `.ai/PLAN.md` and `..\.ai\dashboard.html`; a global `session/event` hook
|
|
23
|
+
(8 s throttle per project) also covers **resumed** sessions, so a restart or a fresh plugin
|
|
24
|
+
install no longer needs a manual `ai_log` before the pages appear.
|
|
25
|
+
- **Existing workspaces migrate on the next `ai-ensure` / `ai_init`**: a root `TASKS.md` is moved
|
|
26
|
+
into `.ai/` and re-rendered, so nothing is lost and the root stays clean.
|
|
27
|
+
- Tests: **41** (2 new for artifact sync; all 39 existing tests pass).
|
|
28
|
+
|
|
29
|
+
## What's new in 0.6.0
|
|
30
|
+
|
|
31
|
+
- **Plan & task management.** The new `ai_plan` tool (`show`/`set`/`done`) stores a structured plan
|
|
32
|
+
in `.ai/plan.json`: goals, checklists (with done/undone toggles), and risks (each with a
|
|
33
|
+
severity badge, a mitigation, and an active/resolved flag). Active risks are auto-merged into
|
|
34
|
+
`status.json` → `blockers` so they surface in every status readout.
|
|
35
|
+
- **`TASKS.md` is now three-section** (plan → checklist → risks → log) and also rendered as
|
|
36
|
+
**`TASKS.html`**, a self-contained dashboard-style page with status badges and risk colour
|
|
37
|
+
coding. The `.ai/tasks-enabled` marker is no longer needed — `refreshTasks` creates it
|
|
38
|
+
automatically on first use.
|
|
39
|
+
- **Cross-project dashboard**: `F:\MyProject\.ai\dashboard.html` is generated after every
|
|
40
|
+
`ai_log` and `ai_init`. It scans all sibling projects, highlights rows with active blockers in
|
|
41
|
+
red, and renders a sparkline bar of recent record counts per project.
|
|
42
|
+
- **Workspace layout cleaned**: root directory reduced to `AGENTS.md` + `TASKS.md` +
|
|
43
|
+
`dsh-ai-collab.html`; everything else now lives under `.ai/docs/`, `.ai/scripts/`,
|
|
44
|
+
`.ai/dist/` or `.ai/market/`. A stray `dsh-ai-collab-0.4.3.zip` was deleted.
|
|
45
|
+
- Tests: **39** (14 new for plan, checklist, risk merging and HTML rendering; all 25 old tests pass).
|
|
36
46
|
|
|
37
47
|
## Requirements
|
|
38
48
|
|
|
@@ -101,7 +111,7 @@ index generated by `scripts/make-market-index.mjs`.
|
|
|
101
111
|
| Tool | Does |
|
|
102
112
|
|---|---|
|
|
103
113
|
| `ai_status` | Reads `.ai/status.json` + the last N log records (start a session here) |
|
|
104
|
-
| `ai_log` | Appends one record to `.ai/log.jsonl`; rejects invalid enums, requires `issue` for `blocked`/`failed`; refreshes `status.json`, the sibling board, `TASKS.
|
|
114
|
+
| `ai_log` | Appends one record to `.ai/log.jsonl`; rejects invalid enums, requires `issue` for `blocked`/`failed`; refreshes `status.json`, the sibling board, `TASKS.html` and `.ai/SESSION_BOOT.md` |
|
|
105
115
|
| `ai_check` | Validates every record: required fields, enums, timezone, monotonic `ts`, unique `id`; audits the §8 discipline list for drift |
|
|
106
116
|
| `ai_board` | Read-only roll-up of sibling projects' `.ai/status.json` |
|
|
107
117
|
| `ai_init` | Ensures the workspace: scaffold if missing, refresh stale `.ai/`/`AGENTS.md`, refresh stale board (idempotent) |
|
|
@@ -155,7 +165,7 @@ Get-Content "$DSH_HOME\logs\ai-collab-tools.log" -Tail 3 # tools=ai_status,…
|
|
|
155
165
|
```
|
|
156
166
|
|
|
157
167
|
- A fresh boot line means `apply()` ran in this process.
|
|
158
|
-
- A `tools=` line means all
|
|
168
|
+
- A `tools=` line means all eight tools registered; `spec` shows where `@deepseek-ai/dsh-tools` was loaded from.
|
|
159
169
|
- `load-failed` / `register-failed` lines carry the exact resolution errors.
|
|
160
170
|
|
|
161
171
|
The plugin is mounted from outside `app.asar` (a `link:`/absolute path), so the bare `@deepseek-ai/dsh-tools` specifier is not resolvable; it is loaded from the host's real `app.asar` path instead (see `asarRoots()` in `index.js`). `DSH_HOME` is read from the host environment and may be absent when the app is launched from Explorer — the plugin then falls back to `~/.dsh` (`home=homedir`).
|
|
@@ -172,7 +182,7 @@ The plugin is mounted from outside `app.asar` (a `link:`/absolute path), so the
|
|
|
172
182
|
<!-- dsh-ai-collab:user:end -->
|
|
173
183
|
```
|
|
174
184
|
|
|
175
|
-
- `ai_log` (and `ai_init`/`ai-ensure`) refresh the task list (`TASKS.md`) whenever the workspace has `.ai/tasks-enabled`.
|
|
185
|
+
- `ai_log` (and `ai_init`/`ai-ensure`) refresh the task list (root `TASKS.html`, markdown archive `.ai/TASKS.md`) whenever the workspace has `.ai/tasks-enabled`.
|
|
176
186
|
- Re-render replaces **only** the generated zone. The user zone (and anything outside both zones) is preserved **byte-for-byte**; `placeholders.json`, `log.jsonl` and `status.json` are never touched.
|
|
177
187
|
- A file **without** the zone markers is treated as project-owned and is never rewritten; the rendered reference goes to `.ai/AGENTS.generated.md`. This includes legacy single-line-marker files, which are frozen.
|
|
178
188
|
- Explicit migration only:
|
|
@@ -216,12 +226,12 @@ The plugin is mounted from outside `app.asar` (a `link:`/absolute path), so the
|
|
|
216
226
|
## Concurrency and file protection
|
|
217
227
|
|
|
218
228
|
- `lib/atomic.js` writes to a same-directory temp file, `fsync`s and renames (retries on
|
|
219
|
-
`EPERM`/`EBUSY`/`EACCES`), so a reader never sees a half-written `status.json`, `TASKS.
|
|
229
|
+
`EPERM`/`EBUSY`/`EACCES`), so a reader never sees a half-written `status.json`, `TASKS.html` or
|
|
220
230
|
`SESSION_BOOT.md`.
|
|
221
231
|
- `lib/lock.js` is a cross-process lock (`openSync(path, 'wx')`), stale after 30 s, 15 s timeout.
|
|
222
232
|
`ai_log` holds `.ai/.log.lock` across the append **and** the status update; `status.json`
|
|
223
233
|
carries a `rev` that increments on each write.
|
|
224
|
-
- `TASKS.md` refresh holds `.ai/.tasks.lock`; `SESSION_BOOT.md` is written atomically.
|
|
234
|
+
- `TASKS.html` / `.ai/TASKS.md` refresh holds `.ai/.tasks.lock`; `SESSION_BOOT.md` is written atomically.
|
|
225
235
|
- `template/.ai/llm.ps1` mirrors this in PowerShell: `Write-TextAtomic` (temp + `File.Replace`),
|
|
226
236
|
`Enter-ProjectLock` / `Exit-ProjectLock` around `add`, `tasks`, `board` and `archive`; `archive`
|
|
227
237
|
aborts if the log grew while it was copying.
|
|
@@ -253,7 +263,7 @@ get the mandatory "step 0" behaviour in every session:
|
|
|
253
263
|
|
|
254
264
|
```powershell
|
|
255
265
|
npm run check # node --check index.js + lib/*.js
|
|
256
|
-
npm test #
|
|
266
|
+
npm test # 39 tests: tool contract, config, task rendering, AGENTS.md preservation, atomic/lock/discipline/handoff/plan
|
|
257
267
|
npm pack --dry-run
|
|
258
268
|
```
|
|
259
269
|
|
package/docs/DETAIL.md
CHANGED
|
@@ -14,31 +14,43 @@ files that any tool can read: `AGENTS.md` for facts, `.ai/log.jsonl` for history
|
|
|
14
14
|
|
|
15
15
|
| Capability | Detail |
|
|
16
16
|
|---|---|
|
|
17
|
-
|
|
|
17
|
+
| Eight tools | `ai_status`, `ai_log`, `ai_check`, `ai_board`, `ai_init`, `ai_discipline`, `ai_handoff`, `ai_plan` |
|
|
18
18
|
| Auto-adoption | On `session/created` (`autoInit: true`) run `ai-ensure` in non-temp directories: scaffold when missing, upgrade when the template changed, refresh the board when stale |
|
|
19
19
|
| Zoned `AGENTS.md` | A `generated` zone (routing, permissions, commands, §8 discipline list) replaced on upgrade, and a `user` zone (project facts, sampling data, analysis methods, decisions) preserved byte-for-byte |
|
|
20
20
|
| Disciplines | Global modules in `$DSH_HOME/disciplines/` (migrate/toggle via `ai_discipline`) and project rules in `.ai/disciplines/`; enabled project rules are inlined into §8, disabled ones only listed |
|
|
21
21
|
| Handoff | `.ai/SESSION_BOOT.md` carries status, recent records, disciplines and an inheritance prompt; regenerated by `ai_log` / `ai_init` / `autoInit` |
|
|
22
22
|
| Protected files | An `AGENTS.md` without zone markers is treated as project-owned and never rewritten; the rendered reference goes to `.ai/AGENTS.generated.md`; rewrites are atomic and backed up |
|
|
23
|
-
| Task list |
|
|
24
|
-
| Cross-project board | When a sibling `.ai/board.md` exists, the board is refreshed after a record is written |
|
|
23
|
+
| Task list | `.ai/log.jsonl` drives a three-section `.ai/TASKS.md` (plan → checklist → risks → log) and a self-contained root `TASKS.html` dashboard; `refreshTasks` auto-creates `.ai/tasks-enabled` on first write |
|
|
24
|
+
| Cross-project board | When a sibling `.ai/board.md` exists, the board is refreshed after a record is written; `dashboard.html` scans all projects with red-highlighted blocker rows |
|
|
25
|
+
| Plan & risk tracking | `.ai/plan.json` stores goals, checklists and risks; active risks merge into `status.json` → `blockers` on every `ai_log`; managed via `ai_plan` (show / set / done) |
|
|
25
26
|
| Concurrency | `lib/lock.js` cross-process lock + `lib/atomic.js` temp/fsync/rename; `status.json` has a `rev`; PowerShell `llm.ps1` mirrors both |
|
|
26
27
|
|
|
27
|
-
## What's new in 0.
|
|
28
|
+
## What's new in 0.7.0
|
|
28
29
|
|
|
29
30
|
| Change | Effect |
|
|
30
31
|
|---|---|
|
|
31
|
-
|
|
|
32
|
-
|
|
|
33
|
-
| `
|
|
34
|
-
|
|
|
35
|
-
|
|
32
|
+
| Root layout policy | Root keeps only `AGENTS.md` + rendered HTML (`TASKS.html`); `.ai/TASKS.md` is the markdown archive, everything else lives under `.ai/docs` / `.ai/scripts` / `.ai/dist` / `.ai/market` |
|
|
33
|
+
| Auto artifact sync | `ai_status`, `ai_log`, `ai_board`, `ai_plan`, `ai_init` and a global `session/event` hook (8 s throttle) regenerate `TASKS.html` / `.ai/PLAN.md` / `..\.ai\dashboard.html` |
|
|
34
|
+
| Resumed sessions covered | `session/created` only fires for new sessions; `session/event` closes the gap so a restart or plugin upgrade repaints the pages |
|
|
35
|
+
| Root `TASKS.md` migration | The next `ai-ensure` / `ai_init` moves an existing root `TASKS.md` into `.ai/` and re-renders |
|
|
36
|
+
|
|
37
|
+
## What's new in 0.6.0
|
|
38
|
+
|
|
39
|
+
| Change | Effect |
|
|
40
|
+
|---|---|
|
|
41
|
+
| `ai_plan` tool | Stores structured plans in `.ai/plan.json`: goals, checklists (with done/undone toggles), risks (severity-badged, each with mitigation and active/resolved). `show` / `set` (upsert any block) / `done` (toggle checklist items) |
|
|
42
|
+
| `.ai/TASKS.md` → three-section + root `TASKS.html` | Plan, checklist and risk blocks precede the reverse-chronological log; a parallel `TASKS.html` renders the same data as a self-contained dashboard page with status badges |
|
|
43
|
+
| Cross-project `dashboard.html` | Scans sibling projects, highlights rows with active blockers in red, adds a sparkline bar from the last 7 record counts |
|
|
44
|
+
| Risk → blocker auto-merge | Every `ai_log` merges active plan risks into `status.json` → `blockers`, so they surface in `ai_status` |
|
|
45
|
+
| `.tasks-enabled` auto-created | `refreshTasks` creates the marker on first write; no manual step needed |
|
|
46
|
+
| `AGENTS.template.md` §6 updated | Lists `plan.json`/`PLAN.md`, `.ai/docs`/`.ai/scripts`/`.ai/dist`, `dashboard.html` and `TASKS.html` |
|
|
47
|
+
| Tests: 39 | 14 new (plan I/O, checklist toggling, risk merging, Markdown & HTML rendering, project scanning, dashboard generation) |
|
|
36
48
|
|
|
37
49
|
## Install
|
|
38
50
|
|
|
39
51
|
- **Plugin Manager (recommended):** Plugins → Add plugin → select this package directory.
|
|
40
52
|
- **CLI:** `dsh plugin --profile <profile> add <package path or npm name>`
|
|
41
|
-
- Restart DSH once; every session in the profile then exposes the
|
|
53
|
+
- Restart DSH once; every session in the profile then exposes the eight tools.
|
|
42
54
|
|
|
43
55
|
## Configuration
|
|
44
56
|
|
|
@@ -56,16 +68,22 @@ Values are normalised and invalid values are reported as warnings in
|
|
|
56
68
|
```
|
|
57
69
|
<project root>
|
|
58
70
|
├─ AGENTS.md generated zone + user zone
|
|
59
|
-
├─ TASKS.
|
|
71
|
+
├─ TASKS.html self-contained dashboard-style task view (auto-regenerated)
|
|
72
|
+
├─ (root policy: only AGENTS.md + HTML pages live at the top level)
|
|
60
73
|
└─ .ai/
|
|
61
74
|
├─ llm.ps1 / llm.cmd status / tail / add / check / board / doctor / tasks
|
|
62
75
|
├─ log.jsonl append-only, UTF-8 without BOM, LF
|
|
63
76
|
├─ status.json current-state snapshot (overwritten, `rev` increments)
|
|
77
|
+
├─ plan.json structured plan: goals, checklists, risks
|
|
78
|
+
├─ PLAN.md rendered plan`n ├─ TASKS.md three-section markdown archive (plan → checklist → risks → log)
|
|
64
79
|
├─ SESSION_BOOT.md cross-session handoff packet
|
|
65
80
|
├─ disciplines/ project discipline registry + rules/
|
|
66
81
|
├─ LOG_FORMAT.md / SECURITY.md / schema/log.schema.json
|
|
67
82
|
├─ changelog/ version-level notes and patches
|
|
68
83
|
├─ entries/ forwarding masters for Claude Code / Gemini CLI
|
|
84
|
+
├─ docs/ project documents (external intro / maintenance notes)
|
|
85
|
+
├─ scripts/ maintenance scripts
|
|
86
|
+
├─ dist/ release artifacts
|
|
69
87
|
└─ _archive/
|
|
70
88
|
```
|
|
71
89
|
|
package/docs/DISCLAIMER.md
CHANGED
|
@@ -5,7 +5,7 @@ including but not limited to merchantability, fitness for a particular purpose,
|
|
|
5
5
|
non-infringement, uninterrupted operation, freedom from errors, or accuracy of data.
|
|
6
6
|
|
|
7
7
|
The bundle writes files inside your workspace (for example `AGENTS.md`, `.ai/` and
|
|
8
|
-
`TASKS.md`) and may run local PowerShell scripts. Before using it on an important
|
|
8
|
+
`TASKS.html`, `.ai/TASKS.md`) and may run local PowerShell scripts. Before using it on an important
|
|
9
9
|
repository:
|
|
10
10
|
|
|
11
11
|
- make a full backup, including the version-control state and uncommitted changes;
|
|
@@ -34,7 +34,7 @@ not exceed the amount you actually paid for this software (it is free, i.e. zero
|
|
|
34
34
|
本软件按“现状(AS IS)”提供,不附带任何明示或默示的担保,包括但不限于:
|
|
35
35
|
适销性、特定用途适用性、不侵权、无中断、无错误、数据准确性。
|
|
36
36
|
|
|
37
|
-
本插件会在工作区内写入或修改文件(如 `AGENTS.md`、`.ai/`、`TASKS.
|
|
37
|
+
本插件会在工作区内写入或修改文件(如 `AGENTS.md`、`.ai/`、`TASKS.html`),并可能调用
|
|
38
38
|
本地 PowerShell 脚本。请在重要仓库中:
|
|
39
39
|
|
|
40
40
|
- 使用前做好完整备份(含版本库与未提交改动);
|
package/docs/MARKET.md
CHANGED
|
@@ -1,9 +1,18 @@
|
|
|
1
1
|
# Market release checklist
|
|
2
2
|
|
|
3
|
-
Published as `dsh-ai-collab@0.
|
|
3
|
+
Published as `dsh-ai-collab@0.7.0`. The remaining steps take it to the
|
|
4
4
|
community plugin market (`dshmarket` / awesome-dsh-plugin) and, optionally, a self-hosted
|
|
5
5
|
format-1 index.
|
|
6
6
|
|
|
7
|
+
## Release log
|
|
8
|
+
|
|
9
|
+
| Version | npm | Git tag | Market entry PR |
|
|
10
|
+
|---|---|---|---|
|
|
11
|
+
| `0.7.0` (2026-11-27) | published | `v0.7.0` | docs/desc-070 — description refresh for clean root layout / auto-rendered HTML views / resumed-session sync (pending) |
|
|
12
|
+
| `0.5.0` (2026-11-23) | published | `v0.5.0` | #18120 — description refresh for disciplines / handoff / safe writes (open) |
|
|
13
|
+
| `0.4.4` (2026-11-20) | published | `v0.4.4` | #17234 — intro-page link in description (merged) |
|
|
14
|
+
| `0.4.3` (2026-11-17) | published | `v0.4.3` | #16419 — first listing (merged) |
|
|
15
|
+
|
|
7
16
|
## 0. Preconditions (already satisfied)
|
|
8
17
|
|
|
9
18
|
| Item | Status |
|
|
@@ -12,8 +21,8 @@ format-1 index.
|
|
|
12
21
|
| No build scripts, no native modules | yes (nothing to compile on install) |
|
|
13
22
|
| Package manifest complete | `engines.dsh`, `os`, `exports` (locale/icon), `files` whitelist |
|
|
14
23
|
| Display metadata | `locale/en.json`, `locale/zh.json`, `icon.svg`, `docs/DETAIL.md` |
|
|
15
|
-
| Tests | `npm test` (
|
|
16
|
-
| npm name `dsh-ai-collab` |
|
|
24
|
+
| Tests | `npm test` (41 cases) |
|
|
25
|
+
| npm name `dsh-ai-collab` | taken by this package |
|
|
17
26
|
| Local-only data | none: paths, hostnames and project names in examples are placeholders |
|
|
18
27
|
|
|
19
28
|
Still missing (needs the maintainer's accounts):
|
|
@@ -28,7 +37,7 @@ Still missing (needs the maintainer's accounts):
|
|
|
28
37
|
cd <package-dir>
|
|
29
38
|
npm run check
|
|
30
39
|
npm test
|
|
31
|
-
npm pack --dry-run # inspect the file list (
|
|
40
|
+
npm pack --dry-run # inspect the file list (39 files)
|
|
32
41
|
npm publish --access public --registry https://registry.npmjs.org
|
|
33
42
|
npm view dsh-ai-collab version
|
|
34
43
|
```
|
package/docs/index.html
CHANGED
|
@@ -484,7 +484,7 @@
|
|
|
484
484
|
<svg class="logo" viewBox="0 0 32 32" aria-hidden="true"><rect width="32" height="32" rx="8" fill="#0d6b5b"/><path d="M9 11h14M9 16h9M9 21h11" stroke="#8fe7d1" stroke-width="2.6" stroke-linecap="round"/></svg>
|
|
485
485
|
<span>dsh-ai-collab</span>
|
|
486
486
|
</a>
|
|
487
|
-
<span class="ver">v0.
|
|
487
|
+
<span class="ver">v0.7.0</span>
|
|
488
488
|
<nav class="top-nav" aria-label="页面导航">
|
|
489
489
|
<a href="#problem">问题</a>
|
|
490
490
|
<a href="#model">机制</a>
|
|
@@ -543,7 +543,7 @@
|
|
|
543
543
|
|
|
544
544
|
<div class="stats-band">
|
|
545
545
|
<div class="stats" role="list">
|
|
546
|
-
<div role="listitem"><div class="stat-value">
|
|
546
|
+
<div role="listitem"><div class="stat-value">8<small>个</small></div><div class="stat-label">原生工具</div></div>
|
|
547
547
|
<div role="listitem"><div class="stat-value">3<small>条</small></div><div class="stat-label">命令开始交接</div></div>
|
|
548
548
|
<div role="listitem"><div class="stat-value">0<small>次</small></div><div class="stat-label">网络请求</div></div>
|
|
549
549
|
<div role="listitem"><div class="stat-value">100<small>%</small></div><div class="stat-label">数据本地留存</div></div>
|
|
@@ -568,7 +568,7 @@
|
|
|
568
568
|
</ol>
|
|
569
569
|
</nav>
|
|
570
570
|
<div class="side-card">
|
|
571
|
-
<div class="sc-row"><span class="pulse" aria-hidden="true"></span>已发布 · 0.
|
|
571
|
+
<div class="sc-row"><span class="pulse" aria-hidden="true"></span>已发布 · 0.7.0</div>
|
|
572
572
|
<p>npm 已上架,社区市场已收录;脚手架当前支持 Windows。</p>
|
|
573
573
|
<button class="print-btn" type="button" id="printBtn" onclick="window.print()">打印 / 保存为 PDF</button>
|
|
574
574
|
</div>
|
|
@@ -646,7 +646,7 @@
|
|
|
646
646
|
<p class="pillar-role">协作层</p>
|
|
647
647
|
</div>
|
|
648
648
|
</div>
|
|
649
|
-
<p>追加式日志、当前状态快照、版本级变更、schema 与归档。所有写入经由 <code>.ai\llm.cmd</code> 或
|
|
649
|
+
<p>追加式日志、当前状态快照、版本级变更、schema 与归档。所有写入经由 <code>.ai\llm.cmd</code> 或 8 个原生工具,编码与格式由脚本保证。</p>
|
|
650
650
|
<ul class="ticks">
|
|
651
651
|
<li>log.jsonl 只追加,不改写</li>
|
|
652
652
|
<li>status.json 覆盖式,10 秒接手</li>
|
|
@@ -677,7 +677,7 @@
|
|
|
677
677
|
<tr><th>工具</th><th>接入方式</th><th>参与方式</th></tr>
|
|
678
678
|
</thead>
|
|
679
679
|
<tbody>
|
|
680
|
-
<tr><td>DSH</td><td>Bundle 安装,
|
|
680
|
+
<tr><td>DSH</td><td>Bundle 安装,8 个原生工具</td><td><code>ai_status</code> / <code>ai_log</code> / <code>ai_check</code> 直接读写</td></tr>
|
|
681
681
|
<tr><td>Claude Code</td><td>用户级 <code>CLAUDE.md</code> 转发,或 <code>entries -Publish</code></td><td>读 <code>AGENTS.md</code>,用 <code>llm.cmd</code> 记录</td></tr>
|
|
682
682
|
<tr><td>Cursor / Copilot</td><td>原生读取 <code>AGENTS.md</code></td><td>继承项目事实与纪律</td></tr>
|
|
683
683
|
<tr><td>Codex / 其他 CLI</td><td>任意 shell 调用 <code>.ai\llm.cmd</code></td><td><code>status</code> / <code>tail</code> / <code>add</code> / <code>check</code></td></tr>
|
|
@@ -695,7 +695,7 @@
|
|
|
695
695
|
<article class="step">
|
|
696
696
|
<div class="step-n"><span>02 收工</span><span>1 条记录</span></div>
|
|
697
697
|
<h3>追加流水</h3>
|
|
698
|
-
<p><code>add</code> 自动生成 id 与时间戳,刷新 <code>status.json</code
|
|
698
|
+
<p><code>add</code> 自动生成 id 与时间戳,刷新 <code>status.json</code>,并在需要时刷新看板、<code>TASKS.html</code> 与 <code>.ai/TASKS.md</code>。</p>
|
|
699
699
|
</article>
|
|
700
700
|
<article class="step">
|
|
701
701
|
<div class="step-n"><span>03 提交前</span><span>强制</span></div>
|
|
@@ -957,7 +957,7 @@ ai_handoff action:inherit
|
|
|
957
957
|
<tbody>
|
|
958
958
|
<tr><td>两个会话同时写日志</td><td><code>.ai/.log.lock</code> 跨进程锁,append 与状态更新在同一临界区</td><td>12 个进程并发写入 → 12 条记录、id 全唯一、<code>rev=12</code></td></tr>
|
|
959
959
|
<tr><td>写到一半被读到</td><td>临时文件 + <code>fsync</code> + rename 原子替换(对占用/权限错误退避重试)</td><td>读者只会看到旧版或新版,没有半截文件</td></tr>
|
|
960
|
-
<tr><td><code>TASKS.md</code> 被并行覆盖</td><td><code>.ai/.tasks.lock</code> 内整份重渲染</td><td>清单始终与日志一致</td></tr>
|
|
960
|
+
<tr><td><code>TASKS.html</code> / <code>.ai/TASKS.md</code> 被并行覆盖</td><td><code>.ai/.tasks.lock</code> 内整份重渲染</td><td>清单始终与日志一致</td></tr>
|
|
961
961
|
<tr><td><code>AGENTS.md</code> 改坏</td><td>原子写 + 写前备份到 <code>.ai/backups/</code>(保留最近 10 份)</td><td>可回滚;<code>-ResetAgents</code> 也有备份</td></tr>
|
|
962
962
|
<tr><td>状态快照丢更新</td><td><code>status.json</code> 增加自增 <code>rev</code>,写入在锁内完成</td><td><code>rev</code> 可作为「有没有丢写」的快速判断</td></tr>
|
|
963
963
|
<tr><td>纪律与实际渲染不一致</td><td><code>ai_check</code> 审计 §8 漂移</td><td>启用未内联 / 停用仍内联 / 注册表损坏都会报错</td></tr>
|
|
@@ -1002,7 +1002,7 @@ dsh plugin --profile <profile> add "<包绝对路径>"</code></pre>
|
|
|
1002
1002
|
autoInit: true</code></pre>
|
|
1003
1003
|
</div>
|
|
1004
1004
|
</div>
|
|
1005
|
-
<p class="note">安装后重启 DSH;profile 内所有会话都会出现
|
|
1005
|
+
<p class="note">安装后重启 DSH;profile 内所有会话都会出现 8 个工具。首次进入某个项目时,先调用 <code>ai_init</code>(或把 <code>autoInit</code> 设为 <code>true</code>)生成 <code>.ai/</code> 与 <code>AGENTS.md</code>,之后按下面的动作循环。若包只进了依赖、未进 <code>dsh.profile.bundles</code>,需要手动补一行。</p>
|
|
1006
1006
|
|
|
1007
1007
|
<div class="code-wrap">
|
|
1008
1008
|
<pre class="code powershell"><code><span class="c"># 开工:同步并读状态(约 10 秒)</span>
|
|
@@ -1016,7 +1016,7 @@ dsh plugin --profile <profile> add "<包绝对路径>"</code></pre>
|
|
|
1016
1016
|
& .ai\llm.cmd check</code></pre>
|
|
1017
1017
|
</div>
|
|
1018
1018
|
|
|
1019
|
-
<div class="tools-chips" aria-label="
|
|
1019
|
+
<div class="tools-chips" aria-label="八个原生工具">
|
|
1020
1020
|
<div class="toolchip"><b>ai_status</b><span>读状态与最近记录</span></div>
|
|
1021
1021
|
<div class="toolchip"><b>ai_log</b><span>追加一条记录</span></div>
|
|
1022
1022
|
<div class="toolchip"><b>ai_check</b><span>校验日志与状态</span></div>
|
|
@@ -1024,6 +1024,7 @@ dsh plugin --profile <profile> add "<包绝对路径>"</code></pre>
|
|
|
1024
1024
|
<div class="toolchip"><b>ai_init</b><span>幂等接入工作区</span></div>
|
|
1025
1025
|
<div class="toolchip"><b>ai_discipline</b><span>纪律清单与开关</span></div>
|
|
1026
1026
|
<div class="toolchip"><b>ai_handoff</b><span>跨会话交接摘要</span></div>
|
|
1027
|
+
<div class="toolchip"><b>ai_plan</b><span>执行计划 / 清单 / 风险</span></div>
|
|
1027
1028
|
</div>
|
|
1028
1029
|
|
|
1029
1030
|
<h3 class="subhead">常用命令</h3>
|
|
@@ -1060,13 +1061,13 @@ dsh plugin --profile <profile> add "<包绝对路径>"</code></pre>
|
|
|
1060
1061
|
<section class="sec" id="status">
|
|
1061
1062
|
<p class="kicker"><span class="bar" aria-hidden="true"></span>09 · 边界与状态</p>
|
|
1062
1063
|
<h2>已发布,边界清晰</h2>
|
|
1063
|
-
<p class="lead">0.
|
|
1064
|
+
<p class="lead">0.7.0 已上 npm 并被社区插件市场收录;项目根只保留 <code>AGENTS.md</code> 与可视化 HTML,任务清单与跨项目仪表盘会自动重新生成(含重启后的恢复会话);脚手架目前仅支持 Windows,只读工具与任务渲染本身与平台无关。</p>
|
|
1064
1065
|
|
|
1065
1066
|
<div class="release">
|
|
1066
1067
|
<div class="rel">
|
|
1067
1068
|
<div class="rel-top"><span>npm</span><span class="badge-ok">已发布</span></div>
|
|
1068
|
-
<b>dsh-ai-collab@0.
|
|
1069
|
-
<span>2026-11-
|
|
1069
|
+
<b>dsh-ai-collab@0.7.0</b>
|
|
1070
|
+
<span>2026-11-27 上架,可直接安装</span>
|
|
1070
1071
|
</div>
|
|
1071
1072
|
<div class="rel">
|
|
1072
1073
|
<div class="rel-top"><span>GitHub</span><span class="badge-ok">已就绪</span></div>
|
|
@@ -1085,23 +1086,27 @@ dsh plugin --profile <profile> add "<包绝对路径>"</code></pre>
|
|
|
1085
1086
|
</div>
|
|
1086
1087
|
</div>
|
|
1087
1088
|
|
|
1088
|
-
<h3 class="subhead">0.
|
|
1089
|
+
<h3 class="subhead">0.7.0 更新摘要</h3>
|
|
1089
1090
|
<div class="rules">
|
|
1090
1091
|
<div class="rule">
|
|
1091
1092
|
<span class="rule-n">新</span>
|
|
1092
|
-
<div><h3
|
|
1093
|
+
<div><h3>项目根更干净</h3><p>根目录只留 <code>AGENTS.md</code> 和可视化 HTML(<code>TASKS.html</code>);markdown 任务清单迁到 <code>.ai/TASKS.md</code>,文档 / 脚本 / 发布产物 / 市场克隆分别收进 <code>.ai/docs</code> <code>.ai/scripts</code> <code>.ai/dist</code> <code>.ai/market</code>。</p></div>
|
|
1093
1094
|
</div>
|
|
1094
1095
|
<div class="rule">
|
|
1095
1096
|
<span class="rule-n">新</span>
|
|
1096
|
-
<div><h3
|
|
1097
|
+
<div><h3>HTML 自动重新生成</h3><p>新增 <code>syncArtifacts()</code>:<code>ai_status</code> / <code>ai_log</code> / <code>ai_board</code> / <code>ai_plan</code> / <code>ai_init</code> 都会刷新 <code>TASKS.html</code>、<code>.ai/PLAN.md</code> 与 <code>..\.ai\dashboard.html</code>;全局 <code>session/event</code> 钩子(每项目 8 秒节流)覆盖 <b>恢复的会话</b>,重启或刚升级插件后不必先写日志再看页面。</p></div>
|
|
1097
1098
|
</div>
|
|
1098
1099
|
<div class="rule">
|
|
1099
|
-
<span class="rule-n"
|
|
1100
|
-
<div><h3
|
|
1100
|
+
<span class="rule-n">改</span>
|
|
1101
|
+
<div><h3>仪表盘链接修正</h3><p><code>dashboard.html</code> 的项目链接改为相对父目录的真实路径(<code>../<project>/TASKS.html</code>)并做 URL 编码,含空格的目录名不再断链。</p></div>
|
|
1102
|
+
</div>
|
|
1103
|
+
<div class="rule">
|
|
1104
|
+
<span class="rule-n">改</span>
|
|
1105
|
+
<div><h3>存量工作区自动迁移</h3><p>下次 <code>ai-ensure</code> / <code>ai_init</code> 会把根目录旧的 <code>TASKS.md</code> 搬进 <code>.ai/</code> 并重渲染;已在 10 个工作区验证,记录数 32/6/38/12/49/2/49/36/18/24,无丢失。</p></div>
|
|
1101
1106
|
</div>
|
|
1102
1107
|
<div class="rule">
|
|
1103
1108
|
<span class="rule-n">测</span>
|
|
1104
|
-
<div><h3>验证</h3><p>
|
|
1109
|
+
<div><h3>验证</h3><p>41 个测试全通过(新增 2 个覆盖自动产物同步与未接入目录短路);<code>npm run check</code> 覆盖 9 个 JS 文件。</p></div>
|
|
1105
1110
|
</div>
|
|
1106
1111
|
</div>
|
|
1107
1112
|
|
|
@@ -1149,7 +1154,7 @@ dsh plugin --profile <profile> add "<包绝对路径>"</code></pre>
|
|
|
1149
1154
|
|
|
1150
1155
|
<footer class="site-footer">
|
|
1151
1156
|
<div class="foot-inner">
|
|
1152
|
-
<div>本文基于项目 <code>AGENTS.md</code>、<code>dsh-ai-collab.md</code>、插件 README 与发布记录整理 · 2026-11-
|
|
1157
|
+
<div>本文基于项目 <code>AGENTS.md</code>、<code>dsh-ai-collab.md</code>、插件 README 与发布记录整理 · 2026-11-27 · 对应版本 0.7.0</div>
|
|
1153
1158
|
<div class="foot-links">
|
|
1154
1159
|
<a href="https://www.npmjs.com/package/dsh-ai-collab" target="_blank" rel="noopener">npm</a>
|
|
1155
1160
|
<a href="https://github.com/ZhuYw3927/dsh-ai-collab" target="_blank" rel="noopener">GitHub</a>
|