| 1 | package tool |
| 2 | |
| 3 | // Host tool identities are shared with runtime Name methods. Recognition does not |
| 4 | // imply registration or permission in a particular session. |
| 5 | const ( |
| 6 | HostAsk = "ask" |
| 7 | HostCompleteSubtask = "complete_subtask" |
| 8 | HostDocs = "docs" |
| 9 | HostExplore = "explore" |
| 10 | HostFleet = "fleet" |
| 11 | HostForget = "forget" |
| 12 | HostHistory = "history" |
| 13 | HostInstallSkill = "install_skill" |
| 14 | HostInstallSource = "install_source" |
| 15 | HostListSessions = "list_sessions" |
| 16 | HostLspDefinition = "lsp_definition" |
| 17 | HostLspDiagnostics = "lsp_diagnostics" |
| 18 | HostLspHover = "lsp_hover" |
| 19 | HostLspReferences = "lsp_references" |
| 20 | HostMemory = "memory" |
| 21 | HostParallelTasks = "parallel_tasks" |
| 22 | HostReadOnlySkill = "read_only_skill" |
| 23 | HostReadOnlyTask = "read_only_task" |
| 24 | HostReadSession = "read_session" |
| 25 | HostReadSkill = "read_skill" |
| 26 | HostReadSubagentResult = "read_subagent_result" |
| 27 | HostRemember = "remember" |
| 28 | HostResearch = "research" |
| 29 | HostReview = "review" |
| 30 | HostReviewReport = "review_report" |
| 31 | HostRunSkill = "run_skill" |
| 32 | HostSecurityReview = "security_review" |
| 33 | HostSessionReadStrategyReceipt = "session_read_strategy_receipt" |
| 34 | HostSessionToolResult = "session_tool_result" |
| 35 | HostSetSessionTitle = "set_session_title" |
| 36 | HostSlashCommand = "slash_command" |
| 37 | HostSubmitPlan = "submit_plan" |
| 38 | HostTask = "task" |
| 39 | HostUseCapability = "use_capability" |
| 40 | HostWebSearch = "web_search" |
| 41 | ) |
| 42 | |
| 43 | // KnownToolNames combines compile-time built-ins with host-managed identities. |
| 44 | // Callers must import tool/builtin to initialize the compile-time inventory. |
| 45 | func KnownToolNames() []string { |
| 46 | names := []string{ |
| 47 | "pwsh", // Windows runtime identity; the compile-time builtin is named bash. |
| 48 | HostAsk, |
| 49 | HostCompleteSubtask, |
| 50 | HostDocs, |
| 51 | HostExplore, |
| 52 | HostFleet, |
| 53 | HostForget, |
| 54 | HostHistory, |
| 55 | HostInstallSkill, |
| 56 | HostInstallSource, |
| 57 | HostListSessions, |
| 58 | HostLspDefinition, |
| 59 | HostLspDiagnostics, |
| 60 | HostLspHover, |
| 61 | HostLspReferences, |
| 62 | HostMemory, |
| 63 | HostParallelTasks, |
| 64 | HostReadOnlySkill, |
| 65 | HostReadOnlyTask, |
| 66 | HostReadSession, |
| 67 | HostReadSkill, |
| 68 | HostReadSubagentResult, |
| 69 | HostRemember, |
| 70 | HostResearch, |
| 71 | HostReview, |
| 72 | HostRunSkill, |
| 73 | HostSecurityReview, |
| 74 | HostSessionToolResult, |
| 75 | HostSetSessionTitle, |
| 76 | HostSlashCommand, |
| 77 | HostSubmitPlan, |
| 78 | HostTask, |
| 79 | HostUseCapability, |
| 80 | HostWebSearch, |
| 81 | } |
| 82 | for _, t := range Builtins() { |
| 83 | names = append(names, t.Name()) |
| 84 | } |
| 85 | return names |
| 86 | } |
| 87 |