@opencode-ai/ai 0.0.0-dev-17870 → 0.0.0-dev-17873
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.
|
@@ -61,7 +61,7 @@ export const model = (input) => {
|
|
|
61
61
|
return Effect.succeed({ data: image.data, mediaType: image.mediaType });
|
|
62
62
|
if (image.type === "url")
|
|
63
63
|
return ImageInputs.decodeDataUrl(image.url, ADAPTER);
|
|
64
|
-
return Effect.
|
|
64
|
+
return Effect.undefined;
|
|
65
65
|
});
|
|
66
66
|
const multipartMask = mask === undefined
|
|
67
67
|
? undefined
|
|
@@ -8,7 +8,7 @@ const invalid = (module, message) => new AIError({
|
|
|
8
8
|
export const dataUrl = (input) => `data:${input.mediaType};base64,${Encoding.encodeBase64(input.data)}`;
|
|
9
9
|
export const decodeDataUrl = (url, module) => {
|
|
10
10
|
if (!url.startsWith("data:"))
|
|
11
|
-
return Effect.
|
|
11
|
+
return Effect.undefined;
|
|
12
12
|
const match = /^data:([^;,]+);base64,(.*)$/s.exec(url);
|
|
13
13
|
if (!match)
|
|
14
14
|
return Effect.fail(invalid(module, "Image data URLs must contain a MIME type and base64 data"));
|
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-
|
|
3
|
+
"version": "0.0.0-dev-17873",
|
|
4
4
|
"name": "@opencode-ai/ai",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|
|
@@ -30,7 +30,7 @@
|
|
|
30
30
|
"devDependencies": {
|
|
31
31
|
"@clack/prompts": "1.0.0-alpha.1",
|
|
32
32
|
"@effect/platform-node": "4.0.0-rc.110",
|
|
33
|
-
"@opencode-ai/http-recorder": "0.0.0-dev-
|
|
33
|
+
"@opencode-ai/http-recorder": "0.0.0-dev-17873",
|
|
34
34
|
"@tsconfig/bun": "1.0.9",
|
|
35
35
|
"@types/bun": "1.3.13",
|
|
36
36
|
"@typescript/native-preview": "7.0.0-dev.20251207.1",
|
|
@@ -39,7 +39,7 @@
|
|
|
39
39
|
"dependencies": {
|
|
40
40
|
"@smithy/eventstream-codec": "4.2.14",
|
|
41
41
|
"@smithy/util-utf8": "4.2.2",
|
|
42
|
-
"@opencode-ai/schema": "0.0.0-dev-
|
|
42
|
+
"@opencode-ai/schema": "0.0.0-dev-17873",
|
|
43
43
|
"aws4fetch": "1.0.20",
|
|
44
44
|
"effect": "4.0.0-rc.110",
|
|
45
45
|
"google-auth-library": "10.5.0"
|