@nomadop/session-watcher-dsh 0.10.2 → 0.11.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/README.en.md +66 -0
- package/README.md +60 -3
- package/assets/dock-popover.png +0 -0
- package/assets/handoff-loop.gif +0 -0
- package/assets/lineage.png +0 -0
- package/assets/model.png +0 -0
- package/assets/sw-meter-tab.png +0 -0
- package/dist/client.js +6089 -1861
- package/dist/index.js +12800 -755
- package/dist/pi-ai-index.js +1565 -0
- package/dist/skills/sw-handoff/NOTES.md +4 -4
- package/dist/skills/sw-handoff/SUMMARY.md +5 -3
- package/package.json +43 -3
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# Turn Notes
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
Write continuity notes that help the next session find the turns it needs to continue the same line of work. Reading and filling the two files is the `protocol` that `get_turn_skeleton` returns; this file governs content only.
|
|
4
4
|
|
|
5
5
|
## Reading the skeleton
|
|
6
6
|
|
|
@@ -16,7 +16,7 @@ T 26 | A : …所以按 turn 采样,护栏落在 turn 的行数上而不
|
|
|
16
16
|
| NOTE[12]: ____
|
|
17
17
|
```
|
|
18
18
|
|
|
19
|
-
**
|
|
19
|
+
**Use the skeleton to locate each turn in the available conversation.** Its assistant excerpts and tool aggregate locate the turn, not replace its evidence. Write from the messages and results available in context. Record only what they state or show; do not infer missing events or reconstruct internal reasoning.
|
|
20
20
|
|
|
21
21
|
**A turn runs from its `U` head to the row before the next block's `U` head.** A sub-agent's returned result, a tool result, a skill payload — none of these opens a turn; the block's last `A` row is the last thing this turn said, and the note covers everything up to it.
|
|
22
22
|
|
|
@@ -24,13 +24,13 @@ T 26 | A : …所以按 turn 采样,护栏落在 turn 的行数上而不
|
|
|
24
24
|
|
|
25
25
|
The note covers what the **assistant** did in that turn, at the length the turn earns: a one-line span yields a one-clause note. Never restate the user's message: the `U` row already carries it and the user's decision, so open on the assistant's first act.
|
|
26
26
|
|
|
27
|
-
|
|
27
|
+
Per turn the next session decides: pull this turn in full, or move on. The note carries the bearing; the turn carries the evidence.
|
|
28
28
|
|
|
29
29
|
Register: a commit message body — terse, fragments correct. The note is itself the searched text, so compression drops function words and keeps the subject: copy commands, identifiers, numbers, versions and error strings EXACTLY, because they are both the record and the words a later query is made of. A number is copied from a row of the turn, never recounted; a tally you cannot point at, leave out. "fix notes.md append seam — heading glued onto unterminated body line", not "I went ahead and fixed the seam".
|
|
30
30
|
|
|
31
31
|
**Write what no retrieval holds.** Retrieval is by name or by pulling this turn, and the note treats each differently.
|
|
32
32
|
|
|
33
|
-
A **named artifact** the turn left behind — a commit, a plan, a backlog row, an ADR, a step the skill prescribes — is reachable by its name from anywhere, so what it carries the note leaves to it: an identifier the commit message names is the commit's, and the note writes the sha. Write
|
|
33
|
+
A **named artifact** the turn left behind — a commit, a plan, a backlog row, an ADR, a step the skill prescribes — is reachable by its name from anywhere, so what it carries the note leaves to it: an identifier the commit message names is the commit's, and the note writes the sha. Write choices, rejected alternatives and reasons that the available conversation explicitly states and the artifact does not hold.
|
|
34
34
|
"adopt W_amber=0.4; reject 0.6 — overshoot already absorbed by W coordinate"
|
|
35
35
|
"reject per-episode quota — starves small classes; switch to global joint selection"
|
|
36
36
|
|
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
# Handoff Summary Template
|
|
2
2
|
|
|
3
|
+
Write a concise checkpoint so the next session can continue the same line of work after the context reset. Use the state and decisions shown in the available conversation; do not infer missing events or reconstruct internal reasoning.
|
|
4
|
+
|
|
3
5
|
Two principles govern what goes in the summary:
|
|
4
6
|
|
|
5
7
|
1. **State, not history.** The next session needs where we ARE and how to RESUME. Commits record what happened — reference them by hash, don't retell them.
|
|
6
|
-
2. **Underivable only.** If git log, grep, reading the code, or a turn note you just wrote answers it, leave it out. The summary carries intent,
|
|
8
|
+
2. **Underivable only.** If git log, grep, reading the code, or a turn note you just wrote answers it, leave it out. The summary carries user intent, choices and reasons already stated, and conversation-only state.
|
|
7
9
|
|
|
8
10
|
Use these section headers exactly. Write `(none)` for empty sections — never omit or pad.
|
|
9
11
|
|
|
@@ -19,7 +21,7 @@ Use these section headers exactly. Write `(none)` for empty sections — never o
|
|
|
19
21
|
|
|
20
22
|
## Discussion context
|
|
21
23
|
|
|
22
|
-
[User-side and unresolved context — a turn note records what the assistant did, not what it was told.
|
|
24
|
+
[User-side and unresolved context — a turn note records what the assistant did, not what it was told. Write `(none)` if there is no such context.]
|
|
23
25
|
|
|
24
26
|
- **User corrections**: where the user redirected approach, and what they said
|
|
25
27
|
- **Constraints from conversation**: verbal rules not yet in code or CLAUDE.md
|
|
@@ -27,7 +29,7 @@ Use these section headers exactly. Write `(none)` for empty sections — never o
|
|
|
27
29
|
|
|
28
30
|
## Active constraints
|
|
29
31
|
|
|
30
|
-
[Invariants the next session must respect
|
|
32
|
+
[Invariants the next session must respect, including locked interfaces. Include an already-stated reason when it affects how to apply a constraint.]
|
|
31
33
|
|
|
32
34
|
## Blockers / risks
|
|
33
35
|
|
package/package.json
CHANGED
|
@@ -1,15 +1,27 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nomadop/session-watcher-dsh",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.11.0",
|
|
4
4
|
"description": "Session Watcher as a DeepSeek Harness host plugin",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|
|
7
|
+
"author": "Longju Cheng",
|
|
8
|
+
"repository": {
|
|
9
|
+
"type": "git",
|
|
10
|
+
"url": "git+https://github.com/nomadop/session-watcher.git",
|
|
11
|
+
"directory": "dsh"
|
|
12
|
+
},
|
|
13
|
+
"homepage": "https://nomadop.github.io/session-watcher/docs/dsh/",
|
|
14
|
+
"bugs": {
|
|
15
|
+
"url": "https://github.com/nomadop/session-watcher/issues"
|
|
16
|
+
},
|
|
7
17
|
"exports": {
|
|
8
18
|
".": "./dist/index.js",
|
|
9
|
-
"./client": "./dist/client.js"
|
|
19
|
+
"./client": "./dist/client.js",
|
|
20
|
+
"./pi-ai": "./dist/pi-ai-index.js"
|
|
10
21
|
},
|
|
11
22
|
"files": [
|
|
12
23
|
"dist/",
|
|
24
|
+
"assets/",
|
|
13
25
|
"dsh.bundle.patch.yml"
|
|
14
26
|
],
|
|
15
27
|
"publishConfig": {
|
|
@@ -20,8 +32,16 @@
|
|
|
20
32
|
},
|
|
21
33
|
"peerDependencies": {
|
|
22
34
|
"@deepseek-ai/dsh-compaction": ">=0.2.2-rc.1",
|
|
35
|
+
"@deepseek-ai/dsh-credentials": ">=0.2.2-rc.1",
|
|
36
|
+
"@deepseek-ai/dsh-launch-environment": ">=0.2.2-rc.1",
|
|
23
37
|
"@deepseek-ai/dsh-llm": ">=0.2.2-rc.1",
|
|
24
|
-
"@deepseek-ai/dsh-
|
|
38
|
+
"@deepseek-ai/dsh-llm-pi-ai": ">=0.2.2-rc.1",
|
|
39
|
+
"@deepseek-ai/dsh-session": ">=0.2.2-rc.1",
|
|
40
|
+
"@deepseek-ai/dsh-timeout": ">=0.2.2-rc.1",
|
|
41
|
+
"@deepseek-ai/dsh-tools": ">=0.2.2-rc.1",
|
|
42
|
+
"@deepseek-ai/dsh-util-values": ">=0.2.2-rc.1",
|
|
43
|
+
"@deepseek-ai/schemastery": ">=3.19.0",
|
|
44
|
+
"@earendil-works/pi-ai": "^1.3.0"
|
|
25
45
|
},
|
|
26
46
|
"dsh": {
|
|
27
47
|
"client": {
|
|
@@ -30,5 +50,25 @@
|
|
|
30
50
|
"bundle": {
|
|
31
51
|
"patch": "./dsh.bundle.patch.yml"
|
|
32
52
|
}
|
|
53
|
+
},
|
|
54
|
+
"peerDependenciesMeta": {
|
|
55
|
+
"@deepseek-ai/dsh-credentials": {
|
|
56
|
+
"optional": true
|
|
57
|
+
},
|
|
58
|
+
"@deepseek-ai/dsh-launch-environment": {
|
|
59
|
+
"optional": true
|
|
60
|
+
},
|
|
61
|
+
"@deepseek-ai/dsh-llm-pi-ai": {
|
|
62
|
+
"optional": true
|
|
63
|
+
},
|
|
64
|
+
"@deepseek-ai/dsh-timeout": {
|
|
65
|
+
"optional": true
|
|
66
|
+
},
|
|
67
|
+
"@deepseek-ai/dsh-util-values": {
|
|
68
|
+
"optional": true
|
|
69
|
+
},
|
|
70
|
+
"@earendil-works/pi-ai": {
|
|
71
|
+
"optional": true
|
|
72
|
+
}
|
|
33
73
|
}
|
|
34
74
|
}
|