@nomadop/session-watcher-dsh 0.10.2 → 0.11.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.
@@ -1,6 +1,6 @@
1
1
  # Turn Notes
2
2
 
3
- What each note says. Reading and filling the two files is the `protocol` that `get_turn_skeleton` returns; this file governs content only.
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
- **The skeleton anchors your own context; it is not the evidence.** You are the agent that lived these turns, so their full text is already in your context. The block samples the turn: the first assistant message head-cut, the last tail-cut, and an aggregate row whose counts and basenames come from the tool trace and are indexed without you. Locate the turn in your context and write the note from the whole of it.
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
- Reader: a fresh agent that will never see this conversation. Per turn its only decision is: pull this turn in full, or move on. The note carries the bearing; the turn carries the evidence.
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 what the artifact does not hold: what was chosen, what was turned down, and the reason.
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, reasoning, and conversation-only state.
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. Omit entirely if the session was purely mechanical.]
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 — the choice and 1-line WHY. Locked interfaces.]
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
 
@@ -1,5 +1,3 @@
1
1
  - insert:
2
2
  - id: session-watcher
3
3
  name: '@nomadop/session-watcher-dsh'
4
- - id: tool-session-query
5
- name: '@deepseek-ai/dsh-tool-session-query'
package/package.json CHANGED
@@ -1,15 +1,27 @@
1
1
  {
2
2
  "name": "@nomadop/session-watcher-dsh",
3
- "version": "0.10.2",
3
+ "version": "0.11.1",
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,17 @@
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-tools": ">=0.2.2-rc.1"
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-session-query": ">=0.2.2-rc.1",
41
+ "@deepseek-ai/dsh-timeout": ">=0.2.2-rc.1",
42
+ "@deepseek-ai/dsh-tools": ">=0.2.2-rc.1",
43
+ "@deepseek-ai/dsh-util-values": ">=0.2.2-rc.1",
44
+ "@deepseek-ai/schemastery": ">=3.19.0",
45
+ "@earendil-works/pi-ai": "^1.3.0"
25
46
  },
26
47
  "dsh": {
27
48
  "client": {
@@ -30,5 +51,25 @@
30
51
  "bundle": {
31
52
  "patch": "./dsh.bundle.patch.yml"
32
53
  }
54
+ },
55
+ "peerDependenciesMeta": {
56
+ "@deepseek-ai/dsh-credentials": {
57
+ "optional": true
58
+ },
59
+ "@deepseek-ai/dsh-launch-environment": {
60
+ "optional": true
61
+ },
62
+ "@deepseek-ai/dsh-llm-pi-ai": {
63
+ "optional": true
64
+ },
65
+ "@deepseek-ai/dsh-timeout": {
66
+ "optional": true
67
+ },
68
+ "@deepseek-ai/dsh-util-values": {
69
+ "optional": true
70
+ },
71
+ "@earendil-works/pi-ai": {
72
+ "optional": true
73
+ }
33
74
  }
34
75
  }