Add history window controls and expand taxonomy pack support

- add 3Y/5Y/10Y financial history filtering and reorganize normalization details UI
- add new fiscal taxonomy surface/income bridge/KPI packs and update Rust taxonomy loading
- auto-detect Homebrew SQLite for native `sqlite-vec` in local dev/e2e with docs and env guidance
This commit is contained in:
2026-03-18 23:40:28 -04:00
parent f8426c4dde
commit 17de3dd72d
102 changed files with 14978 additions and 1316 deletions

View File

@@ -0,0 +1,304 @@
{
"version": "fiscal-v1",
"pack": "entertainment_casinos",
"rows": {
"revenue": {
"direct_authoritative_concepts": [
"us-gaap:GamingRevenue",
"us-gaap:CasinoGamingRevenue",
"us-gaap:HotelRevenue",
"us-gaap:ResortRevenue",
"us-gaap:LodgingRevenue",
"us-gaap:FoodAndBeverageRevenue"
],
"direct_source_concepts": [
"GamingRevenue",
"CasinoGamingRevenue",
"HotelRevenue",
"ResortRevenue",
"LodgingRevenue",
"FoodAndBeverageRevenue"
],
"component_surfaces": {
"positive": [
"gaming_revenue",
"hotel_and_resort_revenue",
"food_and_beverage_revenue"
],
"negative": []
},
"component_concept_groups": {
"positive": [],
"negative": []
},
"formula": "pack_bridge_sum",
"not_meaningful_for_pack": false,
"warning_codes_when_used": [
"revenue_formula_derived"
]
},
"cost_of_revenue": {
"direct_authoritative_concepts": [
"us-gaap:CostOfRevenue"
],
"direct_source_concepts": [
"CostOfRevenue",
"CostOfGoodsSold",
"CostOfSales",
"CostOfGoodsAndServicesSold",
"CostOfGoodsAndServiceExcludingDepreciationDepletionAndAmortization",
"CostOfProductsSold",
"CostOfServices"
],
"component_surfaces": {
"positive": [],
"negative": []
},
"component_concept_groups": {
"positive": [],
"negative": []
},
"formula": "direct",
"not_meaningful_for_pack": false,
"warning_codes_when_used": []
},
"gross_profit": {
"direct_authoritative_concepts": [],
"direct_source_concepts": [],
"component_surfaces": {
"positive": [],
"negative": []
},
"component_concept_groups": {
"positive": [],
"negative": []
},
"formula": "not_meaningful",
"not_meaningful_for_pack": true,
"warning_codes_when_used": [
"gross_profit_not_meaningful_entertainment_casinos"
]
},
"operating_expenses": {
"direct_authoritative_concepts": [
"us-gaap:GamingTaxes",
"us-gaap:GamingLicenseFees",
"us-gaap:GamingLicenseExpense",
"us-gaap:OperatingExpenses",
"us-gaap:CasinoOperatingExpenses"
],
"direct_source_concepts": [
"GamingTaxes",
"GamingLicenseFees",
"GamingLicenseExpense",
"OperatingExpenses",
"CasinoOperatingExpenses"
],
"component_surfaces": {
"positive": [
"gaming_taxes_and_licenses_expense",
"operating_expenses"
],
"negative": []
},
"component_concept_groups": {
"positive": [],
"negative": []
},
"formula": "pack_bridge_sum",
"not_meaningful_for_pack": false,
"warning_codes_when_used": [
"operating_expenses_formula_derived"
]
},
"selling_general_and_administrative": {
"direct_authoritative_concepts": [
"us-gaap:SellingGeneralAndAdministrativeExpense",
"us-gaap:SellingGeneralAndAdministrativeExpenseExcludingEmployeeStockOptionPlanSpecialDividendCompensation"
],
"direct_source_concepts": [
"SellingGeneralAndAdministrativeExpense",
"SellingGeneralAndAdministrativeExpenseExcludingEmployeeStockOptionPlanSpecialDividendCompensation"
],
"component_surfaces": {
"positive": [],
"negative": []
},
"component_concept_groups": {
"positive": [
{
"name": "sales_and_marketing",
"concepts": [
"us-gaap:SalesAndMarketingExpense",
"us-gaap:SellingAndMarketingExpense",
"us-gaap:MarketingExpense",
"us-gaap:AdvertisingExpense"
]
},
{
"name": "general_and_administrative",
"concepts": [
"us-gaap:GeneralAndAdministrativeExpense"
]
}
],
"negative": []
},
"formula": "sum",
"not_meaningful_for_pack": false,
"warning_codes_when_used": [
"selling_general_and_administrative_formula_derived"
]
},
"research_and_development": {
"direct_authoritative_concepts": [
"us-gaap:ResearchAndDevelopmentExpense"
],
"direct_source_concepts": [
"ResearchAndDevelopmentExpense"
],
"component_surfaces": {
"positive": [],
"negative": []
},
"component_concept_groups": {
"positive": [],
"negative": []
},
"formula": "direct",
"not_meaningful_for_pack": false,
"warning_codes_when_used": []
},
"other_operating_expense": {
"direct_authoritative_concepts": [
"us-gaap:OtherThanInterestExpense",
"us-gaap:OtherOperatingExpenses",
"us-gaap:OtherCostAndExpenseOperating",
"us-gaap:OtherOperatingExpense"
],
"direct_source_concepts": [
"OtherThanInterestExpense",
"OtherOperatingExpenses",
"OtherCostAndExpenseOperating",
"OtherOperatingExpense"
],
"component_surfaces": {
"positive": [
"operating_expenses"
],
"negative": [
"selling_general_and_administrative",
"research_and_development"
]
},
"component_concept_groups": {
"positive": [],
"negative": []
},
"formula": "sum_then_subtract",
"not_meaningful_for_pack": false,
"warning_codes_when_used": [
"other_operating_expense_formula_derived"
]
},
"operating_income": {
"direct_authoritative_concepts": [
"us-gaap:OperatingIncomeLoss",
"us-gaap:IncomeFromOperations",
"us-gaap:OperatingProfit"
],
"direct_source_concepts": [
"OperatingIncomeLoss",
"IncomeFromOperations",
"OperatingProfit"
],
"component_surfaces": {
"positive": [
"gross_profit"
],
"negative": [
"operating_expenses"
]
},
"component_concept_groups": {
"positive": [],
"negative": []
},
"formula": "subtract",
"not_meaningful_for_pack": false,
"warning_codes_when_used": [
"operating_income_formula_derived"
]
},
"income_tax_expense": {
"direct_authoritative_concepts": [
"us-gaap:IncomeTaxExpenseBenefit"
],
"direct_source_concepts": [
"IncomeTaxExpenseBenefit"
],
"component_surfaces": {
"positive": [],
"negative": [
"net_income"
]
},
"component_concept_groups": {
"positive": [
{
"name": "pretax_income",
"concepts": [
"us-gaap:IncomeBeforeTaxExpenseBenefit",
"us-gaap:PretaxIncome",
"us-gaap:IncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest",
"us-gaap:IncomeBeforeEquityMethodInvestmentsIncomeTaxesExtraordinaryItemsNoncontrollingInterest",
"us-gaap:IncomeFromContinuingOperationsBeforeIncomeTaxesMinorityInterestAndIncomeLossFromEquityMethodInvestments"
]
}
],
"negative": []
},
"formula": "subtract",
"not_meaningful_for_pack": false,
"warning_codes_when_used": [
"income_tax_expense_formula_derived"
]
},
"net_income": {
"direct_authoritative_concepts": [
"us-gaap:NetIncomeLoss",
"us-gaap:ProfitLoss"
],
"direct_source_concepts": [
"NetIncomeLoss",
"ProfitLoss"
],
"component_surfaces": {
"positive": [],
"negative": [
"income_tax_expense"
]
},
"component_concept_groups": {
"positive": [
{
"name": "pretax_income",
"concepts": [
"us-gaap:IncomeBeforeTaxExpenseBenefit",
"us-gaap:PretaxIncome",
"us-gaap:IncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest",
"us-gaap:IncomeBeforeEquityMethodInvestmentsIncomeTaxesExtraordinaryItemsNoncontrollingInterest",
"us-gaap:IncomeFromContinuingOperationsBeforeIncomeTaxesMinorityInterestAndIncomeLossFromEquityMethodInvestments"
]
}
],
"negative": []
},
"formula": "subtract",
"not_meaningful_for_pack": false,
"warning_codes_when_used": [
"net_income_formula_derived"
]
}
}
}