dsh-log-contract 0.3.0 → 0.3.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/bin/dsh-log-contract.mjs +0 -0
- package/lib/checks.js +2 -2
- package/package.json +6 -8
package/bin/dsh-log-contract.mjs
CHANGED
|
File without changes
|
package/lib/checks.js
CHANGED
|
@@ -432,8 +432,8 @@ export function wireViolations(events) {
|
|
|
432
432
|
} else if (op && isReplaceOp(op)) {
|
|
433
433
|
const s = nodes.indexOf(op.start);
|
|
434
434
|
const e = nodes.indexOf(op.end);
|
|
435
|
-
if (s !== -1 && e !== -1 && s <= e) nodes.splice(s, e - s + 1);
|
|
436
|
-
nodes.push(event.seq);
|
|
435
|
+
if (s !== -1 && e !== -1 && s <= e) nodes.splice(s, e - s + 1, event.seq);
|
|
436
|
+
else nodes.push(event.seq);
|
|
437
437
|
}
|
|
438
438
|
}
|
|
439
439
|
// 展开 wire 流
|
package/package.json
CHANGED
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "dsh-log-contract",
|
|
3
3
|
"description": "日志契约守护 — DSH session log contract guard: offline health check (CLI) + pre-write validation for DeepSeek Harness session logs",
|
|
4
|
-
"version": "0.3.
|
|
5
|
-
"packageManager": "pnpm@11.7.0",
|
|
4
|
+
"version": "0.3.1",
|
|
6
5
|
"type": "module",
|
|
7
6
|
"main": "lib/index.js",
|
|
8
7
|
"bin": {
|
|
@@ -27,11 +26,6 @@
|
|
|
27
26
|
"README.md",
|
|
28
27
|
"LICENSE"
|
|
29
28
|
],
|
|
30
|
-
"scripts": {
|
|
31
|
-
"check": "node scripts/check-syntax.mjs",
|
|
32
|
-
"test": "vitest run",
|
|
33
|
-
"prepublishOnly": "pnpm check && pnpm test"
|
|
34
|
-
},
|
|
35
29
|
"keywords": [
|
|
36
30
|
"dsh",
|
|
37
31
|
"deepseek-harness",
|
|
@@ -64,5 +58,9 @@
|
|
|
64
58
|
"@deepseek-ai/dsh-session": "0.1.0-rc.7",
|
|
65
59
|
"esbuild": "0.28.2",
|
|
66
60
|
"vitest": "4.1.11"
|
|
61
|
+
},
|
|
62
|
+
"scripts": {
|
|
63
|
+
"check": "node scripts/check-syntax.mjs",
|
|
64
|
+
"test": "vitest run"
|
|
67
65
|
}
|
|
68
|
-
}
|
|
66
|
+
}
|