@huaqiu/dsh-kicad 0.4.4 → 0.4.5

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.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
@@ -964,6 +964,7 @@ function apply(ctx, config = {}) {
964
964
  name: skill.name,
965
965
  description: skill.description,
966
966
  content: skill.content,
967
+ source: "runtime",
967
968
  resourceBase: {
968
969
  kind: "directory",
969
970
  path: skill.dir
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@huaqiu/dsh-kicad",
3
- "version": "0.4.4",
3
+ "version": "0.4.5",
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.4"
25
+ "@huaqiu/dsh-plugin-log": "0.4.5"
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
  )