@opengeni/worker-bundle 0.28.3-canary.0 → 0.28.3
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/activities/sandbox-lease.d.ts +4 -4
- package/dist/{activities-control-JUBMDBDZ.js → activities-control-UXGPMDL3.js} +70 -55
- package/dist/activities-control-UXGPMDL3.js.map +1 -0
- package/dist/{activities-turn-I2ZKGZE6.js → activities-turn-NOYDE7PX.js} +12 -12
- package/dist/activities-turn-NOYDE7PX.js.map +1 -0
- package/dist/{chunk-A4XQWVZK.js → chunk-BARTLVBK.js} +25 -25
- package/dist/chunk-BARTLVBK.js.map +1 -0
- package/dist/{chunk-ZNIKZQMN.js → chunk-NNXLW6V7.js} +111 -144
- package/dist/chunk-NNXLW6V7.js.map +1 -0
- package/dist/index.js +2 -2
- package/dist/observability-metrics.d.ts +4 -12
- package/dist/sandbox-archive-storage.d.ts +3 -15
- package/dist/sandbox-resume.d.ts +1 -1
- package/package.json +17 -17
- package/src/activities/agent-turn/claim.ts +3 -3
- package/src/activities/agent-turn/finalization.ts +5 -10
- package/src/activities/agent-turn/stream-attempt.ts +1 -1
- package/src/activities/sandbox-lease.ts +71 -64
- package/src/observability-metrics.ts +24 -28
- package/src/sandbox-archive-storage.ts +18 -82
- package/src/sandbox-resume.ts +63 -79
- package/dist/activities-control-JUBMDBDZ.js.map +0 -1
- package/dist/activities-turn-I2ZKGZE6.js.map +0 -1
- package/dist/chunk-A4XQWVZK.js.map +0 -1
- package/dist/chunk-ZNIKZQMN.js.map +0 -1
|
@@ -86,7 +86,7 @@ import {
|
|
|
86
86
|
withFirstPartyTools,
|
|
87
87
|
wrapLazyTurnBoxWithRouting,
|
|
88
88
|
wrapTurnBoxWithRouting
|
|
89
|
-
} from "./chunk-
|
|
89
|
+
} from "./chunk-NNXLW6V7.js";
|
|
90
90
|
import {
|
|
91
91
|
StreamTimingMetrics,
|
|
92
92
|
makeMachineOpObserver,
|
|
@@ -112,7 +112,7 @@ import {
|
|
|
112
112
|
recordTurnWorkerPreparationTotal,
|
|
113
113
|
runtimeMetricsHooksForObservability,
|
|
114
114
|
turnLifecycleMetricsFor
|
|
115
|
-
} from "./chunk-
|
|
115
|
+
} from "./chunk-BARTLVBK.js";
|
|
116
116
|
|
|
117
117
|
// src/activities-turn.ts
|
|
118
118
|
import { createProductionAgentRuntime, summarizeForCompaction as summarizeForCompaction2 } from "@opengeni/runtime";
|
|
@@ -4890,12 +4890,12 @@ async function finalizeTurnAttempt(deps) {
|
|
|
4890
4890
|
status: finalizationError ? "cleanup_failed" : control.activityStatus,
|
|
4891
4891
|
durationSeconds
|
|
4892
4892
|
});
|
|
4893
|
-
if (attempt.turnId) {
|
|
4894
|
-
turnLifecycleMetricsFor(observability).finish(
|
|
4895
|
-
|
|
4896
|
-
|
|
4893
|
+
if (attempt.turnId && control.activityStatus !== "unknown") {
|
|
4894
|
+
turnLifecycleMetricsFor(observability).finish(
|
|
4895
|
+
attempt.turnId,
|
|
4896
|
+
control.turnMetricOutcome,
|
|
4897
4897
|
durationSeconds
|
|
4898
|
-
|
|
4898
|
+
);
|
|
4899
4899
|
}
|
|
4900
4900
|
activitySpan.end({
|
|
4901
4901
|
attributes: {
|
|
@@ -8443,7 +8443,7 @@ async function runTurnStreamAttempt(deps) {
|
|
|
8443
8443
|
currentToolBatchCallIds = /* @__PURE__ */ new Set();
|
|
8444
8444
|
currentToolBatchCompletedCallIds = /* @__PURE__ */ new Set();
|
|
8445
8445
|
await historySink.reconcileConversationTruth();
|
|
8446
|
-
turnLifecycleMetricsFor(observability).progress(
|
|
8446
|
+
turnLifecycleMetricsFor(observability).progress(attempt.turnId);
|
|
8447
8447
|
modelCheckpointMemoryCollector.schedule(observability);
|
|
8448
8448
|
try {
|
|
8449
8449
|
await ensureRunAllowed(
|
|
@@ -9551,7 +9551,7 @@ async function claimTurnAttempt(deps) {
|
|
|
9551
9551
|
});
|
|
9552
9552
|
return attached.action === "claimed" && attached.turn.id === turn.id;
|
|
9553
9553
|
};
|
|
9554
|
-
turnLifecycleMetricsFor(observability).start(
|
|
9554
|
+
turnLifecycleMetricsFor(observability).start(attempt.turnId);
|
|
9555
9555
|
await waitForTurnOperation(
|
|
9556
9556
|
ensureRunAllowed(
|
|
9557
9557
|
capabilitySettings,
|
|
@@ -9629,7 +9629,7 @@ async function claimTurnAttempt(deps) {
|
|
|
9629
9629
|
}
|
|
9630
9630
|
recordCanonicalStartupMilestones(appended.canonicalStartupMilestones);
|
|
9631
9631
|
if (inputs.length > 0) {
|
|
9632
|
-
turnLifecycleMetricsFor(observability).progress(
|
|
9632
|
+
turnLifecycleMetricsFor(observability).progress(attempt.turnId);
|
|
9633
9633
|
}
|
|
9634
9634
|
activityContext?.heartbeat({
|
|
9635
9635
|
...heartbeatDetails,
|
|
@@ -9680,7 +9680,7 @@ async function claimTurnAttempt(deps) {
|
|
|
9680
9680
|
return false;
|
|
9681
9681
|
}
|
|
9682
9682
|
recordCanonicalStartupMilestones(result.canonicalStartupMilestones);
|
|
9683
|
-
turnLifecycleMetricsFor(observability).progress(
|
|
9683
|
+
turnLifecycleMetricsFor(observability).progress(attempt.turnId);
|
|
9684
9684
|
await publishDurableSessionEvents4(bus, input.workspaceId, input.sessionId, result.events);
|
|
9685
9685
|
if (inputSettlement.turnStatus === "requires_action") {
|
|
9686
9686
|
await deliverChildRequiresActionToParent(
|
|
@@ -22051,4 +22051,4 @@ export {
|
|
|
22051
22051
|
createTurnActivities,
|
|
22052
22052
|
createTurnActivitiesFromServices
|
|
22053
22053
|
};
|
|
22054
|
-
//# sourceMappingURL=activities-turn-
|
|
22054
|
+
//# sourceMappingURL=activities-turn-NOYDE7PX.js.map
|