@dsmm/dsmm 0.3.29 → 0.3.30

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,6 +1,8 @@
1
1
  # DSMM compatibility and upgrade boundaries
2
2
 
3
- **DSMM 0.3.28 supports DSH `>=0.2.1-rc.2 <0.2.2-0 || >=0.2.2-rc.1 <0.3.0`** and Node.js 22 or later. The dual branch admits the 0.2.2 RC series (from `0.2.2-rc.1` on) while keeping every supported 0.2.1 release in range; `0.2.2-alpha.*` is deliberately excluded. Official DSH rc.3+ gives `engines.dsh` precedence over peer ranges (peers are ignored when `engines.dsh` is present) and evaluates ranges with prereleases included; strict npm semantics additionally need the explicit second branch, so the declaration is accurate under both readings. The `<0.3.0` upper bound lets future `0.3.0-rc.x` pass the Host gate under its includePrerelease reading; strict consumers exclude it. DSH dependencies, peerDependencies and devDependencies use the same non-exact range as `engines.dsh`, so a Host profile resolves them to its in-range version instead of being shadowed by a pinned `0.2.1-rc.2` copy; the lockfile keeps `0.2.1-rc.2` as the development baseline; versions outside the declared Host range aren't supported.
3
+ **DSMM supports DSH `>=0.2.1-rc.2 <0.2.2-0 || >=0.2.2-rc.1 <0.3.0` and Node.js 22 or later.** Install DSMM into a DSH profile. The CLI's profile resolver supplies DSH, Cordis, Schemastery and Pi SDK modules from the running DSH installation. The release tarball declares no host SDK dependencies or peers, so package managers neither install them for DSMM nor keep the previous version's SDKs to satisfy DSMM peer references. A linked development checkout retains its host peer declarations.
4
+
5
+ After upgrading a profile, let its package manager update the lockfile and restart DSH. An explicitly installed or independently required profile-local DSH package can still shadow the host; review its owner before removing it. Do not force-enable an incompatible provider or change the native HTTP selection to work around a version mismatch.
4
6
 
5
7
  ## Supported integration
6
8
 
package/docs/testing.md CHANGED
@@ -70,6 +70,8 @@ when `agent.model.select` is unavailable. The resolver-free Fake-IP case skips o
70
70
  a resolver-capable Host; the existing address-policy/transport tests cover that
71
71
  implementation.
72
72
 
73
+ To test an installed tarball, use a disposable DSH home whose profile contains the base, headless and DSMM bundles. Install the tarball into that profile with normal peer resolution, separately from the Host installation. With `DSMM_TEST_DSH_ENTRY` set to the Host CLI entry, run `node test/installed-profile-web-probe.mjs <isolated-home> <profile-name>`. This checks native `http` through `web_fetch`, the selected Fake-IP provider's loopback refusal, and the modules resolved by the installed plugin. It uses a local model fixture and fetches public npm metadata without credentials.
74
+
73
75
  Missing anchors produce explicit skips. A skipped integration case is unavailable
74
76
  coverage, not a pass, and must be reported as such. The wrapper files remain the
75
77
  entry points for their `.mjs` fixtures so the underlying Host, CLI, approval and
@@ -6,8 +6,8 @@
6
6
 
7
7
  DSMM 包必须具备以下依赖和发布入口,才能使用此插件:
8
8
 
9
- - 运行依赖 `@deepseek-ai/dsh-web-fetch-http: >=0.2.1-rc.2 <0.2.2-0 || >=0.2.2-rc.1 <0.3.0`(与 `engines.dsh` 兼容窗口一致,非精确版本,避免在宿主 profile 中遮蔽更高版本的同类副本)和 `ipaddr.js: ^2.5.0`。
10
- - Host seam `@deepseek-ai/dsh-web: 0.2.1-rc.2`、`@deepseek-ai/dsh-http-proxy: 0.2.1-rc.2` 作为 peer 和开发依赖。保留现有 Cordis/timeout peers;不要另装一套 Host service。DSMM 与原生 HTTP provider 必须解析到 Host 实际使用的同一个 `dsh-http-proxy` 实例,否则预检读不到已安装的进程路由。
9
+ - `@deepseek-ai/dsh-web-fetch-http`、`@deepseek-ai/dsh-web`、`@deepseek-ai/dsh-http-proxy` 和 Cordis 均由运行中的 DSH 提供。DSMM 发布包不将这些宿主库声明为依赖或 peer;只有显式加载此入口才需要宿主的 HTTP provider 实现。
10
+ - `ipaddr.js` 是 DSMM 自有的地址处理依赖。DSMM 和原生 HTTP provider 使用宿主的同一份 `dsh-http-proxy`,从而读取相同的进程路由。
11
11
  - 包 export `./web-fetch-fakeip`,types 指向 `./lib/web-fetch-fakeip.d.ts`,default 指向 `./lib/web-fetch-fakeip.js`。构建也需包含其内部 `web-fetch-address-policy.js`。包的 `files` 应包含本说明和来源许可证。
12
12
 
13
13
  在用户所选原生 profile 的 patch 中显式挂载该入口,并修改原有 web service 的 `fetchProvider`(保留其真实 entry ID 和其他配置):
package/dsh-plugin.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "manifestVersion": "0.15",
4
4
  "id": "com.hugefiver.dsmm",
5
5
  "name": "DSMM",
6
- "version": "0.3.28",
6
+ "version": "0.3.30",
7
7
  "facets": {
8
8
  "host": {
9
9
  "entry": "lib/index.js",
@@ -110,9 +110,9 @@ export declare const childDisabledCopy: Record<RoleControlDisabledReason, readon
110
110
  export type ChildrenLocaleKey = keyof typeof childrenEn | `reason:${RoleControlDisabledReason}`;
111
111
  export declare const childrenLocaleEn: {
112
112
  "reason:unavailable": string;
113
- "reason:read-only": string;
114
113
  "reason:one-shot": string;
115
114
  "reason:module-off": string;
115
+ "reason:read-only": string;
116
116
  "reason:role-disabled": string;
117
117
  "reason:unknown-mode": string;
118
118
  "reason:not-direct-child": string;
@@ -223,9 +223,9 @@ export declare const childrenLocaleEn: {
223
223
  };
224
224
  export declare const childrenLocaleZh: {
225
225
  "reason:unavailable": string;
226
- "reason:read-only": string;
227
226
  "reason:one-shot": string;
228
227
  "reason:module-off": string;
228
+ "reason:read-only": string;
229
229
  "reason:role-disabled": string;
230
230
  "reason:unknown-mode": string;
231
231
  "reason:not-direct-child": string;
@@ -240,12 +240,12 @@ export declare const childrenLocaleZh: {
240
240
  session: string;
241
241
  field: string;
242
242
  unknown: string;
243
- stale: string;
244
- mode: string;
245
243
  prompt: string;
244
+ mode: string;
246
245
  captured: string;
247
246
  level: string;
248
247
  legacy: string;
248
+ stale: string;
249
249
  unverified: string;
250
250
  limitations: string;
251
251
  depth: string;
@@ -1,4 +1,4 @@
1
- import { remoteErrorOf } from "@deepseek-ai/dsh-typert-protocol";
1
+ import { isRemoteFailure } from "@deepseek-ai/dsh-api-gateway/client";
2
2
  import { parseRoleControlErrorInfo } from "../role-control-remote.js";
3
3
  class ObservationProtocolError extends Error {
4
4
  code;
@@ -10,7 +10,7 @@ class ObservationProtocolError extends Error {
10
10
  function observationIssue(error) {
11
11
  if (error instanceof ObservationProtocolError)
12
12
  return { kind: "protocol", code: error.code };
13
- const remote = remoteErrorOf(error);
13
+ const remote = isRemoteFailure(error) ? error : undefined;
14
14
  if (remote?.code === "dsmm-children/refused") {
15
15
  try {
16
16
  return { kind: "domain", ...parseRoleControlErrorInfo(remote.details) };