@opengeni/worker-bundle 6.8.0 → 6.8.1-canary.41842879332001
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/governance-model.d.ts +3 -0
- package/dist/activities/rig-provider-image-refresh.d.ts +36 -0
- package/dist/activities/rig-verification.d.ts +6 -2
- package/dist/activities/types.d.ts +13 -0
- package/dist/{activities-control-6HEEWPLL.js → activities-control-HO563R2O.js} +23 -21
- package/dist/activities-control-HO563R2O.js.map +1 -0
- package/dist/{activities-turn-E6VP3XVJ.js → activities-turn-TGP5NHS7.js} +26 -9
- package/dist/activities-turn-TGP5NHS7.js.map +1 -0
- package/dist/artifact-materializer-entry.js +0 -0
- package/dist/artifact-outbox-entry.js +0 -0
- package/dist/{chunk-ZEGN4DC4.js → chunk-NKTJ5VQ4.js} +2 -1
- package/dist/chunk-NKTJ5VQ4.js.map +1 -0
- package/dist/chunk-VFL7V45S.js +320 -0
- package/dist/chunk-VFL7V45S.js.map +1 -0
- package/dist/chunk-YTPJJBDP.js +31 -0
- package/dist/chunk-YTPJJBDP.js.map +1 -0
- package/dist/index.d.ts +2 -1
- package/dist/index.js +38 -305
- package/dist/index.js.map +1 -1
- package/dist/workflow-bundle.js +1 -1
- package/package.json +30 -29
- package/src/activities/agent-turn/governance-model.ts +19 -1
- package/src/activities/agent-turn/run.ts +2 -0
- package/src/activities/rig-provider-image-refresh.ts +56 -0
- package/src/activities/rig-verification.ts +20 -19
- package/src/activities/session-state.ts +5 -1
- package/src/activities/types.ts +14 -0
- package/src/activity-services.ts +1 -0
- package/src/index.ts +26 -0
- package/dist/activities-control-6HEEWPLL.js.map +0 -1
- package/dist/activities-turn-E6VP3XVJ.js.map +0 -1
- package/dist/chunk-ZEGN4DC4.js.map +0 -1
|
@@ -1,3 +1,6 @@
|
|
|
1
|
+
import {
|
|
2
|
+
requestStaleRigProviderImageRefresh
|
|
3
|
+
} from "./chunk-YTPJJBDP.js";
|
|
1
4
|
import {
|
|
2
5
|
ActiveRouteDispatchBoundary,
|
|
3
6
|
CLAUDE_CORE_WAIT_BINDING,
|
|
@@ -120,7 +123,7 @@ import {
|
|
|
120
123
|
wakeSubscriptionCoreWaitersAndDeliver,
|
|
121
124
|
withFirstPartyTools,
|
|
122
125
|
withModelRoutePresentation
|
|
123
|
-
} from "./chunk-
|
|
126
|
+
} from "./chunk-NKTJ5VQ4.js";
|
|
124
127
|
import "./chunk-5E7CLEQM.js";
|
|
125
128
|
import {
|
|
126
129
|
agentBackgroundCommandDeps,
|
|
@@ -33368,7 +33371,11 @@ import {
|
|
|
33368
33371
|
settingsWithResolvedModelContext
|
|
33369
33372
|
} from "@opengeni/config";
|
|
33370
33373
|
import { projectReasoningConfigurations, supportsReasoningConfiguration } from "@opengeni/codex";
|
|
33371
|
-
import {
|
|
33374
|
+
import {
|
|
33375
|
+
resolveRigProviderImageForRun,
|
|
33376
|
+
rigProviderImageSourceImage,
|
|
33377
|
+
settingsWithWorkspaceSandboxImage
|
|
33378
|
+
} from "@opengeni/core";
|
|
33372
33379
|
import { retryWhileMissing as retryWhileMissing4 } from "@opengeni/storage";
|
|
33373
33380
|
import { WorkspaceModelPolicyBlockedError } from "@opengeni/runtime";
|
|
33374
33381
|
import {
|
|
@@ -33515,6 +33522,14 @@ async function prepareGovernanceAndModel(deps) {
|
|
|
33515
33522
|
turn.sandboxBackend
|
|
33516
33523
|
);
|
|
33517
33524
|
const providerImageSettings = providerImageSelection.settings;
|
|
33525
|
+
requestStaleRigProviderImageRefresh({
|
|
33526
|
+
selection: providerImageSelection,
|
|
33527
|
+
turnUsesDeploymentBase: rigProviderImageSourceImage(logicalSandboxSettings, turn.sandboxBackend) === rigProviderImageSourceImage(capabilitySettings, turn.sandboxBackend),
|
|
33528
|
+
workspaceId: input.workspaceId,
|
|
33529
|
+
versionId: rigVersion?.id ?? null,
|
|
33530
|
+
start: deps.startRigProviderImageRefresh,
|
|
33531
|
+
warn: (message, context) => observability.warn(message, context)
|
|
33532
|
+
});
|
|
33518
33533
|
const verifiedRigProviderImageId = providerImageSelection.reason === "selected" ? providerImageSelection.imageId ?? void 0 : void 0;
|
|
33519
33534
|
const baseRunSettings = {
|
|
33520
33535
|
// A Rig uses the deployment platform base. A matching verified
|
|
@@ -34411,7 +34426,7 @@ import {
|
|
|
34411
34426
|
managedSessionGroupBackend as managedSessionGroupBackend2,
|
|
34412
34427
|
managedSessionGroupOs
|
|
34413
34428
|
} from "@opengeni/core";
|
|
34414
|
-
import { rigProviderImageSourceImage } from "@opengeni/core";
|
|
34429
|
+
import { rigProviderImageSourceImage as rigProviderImageSourceImage2 } from "@opengeni/core";
|
|
34415
34430
|
|
|
34416
34431
|
// src/activities/agent-turn/sandbox-route.ts
|
|
34417
34432
|
import {
|
|
@@ -34671,7 +34686,7 @@ async function resolveSandboxRoute(deps) {
|
|
|
34671
34686
|
}
|
|
34672
34687
|
sandboxState.startupMilestoneBackend = activeSandboxBackend ?? groupBoxBackend;
|
|
34673
34688
|
media.sandboxFileDownloadBackend = sandboxState.startupMilestoneBackend;
|
|
34674
|
-
const groupBoxImage =
|
|
34689
|
+
const groupBoxImage = rigProviderImageSourceImage2(logicalSandboxSettings, groupBoxBackend);
|
|
34675
34690
|
const sandboxCreationBackend = groupRouteSettings.sandboxBackend;
|
|
34676
34691
|
const effectiveRunCredentialBackend = activeSandboxBackend ?? groupBoxBackend;
|
|
34677
34692
|
return {
|
|
@@ -42252,7 +42267,7 @@ async function executeCoreXaiImageGeneration(input, ports = xaiImageGenerationPo
|
|
|
42252
42267
|
|
|
42253
42268
|
// src/activities/agent-turn/agent-build.ts
|
|
42254
42269
|
import { createSessionCredentialEnvironment, rigProviderImageContentHash } from "@opengeni/core";
|
|
42255
|
-
import { rigProviderImageSourceImage as
|
|
42270
|
+
import { rigProviderImageSourceImage as rigProviderImageSourceImage3 } from "@opengeni/core";
|
|
42256
42271
|
|
|
42257
42272
|
// src/activities/gateway-image-generation.ts
|
|
42258
42273
|
import {
|
|
@@ -43714,7 +43729,7 @@ async function buildTurnAgent(deps) {
|
|
|
43714
43729
|
timeoutMs: runSettings.rigSetupTimeoutMs,
|
|
43715
43730
|
contentHash: rigProviderImageContentHash({
|
|
43716
43731
|
backend: turn.sandboxBackend,
|
|
43717
|
-
sourceImage:
|
|
43732
|
+
sourceImage: rigProviderImageSourceImage3(
|
|
43718
43733
|
logicalSandboxSettings,
|
|
43719
43734
|
turn.sandboxBackend
|
|
43720
43735
|
),
|
|
@@ -43823,7 +43838,8 @@ function createRunAgentTurnActivity(services) {
|
|
|
43823
43838
|
connectionCredentials,
|
|
43824
43839
|
personalGitHubCredentials,
|
|
43825
43840
|
startVideoGenerationWorkflow,
|
|
43826
|
-
startSessionTitleWorkflow
|
|
43841
|
+
startSessionTitleWorkflow,
|
|
43842
|
+
startRigProviderImageRefresh
|
|
43827
43843
|
} = resolvedServices;
|
|
43828
43844
|
const activityContext = currentActivityContext();
|
|
43829
43845
|
const cancellationSignal = activityContext?.cancellationSignal;
|
|
@@ -44218,7 +44234,8 @@ function createRunAgentTurnActivity(services) {
|
|
|
44218
44234
|
humanInputResume,
|
|
44219
44235
|
turnExecutionPolicy,
|
|
44220
44236
|
chargesOpenGeniCredits: billingState.chargesOpenGeniCredits,
|
|
44221
|
-
requiredGeneratedVideoFiles
|
|
44237
|
+
requiredGeneratedVideoFiles,
|
|
44238
|
+
startRigProviderImageRefresh: startRigProviderImageRefresh ?? null
|
|
44222
44239
|
});
|
|
44223
44240
|
if ("exit" in governance) return governance.exit;
|
|
44224
44241
|
await assertTurnModelConnection(db, providerTurn, {
|
|
@@ -46771,4 +46788,4 @@ export {
|
|
|
46771
46788
|
createTurnActivities,
|
|
46772
46789
|
createTurnActivitiesFromServices
|
|
46773
46790
|
};
|
|
46774
|
-
//# sourceMappingURL=activities-turn-
|
|
46791
|
+
//# sourceMappingURL=activities-turn-TGP5NHS7.js.map
|