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,295 @@
{
"version": "fiscal-v1",
"pack": "agriculture",
"rows": {
"revenue": {
"direct_authoritative_concepts": [
"us-gaap:RevenueFromAgriculturalCrops",
"us-gaap:CropSalesRevenue",
"us-gaap:LivestockSalesRevenue",
"us-gaap:RevenueFromLivestock"
],
"direct_source_concepts": [
"RevenueFromAgriculturalCrops",
"CropSalesRevenue",
"LivestockSalesRevenue",
"RevenueFromLivestock"
],
"component_surfaces": {
"positive": [
"crop_revenue",
"livestock_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_agriculture"
]
},
"operating_expenses": {
"direct_authoritative_concepts": [
"us-gaap:CostOfAgriculturalInputs",
"us-gaap:FeedAndFeedAdditivesExpense",
"us-gaap:DepreciationDepletionAndAmortization"
],
"direct_source_concepts": [
"CostOfAgriculturalInputs",
"FeedAndFeedAdditivesExpense",
"DepreciationDepletionAndAmortization"
],
"component_surfaces": {
"positive": [
"production_inputs_expense",
"depreciation_amortization"
],
"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"
]
}
}
}