airterm 1.0.2 → 1.0.3
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.js +9 -9
- package/package.json +2 -1
package/dist/cli.js
CHANGED
|
@@ -86,6 +86,7 @@ function resetAll() {
|
|
|
86
86
|
import { useState, useEffect } from "react";
|
|
87
87
|
import { Box as Box2, Text as Text2 } from "ink";
|
|
88
88
|
import TextInput from "ink-text-input";
|
|
89
|
+
import Link from "ink-link";
|
|
89
90
|
|
|
90
91
|
// src/components/Header.tsx
|
|
91
92
|
import { Box, Text } from "ink";
|
|
@@ -129,7 +130,7 @@ async function fetchInfo() {
|
|
|
129
130
|
}
|
|
130
131
|
|
|
131
132
|
// src/components/Welcome.tsx
|
|
132
|
-
import {
|
|
133
|
+
import { jsx as jsx2, jsxs } from "react/jsx-runtime";
|
|
133
134
|
function Welcome({ onSubmitCode }) {
|
|
134
135
|
const [code, setCode] = useState("");
|
|
135
136
|
const [phone, setPhone] = useState(null);
|
|
@@ -157,13 +158,10 @@ function Welcome({ onSubmitCode }) {
|
|
|
157
158
|
}
|
|
158
159
|
)
|
|
159
160
|
] }),
|
|
160
|
-
/* @__PURE__ */ jsx2(Box2, { marginTop: 1, flexDirection: "column", children: phone ? /* @__PURE__ */ jsxs(
|
|
161
|
-
|
|
162
|
-
/* @__PURE__ */
|
|
163
|
-
|
|
164
|
-
phone,
|
|
165
|
-
"&body=Give%20me%20terminal%20access"
|
|
166
|
-
] })
|
|
161
|
+
/* @__PURE__ */ jsx2(Box2, { marginTop: 1, flexDirection: "column", children: phone ? /* @__PURE__ */ jsxs(Text2, { dimColor: true, children: [
|
|
162
|
+
"Don't have one? ",
|
|
163
|
+
/* @__PURE__ */ jsx2(Link, { url: `sms:${phone}&body=Give%20me%20terminal%20access`, children: /* @__PURE__ */ jsx2(Text2, { color: "cyan", children: "Text your AirClaw" }) }),
|
|
164
|
+
" and ask for terminal access."
|
|
167
165
|
] }) : /* @__PURE__ */ jsx2(Text2, { dimColor: true, children: "Don't have one? Text your AirClaw and ask for terminal access." }) })
|
|
168
166
|
] });
|
|
169
167
|
}
|
|
@@ -291,7 +289,9 @@ function connectSSH(conn) {
|
|
|
291
289
|
"-o",
|
|
292
290
|
"StrictHostKeyChecking=accept-new",
|
|
293
291
|
"-o",
|
|
294
|
-
"UserKnownHostsFile=~/.airterm/known_hosts"
|
|
292
|
+
"UserKnownHostsFile=~/.airterm/known_hosts",
|
|
293
|
+
"-o",
|
|
294
|
+
"LogLevel=ERROR"
|
|
295
295
|
];
|
|
296
296
|
if (needsTls) {
|
|
297
297
|
args.push(
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "airterm",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.3",
|
|
4
4
|
"description": "SSH into your AirClaw machine",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|
|
@@ -15,6 +15,7 @@
|
|
|
15
15
|
},
|
|
16
16
|
"dependencies": {
|
|
17
17
|
"ink": "^5.1.0",
|
|
18
|
+
"ink-link": "5",
|
|
18
19
|
"ink-select-input": "^6.0.0",
|
|
19
20
|
"ink-spinner": "^5.0.0",
|
|
20
21
|
"ink-text-input": "^6.0.0",
|