@uinaf/skillcheck 1.6.1 → 1.6.2
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/dist/skill-evidence.js +2 -2
- package/docs/scenarios.md +1 -1
- package/package.json +1 -1
package/dist/skill-evidence.js
CHANGED
|
@@ -34,8 +34,8 @@ function skillEvidence(context) {
|
|
|
34
34
|
const target = real(named);
|
|
35
35
|
return inside && target !== void 0 && installed.has(target);
|
|
36
36
|
})) return `read of the installed ${skill}/SKILL.md`;
|
|
37
|
-
const
|
|
38
|
-
if (calls(metadata?.toolCalls).find((c) => c.name === "Bash" && c.is_error === false && typeof c.
|
|
37
|
+
const opening = [...installed].map((p) => fs.readFileSync(p, "utf8").slice(0, 300).trim()).filter((t) => t.length >= 40);
|
|
38
|
+
if (calls(metadata?.toolCalls).find((c) => c.name === "Bash" && c.is_error === false && typeof c.output === "string" && opening.some((t) => c.output.includes(t)))) return `shell read of the installed ${skill}/SKILL.md`;
|
|
39
39
|
}
|
|
40
40
|
function assertSkillUsed(_output, context) {
|
|
41
41
|
const evidence = skillEvidence(context);
|
package/docs/scenarios.md
CHANGED
|
@@ -58,7 +58,7 @@ that aggregate, so a run that produces good output without ever loading the
|
|
|
58
58
|
skill still fails. The skill counts as loaded when the harness reports a skill
|
|
59
59
|
call for it, or when the agent completed a read of the installed
|
|
60
60
|
`<config-root>/skills/<skill>/SKILL.md` in its workdir, or a successful shell
|
|
61
|
-
command
|
|
61
|
+
command whose output carries the installed file's opening text.
|
|
62
62
|
Claude Code often reads the file directly instead of calling its Skill tool,
|
|
63
63
|
sometimes from a shell, and either way the same instructions reach its context.
|
|
64
64
|
|