@wix/evalforge-evaluator 0.36.0 → 0.38.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/build/index.js CHANGED
@@ -37418,7 +37418,8 @@ IMPORTANT: This is an automated evaluation run. Follow these guidelines:
37418
37418
  3. Do NOT use the Task tool to delegate simple operations - do them directly yourself.
37419
37419
  4. Keep your approach simple and direct - avoid excessive planning.
37420
37420
  5. Make targeted edits using Read and Edit tools rather than exploring the entire codebase.
37421
- 6. If you encounter an error, fix it directly rather than starting over.`;
37421
+ 6. If you encounter an error, fix it directly rather than starting over.
37422
+ 7. The PROJECT ROOT (template root) is: ${options.cwd}. Create ALL files in the project root. Use paths relative to the project root for file operations.`;
37422
37423
  const fullPrompt = scenario.triggerPrompt + evaluatorPromptSuffix;
37423
37424
  for await (const message of query({
37424
37425
  prompt: fullPrompt,
@@ -37722,8 +37723,12 @@ Stack: ${errorStack.split("\n").slice(0, 5).join("\n")}` : "")
37722
37723
  };
37723
37724
  }
37724
37725
  async function writeSkillToFilesystem(cwd, skill) {
37725
- const skillName = skill.name;
37726
- const skillDir = (0, import_path5.join)(cwd, ".claude", "skills", skillName);
37726
+ if (!(0, import_evalforge_types.isValidSkillFolderName)(skill.name)) {
37727
+ throw new Error(
37728
+ `Invalid skill name "${skill.name}": must be kebab-case (lowercase letters, numbers, hyphens only, e.g. my-skill)`
37729
+ );
37730
+ }
37731
+ const skillDir = (0, import_path5.join)(cwd, ".claude", "skills", skill.name.trim());
37727
37732
  await (0, import_promises3.mkdir)(skillDir, { recursive: true });
37728
37733
  const skillPath = (0, import_path5.join)(skillDir, "SKILL.md");
37729
37734
  await (0, import_promises3.writeFile)(skillPath, skill.skillMd, "utf-8");