Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions plugins/code-oz/.claude-plugin/plugin.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,5 @@
"./commands/code-oz-init.md",
"./commands/code-oz-doctor.md",
"./commands/code-oz-resume.md"
],
"hooks": "./hooks/hooks.json"
]
}
6 changes: 5 additions & 1 deletion tests/plugins/manifest-shape.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,11 @@ describe('plugins/code-oz manifest shape', () => {
expect(plugin.name).toBe('code-oz')
expect(typeof plugin.description).toBe('string')
expect((plugin.description as string).length).toBeGreaterThan(0)
expect(plugin.hooks).toBe('./hooks/hooks.json')
// The standard hooks/hooks.json auto-loads. Declaring it in manifest.hooks
// makes Claude Code load it twice and the plugin fails to load entirely
// ("Duplicate hooks file detected"). manifest.hooks must reference only
// ADDITIONAL hook files, so the code-oz plugin must not set it.
expect(plugin.hooks).toBeUndefined()
expect(Array.isArray(plugin.commands)).toBe(true)
expect(plugin.commands).toEqual(EXPECTED_COMMANDS)
})
Expand Down
Loading