@dsh-cc/command-version 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;AAIlD,eAAO,MAAM,IAAI,oBAAoB,CAAA;AACrC,eAAO,MAAM,MAAM,UAAe,CAAA;AAoBlC;;;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;AAKlD,eAAO,MAAM,IAAI,oBAAoB,CAAA;AACrC,eAAO,MAAM,MAAM,UAAe,CAAA;AAoBlC;;;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-version
5
5
  */
6
6
  import { formatVersion, readOwnVersion } from "./version.js";
7
+ import { helpable } from '@dsh-cc/command-usage';
7
8
  export const name = 'command-version';
8
9
  export const inject = ['commands'];
9
10
  /** Read a host-surfaced harness version, if any, without failing the command. */
@@ -30,10 +31,10 @@ async function executeVersion(ctx) {
30
31
  * @param ctx - context carrying the command registry.
31
32
  */
32
33
  export function apply(ctx) {
33
- ctx.commands.register({
34
+ ctx.commands.register(helpable({
34
35
  name: 'version',
35
36
  description: 'print the plugin bundle and harness versions',
36
37
  handler: (_invocation) => executeVersion(ctx),
37
- });
38
+ }));
38
39
  }
39
40
  //# sourceMappingURL=index.js.map
package/lib/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.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package/lib/version.d.ts CHANGED
@@ -6,7 +6,7 @@
6
6
  * @module @dsh-cc/command-version/version
7
7
  */
8
8
  /** Compile-time fallback, kept in sync with package.json `version`. */
9
- export declare const FALLBACK_VERSION = "0.5.0";
9
+ export declare const FALLBACK_VERSION = "0.6.0";
10
10
  /** A shared harness version reported by the host, or `undefined` when unknown. */
11
11
  export type HarnessVersion = string | undefined;
12
12
  /**
package/lib/version.js CHANGED
@@ -9,7 +9,7 @@ import { dirname, join } from 'node:path';
9
9
  import { readFile } from 'node:fs/promises';
10
10
  import { fileURLToPath } from 'node:url';
11
11
  /** Compile-time fallback, kept in sync with package.json `version`. */
12
- export const FALLBACK_VERSION = '0.5.0';
12
+ export const FALLBACK_VERSION = '0.6.0';
13
13
  /**
14
14
  * Read this package's own version from its `package.json`. Resolution walks
15
15
  * up from the compiled module directory; a missing/unreadable file (bundled
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@dsh-cc/command-version",
3
3
  "description": "Human-facing slash command that prints the plugin bundle and harness versions",
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,10 +24,13 @@
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-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"
31
34
  },
32
35
  "devDependencies": {
33
36
  "@deepseek-ai/cordis-plugin-loader": "link:../../../../deepseek-harness/vendor/loader",