dsh-compaction-adaptive 0.1.2 → 0.1.3

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 +23 -0
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -2,6 +2,9 @@
2
2
 
3
3
  Adaptive context compaction for DeepSeek Harness.
4
4
 
5
+ [![npm](https://img.shields.io/npm/v/dsh-compaction-adaptive)](https://www.npmjs.com/package/dsh-compaction-adaptive)
6
+ [![license](https://img.shields.io/badge/license-MIT-blue)](LICENSE)
7
+
5
8
  The plugin is a compaction backend (`ctx.compaction`) built on
6
9
  `@deepseek-ai/dsh-compaction-basic`: it keeps that backend's durable
7
10
  compaction protocol and replaces only its numeric policy. Before every
@@ -133,6 +136,26 @@ the busy lock, overflow recovery, and `/compact` are unchanged. It does not
133
136
  change which surface range is compacted, and it drops reasoning blocks from
134
137
  digested parts.
135
138
 
139
+ ## Releasing
140
+
141
+ Pushing a `v*` tag runs [`.github/workflows/publish.yml`](.github/workflows/publish.yml):
142
+ the checks run first, then `npm stage publish` over OIDC. The version is *staged*,
143
+ not live — a maintainer approves it with 2FA on npmjs.com under **Staged Packages**
144
+ (or `npm stage approve <id>`). An OIDC token cannot approve by design, so the human
145
+ gate is on approval rather than on a stored token.
146
+
147
+ The trusted publisher is registered as stage-only, which makes a direct
148
+ `npm publish` from the workflow fail:
149
+
150
+ ```sh
151
+ npm trust github dsh-compaction-adaptive \
152
+ --file publish.yml --repo ArtomYuan/dsh-compaction-adaptive --allow-stage-publish
153
+ ```
154
+
155
+ The same fields exist in the package's **Settings → Trusted publishing** page
156
+ (owner `ArtomYuan`, repository `dsh-compaction-adaptive`, workflow `publish.yml`,
157
+ environment empty).
158
+
136
159
  ## Files
137
160
 
138
161
  | File | Role |
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dsh-compaction-adaptive",
3
- "version": "0.1.2",
3
+ "version": "0.1.3",
4
4
  "private": false,
5
5
  "description": "Adaptive context compaction for DeepSeek Harness: derives each model's pressure threshold and retained tail from its context window and the session's measured growth.",
6
6
  "icon": "icon.svg",