瀏覽代碼

docs: remove directory query param mentions from SDK docs

Dax Raad 5 月之前
父節點
當前提交
11e41e7564
共有 1 個文件被更改,包括 1 次插入3 次删除
  1. 1 3
      packages/web/src/content/docs/docs/sdk.mdx

+ 1 - 3
packages/web/src/content/docs/docs/sdk.mdx

@@ -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({