dsh-context-compression-improved 0.5.6 → 0.5.7

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 (162) hide show
  1. package/.gitattributes +2 -2
  2. package/.githooks/pre-push +37 -37
  3. package/.github/workflows/ci.yml +39 -39
  4. package/CHANGELOG.ja.md +169 -169
  5. package/CHANGELOG.ko.md +167 -167
  6. package/CHANGELOG.md +314 -304
  7. package/CHANGELOG.zh.md +152 -152
  8. package/CONTRIBUTING.md +22 -22
  9. package/LICENSE +21 -21
  10. package/README.ja.md +85 -85
  11. package/README.ko.md +85 -85
  12. package/README.md +94 -94
  13. package/README.zh.md +85 -85
  14. package/SECURITY.md +18 -18
  15. package/THIRD_PARTY_NOTICES.md +14 -14
  16. package/docs/compat-0.1.5-report.md +77 -77
  17. package/docs/installation.ja.md +78 -78
  18. package/docs/installation.ko.md +78 -78
  19. package/docs/installation.md +103 -103
  20. package/docs/installation.zh.md +100 -100
  21. package/docs/repair-log.md +657 -657
  22. package/eslint.config.js +30 -30
  23. package/package.json +164 -164
  24. package/packages/selector/LICENSE +21 -21
  25. package/packages/selector/README.md +26 -26
  26. package/packages/selector/README.zh.md +24 -24
  27. package/packages/selector/THIRD_PARTY_NOTICES.md +32 -32
  28. package/packages/selector/cordis.patch.yml +27 -27
  29. package/packages/selector/docs/history-tool-call-working-set-spec.md +112 -112
  30. package/packages/selector/docs/native-tool-result-selector-spec.md +34 -34
  31. package/packages/selector/docs/subagent-cache-reuse-spec.md +46 -46
  32. package/packages/selector/dsh.plugin.json +16 -16
  33. package/packages/selector/lib/client.js +733 -0
  34. package/packages/selector/lib/style.css +46 -46
  35. package/packages/selector/package.json +114 -114
  36. package/packages/selector/screenshots.json +3 -3
  37. package/packages/selector/src/client/CompressionProfileControls.tsx +226 -226
  38. package/packages/selector/src/client/CompressionProfileSelector.module.css +170 -170
  39. package/packages/selector/src/client/CompressionProfileSelector.tsx +83 -83
  40. package/packages/selector/src/client/CustomPolicyEditor.tsx +216 -216
  41. package/packages/selector/src/client/EstimatorControls.tsx +277 -277
  42. package/packages/selector/src/client/decode.ts +49 -49
  43. package/packages/selector/src/client/index.ts +178 -149
  44. package/packages/selector/src/client/locales/de.ts +98 -0
  45. package/packages/selector/src/client/locales/es.ts +98 -0
  46. package/packages/selector/src/client/locales/fr.ts +98 -0
  47. package/packages/selector/src/client/locales/it.ts +98 -0
  48. package/packages/selector/src/client/locales/ja.ts +98 -0
  49. package/packages/selector/src/client/locales/ko.ts +98 -0
  50. package/packages/selector/src/client/locales/ru.ts +98 -0
  51. package/packages/selector/src/client/locales.ts +196 -196
  52. package/packages/selector/src/client/preset-options.ts +88 -88
  53. package/packages/selector/src/client/settings-section.tsx +124 -124
  54. package/packages/selector/src/css-modules.d.ts +6 -6
  55. package/packages/selector/src/deepseek-v4-tokenizer.ts +205 -205
  56. package/packages/selector/src/estimator-catalog.ts +104 -104
  57. package/packages/selector/src/index.ts +463 -463
  58. package/packages/selector/src/invariant.ts +113 -113
  59. package/packages/selector/src/preset-overlay.ts +626 -626
  60. package/packages/selector/src/profiles.ts +394 -394
  61. package/packages/selector/src/pruner/content.ts +201 -201
  62. package/packages/selector/src/pruner/session.ts +94 -94
  63. package/packages/selector/src/pruner/state.ts +50 -50
  64. package/packages/selector/src/pruner/tuning.ts +23 -23
  65. package/packages/selector/src/pruner/types.ts +78 -78
  66. package/packages/selector/src/pruner.ts +2402 -2402
  67. package/packages/selector/src/runtime/adaptive-cost.ts +205 -205
  68. package/packages/selector/src/runtime/audit.ts +286 -286
  69. package/packages/selector/src/runtime/config.ts +706 -706
  70. package/packages/selector/src/runtime/custom-policy.ts +278 -278
  71. package/packages/selector/src/runtime/deepseek-official-pricing.ts +298 -298
  72. package/packages/selector/src/runtime/deepseek-v4-vision-tokens.ts +254 -254
  73. package/packages/selector/src/runtime/measurement.ts +436 -436
  74. package/packages/selector/src/runtime/reducers.ts +1674 -1674
  75. package/packages/selector/src/runtime/retrieve.ts +457 -457
  76. package/packages/selector/src/runtime/session-events.ts +30 -30
  77. package/packages/selector/src/runtime/tail-trim.ts +166 -166
  78. package/packages/selector/src/runtime/token-count.ts +72 -72
  79. package/packages/selector/src/runtime/tokenpilot/advisor-prompt.ts +188 -188
  80. package/packages/selector/src/runtime/tokenpilot/advisor-state.ts +149 -149
  81. package/packages/selector/src/runtime/tokenpilot/advisor.ts +419 -419
  82. package/packages/selector/src/runtime/tokenpilot/benefit.ts +200 -200
  83. package/packages/selector/src/runtime/tokenpilot/dedup.ts +81 -81
  84. package/packages/selector/src/runtime/tokenpilot/estimator.ts +151 -151
  85. package/packages/selector/src/runtime/tokenpilot/locator.ts +128 -128
  86. package/packages/selector/src/runtime/tokenpilot/read-state.ts +98 -98
  87. package/packages/selector/src/runtime/tokenpilot/sidechannel.ts +303 -303
  88. package/packages/selector/src/runtime/toolclass.ts +103 -103
  89. package/packages/selector/src/runtime/types.ts +346 -346
  90. package/packages/selector/src/runtime/value.ts +48 -48
  91. package/packages/selector/tests/advisor-report.host.spec.ts +223 -223
  92. package/packages/selector/tests/auto-compact.client.spec.tsx +213 -213
  93. package/packages/selector/tests/built/client-artifact.spec.ts +59 -59
  94. package/packages/selector/tests/cache-prefix-audit.spec.ts +123 -123
  95. package/packages/selector/tests/code-skeleton.client.spec.ts +90 -90
  96. package/packages/selector/tests/custom-contract.client.spec.ts +204 -204
  97. package/packages/selector/tests/estimator-catalog.spec.ts +70 -70
  98. package/packages/selector/tests/estimator-channel.client.spec.tsx +252 -252
  99. package/packages/selector/tests/estimator-route-registration.host.spec.ts +188 -188
  100. package/packages/selector/tests/host-preset-overlay.host.spec.ts +206 -206
  101. package/packages/selector/tests/preset-options-write.client.spec.ts +206 -206
  102. package/packages/selector/tests/preset-overlay-loader.e2e.host.spec.ts +201 -201
  103. package/packages/selector/tests/preset-overlay.host.spec.ts +246 -246
  104. package/packages/selector/tests/profiles.client.spec.tsx +434 -434
  105. package/packages/selector/tests/public/package-contract.client.spec.ts +78 -78
  106. package/packages/selector/tests/runtime/adaptive-cost.spec.ts +167 -167
  107. package/packages/selector/tests/runtime/advice-never-withholds.host.spec.ts +232 -232
  108. package/packages/selector/tests/runtime/advisor-invariant.spec.ts +272 -272
  109. package/packages/selector/tests/runtime/advisor.spec.ts +226 -226
  110. package/packages/selector/tests/runtime/audit.spec.ts +274 -274
  111. package/packages/selector/tests/runtime/auto-compact-config.spec.ts +523 -523
  112. package/packages/selector/tests/runtime/char-basis.spec.ts +30 -30
  113. package/packages/selector/tests/runtime/code-skeleton.spec.ts +152 -152
  114. package/packages/selector/tests/runtime/deepseek-official-pricing.spec.ts +186 -186
  115. package/packages/selector/tests/runtime/deepseek-v4-tokenizer.spec.ts +122 -122
  116. package/packages/selector/tests/runtime/deepseek-v4-vision-tokens.spec.ts +122 -122
  117. package/packages/selector/tests/runtime/deprecated-preset-options.spec.ts +96 -96
  118. package/packages/selector/tests/runtime/fixtures/profile-baseline.json +273 -273
  119. package/packages/selector/tests/runtime/fixtures/tokenizer-golden.json +106 -106
  120. package/packages/selector/tests/runtime/fixtures/vision-golden.json +459 -459
  121. package/packages/selector/tests/runtime/frequency-longstrings.spec.ts +74 -74
  122. package/packages/selector/tests/runtime/html-reducer.spec.ts +212 -212
  123. package/packages/selector/tests/runtime/line-mapping.spec.ts +153 -153
  124. package/packages/selector/tests/runtime/prose-reducers.spec.ts +133 -133
  125. package/packages/selector/tests/runtime/public/public-runtime.spec.ts +2724 -2724
  126. package/packages/selector/tests/runtime/read-input-cap.spec.ts +33 -33
  127. package/packages/selector/tests/runtime/search-reducer.spec.ts +110 -110
  128. package/packages/selector/tests/runtime/session-events.spec.ts +27 -27
  129. package/packages/selector/tests/runtime/sidechannel.spec.ts +241 -241
  130. package/packages/selector/tests/runtime/toc-and-bundled.spec.ts +159 -159
  131. package/packages/selector/tests/runtime/tokenizer-golden.spec.ts +53 -53
  132. package/packages/selector/tests/runtime/tokenpilot/benefit.spec.ts +217 -217
  133. package/packages/selector/tests/runtime/tokenpilot/dedup.spec.ts +52 -52
  134. package/packages/selector/tests/runtime/tokenpilot/estimator.spec.ts +79 -79
  135. package/packages/selector/tests/runtime/tokenpilot/locator.spec.ts +76 -76
  136. package/packages/selector/tests/runtime/tokenpilot/profile-baseline.spec.ts +116 -116
  137. package/packages/selector/tests/runtime/tokenpilot/read-state.spec.ts +82 -82
  138. package/packages/selector/tests/runtime/toolclass.spec.ts +156 -156
  139. package/packages/selector/tests/runtime/value.spec.ts +23 -23
  140. package/packages/selector/tests/settings-seat.client.spec.ts +118 -118
  141. package/packages/selector/tests/standing-generation.host.spec.ts +697 -697
  142. package/packages/selector/tests/subagent-cache-reuse.host.spec.ts +253 -253
  143. package/packages/selector/tests/support/cache-prefix-audit.ts +105 -105
  144. package/packages/selector/tests/support/mock-adapter.ts +37 -37
  145. package/packages/selector/tests/support/ui-primitives.tsx +34 -34
  146. package/packages/selector/tsconfig.json +11 -11
  147. package/packages/selector/tsdown.client.config.ts +102 -102
  148. package/packages/selector/tsdown.config.ts +20 -20
  149. package/pnpm-workspace.yaml +66 -66
  150. package/scripts/capture-profile-baseline.mjs +42 -42
  151. package/scripts/generate-tokenizer-fixtures.py +81 -81
  152. package/scripts/generate-vision-fixtures.py +208 -208
  153. package/scripts/packed-components-smoke.mjs +732 -732
  154. package/scripts/packed-install-e2e.mjs +1273 -1273
  155. package/scripts/toolclass-corpus-replay.mjs +281 -281
  156. package/scripts/verify-release.mjs +317 -317
  157. package/tests/TEST_INVENTORY.md +41 -41
  158. package/tsconfig.base.json +18 -18
  159. package/tsconfig.json +7 -7
  160. package/tsconfig.tests.json +15 -15
  161. package/vitest.built.config.ts +9 -9
  162. package/vitest.config.ts +43 -43
@@ -1,4 +1,4 @@
1
- .WcpPCW_settingsSection {
1
+ .xdtbuW_settingsSection {
2
2
  max-width: 720px;
3
3
  color: var(--dsw-alias-label-primary);
4
4
  flex-direction: column;
@@ -6,7 +6,7 @@
6
6
  display: flex;
7
7
  }
8
8
 
9
- .WcpPCW_settingsTitle {
9
+ .xdtbuW_settingsTitle {
10
10
  color: var(--dsw-alias-label-primary);
11
11
  margin: 0;
12
12
  font-size: 16px;
@@ -14,24 +14,24 @@
14
14
  line-height: 24px;
15
15
  }
16
16
 
17
- .WcpPCW_settingsDescription {
17
+ .xdtbuW_settingsDescription {
18
18
  color: var(--dsw-alias-label-tertiary);
19
19
  margin: 0;
20
20
  font-size: 14px;
21
21
  line-height: 22px;
22
22
  }
23
23
 
24
- .WcpPCW_root {
24
+ .xdtbuW_root {
25
25
  width: 100%;
26
26
  }
27
27
 
28
- .WcpPCW_profileGrid {
28
+ .xdtbuW_profileGrid {
29
29
  grid-template-columns: repeat(2, minmax(0, 1fr));
30
30
  gap: 10px;
31
31
  display: grid;
32
32
  }
33
33
 
34
- .WcpPCW_profileCard {
34
+ .xdtbuW_profileCard {
35
35
  border: 1px solid var(--dsw-alias-border-l2);
36
36
  min-height: 112px;
37
37
  color: var(--dsw-alias-label-primary);
@@ -45,41 +45,41 @@
45
45
  display: flex;
46
46
  }
47
47
 
48
- .WcpPCW_profileCard:hover:not(:disabled) {
48
+ .xdtbuW_profileCard:hover:not(:disabled) {
49
49
  background: var(--dsw-alias-interactive-bg-hover);
50
50
  }
51
51
 
52
- .WcpPCW_profileCard[aria-pressed="true"] {
52
+ .xdtbuW_profileCard[aria-pressed="true"] {
53
53
  border-color: var(--dsw-alias-label-primary);
54
54
  }
55
55
 
56
- .WcpPCW_profileCard:active:not(:disabled) {
56
+ .xdtbuW_profileCard:active:not(:disabled) {
57
57
  transform: scale(.99);
58
58
  }
59
59
 
60
- .WcpPCW_profileCard:disabled {
60
+ .xdtbuW_profileCard:disabled {
61
61
  cursor: default;
62
62
  opacity: .6;
63
63
  }
64
64
 
65
- .WcpPCW_profileCard:focus-visible {
65
+ .xdtbuW_profileCard:focus-visible {
66
66
  outline-offset: 2px;
67
67
  outline: 2px solid;
68
68
  }
69
69
 
70
- .WcpPCW_profileCardTop {
70
+ .xdtbuW_profileCardTop {
71
71
  align-items: center;
72
72
  gap: 8px;
73
73
  display: flex;
74
74
  }
75
75
 
76
- .WcpPCW_profileCardTitle {
76
+ .xdtbuW_profileCardTitle {
77
77
  font-size: 14px;
78
78
  font-weight: 500;
79
79
  line-height: 20px;
80
80
  }
81
81
 
82
- .WcpPCW_profileCurrent {
82
+ .xdtbuW_profileCurrent {
83
83
  background: var(--dsw-alias-label-primary);
84
84
  color: var(--dsw-alias-bg-base);
85
85
  border-radius: 999px;
@@ -88,13 +88,13 @@
88
88
  line-height: 14px;
89
89
  }
90
90
 
91
- .WcpPCW_profileCardDetail {
91
+ .xdtbuW_profileCardDetail {
92
92
  color: var(--dsw-alias-label-secondary);
93
93
  font-size: 12px;
94
94
  line-height: 18px;
95
95
  }
96
96
 
97
- .WcpPCW_button {
97
+ .xdtbuW_button {
98
98
  border: 1px solid var(--dsw-alias-border-l2);
99
99
  width: 100%;
100
100
  min-height: 34px;
@@ -109,27 +109,27 @@
109
109
  display: flex;
110
110
  }
111
111
 
112
- .WcpPCW_button:hover {
112
+ .xdtbuW_button:hover {
113
113
  background: var(--dsw-alias-interactive-bg-hover);
114
114
  }
115
115
 
116
- .WcpPCW_button:disabled {
116
+ .xdtbuW_button:disabled {
117
117
  cursor: default;
118
118
  opacity: .6;
119
119
  }
120
120
 
121
- .WcpPCW_copy {
121
+ .xdtbuW_copy {
122
122
  flex: 1;
123
123
  min-width: 0;
124
124
  }
125
125
 
126
- .WcpPCW_label {
126
+ .xdtbuW_label {
127
127
  color: var(--dsw-alias-label-tertiary);
128
128
  font-size: 11px;
129
129
  line-height: 14px;
130
130
  }
131
131
 
132
- .WcpPCW_value {
132
+ .xdtbuW_value {
133
133
  text-overflow: ellipsis;
134
134
  white-space: nowrap;
135
135
  font-size: 13px;
@@ -137,24 +137,24 @@
137
137
  overflow: hidden;
138
138
  }
139
139
 
140
- .WcpPCW_chevron {
140
+ .xdtbuW_chevron {
141
141
  color: var(--dsw-alias-label-secondary);
142
142
  flex: none;
143
143
  }
144
144
 
145
- .WcpPCW_menuCopy {
145
+ .xdtbuW_menuCopy {
146
146
  flex-direction: column;
147
147
  gap: 2px;
148
148
  min-width: 220px;
149
149
  display: flex;
150
150
  }
151
151
 
152
- .WcpPCW_menuTitle {
152
+ .xdtbuW_menuTitle {
153
153
  font-size: 13px;
154
154
  line-height: 17px;
155
155
  }
156
156
 
157
- .WcpPCW_menuDetail {
157
+ .xdtbuW_menuDetail {
158
158
  white-space: normal;
159
159
  max-width: 290px;
160
160
  color: var(--dsw-alias-label-tertiary);
@@ -162,61 +162,61 @@
162
162
  line-height: 15px;
163
163
  }
164
164
 
165
- .WcpPCW_error {
165
+ .xdtbuW_error {
166
166
  color: var(--dsw-alias-state-error-primary);
167
167
  padding: 4px 8px 0;
168
168
  font-size: 11px;
169
169
  line-height: 15px;
170
170
  }
171
171
 
172
- .WcpPCW_unavailable {
172
+ .xdtbuW_unavailable {
173
173
  color: var(--dsw-alias-label-tertiary);
174
174
  padding: 4px 8px 0;
175
175
  font-size: 11px;
176
176
  line-height: 15px;
177
177
  }
178
178
 
179
- .WcpPCW_settingsHint {
179
+ .xdtbuW_settingsHint {
180
180
  color: var(--dsw-alias-label-secondary);
181
181
  padding: 4px 8px 0;
182
182
  font-size: 11px;
183
183
  line-height: 15px;
184
184
  }
185
185
 
186
- .WcpPCW_pricing {
186
+ .xdtbuW_pricing {
187
187
  color: var(--dsw-alias-label-tertiary);
188
188
  padding: 4px 8px 0;
189
189
  font-size: 11px;
190
190
  line-height: 15px;
191
191
  }
192
192
 
193
- .WcpPCW_custom {
193
+ .xdtbuW_custom {
194
194
  border-top: 1px solid var(--dsw-alias-border-l2);
195
195
  margin-top: 16px;
196
196
  padding: 16px 0 0;
197
197
  }
198
198
 
199
- .WcpPCW_customTitle {
199
+ .xdtbuW_customTitle {
200
200
  margin: 0 0 6px;
201
201
  font-size: 13px;
202
202
  line-height: 17px;
203
203
  }
204
204
 
205
- .WcpPCW_customNote {
205
+ .xdtbuW_customNote {
206
206
  color: var(--dsw-alias-label-tertiary);
207
207
  margin: 4px 0;
208
208
  font-size: 11px;
209
209
  line-height: 15px;
210
210
  }
211
211
 
212
- .WcpPCW_stage {
212
+ .xdtbuW_stage {
213
213
  border: 0;
214
214
  border-top: 1px solid var(--dsw-alias-border-l2);
215
215
  margin: 12px 0 0;
216
216
  padding: 12px 0 0;
217
217
  }
218
218
 
219
- .WcpPCW_stageToggle {
219
+ .xdtbuW_stageToggle {
220
220
  align-items: center;
221
221
  gap: 6px;
222
222
  font-size: 12px;
@@ -224,13 +224,13 @@
224
224
  display: inline-flex;
225
225
  }
226
226
 
227
- .WcpPCW_fieldGrid {
227
+ .xdtbuW_fieldGrid {
228
228
  grid-template-columns: 1fr;
229
229
  gap: 8px;
230
230
  display: grid;
231
231
  }
232
232
 
233
- .WcpPCW_field {
233
+ .xdtbuW_field {
234
234
  min-width: 0;
235
235
  color: var(--dsw-alias-label-secondary);
236
236
  flex-direction: column;
@@ -241,7 +241,7 @@
241
241
  display: flex;
242
242
  }
243
243
 
244
- .WcpPCW_field input, .WcpPCW_field select {
244
+ .xdtbuW_field input, .xdtbuW_field select {
245
245
  box-sizing: border-box;
246
246
  border: 1px solid var(--dsw-alias-border-l2);
247
247
  background: var(--dsw-alias-bg-base);
@@ -253,19 +253,19 @@
253
253
  padding: 4px 6px;
254
254
  }
255
255
 
256
- .WcpPCW_field input:focus-visible, .WcpPCW_field select:focus-visible, .WcpPCW_actions button:focus-visible {
256
+ .xdtbuW_field input:focus-visible, .xdtbuW_field select:focus-visible, .xdtbuW_actions button:focus-visible {
257
257
  outline-offset: 2px;
258
258
  outline: 2px solid;
259
259
  }
260
260
 
261
- .WcpPCW_actions {
261
+ .xdtbuW_actions {
262
262
  flex-wrap: wrap;
263
263
  gap: 8px;
264
264
  margin-top: 10px;
265
265
  display: flex;
266
266
  }
267
267
 
268
- .WcpPCW_actions button {
268
+ .xdtbuW_actions button {
269
269
  border: 1px solid var(--dsw-alias-border-l2);
270
270
  min-height: 30px;
271
271
  color: var(--dsw-alias-label-primary);
@@ -274,34 +274,34 @@
274
274
  padding: 4px 8px;
275
275
  }
276
276
 
277
- .WcpPCW_actions button:active:not(:disabled) {
277
+ .xdtbuW_actions button:active:not(:disabled) {
278
278
  transform: scale(.98);
279
279
  }
280
280
 
281
- .WcpPCW_actions button:disabled {
281
+ .xdtbuW_actions button:disabled {
282
282
  opacity: .6;
283
283
  }
284
284
 
285
285
  @media (width <= 560px) {
286
- .WcpPCW_profileGrid {
286
+ .xdtbuW_profileGrid {
287
287
  grid-template-columns: 1fr;
288
288
  }
289
289
  }
290
290
 
291
- .WcpPCW_autoCompact {
291
+ .xdtbuW_autoCompact {
292
292
  border: 1px solid #80808059;
293
293
  border-radius: 8px;
294
294
  margin-top: 24px;
295
295
  padding: 16px;
296
296
  }
297
297
 
298
- .WcpPCW_autoCompactTitle {
298
+ .xdtbuW_autoCompactTitle {
299
299
  margin: 0 0 8px;
300
300
  font-size: 15px;
301
301
  font-weight: 600;
302
302
  }
303
303
 
304
- .WcpPCW_autoCompactRisk {
304
+ .xdtbuW_autoCompactRisk {
305
305
  opacity: .9;
306
306
  margin: 8px 0 0;
307
307
  font-size: 12px;
@@ -1,114 +1,114 @@
1
- {
2
- "name": "dsh-context-compression-improved",
3
- "version": "0.1.0",
4
- "description": "One-install context-compression selector bundle for DeepSeek Harness",
5
- "type": "module",
6
- "main": "lib/index.js",
7
- "types": "lib/index.d.ts",
8
- "exports": {
9
- ".": {
10
- "types": "./lib/index.d.ts",
11
- "default": "./lib/index.js"
12
- },
13
- "./invariant": {
14
- "types": "./lib/invariant.d.ts",
15
- "default": "./lib/invariant.js"
16
- },
17
- "./pruner": {
18
- "types": "./lib/pruner.d.ts",
19
- "default": "./lib/pruner.js"
20
- },
21
- "./client": {
22
- "types": "./lib/client.d.ts",
23
- "default": "./lib/client.js"
24
- },
25
- "./package.json": "./package.json"
26
- },
27
- "files": [
28
- "lib/**/*.js",
29
- "lib/**/*.d.ts",
30
- "cordis.patch.yml",
31
- "dsh.plugin.json",
32
- "screenshots.json",
33
- "assets",
34
- "README.md",
35
- "README.zh.md",
36
- "LICENSE",
37
- "THIRD_PARTY_NOTICES.md"
38
- ],
39
- "dsh": {
40
- "client": {
41
- "inject": [
42
- "@deepseek-ai/dsh-client-locale",
43
- "@deepseek-ai/dsh-client-ui-slots",
44
- "@deepseek-ai/dsh-client-ui-settings"
45
- ],
46
- "platform": "web"
47
- },
48
- "bundle": {
49
- "patch": "./cordis.patch.yml"
50
- }
51
- },
52
- "scripts": {
53
- "bundle": "tsdown --config tsdown.config.ts && tsdown --config tsdown.client.config.ts",
54
- "typecheck": "tsc --noEmit -p tsconfig.json",
55
- "test": "vitest run --root ../.. --config vitest.config.ts --project runtime --project selector-host --project selector-client",
56
- "pack:dry-run": "npm pack --dry-run"
57
- },
58
- "repository": {
59
- "type": "git",
60
- "url": "git+https://github.com/drscrewdriver/dsh-context-compression-improved.git",
61
- "directory": "packages/selector"
62
- },
63
- "homepage": "https://github.com/drscrewdriver/dsh-context-compression-improved#readme",
64
- "bugs": {
65
- "url": "https://github.com/drscrewdriver/dsh-context-compression-improved/issues"
66
- },
67
- "author": "WilliamShi666",
68
- "engines": {
69
- "node": "^22.19.0 || >=24.0.0",
70
- "dsh": ">=0.1.5-rc.1 <0.2.0-0"
71
- },
72
- "keywords": [
73
- "deepseek",
74
- "harness",
75
- "context",
76
- "compression",
77
- "plugin"
78
- ],
79
- "license": "MIT",
80
- "publishConfig": {
81
- "access": "public",
82
- "tag": "latest"
83
- },
84
- "dependencies": {
85
- "@deepseek-ai/schemastery": "3.18.2",
86
- "@huggingface/tokenizers": "0.1.3",
87
- "js-yaml": "^4.3.2"
88
- },
89
- "peerDependencies": {
90
- "@deepseek-ai/cordis": ">=4.0.1 <5",
91
- "@deepseek-ai/cordis-plugin-include": ">=1.0.6 <2",
92
- "@deepseek-ai/cordis-plugin-loader": ">=1.0.2 <2",
93
- "@deepseek-ai/dsh-agent": ">=0.1.5-rc.2 <0.2.0-0",
94
- "@deepseek-ai/dsh-agent-presets": ">=0.1.5-rc.2 <0.2.0-0",
95
- "@deepseek-ai/dsh-command-compact": ">=0.1.5-rc.2 <0.2.0-0",
96
- "@deepseek-ai/dsh-compaction": ">=0.1.5-rc.2 <0.2.0-0",
97
- "@deepseek-ai/dsh-compaction-basic": ">=0.1.5-rc.2 <0.2.0-0",
98
- "@deepseek-ai/dsh-client-locale": ">=0.1.5-rc.1 <0.2.0-0",
99
- "@deepseek-ai/dsh-client-store": ">=0.1.5-rc.1 <0.2.0-0",
100
- "@deepseek-ai/dsh-client-ui-session": ">=0.1.5-rc.1 <0.2.0-0",
101
- "@deepseek-ai/dsh-client-ui-primitives": ">=0.1.5-rc.1 <0.2.0-0",
102
- "@deepseek-ai/dsh-client-ui-settings": ">=0.1.5-rc.1 <0.2.0-0",
103
- "@deepseek-ai/dsh-client-ui-slots": ">=0.1.5-rc.1 <0.2.0-0",
104
- "@deepseek-ai/dsh-client-ui-workspace": ">=0.1.5-rc.1 <0.2.0-0",
105
- "@deepseek-ai/dsh-invariants": ">=0.1.5-rc.2 <0.2.0-0",
106
- "@deepseek-ai/dsh-llm": ">=0.1.5-rc.2 <0.2.0-0",
107
- "@deepseek-ai/dsh-session": ">=0.1.5-rc.2 <0.2.0-0",
108
- "@deepseek-ai/dsh-settings": ">=0.1.5-rc.2 <0.2.0-0",
109
- "@deepseek-ai/dsh-system-prompt": ">=0.1.5-rc.2 <0.2.0-0",
110
- "@deepseek-ai/dsh-token-meter": ">=0.1.5-rc.2 <0.2.0-0",
111
- "@deepseek-ai/dsh-tools": ">=0.1.5-rc.2 <0.2.0-0",
112
- "react": ">=18 <19"
113
- }
114
- }
1
+ {
2
+ "name": "dsh-context-compression-improved",
3
+ "version": "0.1.0",
4
+ "description": "One-install context-compression selector bundle for DeepSeek Harness",
5
+ "type": "module",
6
+ "main": "lib/index.js",
7
+ "types": "lib/index.d.ts",
8
+ "exports": {
9
+ ".": {
10
+ "types": "./lib/index.d.ts",
11
+ "default": "./lib/index.js"
12
+ },
13
+ "./invariant": {
14
+ "types": "./lib/invariant.d.ts",
15
+ "default": "./lib/invariant.js"
16
+ },
17
+ "./pruner": {
18
+ "types": "./lib/pruner.d.ts",
19
+ "default": "./lib/pruner.js"
20
+ },
21
+ "./client": {
22
+ "types": "./lib/client.d.ts",
23
+ "default": "./lib/client.js"
24
+ },
25
+ "./package.json": "./package.json"
26
+ },
27
+ "files": [
28
+ "lib/**/*.js",
29
+ "lib/**/*.d.ts",
30
+ "cordis.patch.yml",
31
+ "dsh.plugin.json",
32
+ "screenshots.json",
33
+ "assets",
34
+ "README.md",
35
+ "README.zh.md",
36
+ "LICENSE",
37
+ "THIRD_PARTY_NOTICES.md"
38
+ ],
39
+ "dsh": {
40
+ "client": {
41
+ "inject": [
42
+ "@deepseek-ai/dsh-client-locale",
43
+ "@deepseek-ai/dsh-client-ui-slots",
44
+ "@deepseek-ai/dsh-client-ui-settings"
45
+ ],
46
+ "platform": "web"
47
+ },
48
+ "bundle": {
49
+ "patch": "./cordis.patch.yml"
50
+ }
51
+ },
52
+ "scripts": {
53
+ "bundle": "tsdown --config tsdown.config.ts && tsdown --config tsdown.client.config.ts",
54
+ "typecheck": "tsc --noEmit -p tsconfig.json",
55
+ "test": "vitest run --root ../.. --config vitest.config.ts --project runtime --project selector-host --project selector-client",
56
+ "pack:dry-run": "npm pack --dry-run"
57
+ },
58
+ "repository": {
59
+ "type": "git",
60
+ "url": "git+https://github.com/drscrewdriver/dsh-context-compression-improved.git",
61
+ "directory": "packages/selector"
62
+ },
63
+ "homepage": "https://github.com/drscrewdriver/dsh-context-compression-improved#readme",
64
+ "bugs": {
65
+ "url": "https://github.com/drscrewdriver/dsh-context-compression-improved/issues"
66
+ },
67
+ "author": "WilliamShi666",
68
+ "engines": {
69
+ "node": "^22.19.0 || >=24.0.0",
70
+ "dsh": ">=0.1.5-rc.1 <0.2.0-0"
71
+ },
72
+ "keywords": [
73
+ "deepseek",
74
+ "harness",
75
+ "context",
76
+ "compression",
77
+ "plugin"
78
+ ],
79
+ "license": "MIT",
80
+ "publishConfig": {
81
+ "access": "public",
82
+ "tag": "latest"
83
+ },
84
+ "dependencies": {
85
+ "@deepseek-ai/schemastery": "3.18.2",
86
+ "@huggingface/tokenizers": "0.1.3",
87
+ "js-yaml": "^4.3.2"
88
+ },
89
+ "peerDependencies": {
90
+ "@deepseek-ai/cordis": ">=4.0.1 <5",
91
+ "@deepseek-ai/cordis-plugin-include": ">=1.0.6 <2",
92
+ "@deepseek-ai/cordis-plugin-loader": ">=1.0.2 <2",
93
+ "@deepseek-ai/dsh-agent": ">=0.1.5-rc.2 <0.2.0-0",
94
+ "@deepseek-ai/dsh-agent-presets": ">=0.1.5-rc.2 <0.2.0-0",
95
+ "@deepseek-ai/dsh-command-compact": ">=0.1.5-rc.2 <0.2.0-0",
96
+ "@deepseek-ai/dsh-compaction": ">=0.1.5-rc.2 <0.2.0-0",
97
+ "@deepseek-ai/dsh-compaction-basic": ">=0.1.5-rc.2 <0.2.0-0",
98
+ "@deepseek-ai/dsh-client-locale": ">=0.1.5-rc.1 <0.2.0-0",
99
+ "@deepseek-ai/dsh-client-store": ">=0.1.5-rc.1 <0.2.0-0",
100
+ "@deepseek-ai/dsh-client-ui-session": ">=0.1.5-rc.1 <0.2.0-0",
101
+ "@deepseek-ai/dsh-client-ui-primitives": ">=0.1.5-rc.1 <0.2.0-0",
102
+ "@deepseek-ai/dsh-client-ui-settings": ">=0.1.5-rc.1 <0.2.0-0",
103
+ "@deepseek-ai/dsh-client-ui-slots": ">=0.1.5-rc.1 <0.2.0-0",
104
+ "@deepseek-ai/dsh-client-ui-workspace": ">=0.1.5-rc.1 <0.2.0-0",
105
+ "@deepseek-ai/dsh-invariants": ">=0.1.5-rc.2 <0.2.0-0",
106
+ "@deepseek-ai/dsh-llm": ">=0.1.5-rc.2 <0.2.0-0",
107
+ "@deepseek-ai/dsh-session": ">=0.1.5-rc.2 <0.2.0-0",
108
+ "@deepseek-ai/dsh-settings": ">=0.1.5-rc.2 <0.2.0-0",
109
+ "@deepseek-ai/dsh-system-prompt": ">=0.1.5-rc.2 <0.2.0-0",
110
+ "@deepseek-ai/dsh-token-meter": ">=0.1.5-rc.2 <0.2.0-0",
111
+ "@deepseek-ai/dsh-tools": ">=0.1.5-rc.2 <0.2.0-0",
112
+ "react": ">=18 <19"
113
+ }
114
+ }
@@ -1,3 +1,3 @@
1
- {
2
- "screenshots": []
3
- }
1
+ {
2
+ "screenshots": []
3
+ }