@opengeni/runtime 0.13.12 → 0.13.13

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.js CHANGED
@@ -175,7 +175,7 @@ import {
175
175
  withToolspaceTokenEnvironment,
176
176
  withToolspaceTokenSession,
177
177
  wrapCapabilityToolsForTurnCancellation
178
- } from "./chunk-FLRCDJRI.js";
178
+ } from "./chunk-3NUSY22C.js";
179
179
  import {
180
180
  getSkillLibraryEntry,
181
181
  isSkillLibraryEntryId,
@@ -170,7 +170,7 @@ import {
170
170
  withToolspaceTokenClient,
171
171
  withToolspaceTokenEnvironment,
172
172
  withToolspaceTokenSession
173
- } from "../chunk-FLRCDJRI.js";
173
+ } from "../chunk-3NUSY22C.js";
174
174
  import "../chunk-4YJ5Z52Z.js";
175
175
  import "../chunk-K4V4QYCL.js";
176
176
  import "../chunk-PZ5AY32C.js";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@opengeni/runtime",
3
- "version": "0.13.12",
3
+ "version": "0.13.13",
4
4
  "license": "Apache-2.0",
5
5
  "repository": {
6
6
  "type": "git",
@@ -536,14 +536,14 @@ function withDockerNetwork(client: SandboxClient, network: string | undefined):
536
536
  }
537
537
 
538
538
  async function connectDockerNetwork(network: string, containerId: string): Promise<void> {
539
- const result = Bun.spawnSync(["docker", "network", "connect", network, containerId], {
540
- stdout: "pipe",
541
- stderr: "pipe",
539
+ const { spawnSync } = await import("node:child_process");
540
+ const result = spawnSync("docker", ["network", "connect", network, containerId], {
541
+ encoding: "utf8",
542
542
  });
543
- if (result.exitCode === 0) {
543
+ if (result.status === 0) {
544
544
  return;
545
545
  }
546
- const stderr = new TextDecoder().decode(result.stderr);
546
+ const stderr = result.stderr ?? result.error?.message ?? "";
547
547
  if (stderr.includes("already exists")) {
548
548
  return;
549
549
  }