wiki/scripts/build_alpha_library.py (475L) - Reads manifest.json produced by `vibe-trading alpha export-manifest` - Emits per-alpha pages (content/<zoo>/<id>.html) and per-zoo overview tables (content/<zoo>/index.html) — 452 + 4 = 456 pages - Jinja2 with select_autoescape(["html","xml"]) mandatory; no |safe on user-derived content; strict CSP on every generated page (default-src 'self'; style-src 'self' 'unsafe-inline'; script-src 'none'; img-src 'self' data:) - Emits content/index.json for the landing page to hydrate per-zoo counts via fetch() - Friendly exit when manifest.json missing - End-of-main self-test compares manifest formula content against rendered HTML to verify the escape pipeline; prints "html escape ok" or "html escape FAIL" wiki/alpha-library/index.html (rewritten from 78-line shell to 192L) - Hero + 4 zoo cards (Kakushadze 101 Formulaic Alphas, qlib158, gtja191, academic) + stats grid + 3-line CLI quickstart + GitHub footer - Per-zoo counts hydrated at runtime from content/index.json - Loose CSP (script-src 'self' 'unsafe-inline') only on this landing page to keep the site theme-init inline script and the inline fetch() — generated /content/** pages stay on script-src 'none' wiki/research-lab/index.html - Post grid replacing the empty hero stub; links to the new blog - One-line lede explaining the section wiki/research-lab/posts/alpha-191-in-2026.html (~675L, ~2400 words) - 6-section deep-dive: TL;DR / Background / Method / Findings / Caveats / Reproduce - Numbers from a real bench run on CSI 300 / 2018-2025: 10 alive, 15 reversed, 165 dead (of 190 tested, 1 skipped). Top 5 by IR: gtja191_171 / _111 / _163 / _002 / _054. Theme survival rates: microstructure 22%, reversal 11%, volatility 8%, volume 5%, momentum 2%, liquidity 0% - Survivorship-bias caveat for cross-zoo readers (the current constituent list of any index is a forward-biased proxy for the point-in-time constituents during the window) - Strict CSP (script-src 'none'); no MathJax/KaTeX — formula_latex rendered as <code class="formula">; aggregate stats only (no per-stock per-date values, Tushare ToS) wiki/research-lab/posts/alpha-191-in-2026.tweet.md - HKUDS-style draft tweet (Chao Huang voice): emoji-decorated project name, real numbers (10 / 15 / 165), 8-year OOS qualifier, GitHub + pip links, ≤2 hashtags. READY to post once the release goes live. .gitignore adds wiki/alpha-library/manifest.json and wiki/alpha-library/content/ as generated, never-checked-in artifacts.
80 lines
1.3 KiB
Plaintext
80 lines
1.3 KiB
Plaintext
.venv/
|
|
agent/.venv/
|
|
__pycache__/
|
|
.pytest_cache/
|
|
*.pyc
|
|
|
|
.env
|
|
agent/.env
|
|
|
|
.claude/*
|
|
!.claude/hooks.json
|
|
CLAUDE.md
|
|
.vscode/
|
|
learn-claude-code-main/
|
|
agent/sessions/
|
|
agent/runs/
|
|
agent/.ui_runtime/
|
|
agent/.tasks/
|
|
agent/uploads/
|
|
agent/tests/*_result.json
|
|
.ruff_cache/
|
|
frontend/dist/
|
|
frontend/tsconfig.tsbuildinfo
|
|
wiki/node_modules/
|
|
wiki/dist/
|
|
wiki/.astro/
|
|
wiki/.vite/
|
|
wiki/.wrangler/
|
|
wiki/.cache/
|
|
.vibe-dev/
|
|
.vibe-record/
|
|
.cache/
|
|
.remotion/
|
|
|
|
# DuckDB data cache
|
|
data/*.duckdb
|
|
data/*.duckdb.wal
|
|
data/.duckdb_tmp/
|
|
data/parquet/
|
|
data/backup/
|
|
|
|
# Internal docs (plans, specs)
|
|
docs/
|
|
!wiki/docs/
|
|
!wiki/docs/**
|
|
data/minutes/
|
|
data/overnight*.log
|
|
data/*.log
|
|
data/test_write.txt
|
|
agent/.pytest_tmp/
|
|
agent/vibe_trading.egg-info/
|
|
agent/vibe_trading_ai.egg-info/
|
|
agent/tests/e2e_backtest/
|
|
dist/
|
|
build/
|
|
|
|
# Local demo videos (too large for git; link to external host instead)
|
|
assets/*.mp4
|
|
|
|
# Local demo / promo production workspace
|
|
demo/
|
|
|
|
# Manual E2E smoke tests — require live API keys (OpenRouter / yfinance),
|
|
# would break CI if committed. Kept local; run explicitly when validating
|
|
# a release.
|
|
agent/tests/e2e_*.py
|
|
agent/tests/test_e2e_*.py
|
|
|
|
# Local working notes
|
|
NOTES.md
|
|
|
|
# Agent tool aliases (auto-generated mirror of CLAUDE.md)
|
|
AGENTS.md
|
|
|
|
.DS_Store
|
|
|
|
# Alpha Zoo wiki artifacts (generated, not source)
|
|
wiki/alpha-library/manifest.json
|
|
wiki/alpha-library/content/
|