@vibes.diy/call-ai-v2 4.3.2 → 4.4.0
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.
- package/package.json +2 -2
- package/prompt-type.d.ts +34 -0
- package/prompt-type.js +10 -1
- package/prompt-type.js.map +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vibes.diy/call-ai-v2",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.4.0",
|
|
4
4
|
"description": "",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "index.js",
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
"license": "Apache-2.0",
|
|
16
16
|
"dependencies": {
|
|
17
17
|
"@adviser/cement": "~0.5.34",
|
|
18
|
-
"@vibes.diy/identity": "^4.
|
|
18
|
+
"@vibes.diy/identity": "^4.4.0",
|
|
19
19
|
"arktype": "~2.2.2",
|
|
20
20
|
"cmd-ts": "~0.15.0",
|
|
21
21
|
"mime": "~4.1.0",
|
package/prompt-type.d.ts
CHANGED
|
@@ -12,6 +12,16 @@ export declare const ImageUrlContent: import("arktype/internal/variants/object.t
|
|
|
12
12
|
};
|
|
13
13
|
}, {}>;
|
|
14
14
|
export type ImageUrlContent = typeof ImageUrlContent.infer;
|
|
15
|
+
export declare const VibesFileContent: import("arktype/internal/variants/object.ts").ObjectType<{
|
|
16
|
+
type: "vibes_file";
|
|
17
|
+
uploadId: string;
|
|
18
|
+
name: string;
|
|
19
|
+
mimeType: string;
|
|
20
|
+
kind: "image" | "text";
|
|
21
|
+
originalUploadId?: string | undefined;
|
|
22
|
+
size?: number | undefined;
|
|
23
|
+
}, {}>;
|
|
24
|
+
export type VibesFileContent = typeof VibesFileContent.infer;
|
|
15
25
|
export declare const MessageContent: import("arktype/internal/variants/object.ts").ObjectType<{
|
|
16
26
|
type: "text";
|
|
17
27
|
text: string;
|
|
@@ -20,6 +30,14 @@ export declare const MessageContent: import("arktype/internal/variants/object.ts
|
|
|
20
30
|
image_url: {
|
|
21
31
|
url: string;
|
|
22
32
|
};
|
|
33
|
+
} | {
|
|
34
|
+
type: "vibes_file";
|
|
35
|
+
uploadId: string;
|
|
36
|
+
name: string;
|
|
37
|
+
mimeType: string;
|
|
38
|
+
kind: "image" | "text";
|
|
39
|
+
originalUploadId?: string | undefined;
|
|
40
|
+
size?: number | undefined;
|
|
23
41
|
}, {}>;
|
|
24
42
|
export type MessageContent = typeof MessageContent.infer;
|
|
25
43
|
export declare const ChatMessage: import("arktype/internal/variants/object.ts").ObjectType<{
|
|
@@ -32,6 +50,14 @@ export declare const ChatMessage: import("arktype/internal/variants/object.ts").
|
|
|
32
50
|
image_url: {
|
|
33
51
|
url: string;
|
|
34
52
|
};
|
|
53
|
+
} | {
|
|
54
|
+
type: "vibes_file";
|
|
55
|
+
uploadId: string;
|
|
56
|
+
name: string;
|
|
57
|
+
mimeType: string;
|
|
58
|
+
kind: "image" | "text";
|
|
59
|
+
originalUploadId?: string | undefined;
|
|
60
|
+
size?: number | undefined;
|
|
35
61
|
})[];
|
|
36
62
|
}, {}>;
|
|
37
63
|
export type ChatMessage = typeof ChatMessage.infer;
|
|
@@ -47,6 +73,14 @@ export declare const LLMRequest: import("arktype/internal/variants/object.ts").O
|
|
|
47
73
|
image_url: {
|
|
48
74
|
url: string;
|
|
49
75
|
};
|
|
76
|
+
} | {
|
|
77
|
+
type: "vibes_file";
|
|
78
|
+
uploadId: string;
|
|
79
|
+
name: string;
|
|
80
|
+
mimeType: string;
|
|
81
|
+
kind: "image" | "text";
|
|
82
|
+
originalUploadId?: string | undefined;
|
|
83
|
+
size?: number | undefined;
|
|
50
84
|
})[];
|
|
51
85
|
}[];
|
|
52
86
|
stream?: boolean | undefined;
|
package/prompt-type.js
CHANGED
|
@@ -10,7 +10,16 @@ export const ImageUrlContent = type({
|
|
|
10
10
|
url: "string",
|
|
11
11
|
}),
|
|
12
12
|
});
|
|
13
|
-
export const
|
|
13
|
+
export const VibesFileContent = type({
|
|
14
|
+
type: "'vibes_file'",
|
|
15
|
+
uploadId: "string",
|
|
16
|
+
name: "string",
|
|
17
|
+
mimeType: "string",
|
|
18
|
+
kind: "'image' | 'text'",
|
|
19
|
+
"originalUploadId?": "string",
|
|
20
|
+
"size?": "number",
|
|
21
|
+
});
|
|
22
|
+
export const MessageContent = TextContent.or(ImageUrlContent).or(VibesFileContent);
|
|
14
23
|
export const ChatMessage = type({
|
|
15
24
|
role: MessageRole,
|
|
16
25
|
content: MessageContent.array(),
|
package/prompt-type.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"prompt-type.js","sourceRoot":"","sources":["../jsr/prompt-type.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,SAAS,CAAC;AAG/B,MAAM,CAAC,MAAM,WAAW,GAAG,IAAI,CAAC,iCAAiC,CAAC,CAAC;AAGnE,MAAM,CAAC,MAAM,WAAW,GAAG,IAAI,CAAC;IAC9B,IAAI,EAAE,QAAQ;IACd,IAAI,EAAE,QAAQ;CACf,CAAC,CAAC;AAKH,MAAM,CAAC,MAAM,eAAe,GAAG,IAAI,CAAC;IAClC,IAAI,EAAE,aAAa;IACnB,SAAS,EAAE,IAAI,CAAC;QACd,GAAG,EAAE,QAAQ;KACd,CAAC;CACH,CAAC,CAAC;AAGH,MAAM,CAAC,MAAM,cAAc,GAAG,WAAW,CAAC,EAAE,CAAC,eAAe,CAAC,CAAC;
|
|
1
|
+
{"version":3,"file":"prompt-type.js","sourceRoot":"","sources":["../jsr/prompt-type.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,SAAS,CAAC;AAG/B,MAAM,CAAC,MAAM,WAAW,GAAG,IAAI,CAAC,iCAAiC,CAAC,CAAC;AAGnE,MAAM,CAAC,MAAM,WAAW,GAAG,IAAI,CAAC;IAC9B,IAAI,EAAE,QAAQ;IACd,IAAI,EAAE,QAAQ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