@opencode-ai/codemode 0.0.0-dev-17534 → 0.0.0-dev-17582

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.
@@ -2,7 +2,7 @@ import { Effect, Option, Schema, Stream } from "effect";
2
2
  import { HttpClient, HttpClientRequest, HttpClientResponse } from "effect/unstable/http";
3
3
  import { ToolError, toolError } from "../tool-error.js";
4
4
  import { isRecord, own } from "./spec.js";
5
- const decodeJson = Schema.decodeUnknownOption(Schema.UnknownFromJsonString);
5
+ const decodeJson = Schema.decodeUnknownOption(Schema.fromJsonString(Schema.Unknown));
6
6
  const maxErrorBodyChars = 1_024;
7
7
  const maxResponseBodyBytes = 50 * 1024 * 1024;
8
8
  export const invoke = (plan, input) => Effect.gen(function* () {
@@ -1,6 +1,6 @@
1
1
  import { Schema } from "effect";
2
2
  /** Safe operational refusal from a standard tool pack, reported as `ToolFailure`. */
3
- export class ToolError extends Schema.TaggedErrorClass()("ToolError", {
3
+ export class ToolError extends Schema.TaggedError()("ToolError", {
4
4
  message: Schema.String,
5
5
  cause: Schema.optionalKey(Schema.Defect()),
6
6
  }) {
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-17534",
4
+ "version": "0.0.0-dev-17582",
5
5
  "description": "Effect-native confined code execution over schema-described tools",
6
6
  "type": "module",
7
7
  "license": "MIT",
@@ -35,7 +35,7 @@
35
35
  },
36
36
  "dependencies": {
37
37
  "acorn": "8.15.0",
38
- "effect": "4.0.0-beta.101",
38
+ "effect": "4.0.0-beta.107",
39
39
  "typescript": "5.8.2"
40
40
  },
41
41
  "devDependencies": {