@zhin.js/runtime 1.0.14 → 1.0.16

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.
@@ -76,6 +76,7 @@ export class ConfigComposer {
76
76
  allowUnionTypes: true,
77
77
  });
78
78
  ajv.addKeyword({ keyword: 'x-descriptionZh', schemaType: 'string' });
79
+ ajv.addKeyword({ keyword: 'x-keyPlaceholder', schemaType: 'string' });
79
80
  const validate = ajv.compile(effectiveSchema);
80
81
  if (!validate(document)) {
81
82
  throw new ConfigValidationError(formatErrors(validate.errors ?? []), source);
@@ -192,6 +193,7 @@ async function readOwnSchema(node) {
192
193
  throw new TypeError(`${file} root schema must declare properties; composition keywords (anyOf/oneOf/allOf/$ref) are not supported`);
193
194
  }
194
195
  return Object.freeze({
196
+ $id: `urn:zhin:plugin-config:${encodeURIComponent(String(node.id))}`,
195
197
  type: 'object',
196
198
  additionalProperties: false,
197
199
  ...schema,
@@ -11,6 +11,21 @@
11
11
  "description": "Providers, Agents, sessions, memory, tools, and execution security.",
12
12
  "x-descriptionZh": "Provider、Agent、会话、记忆、工具与执行安全策略。",
13
13
  "properties": {
14
+ "workroom": {
15
+ "type": "object",
16
+ "additionalProperties": true,
17
+ "description": "Process-owned Workroom control-plane policy; Projects remain in the persistent Catalog.",
18
+ "x-descriptionZh": "进程持有的 Workroom 控制面策略;Project 仍由持久化 Catalog 管理。",
19
+ "properties": {
20
+ "trustedPackPublishers": {
21
+ "type": "array",
22
+ "items": { "type": "string", "minLength": 1 },
23
+ "uniqueItems": true,
24
+ "description": "Authenticated Console principal ids allowed to publish shared Capability Packs.",
25
+ "x-descriptionZh": "允许发布共享 Capability Pack 的 Console 认证 principalId。"
26
+ }
27
+ }
28
+ },
14
29
  "agent": {
15
30
  "type": "object",
16
31
  "additionalProperties": true,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zhin.js/runtime",
3
- "version": "1.0.14",
3
+ "version": "1.0.16",
4
4
  "description": "Static Plugin graph, generation transaction and HMR Root runtime for Zhin.js",
5
5
  "type": "module",
6
6
  "main": "./lib/index.js",
@@ -18,22 +18,22 @@
18
18
  "dependencies": {
19
19
  "ajv": "8.18.0",
20
20
  "semver": "7.8.5",
21
- "@zhin.js/plugin-runtime": "1.1.8",
22
- "@zhin.js/feature-kit": "1.0.13"
21
+ "@zhin.js/feature-kit": "1.0.13",
22
+ "@zhin.js/plugin-runtime": "1.1.8"
23
23
  },
24
24
  "devDependencies": {
25
25
  "@types/node": "^26.1.2",
26
26
  "typescript": "^6.0.3",
27
- "@zhin.js/agent-feature": "1.0.13",
28
27
  "@zhin.js/adapter": "1.2.1",
29
28
  "@zhin.js/command": "1.0.16",
29
+ "@zhin.js/agent-feature": "1.0.13",
30
30
  "@zhin.js/component": "1.0.13",
31
- "@zhin.js/layout": "1.0.13",
32
31
  "@zhin.js/mcp-feature": "1.0.13",
32
+ "@zhin.js/page": "1.0.13",
33
+ "@zhin.js/layout": "1.0.13",
34
+ "@zhin.js/skill": "1.0.13",
33
35
  "@zhin.js/middleware": "1.0.13",
34
36
  "@zhin.js/prompt-section": "0.0.1",
35
- "@zhin.js/skill": "1.0.13",
36
- "@zhin.js/page": "1.0.13",
37
37
  "@zhin.js/tool": "1.0.13"
38
38
  },
39
39
  "repository": {