@huaqiu/dsh-tool-schematic-gen 0.1.2 → 0.2.0

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/lib/index.mjs CHANGED
@@ -881,7 +881,7 @@ async function runGenerateSchematic(args, exec, env) {
881
881
  onTrace: prog.onTrace,
882
882
  onState: prog.onState,
883
883
  onUnauthorized: () => {
884
- env.auth.logout();
884
+ env.auth.invalidate();
885
885
  }
886
886
  });
887
887
  state = res.state;
@@ -940,7 +940,7 @@ async function runGenerateSystem(args, exec, env) {
940
940
  onNote: prog.onNote,
941
941
  toolCallTrace: true,
942
942
  onUnauthorized: () => {
943
- env.auth.logout();
943
+ env.auth.invalidate();
944
944
  }
945
945
  });
946
946
  state = res.state;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@huaqiu/dsh-tool-schematic-gen",
3
- "version": "0.1.2",
3
+ "version": "0.2.0",
4
4
  "type": "module",
5
5
  "main": "./lib/index.mjs",
6
6
  "types": "./lib/index.d.mts",
@@ -30,8 +30,8 @@
30
30
  "@deepseek-ai/cordis": "^4.0.1",
31
31
  "@deepseek-ai/dsh-host-webserver": ">=0.1.0-rc.0 <0.2.0",
32
32
  "@deepseek-ai/dsh-tools": ">=0.1.0-rc.8 <0.2.0",
33
- "@huaqiu/dsh-auth": "^0.1.2",
34
- "@huaqiu/dsh-artifacts": "^0.1.2",
33
+ "@huaqiu/dsh-auth": "^0.2.0",
34
+ "@huaqiu/dsh-artifacts": "^0.2.0",
35
35
  "react": "^18"
36
36
  },
37
37
  "devDependencies": {
@@ -39,8 +39,8 @@
39
39
  "@huaqiu/kicad-sexpr-parser": "^0.1.1",
40
40
  "@types/react": "^18.3.31",
41
41
  "react": "^18.3.1",
42
- "@huaqiu/dsh-auth": "0.1.2",
43
- "@huaqiu/dsh-artifacts": "0.1.2"
42
+ "@huaqiu/dsh-auth": "0.2.0",
43
+ "@huaqiu/dsh-artifacts": "0.2.0"
44
44
  },
45
45
  "files": [
46
46
  "lib",
package/src/tools.ts CHANGED
@@ -316,7 +316,7 @@ export async function runGenerateSchematic(
316
316
  fetchImpl: env.deps?.fetchImpl,
317
317
  onTrace: prog.onTrace,
318
318
  onState: prog.onState,
319
- onUnauthorized: () => { void env.auth.logout() },
319
+ onUnauthorized: () => { env.auth.invalidate() },
320
320
  })
321
321
  state = res.state
322
322
  text = res.text
@@ -390,7 +390,7 @@ export async function runGenerateSystem(
390
390
  // arrives as the standard AG-UI tool-call lifecycle. Without this the
391
391
  // system-design card reported no progress at all.
392
392
  toolCallTrace: true,
393
- onUnauthorized: () => { void env.auth.logout() },
393
+ onUnauthorized: () => { env.auth.invalidate() },
394
394
  })
395
395
  state = res.state
396
396
  text = res.text