@magic6/dsh-compaction-policy-engine 0.5.18 → 0.5.19
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 +19 -0
- package/lib/client.js +4 -4
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -4,6 +4,25 @@ All notable changes to this project are documented here. The format follows
|
|
|
4
4
|
[Keep a Changelog](https://keepachangelog.com/en/1.1.0/) and the project uses
|
|
5
5
|
[Semantic Versioning](https://semver.org/).
|
|
6
6
|
|
|
7
|
+
## [0.5.19] - 2026-12-02
|
|
8
|
+
|
|
9
|
+
### Fixed — error and warning text finally turns red (web)
|
|
10
|
+
|
|
11
|
+
The shared config-card kit styled `.ccError`, `.ccInputInvalid`, `.cccEngineErr` and
|
|
12
|
+
`.ccbWarn` with `var(--dsw-alias-label-error)`. That token does not exist in the
|
|
13
|
+
host theme: checked against every token DSH 0.2.2 exposes in both the light and dark
|
|
14
|
+
themes (440 tokens), there is no `label-error` alias. An unknown `var()` makes the
|
|
15
|
+
whole declaration invalid at computed-value time, so every one of these rules fell
|
|
16
|
+
back to the inherited text colour — an engine marked `missing`, a provider override
|
|
17
|
+
that fails validation, and the gap warning all read as ordinary text.
|
|
18
|
+
|
|
19
|
+
All four rules now use `--dsw-alias-state-error-primary`, the alias the host itself
|
|
20
|
+
uses for error text. Verified on an isolated dsh 0.2.2-rc.5 host with the plugin
|
|
21
|
+
linked: in zh-CN light, zh-CN dark and en-US dark the card renders with no console
|
|
22
|
+
errors and no overflow, and `.ccError` / `.ccbWarn` / `.cccEngineErr` compute to
|
|
23
|
+
`rgb(236, 19, 19)` (light) and `rgb(242, 90, 90)` (dark) instead of the body colour.
|
|
24
|
+
Same fix as dsh-llm-resilience 0.6.2.
|
|
25
|
+
|
|
7
26
|
## [0.5.18] - 2026-12-01
|
|
8
27
|
|
|
9
28
|
### Added — every agent preset runs the policy engine, `/compact` included
|
package/lib/client.js
CHANGED
|
@@ -241,12 +241,12 @@ window.__ModuleLoader__.load({
|
|
|
241
241
|
'.ccLabel{color:var(--dsw-alias-label-secondary);flex:1;font-size:13px}',
|
|
242
242
|
'.ccInput{border:.5px solid var(--dsw-alias-border-l4);background:var(--dsw-alias-bg-layer-3);height:32px;font:inherit;color:var(--dsw-alias-label-primary);border-radius:8px;padding:0 10px;width:104px;font-size:13px;font-variant-numeric:tabular-nums}',
|
|
243
243
|
'.ccInput:focus-visible{border-color:var(--dsw-alias-brand-primary);outline:none}',
|
|
244
|
-
'.ccInputInvalid{border-color:var(--dsw-alias-
|
|
244
|
+
'.ccInputInvalid{border-color:var(--dsw-alias-state-error-primary)}',
|
|
245
245
|
'.ccInputWide{width:170px}',
|
|
246
246
|
'.ccReset{font:inherit;color:var(--dsw-alias-label-secondary);cursor:pointer;background:0 0;border:none;padding:0;font-size:12px}',
|
|
247
247
|
'.ccReset:hover:not(:disabled){color:var(--dsw-alias-label-primary)}',
|
|
248
248
|
'.ccReset:disabled{cursor:default;opacity:.5}',
|
|
249
|
-
'.ccError{color:var(--dsw-alias-
|
|
249
|
+
'.ccError{color:var(--dsw-alias-state-error-primary);margin:0;font-size:12px}',
|
|
250
250
|
'.ccReadonly{color:var(--dsw-alias-label-secondary);font-size:13px}',
|
|
251
251
|
'.ccSelect{border:.5px solid var(--dsw-alias-border-l4);background:var(--dsw-alias-bg-layer-3);height:32px;font:inherit;color:var(--dsw-alias-label-primary);border-radius:8px;padding:0 8px;max-width:240px;font-size:13px;cursor:pointer}',
|
|
252
252
|
'.ccSelect:focus-visible{border-color:var(--dsw-alias-brand-primary);outline:none}',
|
|
@@ -305,10 +305,10 @@ window.__ModuleLoader__.load({
|
|
|
305
305
|
'.cccCard .ccRow > .ccInput,.cccCard .ccRow > .ccInputWide,.cccCard .ccRow > .ccSelect{width:220px;max-width:220px;box-sizing:border-box;justify-self:end}',
|
|
306
306
|
'.cccCard .ccRow > .ccReset{justify-self:end;white-space:nowrap}',
|
|
307
307
|
'.cccEngine{display:flex;align-items:center;gap:8px;margin:0;font-size:12px;line-height:18px;color:var(--dsw-alias-label-secondary)}',
|
|
308
|
-
'.cccEngineErr{color:var(--dsw-alias-
|
|
308
|
+
'.cccEngineErr{color:var(--dsw-alias-state-error-primary)}',
|
|
309
309
|
'.ccbHint{color:var(--dsw-alias-label-tertiary);font-size:11px;margin:0}',
|
|
310
310
|
'.ccbSrc{color:var(--dsw-alias-label-tertiary);font-size:11px}',
|
|
311
|
-
'.ccbWarn{color:var(--dsw-alias-
|
|
311
|
+
'.ccbWarn{color:var(--dsw-alias-state-error-primary);margin:8px 0 0;font-size:11px}',
|
|
312
312
|
'.ccbFoot{margin:10px 0 0;color:var(--dsw-alias-label-tertiary);font-size:11px;line-height:1.5}',
|
|
313
313
|
].join('');
|
|
314
314
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@magic6/dsh-compaction-policy-engine",
|
|
3
|
-
"version": "0.5.
|
|
3
|
+
"version": "0.5.19",
|
|
4
4
|
"description": "Layered, live-reloading context compaction policy for DeepSeek Harness: provider-level rules, field-by-field inheritance, ratio/token units and a settings panel on top of the official engine.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "lib/companion.js",
|