2026-02-07 19:04:31 +09:00
|
|
|
export { createGrepTools } from "./grep"
|
|
|
|
|
export { createGlobTools } from "./glob"
|
2026-02-18 18:40:10 +08:00
|
|
|
export { createSkillTool } from "./skill"
|
|
|
|
|
export { discoverCommandsSync } from "./slashcommand"
|
2026-02-07 19:04:31 +09:00
|
|
|
export { createSessionManagerTools } from "./session-manager"
|
2025-12-25 17:04:16 +09:00
|
|
|
|
2026-01-03 14:11:59 +09:00
|
|
|
export { sessionExists } from "./session-manager/storage"
|
|
|
|
|
|
2025-12-15 19:02:31 +09:00
|
|
|
export { interactive_bash, startBackgroundCheck as startTmuxCheck } from "./interactive-bash"
|
2026-01-01 22:53:18 +09:00
|
|
|
export { createSkillMcpTool } from "./skill-mcp"
|
2025-12-04 22:54:13 +09:00
|
|
|
|
2025-12-11 16:21:33 +09:00
|
|
|
import {
|
2025-12-12 10:54:24 +09:00
|
|
|
createBackgroundOutput,
|
2025-12-11 16:21:33 +09:00
|
|
|
createBackgroundCancel,
|
2026-02-01 17:00:02 +09:00
|
|
|
type BackgroundOutputManager,
|
|
|
|
|
type BackgroundCancelClient,
|
2025-12-11 16:21:33 +09:00
|
|
|
} from "./background-task"
|
|
|
|
|
|
2025-12-27 17:56:40 +08:00
|
|
|
import type { PluginInput, ToolDefinition } from "@opencode-ai/plugin"
|
2025-12-11 16:21:33 +09:00
|
|
|
import type { BackgroundManager } from "../features/background-agent"
|
|
|
|
|
|
|
|
|
|
type OpencodeClient = PluginInput["client"]
|
|
|
|
|
|
2025-12-12 18:39:53 +09:00
|
|
|
export { createCallOmoAgent } from "./call-omo-agent"
|
2025-12-13 15:25:29 +09:00
|
|
|
export { createLookAt } from "./look-at"
|
2026-01-25 12:59:19 +09:00
|
|
|
export { createDelegateTask } from "./delegate-task"
|
2026-02-02 12:01:43 +09:00
|
|
|
export {
|
|
|
|
|
createTaskCreateTool,
|
|
|
|
|
createTaskGetTool,
|
|
|
|
|
createTaskList,
|
|
|
|
|
createTaskUpdateTool,
|
|
|
|
|
} from "./task"
|
2026-02-16 16:32:33 +09:00
|
|
|
export { createHashlineEditTool } from "./hashline-edit"
|
2026-04-28 10:47:57 +09:00
|
|
|
export { createTeamSendMessageTool } from "../features/team-mode/tools/messaging"
|
2025-12-11 15:02:41 +09:00
|
|
|
|
2025-12-27 17:56:40 +08:00
|
|
|
export function createBackgroundTools(manager: BackgroundManager, client: OpencodeClient): Record<string, ToolDefinition> {
|
2026-02-01 17:00:02 +09:00
|
|
|
const outputManager: BackgroundOutputManager = manager
|
|
|
|
|
const cancelClient: BackgroundCancelClient = client
|
2025-12-11 16:21:33 +09:00
|
|
|
return {
|
2026-02-01 17:00:02 +09:00
|
|
|
background_output: createBackgroundOutput(outputManager, client),
|
|
|
|
|
background_cancel: createBackgroundCancel(manager, cancelClient),
|
2025-12-11 16:21:33 +09:00
|
|
|
}
|
|
|
|
|
}
|