Skip to content

armgit / ECC

Public Imported from GitHub
0

The agent harness performance optimization system. Skills, instincts, memory, security, and research-first development for Claude Code, Codex, Opencode, Cursor and beyond.

test(hooks): keep matcher mirrors in sync

haelyrafab534f9247e
diff --git a/hooks/codex-hooks.json b/hooks/codex-hooks.json
index efcdcee91..551f7a4b4 100644
--- a/hooks/codex-hooks.json
+++ b/hooks/codex-hooks.json
@@ -3,7 +3,7 @@
"hooks": {
"SessionStart": [
{
- "matcher": "*",
+ "matcher": ".*",
"hooks": [
{
"type": "command",
diff --git a/tests/hooks/posttooluse-dispatcher.test.js b/tests/hooks/posttooluse-dispatcher.test.js
index 0900117d4..0ce83581e 100644
--- a/tests/hooks/posttooluse-dispatcher.test.js
+++ b/tests/hooks/posttooluse-dispatcher.test.js
@@ -82,7 +82,7 @@ function runTests() {
entries.map(entry => entry.id),
['post:dispatcher:sync', 'post:dispatcher:async']
);
- assert.ok(entries.every(entry => entry.matcher === '*'));
+ assert.ok(entries.every(entry => entry.matcher === '.*'));
assert.strictEqual(entries[0].hooks[0].async, undefined);
assert.strictEqual(entries[1].hooks[0].async, true);
assert.ok(entries[0].hooks[0].command.includes('posttooluse-dispatcher.js'));