effect-agent 0.1.0-beta.101 → 0.1.0-beta.103
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/{DurableAgentRuntime-HOZ3AeSi.mjs → DurableAgentRuntime-C9eRZS9N.mjs} +8 -1
- package/dist/{DurableAgentRuntime-HOZ3AeSi.mjs.map → DurableAgentRuntime-C9eRZS9N.mjs.map} +1 -1
- package/dist/durable/DurableAgentRuntime.mjs +1 -1
- package/dist/durable/MessageDelivery.d.mts +38 -38
- package/dist/durable/MessageDeliveryStoreConformance.d.mts +38 -38
- package/dist/index.mjs +1 -1
- package/package.json +1 -1
- package/src/durable/DurableAgentRuntime.ts +16 -1
|
@@ -5101,6 +5101,13 @@ const make = Effect.fn("DurableAgentRuntime.make")(function* (bindings) {
|
|
|
5101
5101
|
return Effect.gen(function* () {
|
|
5102
5102
|
const halted = yield* Ref.get(haltRef);
|
|
5103
5103
|
if (halted !== void 0) return yield* halted;
|
|
5104
|
+
if (error instanceof AgentToolAuthorizationDenied) {
|
|
5105
|
+
const intent = yield* ledger.readAbortIntent(AbortIntentRequest.make({ submissionId }));
|
|
5106
|
+
if (intent !== void 0) {
|
|
5107
|
+
yield* appendAbortRecord(ctx, intent);
|
|
5108
|
+
return { _tag: "aborted" };
|
|
5109
|
+
}
|
|
5110
|
+
}
|
|
5104
5111
|
if (!(error instanceof AgentApprovalDenied) && !(error instanceof AgentToolAuthorizationDenied)) yield* Effect.logError("Agent run failed", Cause.fail(error)).pipe(Effect.annotateLogs({
|
|
5105
5112
|
agentId: agent.definition.id,
|
|
5106
5113
|
runId,
|
|
@@ -6669,4 +6676,4 @@ var DurableAgentRuntime = class DurableAgentRuntime extends Context.Service()("@
|
|
|
6669
6676
|
//#endregion
|
|
6670
6677
|
export { RecoveryReport as a, recoveryRepairRecordId as c, DurableRuntimeConfig as i, threadCreatedBatchId as l, DurableAgentRuntime_exports as n, childReservationIdFor as o, DurableApprovalResolver as r, recoveryRepairBatchId as s, DurableAgentRuntime as t, threadCreatedRecordId as u };
|
|
6671
6678
|
|
|
6672
|
-
//# sourceMappingURL=DurableAgentRuntime-
|
|
6679
|
+
//# sourceMappingURL=DurableAgentRuntime-C9eRZS9N.mjs.map
|