@dsh-cc/model-aliases 0.8.1 → 0.8.2-rc.1

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.i18n.yaml CHANGED
@@ -2,5 +2,5 @@
2
2
  # side as of the last confirmed-consistent state. Both languages carry equal authority;
3
3
  # after editing either side, bring the other along and re-record with:
4
4
  # pnpm check:readme --write
5
- README.md: 65dbb70dd38cce594bbab1b389769996746630f1
6
- README.zh.md: 6653125203b97d8ab5a0918b296ec4f47dd7ba90
5
+ README.md: 9ee73d46945ba766b28e1af5370fe65cae2f4b3d
6
+ README.zh.md: 0d10ba236cb55903e2206e38322f31811e5709b1
package/README.md CHANGED
@@ -45,7 +45,7 @@ resolves to "inherit the parent route" (the same no-override behavior as before)
45
45
 
46
46
  ## How the cc-shell bundle wires it
47
47
 
48
- - `Config.modelAliases` provides **deployment defaults** (alias name → model id
48
+ - The `@dsh-cc/model-aliases` row's own `Config.modelAliases` provides **deployment defaults** (alias name → model id
49
49
  or `{provider, model}`).
50
50
  - The `model-aliases` **settings namespace** registration now lives in the `ccModelRoutes`
51
51
  service, layered exactly like every other settings section (user/project/local/flags).
package/README.zh.md CHANGED
@@ -25,7 +25,7 @@ Claude Code 的 agent/CLAUDE.md frontmatter 用 alias 命名模型。没有 alia
25
25
 
26
26
  ## How the cc-shell bundle wires it(如何接线)
27
27
 
28
- - `Config.modelAliases` 提供**部署默认**(alias 名 → model id 或 `{provider, model}`)。
28
+ - `@dsh-cc/model-aliases` 行自身的 `Config.modelAliases` 提供**部署默认**(alias 名 → model id 或 `{provider, model}`)。
29
29
  - `model-aliases` **settings 命名空间**的注册现在住在 `ccModelRoutes` 服务里,与其它 settings section 一样分层(user/project/local/flags)。
30
30
  - cc-shell 的 `AgentProvider` 通过**trampoline** 获得 `resolveModel`:`(model) => ctx.get('ccModelRoutes')?.resolve(model)`——**每次派发惰性查询**、现读(apply 时不快照),服务未挂载时降级为继承(`undefined` 解析 = 继承父路由,与旧 no-resolver fallback 字节兼容)。cc-shell 自己不再注册该命名空间。
31
31
  - Task 工具(`@dsh-cc/subagent-task`)是另一消费方:它在派发时以同一个 `ccModelRoutes` 解析器解析 subagent 定义 frontmatter 的 `model`。
package/lib/schema.d.ts CHANGED
@@ -31,12 +31,12 @@ export declare const ConfigAliasSchema: z<string | ({
31
31
  model?: string | null;
32
32
  reasoningEffort?: string | null;
33
33
  protocol?: string | null;
34
- } & import("@deepseek-ai/cosmokit").Dict), string | Schemastery.ObjectT<{
35
- provider: z<string, string>;
36
- model: z<string, string>;
37
- reasoningEffort: z<string, string>;
38
- protocol: z<string, string>;
39
- }>>;
34
+ } & import("@deepseek-ai/cosmokit").Dict), string | Schemastery.ObjectT<NoInfer<{
35
+ provider: z<string, string, "plain">;
36
+ model: z<string, string, "plain">;
37
+ reasoningEffort: z<string, string, "plain">;
38
+ protocol: z<string, string, "plain">;
39
+ }>>, "plain">;
40
40
  /**
41
41
  * Schema for a settings `model-aliases` value: a model id, an explicit route,
42
42
  * `null` meaning "delete a same-named config-default entry", or a boolean —
@@ -47,12 +47,12 @@ export declare const SettingsAliasSchema: z<string | boolean | ({
47
47
  model?: string | null;
48
48
  reasoningEffort?: string | null;
49
49
  protocol?: string | null;
50
- } & import("@deepseek-ai/cosmokit").Dict) | null, string | boolean | Schemastery.ObjectT<{
51
- provider: z<string, string>;
52
- model: z<string, string>;
53
- reasoningEffort: z<string, string>;
54
- protocol: z<string, string>;
55
- }> | null>;
50
+ } & import("@deepseek-ai/cosmokit").Dict) | null, string | boolean | Schemastery.ObjectT<NoInfer<{
51
+ provider: z<string, string, "plain">;
52
+ model: z<string, string, "plain">;
53
+ reasoningEffort: z<string, string, "plain">;
54
+ protocol: z<string, string, "plain">;
55
+ }>> | null, "plain">;
56
56
  /**
57
57
  * Schema for the whole config `modelAliases` record.
58
58
  */
@@ -61,12 +61,12 @@ export declare const ConfigAliasesSchema: z<import("@deepseek-ai/cosmokit").Dict
61
61
  model?: string | null;
62
62
  reasoningEffort?: string | null;
63
63
  protocol?: string | null;
64
- } & import("@deepseek-ai/cosmokit").Dict), string>, import("@deepseek-ai/cosmokit").Dict<string | Schemastery.ObjectT<{
65
- provider: z<string, string>;
66
- model: z<string, string>;
67
- reasoningEffort: z<string, string>;
68
- protocol: z<string, string>;
69
- }>, string>>;
64
+ } & import("@deepseek-ai/cosmokit").Dict), string>, import("@deepseek-ai/cosmokit").Dict<string | Schemastery.ObjectT<NoInfer<{
65
+ provider: z<string, string, "plain">;
66
+ model: z<string, string, "plain">;
67
+ reasoningEffort: z<string, string, "plain">;
68
+ protocol: z<string, string, "plain">;
69
+ }>>, string>, "plain">;
70
70
  /**
71
71
  * Schema for the whole settings `model-aliases` section: a dict of alias
72
72
  * entries plus the `warnOnInherit: boolean` control key (default true) that
@@ -78,12 +78,12 @@ export declare const SettingsAliasesSchema: z<import("@deepseek-ai/cosmokit").Di
78
78
  model?: string | null;
79
79
  reasoningEffort?: string | null;
80
80
  protocol?: string | null;
81
- } & import("@deepseek-ai/cosmokit").Dict) | null, string>, import("@deepseek-ai/cosmokit").Dict<string | boolean | Schemastery.ObjectT<{
82
- provider: z<string, string>;
83
- model: z<string, string>;
84
- reasoningEffort: z<string, string>;
85
- protocol: z<string, string>;
86
- }> | null, string>>;
81
+ } & import("@deepseek-ai/cosmokit").Dict) | null, string>, import("@deepseek-ai/cosmokit").Dict<string | boolean | Schemastery.ObjectT<NoInfer<{
82
+ provider: z<string, string, "plain">;
83
+ model: z<string, string, "plain">;
84
+ reasoningEffort: z<string, string, "plain">;
85
+ protocol: z<string, string, "plain">;
86
+ }>> | null, string>, "plain">;
87
87
  /** The validated shape of one config entry (modelled on the schema). */
88
88
  export type ConfigAliasEntry = Exclude<AliasTarget, null>;
89
89
  /** The validated shape of one settings entry (may be `null` to delete). */
@@ -1 +1 @@
1
- {"version":3,"file":"schema.d.ts","sourceRoot":"","sources":["../src/schema.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;GAoBG;AAEH,OAAO,CAAC,MAAM,0BAA0B,CAAA;AACxC,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,YAAY,CAAA;AAoB7C;;;;GAIG;AACH,eAAO,MAAM,iBAAiB;;;;;;;;;;GAAwC,CAAA;AAEtE;;;;GAIG;AACH,eAAO,MAAM,mBAAmB;;;;;;;;;;UAAoE,CAAA;AAEpG;;GAEG;AACH,eAAO,MAAM,mBAAmB;;;;;;;;;;YAA4B,CAAA;AAE5D;;;;;GAKG;AACH,eAAO,MAAM,qBAAqB;;;;;;;;;;mBAA8B,CAAA;AAEhE,wEAAwE;AACxE,MAAM,MAAM,gBAAgB,GAAG,OAAO,CAAC,WAAW,EAAE,IAAI,CAAC,CAAA;AACzD,2EAA2E;AAC3E,MAAM,MAAM,kBAAkB,GAAG,WAAW,CAAA"}
1
+ {"version":3,"file":"schema.d.ts","sourceRoot":"","sources":["../src/schema.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;GAoBG;AAEH,OAAO,CAAC,MAAM,0BAA0B,CAAA;AACxC,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,YAAY,CAAA;AAoB7C;;;;GAIG;AACH,eAAO,MAAM,iBAAiB;;;;;;;;;;aAAwC,CAAA;AAEtE;;;;GAIG;AACH,eAAO,MAAM,mBAAmB;;;;;;;;;;oBAAoE,CAAA;AAEpG;;GAEG;AACH,eAAO,MAAM,mBAAmB;;;;;;;;;;sBAA4B,CAAA;AAE5D;;;;;GAKG;AACH,eAAO,MAAM,qBAAqB;;;;;;;;;;6BAA8B,CAAA;AAEhE,wEAAwE;AACxE,MAAM,MAAM,gBAAgB,GAAG,OAAO,CAAC,WAAW,EAAE,IAAI,CAAC,CAAA;AACzD,2EAA2E;AAC3E,MAAM,MAAM,kBAAkB,GAAG,WAAW,CAAA"}
package/lib/service.d.ts CHANGED
@@ -16,7 +16,7 @@
16
16
  */
17
17
  import z from '@deepseek-ai/schemastery';
18
18
  import type { Context } from '@deepseek-ai/cordis';
19
- import type { SettingsNamespace } from '@deepseek-ai/dsh-settings';
19
+ import type { SettingsNamespace } from '@dsh-cc/settings-provider';
20
20
  import type { AliasInspection, AliasTarget, DetailedRoute, ResolvedRoute } from './types.ts';
21
21
  /** Plugin configuration: deployment-default alias map. */
22
22
  export interface Config {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@dsh-cc/model-aliases",
3
3
  "description": "Claude Code-compatible model alias resolution for the DeepSeek Harness",
4
- "version": "0.8.1",
4
+ "version": "0.8.2-rc.1",
5
5
  "repository": {
6
6
  "type": "git",
7
7
  "url": "git+https://github.com/dsh-cc/dsh-cc.git",
@@ -33,9 +33,8 @@
33
33
  ],
34
34
  "license": "Apache-2.0",
35
35
  "peerDependencies": {
36
- "@deepseek-ai/cordis": ">=0.1.5-rc.1",
37
- "@deepseek-ai/dsh-agent": ">=0.1.5-rc.1",
38
- "@deepseek-ai/dsh-settings": ">=0.1.5-rc.1",
36
+ "@deepseek-ai/cordis": ">=0.1.7-rc.2",
37
+ "@deepseek-ai/dsh-agent": ">=0.1.7-rc.2",
39
38
  "@deepseek-ai/schemastery": "^3.18.1"
40
39
  },
41
40
  "devDependencies": {
@@ -47,18 +46,18 @@
47
46
  "@deepseek-ai/dsh-session": "link:../../../../deepseek-harness/packages/core/session",
48
47
  "@deepseek-ai/dsh-session-persistence-jsonl": "link:../../../../deepseek-harness/packages/session/session-persistence-jsonl",
49
48
  "@deepseek-ai/dsh-session-projection": "link:../../../../deepseek-harness/packages/session/session-projection",
50
- "@deepseek-ai/dsh-settings": "link:../../../../deepseek-harness/packages/settings/settings",
51
49
  "@deepseek-ai/dsh-subagent": "link:../../../../deepseek-harness/packages/subagent/subagent",
52
50
  "@deepseek-ai/dsh-subagent-fork-in-process": "link:../../../../deepseek-harness/packages/subagent/subagent-fork-in-process",
53
51
  "@deepseek-ai/dsh-subagent-spawn-in-process": "link:../../../../deepseek-harness/packages/subagent/subagent-spawn-in-process",
54
52
  "@deepseek-ai/schemastery": "link:../../../../deepseek-harness/vendor/schemastery",
55
- "@dsh-cc/settings-ns": "^0.8.1",
53
+ "@dsh-cc/settings-provider": "^0.8.2-rc.1",
54
+ "@dsh-cc/settings-ns": "^0.8.2-rc.1",
56
55
  "@dsh-cc/agent-loop-mock": "^0.1.0"
57
56
  },
58
57
  "publishConfig": {
59
58
  "access": "public"
60
59
  },
61
60
  "dependencies": {
62
- "@dsh-cc/settings-ns": "^0.8.1"
61
+ "@dsh-cc/settings-ns": "^0.8.2-rc.1"
63
62
  }
64
63
  }