mirror of
https://github.com/anomalyco/opencode.git
synced 2026-04-30 05:29:53 +00:00
fix(core): expose Instance.directory to custom tools
This commit is contained in:
parent
6cf2c3e3db
commit
a8c18dba82
4 changed files with 15 additions and 7 deletions
|
|
@ -4,6 +4,11 @@ export type ToolContext = {
|
|||
sessionID: string
|
||||
messageID: string
|
||||
agent: string
|
||||
/**
|
||||
* Current project directory for this session.
|
||||
* Prefer this over process.cwd() when resolving relative paths.
|
||||
*/
|
||||
directory: string
|
||||
abort: AbortSignal
|
||||
metadata(input: { title?: string; metadata?: { [key: string]: any } }): void
|
||||
ask(input: AskInput): Promise<void>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue