ryugi-artifacts 1.46.1 → 1.46.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/dist/cli.cjs CHANGED
@@ -19346,7 +19346,7 @@ async function start(options, emit) {
19346
19346
  options.artifact
19347
19347
  );
19348
19348
  emitStarted(out);
19349
- if (process.platform === "darwin" && options.open && options.artifact && !process.env.ARTIFACTS_OPEN_CMD) {
19349
+ if (process.platform === "darwin" && options.open && options.openExisting && options.artifact && !process.env.ARTIFACTS_OPEN_CMD) {
19350
19350
  const local = out.link;
19351
19351
  await openBrowser(typeof out.cloudLink === "string" ? out.cloudLink : local, [
19352
19352
  local
@@ -19462,7 +19462,10 @@ var startCommand = {
19462
19462
  value: "<n>",
19463
19463
  help: "Stop after this many idle minutes (default: 240)"
19464
19464
  },
19465
- "open": { type: "boolean", help: "Open the artifact in a browser even when ARTIFACTS_OPEN=0" },
19465
+ "open": {
19466
+ type: "boolean",
19467
+ help: "Open or focus the artifact, including when reusing a server"
19468
+ },
19466
19469
  "no-open": { type: "boolean", help: "Do not open a browser" },
19467
19470
  "foreground": { type: "boolean", help: "Run the server in this process until Ctrl+C" },
19468
19471
  "no-daemon": { type: "boolean" },
@@ -19480,6 +19483,7 @@ var startCommand = {
19480
19483
  urlHost: values["url-host"],
19481
19484
  idleTimeoutMinutes: values["idle-timeout-minutes"],
19482
19485
  open: values["no-open"] ? false : values.open ? true : process.env.ARTIFACTS_OPEN !== "0",
19486
+ openExisting: !!values.open,
19483
19487
  foreground: !!(values.foreground || values["no-daemon"]),
19484
19488
  background: !!(values.background || values.daemon)
19485
19489
  },
@@ -19690,7 +19694,7 @@ var updateCommand = {
19690
19694
  },
19691
19695
  run: ({ values }, emit) => update2(
19692
19696
  {
19693
- current: "1.46.1",
19697
+ current: "1.46.2",
19694
19698
  file: __filename,
19695
19699
  env: process.env,
19696
19700
  registry: process.env.npm_config_registry || "https://registry.npmjs.org/",
@@ -19771,7 +19775,7 @@ async function main(argv) {
19771
19775
  const [name, ...rest] = argv;
19772
19776
  const command = COMMANDS.find((candidate) => candidate.name === name);
19773
19777
  const json = argv.includes("--json") || !command?.explicitJson && !process.stdout.isTTY;
19774
- notifyUpdate("1.46.1", json, argv);
19778
+ notifyUpdate("1.46.2", json, argv);
19775
19779
  const emit = (value) => {
19776
19780
  const line = json ? JSON.stringify(value) : text(value);
19777
19781
  if (!json && typeof value.error === "string") console.error(line);
@@ -19790,7 +19794,7 @@ async function main(argv) {
19790
19794
  return await command.run(parse(rest, command.options, command.positionals), emit);
19791
19795
  }
19792
19796
  if (name === "--version" || name === "-v") {
19793
- console.info("1.46.1");
19797
+ console.info("1.46.2");
19794
19798
  return 0;
19795
19799
  }
19796
19800
  if (name === "--help" || name === "-h") {
package/dist/server.cjs CHANGED
@@ -8798,7 +8798,7 @@ var import_node_os2 = __toESM(require("node:os"), 1);
8798
8798
  var import_node_path25 = __toESM(require("node:path"), 1);
8799
8799
 
8800
8800
  // package.json
8801
- var version = "1.46.1";
8801
+ var version = "1.46.2";
8802
8802
 
8803
8803
  // src/server/app.ts
8804
8804
  var import_node_fs26 = __toESM(require("node:fs"), 1);