feat: rename SkillAllowedToolCodes to ToolWhitelist and ToolCodes to ExposedToolCodes for consistency across responses

This commit is contained in:
mlogclub
2026-04-12 10:17:27 +08:00
parent 44b20813fe
commit dce9c5eb25
4 changed files with 31 additions and 31 deletions
@@ -403,10 +403,10 @@ function DebugDialogBody({
</CardHeader>
<CardContent className="space-y-3 text-sm">
<div className="rounded-lg bg-muted/50 p-3">
<div className="text-xs text-muted-foreground">Skill Allowed Tools</div>
<div className="text-xs text-muted-foreground"></div>
<div className="mt-2 flex flex-wrap gap-2">
{(result?.skillAllowedToolCodes ?? []).length > 0 ? (
result?.skillAllowedToolCodes.map((toolCode) => (
{(result?.toolWhitelist ?? []).length > 0 ? (
result?.toolWhitelist.map((toolCode) => (
<Badge key={toolCode} variant="outline">
{toolCode}
</Badge>
@@ -417,10 +417,10 @@ function DebugDialogBody({
</div>
</div>
<div className="rounded-lg bg-muted/50 p-3">
<div className="text-xs text-muted-foreground">Candidate Tools</div>
<div className="text-xs text-muted-foreground"></div>
<div className="mt-2 flex flex-wrap gap-2">
{(result?.toolCodes ?? []).length > 0 ? (
result?.toolCodes.map((toolCode) => (
{(result?.exposedToolCodes ?? []).length > 0 ? (
result?.exposedToolCodes.map((toolCode) => (
<Badge key={toolCode} variant="outline">
{toolCode}
</Badge>
@@ -431,7 +431,7 @@ function DebugDialogBody({
</div>
</div>
<div className="rounded-lg bg-muted/50 p-3">
<div className="text-xs text-muted-foreground">Invoked Tools</div>
<div className="text-xs text-muted-foreground"></div>
<div className="mt-2 flex flex-wrap gap-2">
{(result?.invokedToolCodes ?? []).length > 0 ? (
result?.invokedToolCodes.map((toolCode) => (
+2 -2
View File
@@ -321,8 +321,8 @@ export type SkillDebugRunResult = {
replyText: string
planReason: string
skillRouteTrace: string
skillAllowedToolCodes: string[]
toolCodes: string[]
toolWhitelist: string[]
exposedToolCodes: string[]
invokedToolCodes: string[]
toolSearchTrace: string
graphToolTrace: string