isol8 0.5.0 → 0.5.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/cli.js CHANGED
@@ -6929,11 +6929,6 @@ var require_utils2 = __commonJS((exports, module) => {
6929
6929
  };
6930
6930
  });
6931
6931
 
6932
- // node_modules/ssh2/lib/protocol/crypto/build/Release/sshcrypto.node
6933
- var require_sshcrypto = __commonJS((exports, module) => {
6934
- module.exports = __require("./sshcrypto-0209sx47.node");
6935
- });
6936
-
6937
6932
  // node_modules/ssh2/lib/protocol/crypto/poly1305.js
6938
6933
  var require_poly1305 = __commonJS((exports, module) => {
6939
6934
  var __dirname = "/home/runner/work/isol8/isol8/node_modules/ssh2/lib/protocol/crypto", __filename = "/home/runner/work/isol8/isol8/node_modules/ssh2/lib/protocol/crypto/poly1305.js";
@@ -7420,7 +7415,7 @@ var require_crypto = __commonJS((exports, module) => {
7420
7415
  var ChaChaPolyDecipher;
7421
7416
  var GenericDecipher;
7422
7417
  try {
7423
- binding = require_sshcrypto();
7418
+ binding = (()=>{throw new Error("Cannot require module "+"./crypto/build/Release/sshcrypto.node");})();
7424
7419
  ({
7425
7420
  AESGCMCipher,
7426
7421
  ChaChaPolyCipher,
@@ -57722,7 +57717,7 @@ var init_server = __esm(() => {
57722
57717
  });
57723
57718
 
57724
57719
  // src/cli.ts
57725
- import { existsSync as existsSync2, readFileSync as readFileSync2, writeFileSync } from "node:fs";
57720
+ import { existsSync as existsSync3, readFileSync as readFileSync2, writeFileSync } from "node:fs";
57726
57721
  import { homedir as homedir2 } from "node:os";
57727
57722
  import { join as join2, resolve as resolve2 } from "node:path";
57728
57723
 
@@ -61118,7 +61113,15 @@ init_docker();
61118
61113
 
61119
61114
  // src/engine/image-builder.ts
61120
61115
  init_runtime();
61121
- var DOCKERFILE_DIR = new URL("../../docker", import.meta.url).pathname;
61116
+ import { existsSync as existsSync2 } from "node:fs";
61117
+ function resolveDockerDir() {
61118
+ const fromBundled = new URL("../docker", import.meta.url).pathname;
61119
+ if (existsSync2(fromBundled)) {
61120
+ return fromBundled;
61121
+ }
61122
+ return new URL("../../docker", import.meta.url).pathname;
61123
+ }
61124
+ var DOCKERFILE_DIR = resolveDockerDir();
61122
61125
  async function buildBaseImages(docker, onProgress) {
61123
61126
  const runtimes = RuntimeRegistry.list();
61124
61127
  for (const adapter of runtimes) {
@@ -61387,7 +61390,7 @@ program2.command("config").description("Show the resolved isol8 configuration").
61387
61390
  join2(resolve2(process.cwd()), "isol8.config.json"),
61388
61391
  join2(homedir2(), ".isol8", "config.json")
61389
61392
  ];
61390
- const loadedFrom = searchPaths.find((p) => existsSync2(p));
61393
+ const loadedFrom = searchPaths.find((p) => existsSync3(p));
61391
61394
  if (opts.json) {
61392
61395
  console.log(JSON.stringify(config, null, 2));
61393
61396
  return;
@@ -61512,7 +61515,7 @@ async function resolveRunInput(file, opts) {
61512
61515
  runtime = opts.runtime ?? "python";
61513
61516
  } else if (file) {
61514
61517
  const filePath = resolve2(file);
61515
- if (!existsSync2(filePath)) {
61518
+ if (!existsSync3(filePath)) {
61516
61519
  console.error(`[ERR] File not found: ${file}`);
61517
61520
  process.exit(1);
61518
61521
  }
@@ -61597,4 +61600,4 @@ if (!process.argv.slice(2).length) {
61597
61600
  }
61598
61601
  program2.parse();
61599
61602
 
61600
- //# debugId=9AD6B80BEBAE034064756E2164756E21
61603
+ //# debugId=E350C5AB2EA12EB364756E2164756E21