@lmzhen/dsh-evolution-commands 0.40.1 → 0.41.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.
@@ -0,0 +1,27 @@
1
+ /** Host human-output locale: one resolver, output boundaries only. */
2
+ import type { Context } from '@deepseek-ai/cordis';
3
+ import { type EvolutionErrorId, type HostLocale } from '@lmzhen/dsh-evolution-core';
4
+ import { type HostCommandKey } from './generated/host-commands.ts';
5
+ /**
6
+ * Resolve the host human-output locale.
7
+ * No preference keeps the authored Chinese; an explicit unknown locale falls back to English.
8
+ * @param ctx - host context carrying the settings provider.
9
+ * @returns the locale used for human-readable command output.
10
+ */
11
+ export declare function resolveHostLocale(ctx: Pick<Context, 'get'>): HostLocale;
12
+ /**
13
+ * Render one human-facing command-help line in the resolved host locale.
14
+ * @param locale - resolved host locale.
15
+ * @param key - stable command-help key.
16
+ * @returns localized help text.
17
+ */
18
+ export declare function hostCommandText(locale: HostLocale, key: HostCommandKey, values?: Readonly<Record<string, string | number>>): string;
19
+ /**
20
+ * Render one human-facing error in the resolved host locale.
21
+ * @param locale - resolved host locale.
22
+ * @param id - stable error id.
23
+ * @param args - values for %aN% slots.
24
+ * @returns localized human error text.
25
+ */
26
+ export declare function hostErrorText(locale: HostLocale, id: EvolutionErrorId, args?: Record<string, string | number>): string;
27
+ //# sourceMappingURL=host-locale.d.ts.map
@@ -1,14 +1,4 @@
1
- /**
2
- * Subcommand registry — the SINGLE SOURCE for the /evolution command surface.
3
- *
4
- * 0.3.55 (WD1): the input-declaration hint, the bare `/evolution` help output
5
- * and the README command table all render FROM this table; a hand-written
6
- * copy anywhere is drift waiting to happen (v10 R-13 proved it once).
7
- * PLAN S5.3 (2026-09-16): "the README command table" means the FAMILY README
8
- * (`packages/README.md` — the T-WD2 anchor). Package-level READMEs cite that
9
- * home instead of restating the table (doc-facts rule N19).
10
- * Keep `usage` in the exact shape a user can type after `/evolution`.
11
- */
1
+ import type { HostLocale } from '@lmzhen/dsh-evolution-core';
12
2
  export interface CommandEntry {
13
3
  /** The subcommand as typed after `/evolution`. Variants use `|` (curator run|pause). */
14
4
  usage: string;
@@ -36,7 +26,7 @@ export declare const COMMAND_ENTRIES: CommandEntry[];
36
26
  /** The input-declaration hint (single line, ` | `-separated). */
37
27
  export declare function renderHint(): string;
38
28
  /** The bare `/evolution` help body (one line per subcommand). */
39
- export declare function renderHelpText(): string;
29
+ export declare function renderHelpText(locale?: HostLocale): string;
40
30
  /** Markdown command table fragment for README surfaces (T-WD2 pins it).
41
31
  * `|` inside a usage (curator run|pause|…) is escaped for the table cell. */
42
32
  export declare function renderCommandTable(): string;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@lmzhen/dsh-evolution-commands",
3
3
  "description": "Human commands for the evolution family (/evolution pending|curator|maintain|doctor) (community build)",
4
- "version": "0.40.1",
4
+ "version": "0.41.0",
5
5
  "publishConfig": {
6
6
  "access": "public"
7
7
  },
@@ -27,13 +27,13 @@
27
27
  "license": "MIT",
28
28
  "dependencies": {
29
29
  "@deepseek-ai/schemastery": "^3.18.5",
30
- "@lmzhen/dsh-evolution-approval": "^0.40.1",
31
- "@lmzhen/dsh-evolution-core": "^0.40.1",
32
- "@lmzhen/dsh-evolution-maintenance": "^0.40.1",
33
- "@lmzhen/dsh-evolution-state-storage": "^0.40.1"
30
+ "@lmzhen/dsh-evolution-approval": "^0.41.0",
31
+ "@lmzhen/dsh-evolution-core": "^0.41.0",
32
+ "@lmzhen/dsh-evolution-maintenance": "^0.41.0",
33
+ "@lmzhen/dsh-evolution-state-storage": "^0.41.0"
34
34
  },
35
35
  "optionalDependencies": {
36
- "@lmzhen/dsh-evolution-agent-preset": "^0.40.1"
36
+ "@lmzhen/dsh-evolution-agent-preset": "^0.41.0"
37
37
  },
38
38
  "peerDependencies": {
39
39
  "@deepseek-ai/cordis": "^4.0.5",