Skip to content

Commit 60135bf

Browse files
avifeneshagent-core-bot
andauthored
chore: sync core lib and CLAUDE.md from agent-core (#34)
Co-authored-by: agent-core-bot <noreply@agent-sh.github.io>
1 parent e52b49d commit 60135bf

2 files changed

Lines changed: 7 additions & 1 deletion

File tree

lib/enhance/skill-patterns.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,11 @@ const skillPatterns = {
7676
(content && p.test(content));
7777
});
7878

79-
if (hasSideEffects && frontmatter['disable-model-invocation'] !== true) {
79+
// Accept both the YAML boolean `true` and the quoted string "true" -
80+
// users commonly write `disable-model-invocation: "true"`, which YAML
81+
// parses as a string; a strict `!== true` would wrongly re-flag it.
82+
const dmi = frontmatter['disable-model-invocation'];
83+
if (hasSideEffects && dmi !== true && dmi !== 'true') {
8084
return {
8185
issue: 'Skill with side effects should have disable-model-invocation: true',
8286
fix: 'Add "disable-model-invocation: true" to frontmatter for manual-only invocation'

lib/index.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ const customHandler = require('./sources/custom-handler');
2525
const policyQuestions = require('./sources/policy-questions');
2626
const crossPlatform = require('./cross-platform');
2727
const enhance = require('./enhance');
28+
const repoIntel = require('./repo-intel');
2829
const repoMap = require('./repo-map');
2930
const perf = require('./perf');
3031
const collectors = require('./collectors');
@@ -250,6 +251,7 @@ module.exports = {
250251
sources,
251252
xplat,
252253
enhance,
254+
repoIntel,
253255
repoMap,
254256
perf,
255257
collectors,

0 commit comments

Comments
 (0)