@opencode-ai/codemode 0.0.0-dev-18652 → 0.0.0-dev-18659

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -16,7 +16,7 @@ export const invoke = (plan, input) => Effect.gen(function* () {
16
16
  const client = yield* HttpClient.HttpClient;
17
17
  const response = yield* client
18
18
  .execute(request)
19
- .pipe(Effect.catch((cause) => Effect.fail(toolError(`${plan.operation.method} ${plan.operation.path} failed: transport error`, cause))));
19
+ .pipe(Effect.mapError((cause) => toolError(`${plan.operation.method} ${plan.operation.path} failed: transport error`, cause)));
20
20
  const text = yield* readResponseBody(response, plan);
21
21
  const mediaType = response.headers["content-type"]?.split(";")[0]?.trim().toLowerCase();
22
22
  const json = mediaType === "application/json" || mediaType?.endsWith("+json") === true;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://json.schemastore.org/package.json",
3
3
  "name": "@opencode-ai/codemode",
4
- "version": "0.0.0-dev-18652",
4
+ "version": "0.0.0-dev-18659",
5
5
  "description": "Effect-native confined code execution over schema-described tools",
6
6
  "type": "module",
7
7
  "license": "MIT",