dsh-agy-link 0.4.24 → 0.4.25
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 +7 -0
- package/dist/index.js +4 -2
- package/package.json +5 -5
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,12 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 0.4.25 (2026-09-04)
|
|
4
|
+
|
|
5
|
+
- **Fixed: Plugin Startup Blocker on DSH >= 0.1.1-rc.x / 0.1.2-rc.1 (`missing export 'CallId'`, issue #4).**
|
|
6
|
+
- **Root cause**: Newer `@deepseek-ai/dsh-llm` versions (e.g. `0.1.2-alpha.1` ~ `0.1.2-rc.1`) renamed `CallId` to `ToolCallId`. A named import `import { CallId } from '@deepseek-ai/dsh-llm'` caused Node ESM static resolution to fail at startup with `The requested module '@deepseek-ai/dsh-llm' does not provide an export named 'CallId'`, surfacing as a plugin load failure on DSH Desktop 2.0.5 and CLI.
|
|
7
|
+
- **Fix**: Replaced named import with a namespace fallback resolution `toToolCallId = dshLlm.ToolCallId ?? dshLlm.CallId ?? identity`. This avoids missing named export evaluation errors and ensures seamless backwards and forwards compatibility across all DSH host versions.
|
|
8
|
+
- **Ecosystem & Test Hardening**: Upgraded development dependencies to `@deepseek-ai/dsh-*@0.1.2-rc.1`. Configured `--test-concurrency=1` in test runner to prevent mock environment variable collisions across concurrent subprocess tests, achieving 100% pass rate across all 151 unit tests. Verified live startup with DSH 0.1.2-rc.1 and `dsh-lark-link`.
|
|
9
|
+
|
|
3
10
|
## 0.4.24 (2026-08-28)
|
|
4
11
|
|
|
5
12
|
- **Fixed: Antigravity Models Missing From Picker When Logged In (已登录/显示余量但模型列表不显示 — issue #1).**
|
package/dist/index.js
CHANGED
|
@@ -3,7 +3,8 @@ import { execFile, execFileSync, spawn } from "node:child_process";
|
|
|
3
3
|
import path, { delimiter, dirname, isAbsolute, join, resolve } from "node:path";
|
|
4
4
|
import { accessSync, chmodSync, constants, existsSync, mkdirSync, readFileSync, readdirSync, renameSync, rmSync, statSync, unlinkSync, writeFileSync } from "node:fs";
|
|
5
5
|
import { homedir, tmpdir } from "node:os";
|
|
6
|
-
import
|
|
6
|
+
import * as dshLlm from "@deepseek-ai/dsh-llm";
|
|
7
|
+
import { LlmAdapter, LlmError } from "@deepseek-ai/dsh-llm";
|
|
7
8
|
import { createHash, randomBytes, randomUUID } from "node:crypto";
|
|
8
9
|
import { defineTool } from "@deepseek-ai/dsh-tools";
|
|
9
10
|
import { mkdir, mkdtemp, readFile, readdir, rm, stat, unlink, writeFile } from "node:fs/promises";
|
|
@@ -889,6 +890,7 @@ function defineAgyMirrorTool(deps) {
|
|
|
889
890
|
}
|
|
890
891
|
//#endregion
|
|
891
892
|
//#region src/host/mapper.ts
|
|
893
|
+
const toToolCallId = dshLlm.ToolCallId ?? dshLlm.CallId ?? ((id) => id);
|
|
892
894
|
function usageFromRaw(raw) {
|
|
893
895
|
const usage = {
|
|
894
896
|
inputTokens: raw.input_tokens ?? 0,
|
|
@@ -1058,7 +1060,7 @@ var EventMapper = class {
|
|
|
1058
1060
|
index: idx,
|
|
1059
1061
|
block: {
|
|
1060
1062
|
type: "tool-call",
|
|
1061
|
-
id:
|
|
1063
|
+
id: toToolCallId(mirrorCallId(this.opts.runId, absIndex)),
|
|
1062
1064
|
name: toolName,
|
|
1063
1065
|
arguments: argumentsJson
|
|
1064
1066
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "dsh-agy-link",
|
|
3
|
-
"version": "0.4.
|
|
3
|
+
"version": "0.4.25",
|
|
4
4
|
"description": "Google Antigravity (agy CLI) models for DeepSeek Harness — stream Gemini/Claude/GPT-OSS subscriptions into DSH with thinking, tool activity, token usage and in-GUI Google OAuth login.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|
|
@@ -52,9 +52,9 @@
|
|
|
52
52
|
},
|
|
53
53
|
"devDependencies": {
|
|
54
54
|
"@deepseek-ai/cordis": "^4.0.1",
|
|
55
|
-
"@deepseek-ai/dsh-commands": "
|
|
56
|
-
"@deepseek-ai/dsh-llm": "
|
|
57
|
-
"@deepseek-ai/dsh-tools": "
|
|
55
|
+
"@deepseek-ai/dsh-commands": "0.1.2-rc.1",
|
|
56
|
+
"@deepseek-ai/dsh-llm": "0.1.2-rc.1",
|
|
57
|
+
"@deepseek-ai/dsh-tools": "0.1.2-rc.1",
|
|
58
58
|
"@types/node": "^24.3.0",
|
|
59
59
|
"@types/qrcode": "^1.5.5",
|
|
60
60
|
"tsdown": "^0.22.14",
|
|
@@ -83,7 +83,7 @@
|
|
|
83
83
|
"scripts": {
|
|
84
84
|
"build": "tsdown",
|
|
85
85
|
"check": "tsc --noEmit",
|
|
86
|
-
"test": "node --experimental-transform-types --test \"test/**/*.test.ts\"",
|
|
86
|
+
"test": "node --experimental-transform-types --test --test-concurrency=1 \"test/**/*.test.ts\"",
|
|
87
87
|
"prepack": "npm run build"
|
|
88
88
|
},
|
|
89
89
|
"engines": {
|