@lmzhen/dsh-evolution-capability 0.3.63 → 0.3.65

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.
Files changed (2) hide show
  1. package/lib/index.js +2 -0
  2. package/package.json +11 -11
package/lib/index.js CHANGED
@@ -104,6 +104,8 @@ function validateCapabilityPackage(pkg, limits = EvolutionCapability.DEFAULT_LIM
104
104
  if (!code || typeof code !== "object" || Array.isArray(code)) errors.push("code object is required");
105
105
  else {
106
106
  const halves = code;
107
+ if (halves.host !== void 0 && typeof halves.host !== "string") errors.push("code.host must be a string");
108
+ if (halves.client !== void 0 && typeof halves.client !== "string") errors.push("code.client must be a string");
107
109
  const host = typeof halves.host === "string" ? halves.host : "";
108
110
  const client = typeof halves.client === "string" ? halves.client : "";
109
111
  if (host.length === 0 && client.length === 0) errors.push("at least one of code.host or code.client is required");
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@lmzhen/dsh-evolution-capability",
3
3
  "description": "Explicit staged governance adapter for Creator-mode capability packages (community build)",
4
- "version": "0.3.63",
4
+ "version": "0.3.65",
5
5
  "publishConfig": {
6
6
  "access": "public"
7
7
  },
@@ -31,22 +31,22 @@
31
31
  "license": "MIT",
32
32
  "dependencies": {
33
33
  "@deepseek-ai/schemastery": "^3.18.1",
34
- "@lmzhen/dsh-evolution-core": "^0.3.63"
34
+ "@lmzhen/dsh-evolution-core": "^0.3.65"
35
35
  },
36
36
  "peerDependencies": {
37
37
  "@deepseek-ai/dsh-invariants": "^0.1.1-rc.2",
38
38
  "@deepseek-ai/cordis": "^4.0.1",
39
- "@lmzhen/dsh-evolution-approval": "^0.3.63",
40
- "@lmzhen/dsh-evolution-state": "^0.3.63",
41
- "@lmzhen/dsh-evolution-state-storage": "^0.3.63"
39
+ "@lmzhen/dsh-evolution-approval": "^0.3.65",
40
+ "@lmzhen/dsh-evolution-state": "^0.3.65",
41
+ "@lmzhen/dsh-evolution-state-storage": "^0.3.65"
42
42
  },
43
43
  "devDependencies": {
44
44
  "@deepseek-ai/dsh-invariants": "^0.1.1-rc.2",
45
- "@lmzhen/dsh-evolution-approval": "^0.3.63",
46
- "@lmzhen/dsh-evolution-state": "^0.3.63",
47
- "@lmzhen/dsh-evolution-state-storage": "^0.3.63",
48
- "@lmzhen/dsh-evolution-io": "^0.3.63",
49
- "@lmzhen/dsh-evolution-io-node": "^0.3.63",
50
- "@lmzhen/dsh-evolution-state-json": "^0.3.63"
45
+ "@lmzhen/dsh-evolution-approval": "^0.3.65",
46
+ "@lmzhen/dsh-evolution-state": "^0.3.65",
47
+ "@lmzhen/dsh-evolution-state-storage": "^0.3.65",
48
+ "@lmzhen/dsh-evolution-io": "^0.3.65",
49
+ "@lmzhen/dsh-evolution-io-node": "^0.3.65",
50
+ "@lmzhen/dsh-evolution-state-json": "^0.3.65"
51
51
  }
52
52
  }