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.
Files changed (2) hide show
  1. package/bin/cli.js +5 -5
  2. 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(tools, command, timeout) {
216
- return { matcher: { tools }, hooks: [hook(command, timeout)] };
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(["Write", "Edit", "MultiEdit"], "block-orchestrator-writes.sh", 5),
231
- withMatcher(["Teammate"], "validate-spawn-prompt.sh", 5)
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(["Write", "Edit", "MultiEdit"], "track-file-modifications.sh", 3)
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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cc-workspace",
3
- "version": "4.0.1",
3
+ "version": "4.0.2",
4
4
  "description": "Claude Code multi-workspace orchestrator — skills, hooks, agents, and templates for multi-service projects",
5
5
  "bin": {
6
6
  "cc-workspace": "./bin/cli.js"