@uinaf/skillcheck 1.7.0 → 1.7.1

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.
@@ -36,6 +36,18 @@ function skillEvidence(context) {
36
36
  })) return `read of the installed ${skill}/SKILL.md`;
37
37
  const opening = [...installed].map((p) => fs.readFileSync(p, "utf8").slice(0, 300).trim()).filter((t) => t.length >= 40);
38
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
+ if (codexCommandOutputs(context.providerResponse?.raw).some((out) => opening.some((t) => out.includes(t)))) return `shell read of the installed ${skill}/SKILL.md`;
40
+ }
41
+ function codexCommandOutputs(raw) {
42
+ let parsed = raw;
43
+ if (typeof raw === "string") try {
44
+ parsed = JSON.parse(raw);
45
+ } catch {
46
+ return [];
47
+ }
48
+ const items = parsed?.items;
49
+ if (!Array.isArray(items)) return [];
50
+ return items.flatMap((item) => item?.type === "command_execution" && typeof item.aggregated_output === "string" ? [item.aggregated_output] : []);
39
51
  }
40
52
  function assertSkillUsed(_output, context) {
41
53
  const evidence = skillEvidence(context);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@uinaf/skillcheck",
3
- "version": "1.7.0",
3
+ "version": "1.7.1",
4
4
  "description": "Lint and eval harness for agent skills",
5
5
  "homepage": "https://github.com/uinaf/skillcheck#readme",
6
6
  "bugs": {