@opencode/ai 0.0.0-dev-1141 → 0.0.0-dev-1147

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.
@@ -747,7 +747,7 @@ export declare const Freeform: Schema.Union<readonly [Schema.Struct<{
747
747
  readonly type: Schema.Literal<"lark">;
748
748
  readonly grammar: Schema.String;
749
749
  }>]>;
750
- export type Freeform = Schema.Schema.Type<typeof Freeform>;
750
+ export type Freeform = Tool.Freeform;
751
751
  declare const toolDefinitionFields: {
752
752
  name: Schema.String;
753
753
  description: Schema.String;
@@ -241,11 +241,7 @@ export const Message = withStatics(messageSchema, {
241
241
  * Raw-text wire encoding for a tool with exactly one required string parameter. Models that accept the format
242
242
  * write that parameter's value directly instead of JSON arguments; calls still decode to the normal object input.
243
243
  */
244
- export const Freeform = Schema.Union([
245
- Schema.Struct({ type: Schema.Literal("text") }),
246
- Schema.Struct({ type: Schema.Literal("regex"), pattern: Schema.String }),
247
- Schema.Struct({ type: Schema.Literal("lark"), grammar: Schema.String }),
248
- ]).annotate({ identifier: "LLM.Freeform" });
244
+ export const Freeform = Tool.Freeform;
249
245
  const toolDefinitionFields = {
250
246
  name: Schema.String,
251
247
  description: Schema.String,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "$schema": "https://json.schemastore.org/package.json",
3
- "version": "0.0.0-dev-1141",
3
+ "version": "0.0.0-dev-1147",
4
4
  "name": "@opencode/ai",
5
5
  "type": "module",
6
6
  "license": "MIT",
@@ -572,7 +572,7 @@
572
572
  "devDependencies": {
573
573
  "@clack/prompts": "1.0.0-alpha.1",
574
574
  "@effect/platform-node": "4.1.0",
575
- "@opencode/http-recorder": "0.0.0-dev-1141",
575
+ "@opencode/http-recorder": "0.0.0-dev-1147",
576
576
  "@tsconfig/bun": "1.0.9",
577
577
  "@types/bun": "1.4.3",
578
578
  "@typescript/native": "npm:typescript@7.1.0-beta",
@@ -582,7 +582,7 @@
582
582
  "@aws-sdk/credential-providers": "3.1057.0",
583
583
  "@smithy/eventstream-codec": "4.2.14",
584
584
  "@smithy/util-utf8": "4.2.2",
585
- "@opencode/schema": "0.0.0-dev-1141",
585
+ "@opencode/schema": "0.0.0-dev-1147",
586
586
  "aws4fetch": "1.0.20",
587
587
  "effect": "4.1.0",
588
588
  "google-auth-library": "10.5.0"