@dsh-cc/command-skills 0.5.0 → 0.6.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.
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,qBAAqB,CAAA;AAKlD,eAAO,MAAM,IAAI,mBAAmB,CAAA;AACpC,eAAO,MAAM,MAAM,UAAyB,CAAA;AAW5C;;;GAGG;AACH,wBAAgB,KAAK,CAAC,GAAG,EAAE,OAAO,GAAG,IAAI,CAMxC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,qBAAqB,CAAA;AAMlD,eAAO,MAAM,IAAI,mBAAmB,CAAA;AACpC,eAAO,MAAM,MAAM,UAAyB,CAAA;AAW5C;;;GAGG;AACH,wBAAgB,KAAK,CAAC,GAAG,EAAE,OAAO,GAAG,IAAI,CAMxC"}
package/lib/index.js CHANGED
@@ -4,6 +4,7 @@
4
4
  * @module @dsh-cc/command-skills
5
5
  */
6
6
  import { formatSkills } from "./skills.js";
7
+ import { helpable } from '@dsh-cc/command-usage';
7
8
  export const name = 'command-skills';
8
9
  export const inject = ['commands', 'skills'];
9
10
  /** Execute `/skills`. Pass the invoking agent as `scope` so preset-layer providers are visible. */
@@ -19,10 +20,10 @@ async function executeSkills(ctx, invocation) {
19
20
  * @param ctx - context carrying the command registry and skill registry.
20
21
  */
21
22
  export function apply(ctx) {
22
- ctx.commands.register({
23
+ ctx.commands.register(helpable({
23
24
  name: 'skills',
24
25
  description: 'list available skills with their invocation policy',
25
26
  handler: (invocation) => executeSkills(ctx, invocation),
26
- });
27
+ }));
27
28
  }
28
29
  //# sourceMappingURL=index.js.map
package/lib/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAKH,OAAO,EAAE,YAAY,EAAE,MAAM,aAAa,CAAA;AAE1C,MAAM,CAAC,MAAM,IAAI,GAAG,gBAAgB,CAAA;AACpC,MAAM,CAAC,MAAM,MAAM,GAAG,CAAC,UAAU,EAAE,QAAQ,CAAC,CAAA;AAE5C,mGAAmG;AACnG,KAAK,UAAU,aAAa,CAAC,GAAY,EAAE,UAA6B;IACtE,MAAM,MAAM,GAAG,MAAM,GAAG,CAAC,MAAM,CAAC,IAAI,CAAC;QACnC,GAAG,EAAE,UAAU,CAAC,KAAK,CAAC,OAAO,CAAC,MAAM,CAAC,GAAG;QACxC,KAAK,EAAE,UAAU,CAAC,KAAK;KACxB,CAAC,CAAA;IACF,OAAO,EAAE,IAAI,EAAE,SAAS,EAAE,IAAI,EAAE,YAAY,CAAC,MAAM,CAAC,EAAE,CAAA;AACxD,CAAC;AAED;;;GAGG;AACH,MAAM,UAAU,KAAK,CAAC,GAAY;IAChC,GAAG,CAAC,QAAQ,CAAC,QAAQ,CAAC;QACpB,IAAI,EAAE,QAAQ;QACd,WAAW,EAAE,oDAAoD;QACjE,OAAO,EAAE,CAAC,UAA6B,EAAE,EAAE,CAAC,aAAa,CAAC,GAAG,EAAE,UAAU,CAAC;KAC3E,CAAC,CAAA;AACJ,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAKH,OAAO,EAAE,YAAY,EAAE,MAAM,aAAa,CAAA;AAC1C,OAAO,EAAE,QAAQ,EAAE,MAAM,uBAAuB,CAAA;AAEhD,MAAM,CAAC,MAAM,IAAI,GAAG,gBAAgB,CAAA;AACpC,MAAM,CAAC,MAAM,MAAM,GAAG,CAAC,UAAU,EAAE,QAAQ,CAAC,CAAA;AAE5C,mGAAmG;AACnG,KAAK,UAAU,aAAa,CAAC,GAAY,EAAE,UAA6B;IACtE,MAAM,MAAM,GAAG,MAAM,GAAG,CAAC,MAAM,CAAC,IAAI,CAAC;QACnC,GAAG,EAAE,UAAU,CAAC,KAAK,CAAC,OAAO,CAAC,MAAM,CAAC,GAAG;QACxC,KAAK,EAAE,UAAU,CAAC,KAAK;KACxB,CAAC,CAAA;IACF,OAAO,EAAE,IAAI,EAAE,SAAS,EAAE,IAAI,EAAE,YAAY,CAAC,MAAM,CAAC,EAAE,CAAA;AACxD,CAAC;AAED;;;GAGG;AACH,MAAM,UAAU,KAAK,CAAC,GAAY;IAChC,GAAG,CAAC,QAAQ,CAAC,QAAQ,CAAC,QAAQ,CAAC;QAC7B,IAAI,EAAE,QAAQ;QACd,WAAW,EAAE,oDAAoD;QACjE,OAAO,EAAE,CAAC,UAA6B,EAAE,EAAE,CAAC,aAAa,CAAC,GAAG,EAAE,UAAU,CAAC;KAC3E,CAAC,CAAC,CAAA;AACL,CAAC"}
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@dsh-cc/command-skills",
3
3
  "description": "Human-facing slash command to list available skills with invocation policy",
4
- "version": "0.5.0",
4
+ "version": "0.6.0",
5
5
  "repository": {
6
6
  "type": "git",
7
7
  "url": "git+https://github.com/dsh-cc/dsh-cc.git",
@@ -24,11 +24,14 @@
24
24
  "lib"
25
25
  ],
26
26
  "license": "Apache-2.0",
27
+ "dependencies": {
28
+ "@dsh-cc/command-usage": "^0.6.0"
29
+ },
27
30
  "peerDependencies": {
28
- "@deepseek-ai/dsh-commands": ">=0.1.1-rc.2",
29
- "@deepseek-ai/dsh-invariants": ">=0.1.1-rc.2",
30
- "@deepseek-ai/cordis": ">=0.1.1-rc.2",
31
- "@deepseek-ai/dsh-skill": ">=0.1.1-rc.2"
31
+ "@deepseek-ai/dsh-commands": ">=0.1.2-rc.1",
32
+ "@deepseek-ai/dsh-invariants": ">=0.1.2-rc.1",
33
+ "@deepseek-ai/cordis": ">=0.1.2-rc.1",
34
+ "@deepseek-ai/dsh-skill": ">=0.1.2-rc.1"
32
35
  },
33
36
  "devDependencies": {
34
37
  "@deepseek-ai/cordis-plugin-loader": "link:../../../../deepseek-harness/vendor/loader",