ai-remote 0.4.17 → 0.5.0

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.
@@ -4,8 +4,8 @@ import {
4
4
  openWindow,
5
5
  readCurrentDisplaySize,
6
6
  runWindow
7
- } from "./cli-chunk-DGHEB4P5.mjs";
8
- import "./cli-chunk-ZQ32C4LC.mjs";
7
+ } from "./cli-chunk-F2TSY3YW.mjs";
8
+ import "./cli-chunk-OZG2CODR.mjs";
9
9
  export {
10
10
  detectCurrentDisplaySize,
11
11
  nativeWindowAvailable,
package/dist/cli.mjs CHANGED
@@ -13,10 +13,10 @@ import {
13
13
  metaPath,
14
14
  sessionName,
15
15
  socketPath
16
- } from "./cli-chunk-ZQ32C4LC.mjs";
16
+ } from "./cli-chunk-OZG2CODR.mjs";
17
17
 
18
18
  // src/cli/cli.ts
19
- import { basename, resolve as resolvePath } from "node:path";
19
+ import { resolve as resolvePath } from "node:path";
20
20
  import { readFileSync as readFileSync2, openSync } from "node:fs";
21
21
 
22
22
  // src/cli/prompt.ts
@@ -150,10 +150,7 @@ function readLog(name) {
150
150
  return "";
151
151
  }
152
152
  }
153
- var NAME = (() => {
154
- const invoked = basename(process.argv[1] ?? "").replace(/\.mjs$/, "");
155
- return invoked === "ai-remote" || invoked === "remotectl" ? invoked : "ai-remote";
156
- })();
153
+ var NAME = "ai-remote";
157
154
  var USAGE = `${NAME} -- drive a remote desktop, with a window you can watch
158
155
 
159
156
  One command names the machine:
@@ -250,7 +247,7 @@ Signing in
250
247
  read if they have no passphrase. A desktop -- RDP or VNC -- has no such thing
251
248
  and always wants a password.
252
249
 
253
- The password comes from AI_REMOTE_PASSWORD (or REMOTECTL_PASSWORD), then from
250
+ The password comes from AI_REMOTE_PASSWORD, then from
254
251
  whatever --save kept for that machine, and last from asking you -- once the
255
252
  ways that need no asking have been tried, and only when a terminal is there to
256
253
  be asked. There is no --password flag: a command line is visible to every
@@ -338,7 +335,7 @@ var CliError = class extends Error {
338
335
  }
339
336
  code;
340
337
  };
341
- var password = () => process.env.AI_REMOTE_PASSWORD ?? process.env.REMOTECTL_PASSWORD ?? "";
338
+ var password = () => process.env.AI_REMOTE_PASSWORD ?? "";
342
339
  function splitKey(key) {
343
340
  const at = key.lastIndexOf("@");
344
341
  return at === -1 ? ["", key] : [key.slice(0, at), key.slice(at + 1)];
@@ -439,7 +436,7 @@ async function startSession(args, name, host, port, secret) {
439
436
  const explicitHeight = flag(args, "H", "height");
440
437
  let fullscreenSize = null;
441
438
  if (mode === "rdp" && has(args, "fullscreen") && (!explicitWidth || !explicitHeight)) {
442
- const { detectCurrentDisplaySize } = await import("./cli-window-H5VHVL4I.mjs");
439
+ const { detectCurrentDisplaySize } = await import("./cli-window-ZKAXEHQV.mjs");
443
440
  const display = await detectCurrentDisplaySize();
444
441
  if (display) fullscreenSize = fullscreenRdpSize(display, has(args, "side-panel"));
445
442
  }
@@ -562,7 +559,7 @@ async function main() {
562
559
  }
563
560
  const json = has(args, "json");
564
561
  if (args.command === "__display-size") {
565
- const { readCurrentDisplaySize } = await import("./cli-window-H5VHVL4I.mjs");
562
+ const { readCurrentDisplaySize } = await import("./cli-window-ZKAXEHQV.mjs");
566
563
  const size = await readCurrentDisplaySize();
567
564
  if (size) process.stdout.write(`${JSON.stringify(size)}
568
565
  `);
@@ -571,7 +568,7 @@ async function main() {
571
568
  if (args.command === "__session") {
572
569
  const mode = modeFor(args, args.rest[0]);
573
570
  const { host, port } = splitTarget(args.rest[0] ?? "", defaultPort(mode));
574
- const { runDaemon } = await import("./cli-daemon-4YPQAC5X.mjs");
571
+ const { runDaemon } = await import("./cli-daemon-3BBFQCML.mjs");
575
572
  await runDaemon({
576
573
  name: sessionName(host, port, flag(args, "name", "session")),
577
574
  host,
@@ -604,7 +601,7 @@ async function main() {
604
601
  return;
605
602
  }
606
603
  if (args.command === "__window") {
607
- const { runWindow } = await import("./cli-window-H5VHVL4I.mjs");
604
+ const { runWindow } = await import("./cli-window-ZKAXEHQV.mjs");
608
605
  await runWindow(process.argv.slice(3));
609
606
  return;
610
607
  }
package/package.json CHANGED
@@ -1,11 +1,10 @@
1
1
  {
2
2
  "name": "ai-remote",
3
- "version": "0.4.17",
3
+ "version": "0.5.0",
4
4
  "description": "RDP, VNC and SSH protocol engines that run in Node, a Worker or a browser -- plus `npx ai-remote`, a CLI that drives a machine and shows you what it is doing",
5
5
  "type": "module",
6
6
  "bin": {
7
- "ai-remote": "dist/cli.mjs",
8
- "remotectl": "dist/cli.mjs"
7
+ "ai-remote": "dist/cli.mjs"
9
8
  },
10
9
  "license": "MIT",
11
10
  "author": {