dsh-multigameassistant 2.0.3 → 2.0.4

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/cordis.patch.yml CHANGED
@@ -1,4 +1,4 @@
1
- # dsh-multigameassistant 2.0.3
1
+ # dsh-multigameassistant 2.0.4
2
2
  # dsh-multigameassistant: the app's plugins (packages/bundle/cordis.patch.yml, each @adg/<plugin> as dsh-multigameassistant/<plugin>)
3
3
  # sharing the dsh with the person's other chats, and the app's agent preset (dsh's standard one with the app's
4
4
  # tools and prompts, and compaction as 设置 → 对话压缩 says). No row of dsh is restated.
@@ -203,7 +203,12 @@
203
203
  config:
204
204
  # 设置 → 对话压缩 (compaction.json in the app's data); read when the agent service starts.
205
205
  auto: !!js "(() => { try { return JSON.parse(process.getBuiltinModule('node:fs').readFileSync((process.env.ADG_DATA_DIR || dshHomePath('adg/data')) + '/compaction.json', 'utf8')) } catch { return {} } })().auto !== false"
206
- thresholdRatio: !!js "Math.min(95, Math.max(50, Number((() => { try { return JSON.parse(process.getBuiltinModule('node:fs').readFileSync((process.env.ADG_DATA_DIR || dshHomePath('adg/data')) + '/compaction.json', 'utf8')) } catch { return {} } })().threshold) || 80)) / 100"
206
+ thresholdRatio: !!js "(Math.min(100, Math.max(5, Number((() => { try { return JSON.parse(process.getBuiltinModule('node:fs').readFileSync((process.env.ADG_DATA_DIR || dshHomePath('adg/data')) + '/compaction.json', 'utf8')) } catch { return {} } })().threshold) || 80)) / 100)"
207
+ retainRatio: !!js "Math.min(0.16, (Math.min(100, Math.max(5, Number((() => { try { return JSON.parse(process.getBuiltinModule('node:fs').readFileSync((process.env.ADG_DATA_DIR || dshHomePath('adg/data')) + '/compaction.json', 'utf8')) } catch { return {} } })().threshold) || 80)) / 100) / 2)"
208
+ - id: adg-low-context
209
+ name: 'dsh-multigameassistant/low-context'
210
+ config:
211
+ file: !!js "(process.env.ADG_DATA_DIR || dshHomePath('adg/data')) + '/compaction.json'"
207
212
  - id: command-compact
208
213
  name: '@deepseek-ai/dsh-command-compact'
209
214
  - id: tool-result-pruner
package/lib/analyzer.js CHANGED
@@ -7,12 +7,12 @@ import {
7
7
  SKILL_FILE,
8
8
  parseManifest,
9
9
  require_dist
10
- } from "./chunk-OQZ2XZVP.js";
10
+ } from "./chunk-XHP3SLMO.js";
11
11
  import {
12
12
  PACKS_CAPABILITY,
13
13
  ScriptId,
14
14
  external_exports
15
- } from "./chunk-IH3K4QPN.js";
15
+ } from "./chunk-SA72K6M2.js";
16
16
  import {
17
17
  __toESM
18
18
  } from "./chunk-2UFLGPDY.js";
@@ -1,7 +1,7 @@
1
1
  import { createRequire as __adgCreateRequire } from 'node:module'; import { dirname as __adgDirname } from 'node:path'; import { fileURLToPath as __adgFileURLToPath } from 'node:url'; const require = __adgCreateRequire(import.meta.url); const __filename = __adgFileURLToPath(import.meta.url); const __dirname = __adgDirname(__filename);
2
2
  import {
3
3
  convertRecord
4
- } from "./chunk-ZXD4IYZP.js";
4
+ } from "./chunk-IZENRXQ6.js";
5
5
  import {
6
6
  writeFileAtomic
7
7
  } from "./chunk-CCAB6XXZ.js";
@@ -21,7 +21,7 @@ import {
21
21
  threadMessage,
22
22
  threadReminder,
23
23
  threadsBetween
24
- } from "./chunk-IH3K4QPN.js";
24
+ } from "./chunk-SA72K6M2.js";
25
25
 
26
26
  // packages/notify/lib/index.js
27
27
  import { readFile } from "node:fs/promises";
@@ -206,6 +206,9 @@ function createHandOffDesk(deps) {
206
206
  return `\u8FD9\u4EF6\u4E8B\u7684\u6765\u56DE\u5DF2\u7ECF\u591F\u591A\u4E86\uFF08${MAX_CHAIN_MESSAGES} \u6761\uFF09\uFF1A\u7528\u4F60\u624B\u4E0A\u7684\u4FE1\u606F\u505A\u5B8C\uFF0C\u5728\u7ED3\u8BBA\u91CC\u8BF4\u6E05\u695A\u7F3A\u4EC0\u4E48`;
207
207
  return void 0;
208
208
  },
209
+ waitingOn(sessionId) {
210
+ return [...live.values()].some((t) => t.item.fromSession === sessionId && t.conclusion === void 0);
211
+ },
209
212
  askRefusal(sessionId) {
210
213
  const thread = workingOn(sessionId);
211
214
  if (thread?.item.callId === void 0 || thread.item.fromSession === "")