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.
|
[Learn more](/docs/server) about how the server works.
|
||||||
|
|
||||||
> Note: Most endpoints accept a directory query parameter for working directory context.
|
|
||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
## Install
|
## Install
|
||||||
|
|
@ -295,7 +293,7 @@ const result = await client.session.prompt({
|
||||||
```javascript
|
```javascript
|
||||||
// Search and read files
|
// Search and read files
|
||||||
const textResults = await client.find.text({
|
const textResults = await client.find.text({
|
||||||
query: { pattern: "function.*opencode", directory: "/path/to/project" },
|
query: { pattern: "function.*opencode" },
|
||||||
})
|
})
|
||||||
|
|
||||||
const files = await client.find.files({
|
const files = await client.find.files({
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue