@opengeni/runtime 4.4.0 → 4.5.0-canary.36935312914001

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.
@@ -24182,7 +24182,10 @@ var ModalCommandControl2 = class _ModalCommandControl {
24182
24182
  async verifyExecReadiness(signal) {
24183
24183
  signal.throwIfAborted();
24184
24184
  const sandboxId = this.sandboxId;
24185
- const task = await this.client.sandboxGetTaskId({ sandboxId }, { signal });
24185
+ const task = await ModalCommandStartPreDispatchUnavailableError.beforeDispatch(
24186
+ () => this.client.sandboxGetTaskId({ sandboxId }, { signal }),
24187
+ signal
24188
+ );
24186
24189
  if (!task.taskId || task.taskResult) throw new Error("Modal command task is unavailable");
24187
24190
  if (sandboxId !== this.sandboxId)
24188
24191
  throw new Error("Modal sandbox changed during readiness preparation");
@@ -24191,7 +24194,7 @@ var ModalCommandControl2 = class _ModalCommandControl {
24191
24194
  error?.code ?? -1
24192
24195
  );
24193
24196
  const pause = () => delay2(100, void 0, { signal });
24194
- return await this.withRouter(task.taskId, signal, async (router) => {
24197
+ return await this.withStartRouter(task.taskId, signal, async (router) => {
24195
24198
  for (; ; ) {
24196
24199
  signal.throwIfAborted();
24197
24200
  try {
@@ -37853,6 +37856,7 @@ async function mintSandboxCodemodeToken(settings, scope, authority, nowMs = Date
37853
37856
  turnId: authority.turnId,
37854
37857
  attemptId: authority.attemptId,
37855
37858
  executionGeneration: authority.executionGeneration,
37859
+ ...authority.credentialRestriction ? { credentialRestriction: authority.credentialRestriction } : {},
37856
37860
  principalKind: "agent_attempt",
37857
37861
  exp: expiresAtSeconds
37858
37862
  });
@@ -40467,4 +40471,4 @@ export {
40467
40471
  collectSandboxEnvironment2 as collectSandboxEnvironment,
40468
40472
  parseExposedPorts2 as parseExposedPorts
40469
40473
  };
40470
- //# sourceMappingURL=chunk-QKROIZOB.js.map
40474
+ //# sourceMappingURL=chunk-VDXKKMMD.js.map