@cg3/equip 0.2.21 → 0.2.22

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.
Files changed (2) hide show
  1. package/demo/setup.js +9 -6
  2. package/package.json +1 -1
package/demo/setup.js CHANGED
@@ -105,15 +105,18 @@ const equip = new Equip({
105
105
  // events in supported platforms (currently Claude Code only).
106
106
  // hooks: [
107
107
  // {
108
- // event: "PostToolUseFailure",
109
- // matcher: "Bash",
110
- // name: "search-on-error",
108
+ // event: "PostToolUse",
109
+ // matcher: "Write|Edit",
110
+ // name: "check-api-version",
111
111
  // script: `
112
- // // This runs after a Bash tool call fails.
112
+ // // This runs after a Write or Edit tool call completes.
113
113
  // // Hook scripts receive context via stdin (JSON).
114
114
  // const input = require("fs").readFileSync("/dev/stdin", "utf-8");
115
- // const { tool_input, tool_output } = JSON.parse(input);
116
- // console.log("Consider searching my-tool for:", tool_output?.stderr);
115
+ // const { tool_input } = JSON.parse(input);
116
+ // // Remind the agent to verify API versions after editing code
117
+ // if (tool_input?.file_path?.endsWith(".ts") || tool_input?.file_path?.endsWith(".js")) {
118
+ // console.log("Reminder: verify API versions with acme-docs after code changes.");
119
+ // }
117
120
  // `,
118
121
  // },
119
122
  // ],
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cg3/equip",
3
- "version": "0.2.21",
3
+ "version": "0.2.22",
4
4
  "description": "Universal MCP + behavioral rules installer for AI coding agents",
5
5
  "main": "index.js",
6
6
  "bin": {