@voltro/ai 0.87.0 → 0.89.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/CHANGELOG.md +272 -6
- package/THIRD-PARTY-NOTICES.md +649 -53
- package/dist/agent.js +1 -2
- package/dist/agentConstants.js +1 -2
- package/dist/agentExecutor.js +1 -2
- package/dist/aiSettings.js +1 -2
- package/dist/api.js +1 -2
- package/dist/appTools.js +1 -2
- package/dist/budget.js +1 -2
- package/dist/callEvidence.js +1 -2
- package/dist/copilot.js +1 -2
- package/dist/cost.js +1 -2
- package/dist/embed.js +1 -2
- package/dist/embeddingProvider.js +1 -2
- package/dist/eval.js +1 -2
- package/dist/events.js +1 -2
- package/dist/executableModalities.js +1 -2
- package/dist/gateway.js +1 -2
- package/dist/gatewayCatalog.js +1 -2
- package/dist/gatewayMedia.js +1 -2
- package/dist/inferenceDispatch.js +1 -2
- package/dist/inferenceQueue.js +1 -2
- package/dist/jsonOutputValidation.js +1 -2
- package/dist/mcpClient.js +1 -2
- package/dist/mcpTools.js +1 -2
- package/dist/media.js +1 -2
- package/dist/mediaBytes.js +1 -2
- package/dist/mediaCall.js +1 -2
- package/dist/mediaTaskProvider.js +1 -2
- package/dist/middleware.js +1 -2
- package/dist/observe.js +1 -2
- package/dist/prompts.js +1 -2
- package/dist/provider.js +1 -2
- package/dist/realtimeEvent.js +1 -2
- package/dist/realtimeSession.js +1 -2
- package/dist/rerank.js +1 -2
- package/dist/resumableStream.js +1 -2
- package/dist/retrieveReranked.js +1 -2
- package/dist/runAndPersist.js +1 -2
- package/dist/semanticCache.js +1 -2
- package/dist/speechProvider.js +1 -2
- package/dist/streamRegistry.js +1 -2
- package/dist/streamText.js +1 -2
- package/dist/streamTranscribe.js +1 -2
- package/dist/streamWakeups.js +1 -2
- package/dist/structuredEvidence.js +1 -2
- package/dist/test.js +1 -2
- package/dist/threads.js +1 -2
- package/dist/tools.js +1 -2
- package/dist/transcribe.js +1 -2
- package/dist/transcriptionEvent.js +1 -2
- package/dist/workflow.js +1 -2
- package/package.json +13 -13
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { normalizeAiCallEvidence as e } from "./callEvidence.js";
|
|
2
2
|
import { wrapLanguageModel as t } from "ai";
|
|
3
|
-
|
|
3
|
+
// src/structuredEvidence.ts
|
|
4
4
|
var n = (n, r) => {
|
|
5
5
|
let i = [];
|
|
6
6
|
return {
|
|
@@ -44,5 +44,4 @@ var n = (n, r) => {
|
|
|
44
44
|
}
|
|
45
45
|
};
|
|
46
46
|
};
|
|
47
|
-
//#endregion
|
|
48
47
|
export { n as captureStructuredEvidence };
|
package/dist/test.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { MockScript as e, setProviderOverride as t } from "./provider.js";
|
|
2
|
-
|
|
2
|
+
// src/test/index.ts
|
|
3
3
|
var n = (e) => e.turns && e.turns.length > 0 ? e.turns : e.stream && e.stream.length > 0 ? [{ text: e.stream.join("") }] : e.generate ? [{ text: e.generate.text }] : [{ text: "" }], r = (t) => {
|
|
4
4
|
let r = new e(n(t));
|
|
5
5
|
return {
|
|
@@ -36,5 +36,4 @@ var n = (e) => e.turns && e.turns.length > 0 ? e.turns : e.stream && e.stream.le
|
|
|
36
36
|
return t;
|
|
37
37
|
};
|
|
38
38
|
};
|
|
39
|
-
//#endregion
|
|
40
39
|
export { a as mockAi, o as throwNTimes, i as useMockAi };
|
package/dist/threads.js
CHANGED
|
@@ -2,7 +2,7 @@ import { AGENT_MESSAGES_TABLE as e, AGENT_THREADS_TABLE as t } from "./agentCons
|
|
|
2
2
|
import { AgentThreadAccessDenied as n } from "./agent.js";
|
|
3
3
|
import { Effect as r } from "effect";
|
|
4
4
|
import { boolean as i, id as a, integer as o, json as s, table as c, text as l, timestamp as u } from "@voltro/database";
|
|
5
|
-
|
|
5
|
+
// src/threads.ts
|
|
6
6
|
var d = c(t, {
|
|
7
7
|
id: a({ prefix: "thread" }),
|
|
8
8
|
tenantId: l().nullable(),
|
|
@@ -88,5 +88,4 @@ var d = c(t, {
|
|
|
88
88
|
skip: void 0,
|
|
89
89
|
projection: void 0
|
|
90
90
|
}))[0] ?? null);
|
|
91
|
-
//#endregion
|
|
92
91
|
export { e as AGENT_MESSAGES_TABLE, t as AGENT_THREADS_TABLE, f as agentMessagesTable, d as agentThreadsTable, h as appendMessage, p as createThread, m as ensureThreadOwned, g as getMessages, _ as getThread };
|
package/dist/tools.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsonSchema as e, tool as t } from "ai";
|
|
2
2
|
import { Context as n, Effect as r, Schema as i } from "effect";
|
|
3
3
|
import { jsonSchemaOf as a } from "@voltro/protocol";
|
|
4
|
-
|
|
4
|
+
// src/tools.ts
|
|
5
5
|
var o = (e, t) => e(t), s = Symbol.for("@voltro/ai/Tool"), c = (e) => ({
|
|
6
6
|
...e,
|
|
7
7
|
[s]: !0
|
|
@@ -64,5 +64,4 @@ var o = (e, t) => e(t), s = Symbol.for("@voltro/ai/Tool"), c = (e) => ({
|
|
|
64
64
|
}
|
|
65
65
|
return o;
|
|
66
66
|
};
|
|
67
|
-
//#endregion
|
|
68
67
|
export { g as buildSdkTools, c as defineTool, l as isTool, u as resolveToolModuleHandlers };
|
package/dist/transcribe.js
CHANGED
|
@@ -3,7 +3,7 @@ import { aiCallAttributes as n, withAiCallSpan as r } from "./observe.js";
|
|
|
3
3
|
import { aiGenerationError as i } from "./api.js";
|
|
4
4
|
import { experimental_transcribe as a } from "ai";
|
|
5
5
|
import { Effect as o } from "effect";
|
|
6
|
-
|
|
6
|
+
// src/transcribe.ts
|
|
7
7
|
var s = async (e, t) => {
|
|
8
8
|
if ("bytes" in e) return {
|
|
9
9
|
audio: e.bytes,
|
|
@@ -60,5 +60,4 @@ var s = async (e, t) => {
|
|
|
60
60
|
catch: (e) => i(e)
|
|
61
61
|
}));
|
|
62
62
|
};
|
|
63
|
-
//#endregion
|
|
64
63
|
export { l as transcribe };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Schema as e } from "effect";
|
|
2
|
-
|
|
2
|
+
// src/transcriptionEvent.ts
|
|
3
3
|
var t = class extends e.TaggedError()("TranscriptionStreamError", {
|
|
4
4
|
reason: e.Literals([
|
|
5
5
|
"input",
|
|
@@ -42,5 +42,4 @@ var t = class extends e.TaggedError()("TranscriptionStreamError", {
|
|
|
42
42
|
durationSec: e.optional(e.Number)
|
|
43
43
|
})
|
|
44
44
|
]);
|
|
45
|
-
//#endregion
|
|
46
45
|
export { t as TranscriptionStreamError, i as TranscriptionStreamEvent };
|
package/dist/workflow.js
CHANGED
|
@@ -8,7 +8,7 @@ import { AI_INFERENCES_TABLE as f, inferenceSignalName as p, offloadedInferenceI
|
|
|
8
8
|
import { Effect as h, Schema as g } from "effect";
|
|
9
9
|
import { eq as _ } from "@voltro/database";
|
|
10
10
|
import { BudgetHoldExpired as v, CurrentWorkflowExecutionId as y, SuspensionUnavailable as b, WorkflowCannotPark as x, awaitSignalSuspending as S, step as C, suspendForBudget as w } from "@voltro/workflow";
|
|
11
|
-
|
|
11
|
+
// src/inferStep.ts
|
|
12
12
|
var T = {
|
|
13
13
|
maxAttempts: 4,
|
|
14
14
|
strategy: "exponential",
|
|
@@ -307,5 +307,4 @@ var T = {
|
|
|
307
307
|
})).pipe(h.tap((e) => j(t, n, "generateObject", e, r.rendered)), h.tap(() => M(t, r.rendered)), h.map((e) => e.object))
|
|
308
308
|
}));
|
|
309
309
|
};
|
|
310
|
-
//#endregion
|
|
311
310
|
export { T as AI_STEP_RETRY, z as AiBudgetMisuseError, F as AiOffloadError, I as AiOffloadMisuseError, D as DEFAULT_AI_BUDGET_NAME, E as DEFAULT_OFFLOAD_TIMEOUT_MS, U as TranscriptionStepResult, K as aiObjectStep, H as aiStep, G as mediaStep, u as promptDigest, O as promptRecordFor, k as resolveStepPrompt, W as transcribeStep };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@voltro/ai",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.89.0",
|
|
4
4
|
"description": "Effect-native AI primitives — generateText / generateObject / streamText, tools, agents, media generation, cost tracking + budgets, and provider fallback.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"voltro",
|
|
@@ -53,22 +53,22 @@
|
|
|
53
53
|
"node": ">=24.0.0"
|
|
54
54
|
},
|
|
55
55
|
"dependencies": {
|
|
56
|
-
"@ai-sdk/anthropic": "^4.0.
|
|
57
|
-
"@ai-sdk/openai": "^4.0.
|
|
58
|
-
"@voltro/cache": "0.
|
|
59
|
-
"@voltro/database": "0.
|
|
60
|
-
"@voltro/env": "0.
|
|
61
|
-
"@voltro/protocol": "0.
|
|
62
|
-
"@voltro/workflow": "0.
|
|
56
|
+
"@ai-sdk/anthropic": "^4.0.91",
|
|
57
|
+
"@ai-sdk/openai": "^4.0.104",
|
|
58
|
+
"@voltro/cache": "0.89.0",
|
|
59
|
+
"@voltro/database": "0.89.0",
|
|
60
|
+
"@voltro/env": "0.89.0",
|
|
61
|
+
"@voltro/protocol": "0.89.0",
|
|
62
|
+
"@voltro/workflow": "0.89.0",
|
|
63
63
|
"ajv": "^8.20.0",
|
|
64
64
|
"ajv-formats": "^3.0.1",
|
|
65
|
-
"ws": "^8.
|
|
65
|
+
"ws": "^8.22.0"
|
|
66
66
|
},
|
|
67
67
|
"peerDependencies": {
|
|
68
|
-
"@ai-sdk/gateway": "^4.0.
|
|
69
|
-
"@ai-sdk/provider": "^4.0.
|
|
70
|
-
"ai": "^7.0.
|
|
71
|
-
"effect": "4.0
|
|
68
|
+
"@ai-sdk/gateway": "^4.0.85",
|
|
69
|
+
"@ai-sdk/provider": "^4.0.17",
|
|
70
|
+
"ai": "^7.0.105",
|
|
71
|
+
"effect": "4.1.0"
|
|
72
72
|
},
|
|
73
73
|
"publishConfig": {
|
|
74
74
|
"access": "public"
|