@absolutejs/absolute 0.19.0-beta.260 → 0.19.0-beta.261
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/.absolutejs/tsconfig.tsbuildinfo +1 -1
- package/dist/ai/index.js +59 -21
- package/dist/ai/index.js.map +3 -3
- package/dist/ai/providers/anthropic.js +22 -1
- package/dist/ai/providers/anthropic.js.map +3 -3
- package/dist/types/ai.d.ts +2 -0
- package/dist/types/anthropic.d.ts +2 -0
- package/package.json +1 -1
- package/types/ai.ts +2 -1
- package/types/anthropic.ts +2 -0
package/dist/types/ai.d.ts
CHANGED
|
@@ -19,6 +19,7 @@ export type AIDoneChunk = {
|
|
|
19
19
|
export type AIThinkingChunk = {
|
|
20
20
|
type: 'thinking';
|
|
21
21
|
content: string;
|
|
22
|
+
signature?: string;
|
|
22
23
|
};
|
|
23
24
|
export type AIImageChunk = {
|
|
24
25
|
type: 'image';
|
|
@@ -60,6 +61,7 @@ export type AIProviderContentBlock = {
|
|
|
60
61
|
} | {
|
|
61
62
|
type: 'thinking';
|
|
62
63
|
thinking: string;
|
|
64
|
+
signature?: string;
|
|
63
65
|
} | {
|
|
64
66
|
type: 'image';
|
|
65
67
|
source: AIImageSource;
|
package/package.json
CHANGED
package/types/ai.ts
CHANGED
|
@@ -27,6 +27,7 @@ export type AIDoneChunk = {
|
|
|
27
27
|
export type AIThinkingChunk = {
|
|
28
28
|
type: 'thinking';
|
|
29
29
|
content: string;
|
|
30
|
+
signature?: string;
|
|
30
31
|
};
|
|
31
32
|
|
|
32
33
|
export type AIImageChunk = {
|
|
@@ -73,7 +74,7 @@ export type AIDocumentSource = {
|
|
|
73
74
|
|
|
74
75
|
export type AIProviderContentBlock =
|
|
75
76
|
| { type: 'text'; content: string }
|
|
76
|
-
| { type: 'thinking'; thinking: string }
|
|
77
|
+
| { type: 'thinking'; thinking: string; signature?: string }
|
|
77
78
|
| { type: 'image'; source: AIImageSource }
|
|
78
79
|
| { type: 'document'; source: AIDocumentSource; name?: string }
|
|
79
80
|
| { type: 'tool_use'; id: string; name: string; input: unknown }
|
package/types/anthropic.ts
CHANGED
|
@@ -12,6 +12,8 @@ export type AnthropicSSEState = {
|
|
|
12
12
|
buffer: string;
|
|
13
13
|
currentToolId: string;
|
|
14
14
|
currentToolName: string;
|
|
15
|
+
isThinkingBlock: boolean;
|
|
16
|
+
thinkingSignature: string;
|
|
15
17
|
toolInputJson: string;
|
|
16
18
|
usage: { inputTokens: number; outputTokens: number } | undefined;
|
|
17
19
|
};
|