mirror of
https://github.com/affaan-m/everything-claude-code.git
synced 2026-05-20 19:29:58 +08:00
fix(hooks): avoid escaped quotes in plugin bootstrap
Generate the inline hook root resolver with single-quoted JavaScript literals so Windows Git Bash does not choke on nested escaped double quotes before Node starts. Refresh hooks.json and add regression coverage for parsed hook commands and installed hook manifests.
This commit is contained in:
committed by
Affaan Mustafa
parent
f93e8f6869
commit
6cb194a3c6
@@ -38,8 +38,9 @@ test('skill-health command uses shared inline resolver in all shell snippets', (
|
||||
});
|
||||
|
||||
test('inline resolver covers current and legacy marketplace plugin roots', () => {
|
||||
assert.ok(INLINE_RESOLVE.includes('"marketplaces","ecc"'));
|
||||
assert.ok(INLINE_RESOLVE.includes('"marketplaces","everything-claude-code"'));
|
||||
assert.ok(INLINE_RESOLVE.includes("'marketplaces','ecc'"));
|
||||
assert.ok(INLINE_RESOLVE.includes("'marketplaces','everything-claude-code'"));
|
||||
assert.ok(!INLINE_RESOLVE.includes('\\"'), 'Inline resolver should not require escaped double quotes');
|
||||
});
|
||||
|
||||
console.log(`Passed: ${passed}`);
|
||||
|
||||
Reference in New Issue
Block a user