mirror of
https://github.com/shumaiOne/shumai.git
synced 2026-12-04 06:54:28 +00:00
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:
@@ -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>
|
||||
)}
|
||||
|
||||
Reference in New Issue
Block a user