@zhin.js/runtime 1.0.14 → 1.0.15
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/lib/config-composer.js +2 -0
- package/package.json +5 -5
package/lib/config-composer.js
CHANGED
|
@@ -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,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zhin.js/runtime",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.15",
|
|
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/
|
|
22
|
-
"@zhin.js/
|
|
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",
|
|
28
|
+
"@zhin.js/agent-feature": "1.0.13",
|
|
29
29
|
"@zhin.js/command": "1.0.16",
|
|
30
30
|
"@zhin.js/component": "1.0.13",
|
|
31
31
|
"@zhin.js/layout": "1.0.13",
|
|
32
32
|
"@zhin.js/mcp-feature": "1.0.13",
|
|
33
33
|
"@zhin.js/middleware": "1.0.13",
|
|
34
|
+
"@zhin.js/page": "1.0.13",
|
|
34
35
|
"@zhin.js/prompt-section": "0.0.1",
|
|
35
36
|
"@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": {
|