@deepseek-ai/dsh-hook-protocol 0.1.2-alpha.5 → 0.1.3-alpha.2
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.i18n.yaml +2 -2
- package/README.md +3 -3
- package/README.zh.md +3 -3
- package/package.json +8 -8
package/README.i18n.yaml
CHANGED
|
@@ -2,5 +2,5 @@
|
|
|
2
2
|
# side as of the last confirmed-consistent state. Both languages carry equal authority;
|
|
3
3
|
# after editing either side, bring the other along and re-record with:
|
|
4
4
|
# pnpm run verify-translation-pairing --write packages/hooks/hook-protocol/README.md
|
|
5
|
-
README.md:
|
|
6
|
-
README.zh.md:
|
|
5
|
+
README.md: 383a75c6943817d8e6b84e62564cbdd5dcd511e5
|
|
6
|
+
README.zh.md: a2c66510f274ba3a89989fd67adc67f0dba2d813
|
package/README.md
CHANGED
|
@@ -75,7 +75,7 @@ Invocation and result records must sit inside an open turn: `UserPromptSubmit`,
|
|
|
75
75
|
- **Never throw into the loop.** Every failure mode — malformed JSON, an invalid regex, an executor rejection — degrades to a contained outcome or a non-match, so a hook can never crash the calling turn.
|
|
76
76
|
- **Log-only, turn-enclosed events.** The `hook/*` records are durable evidence of what ran and what it decided; they are not surface events, and the invariant companion rejects them outside an open turn.
|
|
77
77
|
|
|
78
|
-
The [hook-protocol-lib Agent Note](../../../.agents/notes/
|
|
78
|
+
The [hook-protocol-lib Agent Note](../../../.agents/notes/archived/feature/2026-06-30-hook-protocol-lib.md) records the shared-versus-per-dialect split and the alternatives considered.
|
|
79
79
|
|
|
80
80
|
### Source map
|
|
81
81
|
|
|
@@ -101,8 +101,8 @@ The [hook-protocol-lib Agent Note](../../../.agents/notes/implemented/feature/20
|
|
|
101
101
|
Read these pages when the package-level contract is not enough. They move from the shared rules to the bridges that apply them and the extension points they program against.
|
|
102
102
|
|
|
103
103
|
- [Hooks group map](../README.md) — the sibling group page and its package table.
|
|
104
|
-
- [Hook protocol library Agent Note](../../../.agents/notes/
|
|
105
|
-
- [Hook bridges Agent Note](../../../.agents/notes/
|
|
104
|
+
- [Hook protocol library Agent Note](../../../.agents/notes/archived/feature/2026-06-30-hook-protocol-lib.md) — why the protocol core is shared and what each bridge owns.
|
|
105
|
+
- [Hook bridges Agent Note](../../../.agents/notes/archived/feature/2026-06-30-hook-bridges.md) — how the two bridges use these primitives.
|
|
106
106
|
- [Interception extension-points Agent Note](../../../.agents/notes/implemented/feature/2026-06-30-interception-extension-points.md) — the typed-Decision surface the bridges map onto.
|
|
107
107
|
- [Generated persistence log event catalog](../../../docs/persistence-catalog.md) — the `hook/*` event payloads and per-event JSDoc.
|
|
108
108
|
|
package/README.zh.md
CHANGED
|
@@ -75,7 +75,7 @@ kind: "package-library"
|
|
|
75
75
|
- **绝不向循环抛异常。** 每种失败模式——格式错误的 JSON、无效正则、执行器拒绝——都会降级为受控的结果或不匹配,因此钩子永远不能使调用轮次崩溃。
|
|
76
76
|
- **仅日志、轮次内的事件。** `hook/*` 记录是「运行了什么、决定了什么」的持久证据;它们不是 surface 事件,不变式伴生插件会拒绝未开启轮次外的记录。
|
|
77
77
|
|
|
78
|
-
[hook-protocol-lib Agent Note](../../../.agents/notes/
|
|
78
|
+
[hook-protocol-lib Agent Note](../../../.agents/notes/archived/feature/2026-06-30-hook-protocol-lib.md) 记录了共享与逐方言的划分以及备选方案。
|
|
79
79
|
|
|
80
80
|
### 源码地图
|
|
81
81
|
|
|
@@ -101,8 +101,8 @@ kind: "package-library"
|
|
|
101
101
|
当包级约定不够用时阅读以下页面。它们从共享规则进入应用这些规则的桥接,以及它们所面向的扩展点。
|
|
102
102
|
|
|
103
103
|
- [hooks 组地图](../README.zh.md)——同级组页面及其包表。
|
|
104
|
-
- [hook-protocol-lib Agent Note](../../../.agents/notes/
|
|
105
|
-
- [钩子桥接 Agent Note](../../../.agents/notes/
|
|
104
|
+
- [hook-protocol-lib Agent Note](../../../.agents/notes/archived/feature/2026-06-30-hook-protocol-lib.md)——协议核心为何共享、各桥接负责什么。
|
|
105
|
+
- [钩子桥接 Agent Note](../../../.agents/notes/archived/feature/2026-06-30-hook-bridges.md)——两个桥接如何使用这些原语。
|
|
106
106
|
- [拦截扩展点 Agent Note](../../../.agents/notes/implemented/feature/2026-06-30-interception-extension-points.zh.md)——桥接所映射的类型化 Decision 接口面。
|
|
107
107
|
- [生成的持久化日志事件目录](../../../docs/persistence-catalog.zh.md)——`hook/*` 事件载荷与逐事件 JSDoc。
|
|
108
108
|
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@deepseek-ai/dsh-hook-protocol",
|
|
3
3
|
"description": "Shared Claude Code / Codex hook wire protocol: matcher engine, stdin/exit-code/stdout codec, multi-hook merge, and hook/* session events",
|
|
4
|
-
"version": "0.1.
|
|
4
|
+
"version": "0.1.3-alpha.2",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public"
|
|
7
7
|
},
|
|
@@ -32,15 +32,15 @@
|
|
|
32
32
|
],
|
|
33
33
|
"license": "MIT",
|
|
34
34
|
"peerDependencies": {
|
|
35
|
-
"@deepseek-ai/dsh-shell": "^0.1.
|
|
36
|
-
"@deepseek-ai/dsh-
|
|
37
|
-
"@deepseek-ai/
|
|
38
|
-
"@deepseek-ai/
|
|
35
|
+
"@deepseek-ai/dsh-shell": "^0.1.3-alpha.2",
|
|
36
|
+
"@deepseek-ai/dsh-session": "^0.1.3-alpha.2",
|
|
37
|
+
"@deepseek-ai/dsh-invariants": "^0.1.3-alpha.2",
|
|
38
|
+
"@deepseek-ai/cordis": "^4.0.2"
|
|
39
39
|
},
|
|
40
40
|
"devDependencies": {
|
|
41
|
-
"@deepseek-ai/dsh-shell": "^0.1.
|
|
42
|
-
"@deepseek-ai/dsh-invariants": "^0.1.
|
|
43
|
-
"@deepseek-ai/dsh-session": "^0.1.
|
|
41
|
+
"@deepseek-ai/dsh-shell": "^0.1.3-alpha.2",
|
|
42
|
+
"@deepseek-ai/dsh-invariants": "^0.1.3-alpha.2",
|
|
43
|
+
"@deepseek-ai/dsh-session": "^0.1.3-alpha.2",
|
|
44
44
|
"@deepseek-ai/cordis": "^4.0.2"
|
|
45
45
|
}
|
|
46
46
|
}
|