Skip to content

Commit 1e016b4

Browse files
committed
chore(playground): drop unused agent exports flagged by knip
'knip' flagged seven unused exports across the agents + model picker work. Scope them to their own modules — no functional change.
1 parent 3797640 commit 1e016b4

5 files changed

Lines changed: 6 additions & 12 deletions

File tree

main/src/chat/agents/builtin-agent-tools/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import type { ToolSet } from 'ai'
22
import type { BuiltinToolsKey } from '../types'
33
import { createSkillsAgentTools, type SkillsAgentToolsHandle } from './skills'
44

5-
export interface BuiltinToolsHandle {
5+
interface BuiltinToolsHandle {
66
tools: ToolSet
77
cleanup: () => Promise<void>
88
}

main/src/chat/agents/builtin-prompts.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { BUILTIN_AGENT_IDS, type AgentConfig } from './types'
22

3-
export const TOOLHIVE_ASSISTANT_INSTRUCTIONS = `You are a helpful assistant with access to MCP (Model Context Protocol) servers from ToolHive.
3+
const TOOLHIVE_ASSISTANT_INSTRUCTIONS = `You are a helpful assistant with access to MCP (Model Context Protocol) servers from ToolHive.
44
55
You have access to various specialized tools from enabled MCP servers. Each tool is prefixed with the server name (e.g., github-stats-mcp_get_repository_info).
66
@@ -65,7 +65,7 @@ export const TOOLHIVE_ASSISTANT_INSTRUCTIONS = `You are a helpful assistant with
6565
6666
Remember: Always interpret and format tool results beautifully. Never show raw data!`
6767

68-
export const SKILLS_AGENT_INSTRUCTIONS = `You are a Skills Builder assistant that helps users design and build skills for ToolHive.
68+
const SKILLS_AGENT_INSTRUCTIONS = `You are a Skills Builder assistant that helps users design and build skills for ToolHive.
6969
7070
A "skill" is a packaged capability built from a local directory. The ToolHive build API REQUIRES a file named exactly \`SKILL.md\` at the root of that directory. \`SKILL.md\` MUST start with a YAML frontmatter block and be followed by markdown instructions. Supporting files (references, scripts, assets, templates) are optional and go in subdirectories.
7171

main/src/chat/agents/registry.ts

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,7 @@ import {
1111
writeThreadAgentId,
1212
} from '../../db/writers/agents-writer'
1313
import type { AgentConfig, CreateAgentInput, UpdateAgentInput } from './types'
14-
import {
15-
BUILTIN_AGENT_IDS,
16-
DEFAULT_AGENT_ID,
17-
LEGACY_BUILTIN_AGENT_IDS,
18-
} from './types'
14+
import { DEFAULT_AGENT_ID, LEGACY_BUILTIN_AGENT_IDS } from './types'
1915
import { getBuiltinAgentSeeds } from './builtin-prompts'
2016

2117
/**
@@ -226,5 +222,3 @@ export function setThreadAgent(threadId: string, agentId: string | null): void {
226222
export function getThreadAgentId(threadId: string): string | null {
227223
return readThreadAgentId(threadId)
228224
}
229-
230-
export { BUILTIN_AGENT_IDS, DEFAULT_AGENT_ID }

renderer/src/features/agents/hooks/use-agents.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import type {
55
UpdateAgentInput,
66
} from '../../../../../main/src/chat/agents/types'
77

8-
export const AGENT_QUERY_KEYS = {
8+
const AGENT_QUERY_KEYS = {
99
list: ['agents'] as const,
1010
detail: (id: string) => ['agents', id] as const,
1111
threadAgent: (threadId: string) => ['agents', 'thread', threadId] as const,

renderer/src/features/chat/components/model-picker.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ export interface ModelSelection {
2727
model: string
2828
}
2929

30-
export interface ModelPickerProps {
30+
interface ModelPickerProps {
3131
value: ModelSelection | null
3232
onChange: (next: ModelSelection) => void
3333
onOpenSettings?: () => void

0 commit comments

Comments
 (0)