@lmzhen/dsh-evolution-plan-validator 0.23.0 → 0.24.0
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/index.js +4 -4
- package/package.json +2 -2
package/lib/index.js
CHANGED
|
@@ -301,7 +301,7 @@ function validateEvolutionPlan(plan, context) {
|
|
|
301
301
|
rejected: [{
|
|
302
302
|
index: 0,
|
|
303
303
|
kind: "memory",
|
|
304
|
-
reason: "plan
|
|
304
|
+
reason: "plan 根节点:必须是对象"
|
|
305
305
|
}],
|
|
306
306
|
reports,
|
|
307
307
|
ok: false
|
|
@@ -321,18 +321,18 @@ function validateEvolutionPlan(plan, context) {
|
|
|
321
321
|
if (plan.memoryOps !== void 0 && !Array.isArray(plan.memoryOps)) rejected.push({
|
|
322
322
|
index: 0,
|
|
323
323
|
kind: "memory",
|
|
324
|
-
reason: "memoryOps
|
|
324
|
+
reason: "memoryOps:必须是数组"
|
|
325
325
|
});
|
|
326
326
|
if (plan.skillOps !== void 0 && !Array.isArray(plan.skillOps)) rejected.push({
|
|
327
327
|
index: 0,
|
|
328
328
|
kind: "skill",
|
|
329
|
-
reason: "skillOps
|
|
329
|
+
reason: "skillOps:必须是数组"
|
|
330
330
|
});
|
|
331
331
|
if (allOps === 0 && rejected.length === 0) {
|
|
332
332
|
rejected.push({
|
|
333
333
|
index: 0,
|
|
334
334
|
kind: "memory",
|
|
335
|
-
reason: "plan
|
|
335
|
+
reason: "plan 不含任何操作"
|
|
336
336
|
});
|
|
337
337
|
return {
|
|
338
338
|
accepted,
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lmzhen/dsh-evolution-plan-validator",
|
|
3
3
|
"description": "Deterministic validator for model-produced evolution plans (community build)",
|
|
4
|
-
"version": "0.
|
|
4
|
+
"version": "0.24.0",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public"
|
|
7
7
|
},
|
|
@@ -26,6 +26,6 @@
|
|
|
26
26
|
],
|
|
27
27
|
"license": "MIT",
|
|
28
28
|
"dependencies": {
|
|
29
|
-
"@lmzhen/dsh-evolution-core": "^0.
|
|
29
|
+
"@lmzhen/dsh-evolution-core": "^0.24.0"
|
|
30
30
|
}
|
|
31
31
|
}
|