anthropics / anthropics/financial-services

hooks/hooks.json format bug: `[]` should be `{"hooks": {}}` — 4 vertical plugins fail to load

Đang mở
#223 0 bình luận 0 reaction 0 người được giao Xem trên GitHub
Ngôn ngữ chính
Python
Star
34.8k
Fork
5.2k
Merge trung bình
2 giờ 2 phút
Pull request đã merge (30 ngày)
3

Mô tả

## Bug

After running `claude plugin install` for all 17 plugins in this marketplace, 4 of them fail to load with:

```
Hook load failed: [
{
"expected": "record",
"code": "invalid_type",
"path": [],
"message": "Invalid input: expected record, received array"
}
]
```

## Affected plugins

- `financial-analysis` (the core base — most impactful, blocks downstream usage)
- `equity-research`
- `private-equity`
- `wealth-management`

## Root cause

The `hooks/hooks.json` file in these 4 plugins contains an empty array:

```json
[]
```

But Claude Code's plugin loader expects an object with a `hooks` field:

```json
{
"hooks": {}
}
```

Other vertical plugins (e.g. `investment-banking`, `fund-admin`, `operations`) already use the correct format and load fine — so the fix is just normalizing these 4 files.

## Reproduction

```bash
claude plugin marketplace add anthropics/financial-services
claude plugin install financial-analysis@claude-for-financial-services
claude plugin list # → financial-analysis: ✘ failed to load
```

## Suggested fix

Replace contents of these files from `[]` to `{"hooks": {}}`:

- `plugins/vertical-plugins/financial-analysis/hooks/hooks.json`
- `plugins/vertical-plugins/equity-research/hooks/hooks.json`
- `plugins/vertical-plugins/private-equity/hooks/hooks.json`
- `plugins/vertical-plugins/wealth-management/hooks/hooks.json`

After applying the fix locally, all 17 plugins load successfully.

## Environment

- Claude Code: 2.1.143
- OS: macOS (Darwin 24.6.0)
- Installed via `claude plugin marketplace add anthropics/financial-services` on 2026-05-17

Happy to send a PR if helpful.

Hướng dẫn đóng góp

Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.