nexus/packages/shared/src
Sai Shankar ca7912d8b4 feat(costs): add agent model breakdown, harden date validation, sync CostByProject type, fix quota threshold and tab-gated queries
- add byAgentModel endpoint and expandable per-agent model sub-rows in the spend tab
- validate date range inputs with isNaN + badRequest to return HTTP 400 on bad input
- move CostByProject from a local api/costs.ts definition into packages/shared types
- gate providerData query on mainTab === providers, consistent with weekData/windowData/quotaData
- fix byProject range filter from finishedAt to startedAt, consistent with byProvider runs query
- fix WHAM used_percent threshold from <= 1 to < 1 to avoid misclassifying 1% usage as 100%
- replace inline opacity style with tailwind bg-primary/85 class in ProviderQuotaCard
- reset expandedAgents set when company or date range changes
- sort agent model sub-rows by cost descending in ui memo
2026-03-14 22:00:43 -05:00
..
types feat(costs): add agent model breakdown, harden date validation, sync CostByProject type, fix quota threshold and tab-gated queries 2026-03-14 22:00:43 -05:00
validators Merge public-gh/master into feature/plugin-runtime-instance-cleanup 2026-03-14 10:46:19 -05:00
agent-url-key.ts feat: company portability — export/import companies and agents 2026-03-02 09:06:58 -06:00
api.ts feat: add auth/access foundation - deps, DB schema, shared types, and config 2026-02-23 14:40:16 -06:00
config-schema.ts feat: add auth.disableSignUp config option 2026-03-08 09:38:32 +08:00
constants.ts Add globalToolbarButton slot type and update related documentation 2026-03-14 15:05:04 -07:00
index.ts feat(costs): add agent model breakdown, harden date validation, sync CostByProject type, fix quota threshold and tab-gated queries 2026-03-14 22:00:43 -05:00
project-mentions.ts feat: @project mentions with colored chips in markdown and editors 2026-03-02 13:31:58 -06:00
project-url-key.ts feat: company portability — export/import companies and agents 2026-03-02 09:06:58 -06:00