@sagmans/dsh-auto-compact 0.2.0 → 0.2.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 (2) hide show
  1. package/README.md +9 -0
  2. package/package.json +3 -3
package/README.md CHANGED
@@ -173,3 +173,12 @@ The workflow stores no npm token: the registry trusts `release.yml` on the `npm-
173
173
  ## License
174
174
 
175
175
  MIT
176
+
177
+ ## Git hooks
178
+
179
+ Checks run in tracked local Git hooks instead of push/PR CI. Run `scripts/setup-hooks` once after cloning; it points this clone's `core.hooksPath` at `.githooks`. Each hook runs the generic checks first (sign-off and commit message format, a gitleaks secret scan, and signed, signed-off commits on push), then this repository's checks in `.githooks/<hook>.d/` in name order. Install [gitleaks](https://github.com/gitleaks/gitleaks) first. Every check must pass before you push; never use `--no-verify`. Pre-push checks test exactly each pushed commit: in place only when it is the clean, unmodified checkout, otherwise in a temporary worktree of that commit.
180
+
181
+ This repository's checks:
182
+
183
+ - `pre-commit`: staged whitespace and conflict-marker check.
184
+ - `pre-push`: `npm audit signatures`, `pnpm run check`, `pnpm audit --audit-level high`.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sagmans/dsh-auto-compact",
3
- "version": "0.2.0",
3
+ "version": "0.2.1",
4
4
  "description": "Absolute token trigger for DeepSeek Harness automatic compaction: condense at a fixed token budget or at the model window ratio, whichever comes first.",
5
5
  "keywords": [
6
6
  "deepseek-harness",
@@ -24,7 +24,7 @@
24
24
  "README.md"
25
25
  ],
26
26
  "engines": {
27
- "node": "^24.0.0"
27
+ "node": ">=22.19.0"
28
28
  },
29
29
  "packageManager": "pnpm@11.21.0",
30
30
  "publishConfig": {
@@ -83,7 +83,7 @@
83
83
  "@deepseek-ai/dsh-session": "0.2.0-rc.2",
84
84
  "@deepseek-ai/dsh-token-meter": "0.2.0-rc.2",
85
85
  "@deepseek-ai/schemastery": "3.18.2",
86
- "@types/node": "22.20.0",
86
+ "@types/node": "26.6.4",
87
87
  "tsx": "4.22.4",
88
88
  "typescript": "6.0.3"
89
89
  }