airterm 1.2.0 → 1.2.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.
Files changed (2) hide show
  1. package/dist/cli.js +12 -4
  2. package/package.json +1 -3
package/dist/cli.js CHANGED
@@ -283,7 +283,6 @@ function SelectMachine({
283
283
  // src/components/Connecting.tsx
284
284
  import { useEffect as useEffect2, useState as useState4 } from "react";
285
285
  import { Box as Box5, Text as Text5, useApp as useApp2 } from "ink";
286
- import Spinner from "ink-spinner";
287
286
  import { execFileSync } from "child_process";
288
287
  import { createInterface } from "readline";
289
288
 
@@ -322,6 +321,15 @@ function connectSSH(conn, command) {
322
321
 
323
322
  // src/components/Connecting.tsx
324
323
  import { jsx as jsx5, jsxs as jsxs4 } from "react/jsx-runtime";
324
+ var spinnerFrames = ["\u280B", "\u2819", "\u2839", "\u2838", "\u283C", "\u2834", "\u2826", "\u2827", "\u2807", "\u280F"];
325
+ function Dots() {
326
+ const [i, setI] = useState4(0);
327
+ useEffect2(() => {
328
+ const id = setInterval(() => setI((p) => (p + 1) % spinnerFrames.length), 80);
329
+ return () => clearInterval(id);
330
+ }, []);
331
+ return /* @__PURE__ */ jsx5(Text5, { children: spinnerFrames[i] });
332
+ }
325
333
  function isGloballyInstalled() {
326
334
  try {
327
335
  const p = execFileSync("which", ["airterm"], {
@@ -434,7 +442,7 @@ function Connecting({ code, connection, onError }) {
434
442
  return /* @__PURE__ */ jsxs4(Box5, { flexDirection: "column", children: [
435
443
  /* @__PURE__ */ jsx5(Header, {}),
436
444
  /* @__PURE__ */ jsxs4(Box5, { children: [
437
- /* @__PURE__ */ jsx5(Text5, { color: "cyan", children: /* @__PURE__ */ jsx5(Spinner, { type: "dots" }) }),
445
+ /* @__PURE__ */ jsx5(Text5, { color: "cyan", children: /* @__PURE__ */ jsx5(Dots, {}) }),
438
446
  /* @__PURE__ */ jsxs4(Text5, { children: [
439
447
  " ",
440
448
  status
@@ -548,7 +556,7 @@ function showHelp(exitCode = 0) {
548
556
  -v, --version Show version
549
557
 
550
558
  Examples:
551
- airterm ata_abc123... Redeem an access code
559
+ airterm otp_abc123... Redeem an access code
552
560
  airterm Open an interactive SSH session
553
561
  airterm ls -la List files on your machine
554
562
  airterm cat /tmp/log View a remote file
@@ -586,7 +594,7 @@ if (first === "--list" || first === "-l") {
586
594
  render(/* @__PURE__ */ jsx8(App, { initialScreen: "add" }));
587
595
  }
588
596
  } else if (args.length > 0) {
589
- if (first.startsWith("ata_")) {
597
+ if (first.startsWith("otp_")) {
590
598
  render(/* @__PURE__ */ jsx8(App, { initialCode: first }));
591
599
  } else {
592
600
  const remoteCmd = first === "--" ? args.slice(1) : args;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "airterm",
3
- "version": "1.2.0",
3
+ "version": "1.2.2",
4
4
  "description": "SSH into your AirClaw machine",
5
5
  "type": "module",
6
6
  "bin": {
@@ -16,8 +16,6 @@
16
16
  "dependencies": {
17
17
  "ink": "^5.1.0",
18
18
  "ink-link": "5",
19
- "ink-select-input": "^6.0.0",
20
- "ink-spinner": "^5.0.0",
21
19
  "ink-text-input": "^6.0.0",
22
20
  "react": "^18.3.1"
23
21
  },