dsh-log-gate 0.1.0 → 0.1.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.
Files changed (3) hide show
  1. package/README.md +5 -5
  2. package/client.js +1 -1
  3. package/package.json +22 -3
package/README.md CHANGED
@@ -1,16 +1,16 @@
1
1
  # dsh-log-gate
2
2
 
3
- 第三方插件,不是 dsh 官方组件,也与 DeepSeek 无关。它只做一件事:按你的规则,让官方会话日志上传跳过某些会话。备份不是它的工作;文末提到的 UndoHaven 是另一个独立工具。
3
+ 第三方插件,不是 dsh 官方组件。它只做一件事:按你的规则,让会话日志上传跳过某些会话。备份不是它的工作;文末提到的 UndoHaven 是另一个独立工具。
4
4
 
5
- Third-party plugin. It is not an official dsh component and is not affiliated with DeepSeek. It asks the official session-log uploader to skip sessions you choose. Backup is a different tool.
5
+ Unofficial third-party plugin compatible with dsh. It asks the session-log uploader to skip sessions you choose. Backup is a different tool.
6
6
 
7
7
  ## 它实际调用的接口
8
8
 
9
- dsh `0.2.2-rc.1` 的 `@deepseek-ai/dsh-session-log-deepseek` 公开了 `ctx.sessionLogDeepSeek.registerExclusion()`。判断函数是同步的,只能看到 `sessionId` 和可选的 `purpose`。返回 `true` 时,这次请求不带 `dsh_session_log`,也不会写下 `delivery-accepted`。
9
+ dsh 0.2.2-rc.1 的会话日志插件(配置 id `session-log-deepseek`)公开了 `ctx.sessionLogDeepSeek.registerExclusion()`。判断函数是同步的,只能看到 `sessionId` 和可选的 `purpose`。返回 `true` 时,这次请求不带 `dsh_session_log`,也不会写下 `delivery-accepted`。
10
10
 
11
11
  本插件在判断时用 `ctx.sessions.get(sessionId)` 读取该实时会话的 `header.cwd`,再按项目名、目录或 glob 匹配。没有改 dsh,也没有拦 HTTP。
12
12
 
13
- The installed package `@deepseek-ai/dsh-session-log-deepseek` exposes `registerExclusion()`. The predicate sees `sessionId` and an optional `purpose` only. This plugin reads `header.cwd` from the live session and matches project name, directory, or glob. It does not patch dsh and does not hook the network.
13
+ The session-log plugin (config id `session-log-deepseek`) exposes `registerExclusion()`. The predicate sees `sessionId` and an optional `purpose` only. This plugin reads `header.cwd` from the live session and matches project name, directory, or glob. It does not patch dsh and does not hook the network.
14
14
 
15
15
  ## 配置
16
16
 
@@ -53,4 +53,4 @@ dsh-log-gate audit --json
53
53
 
54
54
  ## 验证
55
55
 
56
- `npm test` 里的 `packages/log-gate/test/gate.test.js` 会加载本机安装的 `@deepseek-ai/dsh-session-log-deepseek`,注册本插件的排除规则,并确认命中的会话不会进入 `snapshotEvents`(官方 `prepare` 因此不会带上 `dsh_session_log`)。没有向官方 API 发请求。
56
+ `npm test` 里的 `packages/log-gate/test/gate.test.js` 会加载本机安装的会话日志插件,注册本插件的排除规则,并确认命中的会话不会进入 `snapshotEvents`(因此不会带上 `dsh_session_log`)。没有向官方 API 发请求。
package/client.js CHANGED
@@ -18,7 +18,7 @@
18
18
  })
19
19
  return React.createElement('section', null,
20
20
  React.createElement('h2', null, '日志闸门'),
21
- React.createElement('p', null, 'Third-party, not affiliated with DeepSeek. / 第三方插件,与 DeepSeek 无关。'),
21
+ React.createElement('p', null, 'Unofficial third-party plugin compatible with dsh. / 非官方第三方插件,兼容 dsh。'),
22
22
  React.createElement('p', null, status ? status.message : 'Loading / 正在读取'),
23
23
  React.createElement('ul', null, rows.length ? rows : React.createElement('li', null, 'No live sessions / 没有实时会话'))
24
24
  )
package/package.json CHANGED
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "name": "dsh-log-gate",
3
- "version": "0.1.0",
3
+ "version": "0.1.1",
4
4
  "type": "module",
5
- "description": "Unofficial third-party gate for dsh session-log upload. Not affiliated with DeepSeek.",
5
+ "description": "Unofficial third-party gate for dsh session-log upload.",
6
6
  "engines": {
7
7
  "node": ">=24.9.0",
8
8
  "dsh": ">=0.2.1-rc.5 <0.3.0"
@@ -29,5 +29,24 @@
29
29
  "dependencies": {
30
30
  "@deepseek-ai/schemastery": "3.19.0"
31
31
  },
32
- "license": "MIT"
32
+ "keywords": [
33
+ "dsh",
34
+ "dsh-plugin",
35
+ "dsh-bundle",
36
+ "session-log",
37
+ "privacy",
38
+ "telemetry",
39
+ "unofficial"
40
+ ],
41
+ "license": "MIT",
42
+ "homepage": "https://undohaven.com/log-gate",
43
+ "repository": {
44
+ "type": "git",
45
+ "url": "git+https://github.com/Antipas/undohaven.git",
46
+ "directory": "packages/log-gate"
47
+ },
48
+ "bugs": {
49
+ "url": "https://github.com/Antipas/undohaven/issues",
50
+ "email": "support@undohaven.com"
51
+ }
33
52
  }