a33a3d1095
council_read was a sandboxed readFile wrapper for .sisyphus/ archives. Now that council_finalize extracts member responses into plain files, the standard Read tool serves the same purpose. Removes the tool, its tests, and updates Athena's prompt to reference Read directly.
70 lines
2.1 KiB
TypeScript
70 lines
2.1 KiB
TypeScript
import {
|
|
lsp_goto_definition,
|
|
lsp_find_references,
|
|
lsp_symbols,
|
|
lsp_diagnostics,
|
|
lsp_prepare_rename,
|
|
lsp_rename,
|
|
lspManager,
|
|
} from "./lsp"
|
|
|
|
export { lspManager }
|
|
|
|
export { createAstGrepTools } from "./ast-grep"
|
|
export { createGrepTools } from "./grep"
|
|
export { createGlobTools } from "./glob"
|
|
export { createSkillTool } from "./skill"
|
|
export { discoverCommandsSync } from "./slashcommand"
|
|
export { createSessionManagerTools } from "./session-manager"
|
|
|
|
export { sessionExists } from "./session-manager/storage"
|
|
|
|
export { interactive_bash, startBackgroundCheck as startTmuxCheck } from "./interactive-bash"
|
|
export { createSkillMcpTool } from "./skill-mcp"
|
|
|
|
import {
|
|
createBackgroundOutput,
|
|
createBackgroundCancel,
|
|
createBackgroundWait,
|
|
type BackgroundOutputManager,
|
|
type BackgroundCancelClient,
|
|
} from "./background-task"
|
|
|
|
import type { PluginInput, ToolDefinition } from "@opencode-ai/plugin"
|
|
import type { BackgroundManager } from "../features/background-agent"
|
|
|
|
type OpencodeClient = PluginInput["client"]
|
|
|
|
export { createCallOmoAgent } from "./call-omo-agent"
|
|
export { createLookAt } from "./look-at"
|
|
export { createDelegateTask } from "./delegate-task"
|
|
export { createSwitchAgentTool } from "./switch-agent"
|
|
export {
|
|
createTaskCreateTool,
|
|
createTaskGetTool,
|
|
createTaskList,
|
|
createTaskUpdateTool,
|
|
} from "./task"
|
|
export { createHashlineEditTool } from "./hashline-edit"
|
|
export { createPrepareCouncilPromptTool } from "./prepare-council-prompt"
|
|
export { createCouncilFinalize } from "./council-archive"
|
|
|
|
export function createBackgroundTools(manager: BackgroundManager, client: OpencodeClient): Record<string, ToolDefinition> {
|
|
const outputManager: BackgroundOutputManager = manager
|
|
const cancelClient: BackgroundCancelClient = client
|
|
return {
|
|
background_output: createBackgroundOutput(outputManager, client),
|
|
background_cancel: createBackgroundCancel(manager, cancelClient),
|
|
background_wait: createBackgroundWait(outputManager),
|
|
}
|
|
}
|
|
|
|
export const builtinTools: Record<string, ToolDefinition> = {
|
|
lsp_goto_definition,
|
|
lsp_find_references,
|
|
lsp_symbols,
|
|
lsp_diagnostics,
|
|
lsp_prepare_rename,
|
|
lsp_rename,
|
|
}
|