@jabezpauls/agentbox 0.1.14 → 0.1.15

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/agentbox.mjs CHANGED
@@ -1,5 +1,5 @@
1
1
  #!/usr/bin/env node
2
- // agentbox-cli v0.1.14
2
+ // agentbox-cli v0.1.15
3
3
  import { createRequire as __agentboxCreateRequire } from "node:module";
4
4
  const require = __agentboxCreateRequire(import.meta.url);
5
5
  var __create = Object.create;
@@ -3868,7 +3868,7 @@ function parseSize(raw2) {
3868
3868
  }
3869
3869
 
3870
3870
  // src/version.ts
3871
- var VERSION = true ? "v0.1.14" : "0.0.0-dev";
3871
+ var VERSION = true ? "v0.1.15" : "0.0.0-dev";
3872
3872
  var STANDALONE = typeof __AGENTBOX_STANDALONE__ === "boolean" && __AGENTBOX_STANDALONE__;
3873
3873
  var MIN_NODE_MAJOR = 20;
3874
3874
  function nodeMajor(version = process.versions.node) {
@@ -5375,7 +5375,8 @@ function homeDir(ctx) {
5375
5375
  function sshDir(ctx) {
5376
5376
  return path5.join(homeDir(ctx), ".ssh");
5377
5377
  }
5378
- function cliCommand(platform) {
5378
+ function cliCommand(platform, standalone = STANDALONE) {
5379
+ if (standalone) return [process.execPath];
5379
5380
  const script = path5.resolve(process.argv[1] ?? "agentbox");
5380
5381
  if (platform !== "win32") {
5381
5382
  try {
@@ -11747,6 +11748,7 @@ function unitDir(env = process.env, home2 = os9.homedir()) {
11747
11748
  return path26.join(xdg && path26.isAbsolute(xdg) ? xdg : path26.join(home2, ".config"), "systemd", "user");
11748
11749
  }
11749
11750
  function runningAsSea() {
11751
+ if (STANDALONE) return true;
11750
11752
  try {
11751
11753
  const sea = process.getBuiltinModule?.("node:sea");
11752
11754
  return typeof sea?.isSea === "function" && sea.isSea();
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@jabezpauls/agentbox",
3
3
  "type": "module",
4
- "version": "0.1.14",
4
+ "version": "0.1.15",
5
5
  "description": "agentbox from your own machine: sign in, attach, move files, mount the workspace.",
6
6
  "license": "MIT",
7
7
  "homepage": "https://github.com/jabezpauls/agentbox/blob/main/docs/cli.md",