@huaqiu/dsh-kicad 0.4.4 → 0.4.6
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/README.md +6 -0
- package/lib/index.d.mts +6 -0
- package/lib/index.mjs +1 -0
- package/package.json +2 -2
- package/src/index.ts +7 -0
package/README.md
CHANGED
|
@@ -88,6 +88,12 @@ KiCad IPC is not bundled; these are host requirements, the same ones `kicad-agen
|
|
|
88
88
|
- A Python interpreter with the official `kicad-python` package (`kipy`) whose version
|
|
89
89
|
matches the running KiCad. Configure it with plugin config `pythonPath` or
|
|
90
90
|
`$DSH_KICAD_PYTHON` (default `python3`).
|
|
91
|
+
- When KiCad is the EDA host (started through the HQ runtime), KiCad launches
|
|
92
|
+
hq-edge with `$DSH_KICAD_PYTHON` preset to KiCad's **bundled** interpreter (on
|
|
93
|
+
Windows `python.exe` sits next to `kicad.exe`; on macOS it is the
|
|
94
|
+
`Python.framework` copy inside `KiCad.app`) — the interpreter that owns `kipy` —
|
|
95
|
+
so no configuration is needed. The same path is advertised by
|
|
96
|
+
`get_eda_host_info` as the `kicad-python` host executable.
|
|
91
97
|
- DSH running with **Full Access** — a non-Full-Access sandbox cannot reach KiCad's
|
|
92
98
|
named pipe on Windows.
|
|
93
99
|
|
package/lib/index.d.mts
CHANGED
|
@@ -230,6 +230,12 @@ interface SkillRegistration {
|
|
|
230
230
|
description: string;
|
|
231
231
|
/** Full SKILL.md body. */
|
|
232
232
|
content: string;
|
|
233
|
+
/**
|
|
234
|
+
* Discovery source. The DSH registry requires it on every loaded skill and
|
|
235
|
+
* rejects a missing value with "source must be a string" at load time.
|
|
236
|
+
* `'runtime'` is the registry-owned source for plugin-bundled skills.
|
|
237
|
+
*/
|
|
238
|
+
source: 'runtime';
|
|
233
239
|
/** Where `references/` and `scripts/` live for progressive disclosure. */
|
|
234
240
|
resourceBase: {
|
|
235
241
|
kind: 'directory';
|
package/lib/index.mjs
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@huaqiu/dsh-kicad",
|
|
3
|
-
"version": "0.4.
|
|
3
|
+
"version": "0.4.6",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "./lib/index.mjs",
|
|
6
6
|
"types": "./lib/index.d.mts",
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
"@deepseek-ai/dsh-tools": "^0.1.0-rc.0"
|
|
23
23
|
},
|
|
24
24
|
"dependencies": {
|
|
25
|
-
"@huaqiu/dsh-plugin-log": "0.4.
|
|
25
|
+
"@huaqiu/dsh-plugin-log": "0.4.6"
|
|
26
26
|
},
|
|
27
27
|
"files": [
|
|
28
28
|
"lib",
|
package/src/index.ts
CHANGED
|
@@ -79,6 +79,12 @@ export interface SkillRegistration {
|
|
|
79
79
|
description: string
|
|
80
80
|
/** Full SKILL.md body. */
|
|
81
81
|
content: string
|
|
82
|
+
/**
|
|
83
|
+
* Discovery source. The DSH registry requires it on every loaded skill and
|
|
84
|
+
* rejects a missing value with "source must be a string" at load time.
|
|
85
|
+
* `'runtime'` is the registry-owned source for plugin-bundled skills.
|
|
86
|
+
*/
|
|
87
|
+
source: 'runtime'
|
|
82
88
|
/** Where `references/` and `scripts/` live for progressive disclosure. */
|
|
83
89
|
resourceBase: { kind: 'directory'; path: string }
|
|
84
90
|
}
|
|
@@ -244,6 +250,7 @@ export function apply(ctx: Context, config: KicadConfigInput = {}): () => void {
|
|
|
244
250
|
name: skill.name,
|
|
245
251
|
description: skill.description,
|
|
246
252
|
content: skill.content,
|
|
253
|
+
source: 'runtime',
|
|
247
254
|
resourceBase: { kind: 'directory', path: skill.dir },
|
|
248
255
|
}),
|
|
249
256
|
)
|