chore: generate
This commit is contained in:
parent
7265c46af6
commit
d5068ba28e
1 changed files with 20 additions and 17 deletions
|
|
@ -149,7 +149,8 @@ export const layer: Layer.Layer<Service, never, HttpClient.HttpClient | AppProce
|
||||||
return `Upgrade failed for ${method}.`
|
return `Upgrade failed for ${method}.`
|
||||||
}
|
}
|
||||||
|
|
||||||
const upgradeCurl = Effect.fnUntraced(function* (target: string) {
|
const upgradeCurl = Effect.fnUntraced(
|
||||||
|
function* (target: string) {
|
||||||
const response = yield* httpOk.execute(HttpClientRequest.get("https://opencode.ai/install"))
|
const response = yield* httpOk.execute(HttpClientRequest.get("https://opencode.ai/install"))
|
||||||
const body = yield* response.text
|
const body = yield* response.text
|
||||||
const bodyBytes = new TextEncoder().encode(body)
|
const bodyBytes = new TextEncoder().encode(body)
|
||||||
|
|
@ -165,7 +166,9 @@ export const layer: Layer.Layer<Service, never, HttpClient.HttpClient | AppProce
|
||||||
stdout: result.stdout.toString("utf8"),
|
stdout: result.stdout.toString("utf8"),
|
||||||
stderr: result.stderr.toString("utf8"),
|
stderr: result.stderr.toString("utf8"),
|
||||||
}
|
}
|
||||||
}, Effect.mapError(() => new UpgradeFailedError({ stderr: upgradeFailure("curl") })))
|
},
|
||||||
|
Effect.mapError(() => new UpgradeFailedError({ stderr: upgradeFailure("curl") })),
|
||||||
|
)
|
||||||
|
|
||||||
const result: Interface = {
|
const result: Interface = {
|
||||||
info: Effect.fn("Installation.info")(function* () {
|
info: Effect.fn("Installation.info")(function* () {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue