fix(quota): exclude agents from quota rules and usage records (#325)

* fix(quota): exclude agents from quota rules and usage records

* refactor(quota): remove agent_skill_call_count resource type and related logic

* chore(db): replace manual migration with prisma-generated migration
This commit is contained in:
Yiling-J
2026-08-18 11:56:03 +08:00
committed by GitHub
parent f806272c06
commit 8a75d015a1
22 changed files with 127 additions and 318 deletions
@@ -30,7 +30,6 @@ import {
Trash2,
Cpu,
DollarSign,
Puzzle,
Server,
Terminal,
Wrench,
@@ -66,11 +65,6 @@ const RESOURCE_META: Record<
icon: DollarSign,
unit: '$',
},
agent_skill_call_count: {
label: () => m.quota_resource_agent_skill_call_count(),
icon: Puzzle,
unit: 'calls',
},
agent_mcp_call_count: {
label: () => m.quota_resource_agent_mcp_call_count(),
icon: Server,
@@ -230,9 +224,6 @@ export const QuotasSettings: React.FC<QuotasSettingsProps> = ({ teamId }) => {
</div>
{/* Subtitle / target details */}
<div className="text-xs text-muted-foreground line-clamp-1">
{rule.resource === 'agent_skill_call_count' && (
<span>Skill: {String(resData.id || '')}</span>
)}
{rule.resource === 'agent_mcp_call_count' && (
<span>Server: {String(resData.id || '')}</span>
)}