chore: upgrade Effect to rc.118 (#50231)

This commit is contained in:
Kit Langton
2026-10-09 01:36:06 -07:00
committed by GitHub
Unverified
parent c50e39b72b
commit 1aae67e853
411 changed files with 5756 additions and 2161 deletions
+941 -291
View File
File diff suppressed because it is too large Load Diff
File diff suppressed because it is too large Load Diff
@@ -16,7 +16,7 @@ Create a client with the server URL, then call methods grouped by API resource.
```ts
import { AbsolutePath, Location, OpenCode } from "@opencode/client/effect"
import { Effect } from "effect"
import { FetchHttpClient } from "effect/unstable/http"
import { FetchHttpClient } from "effect/http"
const program = Effect.gen(function* () {
const client = yield* OpenCode.make({ baseUrl: "http://localhost:4096" })
@@ -40,7 +40,7 @@ normal Effect interruption for cancellation. RPC methods additionally accept
per-call location, header, and signal options.
```ts
import { HttpClient, HttpClientRequest } from "effect/unstable/http"
import { HttpClient, HttpClientRequest } from "effect/http"
const httpClient = yield * HttpClient.HttpClient
const client =
@@ -123,7 +123,7 @@ import { NodeFileSystem } from "@effect/platform-node"
import { OpenCode } from "@opencode/client/effect"
import { Service } from "@opencode/client/effect/service"
import { Effect } from "effect"
import { FetchHttpClient, HttpClient, HttpClientRequest } from "effect/unstable/http"
import { FetchHttpClient, HttpClient, HttpClientRequest } from "effect/http"
const program = Effect.gen(function* () {
const endpoint = yield* Service.ensure()
@@ -550,7 +550,7 @@ Connect with a key or drive an OAuth attempt through the connected API.
effect: (ctx) =>
Effect.gen(function* () {
const integration = ctx.integration
const token = yield* Config.redacted("GITHUB_TOKEN").pipe(Effect.orDie)
const token = yield* Config.Redacted("GITHUB_TOKEN").pipe(Effect.orDie)
yield* integration.connect
.key({ integrationID: Integration.ID.make("github"), key: Redacted.value(token) })
.pipe(Effect.orDie)
@@ -1517,7 +1517,7 @@ entrypoint and declare `effect` as a `peerDependency`.
"@opencode/plugin": "latest"
},
"peerDependencies": {
"effect": ">=4.0.0-rc.112"
"effect": ">=4.0.0-rc.118"
}
}
```
@@ -122,7 +122,7 @@ Create the Effect client, then create the RPC subclient:
```ts
import { OpenCode } from "@opencode/client/effect"
import { Effect } from "effect"
import { FetchHttpClient } from "effect/unstable/http"
import { FetchHttpClient } from "effect/http"
import { Acme } from "opencode-acme-plugin/rpc"
const program = Effect.gen(function* () {