@huaqiu/dsh-tool-schematic-gen 0.3.16 → 0.3.18

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@huaqiu/dsh-tool-schematic-gen",
3
- "version": "0.3.16",
3
+ "version": "0.3.18",
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",
32
32
  "@deepseek-ai/dsh-tools": "^0.1.0-rc.0",
33
- "@huaqiu/dsh-auth": "^0.3.16",
34
- "@huaqiu/dsh-artifacts": "^0.3.16",
33
+ "@huaqiu/dsh-auth": "^0.3.18",
34
+ "@huaqiu/dsh-artifacts": "^0.3.18",
35
35
  "react": "^18"
36
36
  },
37
37
  "devDependencies": {
@@ -39,9 +39,9 @@
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-artifacts": "0.3.16",
43
- "@huaqiu/dsh-auth": "0.3.16",
44
- "@huaqiu/dsh-tool-uncollapse": "0.3.16"
42
+ "@huaqiu/dsh-auth": "0.3.18",
43
+ "@huaqiu/dsh-tool-uncollapse": "0.3.18",
44
+ "@huaqiu/dsh-artifacts": "0.3.18"
45
45
  },
46
46
  "files": [
47
47
  "lib",
@@ -52,7 +52,7 @@
52
52
  "access": "public"
53
53
  },
54
54
  "dependencies": {
55
- "@huaqiu/dsh-plugin-log": "0.3.16"
55
+ "@huaqiu/dsh-plugin-log": "0.3.18"
56
56
  },
57
57
  "scripts": {
58
58
  "typecheck": "tsc --noEmit",
@@ -388,8 +388,15 @@ export const GenHit = memo(function GenHit(props: GenHitProps): ReactElement {
388
388
  source_format: 'kicad',
389
389
  },
390
390
  })
391
- const body = (res ?? {}) as { design_id?: string; status?: string }
392
- setImportStatus(t('card.import.done', { id: body.design_id ?? body.status ?? 'ok' }))
391
+ const body = (res ?? {}) as {
392
+ design_id?: string
393
+ status?: string
394
+ project_dir?: string
395
+ project_name?: string
396
+ }
397
+ // hq-edge owns the final project directory — show the actual path the
398
+ // design was opened from (falls back to the design id / status).
399
+ setImportStatus(t('card.import.done', { id: body.project_dir ?? body.design_id ?? body.status ?? 'ok' }))
393
400
  } catch (e) {
394
401
  console.warn('[hq-schematic-gen] open-in-eda failed', e)
395
402
  setImportStatus(t('card.import.failed', { detail: String((e as Error)?.message || e) }))