@lmzhen/dsh-evolution-plan-validator 0.1.0-rc.32 → 0.1.0-rc.34

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 +1 -0
  2. package/package.json +1 -1
package/lib/index.js CHANGED
@@ -244,6 +244,7 @@ function validateSkillOp(op, context, index) {
244
244
  if (!SKILL_ACTIONS.has(action)) return `skill op ${index}: unknown action ${action}`;
245
245
  if ((action === "create" || action === "edit" || action === "update") && !(op.content ?? "").trim()) return `skill op ${index}: ${action} requires content`;
246
246
  if (action === "patch" && !(op.old_string ?? "")) return `skill op ${index}: patch requires old_string`;
247
+ if (action === "delete" && !(op.absorbed_into ?? "").trim()) return `skill op ${index}: delete requires absorbed_into`;
247
248
  const writeContent = op.file_content ?? op.content ?? "";
248
249
  if (action === "write_file" && !writeContent.trim()) return `skill op ${index}: write_file requires file_content`;
249
250
  if (writeContent.length > (context.maxSkillContentChars ?? 1e5)) return `skill op ${index}: content exceeds skill budget`;
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.1.0-rc.32",
4
+ "version": "0.1.0-rc.34",
5
5
  "publishConfig": {
6
6
  "access": "public"
7
7
  },