@opengeni/worker-bundle 3.2.2 → 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/agent-turn/admission.d.ts +1 -1
- package/dist/{activities-control-LC7WXEIX.js → activities-control-EWP3UDZP.js} +5 -5
- package/dist/{activities-turn-PEDPUZI4.js → activities-turn-COUX2R3A.js} +17 -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-NQDVJ6RI.js → chunk-PFCSGZGA.js} +10 -5
- package/dist/{chunk-NQDVJ6RI.js.map → chunk-PFCSGZGA.js.map} +1 -1
- package/dist/{chunk-O7HT4LHX.js → chunk-PG66GHGH.js} +3 -3
- package/dist/{chunk-436TOEBL.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-F47EDHHY.js → sandbox-lease-XBZWILZ3.js} +4 -4
- package/dist/sandbox-routing.d.ts +1 -0
- package/package.json +26 -26
- package/src/activities/agent-turn/run.ts +15 -0
- package/src/activities/agent-turn/sandbox-establish.ts +2 -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 +6 -0
- package/dist/activities-turn-PEDPUZI4.js.map +0 -1
- package/dist/chunk-436TOEBL.js.map +0 -1
- /package/dist/{activities-control-LC7WXEIX.js.map → activities-control-EWP3UDZP.js.map} +0 -0
- /package/dist/{chunk-O7HT4LHX.js.map → chunk-PG66GHGH.js.map} +0 -0
- /package/dist/{sandbox-lease-F47EDHHY.js.map → sandbox-lease-XBZWILZ3.js.map} +0 -0
|
@@ -79,7 +79,6 @@ export declare function sessionUsageLimitStopEvents(refusal: SessionUsageLimitRe
|
|
|
79
79
|
}): ({
|
|
80
80
|
type: "turn.completed";
|
|
81
81
|
payload: {
|
|
82
|
-
readonly status?: never;
|
|
83
82
|
output: string;
|
|
84
83
|
segmentLimit: "session_usage_limit";
|
|
85
84
|
detail?: string;
|
|
@@ -91,6 +90,7 @@ export declare function sessionUsageLimitStopEvents(refusal: SessionUsageLimitRe
|
|
|
91
90
|
usedMicros: number;
|
|
92
91
|
message: string;
|
|
93
92
|
};
|
|
93
|
+
status?: never;
|
|
94
94
|
};
|
|
95
95
|
} | {
|
|
96
96
|
type: "session.status.changed";
|
|
@@ -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
|
|
@@ -16323,6 +16324,7 @@ async function establishTurnSandbox(deps) {
|
|
|
16323
16324
|
operationResourcePolicySupported: liveMachineEnrollment?.agentCapabilities.operationResourcePolicy === true,
|
|
16324
16325
|
operationCpuQuotaSupported: liveMachineEnrollment?.agentCapabilities.operationCpuQuota === true,
|
|
16325
16326
|
transactionalFsWriteSupported: liveMachineEnrollment?.agentCapabilities.transactionalFsWrite === true,
|
|
16327
|
+
browserControlHttpSupported: liveMachineEnrollment?.agentCapabilities.browserControlHttp === true,
|
|
16326
16328
|
// Carried for shared machines too: the audience can narrow to Only me
|
|
16327
16329
|
// mid-turn, and each operation then rechecks this authority.
|
|
16328
16330
|
...fileAuthoritySubjectId ? {
|
|
@@ -40201,6 +40203,7 @@ function createRunAgentTurnActivity(services) {
|
|
|
40201
40203
|
resolvedToken = token;
|
|
40202
40204
|
return token;
|
|
40203
40205
|
};
|
|
40206
|
+
const codexRequestTransports = /* @__PURE__ */ new Map();
|
|
40204
40207
|
const creditGuard = createCodexCreditGuard({
|
|
40205
40208
|
...coreUsageReader ? { fetchUsage: coreUsageReader } : {},
|
|
40206
40209
|
canSpendCredits: async () => {
|
|
@@ -40292,8 +40295,18 @@ function createRunAgentTurnActivity(services) {
|
|
|
40292
40295
|
}
|
|
40293
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;
|
|
40294
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);
|
|
40295
40307
|
recordModelRequestPhase(observability, {
|
|
40296
40308
|
provider: "codex-subscription",
|
|
40309
|
+
...transport ? { transport } : {},
|
|
40297
40310
|
phase,
|
|
40298
40311
|
...event.phase === "completed" ? { outcome: "completed" } : event.phase === "failed" ? { outcome: "failed" } : event.phase === "timed_out" ? { outcome: "timed_out" } : {},
|
|
40299
40312
|
durationSeconds: event.durationMs / 1e3
|
|
@@ -42533,4 +42546,4 @@ export {
|
|
|
42533
42546
|
createTurnActivities,
|
|
42534
42547
|
createTurnActivitiesFromServices
|
|
42535
42548
|
};
|
|
42536
|
-
//# sourceMappingURL=activities-turn-
|
|
42549
|
+
//# sourceMappingURL=activities-turn-COUX2R3A.js.map
|