dsh-context-compression-improved 0.6.1 → 0.6.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.
@@ -407,9 +407,6 @@ function pressureCost(blocks) {
407
407
  case "tool-call":
408
408
  cost += 256 + codePointLength(block.name) + codePointLength(block.arguments);
409
409
  break;
410
- case "tool-result":
411
- cost += 256 + pressureCost(block.content);
412
- break;
413
410
  default: {
414
411
  const serialized = JSON.stringify(block);
415
412
  cost += Math.max(256, codePointLength(serialized));
@@ -481,8 +478,7 @@ function emptyResult() {
481
478
  * @returns character pressure in Unicode code points, plus rich-block costs.
482
479
  */
483
480
  function nodeCharacterPressure(content) {
484
- const only = content.length === 1 ? content[0] : void 0;
485
- return pressureCost(only?.type === "tool-result" ? only.content : content);
481
+ return pressureCost(content);
486
482
  }
487
483
  const VISION_MODEL_ID = DEEPSEEK_VISION_TOKENIZER_ARTIFACT.modelIds[0];
488
484
  /**
@@ -587,9 +583,6 @@ function countCanonicalContent(blocks, counter, subject) {
587
583
  if (!absorb(counter.countText(block.name))) return false;
588
584
  if (!absorb(counter.countText(block.arguments))) return false;
589
585
  break;
590
- case "tool-result":
591
- if (!walk(block.content)) return false;
592
- break;
593
586
  case "image":
594
587
  if (!absorb(counter.countImage(block.attachment))) return false;
595
588
  break;
@@ -688,7 +681,7 @@ function intrinsicImageDiagnostic(blocks, target) {
688
681
  paddingMinimumTokens += estimate.paddingMinimumTokens;
689
682
  paddingMaximumTokens += estimate.paddingMaximumTokens;
690
683
  seen = true;
691
- } else if (block.type === "tool-result") walk(block.content);
684
+ }
692
685
  };
693
686
  walk(blocks);
694
687
  return seen ? Object.freeze({
@@ -805,7 +798,7 @@ function installContextCompressionRetrieve(ctx, config = {}) {
805
798
  const event = sessionEvents(exec.agent.session)[seq];
806
799
  if (event?.type !== "tool/result") throw new Error(`context_compression_retrieve: event ${String(seq)} is not a tool/result in the current session`);
807
800
  const maxLines = resolveMaxLines(args.max_lines);
808
- const scan = scanBlocks(event.data.message.content[0].content, maxScanChars);
801
+ const scan = scanBlocks(event.data.message.content, maxScanChars);
809
802
  const scannedLines = splitScannedLines(scan);
810
803
  const lines = scannedLines.lines;
811
804
  const query = args.query;
@@ -814,8 +807,8 @@ function installContextCompressionRetrieve(ctx, config = {}) {
814
807
  const total = scan.complete ? String(lines.length) : `at least ${String(lines.length)}`;
815
808
  const output = `${[
816
809
  `source: ${args.ref}`,
817
- `tool_call_id: ${event.data.message.source.callId}`,
818
- `status: ${event.data.message.content[0].isError === true ? "error" : "completed"}`,
810
+ `tool_call_id: ${event.data.message.toolCallId}`,
811
+ `status: ${event.data.message.isError === true ? "error" : "completed"}`,
819
812
  `lines: ${String(selected.start)}-${String(selected.end)} of ${total}`,
820
813
  scan.complete ? "" : "note: source scan limit reached; later lines were not inspected",
821
814
  selected.partialLine === void 0 ? "" : `note: line ${String(selected.partialLine)} is a partial prefix ending at the source scan limit`,
@@ -1111,7 +1104,7 @@ function tokenizerAuditFact(route) {
1111
1104
  }
1112
1105
  /** Check whether a snapshot candidate represents an error result. */
1113
1106
  function isError(candidate) {
1114
- return candidate.event.data.message.content[0].isError === true || candidate.event.data.error !== void 0;
1107
+ return candidate.event.data.message.isError === true || candidate.event.data.error !== void 0;
1115
1108
  }
1116
1109
  /** Wrap a plan list into a HistoryPlanOutcome. */
1117
1110
  function historyOutcome(plans) {
@@ -4244,10 +4237,7 @@ var ToolResultPruner = class extends Service {
4244
4237
  lastText.text = `${lastText.text}\n\n${block}`;
4245
4238
  const replacement = createUserMessage({
4246
4239
  content,
4247
- source: {
4248
- kind: "plugin",
4249
- plugin: "dsh-context-compression-improved-runtime"
4250
- }
4240
+ source: { kind: "dsh-context-compression" }
4251
4241
  });
4252
4242
  session.append("user/message", replacement, {
4253
4243
  surfaceOp: {
@@ -4842,11 +4832,11 @@ var ToolResultPruner = class extends Service {
4842
4832
  if (event?.type !== "tool/result") continue;
4843
4833
  const shadowedHeuristicTokenCount = projectionPrices.get(seq);
4844
4834
  if (shadowedHeuristicTokenCount === void 0) throw new Error(`surface node ${String(seq)} is absent from the atomic legacy projection`);
4845
- const content = event.data.message.content[0].content;
4835
+ const content = event.data.message.content;
4846
4836
  candidates.push({
4847
4837
  seq,
4848
4838
  event,
4849
- call: calls.get(event.data.message.source.callId) ?? {
4839
+ call: calls.get(event.data.message.toolCallId) ?? {
4850
4840
  name: "unknown",
4851
4841
  arguments: "{}"
4852
4842
  },
@@ -4860,7 +4850,7 @@ var ToolResultPruner = class extends Service {
4860
4850
  planNative(candidate, session, stage, policy, view) {
4861
4851
  if (this.isRecoveryExempt(session, candidate)) return null;
4862
4852
  if (candidate.characterPressure <= charsForTokens(policy.nativeTriggerTokens)) return null;
4863
- const result = candidate.event.data.message.content[0];
4853
+ const result = candidate.event.data.message;
4864
4854
  if (onlyTextBlocks(result.content) === null) return null;
4865
4855
  const sourceSeq = rootToolResultSeq(session, candidate.seq);
4866
4856
  const marker = (startLine) => recoveryMarker(sourceRef(session, sourceSeq), "tool result middle pruned", startLine);
@@ -4887,7 +4877,7 @@ var ToolResultPruner = class extends Service {
4887
4877
  */
4888
4878
  planDedupe(candidate, session, policy, view) {
4889
4879
  if (typeof candidate.event.surfaceOp === "object") return null;
4890
- const result = candidate.event.data.message.content[0];
4880
+ const result = candidate.event.data.message;
4891
4881
  const text = flattenPlainText(result.content);
4892
4882
  if (text === void 0) return null;
4893
4883
  if (candidate.characterPressure <= charsForTokens(policy.freshTriggerTokens)) return null;
@@ -4917,7 +4907,7 @@ var ToolResultPruner = class extends Service {
4917
4907
  }
4918
4908
  planFresh(candidate, session, policy, view) {
4919
4909
  if (typeof candidate.event.surfaceOp === "object") return null;
4920
- const result = candidate.event.data.message.content[0];
4910
+ const result = candidate.event.data.message;
4921
4911
  if (candidate.characterPressure <= charsForTokens(policy.freshTriggerTokens)) return null;
4922
4912
  const sourceSeq = candidate.seq;
4923
4913
  const sourceRef$1 = sourceRef(session, sourceSeq);
@@ -4955,7 +4945,7 @@ var ToolResultPruner = class extends Service {
4955
4945
  if (isError(candidate)) return this.planErrorEvidence(candidate, session, view, stage, targetTokens, component, historyMode);
4956
4946
  const sourceSeq = rootToolResultSeq(session, candidate.seq);
4957
4947
  const sourceRef$2 = sourceRef(session, sourceSeq);
4958
- const redacted = candidate.event.data.message.content[0];
4948
+ const redacted = candidate.event.data.message;
4959
4949
  if (onlyTextBlocks(redacted.content) === null) return null;
4960
4950
  const text = [
4961
4951
  "[Tool result reduced to satisfy the completed-step aggregate budget]",
@@ -4972,7 +4962,7 @@ var ToolResultPruner = class extends Service {
4972
4962
  /** Preserve bounded diagnostic evidence whenever an all-text error is reduced. */
4973
4963
  planErrorEvidence(candidate, session, view, stage, targetTokens, component = "aggregate", historyMode) {
4974
4964
  if (!isError(candidate)) return null;
4975
- const result = candidate.event.data.message.content[0];
4965
+ const result = candidate.event.data.message;
4976
4966
  const blocks = onlyTextBlocks(result.content);
4977
4967
  if (blocks === null) return null;
4978
4968
  const text = blocks.map((block) => block.text).join("\n");
@@ -5011,7 +5001,7 @@ var ToolResultPruner = class extends Service {
5011
5001
  const protectedSeqs = this.protectedHistoryCandidateSeqs(candidates, policy);
5012
5002
  const isUnsafe = (candidate) => {
5013
5003
  if (this.isRecoveryExempt(session, candidate)) return true;
5014
- const result = candidate.event.data.message.content[0];
5004
+ const result = candidate.event.data.message;
5015
5005
  return onlyTextBlock(result.content)?.text.includes("[Old tool result content cleared from active context]") === true;
5016
5006
  };
5017
5007
  const safe = candidates.filter((candidate) => !isUnsafe(candidate));
@@ -5024,7 +5014,7 @@ var ToolResultPruner = class extends Service {
5024
5014
  const required = Math.max(minReclaimChars, total - trigger, ...microTarget === void 0 ? [] : [charsForTokens(view.totalTokens) - microTarget]);
5025
5015
  const batchTarget = microTarget === void 0 ? minReclaimChars : required;
5026
5016
  for (const candidate of eligible) {
5027
- const result = candidate.event.data.message.content[0];
5017
+ const result = candidate.event.data.message;
5028
5018
  const block = onlyTextBlock(result.content);
5029
5019
  if (policy.presetOptions?.readState === true && block !== null) {
5030
5020
  const readPath = toolCallPath(candidate.call.arguments);
@@ -5165,7 +5155,7 @@ var ToolResultPruner = class extends Service {
5165
5155
  const results = resultSeqs.map((seq) => events[seq]);
5166
5156
  if (results.some((event) => {
5167
5157
  if (event?.type !== "tool/result" || event.data.turn !== assistant.data.turn || event.data.step !== assistant.data.step || event.data.error !== void 0) return true;
5168
- const block = event.data.message.content[0];
5158
+ const block = event.data.message;
5169
5159
  if (block.isError === true) return true;
5170
5160
  return block.content.some((contentBlock) => contentBlock.type !== "text");
5171
5161
  })) continue;
@@ -5312,7 +5302,7 @@ var ToolResultPruner = class extends Service {
5312
5302
  const tokensBefore = exact ? countBefore.tokens : charsToTokens(charsBefore);
5313
5303
  const tokensAfter = exact ? countAfter.tokens : charsToTokens(charsAfter);
5314
5304
  if (options.noNetSavingsGuard === true) {
5315
- const originalBlocks = onlyTextBlocks(candidate.event.data.message.content[0].content);
5305
+ const originalBlocks = onlyTextBlocks(candidate.event.data.message.content);
5316
5306
  const replacementBlocks = onlyTextBlocks(content);
5317
5307
  if (originalBlocks !== null && replacementBlocks !== null) {
5318
5308
  const originalChars = originalBlocks.reduce((sum, block) => sum + codePointLength(block.text), 0);
@@ -5339,13 +5329,10 @@ var ToolResultPruner = class extends Service {
5339
5329
  }
5340
5330
  land(session, plan) {
5341
5331
  const { candidate } = plan;
5342
- const result = candidate.event.data.message.content[0];
5332
+ candidate.event.data.message;
5343
5333
  const message = freezeMessage({
5344
5334
  ...candidate.event.data.message,
5345
- content: [{
5346
- ...result,
5347
- content: plan.content
5348
- }]
5335
+ content: plan.content
5349
5336
  });
5350
5337
  const manifest = session.append("compaction/prune", {
5351
5338
  shadowedRange: {
@@ -59,10 +59,7 @@ function tailTrimMessage(stub) {
59
59
  type: "text",
60
60
  text: stub
61
61
  }],
62
- source: {
63
- kind: "plugin",
64
- plugin: "dsh-context-compression-improved-runtime"
65
- }
62
+ source: { kind: "dsh-context-compression" }
66
63
  });
67
64
  }
68
65
  /** Validate the standard prune, adjacent replacement, append roots and stub. */
@@ -71,7 +68,7 @@ function validatePublishedTailTrim(session, manifestSeq) {
71
68
  const manifest = events[manifestSeq];
72
69
  if (manifest?.type !== "compaction/prune" || manifest.data.shadowedSeqs.length < 2 || manifest.data.shadowedSeqs.length > MAX_ROOTS || manifest.data.shadowedSeqs[0] !== Number(manifest.data.shadowedRange.start) || manifest.data.shadowedSeqs.at(-1) !== Number(manifest.data.shadowedRange.end) || new Set(manifest.data.shadowedSeqs).size !== manifest.data.shadowedSeqs.length) return null;
73
70
  const replacement = events[manifestSeq + 1];
74
- if (replacement?.type !== "user/message" || replacement.seq !== manifest.seq + 1 || replacement.data.source.kind !== "plugin" || replacement.data.source.plugin !== "dsh-context-compression-improved-runtime" || replacement.surfaceOp === void 0 || replacement.surfaceOp === "append" || replacement.surfaceOp.startSeq !== manifest.data.shadowedRange.start || replacement.surfaceOp.endSeq !== manifest.data.shadowedRange.end || !sameNumbers(replacement.sourceEventSeqs, [manifest.seq, ...manifest.data.shadowedSeqs]) || replacement.data.content.length !== 1 || replacement.data.content[0]?.type !== "text") return null;
71
+ if (replacement?.type !== "user/message" || replacement.seq !== manifest.seq + 1 || replacement.data.source.kind !== "dsh-context-compression" || replacement.surfaceOp === void 0 || replacement.surfaceOp === "append" || replacement.surfaceOp.startSeq !== manifest.data.shadowedRange.start || replacement.surfaceOp.endSeq !== manifest.data.shadowedRange.end || !sameNumbers(replacement.sourceEventSeqs, [manifest.seq, ...manifest.data.shadowedSeqs]) || replacement.data.content.length !== 1 || replacement.data.content[0]?.type !== "text") return null;
75
72
  const tracedRoots = manifest.data.shadowedSeqs.map((seq) => uniqueAppendRoot(session, seq, manifestSeq));
76
73
  if (tracedRoots.some((root) => root === null)) return null;
77
74
  const sourceEventSeqs = tracedRoots;
@@ -134,7 +131,7 @@ function validRootGroup(roots, manifestSeq) {
134
131
  if (new Set(callIds).size !== callIds.length || roots.length !== callIds.length + 1) return false;
135
132
  for (const [index, root] of roots.slice(1).entries()) {
136
133
  if (root.type !== "tool/result" || root.seq >= manifestSeq || root.surfaceOp !== "append") return false;
137
- if (root.data.message.content[0].isError === true || root.data.error !== void 0 || root.data.turn !== assistant.data.turn || root.data.step !== assistant.data.step || String(root.data.message.source.callId) !== String(callIds[index])) return false;
134
+ if (root.data.message.isError === true || root.data.error !== void 0 || root.data.turn !== assistant.data.turn || root.data.step !== assistant.data.step || String(root.data.message.toolCallId) !== String(callIds[index])) return false;
138
135
  }
139
136
  return true;
140
137
  }
@@ -1,114 +1,114 @@
1
- {
2
- "name": "dsh-context-compression-improved",
3
- "version": "0.2.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.4",
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.7-rc.1 <0.2.0-0",
94
- "@deepseek-ai/dsh-agent-presets": ">=0.1.7-rc.1 <0.2.0-0",
95
- "@deepseek-ai/dsh-client-locale": ">=0.1.7-rc.1 <0.2.0-0",
96
- "@deepseek-ai/dsh-client-store": ">=0.1.7-rc.1 <0.2.0-0",
97
- "@deepseek-ai/dsh-client-ui-primitives": ">=0.1.7-rc.1 <0.2.0-0",
98
- "@deepseek-ai/dsh-client-ui-session": ">=0.1.7-rc.1 <0.2.0-0",
99
- "@deepseek-ai/dsh-client-ui-settings": ">=0.1.7-rc.1 <0.2.0-0",
100
- "@deepseek-ai/dsh-client-ui-slots": ">=0.1.7-rc.1 <0.2.0-0",
101
- "@deepseek-ai/dsh-client-ui-workspace": ">=0.1.7-rc.1 <0.2.0-0",
102
- "@deepseek-ai/dsh-command-compact": ">=0.1.7-rc.1 <0.2.0-0",
103
- "@deepseek-ai/dsh-compaction": ">=0.1.7-rc.1 <0.2.0-0",
104
- "@deepseek-ai/dsh-compaction-basic": ">=0.1.7-rc.1 <0.2.0-0",
105
- "@deepseek-ai/dsh-invariants": ">=0.1.7-rc.1 <0.2.0-0",
106
- "@deepseek-ai/dsh-llm": ">=0.1.7-rc.1 <0.2.0-0",
107
- "@deepseek-ai/dsh-session": ">=0.1.7-rc.1 <0.2.0-0",
108
- "@deepseek-ai/dsh-settings": ">=0.1.7-rc.1 <0.2.0-0",
109
- "@deepseek-ai/dsh-system-prompt": ">=0.1.7-rc.1 <0.2.0-0",
110
- "@deepseek-ai/dsh-token-meter": ">=0.1.7-rc.1 <0.2.0-0",
111
- "@deepseek-ai/dsh-tools": ">=0.1.7-rc.1 <0.2.0-0",
112
- "react": ">=18 <19"
113
- }
114
- }
1
+ {
2
+ "name": "dsh-context-compression-improved",
3
+ "version": "0.2.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.7-rc.1 <0.1.8-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.4",
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.7-rc.1 <0.2.0-0",
94
+ "@deepseek-ai/dsh-agent-presets": ">=0.1.7-rc.1 <0.2.0-0",
95
+ "@deepseek-ai/dsh-client-locale": ">=0.1.7-rc.1 <0.2.0-0",
96
+ "@deepseek-ai/dsh-client-store": ">=0.1.7-rc.1 <0.2.0-0",
97
+ "@deepseek-ai/dsh-client-ui-primitives": ">=0.1.7-rc.1 <0.2.0-0",
98
+ "@deepseek-ai/dsh-client-ui-session": ">=0.1.7-rc.1 <0.2.0-0",
99
+ "@deepseek-ai/dsh-client-ui-settings": ">=0.1.7-rc.1 <0.2.0-0",
100
+ "@deepseek-ai/dsh-client-ui-slots": ">=0.1.7-rc.1 <0.2.0-0",
101
+ "@deepseek-ai/dsh-client-ui-workspace": ">=0.1.7-rc.1 <0.2.0-0",
102
+ "@deepseek-ai/dsh-command-compact": ">=0.1.7-rc.1 <0.2.0-0",
103
+ "@deepseek-ai/dsh-compaction": ">=0.1.7-rc.1 <0.2.0-0",
104
+ "@deepseek-ai/dsh-compaction-basic": ">=0.1.7-rc.1 <0.2.0-0",
105
+ "@deepseek-ai/dsh-invariants": ">=0.1.7-rc.1 <0.2.0-0",
106
+ "@deepseek-ai/dsh-llm": ">=0.1.7-rc.1 <0.2.0-0",
107
+ "@deepseek-ai/dsh-session": ">=0.1.7-rc.1 <0.2.0-0",
108
+ "@deepseek-ai/dsh-settings": ">=0.1.7-rc.1 <0.2.0-0",
109
+ "@deepseek-ai/dsh-system-prompt": ">=0.1.7-rc.1 <0.2.0-0",
110
+ "@deepseek-ai/dsh-token-meter": ">=0.1.7-rc.1 <0.2.0-0",
111
+ "@deepseek-ai/dsh-tools": ">=0.1.7-rc.1 <0.2.0-0",
112
+ "react": ">=18 <19"
113
+ }
114
+ }
@@ -8,7 +8,7 @@
8
8
  */
9
9
 
10
10
  import { useEffect, useId, useState } from 'react'
11
- import { IconChevronDownOutline14, Menu } from '@deepseek-ai/dsh-client-ui-primitives'
11
+ import { IconChevronDownOutlineMedium, Menu } from '@deepseek-ai/dsh-client-ui-primitives'
12
12
  import type { ContextCompressionLocaleKey } from './locales.ts'
13
13
  import css from './CompressionProfileSelector.module.css'
14
14
  import {
@@ -90,7 +90,7 @@ export function CompressionProfileControls({
90
90
  <span className={css.label}>{t('label')}</span>
91
91
  <span className={css.value}>{label}</span>
92
92
  </span>
93
- <IconChevronDownOutline14 className={css.chevron} />
93
+ <IconChevronDownOutlineMedium className={css.chevron} />
94
94
  </button>
95
95
  )}
96
96
  />
@@ -8,7 +8,7 @@
8
8
  * @module dsh-context-compression-improved/client/CompressionProfileSelector
9
9
  */
10
10
 
11
- import type { SettingsScope } from '@deepseek-ai/dsh-client-ui-settings/client'
11
+ import type { SettingsScope } from './scope-face.ts'
12
12
  import type { InjectFace, PropsLocale } from '@deepseek-ai/dsh-client-ui-slots'
13
13
  import {
14
14
  COMPRESSION_PROFILES,