dsh-context-guardian 0.1.0-alpha.2 → 0.1.0-alpha.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.
- package/CHANGELOG.md +4 -0
- package/docs/dsh-integration.md +4 -2
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,9 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## dsh-context-guardian 0.1.0-alpha.3 - install from npm (2026-09-20)
|
|
4
|
+
|
|
5
|
+
Docs only. `dsh plugin --profile <name> add dsh-context-guardian` now works by name; the DSH guide says where `engine.js` lands after an npm install and how to point the agent-preset row at it. No code change (engine `cg-engine-3`).
|
|
6
|
+
|
|
3
7
|
## dsh-context-guardian 0.1.0-alpha.2 - the DSH compaction engine (2026-09-20)
|
|
4
8
|
|
|
5
9
|
The proxy (`context_guardian.py`) is unchanged. This adds the DSH side.
|
package/docs/dsh-integration.md
CHANGED
|
@@ -18,7 +18,9 @@ DSH mounts compaction inside the AGENT PRESET (the `compaction` group), not in t
|
|
|
18
18
|
|
|
19
19
|
## Install the engine (5 minutes)
|
|
20
20
|
|
|
21
|
-
1. Get the code
|
|
21
|
+
1. Get the code — either way works, and you need the absolute path of `engine.js` for step 3:
|
|
22
|
+
- **From npm (recommended):** `dsh plugin --profile <your-profile> add dsh-context-guardian`. The engine then sits at `<DSH_HOME>/profiles/<your-profile>/node_modules/dsh-context-guardian/engine.js`.
|
|
23
|
+
- **From git:** `git clone https://github.com/LuminariSoftwares/context-guardian` anywhere on disk. No `pnpm install` is needed for the engine; it has no dependencies.
|
|
22
24
|
|
|
23
25
|
2. Make your own agent preset if you do not have one: copy the shipped `standard` preset folder to `<DSH_HOME>/.agent-presets/<your-id>/` (it contains `agent.cordis.yml` and `preset.yml`). `<DSH_HOME>` is `~/.dsh` unless you set the `DSH_HOME` environment variable.
|
|
24
26
|
|
|
@@ -33,7 +35,7 @@ DSH mounts compaction inside the AGENT PRESET (the `compaction` group), not in t
|
|
|
33
35
|
tools: [recall, search]
|
|
34
36
|
```
|
|
35
37
|
In the shipped preset the sibling rows (`- id: tool-result-pruner`) start at 4 spaces; match whatever yours use.
|
|
36
|
-
Note: `name` is a `file:///` URL to YOUR
|
|
38
|
+
Note: `name` is a `file:///` URL to the `engine.js` from step 1 — for an npm install that is `file:///C:/Users/<you>/.dsh/profiles/<your-profile>/node_modules/dsh-context-guardian/engine.js`. It is a URL to YOUR copy (forward slashes, also on Windows), or a path starting with `./` relative to the preset folder if you copy `engine.js`, `cg_recall.js` and `vendor/compiler.js` next to it. `numCtx` must be your model's real context window.
|
|
37
39
|
|
|
38
40
|
4. Start a NEW session with that preset selected. No restart is needed: DSH re-mounts a preset whose file changed when the next session starts.
|
|
39
41
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "dsh-context-guardian",
|
|
3
|
-
"version": "0.1.0-alpha.
|
|
3
|
+
"version": "0.1.0-alpha.3",
|
|
4
4
|
"description": "Context Guardian as a native DeepSeek Harness (DSH) bundle: deterministic, seq-pointer-preserving compaction with model-facing recall and search. Companion to dsh-tool-guardian.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "index.js",
|