mirror of
https://github.com/vercel/vercel-plugin.git
synced 2026-09-14 15:39:47 +08:00
1d5f084780
Update build-manifest.ts to include bodyPath in each skill manifest entry pointing to the SKILL.md file. Update all SKILL.md frontmatter across all skills to ensure consistent formatting. Add vercel-config.mjs improvements for key-aware skill routing. Add tests/build-skill-map.test.ts for skill map construction. Add golden fixture JSON files (golden-bash-cap-collision, golden-bash-next-dev, golden-edit-middleware, golden-read-env-local, golden-read-vercel-json, golden-vercel-json-crons, golden-vercel-json-rewrites) for deterministic match engine validation. Add tests/fuzz-glob.test.ts and tests/fuzz-yaml.test.ts for property-based testing of the glob-to-regex and YAML parsers. Update snapshot files for injection output. Update validate.ts and validate.test.ts with command convention checks. Update HOOKS.md documentation. Update pretooluse-skill-inject.mjs, skill-map-frontmatter.mjs, and vercel-config.mjs hook modules. Bump plugin.json version from 0.2.0 to 0.3.0.
19 lines
449 B
JSON
19 lines
449 B
JSON
{
|
|
"description": "Golden snapshot: Read .env.local triggers env-vars skill",
|
|
"input": {
|
|
"tool_name": "Read",
|
|
"tool_input": { "file_path": "/project/.env.local" }
|
|
},
|
|
"expected": {
|
|
"skillInjection": {
|
|
"version": 1,
|
|
"toolName": "Read",
|
|
"toolTarget": "/project/.env.local",
|
|
"matchedSkills": ["env-vars"],
|
|
"injectedSkills": ["env-vars"],
|
|
"droppedByCap": [],
|
|
"droppedByBudget": []
|
|
}
|
|
}
|
|
}
|