@opengeni/runtime 4.0.0 → 4.0.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.
@@ -17696,7 +17696,7 @@ var RoutingSandboxSession = class {
17696
17696
  /** Make a retained process session-owned before exposing its live locator.
17697
17697
  * Provider yield alone is not adoption: short commands can still finish and
17698
17698
  * return inline during the model-facing eager-wait window. */
17699
- async adoptRetainedProcessAsBackgroundCommand(providerSessionId) {
17699
+ async adoptRetainedProcessAsBackgroundCommand(providerSessionId, command) {
17700
17700
  const record = this.retainedProcess(providerSessionId);
17701
17701
  if (!this.canAdoptRetainedProcessAsBackgroundCommand(providerSessionId)) {
17702
17702
  throw new RoutingUnsupportedError("backgroundCommandAdoption", record.backend.kind);
@@ -17712,7 +17712,8 @@ var RoutingSandboxSession = class {
17712
17712
  await this.captureRetainedOutput(record);
17713
17713
  record.backgroundAdoption ??= this.deps.adoptProcessAsBackgroundCommand({
17714
17714
  backend: record.backend,
17715
- process: record.process
17715
+ process: record.process,
17716
+ command
17716
17717
  });
17717
17718
  try {
17718
17719
  await record.backgroundAdoption;
@@ -19008,6 +19009,7 @@ var TurnToolCancellationControllerImpl = class {
19008
19009
  if (retainedProcess && processSession) {
19009
19010
  this.shellSessions.set(retainedProcess.providerSessionId, {
19010
19011
  sessionId: retainedProcess.providerSessionId,
19012
+ command: parsed.cmd,
19011
19013
  markerPath,
19012
19014
  token,
19013
19015
  interactive,
@@ -19037,6 +19039,7 @@ var TurnToolCancellationControllerImpl = class {
19037
19039
  if (sessionId !== null) {
19038
19040
  const state = {
19039
19041
  sessionId,
19042
+ command: parsed.cmd,
19040
19043
  markerPath: useRemoteOpCancellation ? null : markerPath,
19041
19044
  token: useRemoteOpCancellation ? null : token,
19042
19045
  interactive,
@@ -19213,7 +19216,10 @@ This process is turn-scoped; it will stop when this turn ends or is interrupted.
19213
19216
  `;
19214
19217
  }
19215
19218
  if (state.processSession?.adoptRetainedProcessAsBackgroundCommand) {
19216
- await state.processSession.adoptRetainedProcessAsBackgroundCommand(state.sessionId);
19219
+ await state.processSession.adoptRetainedProcessAsBackgroundCommand(
19220
+ state.sessionId,
19221
+ state.command
19222
+ );
19217
19223
  this.shellSessions.delete(state.sessionId);
19218
19224
  }
19219
19225
  return runningCommandBanner(
@@ -38565,4 +38571,4 @@ export {
38565
38571
  collectSandboxEnvironment2 as collectSandboxEnvironment,
38566
38572
  parseExposedPorts2 as parseExposedPorts
38567
38573
  };
38568
- //# sourceMappingURL=chunk-WIHICNWS.js.map
38574
+ //# sourceMappingURL=chunk-J5AR5XAJ.js.map