alineo-cli 0.1.0 → 0.1.2

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/README.md CHANGED
@@ -174,7 +174,7 @@ port = 8080
174
174
 
175
175
  [runtime]
176
176
  type = "docker"
177
- execd_image = "opensandbox/execd:v1.0.19"
177
+ execd_image = "opensandbox/execd:v1.0.22"
178
178
 
179
179
  [docker]
180
180
  network_mode = "bridge"
package/dist/index.mjs CHANGED
@@ -28,7 +28,7 @@ const commands = [
28
28
  usage: "alineo init",
29
29
  summary: "Start OpenSandbox locally via Docker"
30
30
  }],
31
- run: async (argv) => (await import("./init-BI4f18xk.mjs")).initCommand.run(argv)
31
+ run: async (argv) => (await import("./init-BRkdxhkW.mjs")).initCommand.run(argv)
32
32
  },
33
33
  {
34
34
  name: "add",
@@ -211,6 +211,14 @@ function serverConfigPath() {
211
211
  function serverDataDir() {
212
212
  return join$1(serverConfigDir(), "opensandbox-data");
213
213
  }
214
+ /**
215
+ * v1.0.19 (the previous pin) predates cached bwrap-archive support, so every sandbox logged
216
+ * "bwrap archive not cached for linux/amd64 -- isolation will be unavailable" and isolation
217
+ * sessions (and anything that depends on them, e.g. pause()/resume()) hung indefinitely
218
+ * instead of failing cleanly. OpenSandbox's own docs: >=v1.0.20 has base isolation-session
219
+ * support, >=v1.0.21 is recommended for full functionality -- the "v1.1.0+" the warning
220
+ * message itself suggests does not exist as a published tag. v1.0.22 is the latest.
221
+ */
214
222
  function serverConfigContent() {
215
223
  return `[server]
216
224
  host = "0.0.0.0"
@@ -219,7 +227,7 @@ eip = "http://127.0.0.1:8080"
219
227
 
220
228
  [runtime]
221
229
  type = "docker"
222
- execd_image = "opensandbox/execd:v1.0.19"
230
+ execd_image = "opensandbox/execd:v1.0.22"
223
231
 
224
232
  [docker]
225
233
  network_mode = "bridge"
@@ -394,7 +402,7 @@ async function withTelemetry(commandName, argv, run) {
394
402
  errorClass = errorClassOf(err);
395
403
  throw err;
396
404
  } finally {
397
- const { version } = await import("./package-DKqFeJxs.mjs");
405
+ const { version } = await import("./package-D-xkbPYh.mjs");
398
406
  await sendTelemetryEvent({
399
407
  command: commandName,
400
408
  flags,
@@ -419,7 +427,7 @@ async function recordTuiLaunch() {
419
427
  const config = await readTelemetryConfig();
420
428
  if (!config.enabled) return;
421
429
  await maybePrintFirstRunNotice(config);
422
- const { version } = await import("./package-DKqFeJxs.mjs");
430
+ const { version } = await import("./package-D-xkbPYh.mjs");
423
431
  await sendTelemetryEvent({
424
432
  command: "tui",
425
433
  flags: {},
@@ -472,14 +480,14 @@ async function main() {
472
480
  return;
473
481
  }
474
482
  if (cmd === "--version" || cmd === "-v" || cmd === "version") {
475
- const { version } = await import("./package-DKqFeJxs.mjs");
483
+ const { version } = await import("./package-D-xkbPYh.mjs");
476
484
  console.log(version);
477
485
  return;
478
486
  }
479
487
  const found = commands.find((c) => c.name === cmd);
480
488
  if (found) {
481
489
  await withTelemetry(found.name, argv, () => found.run(argv));
482
- return;
490
+ process.exit(0);
483
491
  }
484
492
  printHelp();
485
493
  if (cmd) process.exit(1);
@@ -1,5 +1,4 @@
1
1
  import { c as serverConfigPath, i as configPath, l as serverDataDir, o as serverConfigContent, s as serverConfigDir, u as writeConfig } from "./index.mjs";
2
- import os from "os";
3
2
  import { existsSync } from "fs";
4
3
  import { mkdir } from "fs/promises";
5
4
  //#region src/docker.ts
@@ -98,7 +97,7 @@ async function init() {
98
97
  "-p",
99
98
  "8080:8080",
100
99
  "-v",
101
- os.platform() === "win32" ? "//./pipe/docker_engine://./pipe/docker_engine" : "/var/run/docker.sock:/var/run/docker.sock",
100
+ "/var/run/docker.sock:/var/run/docker.sock",
102
101
  "-v",
103
102
  `${serverConfigPath()}:/etc/opensandbox/config.toml:ro`,
104
103
  "-v",
@@ -1,4 +1,4 @@
1
1
  //#region package.json
2
- var version = "0.1.0";
2
+ var version = "0.1.2";
3
3
  //#endregion
4
4
  export { version };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "alineo-cli",
3
- "version": "0.1.0",
3
+ "version": "0.1.2",
4
4
  "license": "Apache-2.0",
5
5
  "repository": {
6
6
  "type": "git",
@@ -29,9 +29,9 @@
29
29
  "test": "bun test"
30
30
  },
31
31
  "dependencies": {
32
- "@alineo-labs/agent": "0.1.0",
32
+ "@alineo-labs/agent": "0.1.1",
33
33
  "@alineo-labs/opensandbox": "0.1.0",
34
- "@alineo-labs/sqlite": "0.1.0",
34
+ "@alineo-labs/sqlite": "0.1.2",
35
35
  "@opentui/core": "^0.4.3",
36
36
  "alineo": "0.1.0"
37
37
  },