@opengeni/worker-bundle 0.3.0 → 0.4.1
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/index.d.ts +3 -0
- package/dist/index.js +644 -80
- package/dist/index.js.map +1 -1
- package/package.json +8 -8
- package/src/activities/agent-turn.ts +32 -4
- package/src/activities/sandbox-lease.ts +130 -3
- package/src/activities/session-state.ts +22 -4
- package/src/activities.ts +7 -2
- package/src/http.ts +100 -0
- package/src/index.ts +80 -32
- package/src/observability-metrics.ts +218 -0
- package/src/sandbox-resume.ts +197 -59
package/dist/index.d.ts
CHANGED
|
@@ -115,6 +115,8 @@ type ReapSandboxLeasesResult = {
|
|
|
115
115
|
/** Viewer-only boxes force-drained because their workspace is over a limit
|
|
116
116
|
* (0 balance / over the warm cap) — turn-held boxes are never drained (P2.1). */
|
|
117
117
|
forceDrained: number;
|
|
118
|
+
/** Provider-side Modal orphan sandboxes terminated by the defensive sweep. */
|
|
119
|
+
modalOrphansTerminated: number;
|
|
118
120
|
};
|
|
119
121
|
|
|
120
122
|
declare function createActivities(dependencies?: ActivityDependencies): {
|
|
@@ -195,6 +197,7 @@ declare function createOpenGeniWorker(options?: WorkerOptions): Promise<{
|
|
|
195
197
|
}>;
|
|
196
198
|
declare function createWorkerWorkflowSignaler(settings: Settings): Promise<{
|
|
197
199
|
wakeSessionWorkflow: WakeSessionWorkflowSignal;
|
|
200
|
+
check: () => Promise<void>;
|
|
198
201
|
close: () => Promise<void>;
|
|
199
202
|
}>;
|
|
200
203
|
/**
|