@yielded/agent 0.1.0-beta.179 → 0.1.0-beta.181
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/{AgentRuntime-DrQfy4cL.mjs → AgentRuntime-BAExRlgu.mjs} +5 -4
- package/dist/AgentRuntime-BAExRlgu.mjs.map +1 -0
- package/dist/{DurableAgentRuntime-CWhu1exp.mjs → DurableAgentRuntime-HH2muFrT.mjs} +4 -4
- package/dist/{DurableAgentRuntime-CWhu1exp.mjs.map → DurableAgentRuntime-HH2muFrT.mjs.map} +1 -1
- package/dist/{Subagent-C7F7c8Op.mjs → Subagent-D68fe7mr.mjs} +2 -2
- package/dist/{Subagent-C7F7c8Op.mjs.map → Subagent-D68fe7mr.mjs.map} +1 -1
- package/dist/{WorkerAdmission-CtX1HRkm.mjs → WorkerAdmission-DrxDrLII.mjs} +2 -2
- package/dist/{WorkerAdmission-CtX1HRkm.mjs.map → WorkerAdmission-DrxDrLII.mjs.map} +1 -1
- package/dist/{agent-registration-Dt57NAP6.mjs → agent-registration-BovXT8jc.mjs} +2 -2
- package/dist/{agent-registration-Dt57NAP6.mjs.map → agent-registration-BovXT8jc.mjs.map} +1 -1
- package/dist/capabilities/BrowserUse.d.mts +9 -3
- package/dist/capabilities/BrowserUse.mjs +14 -2
- package/dist/capabilities/BrowserUse.mjs.map +1 -1
- package/dist/capabilities/Subagent.mjs +1 -1
- package/dist/durable/AgentRegistration.mjs +1 -1
- package/dist/durable/DurableAgentRuntime.mjs +2 -2
- package/dist/durable/RecordFormat.mjs +1 -2
- package/dist/durable/RecordFormat.mjs.map +1 -1
- package/dist/durable/SqlMemoryStore.d.mts +2 -15
- package/dist/durable/SqlMemoryStore.mjs +1 -1
- package/dist/durable/SqlMemoryStore.mjs.map +1 -1
- package/dist/durable/SqlStorageOwner.d.mts +20 -0
- package/dist/durable/SqlStorageOwner.mjs +7 -0
- package/dist/durable/SqlStorageOwner.mjs.map +1 -0
- package/dist/durable/SubscriptionInput.mjs +1 -1
- package/dist/durable/WorkerAdmission.mjs +1 -1
- package/dist/engine/AgentRuntime.mjs +1 -1
- package/dist/index.mjs +4 -4
- package/package.json +1 -1
- package/src/capabilities/BrowserUse.ts +26 -3
- package/src/durable/RecordFormat.ts +2 -2
- package/src/durable/SqlMemoryStore.ts +3 -21
- package/src/durable/SqlStorageOwner.ts +24 -0
- package/src/engine/internal/agent-runtime.ts +13 -2
- package/dist/AgentRuntime-DrQfy4cL.mjs.map +0 -1
|
@@ -50,6 +50,7 @@ import * as Clock from "effect/Clock";
|
|
|
50
50
|
import * as DateTime from "effect/DateTime";
|
|
51
51
|
import * as Deferred from "effect/Deferred";
|
|
52
52
|
import * as Equal from "effect/Equal";
|
|
53
|
+
import * as ErrorReporter from "effect/ErrorReporter";
|
|
53
54
|
import * as Fiber from "effect/Fiber";
|
|
54
55
|
import * as Layer from "effect/Layer";
|
|
55
56
|
import * as Metric from "effect/Metric";
|
|
@@ -62,7 +63,6 @@ import * as SchemaGetter from "effect/SchemaGetter";
|
|
|
62
63
|
import * as Scope from "effect/Scope";
|
|
63
64
|
import * as Semaphore from "effect/Semaphore";
|
|
64
65
|
import * as Tracer from "effect/Tracer";
|
|
65
|
-
import * as ErrorReporter from "effect/ErrorReporter";
|
|
66
66
|
//#region src/engine/internal/bounded-value.ts
|
|
67
67
|
const DEFAULT_MAX_DEPTH = 128;
|
|
68
68
|
const OBJECT_OVERHEAD_BYTES = 32;
|
|
@@ -1656,7 +1656,7 @@ const executePreparedToolCall = Effect.fnUntraced(function* (context, turnId, to
|
|
|
1656
1656
|
};
|
|
1657
1657
|
terminalResultCommitted = true;
|
|
1658
1658
|
yield* terminalTelemetry(result.isFailure ? "failure" : "success", result.isFailure ? "returned-to-model" : void 0);
|
|
1659
|
-
if (observer !== void 0 && result.isFailure && rejection === void 0) yield* prepareWithinDeadline(context, deliverToolFailure(observer, {
|
|
1659
|
+
if (observer !== void 0 && result.isFailure && rejection === void 0 && !ErrorReporter.isIgnored(result.result)) yield* prepareWithinDeadline(context, deliverToolFailure(observer, {
|
|
1660
1660
|
_tag: "ModelToolFailure",
|
|
1661
1661
|
kind: "declared-failure",
|
|
1662
1662
|
agentId: context.agentId,
|
|
@@ -4766,6 +4766,7 @@ const makeToolBrokerService = Effect.fnUntraced(function* (binding) {
|
|
|
4766
4766
|
if (!result.preliminary) terminal = {
|
|
4767
4767
|
encodedResult: toolResultForJson(tool, result),
|
|
4768
4768
|
isFailure: result.isFailure,
|
|
4769
|
+
ignored: observer !== void 0 && result.isFailure && ErrorReporter.isIgnored(result.result),
|
|
4769
4770
|
tag: observer === void 0 || !result.isFailure ? void 0 : errorTag(result.result)
|
|
4770
4771
|
};
|
|
4771
4772
|
})), Effect.map(() => void 0), Effect.catchCauseFilter(Cause.findError, (error, cause) => Effect.succeed(new BrokerCallFailure(error, cause))));
|
|
@@ -4791,7 +4792,7 @@ const makeToolBrokerService = Effect.fnUntraced(function* (binding) {
|
|
|
4791
4792
|
if (resultAfterTerminal) return yield* startedFailure("protocol", "ModelProtocolError", `Tool Call ${handleId} produced more than one terminal result`);
|
|
4792
4793
|
if (terminal === void 0) return yield* startedFailure("protocol", "ModelProtocolError", `Tool Call ${handleId} completed without a terminal result`);
|
|
4793
4794
|
if (terminal.isFailure) {
|
|
4794
|
-
if (observer !== void 0) failureObservation = {
|
|
4795
|
+
if (observer !== void 0 && !terminal.ignored) failureObservation = {
|
|
4795
4796
|
_tag: "ProgrammaticToolFailure",
|
|
4796
4797
|
agentId: binding.context.agentId,
|
|
4797
4798
|
threadId: binding.context.threadId,
|
|
@@ -5217,4 +5218,4 @@ var AgentRuntime_exports = /* @__PURE__ */ __exportAll({
|
|
|
5217
5218
|
//#endregion
|
|
5218
5219
|
export { boundedValueFootprint as C, withAttempt as S, startUnknown as _, SubagentDurability as a, streamWithUsageAccountingUnknown as b, decodeFinalOutput as c, projectCompletionFromToolOutput as d, projectCompletionOutput as f, start as g, runUnknown as h, AgentSpawner as i, encodeRunDisposition as l, run as m, AgentChildPending as n, SubagentDurabilityError as o, renderInputPrompt as p, AgentResultSchema as r, ToolCallWaiting as s, AgentRuntime_exports as t, executeWithUsageAccountingUnknown as u, stream as v, withTerminalDefectEvent as x, streamUnknown as y };
|
|
5219
5220
|
|
|
5220
|
-
//# sourceMappingURL=AgentRuntime-
|
|
5221
|
+
//# sourceMappingURL=AgentRuntime-BAExRlgu.mjs.map
|