pinggy 0.6.0 → 0.6.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/ARCHITECTURE.md +335 -10
- package/CLAUDE.md +20 -2
- package/README.md +90 -0
- package/dist/TunnelManager-NGSUBZYI.js +13 -0
- package/dist/{TunnelTui-OZ6AVGTY.js → TunnelTui-UCG2YSLX.js} +6 -18
- package/dist/{chunk-I4HXBP5G.js → chunk-7EQKHVQX.js} +34 -2
- package/dist/{chunk-GBYF2H4H.js → chunk-AFMTIELL.js} +4 -0
- package/dist/{chunk-2HGC37SK.js → chunk-GESMZQHI.js} +47 -119
- package/dist/{chunk-76SOSXXR.js → chunk-MV56U3E6.js} +2 -2
- package/dist/{chunk-MT44NAXX.js → chunk-PD7HXVQ3.js} +1 -1
- package/dist/{chunk-J2U6P376.js → chunk-QNUVQ6KD.js} +204 -21
- package/dist/{chunk-4G6SPMMV.js → chunk-TG6LBCPG.js} +3486 -236
- package/dist/chunk-XZ64ZAGO.js +18 -0
- package/dist/{chunk-H5XJMFNT.js → chunk-Y435RMHQ.js} +7 -3
- package/dist/{configStore-LLWSTN6X.js → configStore-RR5ZU4E3.js} +3 -3
- package/dist/{daemonChild-CV2UTL6T.js → daemonChild-E73NFWKE.js} +13 -8
- package/dist/{daemonConfig-G6S46GPJ.js → daemonConfig-QVXQ47XH.js} +2 -2
- package/dist/index.cjs +3924 -281
- package/dist/index.d.cts +135 -53
- package/dist/index.d.ts +135 -53
- package/dist/index.js +13 -10
- package/dist/ipcClient-XGF2KCQO.js +10 -0
- package/dist/{main-WQ7NUQL4.js → main-M6MACH7D.js} +9 -8
- package/dist/workers/file_serve_worker.js +1 -1
- package/package.json +5 -2
- package/scripts/install/install.ps1 +261 -0
- package/scripts/install/install.sh +387 -0
- package/dist/TunnelManager-I3NW6UXU.js +0 -11
- package/dist/ipcClient-URHJKNEH.js +0 -6
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
// src/tui/blessed/qrCodeGenerator.ts
|
|
2
|
+
import QRCode from "qrcode";
|
|
3
|
+
async function createQrCodes(urls) {
|
|
4
|
+
const codes = [];
|
|
5
|
+
for (const url of urls) {
|
|
6
|
+
const raw = await QRCode.toString(url, {
|
|
7
|
+
type: "utf8",
|
|
8
|
+
margin: 2,
|
|
9
|
+
errorCorrectionLevel: "L"
|
|
10
|
+
});
|
|
11
|
+
codes.push(raw);
|
|
12
|
+
}
|
|
13
|
+
return codes;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
export {
|
|
17
|
+
createQrCodes
|
|
18
|
+
};
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
logger
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-MV56U3E6.js";
|
|
4
4
|
import {
|
|
5
5
|
ensureTunnelConfigDir,
|
|
6
6
|
getTunnelConfigDir
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-AFMTIELL.js";
|
|
8
8
|
|
|
9
9
|
// src/cli/configStore.ts
|
|
10
10
|
import fs from "fs";
|
|
@@ -34,7 +34,11 @@ var Subcommand = {
|
|
|
34
34
|
DaemonAlias: "d",
|
|
35
35
|
Logs: "logs",
|
|
36
36
|
Log: "log",
|
|
37
|
-
Restart: "restart"
|
|
37
|
+
Restart: "restart",
|
|
38
|
+
Device: "device",
|
|
39
|
+
// The old spelling, refused with a hint. As a subcommand it never reaches tunnel mode, where `--token` is the
|
|
40
|
+
// tunnel token and a device token would go to the tunnel server.
|
|
41
|
+
Devices: "devices"
|
|
38
42
|
};
|
|
39
43
|
var ConfigVerb = {
|
|
40
44
|
List: "list",
|
|
@@ -22,9 +22,9 @@ import {
|
|
|
22
22
|
validateName,
|
|
23
23
|
validateNameForStorage,
|
|
24
24
|
validateNameStrict
|
|
25
|
-
} from "./chunk-
|
|
26
|
-
import "./chunk-
|
|
27
|
-
import "./chunk-
|
|
25
|
+
} from "./chunk-Y435RMHQ.js";
|
|
26
|
+
import "./chunk-MV56U3E6.js";
|
|
27
|
+
import "./chunk-AFMTIELL.js";
|
|
28
28
|
export {
|
|
29
29
|
CONFIG_VERBS,
|
|
30
30
|
ConfigVerb,
|
|
@@ -3,26 +3,31 @@ import {
|
|
|
3
3
|
removeDaemonInfo,
|
|
4
4
|
runDaemonChild,
|
|
5
5
|
setDaemonSessionTracker,
|
|
6
|
+
trackDeviceAgentStart,
|
|
7
|
+
trackDeviceAgentStop,
|
|
6
8
|
trackIPCTunnelStart,
|
|
7
9
|
trackTunnelStart,
|
|
8
10
|
trackTunnelStop
|
|
9
|
-
} from "./chunk-
|
|
10
|
-
import "./chunk-
|
|
11
|
-
import "./chunk-
|
|
11
|
+
} from "./chunk-TG6LBCPG.js";
|
|
12
|
+
import "./chunk-GESMZQHI.js";
|
|
13
|
+
import "./chunk-PD7HXVQ3.js";
|
|
12
14
|
import {
|
|
13
15
|
DaemonHost
|
|
14
|
-
} from "./chunk-
|
|
15
|
-
import "./chunk-
|
|
16
|
-
import "./chunk-
|
|
16
|
+
} from "./chunk-7EQKHVQX.js";
|
|
17
|
+
import "./chunk-Y435RMHQ.js";
|
|
18
|
+
import "./chunk-XZ64ZAGO.js";
|
|
19
|
+
import "./chunk-QNUVQ6KD.js";
|
|
17
20
|
import "./chunk-UB26QJ4T.js";
|
|
18
|
-
import "./chunk-
|
|
19
|
-
import "./chunk-
|
|
21
|
+
import "./chunk-MV56U3E6.js";
|
|
22
|
+
import "./chunk-AFMTIELL.js";
|
|
20
23
|
export {
|
|
21
24
|
DaemonHost,
|
|
22
25
|
getDaemonHost,
|
|
23
26
|
removeDaemonInfo,
|
|
24
27
|
runDaemonChild,
|
|
25
28
|
setDaemonSessionTracker,
|
|
29
|
+
trackDeviceAgentStart,
|
|
30
|
+
trackDeviceAgentStop,
|
|
26
31
|
trackIPCTunnelStart,
|
|
27
32
|
trackTunnelStart,
|
|
28
33
|
trackTunnelStop
|