dsh-session-superagent 0.10.12 → 2.0.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/package.json CHANGED
@@ -1,13 +1,35 @@
1
1
  {
2
2
  "name": "dsh-session-superagent",
3
- "version": "0.10.12",
4
- "workspaces": ["packages/*"],
3
+ "version": "2.0.1",
4
+ "workspaces": [
5
+ "packages/*"
6
+ ],
5
7
  "description": "Session-level superagent for DeepSeek Harness: watch a GitHub repository and wake a session when something needs doing. Credentials never reach the model.",
6
8
  "type": "module",
7
9
  "main": "lib/index.js",
8
10
  "exports": {
9
11
  ".": "./lib/index.js",
10
12
  "./watch": "./lib/watch.js",
13
+ "./rooms/watermark-state": "./lib/rooms/watermark-state.js",
14
+ "./rooms/watermark-decision": "./lib/rooms/watermark-decision.js",
15
+ "./rooms/data-provider": "./lib/rooms/data-provider.js",
16
+ "./rooms/delivery": "./lib/rooms/delivery.js",
17
+ "./rooms/scheduler": "./lib/rooms/scheduler.js",
18
+ "./rooms/projection": "./lib/rooms/projection.js",
19
+ "./rooms/ticket-state": "./lib/rooms/ticket-state.js",
20
+ "./rooms/thread-subscription": "./lib/rooms/thread-subscription.js",
21
+ "./rooms/execution-assignment": "./lib/rooms/execution-assignment.js",
22
+ "./rooms/executor-host": "./lib/rooms/executor-host.js",
23
+ "./rooms/outbox": "./lib/rooms/outbox.js",
24
+ "./rooms/admission-eval": "./lib/rooms/admission-eval.js",
25
+ "./rooms/source-registry": "./lib/rooms/source-registry.js",
26
+ "./rooms/skill-pack": "./lib/rooms/skill-pack.js",
27
+ "./rooms/ticket-projection": "./lib/rooms/ticket-projection.js",
28
+ "./rooms/draft": "./lib/rooms/draft.js",
29
+ "./rooms/prompt-config": "./lib/rooms/prompt-config.js",
30
+ "./rooms/i18n": "./lib/rooms/i18n.js",
31
+ "./rooms/modular-runtime": "./lib/rooms/modular-runtime.js",
32
+ "./rooms/modular-outbox-host": "./lib/rooms/modular-outbox-host.js",
11
33
  "./redact": "./lib/redact.js",
12
34
  "./package.json": "./package.json",
13
35
  "./client": "./client.js",
@@ -17,7 +39,28 @@
17
39
  "files": [
18
40
  "lib/index.js",
19
41
  "lib/watch.js",
42
+ "lib/rooms/watermark-state.js",
43
+ "lib/rooms/watermark-decision.js",
44
+ "lib/rooms/data-provider.js",
45
+ "lib/rooms/delivery.js",
46
+ "lib/rooms/scheduler.js",
47
+ "lib/rooms/projection.js",
48
+ "lib/rooms/ticket-state.js",
49
+ "lib/rooms/thread-subscription.js",
50
+ "lib/rooms/execution-assignment.js",
51
+ "lib/rooms/executor-host.js",
52
+ "lib/rooms/outbox.js",
53
+ "lib/rooms/admission-eval.js",
54
+ "lib/rooms/source-registry.js",
55
+ "lib/rooms/skill-pack.js",
56
+ "lib/rooms/ticket-projection.js",
57
+ "lib/rooms/draft.js",
58
+ "lib/rooms/prompt-config.js",
59
+ "lib/rooms/i18n.js",
60
+ "lib/rooms/modular-runtime.js",
61
+ "lib/rooms/modular-outbox-host.js",
20
62
  "lib/gh-format.js",
63
+ "lib/pr-watch.js",
21
64
  "lib/redact.js",
22
65
  "lib/body.js",
23
66
  "lib/gitee.js",
@@ -37,6 +80,8 @@
37
80
  "bin/check.mjs",
38
81
  "assets/icon-180.png",
39
82
  "assets/icon-app.png",
83
+ "skills/dsh-session-superagent-github/SKILL.md",
84
+ "docs/设计-模块化房间.md",
40
85
  "docs/whats-new-0.9.md",
41
86
  "docs/json-契约.md",
42
87
  "docs/真机验证清单.md",
@@ -46,7 +91,7 @@
46
91
  ],
47
92
  "engines": {
48
93
  "node": ">=22.19.0",
49
- "dsh": ">=0.2.1-rc.5 <0.2.2-0 || >=0.2.2-rc.1 <0.3.0-0"
94
+ "dsh": ">=0.2.2-rc.1 <0.3.0-0"
50
95
  },
51
96
  "scripts": {
52
97
  "test": "node scripts/test.mjs",
@@ -0,0 +1,14 @@
1
+ ---
2
+ name: dsh-session-superagent-github
3
+ description: Read and handle GitHub issues, pull requests, reviews, and watcher state with the session superagent tools.
4
+ ---
5
+
6
+ Use `repo_here` to identify the repository of the current checkout when it is not already explicit. Use `watch_status` to inspect existing watchers before creating or changing one. When a user asks why an item did not wake the session, use `watch_trace` with the repository and issue or pull-request number instead of guessing from its current labels.
7
+
8
+ Use `github` for GitHub REST reads. Start from the original issue or pull request, then read its timeline as needed: `repos/OWNER/REPO/issues/NUMBER` for the body, `repos/OWNER/REPO/issues/NUMBER/comments` for issue and pull-request conversation comments, `repos/OWNER/REPO/pulls/NUMBER/comments` for review comments, `repos/OWNER/REPO/pulls/NUMBER/reviews` for reviews, and `repos/OWNER/REPO/commits/SHA/check-runs` for CI. Follow pagination until the relevant context is complete; do not treat a truncated first page as the whole discussion. Preserve comment IDs, review-thread root IDs, paths, lines, and URLs when reporting evidence. Reads do not acknowledge an item or advance a watermark.
9
+
10
+ For a review comment URL ending in `#discussion_rID`, identify the root comment of that review thread before answering. Reply through `github` with method `POST`, path `repos/OWNER/REPO/pulls/NUMBER/comments/ROOT_ID/replies`, a JSON `body` containing the reply text, and `confirm: true`. Do not use the issue-comment endpoint for a review-thread reply. Resolve a thread only after its concern is actually addressed, using the GitHub GraphQL `resolveReviewThread` mutation through `github`; a resolution is not a substitute for an explanatory reply.
11
+
12
+ Use `watch_ack` only after an issue or pull request is handled. It applies the acknowledgement label and advances the local issue-watch watermark; its `number` is written without `#`. A `note` records the disposition, while `comment: true` also posts that note and therefore requires non-empty note text. For pull-request comment watches, `watch_pr_ack` advances only the local comment watermark; it neither posts a reply nor resolves a review thread. Never use either acknowledgement tool as a substitute for the requested implementation, verification, or source-thread response.
13
+
14
+ All writes through `github` require `confirm: true`. Before writing, report the intended target and content, then read the result back when the operation matters. Keep credentials inside the plugin and do not place tokens in paths, bodies, notes, comments, or output.