mirror of
https://github.com/sst/opencode.git
synced 2025-12-23 10:11:41 +00:00
docs: remove directory query param mentions from SDK docs
This commit is contained in:
parent
afd42bf46d
commit
11e41e7564
1 changed files with 1 additions and 3 deletions
|
|
@ -11,8 +11,6 @@ Use it to build integrations and control opencode programmatically.
|
|||
|
||||
[Learn more](/docs/server) about how the server works.
|
||||
|
||||
> Note: Most endpoints accept a directory query parameter for working directory context.
|
||||
|
||||
---
|
||||
|
||||
## Install
|
||||
|
|
@ -295,7 +293,7 @@ const result = await client.session.prompt({
|
|||
```javascript
|
||||
// Search and read files
|
||||
const textResults = await client.find.text({
|
||||
query: { pattern: "function.*opencode", directory: "/path/to/project" },
|
||||
query: { pattern: "function.*opencode" },
|
||||
})
|
||||
|
||||
const files = await client.find.files({
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue