@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.
- package/demo/setup.js +9 -6
- 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: "
|
|
109
|
-
// matcher: "
|
|
110
|
-
// name: "
|
|
108
|
+
// event: "PostToolUse",
|
|
109
|
+
// matcher: "Write|Edit",
|
|
110
|
+
// name: "check-api-version",
|
|
111
111
|
// script: `
|
|
112
|
-
// // This runs after a
|
|
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
|
|
116
|
-
//
|
|
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
|
// ],
|