percher 0.5.5 → 0.5.6

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.
@@ -89543,6 +89543,462 @@ var init_qr = __esm(() => {
89543
89543
  import_qrcode = __toESM(require_server(), 1);
89544
89544
  });
89545
89545
 
89546
+ // ../../node_modules/.bun/isexe@2.0.0/node_modules/isexe/windows.js
89547
+ var require_windows = __commonJS((exports, module) => {
89548
+ module.exports = isexe;
89549
+ isexe.sync = sync;
89550
+ var fs = __require("fs");
89551
+ function checkPathExt(path, options) {
89552
+ var pathext = options.pathExt !== undefined ? options.pathExt : process.env.PATHEXT;
89553
+ if (!pathext) {
89554
+ return true;
89555
+ }
89556
+ pathext = pathext.split(";");
89557
+ if (pathext.indexOf("") !== -1) {
89558
+ return true;
89559
+ }
89560
+ for (var i = 0;i < pathext.length; i++) {
89561
+ var p = pathext[i].toLowerCase();
89562
+ if (p && path.substr(-p.length).toLowerCase() === p) {
89563
+ return true;
89564
+ }
89565
+ }
89566
+ return false;
89567
+ }
89568
+ function checkStat(stat, path, options) {
89569
+ if (!stat.isSymbolicLink() && !stat.isFile()) {
89570
+ return false;
89571
+ }
89572
+ return checkPathExt(path, options);
89573
+ }
89574
+ function isexe(path, options, cb) {
89575
+ fs.stat(path, function(er, stat) {
89576
+ cb(er, er ? false : checkStat(stat, path, options));
89577
+ });
89578
+ }
89579
+ function sync(path, options) {
89580
+ return checkStat(fs.statSync(path), path, options);
89581
+ }
89582
+ });
89583
+
89584
+ // ../../node_modules/.bun/isexe@2.0.0/node_modules/isexe/mode.js
89585
+ var require_mode2 = __commonJS((exports, module) => {
89586
+ module.exports = isexe;
89587
+ isexe.sync = sync;
89588
+ var fs = __require("fs");
89589
+ function isexe(path, options, cb) {
89590
+ fs.stat(path, function(er, stat) {
89591
+ cb(er, er ? false : checkStat(stat, options));
89592
+ });
89593
+ }
89594
+ function sync(path, options) {
89595
+ return checkStat(fs.statSync(path), options);
89596
+ }
89597
+ function checkStat(stat, options) {
89598
+ return stat.isFile() && checkMode(stat, options);
89599
+ }
89600
+ function checkMode(stat, options) {
89601
+ var mod = stat.mode;
89602
+ var uid = stat.uid;
89603
+ var gid = stat.gid;
89604
+ var myUid = options.uid !== undefined ? options.uid : process.getuid && process.getuid();
89605
+ var myGid = options.gid !== undefined ? options.gid : process.getgid && process.getgid();
89606
+ var u = parseInt("100", 8);
89607
+ var g = parseInt("010", 8);
89608
+ var o = parseInt("001", 8);
89609
+ var ug = u | g;
89610
+ var ret = mod & o || mod & g && gid === myGid || mod & u && uid === myUid || mod & ug && myUid === 0;
89611
+ return ret;
89612
+ }
89613
+ });
89614
+
89615
+ // ../../node_modules/.bun/isexe@2.0.0/node_modules/isexe/index.js
89616
+ var require_isexe = __commonJS((exports, module) => {
89617
+ var fs = __require("fs");
89618
+ var core2;
89619
+ if (process.platform === "win32" || global.TESTING_WINDOWS) {
89620
+ core2 = require_windows();
89621
+ } else {
89622
+ core2 = require_mode2();
89623
+ }
89624
+ module.exports = isexe;
89625
+ isexe.sync = sync;
89626
+ function isexe(path, options, cb) {
89627
+ if (typeof options === "function") {
89628
+ cb = options;
89629
+ options = {};
89630
+ }
89631
+ if (!cb) {
89632
+ if (typeof Promise !== "function") {
89633
+ throw new TypeError("callback not provided");
89634
+ }
89635
+ return new Promise(function(resolve7, reject) {
89636
+ isexe(path, options || {}, function(er, is) {
89637
+ if (er) {
89638
+ reject(er);
89639
+ } else {
89640
+ resolve7(is);
89641
+ }
89642
+ });
89643
+ });
89644
+ }
89645
+ core2(path, options || {}, function(er, is) {
89646
+ if (er) {
89647
+ if (er.code === "EACCES" || options && options.ignoreErrors) {
89648
+ er = null;
89649
+ is = false;
89650
+ }
89651
+ }
89652
+ cb(er, is);
89653
+ });
89654
+ }
89655
+ function sync(path, options) {
89656
+ try {
89657
+ return core2.sync(path, options || {});
89658
+ } catch (er) {
89659
+ if (options && options.ignoreErrors || er.code === "EACCES") {
89660
+ return false;
89661
+ } else {
89662
+ throw er;
89663
+ }
89664
+ }
89665
+ }
89666
+ });
89667
+
89668
+ // ../../node_modules/.bun/which@2.0.2/node_modules/which/which.js
89669
+ var require_which = __commonJS((exports, module) => {
89670
+ var isWindows = process.platform === "win32" || process.env.OSTYPE === "cygwin" || process.env.OSTYPE === "msys";
89671
+ var path = __require("path");
89672
+ var COLON = isWindows ? ";" : ":";
89673
+ var isexe = require_isexe();
89674
+ var getNotFoundError = (cmd) => Object.assign(new Error(`not found: ${cmd}`), { code: "ENOENT" });
89675
+ var getPathInfo = (cmd, opt) => {
89676
+ const colon = opt.colon || COLON;
89677
+ const pathEnv = cmd.match(/\//) || isWindows && cmd.match(/\\/) ? [""] : [
89678
+ ...isWindows ? [process.cwd()] : [],
89679
+ ...(opt.path || process.env.PATH || "").split(colon)
89680
+ ];
89681
+ const pathExtExe = isWindows ? opt.pathExt || process.env.PATHEXT || ".EXE;.CMD;.BAT;.COM" : "";
89682
+ const pathExt = isWindows ? pathExtExe.split(colon) : [""];
89683
+ if (isWindows) {
89684
+ if (cmd.indexOf(".") !== -1 && pathExt[0] !== "")
89685
+ pathExt.unshift("");
89686
+ }
89687
+ return {
89688
+ pathEnv,
89689
+ pathExt,
89690
+ pathExtExe
89691
+ };
89692
+ };
89693
+ var which = (cmd, opt, cb) => {
89694
+ if (typeof opt === "function") {
89695
+ cb = opt;
89696
+ opt = {};
89697
+ }
89698
+ if (!opt)
89699
+ opt = {};
89700
+ const { pathEnv, pathExt, pathExtExe } = getPathInfo(cmd, opt);
89701
+ const found = [];
89702
+ const step = (i) => new Promise((resolve7, reject) => {
89703
+ if (i === pathEnv.length)
89704
+ return opt.all && found.length ? resolve7(found) : reject(getNotFoundError(cmd));
89705
+ const ppRaw = pathEnv[i];
89706
+ const pathPart = /^".*"$/.test(ppRaw) ? ppRaw.slice(1, -1) : ppRaw;
89707
+ const pCmd = path.join(pathPart, cmd);
89708
+ const p = !pathPart && /^\.[\\\/]/.test(cmd) ? cmd.slice(0, 2) + pCmd : pCmd;
89709
+ resolve7(subStep(p, i, 0));
89710
+ });
89711
+ const subStep = (p, i, ii) => new Promise((resolve7, reject) => {
89712
+ if (ii === pathExt.length)
89713
+ return resolve7(step(i + 1));
89714
+ const ext = pathExt[ii];
89715
+ isexe(p + ext, { pathExt: pathExtExe }, (er, is) => {
89716
+ if (!er && is) {
89717
+ if (opt.all)
89718
+ found.push(p + ext);
89719
+ else
89720
+ return resolve7(p + ext);
89721
+ }
89722
+ return resolve7(subStep(p, i, ii + 1));
89723
+ });
89724
+ });
89725
+ return cb ? step(0).then((res) => cb(null, res), cb) : step(0);
89726
+ };
89727
+ var whichSync = (cmd, opt) => {
89728
+ opt = opt || {};
89729
+ const { pathEnv, pathExt, pathExtExe } = getPathInfo(cmd, opt);
89730
+ const found = [];
89731
+ for (let i = 0;i < pathEnv.length; i++) {
89732
+ const ppRaw = pathEnv[i];
89733
+ const pathPart = /^".*"$/.test(ppRaw) ? ppRaw.slice(1, -1) : ppRaw;
89734
+ const pCmd = path.join(pathPart, cmd);
89735
+ const p = !pathPart && /^\.[\\\/]/.test(cmd) ? cmd.slice(0, 2) + pCmd : pCmd;
89736
+ for (let j = 0;j < pathExt.length; j++) {
89737
+ const cur = p + pathExt[j];
89738
+ try {
89739
+ const is = isexe.sync(cur, { pathExt: pathExtExe });
89740
+ if (is) {
89741
+ if (opt.all)
89742
+ found.push(cur);
89743
+ else
89744
+ return cur;
89745
+ }
89746
+ } catch (ex) {}
89747
+ }
89748
+ }
89749
+ if (opt.all && found.length)
89750
+ return found;
89751
+ if (opt.nothrow)
89752
+ return null;
89753
+ throw getNotFoundError(cmd);
89754
+ };
89755
+ module.exports = which;
89756
+ which.sync = whichSync;
89757
+ });
89758
+
89759
+ // ../../node_modules/.bun/path-key@3.1.1/node_modules/path-key/index.js
89760
+ var require_path_key = __commonJS((exports, module) => {
89761
+ var pathKey = (options = {}) => {
89762
+ const environment = options.env || process.env;
89763
+ const platform = options.platform || process.platform;
89764
+ if (platform !== "win32") {
89765
+ return "PATH";
89766
+ }
89767
+ return Object.keys(environment).reverse().find((key) => key.toUpperCase() === "PATH") || "Path";
89768
+ };
89769
+ module.exports = pathKey;
89770
+ module.exports.default = pathKey;
89771
+ });
89772
+
89773
+ // ../../node_modules/.bun/cross-spawn@7.0.6/node_modules/cross-spawn/lib/util/resolveCommand.js
89774
+ var require_resolveCommand = __commonJS((exports, module) => {
89775
+ var path = __require("path");
89776
+ var which = require_which();
89777
+ var getPathKey = require_path_key();
89778
+ function resolveCommandAttempt(parsed, withoutPathExt) {
89779
+ const env = parsed.options.env || process.env;
89780
+ const cwd = process.cwd();
89781
+ const hasCustomCwd = parsed.options.cwd != null;
89782
+ const shouldSwitchCwd = hasCustomCwd && process.chdir !== undefined && !process.chdir.disabled;
89783
+ if (shouldSwitchCwd) {
89784
+ try {
89785
+ process.chdir(parsed.options.cwd);
89786
+ } catch (err) {}
89787
+ }
89788
+ let resolved;
89789
+ try {
89790
+ resolved = which.sync(parsed.command, {
89791
+ path: env[getPathKey({ env })],
89792
+ pathExt: withoutPathExt ? path.delimiter : undefined
89793
+ });
89794
+ } catch (e) {} finally {
89795
+ if (shouldSwitchCwd) {
89796
+ process.chdir(cwd);
89797
+ }
89798
+ }
89799
+ if (resolved) {
89800
+ resolved = path.resolve(hasCustomCwd ? parsed.options.cwd : "", resolved);
89801
+ }
89802
+ return resolved;
89803
+ }
89804
+ function resolveCommand(parsed) {
89805
+ return resolveCommandAttempt(parsed) || resolveCommandAttempt(parsed, true);
89806
+ }
89807
+ module.exports = resolveCommand;
89808
+ });
89809
+
89810
+ // ../../node_modules/.bun/cross-spawn@7.0.6/node_modules/cross-spawn/lib/util/escape.js
89811
+ var require_escape = __commonJS((exports, module) => {
89812
+ var metaCharsRegExp = /([()\][%!^"`<>&|;, *?])/g;
89813
+ function escapeCommand(arg) {
89814
+ arg = arg.replace(metaCharsRegExp, "^$1");
89815
+ return arg;
89816
+ }
89817
+ function escapeArgument(arg, doubleEscapeMetaChars) {
89818
+ arg = `${arg}`;
89819
+ arg = arg.replace(/(?=(\\+?)?)\1"/g, "$1$1\\\"");
89820
+ arg = arg.replace(/(?=(\\+?)?)\1$/, "$1$1");
89821
+ arg = `"${arg}"`;
89822
+ arg = arg.replace(metaCharsRegExp, "^$1");
89823
+ if (doubleEscapeMetaChars) {
89824
+ arg = arg.replace(metaCharsRegExp, "^$1");
89825
+ }
89826
+ return arg;
89827
+ }
89828
+ exports.command = escapeCommand;
89829
+ exports.argument = escapeArgument;
89830
+ });
89831
+
89832
+ // ../../node_modules/.bun/shebang-regex@3.0.0/node_modules/shebang-regex/index.js
89833
+ var require_shebang_regex = __commonJS((exports, module) => {
89834
+ module.exports = /^#!(.*)/;
89835
+ });
89836
+
89837
+ // ../../node_modules/.bun/shebang-command@2.0.0/node_modules/shebang-command/index.js
89838
+ var require_shebang_command = __commonJS((exports, module) => {
89839
+ var shebangRegex = require_shebang_regex();
89840
+ module.exports = (string4 = "") => {
89841
+ const match = string4.match(shebangRegex);
89842
+ if (!match) {
89843
+ return null;
89844
+ }
89845
+ const [path, argument] = match[0].replace(/#! ?/, "").split(" ");
89846
+ const binary = path.split("/").pop();
89847
+ if (binary === "env") {
89848
+ return argument;
89849
+ }
89850
+ return argument ? `${binary} ${argument}` : binary;
89851
+ };
89852
+ });
89853
+
89854
+ // ../../node_modules/.bun/cross-spawn@7.0.6/node_modules/cross-spawn/lib/util/readShebang.js
89855
+ var require_readShebang = __commonJS((exports, module) => {
89856
+ var fs = __require("fs");
89857
+ var shebangCommand = require_shebang_command();
89858
+ function readShebang(command) {
89859
+ const size = 150;
89860
+ const buffer = Buffer.alloc(size);
89861
+ let fd;
89862
+ try {
89863
+ fd = fs.openSync(command, "r");
89864
+ fs.readSync(fd, buffer, 0, size, 0);
89865
+ fs.closeSync(fd);
89866
+ } catch (e) {}
89867
+ return shebangCommand(buffer.toString());
89868
+ }
89869
+ module.exports = readShebang;
89870
+ });
89871
+
89872
+ // ../../node_modules/.bun/cross-spawn@7.0.6/node_modules/cross-spawn/lib/parse.js
89873
+ var require_parse2 = __commonJS((exports, module) => {
89874
+ var path = __require("path");
89875
+ var resolveCommand = require_resolveCommand();
89876
+ var escape = require_escape();
89877
+ var readShebang = require_readShebang();
89878
+ var isWin = process.platform === "win32";
89879
+ var isExecutableRegExp = /\.(?:com|exe)$/i;
89880
+ var isCmdShimRegExp = /node_modules[\\/].bin[\\/][^\\/]+\.cmd$/i;
89881
+ function detectShebang(parsed) {
89882
+ parsed.file = resolveCommand(parsed);
89883
+ const shebang = parsed.file && readShebang(parsed.file);
89884
+ if (shebang) {
89885
+ parsed.args.unshift(parsed.file);
89886
+ parsed.command = shebang;
89887
+ return resolveCommand(parsed);
89888
+ }
89889
+ return parsed.file;
89890
+ }
89891
+ function parseNonShell(parsed) {
89892
+ if (!isWin) {
89893
+ return parsed;
89894
+ }
89895
+ const commandFile = detectShebang(parsed);
89896
+ const needsShell = !isExecutableRegExp.test(commandFile);
89897
+ if (parsed.options.forceShell || needsShell) {
89898
+ const needsDoubleEscapeMetaChars = isCmdShimRegExp.test(commandFile);
89899
+ parsed.command = path.normalize(parsed.command);
89900
+ parsed.command = escape.command(parsed.command);
89901
+ parsed.args = parsed.args.map((arg) => escape.argument(arg, needsDoubleEscapeMetaChars));
89902
+ const shellCommand = [parsed.command].concat(parsed.args).join(" ");
89903
+ parsed.args = ["/d", "/s", "/c", `"${shellCommand}"`];
89904
+ parsed.command = process.env.comspec || "cmd.exe";
89905
+ parsed.options.windowsVerbatimArguments = true;
89906
+ }
89907
+ return parsed;
89908
+ }
89909
+ function parse6(command, args, options) {
89910
+ if (args && !Array.isArray(args)) {
89911
+ options = args;
89912
+ args = null;
89913
+ }
89914
+ args = args ? args.slice(0) : [];
89915
+ options = Object.assign({}, options);
89916
+ const parsed = {
89917
+ command,
89918
+ args,
89919
+ options,
89920
+ file: undefined,
89921
+ original: {
89922
+ command,
89923
+ args
89924
+ }
89925
+ };
89926
+ return options.shell ? parsed : parseNonShell(parsed);
89927
+ }
89928
+ module.exports = parse6;
89929
+ });
89930
+
89931
+ // ../../node_modules/.bun/cross-spawn@7.0.6/node_modules/cross-spawn/lib/enoent.js
89932
+ var require_enoent = __commonJS((exports, module) => {
89933
+ var isWin = process.platform === "win32";
89934
+ function notFoundError(original, syscall) {
89935
+ return Object.assign(new Error(`${syscall} ${original.command} ENOENT`), {
89936
+ code: "ENOENT",
89937
+ errno: "ENOENT",
89938
+ syscall: `${syscall} ${original.command}`,
89939
+ path: original.command,
89940
+ spawnargs: original.args
89941
+ });
89942
+ }
89943
+ function hookChildProcess(cp, parsed) {
89944
+ if (!isWin) {
89945
+ return;
89946
+ }
89947
+ const originalEmit = cp.emit;
89948
+ cp.emit = function(name, arg1) {
89949
+ if (name === "exit") {
89950
+ const err = verifyENOENT(arg1, parsed);
89951
+ if (err) {
89952
+ return originalEmit.call(cp, "error", err);
89953
+ }
89954
+ }
89955
+ return originalEmit.apply(cp, arguments);
89956
+ };
89957
+ }
89958
+ function verifyENOENT(status, parsed) {
89959
+ if (isWin && status === 1 && !parsed.file) {
89960
+ return notFoundError(parsed.original, "spawn");
89961
+ }
89962
+ return null;
89963
+ }
89964
+ function verifyENOENTSync(status, parsed) {
89965
+ if (isWin && status === 1 && !parsed.file) {
89966
+ return notFoundError(parsed.original, "spawnSync");
89967
+ }
89968
+ return null;
89969
+ }
89970
+ module.exports = {
89971
+ hookChildProcess,
89972
+ verifyENOENT,
89973
+ verifyENOENTSync,
89974
+ notFoundError
89975
+ };
89976
+ });
89977
+
89978
+ // ../../node_modules/.bun/cross-spawn@7.0.6/node_modules/cross-spawn/index.js
89979
+ var require_cross_spawn = __commonJS((exports, module) => {
89980
+ var cp = __require("child_process");
89981
+ var parse6 = require_parse2();
89982
+ var enoent = require_enoent();
89983
+ function spawn(command, args, options) {
89984
+ const parsed = parse6(command, args, options);
89985
+ const spawned = cp.spawn(parsed.command, parsed.args, parsed.options);
89986
+ enoent.hookChildProcess(spawned, parsed);
89987
+ return spawned;
89988
+ }
89989
+ function spawnSync(command, args, options) {
89990
+ const parsed = parse6(command, args, options);
89991
+ const result = cp.spawnSync(parsed.command, parsed.args, parsed.options);
89992
+ result.error = result.error || enoent.verifyENOENTSync(result.status, parsed);
89993
+ return result;
89994
+ }
89995
+ module.exports = spawn;
89996
+ module.exports.spawn = spawn;
89997
+ module.exports.sync = spawnSync;
89998
+ module.exports._parse = parse6;
89999
+ module.exports._enoent = enoent;
90000
+ });
90001
+
89546
90002
  // ../../node_modules/.bun/picocolors@1.1.1/node_modules/picocolors/picocolors.js
89547
90003
  var require_picocolors = __commonJS((exports, module) => {
89548
90004
  var p = process || {};
@@ -113418,13 +113874,13 @@ function updateLocalTomlName(cwd, oldName, newName) {
113418
113874
  }
113419
113875
  }
113420
113876
  // ../core/dist/commands/reproduce.js
113421
- import { spawn } from "node:child_process";
113422
113877
  import { mkdtempSync, writeFileSync as writeFileSync9 } from "node:fs";
113423
113878
  import { tmpdir } from "node:os";
113424
113879
  import { join as join23 } from "node:path";
113880
+ var import_cross_spawn = __toESM(require_cross_spawn(), 1);
113425
113881
  function runProcessExit(cmd, args, opts = {}) {
113426
113882
  return new Promise((resolve7, reject) => {
113427
- const child = spawn(cmd, args, {
113883
+ const child = import_cross_spawn.default(cmd, args, {
113428
113884
  cwd: opts.cwd,
113429
113885
  stdio: opts.inherit ? "inherit" : "ignore"
113430
113886
  });
@@ -115871,16 +116327,16 @@ function registerTransfersCommands(cli, ctx) {
115871
116327
  }
115872
116328
 
115873
116329
  // src/open.ts
115874
- import { spawn as spawn2 } from "node:child_process";
116330
+ import { spawn } from "node:child_process";
115875
116331
  async function openUrl(url2) {
115876
116332
  const platform = process.platform;
115877
116333
  try {
115878
116334
  if (platform === "darwin")
115879
- spawn2("open", [url2], { detached: true, stdio: "ignore" }).unref();
116335
+ spawn("open", [url2], { detached: true, stdio: "ignore" }).unref();
115880
116336
  else if (platform === "win32")
115881
- spawn2("cmd", ["/c", "start", "", url2], { detached: true, stdio: "ignore" }).unref();
116337
+ spawn("cmd", ["/c", "start", "", url2], { detached: true, stdio: "ignore" }).unref();
115882
116338
  else
115883
- spawn2("xdg-open", [url2], { detached: true, stdio: "ignore" }).unref();
116339
+ spawn("xdg-open", [url2], { detached: true, stdio: "ignore" }).unref();
115884
116340
  } catch {}
115885
116341
  }
115886
116342
 
@@ -115987,7 +116443,7 @@ async function renderError(stderr, error48) {
115987
116443
  // package.json
115988
116444
  var package_default = {
115989
116445
  name: "percher",
115990
- version: "0.5.5",
116446
+ version: "0.5.6",
115991
116447
  description: "CLI for the Percher hosting platform — publish apps with one command",
115992
116448
  type: "module",
115993
116449
  bin: {
package/dist/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "percher",
3
- "version": "0.5.5",
3
+ "version": "0.5.6",
4
4
  "description": "CLI for the Percher hosting platform — publish apps with one command",
5
5
  "type": "module",
6
6
  "bin": {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "percher",
3
- "version": "0.5.5",
3
+ "version": "0.5.6",
4
4
  "description": "CLI for the Percher hosting platform — publish apps with one command",
5
5
  "type": "module",
6
6
  "bin": {