{ "project_name": "AI Forecast", "description": "Project with 287 files, 5435 symbols. javascript, python, yaml. 31 API endpoints.", "tabs": [ { "name": "UI / Frontend — frontend/", "badge": "TAB", "cards": [ { "title": "📥 Files", "body": "
frontend/workspace.jsapiJsonRequest — function in frontend/app.jsapiRequest — function in frontend/app.jsapplyHeaderVisibility — function in frontend/app.jsapplySymbolToActivePane — function in frontend/app.jsapplyTheme — function in frontend/app.jsbuildGaugeSvg — function in frontend/app.jsDELETE /api/cache, GET /",
"class": "warning"
},
{
"title": "📁 Structure",
"body": "libs/chronos-forecasting/src/chronos/chronos2/layers.pylibs/chronos-forecasting/src/chronos/chronos2/layers.pylibs/chronos-forecasting/src/chronos/chronos2/layers.pylibs/chronos-forecasting/src/chronos/chronos2/layers.pydownload_model_files_from_cloudfront — function in libs/chronos-forecasting/src/chronos/boto_utils.py__init__ — method in libs/chronos-forecasting/src/chronos/chronos2/layers.py_eager_attention — method in libs/chronos-forecasting/src/chronos/chronos2/layers.py_sdpa_attention — method in libs/chronos-forecasting/src/chronos/chronos2/layers.pyapply_rotary_pos_emb — method in libs/chronos-forecasting/src/chronos/chronos2/layers.pyforward — method in libs/chronos-forecasting/src/chronos/chronos2/layers.pyrotate_half — method in libs/chronos-forecasting/src/chronos/chronos2/layers.pybatchify — function in libs/chronos-forecasting/src/chronos/base.pylibs/timesfm/timesfm-forecasting/scripts/check_system.pylibs/timesfm/timesfm-forecasting/scripts/check_system.pylibs/timesfm/tests/test_torch_utils.pylibs/timesfm/tests/test_torch_utils.pynormalize — function in libs/timesfm/src/timesfm/utils/xreg_lib.py_get_total_ram_gb — function in libs/timesfm/timesfm-forecasting/scripts/check_system.pypassed — method in libs/timesfm/timesfm-forecasting/scripts/check_system.pyevaluate — function in libs/timesfm/timesfm-forecasting/examples/finetuning/finetune_lora.pyload_retail_sales — function in libs/timesfm/timesfm-forecasting/examples/finetuning/finetune_lora.py_ar_decode — function in libs/timesfm/src/timesfm/timesfm_2p5/timesfm_2p5_flax.py_normalize — function in libs/timesfm/v1/src/timesfm/timesfm_base.py_renormalize — function in libs/timesfm/v1/src/timesfm/timesfm_base.pyscripts/verify_local.pyscripts/scratch_cleanup.pyscripts/scratch_cleanup.py_resolve_command — function in scripts/verify_local.py_run_check — function in scripts/verify_local.pybuild_checks — function in scripts/verify_local.pymain — function in scripts/verify_local.py_build_argument_parser — function in scripts/scratch_cleanup.py_build_cleanup_target — function in scripts/scratch_cleanup.pyscratch/tradingagents-audit/tradingagents/agents/utils/agent_states.pyscratch/tradingagents-audit/tradingagents/agents/utils/agent_states.pyscratch/Kronos-upstream/examples/prediction_new.pyscratch/Kronos-upstream/examples/prediction_new_GUI.pyenhance_prediction_with_market_factors — function in scratch/Kronos-upstream/examples/prediction_new.pyensure_output_directory — function in scratch/Kronos-upstream/examples/prediction_new.pycreate_question_box — function in scratch/tradingagents-audit/cli/main.pyload_models — function in scratch/Kronos-upstream/finetune/qlib_test.pymake_log — function in scratch/tradingagents-audit/tests/test_memory_log.pytest_decision_with_markdown_separator — method in scratch/tradingagents-audit/tests/test_memory_log.pytest_fetch_returns_valid_ticker — method in scratch/tradingagents-audit/tests/test_memory_log.pytest_full_cycle_store_resolve_inject — method in scratch/tradingagents-audit/tests/test_memory_log.pyDELETE /api/cache, getModelSignatureFromPane",
"class": "warning"
},
{
"title": "📁 Structure",
"body": "backend/main.pybackend/main.pybackend/main.pybackend/main.py_ip_cleanup_loop — function in backend/main.py_parse_timestamp — function in backend/main.py_round — function in backend/main.py_s — function in backend/main.py_warmup_chronos — function in backend/main.pyclear_symbol_cache — function in backend/main.pydownload_analysis_report — function in backend/main.pyfetch_binance — function in backend/main.pyroute_to_vendor",
"class": "warning"
},
{
"title": "📁 Structure",
"body": "scratch → frontend → backend",
"class": "queue"
},
{
"title": "📊 Layers",
"body": "Cross-layer call chain detected from CodeGraph edges",
"class": ""
}
]
},
{
"name": "Pipeline: frontend → backend → scratch",
"cards": [
{
"title": "🔄 Data Flow",
"body": "frontend → backend → scratch",
"class": "queue"
},
{
"title": "📊 Layers",
"body": "Cross-layer call chain detected from CodeGraph edges",
"class": ""
}
]
},
{
"name": "Pipeline: frontend → scratch → backend",
"cards": [
{
"title": "🔄 Data Flow",
"body": "frontend → scratch → backend",
"class": "queue"
},
{
"title": "📊 Layers",
"body": "Cross-layer call chain detected from CodeGraph edges",
"class": ""
}
]
},
{
"name": "Pipeline: backend → scratch → frontend",
"cards": [
{
"title": "🔄 Data Flow",
"body": "backend → scratch → frontend",
"class": "queue"
},
{
"title": "📊 Layers",
"body": "Cross-layer call chain detected from CodeGraph edges",
"class": ""
}
]
}
],
"queues": [],
"ai_components": [
{
"name": "🤖 AI / LLM Integration",
"cards": [
{
"title": "🧠 Detected AI Components",
"body": "ADMIN_TOKEN, ADMIN_TOKEN_ENV_KEY, AIRuleDocument, AIRuleRegistry, AI_SCORE_FIELD_DEFAULTS, AI_SCORING_VERSION, AVAILABLE_MODELS, AnthropicClient, ApiModelsTests, AverageAiScoreFieldsTests, AzureOpenAIClient, BaseLLMClient, CHRONOS2_MODEL_MARKER, CHRONOS_AVAILABLE, Chronos2Model",
"class": "ai"
},
{
"title": "📝 Integration Pattern",
"body": "AI/LLM calls detected via import analysis and symbol naming patterns",
"class": ""
}
]
}
],
"interventions": [
{
"name": "Manual Intervention Points",
"cards": [
{
"title": "⚠ _retry",
"body": "backend/main.py (line 1231) — function",
"class": "warning"
},
{
"title": "⚠ FX_PRIMARY_FALLBACK_SOURCES",
"body": "backend/main.py (line 873) — variable",
"class": "warning"
},
{
"title": "⚠ TORCH_IMPORT_ERROR",
"body": "backend/main.py (line 213) — variable",
"class": "danger"
},
{
"title": "⚠ TORCH_IMPORT_ERROR",
"body": "backend/main.py (line 216) — variable",
"class": "danger"
},
{
"title": "⚠ AlphaVantageRateLimitError",
"body": "scratch/tradingagents-audit/tradingagents/dataflows/alpha_vantage_common.py (line 38) — class",
"class": "danger"
},
{
"title": "⚠ test_crypto_dynamic_source_mappings_are_derived_for_hf_safe_fallbacks",
"body": "backend/test_api_regressions.py (line 842) — method",
"class": "warning"
},
{
"title": "⚠ test_crypto_historical_fetch_on_hf_uses_hf_safe_fallback_first",
"body": "backend/test_api_regressions.py (line 859) — method",
"class": "warning"
},
{
"title": "⚠ test_finalize_forecast_error_payload_omits_legacy_forecast_candles_field",
"body": "backend/test_api_regressions.py (line 1684) — method",
"class": "danger"
}
]
}
],
"entry_points": [
{
"name": "🚀 Application Entry Points",
"cards": [
{
"title": "📂 Entry Files",
"body": "typeorm",
"class": ""
}
]
},
{
"name": "🤖 AI/LLM Services",
"cards": [
{
"title": "External AI APIs",
"body": "anthropic, deepseek, google_ai, huggingface, langchain, openai",
"class": "ai"
}
]
}
],
"business_rules": [
"✅ VALIDATION: _validate_cache_target — data validation in backend/main.py",
"✅ VALIDATION: _validate_symbol_and_interval — data validation in backend/main.py",
"🔗 ROUTE: DELETE /api/cache — API endpoint in backend/main.py",
"🔗 ROUTE: DELETE /api/cache/{symbol}/{interval} — API endpoint in backend/main.py",
"🔗 ROUTE: GET /api/ai/rules — API endpoint in backend/main.py",
"🔗 ROUTE: GET /api/analysis-report/{symbol} — API endpoint in backend/main.py",
"🔗 ROUTE: GET /api/analysis/{symbol} — API endpoint in backend/main.py",
"🔗 ROUTE: GET /api/backtest/{symbol} — API endpoint in backend/main.py",
"🔗 ROUTE: GET /api/cache/stats — API endpoint in backend/main.py",
"🔗 ROUTE: GET /api/forecast/{symbol} — API endpoint in backend/main.py",
"🔗 ROUTE: GET /api/forecasting/rules — API endpoint in backend/main.py",
"🔗 ROUTE: GET /api/health — API endpoint in backend/main.py",
"🔗 ROUTE: GET /api/historical/{symbol} — API endpoint in backend/main.py",
"🔗 ROUTE: GET /api/indicators/{symbol} — API endpoint in backend/main.py",
"🔗 ROUTE: GET /api/market-peers — API endpoint in backend/main.py"
],
"file_prefixes": {
"frontend/": "UI / Frontend — frontend/",
"libs/chronos-forecasting/": "[chronos-forecasting] Core / Business Logic — libs/",
"libs/timesfm/": "[timesfm] Core / Business Logic — libs/",
"scripts/": "Infrastructure — scripts/",
"scratch/": "UI / Frontend — scratch/ 1r",
"backend/": "backend/",
".codegraph/": ".codegraph/"
},
"output_structure": " 🚀 Entry Points/ (1 files)\n UI / Frontend — frontend// (5 files)\n [chronos-forecasting] Core / Business Logic — libs// (39 files)\n [timesfm] Core / Business Logic — libs// (58 files)\n Infrastructure — scripts// (6 files)\n UI / Frontend — scratch/ 1r/ (107 files)",
"workflows": [
{
"name": "🌐 Auto-Detected Architecture Flow",
"mermaid": "graph TD\n classDef tab fill:#1e1b4b,stroke:#818cf8,stroke-width:2px,color:#e0e7ff\n classDef step fill:#111827,stroke:#374151,stroke-width:1px,color:#f3f4f6\n classDef folder fill:#1e1b0a,stroke:#f59e0b,stroke-width:2px,color:#fefce8\n classDef queue fill:#0a1e2e,stroke:#06b6d4,stroke-width:2px,color:#e0f7ff\n classDef ai fill:#1a0a2e,stroke:#a855f7,stroke-width:2px,color:#f3e8ff\n classDef ok fill:#064e3b,stroke:#34d399,stroke-width:2px,color:#ecfdf5\n\n L0[\"🚀 Entry Points\"]:::tab\n L1[\"UI / Frontend — frontend/\"]:::tab\n L0 -->L1\n L2[\"[chronos-forecasting] Core / Business Lo\"]:::folder\n L1 -->L2\n L3[\"[timesfm] Core / Business Logic — libs/\"]:::folder\n L2 -->L3\n L4[\"Infrastructure — scripts/\"]:::queue\n L3 -->L4\n L5[\"UI / Frontend — scratch/ 1r\"]:::tab\n L4 -->L5\n L6[\"backend/\"]:::folder\n L5 -->L6\n L7[\".codegraph/\"]:::folder\n L6 -->L7\n L5 -.->L6\n L1 -.->L6\n L1 -.->L5\n L5 -.->L1\n L6 -.->L5",
"tabs": []
}
],
"mermaid_override": "",
"has_content": true
}