From d10f9c675e231d90ea08ceb9deb3ff83b025c523 Mon Sep 17 00:00:00 2001 From: Tom Boucher Date: Thu, 9 Jul 2026 21:21:49 -0400 Subject: [PATCH] test(#2091): update closed-vocab assertions for hermes extensionEvents dialect --- tests/capability-registry.test.cjs | 6 +++--- tests/host-integration.test.cjs | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/tests/capability-registry.test.cjs b/tests/capability-registry.test.cjs index e91321cf7..012abceac 100644 --- a/tests/capability-registry.test.cjs +++ b/tests/capability-registry.test.cjs @@ -3967,12 +3967,12 @@ describe('ADR-1016 phase 5a: closed-vocab set exports', () => { 'opencode-subset is NOT a hookEvents value — it is the extensionEvents vocabulary (#1943)'); }); - test('VALID_EXTENSION_EVENTS has the extension-system dialects (opencode/pi/none — #1943)', () => { + test('VALID_EXTENSION_EVENTS has the extension-system dialects (opencode/pi/hermes/none — #1943/#2091)', () => { assert.ok(VALID_EXTENSION_EVENTS instanceof Set); - for (const v of ['opencode', 'pi', 'none']) { + for (const v of ['opencode', 'pi', 'hermes', 'none']) { assert.ok(VALID_EXTENSION_EVENTS.has(v), 'VALID_EXTENSION_EVENTS must contain "' + v + '"'); } - assert.strictEqual(VALID_EXTENSION_EVENTS.size, 3); + assert.strictEqual(VALID_EXTENSION_EVENTS.size, 4); }); test('VALID_SANDBOX_TIERS has exactly 2 values', () => { diff --git a/tests/host-integration.test.cjs b/tests/host-integration.test.cjs index a08665e81..3f555ca8e 100644 --- a/tests/host-integration.test.cjs +++ b/tests/host-integration.test.cjs @@ -74,9 +74,9 @@ describe('extensionEventSurfaceFor (extension-system event dialect — #1943)', assert.equal(extensionEventSurfaceFor('nope'), null); assert.equal(extensionEventSurfaceFor(undefined), null); }); - test('EXTENSION_EVENT_SURFACES is frozen + covers opencode/pi/none', () => { + test('EXTENSION_EVENT_SURFACES is frozen + covers opencode/pi/hermes/none', () => { assert.equal(Object.isFrozen(EXTENSION_EVENT_SURFACES), true); - assert.deepEqual(Object.keys(EXTENSION_EVENT_SURFACES).sort(), ['none', 'opencode', 'pi']); + assert.deepEqual(Object.keys(EXTENSION_EVENT_SURFACES).sort(), ['hermes', 'none', 'opencode', 'pi']); }); });