@anvia/core 0.12.6 → 0.12.8
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/dist/agent/index.js +7 -7
- package/dist/{chunk-N3I6HH2J.js → chunk-2STANSN6.js} +4 -4
- package/dist/{chunk-5MUPA66B.js → chunk-EGZCTSEW.js} +9 -6
- package/dist/chunk-EGZCTSEW.js.map +1 -0
- package/dist/{chunk-J3ROUB3P.js → chunk-HF4KHHNM.js} +2 -2
- package/dist/{chunk-TD6A4RYQ.js → chunk-IN5NPAWL.js} +4 -4
- package/dist/{chunk-QKA6OQTH.js → chunk-IZM6FNCT.js} +4 -4
- package/dist/{chunk-YZLOFKTT.js → chunk-SHORX7TZ.js} +5 -5
- package/dist/{chunk-WEOG3JCT.js → chunk-UDISNNKR.js} +27 -31
- package/dist/chunk-UDISNNKR.js.map +1 -0
- package/dist/{chunk-JJ3JGL5D.js → chunk-WRNPY5C6.js} +3 -3
- package/dist/evals/index.js +9 -9
- package/dist/extractor/index.js +8 -8
- package/dist/index.js +9 -9
- package/dist/internal/agent.js +6 -6
- package/dist/request/index.js +5 -5
- package/dist/skills/index.js +5 -5
- package/dist/tool/index.js +4 -4
- package/dist/ui/index.d.ts +1 -0
- package/dist/ui/index.js +1 -1
- package/dist/vector-store/index.js +2 -2
- package/package.json +1 -1
- package/dist/chunk-5MUPA66B.js.map +0 -1
- package/dist/chunk-WEOG3JCT.js.map +0 -1
- /package/dist/{chunk-N3I6HH2J.js.map → chunk-2STANSN6.js.map} +0 -0
- /package/dist/{chunk-J3ROUB3P.js.map → chunk-HF4KHHNM.js.map} +0 -0
- /package/dist/{chunk-TD6A4RYQ.js.map → chunk-IN5NPAWL.js.map} +0 -0
- /package/dist/{chunk-QKA6OQTH.js.map → chunk-IZM6FNCT.js.map} +0 -0
- /package/dist/{chunk-YZLOFKTT.js.map → chunk-SHORX7TZ.js.map} +0 -0
- /package/dist/{chunk-JJ3JGL5D.js.map → chunk-WRNPY5C6.js.map} +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/ui/messages.ts"],"sourcesContent":["import {\n AssistantContent,\n type AssistantContent as AssistantContentType,\n type Message as CoreMessage,\n type DocumentContent,\n type ImageContent,\n type ImageDetail,\n type JsonValue,\n Message,\n reasoningDisplayText,\n serializeToolResultOutput,\n ToolContent,\n type ToolContent as ToolContentType,\n type ToolResultContent,\n UserContent,\n type UserContent as UserContentType,\n} from \"../completion/types\";\nimport type { UIAttachment, UIMessage, UIMessagePart } from \"./types\";\n\ntype UIToolPartLocation = {\n messageIndex: number;\n partIndex: number;\n};\n\ntype UIToolPartLocations = {\n byToolCallId: Map<string, UIToolPartLocation>;\n byCallId: Map<string, UIToolPartLocation>;\n};\n\ntype UIToolMessagePart = Extract<UIMessagePart, { type: \"tool\" }>;\n\nexport function uiMessagesToCoreMessages(messages: UIMessage[]): CoreMessage[] {\n const coreMessages: CoreMessage[] = [];\n\n for (const message of messages) {\n const text = textFromUIParts(message.parts);\n\n if (message.role === \"system\") {\n if (text.length > 0) {\n coreMessages.push(Message.system(text));\n }\n continue;\n }\n\n if (message.role === \"user\") {\n const content: UserContentType[] = [];\n for (const part of message.parts) {\n if (part.type === \"text\") {\n content.push(UserContent.text(part.text));\n continue;\n }\n if (part.type === \"attachment\") {\n content.push(attachmentToUserContent(part.attachment));\n continue;\n }\n if (part.type === \"data\" && isUserContent(part.data)) {\n content.push(part.data);\n continue;\n }\n throw new TypeError(\n \"User UI messages can only be converted from text, attachment, or image/document data parts.\",\n );\n }\n if (content.length > 0) {\n coreMessages.push(Message.user(content));\n }\n continue;\n }\n\n if (message.role === \"assistant\") {\n const content: AssistantContentType[] = [];\n const toolResults: ToolContentType[] = [];\n for (const part of message.parts) {\n if (part.type === \"text\" && part.text.length > 0) {\n content.push(AssistantContent.text(part.text));\n continue;\n }\n if (part.type === \"reasoning\" && part.text.length > 0) {\n content.push(AssistantContent.reasoning(part.text, part.reasoningId));\n continue;\n }\n if (\n part.type === \"tool\" &&\n (part.state === \"input-streaming\" ||\n part.state === \"input-available\" ||\n part.state === \"output-available\")\n ) {\n content.push(\n AssistantContent.toolCall(\n part.toolCallId,\n part.toolName,\n part.input ?? {},\n part.callId,\n ),\n );\n if (part.state === \"output-available\") {\n toolResults.push(\n ToolContent.toolResult(part.toolCallId, outputToToolResultContent(part.output), {\n callId: part.callId,\n toolName: part.toolName,\n }),\n );\n }\n }\n }\n if (content.length > 0) {\n coreMessages.push(Message.assistant(content, message.id));\n }\n if (toolResults.length > 0) {\n coreMessages.push(Message.tool(toolResults));\n }\n continue;\n }\n\n const toolResults: ToolContentType[] = [];\n for (const part of message.parts) {\n if (part.type !== \"tool\" || part.state !== \"output-available\") {\n continue;\n }\n toolResults.push(\n ToolContent.toolResult(part.toolCallId, outputToToolResultContent(part.output), {\n callId: part.callId,\n toolName: part.toolName,\n }),\n );\n }\n if (toolResults.length > 0) {\n coreMessages.push(Message.tool(toolResults));\n }\n }\n\n return coreMessages;\n}\n\nexport function coreMessagesToUIMessages(messages: CoreMessage[]): UIMessage[] {\n const uiMessages: UIMessage[] = [];\n const toolPartLocations: UIToolPartLocations = {\n byToolCallId: new Map(),\n byCallId: new Map(),\n };\n\n for (const message of messages) {\n if (message.role === \"system\") {\n uiMessages.push({\n id: createId(\"msg\"),\n role: \"system\",\n parts: [{ id: createId(\"part\"), type: \"text\", text: message.content }],\n });\n continue;\n }\n\n if (message.role === \"user\") {\n const parts: UIMessagePart[] = [];\n for (const content of message.content) {\n if (content.type === \"text\") {\n parts.push({ id: createId(\"part\"), type: \"text\", text: content.text });\n } else {\n parts.push({\n id: createId(\"part\"),\n type: \"attachment\",\n attachment: userContentToAttachment(content),\n });\n }\n }\n uiMessages.push({ id: createId(\"msg\"), role: \"user\", parts });\n continue;\n }\n\n if (message.role === \"assistant\") {\n const parts: UIMessagePart[] = [];\n for (const content of message.content) {\n if (content.type === \"text\") {\n parts.push({ id: createId(\"part\"), type: \"text\", text: content.text });\n continue;\n }\n if (content.type === \"reasoning\") {\n const part: UIMessagePart = {\n id: createId(\"part\"),\n type: \"reasoning\",\n text: reasoningDisplayText(content),\n };\n if (content.id !== undefined) {\n part.reasoningId = content.id;\n }\n parts.push(part);\n continue;\n }\n if (content.type === \"tool_call\") {\n const part: UIMessagePart = {\n id: toolPartId(content.id),\n type: \"tool\",\n toolName: content.function.name,\n toolCallId: content.id,\n state: \"input-available\",\n input: content.function.arguments,\n };\n if (content.callId !== undefined) {\n part.callId = content.callId;\n }\n parts.push(part);\n continue;\n }\n parts.push({\n id: createId(\"part\"),\n type: \"data\",\n name: content.type,\n data: content as JsonValue,\n });\n }\n const messageIndex = uiMessages.length;\n uiMessages.push({ id: message.id ?? createId(\"msg\"), role: \"assistant\", parts });\n registerToolPartLocations(parts, messageIndex, toolPartLocations);\n continue;\n }\n\n const parts: UIMessagePart[] = [];\n for (const content of message.content) {\n const part: UIToolMessagePart = {\n id: toolPartId(content.id),\n type: \"tool\",\n toolName: toolNameForResult(content, uiMessages, toolPartLocations),\n toolCallId: content.id,\n state: \"output-available\",\n output: toolResultContentToJson(content.content),\n };\n if (content.callId !== undefined) {\n part.callId = content.callId;\n }\n if (mergeToolResultPart(uiMessages, toolPartLocations, part)) {\n continue;\n }\n parts.push(part);\n }\n if (parts.length > 0) {\n uiMessages.push({ id: createId(\"msg\"), role: \"tool\", parts });\n }\n }\n\n return uiMessages;\n}\n\nfunction registerToolPartLocations(\n parts: UIMessagePart[],\n messageIndex: number,\n toolPartLocations: UIToolPartLocations,\n): void {\n for (const [partIndex, part] of parts.entries()) {\n if (part.type !== \"tool\") {\n continue;\n }\n const location = { messageIndex, partIndex };\n toolPartLocations.byToolCallId.set(part.toolCallId, location);\n if (part.callId !== undefined) {\n toolPartLocations.byCallId.set(part.callId, location);\n }\n }\n}\n\nfunction mergeToolResultPart(\n uiMessages: UIMessage[],\n toolPartLocations: UIToolPartLocations,\n resultPart: UIMessagePart,\n): boolean {\n if (resultPart.type !== \"tool\") {\n return false;\n }\n\n const location = findToolPartLocation(\n resultPart.toolCallId,\n resultPart.callId,\n toolPartLocations,\n );\n if (location === undefined) {\n return false;\n }\n\n const message = uiMessages[location.messageIndex];\n const currentPart = message?.parts[location.partIndex];\n if (message === undefined || currentPart?.type !== \"tool\") {\n return false;\n }\n\n const mergedPart: UIToolMessagePart = {\n ...currentPart,\n toolName: resultPart.toolName === \"tool\" ? currentPart.toolName : resultPart.toolName,\n state: \"output-available\",\n ...(resultPart.output === undefined ? {} : { output: resultPart.output }),\n };\n if (currentPart.callId === undefined && resultPart.callId !== undefined) {\n mergedPart.callId = resultPart.callId;\n toolPartLocations.byCallId.set(resultPart.callId, location);\n }\n\n const nextParts = [...message.parts];\n nextParts[location.partIndex] = mergedPart;\n uiMessages[location.messageIndex] = { ...message, parts: nextParts };\n return true;\n}\n\nfunction findToolPartLocation(\n toolCallId: string,\n callId: string | undefined,\n toolPartLocations: UIToolPartLocations,\n): UIToolPartLocation | undefined {\n return (\n (callId === undefined ? undefined : toolPartLocations.byCallId.get(callId)) ??\n toolPartLocations.byToolCallId.get(toolCallId)\n );\n}\n\nfunction toolNameForResult(\n content: ToolContentType,\n uiMessages: UIMessage[],\n toolPartLocations: UIToolPartLocations,\n): string {\n if (content.toolName !== undefined) {\n return content.toolName;\n }\n\n const location = findToolPartLocation(content.id, content.callId, toolPartLocations);\n const part =\n location === undefined\n ? undefined\n : uiMessages[location.messageIndex]?.parts[location.partIndex];\n return part?.type === \"tool\" ? part.toolName : \"tool\";\n}\n\nexport function isUIMessage(value: unknown): value is UIMessage {\n return (\n isRecord(value) &&\n typeof value.id === \"string\" &&\n isUIMessageRole(value.role) &&\n Array.isArray(value.parts)\n );\n}\n\nexport function isUIMessageArray(value: unknown): value is UIMessage[] {\n return Array.isArray(value) && value.every(isUIMessage);\n}\n\nfunction textFromUIParts(parts: UIMessagePart[]): string {\n return parts.flatMap((part) => (part.type === \"text\" ? [part.text] : [])).join(\"\");\n}\n\nfunction outputToToolResultContent(output: JsonValue | undefined): ToolResultContent[] {\n return [{ type: \"text\", text: serializeToolResultOutput(output ?? null) }];\n}\n\nfunction attachmentToUserContent(attachment: UIAttachment): UserContentType {\n if (attachment.type === \"image\" || isImageFileAttachment(attachment)) {\n if (attachment.url !== undefined) {\n return UserContent.imageUrl(attachment.url, imageOptions(attachment));\n }\n if (attachment.data !== undefined && attachment.mediaType !== undefined) {\n return UserContent.imageBase64(\n attachment.data,\n attachment.mediaType,\n imageOptions(attachment),\n );\n }\n throw new TypeError(\"Image attachments require a url or base64 data with mediaType.\");\n }\n\n if (attachment.text !== undefined) {\n return {\n type: \"document\",\n source: {\n type: \"text\",\n text: attachment.text,\n ...(attachment.mediaType === undefined ? {} : { mediaType: attachment.mediaType }),\n ...(attachment.name === undefined ? {} : { filename: attachment.name }),\n },\n };\n }\n\n const mediaType = attachment.mediaType ?? \"application/octet-stream\";\n if (attachment.url !== undefined) {\n return UserContent.documentUrl(attachment.url, mediaType, documentOptions(attachment));\n }\n if (attachment.data !== undefined) {\n return UserContent.documentBase64(attachment.data, mediaType, documentOptions(attachment));\n }\n\n throw new TypeError(\"Document attachments require a url, base64 data, or text.\");\n}\n\nfunction userContentToAttachment(content: ImageContent | DocumentContent): UIAttachment {\n if (content.type === \"image\") {\n const attachment: UIAttachment = {\n id: createId(\"attachment\"),\n type: \"image\",\n ...(content.detail === undefined ? {} : { detail: content.detail }),\n };\n if (content.source.type === \"url\") {\n attachment.url = content.source.url;\n } else {\n attachment.data = content.source.data;\n attachment.mediaType = content.source.mediaType;\n }\n return attachment;\n }\n\n const attachment: UIAttachment = {\n id: createId(\"attachment\"),\n type: \"document\",\n };\n if (content.source.type === \"url\") {\n attachment.url = content.source.url;\n attachment.mediaType = content.source.mediaType;\n if (content.source.filename !== undefined) {\n attachment.name = content.source.filename;\n }\n } else if (content.source.type === \"base64\") {\n attachment.data = content.source.data;\n attachment.mediaType = content.source.mediaType;\n if (content.source.filename !== undefined) {\n attachment.name = content.source.filename;\n }\n } else {\n attachment.text = content.source.text;\n if (content.source.mediaType !== undefined) {\n attachment.mediaType = content.source.mediaType;\n }\n if (content.source.filename !== undefined) {\n attachment.name = content.source.filename;\n }\n }\n return attachment;\n}\n\nfunction isImageFileAttachment(attachment: UIAttachment): boolean {\n return attachment.type === \"file\" && attachment.mediaType?.startsWith(\"image/\") === true;\n}\n\nfunction imageOptions(attachment: UIAttachment): { detail?: ImageDetail } {\n return attachment.detail === undefined ? {} : { detail: attachment.detail };\n}\n\nfunction documentOptions(attachment: UIAttachment): { filename?: string } {\n return attachment.name === undefined ? {} : { filename: attachment.name };\n}\n\nfunction toolResultContentToJson(content: ToolResultContent[]): JsonValue {\n if (content.length === 1 && content[0]?.type === \"text\") {\n return content[0].text;\n }\n return content as JsonValue;\n}\n\nfunction isUserContent(value: unknown): value is UserContentType {\n if (!isRecord(value)) {\n return false;\n }\n\n if (value.type === \"text\") {\n return typeof value.text === \"string\";\n }\n\n if (value.type === \"image\") {\n return isImageContent(value);\n }\n\n if (value.type === \"document\") {\n return isDocumentContent(value);\n }\n\n return false;\n}\n\nfunction isImageContent(value: Record<string, unknown>): boolean {\n if (!isRecord(value.source)) {\n return false;\n }\n\n if (value.source.type === \"url\") {\n return typeof value.source.url === \"string\";\n }\n\n if (value.source.type === \"base64\") {\n return typeof value.source.data === \"string\" && typeof value.source.mediaType === \"string\";\n }\n\n return false;\n}\n\nfunction isDocumentContent(value: Record<string, unknown>): boolean {\n if (!isRecord(value.source)) {\n return false;\n }\n\n if (value.source.type === \"url\") {\n return typeof value.source.url === \"string\" && typeof value.source.mediaType === \"string\";\n }\n\n if (value.source.type === \"base64\") {\n return typeof value.source.data === \"string\" && typeof value.source.mediaType === \"string\";\n }\n\n if (value.source.type === \"text\") {\n return (\n typeof value.source.text === \"string\" &&\n (value.source.mediaType === undefined || typeof value.source.mediaType === \"string\")\n );\n }\n\n return false;\n}\n\nfunction toolPartId(toolCallId: string): string {\n return `tool_${toolCallId}`;\n}\n\nlet nextId = 0;\n\nfunction createId(prefix: string): string {\n const random = globalThis.crypto?.randomUUID?.();\n if (random !== undefined) {\n return `${prefix}_${random}`;\n }\n nextId += 1;\n return `${prefix}_${nextId.toString(36)}`;\n}\n\nfunction isUIMessageRole(value: unknown): value is UIMessage[\"role\"] {\n return value === \"system\" || value === \"user\" || value === \"assistant\" || value === \"tool\";\n}\n\nfunction isRecord(value: unknown): value is Record<string, unknown> {\n return typeof value === \"object\" && value !== null;\n}\n"],"mappings":";;;;;;;;;;AA+BO,SAAS,yBAAyB,UAAsC;AAC7E,QAAM,eAA8B,CAAC;AAErC,aAAW,WAAW,UAAU;AAC9B,UAAM,OAAO,gBAAgB,QAAQ,KAAK;AAE1C,QAAI,QAAQ,SAAS,UAAU;AAC7B,UAAI,KAAK,SAAS,GAAG;AACnB,qBAAa,KAAK,QAAQ,OAAO,IAAI,CAAC;AAAA,MACxC;AACA;AAAA,IACF;AAEA,QAAI,QAAQ,SAAS,QAAQ;AAC3B,YAAM,UAA6B,CAAC;AACpC,iBAAW,QAAQ,QAAQ,OAAO;AAChC,YAAI,KAAK,SAAS,QAAQ;AACxB,kBAAQ,KAAK,YAAY,KAAK,KAAK,IAAI,CAAC;AACxC;AAAA,QACF;AACA,YAAI,KAAK,SAAS,cAAc;AAC9B,kBAAQ,KAAK,wBAAwB,KAAK,UAAU,CAAC;AACrD;AAAA,QACF;AACA,YAAI,KAAK,SAAS,UAAU,cAAc,KAAK,IAAI,GAAG;AACpD,kBAAQ,KAAK,KAAK,IAAI;AACtB;AAAA,QACF;AACA,cAAM,IAAI;AAAA,UACR;AAAA,QACF;AAAA,MACF;AACA,UAAI,QAAQ,SAAS,GAAG;AACtB,qBAAa,KAAK,QAAQ,KAAK,OAAO,CAAC;AAAA,MACzC;AACA;AAAA,IACF;AAEA,QAAI,QAAQ,SAAS,aAAa;AAChC,YAAM,UAAkC,CAAC;AACzC,YAAMA,eAAiC,CAAC;AACxC,iBAAW,QAAQ,QAAQ,OAAO;AAChC,Y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
|
import {
|
|
6
6
|
ToolSet
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-SHORX7TZ.js";
|
|
8
8
|
import {
|
|
9
9
|
resolveMemoryOptions
|
|
10
10
|
} from "./chunk-M6RPFHG7.js";
|
|
@@ -212,4 +212,4 @@ var AgentBuilder = class {
|
|
|
212
212
|
export {
|
|
213
213
|
AgentBuilder
|
|
214
214
|
};
|
|
215
|
-
//# sourceMappingURL=chunk-
|
|
215
|
+
//# sourceMappingURL=chunk-WRNPY5C6.js.map
|
package/dist/evals/index.js
CHANGED
|
@@ -1,21 +1,18 @@
|
|
|
1
1
|
import {
|
|
2
2
|
ExtractorBuilder
|
|
3
|
-
} from "../chunk-
|
|
4
|
-
import "../chunk-
|
|
5
|
-
import "../chunk-
|
|
6
|
-
import "../chunk-
|
|
3
|
+
} from "../chunk-IN5NPAWL.js";
|
|
4
|
+
import "../chunk-WRNPY5C6.js";
|
|
5
|
+
import "../chunk-2STANSN6.js";
|
|
6
|
+
import "../chunk-EGZCTSEW.js";
|
|
7
7
|
import "../chunk-YK4WAAS4.js";
|
|
8
8
|
import "../chunk-XUUY2L2D.js";
|
|
9
|
-
import "../chunk-
|
|
10
|
-
import "../chunk-
|
|
9
|
+
import "../chunk-SHORX7TZ.js";
|
|
10
|
+
import "../chunk-IZM6FNCT.js";
|
|
11
11
|
import "../chunk-NPZDYOE6.js";
|
|
12
12
|
import {
|
|
13
13
|
compact
|
|
14
14
|
} from "../chunk-MMHG7WAM.js";
|
|
15
15
|
import "../chunk-M6RPFHG7.js";
|
|
16
|
-
import "../chunk-FUJ3POKH.js";
|
|
17
|
-
import "../chunk-QVFOCNF6.js";
|
|
18
|
-
import "../chunk-WQKHFADH.js";
|
|
19
16
|
import {
|
|
20
17
|
cosineSimilarity,
|
|
21
18
|
embedText
|
|
@@ -23,6 +20,9 @@ import {
|
|
|
23
20
|
import {
|
|
24
21
|
mapWithConcurrency
|
|
25
22
|
} from "../chunk-OIMLU4SF.js";
|
|
23
|
+
import "../chunk-FUJ3POKH.js";
|
|
24
|
+
import "../chunk-QVFOCNF6.js";
|
|
25
|
+
import "../chunk-WQKHFADH.js";
|
|
26
26
|
import "../chunk-CWUJUSOS.js";
|
|
27
27
|
|
|
28
28
|
// src/evals/agent-target.ts
|
package/dist/extractor/index.js
CHANGED
|
@@ -2,22 +2,22 @@ import {
|
|
|
2
2
|
ExtractionError,
|
|
3
3
|
Extractor,
|
|
4
4
|
ExtractorBuilder
|
|
5
|
-
} from "../chunk-
|
|
6
|
-
import "../chunk-
|
|
7
|
-
import "../chunk-
|
|
8
|
-
import "../chunk-
|
|
5
|
+
} from "../chunk-IN5NPAWL.js";
|
|
6
|
+
import "../chunk-WRNPY5C6.js";
|
|
7
|
+
import "../chunk-2STANSN6.js";
|
|
8
|
+
import "../chunk-EGZCTSEW.js";
|
|
9
9
|
import "../chunk-YK4WAAS4.js";
|
|
10
10
|
import "../chunk-XUUY2L2D.js";
|
|
11
|
-
import "../chunk-
|
|
12
|
-
import "../chunk-
|
|
11
|
+
import "../chunk-SHORX7TZ.js";
|
|
12
|
+
import "../chunk-IZM6FNCT.js";
|
|
13
13
|
import "../chunk-NPZDYOE6.js";
|
|
14
14
|
import "../chunk-MMHG7WAM.js";
|
|
15
15
|
import "../chunk-M6RPFHG7.js";
|
|
16
|
+
import "../chunk-JS5MGVNM.js";
|
|
17
|
+
import "../chunk-OIMLU4SF.js";
|
|
16
18
|
import "../chunk-FUJ3POKH.js";
|
|
17
19
|
import "../chunk-QVFOCNF6.js";
|
|
18
20
|
import "../chunk-WQKHFADH.js";
|
|
19
|
-
import "../chunk-JS5MGVNM.js";
|
|
20
|
-
import "../chunk-OIMLU4SF.js";
|
|
21
21
|
import "../chunk-CWUJUSOS.js";
|
|
22
22
|
export {
|
|
23
23
|
ExtractionError,
|
package/dist/index.js
CHANGED
|
@@ -2,30 +2,30 @@ import {
|
|
|
2
2
|
SkillValidationError,
|
|
3
3
|
loadSkills,
|
|
4
4
|
skill
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-HF4KHHNM.js";
|
|
6
6
|
import {
|
|
7
7
|
coreMessagesToUIMessages,
|
|
8
8
|
uiMessagesToCoreMessages
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-UDISNNKR.js";
|
|
10
10
|
import {
|
|
11
11
|
AgentBuilder
|
|
12
|
-
} from "./chunk-
|
|
13
|
-
import "./chunk-
|
|
12
|
+
} from "./chunk-WRNPY5C6.js";
|
|
13
|
+
import "./chunk-2STANSN6.js";
|
|
14
14
|
import {
|
|
15
15
|
MaxTurnsError,
|
|
16
16
|
PromptCancelledError,
|
|
17
17
|
ToolApprovalRequiredError
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-EGZCTSEW.js";
|
|
19
19
|
import "./chunk-YK4WAAS4.js";
|
|
20
20
|
import "./chunk-XUUY2L2D.js";
|
|
21
21
|
import {
|
|
22
22
|
createMiddleware,
|
|
23
23
|
createThinkTool,
|
|
24
24
|
createToolMiddleware
|
|
25
|
-
} from "./chunk-
|
|
25
|
+
} from "./chunk-SHORX7TZ.js";
|
|
26
26
|
import {
|
|
27
27
|
createTool
|
|
28
|
-
} from "./chunk-
|
|
28
|
+
} from "./chunk-IZM6FNCT.js";
|
|
29
29
|
import {
|
|
30
30
|
cancelPrompt,
|
|
31
31
|
createHook,
|
|
@@ -36,6 +36,8 @@ import {
|
|
|
36
36
|
} from "./chunk-NPZDYOE6.js";
|
|
37
37
|
import "./chunk-MMHG7WAM.js";
|
|
38
38
|
import "./chunk-M6RPFHG7.js";
|
|
39
|
+
import "./chunk-JS5MGVNM.js";
|
|
40
|
+
import "./chunk-OIMLU4SF.js";
|
|
39
41
|
import {
|
|
40
42
|
createCompletion,
|
|
41
43
|
createCompletionStream,
|
|
@@ -49,8 +51,6 @@ import {
|
|
|
49
51
|
UserContent
|
|
50
52
|
} from "./chunk-QVFOCNF6.js";
|
|
51
53
|
import "./chunk-WQKHFADH.js";
|
|
52
|
-
import "./chunk-JS5MGVNM.js";
|
|
53
|
-
import "./chunk-OIMLU4SF.js";
|
|
54
54
|
import {
|
|
55
55
|
allow,
|
|
56
56
|
block,
|
package/dist/internal/agent.js
CHANGED
|
@@ -2,19 +2,19 @@ import {
|
|
|
2
2
|
Agent,
|
|
3
3
|
AgentSession,
|
|
4
4
|
DEFAULT_MAX_TURNS
|
|
5
|
-
} from "../chunk-
|
|
6
|
-
import "../chunk-
|
|
5
|
+
} from "../chunk-2STANSN6.js";
|
|
6
|
+
import "../chunk-EGZCTSEW.js";
|
|
7
7
|
import "../chunk-YK4WAAS4.js";
|
|
8
8
|
import "../chunk-XUUY2L2D.js";
|
|
9
|
-
import "../chunk-
|
|
10
|
-
import "../chunk-
|
|
9
|
+
import "../chunk-SHORX7TZ.js";
|
|
10
|
+
import "../chunk-IZM6FNCT.js";
|
|
11
11
|
import "../chunk-NPZDYOE6.js";
|
|
12
12
|
import "../chunk-MMHG7WAM.js";
|
|
13
|
+
import "../chunk-JS5MGVNM.js";
|
|
14
|
+
import "../chunk-OIMLU4SF.js";
|
|
13
15
|
import "../chunk-FUJ3POKH.js";
|
|
14
16
|
import "../chunk-QVFOCNF6.js";
|
|
15
17
|
import "../chunk-WQKHFADH.js";
|
|
16
|
-
import "../chunk-JS5MGVNM.js";
|
|
17
|
-
import "../chunk-OIMLU4SF.js";
|
|
18
18
|
import "../chunk-CWUJUSOS.js";
|
|
19
19
|
export {
|
|
20
20
|
Agent,
|
package/dist/request/index.js
CHANGED
|
@@ -3,17 +3,17 @@ import {
|
|
|
3
3
|
PromptCancelledError,
|
|
4
4
|
PromptRequest,
|
|
5
5
|
ToolApprovalRequiredError
|
|
6
|
-
} from "../chunk-
|
|
6
|
+
} from "../chunk-EGZCTSEW.js";
|
|
7
7
|
import "../chunk-XUUY2L2D.js";
|
|
8
|
-
import "../chunk-
|
|
9
|
-
import "../chunk-
|
|
8
|
+
import "../chunk-SHORX7TZ.js";
|
|
9
|
+
import "../chunk-IZM6FNCT.js";
|
|
10
10
|
import "../chunk-NPZDYOE6.js";
|
|
11
11
|
import "../chunk-MMHG7WAM.js";
|
|
12
|
+
import "../chunk-JS5MGVNM.js";
|
|
13
|
+
import "../chunk-OIMLU4SF.js";
|
|
12
14
|
import "../chunk-FUJ3POKH.js";
|
|
13
15
|
import "../chunk-QVFOCNF6.js";
|
|
14
16
|
import "../chunk-WQKHFADH.js";
|
|
15
|
-
import "../chunk-JS5MGVNM.js";
|
|
16
|
-
import "../chunk-OIMLU4SF.js";
|
|
17
17
|
import "../chunk-CWUJUSOS.js";
|
|
18
18
|
export {
|
|
19
19
|
MaxTurnsError,
|
package/dist/skills/index.js
CHANGED
|
@@ -2,15 +2,15 @@ import {
|
|
|
2
2
|
SkillValidationError,
|
|
3
3
|
loadSkills,
|
|
4
4
|
skill
|
|
5
|
-
} from "../chunk-
|
|
5
|
+
} from "../chunk-HF4KHHNM.js";
|
|
6
6
|
import "../chunk-YK4WAAS4.js";
|
|
7
|
-
import "../chunk-
|
|
8
|
-
import "../chunk-
|
|
7
|
+
import "../chunk-SHORX7TZ.js";
|
|
8
|
+
import "../chunk-IZM6FNCT.js";
|
|
9
9
|
import "../chunk-MMHG7WAM.js";
|
|
10
|
-
import "../chunk-QVFOCNF6.js";
|
|
11
|
-
import "../chunk-WQKHFADH.js";
|
|
12
10
|
import "../chunk-JS5MGVNM.js";
|
|
13
11
|
import "../chunk-OIMLU4SF.js";
|
|
12
|
+
import "../chunk-QVFOCNF6.js";
|
|
13
|
+
import "../chunk-WQKHFADH.js";
|
|
14
14
|
export {
|
|
15
15
|
SkillValidationError,
|
|
16
16
|
loadSkills,
|
package/dist/tool/index.js
CHANGED
|
@@ -13,18 +13,18 @@ import {
|
|
|
13
13
|
normalizeToolResultOutput,
|
|
14
14
|
parseToolArgs,
|
|
15
15
|
toolResultContentToText
|
|
16
|
-
} from "../chunk-
|
|
16
|
+
} from "../chunk-SHORX7TZ.js";
|
|
17
17
|
import {
|
|
18
18
|
createTool
|
|
19
|
-
} from "../chunk-
|
|
19
|
+
} from "../chunk-IZM6FNCT.js";
|
|
20
20
|
import "../chunk-MMHG7WAM.js";
|
|
21
|
+
import "../chunk-JS5MGVNM.js";
|
|
22
|
+
import "../chunk-OIMLU4SF.js";
|
|
21
23
|
import {
|
|
22
24
|
isToolResultContentArray,
|
|
23
25
|
serializeToolResultOutput
|
|
24
26
|
} from "../chunk-QVFOCNF6.js";
|
|
25
27
|
import "../chunk-WQKHFADH.js";
|
|
26
|
-
import "../chunk-JS5MGVNM.js";
|
|
27
|
-
import "../chunk-OIMLU4SF.js";
|
|
28
28
|
export {
|
|
29
29
|
ToolCallError,
|
|
30
30
|
ToolJsonError,
|
package/dist/ui/index.d.ts
CHANGED
package/dist/ui/index.js
CHANGED
|
@@ -3,11 +3,11 @@ import {
|
|
|
3
3
|
InMemoryVectorStore,
|
|
4
4
|
createVectorSearchTool,
|
|
5
5
|
vectorFilter
|
|
6
|
-
} from "../chunk-
|
|
6
|
+
} from "../chunk-IZM6FNCT.js";
|
|
7
7
|
import "../chunk-MMHG7WAM.js";
|
|
8
|
-
import "../chunk-WQKHFADH.js";
|
|
9
8
|
import "../chunk-JS5MGVNM.js";
|
|
10
9
|
import "../chunk-OIMLU4SF.js";
|
|
10
|
+
import "../chunk-WQKHFADH.js";
|
|
11
11
|
export {
|
|
12
12
|
InMemoryVectorIndex,
|
|
13
13
|
InMemoryVectorStore,
|