@opengeni/worker-bundle 3.3.0 → 3.4.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/dist/{activities-control-G2W4FEFP.js → activities-control-EWP3UDZP.js} +5 -5
- package/dist/{activities-turn-CE2VIWIS.js → activities-turn-COUX2R3A.js} +16 -4
- package/dist/activities-turn-COUX2R3A.js.map +1 -0
- package/dist/artifact-materializer-entry.js +1 -0
- package/dist/artifact-materializer-entry.js.map +1 -1
- package/dist/artifact-outbox-entry.js +3 -1
- package/dist/artifact-outbox-entry.js.map +1 -1
- package/dist/{chunk-5NNS4327.js → chunk-BX3KRGDM.js} +10 -4
- package/dist/{chunk-5NNS4327.js.map → chunk-BX3KRGDM.js.map} +1 -1
- package/dist/{chunk-5DF4V5RD.js → chunk-PFCSGZGA.js} +7 -4
- package/dist/{chunk-5DF4V5RD.js.map → chunk-PFCSGZGA.js.map} +1 -1
- package/dist/{chunk-RSI63RZG.js → chunk-PG66GHGH.js} +3 -3
- package/dist/{chunk-R5BHILMQ.js → chunk-XUIWRRTY.js} +5 -4
- package/dist/chunk-XUIWRRTY.js.map +1 -0
- package/dist/editable-artifact-outbox-dispatcher.d.ts +2 -0
- package/dist/index.js +30 -5
- package/dist/index.js.map +1 -1
- package/dist/internal-maintenance.d.ts +3 -1
- package/dist/observability-metrics.d.ts +14 -0
- package/dist/{sandbox-lease-2IV3DNXR.js → sandbox-lease-XBZWILZ3.js} +4 -4
- package/package.json +26 -26
- package/src/activities/agent-turn/run.ts +15 -0
- package/src/activity-services.ts +3 -0
- package/src/editable-artifact-materializer-service.ts +3 -0
- package/src/editable-artifact-outbox-dispatcher.ts +5 -0
- package/src/editable-artifact-outbox-service.ts +3 -0
- package/src/index.ts +6 -0
- package/src/internal-maintenance.ts +24 -0
- package/src/observability-metrics.ts +20 -3
- package/src/sandbox-routing.ts +3 -0
- package/dist/activities-turn-CE2VIWIS.js.map +0 -1
- package/dist/chunk-R5BHILMQ.js.map +0 -1
- /package/dist/{activities-control-G2W4FEFP.js.map → activities-control-EWP3UDZP.js.map} +0 -0
- /package/dist/{chunk-RSI63RZG.js.map → chunk-PG66GHGH.js.map} +0 -0
- /package/dist/{sandbox-lease-2IV3DNXR.js.map → sandbox-lease-XBZWILZ3.js.map} +0 -0
|
@@ -22,7 +22,7 @@ import {
|
|
|
22
22
|
withFirstPartyTools,
|
|
23
23
|
workflowIdForSession,
|
|
24
24
|
writeSessionUsageReceipts
|
|
25
|
-
} from "./chunk-
|
|
25
|
+
} from "./chunk-XUIWRRTY.js";
|
|
26
26
|
import "./chunk-K225DMA7.js";
|
|
27
27
|
import {
|
|
28
28
|
agentRunAdmissionDenial,
|
|
@@ -31,13 +31,13 @@ import {
|
|
|
31
31
|
import {
|
|
32
32
|
createBrowserDeadlineCheckpointActivities,
|
|
33
33
|
createSandboxLeaseActivities
|
|
34
|
-
} from "./chunk-
|
|
35
|
-
import "./chunk-
|
|
34
|
+
} from "./chunk-PG66GHGH.js";
|
|
35
|
+
import "./chunk-PFCSGZGA.js";
|
|
36
36
|
import "./chunk-24GP3BX5.js";
|
|
37
37
|
import {
|
|
38
38
|
recordTurnsQueuedGauge,
|
|
39
39
|
recordWorkerDeathRecoveryMetrics
|
|
40
|
-
} from "./chunk-
|
|
40
|
+
} from "./chunk-BX3KRGDM.js";
|
|
41
41
|
import {
|
|
42
42
|
deliverFailedChildTurnToParent,
|
|
43
43
|
notifyParentOfChildIdle,
|
|
@@ -6143,4 +6143,4 @@ export {
|
|
|
6143
6143
|
createControlActivities,
|
|
6144
6144
|
createControlActivitiesFromServices
|
|
6145
6145
|
};
|
|
6146
|
-
//# sourceMappingURL=activities-control-
|
|
6146
|
+
//# sourceMappingURL=activities-control-EWP3UDZP.js.map
|
|
@@ -111,7 +111,7 @@ import {
|
|
|
111
111
|
wakeSubscriptionCoreWaitersAndDeliver,
|
|
112
112
|
withFirstPartyTools,
|
|
113
113
|
withModelRoutePresentation
|
|
114
|
-
} from "./chunk-
|
|
114
|
+
} from "./chunk-XUIWRRTY.js";
|
|
115
115
|
import "./chunk-K225DMA7.js";
|
|
116
116
|
import {
|
|
117
117
|
createFreshSandboxReadinessReplacementBudget,
|
|
@@ -124,9 +124,10 @@ import {
|
|
|
124
124
|
waitForWarmSnapshot,
|
|
125
125
|
wrapLazyTurnBoxWithRouting,
|
|
126
126
|
wrapTurnBoxWithRouting
|
|
127
|
-
} from "./chunk-
|
|
127
|
+
} from "./chunk-PFCSGZGA.js";
|
|
128
128
|
import {
|
|
129
129
|
StreamTimingMetrics,
|
|
130
|
+
codexRequestTransportLabel,
|
|
130
131
|
makeMachineOpObserver,
|
|
131
132
|
measureTurnStartupPhase,
|
|
132
133
|
modelCallAccountContext,
|
|
@@ -159,7 +160,7 @@ import {
|
|
|
159
160
|
runtimeMetricsHooksForObservability,
|
|
160
161
|
sandboxAutomaticRecoveryOutcome,
|
|
161
162
|
turnLifecycleMetricsFor
|
|
162
|
-
} from "./chunk-
|
|
163
|
+
} from "./chunk-BX3KRGDM.js";
|
|
163
164
|
import {
|
|
164
165
|
deliverChildRequiresActionToParent,
|
|
165
166
|
deliverFailedChildTurnToParent
|
|
@@ -40202,6 +40203,7 @@ function createRunAgentTurnActivity(services) {
|
|
|
40202
40203
|
resolvedToken = token;
|
|
40203
40204
|
return token;
|
|
40204
40205
|
};
|
|
40206
|
+
const codexRequestTransports = /* @__PURE__ */ new Map();
|
|
40205
40207
|
const creditGuard = createCodexCreditGuard({
|
|
40206
40208
|
...coreUsageReader ? { fetchUsage: coreUsageReader } : {},
|
|
40207
40209
|
canSpendCredits: async () => {
|
|
@@ -40293,8 +40295,18 @@ function createRunAgentTurnActivity(services) {
|
|
|
40293
40295
|
}
|
|
40294
40296
|
const phase = event.phase === "headers" ? "headers" : event.phase === "first_byte" ? "first_byte" : event.phase === "completed" || event.phase === "failed" || event.phase === "timed_out" ? "terminal" : null;
|
|
40295
40297
|
if (!phase) return;
|
|
40298
|
+
const transportKey = `${event.requestId}:${event.transportAttempt}`;
|
|
40299
|
+
if (event.transport) {
|
|
40300
|
+
codexRequestTransports.set(
|
|
40301
|
+
transportKey,
|
|
40302
|
+
codexRequestTransportLabel(event.transport)
|
|
40303
|
+
);
|
|
40304
|
+
}
|
|
40305
|
+
const transport = codexRequestTransports.get(transportKey);
|
|
40306
|
+
if (phase === "terminal") codexRequestTransports.delete(transportKey);
|
|
40296
40307
|
recordModelRequestPhase(observability, {
|
|
40297
40308
|
provider: "codex-subscription",
|
|
40309
|
+
...transport ? { transport } : {},
|
|
40298
40310
|
phase,
|
|
40299
40311
|
...event.phase === "completed" ? { outcome: "completed" } : event.phase === "failed" ? { outcome: "failed" } : event.phase === "timed_out" ? { outcome: "timed_out" } : {},
|
|
40300
40312
|
durationSeconds: event.durationMs / 1e3
|
|
@@ -42534,4 +42546,4 @@ export {
|
|
|
42534
42546
|
createTurnActivities,
|
|
42535
42547
|
createTurnActivitiesFromServices
|
|
42536
42548
|
};
|
|
42537
|
-
//# sourceMappingURL=activities-turn-
|
|
42549
|
+
//# sourceMappingURL=activities-turn-COUX2R3A.js.map
|