diff --git a/packages/client/README.md b/packages/client/README.md index 308078cd11d..1aa801d32a5 100644 --- a/packages/client/README.md +++ b/packages/client/README.md @@ -16,12 +16,12 @@ The Promise root remains structural and has no Core or Effect runtime dependency Effect consumers construct canonical decoded inputs: ```ts -import { AbsolutePath, Location, OpenCode, Prompt } from "@opencode/client/effect" +import { AbsolutePath, Location, OpenCode } from "@opencode/client/effect" const client = yield * OpenCode.make({ baseUrl: "https://opencode.example" }) -yield * - client.sessions.create({ +const session = yield * + client.session.create({ location: Location.Ref.make({ directory: AbsolutePath.make("/workspace") }), }) -yield * client.sessions.prompt({ sessionID, prompt: Prompt.make({ text: "Hello" }) }) +yield * client.session.prompt({ sessionID: session.id, text: "Hello" }) ```