@crazx/dsh-agent-default-model 0.1.2-alpha.3.zw.2 → 0.1.2-alpha.5.zw.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 run verify-translation-pairing --write packages/core/agent-default-model/README.md
5
- README.md: 8f447c48d352406a8c3035b1ff0407367e1bc1c3
6
- README.zh.md: cca145bde078145505dd5718b222bbc55248ae13
5
+ README.md: 8b00e02b6e7d6a863299f3f66e63e729ceebd3cb
6
+ README.zh.md: faa6d56a94046203fdaf14a2577e3279bdad8375
package/README.md CHANGED
@@ -82,7 +82,7 @@ The service is a composition entry with a settings-backed source. The plugin con
82
82
  | File | Role |
83
83
  |---|---|
84
84
  | [`src/index.ts`](src/index.ts) | Plugin entry: `AgentDefaultModelConfig` service, settings section install, `currentSelection`/`saveSelection` |
85
- | [`src/invariant.ts`](src/invariant.ts) | Invariant companion |
85
+ | | No runtime invariant companion is published; settings validation owns the only mutable-value relationship. |
86
86
 
87
87
  ### Behavior notes
88
88
 
package/README.zh.md CHANGED
@@ -82,7 +82,7 @@ await ctx.agentDefaultModel.saveSelection({ provider, model, reasoningEffort: 'h
82
82
  | 文件 | 职责 |
83
83
  |---|---|
84
84
  | [`src/index.ts`](src/index.ts) | 插件入口:`AgentDefaultModelConfig` 服务、设置分节安装、`currentSelection`/`saveSelection` |
85
- | [`src/invariant.ts`](src/invariant.ts) | 不变式配套 |
85
+ | | 不发布运行时不变式伴生入口;唯一的可变值关系由 settings 校验负责。 |
86
86
 
87
87
  ### 行为说明
88
88
 
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@crazx/dsh-agent-default-model",
3
3
  "description": "Default model selection shared by Agent entry points",
4
- "version": "0.1.2-alpha.3.zw.2",
4
+ "version": "0.1.2-alpha.5.zw.1",
5
5
  "publishConfig": {
6
6
  "access": "public"
7
7
  },
@@ -18,16 +18,11 @@
18
18
  "types": "./lib/types/index.d.ts",
19
19
  "default": "./lib/index.js"
20
20
  },
21
- "./invariant": {
22
- "types": "./lib/types/invariant.d.ts",
23
- "default": "./lib/invariant.js"
24
- },
25
21
  "./src/*": "./src/*",
26
22
  "./package.json": "./package.json"
27
23
  },
28
24
  "files": [
29
25
  "lib/index.js",
30
- "lib/invariant.js",
31
26
  "lib/types/**/*.d.ts"
32
27
  ],
33
28
  "license": "MIT",
@@ -35,17 +30,15 @@
35
30
  "@deepseek-ai/schemastery": "^3.18.2"
36
31
  },
37
32
  "peerDependencies": {
38
- "@deepseek-ai/dsh-agent": "^0.1.2-alpha.3",
39
- "@deepseek-ai/dsh-invariants": "^0.1.2-alpha.3",
40
- "@deepseek-ai/dsh-llm": "^0.1.2-alpha.3",
41
- "@deepseek-ai/dsh-settings": "^0.1.2-alpha.3",
33
+ "@deepseek-ai/dsh-agent": "^0.1.2-alpha.5",
34
+ "@deepseek-ai/dsh-llm": "^0.1.2-alpha.5",
35
+ "@deepseek-ai/dsh-settings": "^0.1.2-alpha.5",
42
36
  "@deepseek-ai/cordis": "^4.0.2"
43
37
  },
44
38
  "devDependencies": {
45
- "@deepseek-ai/dsh-agent": "^0.1.2-alpha.3",
46
- "@deepseek-ai/dsh-invariants": "^0.1.2-alpha.3",
47
- "@deepseek-ai/dsh-llm": "^0.1.2-alpha.3",
48
- "@deepseek-ai/dsh-settings": "^0.1.2-alpha.3",
39
+ "@deepseek-ai/dsh-agent": "^0.1.2-alpha.5",
40
+ "@deepseek-ai/dsh-llm": "^0.1.2-alpha.5",
41
+ "@deepseek-ai/dsh-settings": "^0.1.2-alpha.5",
49
42
  "@deepseek-ai/cordis": "^4.0.2"
50
43
  }
51
44
  }
package/lib/invariant.js DELETED
@@ -1,25 +0,0 @@
1
- //#region lib/types/invariant.js
2
- /**
3
- * Package-owned invariant companion for the default Agent model selection.
4
- *
5
- * The service owns no independent event relationship: settings registration
6
- * already validates every mutable value before `currentSelection()` can observe it.
7
- * The empty installer keeps that absence explicit in composed invariant sets.
8
- *
9
- * @module @deepseek-ai/dsh-agent-default-model/invariant
10
- */
11
- const PACKAGE_NAME = "@deepseek-ai/dsh-agent-default-model";
12
- /** Cordis companion plugin name. */
13
- const name = "agent-default-model-invariant";
14
- /** Services required before the companion can register. */
15
- const inject = ["invariants"];
16
- /** No runtime invariant: settings validation owns the only mutable-value relationship. */
17
- const install = () => {};
18
- /**
19
- * Register the intentionally empty invariant contribution.
20
- * @param ctx - Cordis context carrying the invariant service.
21
- * @returns the installed registration's disposer after setup succeeds.
22
- */
23
- const apply = (ctx) => Promise.resolve(ctx.invariants.register(PACKAGE_NAME, install));
24
- //#endregion
25
- export { apply, inject, name };
@@ -1,21 +0,0 @@
1
- /**
2
- * Package-owned invariant companion for the default Agent model selection.
3
- *
4
- * The service owns no independent event relationship: settings registration
5
- * already validates every mutable value before `currentSelection()` can observe it.
6
- * The empty installer keeps that absence explicit in composed invariant sets.
7
- *
8
- * @module @deepseek-ai/dsh-agent-default-model/invariant
9
- */
10
- import type { Context } from '@deepseek-ai/cordis';
11
- /** Cordis companion plugin name. */
12
- export declare const name = "agent-default-model-invariant";
13
- /** Services required before the companion can register. */
14
- export declare const inject: string[];
15
- /**
16
- * Register the intentionally empty invariant contribution.
17
- * @param ctx - Cordis context carrying the invariant service.
18
- * @returns the installed registration's disposer after setup succeeds.
19
- */
20
- export declare const apply: (ctx: Context) => Promise<() => void>;
21
- //# sourceMappingURL=invariant.d.ts.map