Skip to content
Closed
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
22 changes: 22 additions & 0 deletions .github/workflows/check.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: check

on:
pull_request:
push:
branches: [main]

permissions:
contents: read

jobs:
manifests:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- uses: actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065 # v5.6.0
with:
python-version: '3.11'
- name: install deps
run: pip install pyyaml
- name: run check.py
run: python3 scripts/check.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "equity-research",
"version": "0.1.0",
"version": "0.1.1",
"description": "Equity research tools: earnings analysis, initiating coverage reports, and research workflows",
"author": {
"name": "Anthropic FSI"
Expand Down
4 changes: 3 additions & 1 deletion plugins/vertical-plugins/equity-research/hooks/hooks.json
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
[]
{
"hooks": {}
}
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "financial-analysis",
"version": "0.1.0",
"version": "0.1.1",
"description": "Core financial modeling and analysis tools: DCF, comps, LBO, 3-statement models, competitive analysis, and deck QC",
"author": {
"name": "Anthropic FSI"
Expand Down
4 changes: 3 additions & 1 deletion plugins/vertical-plugins/financial-analysis/hooks/hooks.json
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
[]
{
"hooks": {}
}
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "private-equity",
"version": "0.1.0",
"version": "0.1.1",
"description": "Private equity deal sourcing and workflow tools: company discovery, CRM integration, and founder outreach",
"author": {
"name": "Anthropic FSI"
Expand Down
4 changes: 3 additions & 1 deletion plugins/vertical-plugins/private-equity/hooks/hooks.json
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
[]
{
"hooks": {}
}
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "wealth-management",
"version": "0.1.0",
"version": "0.1.1",
"description": "Wealth management and financial advisory tools: client reviews, financial planning, portfolio analysis, and client reporting",
"author": {
"name": "Anthropic FSI"
Expand Down
4 changes: 3 additions & 1 deletion plugins/vertical-plugins/wealth-management/hooks/hooks.json
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
[]
{
"hooks": {}
}
14 changes: 14 additions & 0 deletions scripts/check.py
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,20 @@ def rel(p: Path) -> str:
except json.JSONDecodeError as e:
err(f"JSON parse: {rel(jf)}: {e}")

# --- 2b. hooks.json schema --- must be {"hooks": {...}}, never [] ----------
for hjf in sorted(PLUGINS.glob("**/hooks/hooks.json")):
checked += 1
try:
data = json.loads(hjf.read_text())
except json.JSONDecodeError as e:
err(f"hooks.json parse: {rel(hjf)}: {e}")
continue
if not isinstance(data, dict) or "hooks" not in data:
err(
f'hooks.json: {rel(hjf)}: must be {{"hooks": {{...}}}}, '
f"got {type(data).__name__}"
)

# --- 3. agent.md frontmatter -----------------------------------------------
for md in sorted(PLUGINS.glob("agent-plugins/*/agents/*.md")):
checked += 1
Expand Down