fix: use ctx.directory instead of process.cwd() in tools for Desktop app support
Convert grep, glob, ast-grep, and session-manager tools from static exports to factory functions that receive PluginInput context. This allows them to use ctx.directory instead of process.cwd(), fixing issue #658 where tools search from wrong directory in OpenCode Desktop app. Ultraworked with [Sisyphus](https://github.com/code-yeongyu/oh-my-opencode) Co-authored-by: Sisyphus <clio-agent@sisyphuslabs.ai>
This commit is contained in:
@@ -1,3 +1,3 @@
|
||||
export * from "./tools"
|
||||
export { createSessionManagerTools } from "./tools"
|
||||
export * from "./types"
|
||||
export * from "./constants"
|
||||
|
||||
Reference in New Issue
Block a user