cc-workspace 4.0.1 → 4.0.2
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/bin/cli.js +5 -5
- package/package.json +1 -1
package/bin/cli.js
CHANGED
|
@@ -212,8 +212,8 @@ function generateSettings(orchDir) {
|
|
|
212
212
|
return { type: "command", command: `bash ${hp}/${command}`, timeout };
|
|
213
213
|
}
|
|
214
214
|
|
|
215
|
-
function withMatcher(
|
|
216
|
-
return { matcher
|
|
215
|
+
function withMatcher(matcher, command, timeout) {
|
|
216
|
+
return { matcher, hooks: [hook(command, timeout)] };
|
|
217
217
|
}
|
|
218
218
|
|
|
219
219
|
function withoutMatcher(command, timeout) {
|
|
@@ -227,8 +227,8 @@ function generateSettings(orchDir) {
|
|
|
227
227
|
},
|
|
228
228
|
hooks: {
|
|
229
229
|
PreToolUse: [
|
|
230
|
-
withMatcher(
|
|
231
|
-
withMatcher(
|
|
230
|
+
withMatcher("Write|Edit|MultiEdit", "block-orchestrator-writes.sh", 5),
|
|
231
|
+
withMatcher("Teammate", "validate-spawn-prompt.sh", 5)
|
|
232
232
|
],
|
|
233
233
|
SessionStart: [
|
|
234
234
|
withoutMatcher("session-start-context.sh", 10)
|
|
@@ -243,7 +243,7 @@ function generateSettings(orchDir) {
|
|
|
243
243
|
withoutMatcher("permission-auto-approve.sh", 3)
|
|
244
244
|
],
|
|
245
245
|
PostToolUse: [
|
|
246
|
-
withMatcher(
|
|
246
|
+
withMatcher("Write|Edit|MultiEdit", "track-file-modifications.sh", 3)
|
|
247
247
|
],
|
|
248
248
|
TeammateIdle: [
|
|
249
249
|
withoutMatcher("teammate-idle-check.sh", 5)
|
package/package.json
CHANGED