@relayfx/sdk 0.3.4 → 0.3.5
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/ai.js +1 -1
- package/dist/http-server.js +1 -1
- package/dist/{index-pr9133xv.js → index-5dqkw53p.js} +1 -1
- package/dist/{index-25gwk9tj.js → index-8fpd6kvj.js} +46 -31
- package/dist/{index-01rpd00m.js → index-cq8t8ka1.js} +165 -153
- package/dist/{index-cphmds30.js → index-cyfx5y3r.js} +3 -0
- package/dist/index.js +10 -9
- package/dist/migrations/20260718140000_execution_scoped_tool_calls/migration.sql +35 -0
- package/dist/migrations/mysql/0011_execution_scoped_tool_calls.sql +29 -0
- package/dist/migrations/pg/20260718140000_execution_scoped_tool_calls/migration.sql +35 -0
- package/dist/migrations/sqlite/0011_execution_scoped_tool_calls.sql +53 -0
- package/dist/mysql.js +4 -4
- package/dist/postgres.js +21 -10
- package/dist/sqlite.js +62 -5
- package/dist/types/relay/operation.d.ts +9 -0
- package/dist/types/relay/sqlite-migrations.d.ts +6 -1
- package/dist/types/store-sql/schema/relay-schema.d.ts +30 -0
- package/dist/types/store-sql/tool/tool-call-repository.d.ts +11 -6
- package/package.json +3 -3
package/dist/ai.js
CHANGED
package/dist/http-server.js
CHANGED
|
@@ -3,7 +3,7 @@ import {
|
|
|
3
3
|
__export
|
|
4
4
|
} from "./index-nb39b5ae.js";
|
|
5
5
|
|
|
6
|
-
// ../../node_modules/.bun/@batonfx+core@0.6.
|
|
6
|
+
// ../../node_modules/.bun/@batonfx+core@0.6.2/node_modules/@batonfx/core/dist/turn-policy.js
|
|
7
7
|
var exports_turn_policy = {};
|
|
8
8
|
__export(exports_turn_policy, {
|
|
9
9
|
untilToolCall: () => untilToolCall,
|
|
@@ -74,7 +74,7 @@ var both = dual(2, (first, second) => ({
|
|
|
74
74
|
}));
|
|
75
75
|
var defaultPolicy = forever;
|
|
76
76
|
|
|
77
|
-
// ../../node_modules/.bun/@batonfx+core@0.6.
|
|
77
|
+
// ../../node_modules/.bun/@batonfx+core@0.6.2/node_modules/@batonfx/core/dist/agent-event.js
|
|
78
78
|
var exports_agent_event = {};
|
|
79
79
|
__export(exports_agent_event, {
|
|
80
80
|
addUsage: () => addUsage,
|
|
@@ -184,7 +184,7 @@ class ResumeMismatch extends Schema2.TaggedErrorClass()("@batonfx/core/ResumeMis
|
|
|
184
184
|
}) {
|
|
185
185
|
}
|
|
186
186
|
|
|
187
|
-
// ../../node_modules/.bun/@batonfx+core@0.6.
|
|
187
|
+
// ../../node_modules/.bun/@batonfx+core@0.6.2/node_modules/@batonfx/core/dist/tool-context.js
|
|
188
188
|
var exports_tool_context = {};
|
|
189
189
|
__export(exports_tool_context, {
|
|
190
190
|
testLayer: () => testLayer,
|
|
@@ -202,7 +202,7 @@ var layerDefault = Layer2.sync(ToolContext, () => ToolContext.of({
|
|
|
202
202
|
}));
|
|
203
203
|
var testLayer = (implementation) => Layer2.succeed(ToolContext, ToolContext.of(implementation));
|
|
204
204
|
|
|
205
|
-
// ../../node_modules/.bun/@batonfx+core@0.6.
|
|
205
|
+
// ../../node_modules/.bun/@batonfx+core@0.6.2/node_modules/@batonfx/core/dist/tool-executor.js
|
|
206
206
|
var exports_tool_executor = {};
|
|
207
207
|
__export(exports_tool_executor, {
|
|
208
208
|
testLayer: () => testLayer2,
|
|
@@ -427,7 +427,7 @@ function router(routes) {
|
|
|
427
427
|
}
|
|
428
428
|
var testLayer2 = (implementation) => Layer3.succeed(ToolExecutor, ToolExecutor.of(implementation));
|
|
429
429
|
|
|
430
|
-
// ../../node_modules/.bun/@batonfx+core@0.6.
|
|
430
|
+
// ../../node_modules/.bun/@batonfx+core@0.6.2/node_modules/@batonfx/core/dist/approvals.js
|
|
431
431
|
var exports_approvals = {};
|
|
432
432
|
__export(exports_approvals, {
|
|
433
433
|
testLayer: () => testLayer3,
|
|
@@ -442,7 +442,7 @@ var autoApprove = Layer4.succeed(Approvals, Approvals.of({ check: () => Effect4.
|
|
|
442
442
|
var denyAll = Layer4.succeed(Approvals, Approvals.of({ check: () => Effect4.succeed({ _tag: "Denied" }) }));
|
|
443
443
|
var testLayer3 = (implementation) => Layer4.succeed(Approvals, Approvals.of(implementation));
|
|
444
444
|
|
|
445
|
-
// ../../node_modules/.bun/@batonfx+core@0.6.
|
|
445
|
+
// ../../node_modules/.bun/@batonfx+core@0.6.2/node_modules/@batonfx/core/dist/memory.js
|
|
446
446
|
var exports_memory = {};
|
|
447
447
|
__export(exports_memory, {
|
|
448
448
|
testLayer: () => testLayer4,
|
|
@@ -510,7 +510,7 @@ var layerNoop = Layer5.succeed(Memory, Memory.of(noop));
|
|
|
510
510
|
var noopLayer = layerNoop;
|
|
511
511
|
var testLayer4 = (implementation) => Layer5.succeed(Memory, Memory.of(implementation));
|
|
512
512
|
|
|
513
|
-
// ../../node_modules/.bun/@batonfx+core@0.6.
|
|
513
|
+
// ../../node_modules/.bun/@batonfx+core@0.6.2/node_modules/@batonfx/core/dist/session.js
|
|
514
514
|
var exports_session = {};
|
|
515
515
|
__export(exports_session, {
|
|
516
516
|
testLayer: () => testLayer5,
|
|
@@ -789,7 +789,7 @@ var layerMemory = Layer6.effect(SessionStore, Ref.make(initialState).pipe(Effect
|
|
|
789
789
|
var memoryLayer = layerMemory;
|
|
790
790
|
var testLayer5 = (implementation) => Layer6.succeed(SessionStore, SessionStore.of(implementation));
|
|
791
791
|
|
|
792
|
-
// ../../node_modules/.bun/@batonfx+core@0.6.
|
|
792
|
+
// ../../node_modules/.bun/@batonfx+core@0.6.2/node_modules/@batonfx/core/dist/tool-output.js
|
|
793
793
|
var exports_tool_output = {};
|
|
794
794
|
__export(exports_tool_output, {
|
|
795
795
|
testLayer: () => testLayer6,
|
|
@@ -865,7 +865,7 @@ var bound = Function2.dual(2, (result, options) => Effect7.gen(function* () {
|
|
|
865
865
|
return boundedFromOriginal(encoded, bytes, options.maxBytes, [path.value]);
|
|
866
866
|
}));
|
|
867
867
|
|
|
868
|
-
// ../../node_modules/.bun/@batonfx+core@0.6.
|
|
868
|
+
// ../../node_modules/.bun/@batonfx+core@0.6.2/node_modules/@batonfx/core/dist/compaction.js
|
|
869
869
|
var exports_compaction = {};
|
|
870
870
|
__export(exports_compaction, {
|
|
871
871
|
truncate: () => truncate,
|
|
@@ -1134,7 +1134,7 @@ var truncate = (maxTokens) => ({
|
|
|
1134
1134
|
});
|
|
1135
1135
|
var testLayer7 = (implementation) => Layer8.succeed(Compaction, Compaction.of(implementation));
|
|
1136
1136
|
|
|
1137
|
-
// ../../node_modules/.bun/@batonfx+core@0.6.
|
|
1137
|
+
// ../../node_modules/.bun/@batonfx+core@0.6.2/node_modules/@batonfx/core/dist/instructions.js
|
|
1138
1138
|
var exports_instructions = {};
|
|
1139
1139
|
__export(exports_instructions, {
|
|
1140
1140
|
testLayer: () => testLayer8,
|
|
@@ -1183,7 +1183,7 @@ var renderUpdate = dual3(2, (epoch, context) => Effect9.gen(function* () {
|
|
|
1183
1183
|
var layer2 = (sources) => Layer9.succeed(Instructions, Instructions.of({ sources: [...sources] }));
|
|
1184
1184
|
var testLayer8 = (implementation) => Layer9.succeed(Instructions, Instructions.of(implementation));
|
|
1185
1185
|
|
|
1186
|
-
// ../../node_modules/.bun/@batonfx+core@0.6.
|
|
1186
|
+
// ../../node_modules/.bun/@batonfx+core@0.6.2/node_modules/@batonfx/core/dist/model-middleware.js
|
|
1187
1187
|
var exports_model_middleware = {};
|
|
1188
1188
|
__export(exports_model_middleware, {
|
|
1189
1189
|
layerIdentity: () => layerIdentity,
|
|
@@ -1199,7 +1199,7 @@ var layerIdentity = Layer10.succeed(ModelMiddleware, []);
|
|
|
1199
1199
|
var identityLayer = layerIdentity;
|
|
1200
1200
|
var layer3 = (middleware) => Layer10.succeed(ModelMiddleware, middleware);
|
|
1201
1201
|
|
|
1202
|
-
// ../../node_modules/.bun/@batonfx+core@0.6.
|
|
1202
|
+
// ../../node_modules/.bun/@batonfx+core@0.6.2/node_modules/@batonfx/core/dist/model-registry.js
|
|
1203
1203
|
var exports_model_registry = {};
|
|
1204
1204
|
__export(exports_model_registry, {
|
|
1205
1205
|
testLayer: () => testLayer9,
|
|
@@ -1326,7 +1326,7 @@ var operate = Function4.dual(2, (selection, effect) => Effect11.gen(function* ()
|
|
|
1326
1326
|
var stream = Function4.dual(2, (selection, operation) => Stream2.unwrap(Service.pipe(Effect11.map((service) => service.stream(selection, operation)))));
|
|
1327
1327
|
var provide = operate;
|
|
1328
1328
|
|
|
1329
|
-
// ../../node_modules/.bun/@batonfx+core@0.6.
|
|
1329
|
+
// ../../node_modules/.bun/@batonfx+core@0.6.2/node_modules/@batonfx/core/dist/model-resilience.js
|
|
1330
1330
|
var exports_model_resilience = {};
|
|
1331
1331
|
__export(exports_model_resilience, {
|
|
1332
1332
|
testLayer: () => testLayer10,
|
|
@@ -1379,7 +1379,7 @@ var apply = Function5.dual(2, (model, resilience) => ({
|
|
|
1379
1379
|
streamText: (options) => retryStream(() => model.streamText(options), (error) => Response5.makePart("error", { error }), resilience)
|
|
1380
1380
|
}));
|
|
1381
1381
|
|
|
1382
|
-
// ../../node_modules/.bun/@batonfx+core@0.6.
|
|
1382
|
+
// ../../node_modules/.bun/@batonfx+core@0.6.2/node_modules/@batonfx/core/dist/permissions.js
|
|
1383
1383
|
var exports_permissions = {};
|
|
1384
1384
|
__export(exports_permissions, {
|
|
1385
1385
|
testLayer: () => testLayer11,
|
|
@@ -1513,7 +1513,7 @@ var ruleStoreMemory = (initialRules = []) => Layer13.effect(RuleStore, Ref4.make
|
|
|
1513
1513
|
var ruleStoreTestLayer = (implementation) => Layer13.succeed(RuleStore, RuleStore.of(implementation));
|
|
1514
1514
|
var testLayer11 = (implementation) => Layer13.succeed(Permissions, Permissions.of(implementation));
|
|
1515
1515
|
|
|
1516
|
-
// ../../node_modules/.bun/@batonfx+core@0.6.
|
|
1516
|
+
// ../../node_modules/.bun/@batonfx+core@0.6.2/node_modules/@batonfx/core/dist/skill-source.js
|
|
1517
1517
|
var exports_skill_source = {};
|
|
1518
1518
|
__export(exports_skill_source, {
|
|
1519
1519
|
testLayer: () => testLayer12,
|
|
@@ -1593,7 +1593,7 @@ var selectListings = Function6.dual(3, (skills, budgetTokens, recentlyUsed) => {
|
|
|
1593
1593
|
return selected;
|
|
1594
1594
|
});
|
|
1595
1595
|
|
|
1596
|
-
// ../../node_modules/.bun/@batonfx+core@0.6.
|
|
1596
|
+
// ../../node_modules/.bun/@batonfx+core@0.6.2/node_modules/@batonfx/core/dist/steering.js
|
|
1597
1597
|
var exports_steering = {};
|
|
1598
1598
|
__export(exports_steering, {
|
|
1599
1599
|
testLayer: () => testLayer13,
|
|
@@ -1651,7 +1651,7 @@ var layer7 = (options = {}) => Layer15.effect(Steering, Effect15.gen(function* (
|
|
|
1651
1651
|
}));
|
|
1652
1652
|
var testLayer13 = (implementation) => Layer15.succeed(Steering, Steering.of(implementation));
|
|
1653
1653
|
|
|
1654
|
-
// ../../node_modules/.bun/@batonfx+core@0.6.
|
|
1654
|
+
// ../../node_modules/.bun/@batonfx+core@0.6.2/node_modules/@batonfx/core/dist/agent.js
|
|
1655
1655
|
var exports_agent = {};
|
|
1656
1656
|
__export(exports_agent, {
|
|
1657
1657
|
streamObject: () => streamObject,
|
|
@@ -1670,7 +1670,7 @@ import { Cause as Cause4, Channel, Effect as Effect18, Equal, Exit as Exit2, Fib
|
|
|
1670
1670
|
import { dual as dual7 } from "effect/Function";
|
|
1671
1671
|
import { AiError as AiError3, Chat, LanguageModel as LanguageModel5, Prompt as Prompt9, Response as Response7, Telemetry, Tokenizer as Tokenizer2, Tool as Tool7, Toolkit as Toolkit4 } from "effect/unstable/ai";
|
|
1672
1672
|
|
|
1673
|
-
// ../../node_modules/.bun/@batonfx+core@0.6.
|
|
1673
|
+
// ../../node_modules/.bun/@batonfx+core@0.6.2/node_modules/@batonfx/core/dist/tool-authorization.js
|
|
1674
1674
|
import { Cause as Cause3, Context as Context15, Effect as Effect16, Layer as Layer16, Option as Option10, Schema as Schema13 } from "effect";
|
|
1675
1675
|
import { dual as dual5 } from "effect/Function";
|
|
1676
1676
|
import { Prompt as Prompt8, Response as Response6, Tool as Tool5 } from "effect/unstable/ai";
|
|
@@ -1841,7 +1841,7 @@ var make4 = (options = {}) => ({
|
|
|
1841
1841
|
});
|
|
1842
1842
|
var fromPermissions = dual5((args) => args.length === 2 || args.length === 1 && ("evaluate" in args[0]), (permissions, options = {}) => make4({ ...options, permissions }));
|
|
1843
1843
|
|
|
1844
|
-
// ../../node_modules/.bun/@batonfx+core@0.6.
|
|
1844
|
+
// ../../node_modules/.bun/@batonfx+core@0.6.2/node_modules/@batonfx/core/dist/tool-registry.js
|
|
1845
1845
|
import { Effect as Effect17, HashMap as HashMap3, Option as Option11 } from "effect";
|
|
1846
1846
|
import { dual as dual6 } from "effect/Function";
|
|
1847
1847
|
import { Tool as Tool6, Toolkit as Toolkit3 } from "effect/unstable/ai";
|
|
@@ -1894,7 +1894,7 @@ var select = dual6(2, (registry, names) => {
|
|
|
1894
1894
|
};
|
|
1895
1895
|
});
|
|
1896
1896
|
|
|
1897
|
-
// ../../node_modules/.bun/@batonfx+core@0.6.
|
|
1897
|
+
// ../../node_modules/.bun/@batonfx+core@0.6.2/node_modules/@batonfx/core/dist/agent.js
|
|
1898
1898
|
var AgentTypeId = Symbol.for("@batonfx/core/Agent");
|
|
1899
1899
|
var ModelLayerTypeId = Symbol.for("@batonfx/core/Agent/ModelLayer");
|
|
1900
1900
|
var classifyOtherFailure = () => "other";
|
|
@@ -1911,6 +1911,7 @@ function make5(nameOrOptions, options = {}) {
|
|
|
1911
1911
|
...curriedOptions.model === undefined ? {} : { model: curriedOptions.model },
|
|
1912
1912
|
...curriedOptions.memory === undefined ? {} : { memory: curriedOptions.memory },
|
|
1913
1913
|
...curriedOptions.authorization === undefined ? {} : { authorization: curriedOptions.authorization },
|
|
1914
|
+
...curriedOptions.toolExecution === undefined ? {} : { toolExecution: curriedOptions.toolExecution },
|
|
1914
1915
|
...curriedOptions.metadata === undefined ? {} : { metadata: curriedOptions.metadata }
|
|
1915
1916
|
});
|
|
1916
1917
|
}
|
|
@@ -1922,6 +1923,7 @@ function make5(nameOrOptions, options = {}) {
|
|
|
1922
1923
|
...curriedOptions.model === undefined ? {} : { model: curriedOptions.model },
|
|
1923
1924
|
...curriedOptions.memory === undefined ? {} : { memory: curriedOptions.memory },
|
|
1924
1925
|
...curriedOptions.authorization === undefined ? {} : { authorization: curriedOptions.authorization },
|
|
1926
|
+
...curriedOptions.toolExecution === undefined ? {} : { toolExecution: curriedOptions.toolExecution },
|
|
1925
1927
|
...curriedOptions.metadata === undefined ? {} : { metadata: curriedOptions.metadata }
|
|
1926
1928
|
});
|
|
1927
1929
|
}
|
|
@@ -1952,6 +1954,7 @@ function make5(nameOrOptions, options = {}) {
|
|
|
1952
1954
|
...resolved.model === undefined ? {} : { model: resolved.model },
|
|
1953
1955
|
...resolved.memory === undefined ? {} : { memory: resolved.memory },
|
|
1954
1956
|
...resolved.authorization === undefined ? {} : { authorization: resolved.authorization },
|
|
1957
|
+
...resolved.toolExecution === undefined ? {} : { toolExecution: resolved.toolExecution },
|
|
1955
1958
|
...resolved.metadata === undefined ? {} : { metadata: resolved.metadata },
|
|
1956
1959
|
toolDeclarations: (declaredTools ?? Object.values(toolkit.tools)).map((tool) => ({
|
|
1957
1960
|
tool,
|
|
@@ -2269,6 +2272,12 @@ var streamInternal = (agent, options, structured) => Stream4.unwrap(Effect18.gen
|
|
|
2269
2272
|
});
|
|
2270
2273
|
}
|
|
2271
2274
|
const progressPolicy = decodedProgressPolicy.value;
|
|
2275
|
+
if (agent.toolExecution !== undefined && (!Number.isSafeInteger(agent.toolExecution.concurrency) || agent.toolExecution.concurrency <= 0)) {
|
|
2276
|
+
return yield* AgentError.make({
|
|
2277
|
+
message: "Agent.toolExecution.concurrency must be a positive safe integer",
|
|
2278
|
+
turn: 0
|
|
2279
|
+
});
|
|
2280
|
+
}
|
|
2272
2281
|
if (options.compaction?.contextWindow !== undefined && (!Number.isFinite(options.compaction.contextWindow) || options.compaction.contextWindow <= 0)) {
|
|
2273
2282
|
return yield* AgentError.make({
|
|
2274
2283
|
message: "RunOptions.compaction.contextWindow must be a positive finite number",
|
|
@@ -2598,13 +2607,9 @@ var streamInternal = (agent, options, structured) => Stream4.unwrap(Effect18.gen
|
|
|
2598
2607
|
const metadata = droppedProgress === 0 ? {} : { metadata: { toolProgress: { dropped: droppedProgress } } };
|
|
2599
2608
|
switch (outcome._tag) {
|
|
2600
2609
|
case "Success":
|
|
2601
|
-
return (isSkillActivationCall(call, registry) ? Effect18.succeed(successResult(call, outcome)) : boundedSuccessResult(call, outcome)).pipe(Effect18.map((result) => {
|
|
2602
|
-
state.pending.push(result);
|
|
2603
|
-
return Stream4.fromIterable([{ _tag: "ToolExecutionCompleted", turn, call, result, ...metadata }]);
|
|
2604
|
-
}));
|
|
2610
|
+
return (isSkillActivationCall(call, registry) ? Effect18.succeed(successResult(call, outcome)) : boundedSuccessResult(call, outcome)).pipe(Effect18.map((result) => Stream4.fromIterable([{ _tag: "ToolExecutionCompleted", turn, call, result, ...metadata }])));
|
|
2605
2611
|
case "DomainFailure": {
|
|
2606
2612
|
const result = domainFailureResult(call, outcome);
|
|
2607
|
-
state.pending.push(result);
|
|
2608
2613
|
return Effect18.succeed(Stream4.fromIterable([{ _tag: "ToolExecutionCompleted", turn, call, result, ...metadata }]));
|
|
2609
2614
|
}
|
|
2610
2615
|
case "Suspend":
|
|
@@ -2841,6 +2846,10 @@ var streamInternal = (agent, options, structured) => Stream4.unwrap(Effect18.gen
|
|
|
2841
2846
|
}
|
|
2842
2847
|
return modelPart;
|
|
2843
2848
|
};
|
|
2849
|
+
const recordPending = (event) => Effect18.sync(() => {
|
|
2850
|
+
if (event._tag === "ToolExecutionCompleted")
|
|
2851
|
+
state.pending.push(event.result);
|
|
2852
|
+
});
|
|
2844
2853
|
const transformPart = (turn, part) => applyPartChain(chain, part, { agentName: agent.name, turn }).pipe(Effect18.flatMap(Option12.match({
|
|
2845
2854
|
onSome: (transformed) => Effect18.succeed(Option12.some(transformed)),
|
|
2846
2855
|
onNone: () => part.type === "tool-call" ? Effect18.fail(MiddlewareViolation.make({
|
|
@@ -2931,7 +2940,13 @@ var streamInternal = (agent, options, structured) => Stream4.unwrap(Effect18.gen
|
|
|
2931
2940
|
return Option12.isSome(failure2) && AiError3.isAiError(failure2.value) ? Stream4.fail(AgentError.make({ message: errorMessage(failure2.value), turn, cause: failure2.value })) : Stream4.failCause(cause);
|
|
2932
2941
|
}));
|
|
2933
2942
|
};
|
|
2934
|
-
const parts = Stream4.unwrap(applyPromptChain(chain, Prompt9.make(prompt), { agentName: agent.name, turn }).pipe(Effect18.map((transformedPrompt) => attempt(transformedPrompt, true).pipe(Stream4.
|
|
2943
|
+
const parts = Stream4.unwrap(applyPromptChain(chain, Prompt9.make(prompt), { agentName: agent.name, turn }).pipe(Effect18.map((transformedPrompt) => attempt(transformedPrompt, true).pipe(Stream4.mapEffect(({ accept, part, messages }) => accept.pipe(Effect18.as({ part, messages }))), (accepted) => {
|
|
2944
|
+
const concurrency = agent.toolExecution?.concurrency ?? 1;
|
|
2945
|
+
if (concurrency === 1) {
|
|
2946
|
+
return accepted.pipe(Stream4.flatMap(({ part, messages }) => partEvents(turn, part, messages, activeRegistry)), Stream4.tap(recordPending));
|
|
2947
|
+
}
|
|
2948
|
+
return accepted.pipe(Stream4.mapEffect(({ part, messages }) => Stream4.runCollect(partEvents(turn, part, messages, activeRegistry)), { concurrency }), Stream4.flatMap(Stream4.fromIterable), Stream4.tap(recordPending));
|
|
2949
|
+
}))));
|
|
2935
2950
|
const resilientParts = Option12.match(resilienceService, {
|
|
2936
2951
|
onNone: () => parts,
|
|
2937
2952
|
onSome: (resilience) => Stream4.unwrap(LanguageModel5.LanguageModel.pipe(Effect18.map((model) => parts.pipe(Stream4.provideService(LanguageModel5.LanguageModel, apply(model, {
|
|
@@ -3088,7 +3103,7 @@ var streamInternal = (agent, options, structured) => Stream4.unwrap(Effect18.gen
|
|
|
3088
3103
|
name: checkpoint.call.name,
|
|
3089
3104
|
params: checkpoint.call.params,
|
|
3090
3105
|
providerExecuted: false
|
|
3091
|
-
}), checkpoint.messages, registry, suspension2.authorization_stage, suspension2.token);
|
|
3106
|
+
}), checkpoint.messages, registry, suspension2.authorization_stage, suspension2.token).pipe(Stream4.tap(recordPending));
|
|
3092
3107
|
})))), Stream4.concat(Stream4.unwrap(afterTurn(0).pipe(Effect18.map((result) => {
|
|
3093
3108
|
next = result.next;
|
|
3094
3109
|
return result.events;
|
|
@@ -3185,7 +3200,7 @@ var generatePersistedObject = dual7(2, (agent, options) => Stream4.runFold(persi
|
|
|
3185
3200
|
})
|
|
3186
3201
|
}))));
|
|
3187
3202
|
|
|
3188
|
-
// ../../node_modules/.bun/@batonfx+core@0.6.
|
|
3203
|
+
// ../../node_modules/.bun/@batonfx+core@0.6.2/node_modules/@batonfx/core/dist/agent-tool.js
|
|
3189
3204
|
var exports_agent_tool = {};
|
|
3190
3205
|
__export(exports_agent_tool, {
|
|
3191
3206
|
asTool: () => asTool
|
|
@@ -3256,7 +3271,7 @@ var asTool = Function7.dual((args) => args.length !== 1 || ("name" in args[0]),
|
|
|
3256
3271
|
return lazyHandled(toolkit, name, handler);
|
|
3257
3272
|
});
|
|
3258
3273
|
|
|
3259
|
-
// ../../node_modules/.bun/@batonfx+core@0.6.
|
|
3274
|
+
// ../../node_modules/.bun/@batonfx+core@0.6.2/node_modules/@batonfx/core/dist/guardrail.js
|
|
3260
3275
|
var exports_guardrail = {};
|
|
3261
3276
|
__export(exports_guardrail, {
|
|
3262
3277
|
validateInput: () => validateInput,
|
|
@@ -3337,7 +3352,7 @@ var filterOutput = (keep) => ({
|
|
|
3337
3352
|
transformPart: (part, context) => Effect20.succeed(part.type === "tool-call" || keep(part, context) ? Option13.some(part) : Option13.none())
|
|
3338
3353
|
});
|
|
3339
3354
|
|
|
3340
|
-
// ../../node_modules/.bun/@batonfx+core@0.6.
|
|
3355
|
+
// ../../node_modules/.bun/@batonfx+core@0.6.2/node_modules/@batonfx/core/dist/handoff.js
|
|
3341
3356
|
var exports_handoff = {};
|
|
3342
3357
|
__export(exports_handoff, {
|
|
3343
3358
|
transferTool: () => transferTool,
|
|
@@ -3417,7 +3432,7 @@ var supervisor = (options) => {
|
|
|
3417
3432
|
};
|
|
3418
3433
|
};
|
|
3419
3434
|
|
|
3420
|
-
// ../../node_modules/.bun/@batonfx+core@0.6.
|
|
3435
|
+
// ../../node_modules/.bun/@batonfx+core@0.6.2/node_modules/@batonfx/core/dist/index.js
|
|
3421
3436
|
import { AiError as AiError5, Chat as Chat2, EmbeddingModel, IdGenerator, LanguageModel as LanguageModel7, Model as Model2, Prompt as Prompt13, Response as Response9, ResponseIdTracker, Telemetry as Telemetry2, Tokenizer as Tokenizer3, Tool as Tool10, Toolkit as Toolkit7 } from "effect/unstable/ai";
|
|
3422
3437
|
|
|
3423
3438
|
export { exports_turn_policy, exports_agent_event, exports_tool_context, exports_tool_executor, exports_approvals, exports_memory, exports_session, exports_tool_output, exports_compaction, exports_instructions, exports_model_middleware, exports_model_registry, exports_model_resilience, exports_permissions, exports_skill_source, exports_steering, exports_agent, exports_agent_tool, exports_guardrail, exports_handoff, AiError5 as AiError, Chat2 as Chat, EmbeddingModel, IdGenerator, Model2 as Model, Prompt13 as Prompt, Response9 as Response, ResponseIdTracker, Telemetry2 as Telemetry, Tokenizer3 as Tokenizer, Tool10 as Tool, Toolkit7 as Toolkit };
|