linkshell-cli 0.1.7 → 0.1.9

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/README.md CHANGED
@@ -11,57 +11,74 @@ npm install -g linkshell-cli
11
11
  ## 一条命令开始
12
12
 
13
13
  ```bash
14
- linkshell start --provider claude
14
+ linkshell start --daemon --provider claude
15
15
  ```
16
16
 
17
- CLI 会自动:
17
+ CLI 会在后台:
18
18
  1. 启动内置 Gateway(端口 8787)
19
19
  2. 检测局域网 IP
20
20
  3. 创建配对并打印 QR 码
21
21
  4. 手机扫码即连
22
22
 
23
- ```
24
- Built-in gateway started on port 8787
25
- LAN address: http://192.168.1.12:8787
23
+ App 断开不影响后台进程,重新扫码即可恢复。
26
24
 
27
- Pairing code: 847293
28
- Session: a1b2c3d4-...
25
+ ## 命令一览
29
26
 
30
- Scan to connect:
31
- ▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
32
- ...
33
- ```
27
+ | 命令 | 说明 |
28
+ |------|------|
29
+ | `linkshell start` | 启动桥接会话(支持 `--daemon` 后台运行) |
30
+ | `linkshell stop` | 停止所有后台进程 |
31
+ | `linkshell status` | 查看运行状态 |
32
+ | `linkshell gateway` | 启动独立 Gateway(支持 `--daemon`) |
33
+ | `linkshell gateway stop` | 停止后台 Gateway |
34
+ | `linkshell gateway status` | 查看 Gateway 状态 |
35
+ | `linkshell setup` | 交互式配置向导 |
36
+ | `linkshell doctor` | 环境检查和连通性诊断 |
34
37
 
35
- ## 更多用法
38
+ ## 使用示例
36
39
 
37
40
  ```bash
38
- # 桥接 Claude Code
41
+ # 后台启动(推荐)
42
+ linkshell start --daemon --provider claude
43
+
44
+ # 前台启动
39
45
  linkshell start --provider claude
40
46
 
41
47
  # 桥接 Codex
42
- linkshell start --provider codex
48
+ linkshell start --daemon --provider codex
43
49
 
44
50
  # 桥接任意命令
45
- linkshell start --provider custom --command bash
51
+ linkshell start --daemon --provider custom --command bash
46
52
 
47
53
  # 指定端口
48
- linkshell start --provider claude --port 9000
54
+ linkshell start --daemon --provider claude --port 9000
49
55
 
50
56
  # 连接远程 Gateway(不启动内置 Gateway)
51
- linkshell start --gateway wss://your-server.com:8787/ws --provider claude
57
+ linkshell start --daemon --gateway wss://your-server.com:8787/ws --provider claude
58
+
59
+ # 查看状态和日志
60
+ linkshell status
61
+ tail -f ~/.linkshell/bridge.log
52
62
 
53
- # 指定 QR 码中的公网地址
54
- linkshell start --gateway ws://127.0.0.1:8787/ws --pairing-gateway 203.0.113.10 --provider claude
63
+ # 停止
64
+ linkshell stop
55
65
  ```
56
66
 
57
- ## 命令
67
+ ## 服务器部署 Gateway
58
68
 
59
- | 命令 | 说明 |
60
- |------|------|
61
- | `linkshell start` | 启动桥接会话(内置或远程 Gateway) |
62
- | `linkshell gateway` | 启动独立 Gateway 服务(用于服务器部署) |
63
- | `linkshell setup` | 交互式配置向导 |
64
- | `linkshell doctor` | 环境检查和连通性诊断 |
69
+ ```bash
70
+ # 后台启动独立 Gateway
71
+ linkshell gateway --daemon --port 8787
72
+
73
+ # 查看状态
74
+ linkshell gateway status
75
+
76
+ # 查看日志
77
+ tail -f ~/.linkshell/gateway.log
78
+
79
+ # 停止
80
+ linkshell gateway stop
81
+ ```
65
82
 
66
83
  ## start 选项
67
84
 
@@ -71,6 +88,7 @@ linkshell start --gateway ws://127.0.0.1:8787/ws --pairing-gateway 203.0.113.10
71
88
  --pairing-gateway <url> QR 码中给手机使用的地址
72
89
  --provider <name> claude | codex | custom(默认 claude)
73
90
  --command <cmd> 自定义命令(custom provider 必填)
91
+ --daemon 后台运行
74
92
  --session-id <id> 手动指定 session ID
75
93
  --client-name <name> 显示名称(默认 local-cli)
76
94
  --cols <n> 终端列数(默认 120)
@@ -84,7 +102,7 @@ linkshell start --gateway ws://127.0.0.1:8787/ws --pairing-gateway 203.0.113.10
84
102
  linkshell setup
85
103
  ```
86
104
 
87
- 配置保存在 `~/.linkshell/config.json`,后续启动自动读取。
105
+ 配置保存在 `~/.linkshell/config.json`。
88
106
 
89
107
  ## doctor 检查项
90
108
 
@@ -98,18 +116,23 @@ linkshell doctor
98
116
  - 配置文件状态
99
117
  - Gateway 连通性和延迟
100
118
 
101
- ## 工作原理
119
+ ## 文件位置
102
120
 
103
121
  ```
104
- 你的电脑 (CLI + 内置 Gateway) ◄──WebSocket──► 手机 (App)
122
+ ~/.linkshell/
123
+ ├── config.json # 配置文件
124
+ ├── bridge.pid # 桥接进程 PID
125
+ ├── bridge.log # 桥接进程日志
126
+ ├── gateway.pid # Gateway 进程 PID
127
+ └── gateway.log # Gateway 进程日志
105
128
  ```
106
129
 
107
- 1. CLI 启动内置 Gateway(或连接远程 Gateway)
108
- 2. 通过 PTY 启动目标进程(Claude/Codex/bash)
109
- 3. 终端输出通过 WebSocket 转发给手机 App
110
- 4. App 的输入回传给 CLI,写入 PTY
130
+ ## 代码入口
111
131
 
112
- 支持断线自动重连、ACK 确认、scrollback 缓冲(1000 条)、心跳检测(15s)和协议版本协商。
132
+ 1. src/index.ts CLI 命令定义
133
+ 2. src/providers.ts — Provider 适配
134
+ 3. src/runtime/bridge-session.ts — 核心会话
135
+ 4. src/utils/daemon.ts — 后台进程管理
113
136
 
114
137
  ## License
115
138
 
@@ -11,22 +11,66 @@ const program = new Command();
11
11
  program
12
12
  .name("linkshell")
13
13
  .description("Bridge a local Claude/Codex terminal session to a remote gateway")
14
- .version("0.1.7");
14
+ .version("0.1.9");
15
+ // ── start ───────────────────────────────────────────────────────────
15
16
  program
16
17
  .command("start")
17
- .description("Start a bridge session")
18
- .option("--gateway <url>", "Gateway websocket URL (omit to start built-in gateway)", config.gateway)
18
+ .description("Start a bridge session (with built-in or remote gateway)")
19
+ .option("--gateway <url>", "Gateway websocket URL (omit to start built-in gateway)", config.gateway ?? undefined)
19
20
  .option("--pairing-gateway <url-or-host>", "Public HTTP gateway used in QR/deep link output", config.pairingGateway)
20
- .option("--port <port>", "Port for built-in gateway (default: 8787)", "8787")
21
+ .option("--port <port>", "Port for built-in gateway", "8787")
21
22
  .option("--session-id <id>", "Session identifier (auto-created if omitted)")
22
23
  .option("--provider <provider>", "claude | codex | custom", config.provider ?? "claude")
23
24
  .option("--command <command>", "Override provider executable", config.command)
24
25
  .option("--client-name <name>", "Display name for this CLI", config.clientName ?? "local-cli")
25
26
  .option("--cols <cols>", "Initial terminal columns", String(config.cols ?? 120))
26
27
  .option("--rows <rows>", "Initial terminal rows", String(config.rows ?? 36))
28
+ .option("--daemon", "Run in background (detached)")
27
29
  .option("--verbose", "Enable verbose logging")
30
+ .option("--_foreground-bridge", undefined) // internal
28
31
  .allowUnknownOption(true)
29
32
  .action(async (options, command) => {
33
+ const daemon = await import("./utils/daemon.js");
34
+ // Daemon mode: spawn detached child and exit
35
+ if (options.daemon && !options._foregroundBridge) {
36
+ const existingPid = daemon.readPid("bridge");
37
+ if (existingPid) {
38
+ process.stderr.write(` Bridge already running (PID ${existingPid})\n`);
39
+ process.stderr.write(` Run: linkshell stop\n\n`);
40
+ return;
41
+ }
42
+ // Rebuild args for the child, replacing --daemon with --_foreground-bridge
43
+ const childArgs = ["start", "--_foreground-bridge"];
44
+ if (options.gateway)
45
+ childArgs.push("--gateway", options.gateway);
46
+ if (options.pairingGateway)
47
+ childArgs.push("--pairing-gateway", options.pairingGateway);
48
+ childArgs.push("--port", String(options.port));
49
+ childArgs.push("--provider", options.provider);
50
+ if (options.command)
51
+ childArgs.push("--command", options.command);
52
+ childArgs.push("--client-name", options.clientName);
53
+ childArgs.push("--cols", String(options.cols));
54
+ childArgs.push("--rows", String(options.rows));
55
+ if (options.verbose)
56
+ childArgs.push("--verbose");
57
+ if (options.sessionId)
58
+ childArgs.push("--session-id", options.sessionId);
59
+ // Pass through extra args
60
+ const extra = command.args.filter((v) => v !== "--");
61
+ if (extra.length)
62
+ childArgs.push("--", ...extra);
63
+ const pid = daemon.spawnDaemon("bridge", childArgs);
64
+ process.stderr.write(`\n LinkShell bridge started in background\n`);
65
+ process.stderr.write(` PID: ${pid}\n`);
66
+ process.stderr.write(` Provider: ${options.provider}\n`);
67
+ process.stderr.write(` Log: ${daemon.getLogFile("bridge")}\n\n`);
68
+ process.stderr.write(` Stop: linkshell stop\n`);
69
+ process.stderr.write(` Status: linkshell status\n`);
70
+ process.stderr.write(` Logs: tail -f ${daemon.getLogFile("bridge")}\n\n`);
71
+ return;
72
+ }
73
+ // Foreground mode
30
74
  const passthroughArgs = command.args.filter((value) => value !== "--");
31
75
  const providerConfig = resolveProviderConfig({
32
76
  provider: options.provider,
@@ -38,7 +82,6 @@ program
38
82
  let pairingGateway = options.pairingGateway;
39
83
  let embeddedGatewayHandle;
40
84
  if (!gatewayUrl) {
41
- // Start built-in gateway
42
85
  const { startEmbeddedGateway } = await import("@linkshell/gateway/embedded");
43
86
  const port = Number(options.port);
44
87
  const gw = await startEmbeddedGateway({
@@ -49,7 +92,6 @@ program
49
92
  embeddedGatewayHandle = gw;
50
93
  gatewayUrl = gw.wsUrl;
51
94
  gatewayHttpUrl = gw.httpUrl;
52
- // Auto-detect LAN IP for QR code
53
95
  const lanIp = getLanIp();
54
96
  if (!pairingGateway && lanIp !== "127.0.0.1") {
55
97
  pairingGateway = `http://${lanIp}:${gw.port}`;
@@ -66,6 +108,8 @@ program
66
108
  .replace(/^wss:/, "https:")
67
109
  .replace(/^ws:/, "http:");
68
110
  }
111
+ // Save PID for status/stop
112
+ daemon.savePid("bridge", process.pid);
69
113
  const session = new BridgeSession({
70
114
  gatewayUrl,
71
115
  gatewayHttpUrl,
@@ -77,22 +121,47 @@ program
77
121
  verbose: Boolean(options.verbose),
78
122
  providerConfig,
79
123
  });
80
- // Clean up embedded gateway on exit
81
- if (embeddedGatewayHandle) {
82
- const cleanup = async () => {
124
+ const cleanup = async () => {
125
+ daemon.removePid("bridge");
126
+ if (embeddedGatewayHandle)
83
127
  await embeddedGatewayHandle.close();
84
- };
85
- process.on("SIGINT", () => { cleanup().then(() => process.exit(0)); });
86
- process.on("SIGTERM", () => { cleanup().then(() => process.exit(0)); });
87
- }
128
+ };
129
+ process.on("SIGINT", () => { cleanup().then(() => process.exit(0)); });
130
+ process.on("SIGTERM", () => { cleanup().then(() => process.exit(0)); });
88
131
  await session.start();
89
132
  });
90
- program
133
+ // ── gateway ─────────────────────────────────────────────────────────
134
+ const gatewayCmd = program
91
135
  .command("gateway")
92
- .description("Start a standalone gateway server (for deployment on a remote server)")
136
+ .description("Manage the standalone gateway server")
93
137
  .option("--port <port>", "Listen port", "8787")
94
138
  .option("--log-level <level>", "Log level: debug | info | warn | error", "info")
139
+ .option("--daemon", "Run in background (detached)")
140
+ .option("--_foreground-gw", undefined) // internal
95
141
  .action(async (options) => {
142
+ const daemon = await import("./utils/daemon.js");
143
+ if (options.daemon && !options._foregroundGw) {
144
+ const existingPid = daemon.readPid("gateway");
145
+ if (existingPid) {
146
+ process.stderr.write(` Gateway already running (PID ${existingPid})\n`);
147
+ process.stderr.write(` Run: linkshell gateway stop\n\n`);
148
+ return;
149
+ }
150
+ const pid = daemon.spawnDaemon("gateway", [
151
+ "gateway", "--_foreground-gw",
152
+ "--port", String(options.port),
153
+ "--log-level", options.logLevel,
154
+ ]);
155
+ process.stderr.write(`\n LinkShell Gateway started in background\n`);
156
+ process.stderr.write(` PID: ${pid}\n`);
157
+ process.stderr.write(` Port: ${options.port}\n`);
158
+ process.stderr.write(` Log: ${daemon.getLogFile("gateway")}\n\n`);
159
+ process.stderr.write(` Stop: linkshell gateway stop\n`);
160
+ process.stderr.write(` Status: linkshell gateway status\n`);
161
+ process.stderr.write(` Logs: tail -f ${daemon.getLogFile("gateway")}\n\n`);
162
+ return;
163
+ }
164
+ // Foreground mode
96
165
  const { startEmbeddedGateway } = await import("@linkshell/gateway/embedded");
97
166
  const port = Number(options.port);
98
167
  const gw = await startEmbeddedGateway({
@@ -100,21 +169,92 @@ program
100
169
  logLevel: options.logLevel,
101
170
  silent: false,
102
171
  });
103
- process.stderr.write(`\n LinkShell Gateway v0.1.0\n`);
172
+ daemon.savePid("gateway", process.pid);
173
+ process.stderr.write(`\n LinkShell Gateway v0.1.8\n`);
104
174
  process.stderr.write(` Listening on http://0.0.0.0:${gw.port}\n`);
175
+ process.stderr.write(` PID: ${process.pid}\n`);
105
176
  process.stderr.write(` Log level: ${options.logLevel}\n\n`);
106
177
  process.stderr.write(` Clients connect via: ws://your-server:${gw.port}/ws\n`);
107
178
  process.stderr.write(` Health check: curl http://your-server:${gw.port}/healthz\n\n`);
108
179
  const shutdown = async () => {
109
180
  process.stderr.write("[gateway] shutting down...\n");
181
+ daemon.removePid("gateway");
110
182
  await gw.close();
111
183
  process.exit(0);
112
184
  };
113
185
  process.on("SIGINT", shutdown);
114
186
  process.on("SIGTERM", shutdown);
115
- // Keep process alive
116
187
  await new Promise(() => { });
117
188
  });
189
+ gatewayCmd
190
+ .command("stop")
191
+ .description("Stop the background gateway")
192
+ .action(async () => {
193
+ const { stopDaemon } = await import("./utils/daemon.js");
194
+ if (stopDaemon("gateway")) {
195
+ process.stderr.write(" Gateway stopped.\n");
196
+ }
197
+ else {
198
+ process.stderr.write(" No running gateway found.\n");
199
+ }
200
+ });
201
+ gatewayCmd
202
+ .command("status")
203
+ .description("Check if the gateway is running")
204
+ .action(async () => {
205
+ const { readPid, getLogFile } = await import("./utils/daemon.js");
206
+ const pid = readPid("gateway");
207
+ if (pid) {
208
+ process.stderr.write(`\n Gateway is running\n`);
209
+ process.stderr.write(` PID: ${pid}\n`);
210
+ process.stderr.write(` Log: ${getLogFile("gateway")}\n\n`);
211
+ }
212
+ else {
213
+ process.stderr.write(" Gateway is not running.\n");
214
+ }
215
+ });
216
+ // ── stop (stops both bridge and gateway) ────────────────────────────
217
+ program
218
+ .command("stop")
219
+ .description("Stop all running LinkShell processes")
220
+ .action(async () => {
221
+ const { stopDaemon } = await import("./utils/daemon.js");
222
+ const bridgeStopped = stopDaemon("bridge");
223
+ const gatewayStopped = stopDaemon("gateway");
224
+ if (bridgeStopped)
225
+ process.stderr.write(" Bridge stopped.\n");
226
+ if (gatewayStopped)
227
+ process.stderr.write(" Gateway stopped.\n");
228
+ if (!bridgeStopped && !gatewayStopped) {
229
+ process.stderr.write(" No running processes found.\n");
230
+ }
231
+ });
232
+ // ── status ──────────────────────────────────────────────────────────
233
+ program
234
+ .command("status")
235
+ .description("Show status of all LinkShell processes")
236
+ .action(async () => {
237
+ const { readPid, getLogFile } = await import("./utils/daemon.js");
238
+ const bridgePid = readPid("bridge");
239
+ const gatewayPid = readPid("gateway");
240
+ process.stderr.write("\n");
241
+ if (bridgePid) {
242
+ process.stderr.write(` Bridge: running (PID ${bridgePid})\n`);
243
+ process.stderr.write(` Log: ${getLogFile("bridge")}\n`);
244
+ }
245
+ else {
246
+ process.stderr.write(" Bridge: not running\n");
247
+ }
248
+ if (gatewayPid) {
249
+ process.stderr.write(` Gateway: running (PID ${gatewayPid})\n`);
250
+ process.stderr.write(` Log: ${getLogFile("gateway")}\n`);
251
+ }
252
+ else {
253
+ process.stderr.write(" Gateway: not running\n");
254
+ }
255
+ process.stderr.write("\n");
256
+ });
257
+ // ── doctor / setup ──────────────────────────────────────────────────
118
258
  program
119
259
  .command("doctor")
120
260
  .description("Check your environment and connectivity")
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/index.ts"],"names":[],"mappings":";AACA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACpC,OAAO,EAAE,aAAa,EAAE,MAAM,6BAA6B,CAAC;AAC5D,OAAO,EAAE,qBAAqB,EAAE,MAAM,gBAAgB,CAAC;AACvD,OAAO,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AACzC,OAAO,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAC;AACjD,OAAO,EAAE,QAAQ,EAAE,MAAM,qBAAqB,CAAC;AAC/C,OAAO,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAE7C,MAAM,MAAM,GAAG,UAAU,EAAE,CAAC;AAC5B,MAAM,OAAO,GAAG,IAAI,OAA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,YAAY,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;IACvE,OAAO,CAAC,MAAM,CAAC,KAAK,CAAC,GAAG,OAAO,IAAI,CAAC,CAAC;IACrC,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;AAClB,CAAC,CAAC,CAAC"}
@@ -0,0 +1,9 @@
1
+ type ServiceName = "gateway" | "bridge";
2
+ export declare function savePid(service: ServiceName, pid: number): void;
3
+ export declare function readPid(service: ServiceName): number | null;
4
+ export declare function removePid(service: ServiceName): void;
5
+ export declare function getLogFile(service: ServiceName): string;
6
+ export declare function getPidFile(service: ServiceName): string;
7
+ export declare function spawnDaemon(service: ServiceName, args: string[]): number;
8
+ export declare function stopDaemon(service: ServiceName): boolean;
9
+ export {};
@@ -0,0 +1,79 @@
1
+ import { existsSync, readFileSync, writeFileSync, unlinkSync, mkdirSync, openSync } from "node:fs";
2
+ import { join } from "node:path";
3
+ import { homedir } from "node:os";
4
+ import { spawn } from "node:child_process";
5
+ const LINKSHELL_DIR = join(homedir(), ".linkshell");
6
+ function pidFile(service) {
7
+ return join(LINKSHELL_DIR, `${service}.pid`);
8
+ }
9
+ function logFile(service) {
10
+ return join(LINKSHELL_DIR, `${service}.log`);
11
+ }
12
+ export function savePid(service, pid) {
13
+ mkdirSync(LINKSHELL_DIR, { recursive: true });
14
+ writeFileSync(pidFile(service), String(pid), "utf8");
15
+ }
16
+ export function readPid(service) {
17
+ try {
18
+ const file = pidFile(service);
19
+ if (!existsSync(file))
20
+ return null;
21
+ const pid = Number(readFileSync(file, "utf8").trim());
22
+ if (!pid || isNaN(pid))
23
+ return null;
24
+ try {
25
+ process.kill(pid, 0);
26
+ return pid;
27
+ }
28
+ catch {
29
+ removePid(service);
30
+ return null;
31
+ }
32
+ }
33
+ catch {
34
+ return null;
35
+ }
36
+ }
37
+ export function removePid(service) {
38
+ try {
39
+ unlinkSync(pidFile(service));
40
+ }
41
+ catch { }
42
+ }
43
+ export function getLogFile(service) {
44
+ return logFile(service);
45
+ }
46
+ export function getPidFile(service) {
47
+ return pidFile(service);
48
+ }
49
+ export function spawnDaemon(service, args) {
50
+ mkdirSync(LINKSHELL_DIR, { recursive: true });
51
+ const log = logFile(service);
52
+ const out = openSync(log, "a");
53
+ const err = openSync(log, "a");
54
+ const entryScript = process.argv[1];
55
+ const child = spawn(process.execPath, [...process.execArgv, entryScript, ...args], {
56
+ detached: true,
57
+ stdio: ["ignore", out, err],
58
+ env: process.env,
59
+ });
60
+ child.unref();
61
+ const pid = child.pid;
62
+ savePid(service, pid);
63
+ return pid;
64
+ }
65
+ export function stopDaemon(service) {
66
+ const pid = readPid(service);
67
+ if (!pid)
68
+ return false;
69
+ try {
70
+ process.kill(pid, "SIGTERM");
71
+ removePid(service);
72
+ return true;
73
+ }
74
+ catch {
75
+ removePid(service);
76
+ return false;
77
+ }
78
+ }
79
+ //# sourceMappingURL=daemon.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"daemon.js","sourceRoot":"","sources":["../../../../src/utils/daemon.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,YAAY,EAAE,aAAa,EAAE,UAAU,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAC;AACnG,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;AACjC,OAAO,EAAE,OAAO,EAAE,MAAM,SAAS,CAAC;AAClC,OAAO,EAAE,KAAK,EAAE,MAAM,oBAAoB,CAAC;AAE3C,MAAM,aAAa,GAAG,IAAI,CAAC,OAAO,EAAE,EAAE,YAAY,CAAC,CAAC;AAIpD,SAAS,OAAO,CAAC,OAAoB;IACnC,OAAO,IAAI,CAAC,aAAa,EAAE,GAAG,OAAO,MAAM,CAAC,CAAC;AAC/C,CAAC;AAED,SAAS,OAAO,CAAC,OAAoB;IACnC,OAAO,IAAI,CAAC,aAAa,EAAE,GAAG,OAAO,MAAM,CAA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ileNames":["../../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es5.d.ts","../../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2015.d.ts","../../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2016.d.ts","../../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2017.d.ts","../../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2018.d.ts","../../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2019.d.ts","../../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2020.d.ts","../../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2021.d.ts","../../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2022.d.ts","../../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.dom.d.ts","../../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.dom.iterable.d.ts","../../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.dom.asynciterable.d.ts","../../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.webworker.importscripts.d.ts","../../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.scripthost.d.ts","../../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2015.core.d.ts","../../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2015.collection.d.ts","../../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2015.generator.d.ts","../../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2015.iterable.d.ts","../../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2015.promise.d.ts","../../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2015.proxy.d.ts","../../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2015.reflect.d.ts","../../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2015.symbol.d.ts","../../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2015.symbol.wellknown.d.ts","../../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2016.array.include.d.ts","../../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2016.intl.d.ts","../../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2017.arraybuffer.d.ts","../../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2017.date.d.ts","../../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2017.object.d.ts","../../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2017.sharedmemory.d.ts","../../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2017.string.d.ts","../../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2017.intl.d.ts","../../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2017.typedarrays.d.ts","../../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2018.asyncgenerator.d.ts","../../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2018.asynciterable.d.ts","../../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2018.intl.d.ts","../../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2018.promise.d.ts","../../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2018.regexp.d.ts","../../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2019.array.d.ts","../../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2019.object.d.ts","../../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2019.string.d.ts","../../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2019.symbol.d.ts","../../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2019.intl.d.ts","../../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2020.bigint.d.ts","../../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2020.date.d.ts","../../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2020.promise.d.ts","../../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2020.sharedmemory.d.ts","../../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2020.string.d.ts","../../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2020.symbol.wellknown.d.ts","../../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2020.intl.d.ts","../../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2020.number.d.ts","../../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2021.promise.d.ts","../../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2021.string.d.ts","../../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2021.weakref.d.ts","../../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2021.intl.d.ts","../../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2022.array.d.ts","../../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2022.error.d.ts","../../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2022.intl.d.ts","../../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2022.object.d.ts","../../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2022.string.d.ts","../../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2022.regexp.d.ts","../../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.decorators.d.ts","../../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.decorators.legacy.d.ts","../../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2022.full.d.ts","../../src/config.ts","../../../../node_modules/.pnpm/commander@13.1.0/node_modules/commander/typings/index.d.ts","../../../../node_modules/.pnpm/commander@13.1.0/node_modules/commander/typings/esm.d.mts","../../../../node_modules/.pnpm/node-pty@1.1.0/node_modules/node-pty/typings/node-pty.d.ts","../../../../node_modules/.pnpm/@types+node@22.19.15/node_modules/@types/node/compatibility/disposable.d.ts","../../../../node_modules/.pnpm/@types+node@22.19.15/node_modules/@types/node/compatibility/indexable.d.ts","../../../../node_modules/.pnpm/@types+node@22.19.15/node_modules/@types/node/compatibility/iterators.d.ts","../../../../node_modules/.pnpm/@types+node@22.19.15/node_modules/@types/node/compatibility/index.d.ts","../../../../node_modules/.pnpm/@types+node@22.19.15/node_modules/@types/node/globals.typedarray.d.ts","../../../../node_modules/.pnpm/@types+node@22.19.15/node_modules/@types/node/buffer.buffer.d.ts","../../../../node_modules/.pnpm/@types+node@22.19.15/node_modules/@types/node/globals.d.ts","../../../../node_modules/.pnpm/@types+node@22.19.15/node_modules/@types/node/web-globals/abortcontroller.d.ts","../../../../node_modules/.pnpm/@types+node@22.19.15/node_modules/@types/node/web-globals/domexception.d.ts","../../../../node_modules/.pnpm/@types+node@22.19.15/node_modules/@types/node/web-globals/events.d.ts","../../../../node_modules/.pnpm/buffer@5.7.1/node_modules/buffer/index.d.ts","../../../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/header.d.ts","../../../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/readable.d.ts","../../../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/file.d.ts","../../../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/fetch.d.ts","../../../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/formdata.d.ts","../../../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/connector.d.ts","../../../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/client.d.ts","../../../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/errors.d.ts","../../../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/dispatcher.d.ts","../../../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/global-dispatcher.d.ts","../../../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/global-origin.d.ts","../../../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/pool-stats.d.ts","../../../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/pool.d.ts","../../../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/handlers.d.ts","../../../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/balanced-pool.d.ts","../../../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/agent.d.ts","../../../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/mock-interceptor.d.ts","../../../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/mock-agent.d.ts","../../../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/mock-client.d.ts","../../../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/mock-pool.d.ts","../../../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/mock-errors.d.ts","../../../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/proxy-agent.d.ts","../../../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/env-http-proxy-agent.d.ts","../../../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/retry-handler.d.ts","../../../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/retry-agent.d.ts","../../../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/api.d.ts","../../../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/interceptors.d.ts","../../../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/util.d.ts","../../../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/cookies.d.ts","../../../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/patch.d.ts","../../../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/websocket.d.ts","../../../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/eventsource.d.ts","../../../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/filereader.d.ts","../../../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/diagnostics-channel.d.ts","../../../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/content-type.d.ts","../../../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/cache.d.ts","../../../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/index.d.ts","../../../../node_modules/.pnpm/@types+node@22.19.15/node_modules/@types/node/web-globals/fetch.d.ts","../../../../node_modules/.pnpm/@types+node@22.19.15/node_modules/@types/node/web-globals/navigator.d.ts","../../../../node_modules/.pnpm/@types+node@22.19.15/node_modules/@types/node/web-globals/storage.d.ts","../../../../node_modules/.pnpm/@types+node@22.19.15/node_modules/@types/node/assert.d.ts","../../../../node_modules/.pnpm/@types+node@22.19.15/node_modules/@types/node/assert/strict.d.ts","../../../../node_modules/.pnpm/@types+node@22.19.15/node_modules/@types/node/async_hooks.d.ts","../../../../node_modules/.pnpm/@types+node@22.19.15/node_modules/@types/node/buffer.d.ts","../../../../node_modules/.pnpm/@types+node@22.19.15/node_modules/@types/node/child_process.d.ts","../../../../node_modules/.pnpm/@types+node@22.19.15/node_modules/@types/node/cluster.d.ts","../../../../node_modules/.pnpm/@types+node@22.19.15/node_modules/@types/node/console.d.ts","../../../../node_modules/.pnpm/@types+node@22.19.15/node_modules/@types/node/constants.d.ts","../../../../node_modules/.pnpm/@types+node@22.19.15/node_modules/@types/node/crypto.d.ts","../../../../node_modules/.pnpm/@types+node@22.19.15/node_modules/@types/node/dgram.d.ts","../../../../node_modules/.pnpm/@types+node@22.19.15/node_modules/@types/node/diagnostics_channel.d.ts","../../../../node_modules/.pnpm/@types+node@22.19.15/node_modules/@types/node/dns.d.ts","../../../../node_modules/.pnpm/@types+node@22.19.15/node_modules/@types/node/dns/promises.d.ts","../../../../node_modules/.pnpm/@types+node@22.19.15/node_modules/@types/node/domain.d.ts","../../../../node_modules/.pnpm/@types+node@22.19.15/node_modules/@types/node/events.d.ts","../../../../node_modules/.pnpm/@types+node@22.19.15/node_modules/@types/node/fs.d.ts","../../../../node_modules/.pnpm/@types+node@22.19.15/node_modules/@types/node/fs/promises.d.ts","../../../../node_modules/.pnpm/@types+node@22.19.15/node_modules/@types/node/http.d.ts","../../../../node_modules/.pnpm/@types+node@22.19.15/node_modules/@types/node/http2.d.ts","../../../../node_modules/.pnpm/@types+node@22.19.15/node_modules/@types/node/https.d.ts","../../../../node_modules/.pnpm/@types+node@22.19.15/node_modules/@types/node/inspector.d.ts","../../../../node_modules/.pnpm/@types+node@22.19.15/node_modules/@types/node/inspector.generated.d.ts","../../../../node_modules/.pnpm/@types+node@22.19.15/node_modules/@types/node/module.d.ts","../../../../node_modules/.pnpm/@types+node@22.19.15/node_modules/@types/node/net.d.ts","../../../../node_modules/.pnpm/@types+node@22.19.15/node_modules/@types/node/os.d.ts","../../../../node_modules/.pnpm/@types+node@22.19.15/node_modules/@types/node/path.d.ts","../../../../node_modules/.pnpm/@types+node@22.19.15/node_modules/@types/node/perf_hooks.d.ts","../../../../node_modules/.pnpm/@types+node@22.19.15/node_modules/@types/node/process.d.ts","../../../../node_modules/.pnpm/@types+node@22.19.15/node_modules/@types/node/punycode.d.ts","../../../../node_modules/.pnpm/@types+node@22.19.15/node_modules/@types/node/querystring.d.ts","../../../../node_modules/.pnpm/@types+node@22.19.15/node_modules/@types/node/readline.d.ts","../../../../node_modules/.pnpm/@types+node@22.19.15/node_modules/@types/node/readline/promises.d.ts","../../../../node_modules/.pnpm/@types+node@22.19.15/node_modules/@types/node/repl.d.ts","../../../../node_modules/.pnpm/@types+node@22.19.15/node_modules/@types/node/sea.d.ts","../../../../node_modules/.pnpm/@types+node@22.19.15/node_modules/@types/node/sqlite.d.ts","../../../../node_modules/.pnpm/@types+node@22.19.15/node_modules/@types/node/stream.d.ts","../../../../node_modules/.pnpm/@types+node@22.19.15/node_modules/@types/node/stream/promises.d.ts","../../../../node_modules/.pnpm/@types+node@22.19.15/node_modules/@types/node/stream/consumers.d.ts","../../../../node_modules/.pnpm/@types+node@22.19.15/node_modules/@types/node/stream/web.d.ts","../../../../node_modules/.pnpm/@types+node@22.19.15/node_modules/@types/node/string_decoder.d.ts","../../../../node_modules/.pnpm/@types+node@22.19.15/node_modules/@types/node/test.d.ts","../../../../node_modules/.pnpm/@types+node@22.19.15/node_modules/@types/node/timers.d.ts","../../../../node_modules/.pnpm/@types+node@22.19.15/node_modules/@types/node/timers/promises.d.ts","../../../../node_modules/.pnpm/@types+node@22.19.15/node_modules/@types/node/tls.d.ts","../../../../node_modules/.pnpm/@types+node@22.19.15/node_modules/@types/node/trace_events.d.ts","../../../../node_modules/.pnpm/@types+node@22.19.15/node_modules/@types/node/tty.d.ts","../../../../node_modules/.pnpm/@types+node@22.19.15/node_modules/@types/node/url.d.ts","../../../../node_modules/.pnpm/@types+node@22.19.15/node_modules/@types/node/util.d.ts","../../../../node_modules/.pnpm/@types+node@22.19.15/node_modules/@types/node/v8.d.ts","../../../../node_modules/.pnpm/@types+node@22.19.15/node_modules/@types/node/vm.d.ts","../../../../node_modules/.pnpm/@types+node@22.19.15/node_modules/@types/node/wasi.d.ts","../../../../node_modules/.pnpm/@types+node@22.19.15/node_modules/@types/node/worker_threads.d.ts","../../../../node_modules/.pnpm/@types+node@22.19.15/node_modules/@types/node/zlib.d.ts","../../../../node_modules/.pnpm/@types+node@22.19.15/node_modules/@types/node/index.d.ts","../../../../node_modules/.pnpm/@types+ws@8.18.1/node_modules/@types/ws/index.d.mts","../../../../node_modules/.pnpm/zod@3.25.76/node_modules/zod/v3/helpers/typealiases.d.cts","../../../../node_modules/.pnpm/zod@3.25.76/node_modules/zod/v3/helpers/util.d.cts","../../../../node_modules/.pnpm/zod@3.25.76/node_modules/zod/v3/index.d.cts","../../../../node_modules/.pnpm/zod@3.25.76/node_modules/zod/v3/zoderror.d.cts","../../../../node_modules/.pnpm/zod@3.25.76/node_modules/zod/v3/locales/en.d.cts","../../../../node_modules/.pnpm/zod@3.25.76/node_modules/zod/v3/errors.d.cts","../../../../node_modules/.pnpm/zod@3.25.76/node_modules/zod/v3/helpers/parseutil.d.cts","../../../../node_modules/.pnpm/zod@3.25.76/node_modules/zod/v3/helpers/enumutil.d.cts","../../../../node_modules/.pnpm/zod@3.25.76/node_modules/zod/v3/helpers/errorutil.d.cts","../../../../node_modules/.pnpm/zod@3.25.76/node_modules/zod/v3/helpers/partialutil.d.cts","../../../../node_modules/.pnpm/zod@3.25.76/node_modules/zod/v3/standard-schema.d.cts","../../../../node_modules/.pnpm/zod@3.25.76/node_modules/zod/v3/types.d.cts","../../../../node_modules/.pnpm/zod@3.25.76/node_modules/zod/v3/external.d.cts","../../../../node_modules/.pnpm/zod@3.25.76/node_modules/zod/index.d.cts","../../../shared-protocol/src/index.ts","../../src/providers.ts","../../src/runtime/scrollback.ts","../../src/runtime/bridge-session.ts","../../src/commands/doctor.ts","../../src/commands/setup.ts","../../src/utils/lan-ip.ts","../../../gateway/src/sessions.ts","../../../gateway/src/pairings.ts","../../../gateway/src/relay.ts","../../../gateway/src/embedded.ts","../../src/index.ts","../../src/types/qrcode-terminal.d.ts"],"fileIdsList":[[73,119,120,122,139,140],[73,121,122,139,140],[122,139,140],[73,122,127,139,140,157],[73,122,123,128,133,139,140,142,154,165],[73,122,123,124,133,139,140,142],[73,122,139,140],[68,69,70,73,122,139,140],[73,122,125,139,140,166],[73,122,126,127,134,139,140,143],[73,122,127,139,140,154,162],[73,122,128,130,133,139,140,142],[73,121,122,129,139,140],[73,122,130,131,139,140],[73,122,132,133,139,140],[73,121,122,133,139,140],[73,122,133,134,135,139,140,154,165],[73,122,133,134,135,139,140,149,154,157],[73,115,122,130,133,136,139,140,142,154,165],[73,122,133,134,136,137,139,140,142,154,162,165],[73,122,136,138,139,140,154,162,165],[71,72,73,74,75,76,77,116,117,118,119,120,121,122,123,124,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164,165,166,167,168,169,170,171],[73,122,133,139,140],[73,122,139,140,141,165],[73,122,130,133,139,140,142,154],[73,122,139,140,143],[73,122,139,140,144],[73,121,122,139,140,145],[73,119,120,121,122,123,124,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164,165,166,167,168,169,170,171],[73,122,139,140,147],[73,122,139,140,148],[73,122,133,139,140,149,150],[73,122,139,140,149,151,166,168],[73,122,134,139,140],[73,122,133,139,140,154,155,157],[73,122,139,140,156,157],[73,122,139,140,154,155],[73,122,139,140,157],[73,122,139,140,158],[73,119,122,139,140,154,159,165],[73,122,133,139,140,160,161],[73,122,139,140,160,161],[73,122,127,139,140,142,154,162],[73,122,139,140,163],[73,122,139,140,142,164],[73,122,136,139,140,148,165],[73,122,127,139,140,166],[73,122,139,140,154,167],[73,122,139,140,141,168],[73,122,139,140,169],[73,115,122,139,140],[73,115,122,133,135,139,140,145,154,157,165,167,168,170],[73,122,139,140,154,171],[73,122,133,136,138,139,140,142,154,162,165,171,172],[65,73,122,139,140],[73,87,91,122,139,140,165],[73,87,122,139,140,154,165],[73,82,122,139,140],[73,84,87,122,139,140,162,165],[73,122,139,140,142,162],[73,122,139,140,172],[73,82,122,139,140,172],[73,84,87,122,139,140,142,165],[73,79,80,83,86,122,133,139,140,154,165],[73,87,94,122,139,140],[73,79,85,122,139,140],[73,87,108,109,122,139,140],[73,83,87,122,139,140,157,165,172],[73,108,122,139,140,172],[73,81,82,122,139,140,172],[73,87,122,139,140],[73,81,82,83,84,85,86,87,88,89,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,107,109,110,111,112,113,114,122,139,140],[73,87,102,122,139,140],[73,87,94,95,122,139,140],[73,85,87,95,96,122,139,140],[73,86,122,139,140],[73,79,82,87,122,139,140],[73,87,91,95,96,122,139,140],[73,91,122,139,140],[73,85,87,90,122,139,140,165],[73,79,84,87,94,122,139,140],[73,122,139,140,154],[73,82,87,108,122,139,140,170,172],[73,122,139,140,186],[73,122,139,140,177,178],[73,122,139,140,174,175,177,179,180,185],[73,122,139,140,175,177],[73,122,139,140,185],[73,122,139,140,177],[73,122,139,140,174,175,177,180,181,182,183,184],[73,122,139,140,174,175,176],[64,73,122,123,139,140],[64,73,122,139,140,143,149],[73,122,134,139,140,143,144],[64,66,73,122,139,140,189,191,192,193,194,198],[73,122,123,139,140],[67,73,122,139,140,143,173,188,189,190,200],[73,122,139,140,188],[73,122,127,136,139,140,173,187,188,195,196,197],[73,122,127,139,140],[73,122,139,140,173,188,195],[73,122,139,140,173,188],[73,122,139,140,187]],"fileInfos":[{"version":"c430d44666289dae81f30fa7b2edebf186ecc91a2d4c71266ea6ae76388792e1","affectsGlobalScope":true,"impliedFormat":1},{"version":"45b7ab580deca34ae9729e97c13cfd999df04416a79116c3bfb483804f85ded4","impliedFormat":1},{"version":"3facaf05f0c5fc569c5649dd359892c98a85557e3e0c847964caeb67076f4d75","impliedFormat":1},{"version":"e44bb8bbac7f10ecc786703fe0a6a4b952189f908707980ba8f3c8975a760962","impliedFormat":1},{"version":"5e1c4c362065a6b95ff952c0eab010f04dcd2c3494e813b493ecfd4fcb9fc0d8","impliedFormat":1},{"version":"68d73b4a11549f9c0b7d352d10e91e5dca8faa3322bfb77b661839c42b1ddec7","impliedFormat":1},{"version":"5efce4fc3c29ea84e8928f97adec086e3dc876365e0982cc8479a07954a3efd4","impliedFormat":1},{"version":"feecb1be483ed332fad555aff858affd90a48ab19ba7272ee084704eb7167569","impliedFormat":1},{"version":"ee7bad0c15b58988daa84371e0b89d313b762ab83cb5b31b8a2d1162e8eb41c2","impliedFormat":1},{"version":"080941d9f9ff9307f7e27a83bcd888b7c8270716c39af943532438932ec1d0b9","affectsGlobalScope":true,"impliedFormat":1},{"version":"2e80ee7a49e8ac312cc11b77f1475804bee36b3b2bc896bead8b6e1266befb43","affectsGlobalScope":true,"impliedFormat":1},{"version":"d7a3c8b952931daebdfc7a2897c53c0a1c73624593fa070e46bd537e64dcd20a","affectsGlobalScope":true,"impliedFormat":1},{"version":"80e18897e5884b6723488d4f5652167e7bb5024f946743134ecc4aa4ee731f89","affectsGlobalScope":true,"impliedFormat":1},{"version":"cd034f499c6cdca722b60c04b5b1b78e058487a7085a8e0d6fb50809947ee573","affectsGlobalScope":true,"impliedFormat":1},{"version":"c57796738e7f83dbc4b8e65132f11a377649c00dd3eee333f672b8f0a6bea671","affectsGlobalScope":true,"impliedFormat":1},{"version":"dc2df20b1bcdc8c2d34af4926e2c3ab15ffe1160a63e58b7e09833f616efff44","affectsGlobalScope":true,"impliedFormat":1},{"version":"515d0b7b9bea2e31ea4ec968e9edd2c39d3eebf4a2d5cbd04e88639819ae3b71","affectsGlobalScope":true,"impliedFormat":1},{"version":"0559b1f683ac7505ae451f9a96ce4c3c92bdc71411651ca6ddb0e88baaaad6a3","affectsGlobalScope":true,"impliedFormat":1},{"version":"0dc1e7ceda9b8b9b455c3a2d67b0412feab00bd2f66656cd8850e8831b08b537","affectsGlobalScope":true,"impliedFormat":1},{"version":"ce691fb9e5c64efb9547083e4a34091bcbe5bdb41027e310ebba8f7d96a98671","affectsGlobalScope":true,"impliedFormat":1},{"version":"8d697a2a929a5fcb38b7a65594020fcef05ec1630804a33748829c5ff53640d0","affectsGlobalScope":true,"impliedFormat":1},{"version":"4ff2a353abf8a80ee399af572debb8faab2d33ad38c4b4474cff7f26e7653b8d","affectsGlobalScope":true,"impliedFormat":1},{"version":"fb0f136d372979348d59b3f5020b4cdb81b5504192b1cacff5d1fbba29378aa1","affectsGlobalScope":true,"impliedFormat":1},{"version":"d15bea3d62cbbdb9797079416b8ac375ae99162a7fba5de2c6c505446486ac0a","affectsGlobalScope":true,"impliedFormat":1},{"version":"68d18b664c9d32a7336a70235958b8997ebc1c3b8505f4f1ae2b7e7753b87618","affectsGlobalScope":true,"impliedFormat":1},{"version":"eb3d66c8327153d8fa7dd03f9c58d351107fe824c79e9b56b462935176cdf12a","affectsGlobalScope":true,"impliedFormat":1},{"version":"38f0219c9e23c915ef9790ab1d680440d95419ad264816fa15009a8851e79119","affectsGlobalScope":true,"impliedFormat":1},{"version":"69ab18c3b76cd9b1be3d188eaf8bba06112ebbe2f47f6c322b5105a6fbc45a2e","affectsGlobalScope":true,"impliedFormat":1},{"version":"a680117f487a4d2f30ea46f1b4b7f58bef1480456e18ba53ee85c2746eeca012","affectsGlobalScope":true,"impliedFormat":1},{"version":"2f11ff796926e0832f9ae148008138ad583bd181899ab7dd768a2666700b1893","affectsGlobalScope":true,"impliedFormat":1},{"version":"4de680d5bb41c17f7f68e0419412ca23c98d5749dcaaea1896172f06435891fc","affectsGlobalScope":true,"impliedFormat":1},{"version":"954296b30da6d508a104a3a0b5d96b76495c709785c1d11610908e63481ee667","affectsGlobalScope":true,"impliedFormat":1},{"version":"ac9538681b19688c8eae65811b329d3744af679e0bdfa5d842d0e32524c73e1c","affectsGlobalScope":true,"impliedFormat":1},{"version":"0a969edff4bd52585473d24995c5ef223f6652d6ef46193309b3921d65dd4376","affectsGlobalScope":true,"impliedFormat":1},{"version":"9e9fbd7030c440b33d021da145d3232984c8bb7916f277e8ffd3dc2e3eae2bdb","affectsGlobalScope":true,"impliedFormat":1},{"version":"811ec78f7fefcabbda4bfa93b3eb67d9ae166ef95f9bff989d964061cbf81a0c","affectsGlobalScope":true,"impliedFormat":1},{"version":"717937616a17072082152a2ef351cb51f98802fb4b2fdabd32399843875974ca","affectsGlobalScope":true,"impliedFormat":1},{"version":"d7e7d9b7b50e5f22c915b525acc5a49a7a6584cf8f62d0569e557c5cfc4b2ac2","affectsGlobalScope":true,"impliedFormat":1},{"version":"71c37f4c9543f31dfced6c7840e068c5a5aacb7b89111a4364b1d5276b852557","affectsGlobalScope":true,"impliedFormat":1},{"version":"576711e016cf4f1804676043e6a0a5414252560eb57de9faceee34d79798c850","affectsGlobalScope":true,"impliedFormat":1},{"version":"89c1b1281ba7b8a96efc676b11b264de7a8374c5ea1e6617f11880a13fc56dc6","affectsGlobalScope":true,"impliedFormat":1},{"version":"74f7fa2d027d5b33eb0471c8e82a6c87216223181ec31247c357a3e8e2fddc5b","affectsGlobalScope":true,"impliedFormat":1},{"version":"d6d7ae4d1f1f3772e2a3cde568ed08991a8ae34a080ff1151af28b7f798e22ca","affectsGlobalScope":true,"impliedFormat":1},{"version":"063600664504610fe3e99b717a1223f8b1900087fab0b4cad1496a114744f8df","affectsGlobalScope":true,"impliedFormat":1},{"version":"934019d7e3c81950f9a8426d093458b65d5aff2c7c1511233c0fd5b941e608ab","affectsGlobalScope":true,"impliedFormat":1},{"version":"52ada8e0b6e0482b728070b7639ee42e83a9b1c22d205992756fe020fd9f4a47","affectsGlobalScope":true,"impliedFormat":1},{"version":"3bdefe1bfd4d6dee0e26f928f93ccc128f1b64d5d501ff4a8cf3c6371200e5e6","affectsGlobalScope":true,"impliedFormat":1},{"version":"59fb2c069260b4ba00b5643b907ef5d5341b167e7d1dbf58dfd895658bda2867","affectsGlobalScope":true,"impliedFormat":1},{"version":"639e512c0dfc3fad96a84caad71b8834d66329a1f28dc95e3946c9b58176c73a","affectsGlobalScope":true,"impliedFormat":1},{"version":"368af93f74c9c932edd84c58883e736c9e3d53cec1fe24c0b0ff451f529ceab1","affectsGlobalScope":true,"impliedFormat":1},{"version":"af3dd424cf267428f30ccfc376f47a2c0114546b55c44d8c0f1d57d841e28d74","affectsGlobalScope":true,"impliedFormat":1},{"version":"995c005ab91a498455ea8dfb63aa9f83fa2ea793c3d8aa344be4a1678d06d399","affectsGlobalScope":true,"impliedFormat":1},{"version":"959d36cddf5e7d572a65045b876f2956c973a586da58e5d26cde519184fd9b8a","affectsGlobalScope":true,"impliedFormat":1},{"version":"965f36eae237dd74e6cca203a43e9ca801ce38824ead814728a2807b1910117d","affectsGlobalScope":true,"impliedFormat":1},{"version":"3925a6c820dcb1a06506c90b1577db1fdbf7705d65b62b99dce4be75c637e26b","affectsGlobalScope":true,"impliedFormat":1},{"version":"0a3d63ef2b853447ec4f749d3f368ce642264246e02911fcb1590d8c161b8005","affectsGlobalScope":true,"impliedFormat":1},{"version":"8cdf8847677ac7d20486e54dd3fcf09eda95812ac8ace44b4418da1bbbab6eb8","affectsGlobalScope":true,"impliedFormat":1},{"version":"8444af78980e3b20b49324f4a16ba35024fef3ee069a0eb67616ea6ca821c47a","affectsGlobalScope":true,"impliedFormat":1},{"version":"3287d9d085fbd618c3971944b65b4be57859f5415f495b33a6adc994edd2f004","affectsGlobalScope":true,"impliedFormat":1},{"version":"b4b67b1a91182421f5df999988c690f14d813b9850b40acd06ed44691f6727ad","affectsGlobalScope":true,"impliedFormat":1},{"version":"8e7f8264d0fb4c5339605a15daadb037bf238c10b654bb3eee14208f860a32ea","affectsGlobalScope":true,"impliedFormat":1},{"version":"782dec38049b92d4e85c1585fbea5474a219c6984a35b004963b00beb1aab538","affectsGlobalScope":true,"impliedFormat":1},{"version":"3cbad9a1ba4453443026ed38e4b8be018abb26565fa7c944376463ad9df07c41","impliedFormat":1},{"version":"1327f0b7c04b6a100701154ae1187bb53e36216ee56863f4eb6b4a3c8286dc5e","signature":"52ef6bb9bda49ae5c2e395c9405f24876f2f9dd6b3ff8e8dbe644db4e3be6c76","impliedFormat":99},{"version":"f70c407d79749859db326d714554c92b6f46bbf00bfdb40a1e2e6f705baa52a0","impliedFormat":1},{"version":"b124c0624b15412ace7d54644ade38d7a69db7e25488a1a4d2a8df6e11696538","impliedFormat":99},{"version":"4bb071c41f8f9aaa3e1691c8c84873fa38a3067161ac0d22f085577a9e483be0","impliedFormat":1},{"version":"6c7176368037af28cb72f2392010fa1cef295d6d6744bca8cfb54985f3a18c3e","affectsGlobalScope":true,"impliedFormat":1},{"version":"ab41ef1f2cdafb8df48be20cd969d875602483859dc194e9c97c8a576892c052","affectsGlobalScope":true,"impliedFormat":1},{"version":"437e20f2ba32abaeb7985e0afe0002de1917bc74e949ba585e49feba65da6ca1","affectsGlobalScope":true,"impliedFormat":1},{"version":"21d819c173c0cf7cc3ce57c3276e77fd9a8a01d35a06ad87158781515c9a438a","impliedFormat":1},{"version":"98cffbf06d6bab333473c70a893770dbe990783904002c4f1a960447b4b53dca","affectsGlobalScope":true,"impliedFormat":1},{"version":"3af97acf03cc97de58a3a4bc91f8f616408099bc4233f6d0852e72a8ffb91ac9","affectsGlobalScope":true,"impliedFormat":1},{"version":"808069bba06b6768b62fd22429b53362e7af342da4a236ed2d2e1c89fcca3b4a","affectsGlobalScope":true,"impliedFormat":1},{"version":"1db0b7dca579049ca4193d034d835f6bfe73096c73663e5ef9a0b5779939f3d0","affectsGlobalScope":true,"impliedFormat":1},{"version":"9798340ffb0d067d69b1ae5b32faa17ab31b82466a3fc00d8f2f2df0c8554aaa","affectsGlobalScope":true,"impliedFormat":1},{"version":"f26b11d8d8e4b8028f1c7d618b22274c892e4b0ef5b3678a8ccbad85419aef43","affectsGlobalScope":true,"impliedFormat":1},{"version":"8e9c23ba78aabc2e0a27033f18737a6df754067731e69dc5f52823957d60a4b6","impliedFormat":1},{"version":"5929864ce17fba74232584d90cb721a89b7ad277220627cc97054ba15a98ea8f","impliedFormat":1},{"version":"763fe0f42b3d79b440a9b6e51e9ba3f3f91352469c1e4b3b67bfa4ff6352f3f4","impliedFormat":1},{"version":"25c8056edf4314820382a5fdb4bb7816999acdcb929c8f75e3f39473b87e85bc","impliedFormat":1},{"version":"c464d66b20788266e5353b48dc4aa6bc0dc4a707276df1e7152ab0c9ae21fad8","impliedFormat":1},{"version":"78d0d27c130d35c60b5e5566c9f1e5be77caf39804636bc1a40133919a949f21","impliedFormat":1},{"version":"c6fd2c5a395f2432786c9cb8deb870b9b0e8ff7e22c029954fabdd692bff6195","impliedFormat":1},{"version":"1d6e127068ea8e104a912e42fc0a110e2aa5a66a356a917a163e8cf9a65e4a75","impliedFormat":1},{"version":"5ded6427296cdf3b9542de4471d2aa8d3983671d4cac0f4bf9c637208d1ced43","impliedFormat":1},{"version":"7f182617db458e98fc18dfb272d40aa2fff3a353c44a89b2c0ccb3937709bfb5","impliedFormat":1},{"version":"cadc8aced301244057c4e7e73fbcae534b0f5b12a37b150d80e5a45aa4bebcbd","impliedFormat":1},{"version":"385aab901643aa54e1c36f5ef3107913b10d1b5bb8cbcd933d4263b80a0d7f20","impliedFormat":1},{"version":"9670d44354bab9d9982eca21945686b5c24a3f893db73c0dae0fd74217a4c219","impliedFormat":1},{"version":"0b8a9268adaf4da35e7fa830c8981cfa22adbbe5b3f6f5ab91f6658899e657a7","impliedFormat":1},{"version":"11396ed8a44c02ab9798b7dca436009f866e8dae3c9c25e8c1fbc396880bf1bb","impliedFormat":1},{"version":"ba7bc87d01492633cb5a0e5da8a4a42a1c86270e7b3d2dea5d156828a84e4882","impliedFormat":1},{"version":"4893a895ea92c85345017a04ed427cbd6a1710453338df26881a6019432febdd","impliedFormat":1},{"version":"c21dc52e277bcfc75fac0436ccb75c204f9e1b3fa5e12729670910639f27343e","impliedFormat":1},{"version":"13f6f39e12b1518c6650bbb220c8985999020fe0f21d818e28f512b7771d00f9","impliedFormat":1},{"version":"9b5369969f6e7175740bf51223112ff209f94ba43ecd3bb09eefff9fd675624a","impliedFormat":1},{"version":"4fe9e626e7164748e8769bbf74b538e09607f07ed17c2f20af8d680ee49fc1da","impliedFormat":1},{"version":"24515859bc0b836719105bb6cc3d68255042a9f02a6022b3187948b204946bd2","impliedFormat":1},{"version":"ea0148f897b45a76544ae179784c95af1bd6721b8610af9ffa467a518a086a43","impliedFormat":1},{"version":"24c6a117721e606c9984335f71711877293a9651e44f59f3d21c1ea0856f9cc9","impliedFormat":1},{"version":"dd3273ead9fbde62a72949c97dbec2247ea08e0c6952e701a483d74ef92d6a17","impliedFormat":1},{"version":"405822be75ad3e4d162e07439bac80c6bcc6dbae1929e179cf467ec0b9ee4e2e","impliedFormat":1},{"version":"0db18c6e78ea846316c012478888f33c11ffadab9efd1cc8bcc12daded7a60b6","impliedFormat":1},{"version":"e61be3f894b41b7baa1fbd6a66893f2579bfad01d208b4ff61daef21493ef0a8","impliedFormat":1},{"version":"bd0532fd6556073727d28da0edfd1736417a3f9f394877b6d5ef6ad88fba1d1a","impliedFormat":1},{"version":"89167d696a849fce5ca508032aabfe901c0868f833a8625d5a9c6e861ef935d2","impliedFormat":1},{"version":"615ba88d0128ed16bf83ef8ccbb6aff05c3ee2db1cc0f89ab50a4939bfc1943f","impliedFormat":1},{"version":"a4d551dbf8746780194d550c88f26cf937caf8d56f102969a110cfaed4b06656","impliedFormat":1},{"version":"8bd86b8e8f6a6aa6c49b71e14c4ffe1211a0e97c80f08d2c8cc98838006e4b88","impliedFormat":1},{"version":"317e63deeb21ac07f3992f5b50cdca8338f10acd4fbb7257ebf56735bf52ab00","impliedFormat":1},{"version":"4732aec92b20fb28c5fe9ad99521fb59974289ed1e45aecb282616202184064f","impliedFormat":1},{"version":"2e85db9e6fd73cfa3d7f28e0ab6b55417ea18931423bd47b409a96e4a169e8e6","impliedFormat":1},{"version":"c46e079fe54c76f95c67fb89081b3e399da2c7d109e7dca8e4b58d83e332e605","impliedFormat":1},{"version":"bf67d53d168abc1298888693338cb82854bdb2e69ef83f8a0092093c2d562107","impliedFormat":1},{"version":"b52476feb4a0cbcb25e5931b930fc73cb6643fb1a5060bf8a3dda0eeae5b4b68","affectsGlobalScope":true,"impliedFormat":1},{"version":"f9501cc13ce624c72b61f12b3963e84fad210fbdf0ffbc4590e08460a3f04eba","affectsGlobalScope":true,"impliedFormat":1},{"version":"e7721c4f69f93c91360c26a0a84ee885997d748237ef78ef665b153e622b36c1","affectsGlobalScope":true,"impliedFormat":1},{"version":"0fa06ada475b910e2106c98c68b10483dc8811d0c14a8a8dd36efb2672485b29","impliedFormat":1},{"version":"33e5e9aba62c3193d10d1d33ae1fa75c46a1171cf76fef750777377d53b0303f","impliedFormat":1},{"version":"2b06b93fd01bcd49d1a6bd1f9b65ddcae6480b9a86e9061634d6f8e354c1468f","impliedFormat":1},{"version":"6a0cd27e5dc2cfbe039e731cf879d12b0e2dded06d1b1dedad07f7712de0d7f4","affectsGlobalScope":true,"impliedFormat":1},{"version":"13f5c844119c43e51ce777c509267f14d6aaf31eafb2c2b002ca35584cd13b29","impliedFormat":1},{"version":"e60477649d6ad21542bd2dc7e3d9ff6853d0797ba9f689ba2f6653818999c264","impliedFormat":1},{"version":"c2510f124c0293ab80b1777c44d80f812b75612f297b9857406468c0f4dafe29","affectsGlobalScope":true,"impliedFormat":1},{"version":"5524481e56c48ff486f42926778c0a3cce1cc85dc46683b92b1271865bcf015a","impliedFormat":1},{"version":"4c829ab315f57c5442c6667b53769975acbf92003a66aef19bce151987675bd1","affectsGlobalScope":true,"impliedFormat":1},{"version":"b2ade7657e2db96d18315694789eff2ddd3d8aea7215b181f8a0b303277cc579","impliedFormat":1},{"version":"9855e02d837744303391e5623a531734443a5f8e6e8755e018c41d63ad797db2","impliedFormat":1},{"version":"4d631b81fa2f07a0e63a9a143d6a82c25c5f051298651a9b69176ba28930756d","impliedFormat":1},{"version":"836a356aae992ff3c28a0212e3eabcb76dd4b0cc06bcb9607aeef560661b860d","impliedFormat":1},{"version":"1e0d1f8b0adfa0b0330e028c7941b5a98c08b600efe7f14d2d2a00854fb2f393","impliedFormat":1},{"version":"41670ee38943d9cbb4924e436f56fc19ee94232bc96108562de1a734af20dc2c","affectsGlobalScope":true,"impliedFormat":1},{"version":"c906fb15bd2aabc9ed1e3f44eb6a8661199d6c320b3aa196b826121552cb3695","impliedFormat":1},{"version":"22295e8103f1d6d8ea4b5d6211e43421fe4564e34d0dd8e09e520e452d89e659","impliedFormat":1},{"version":"58647d85d0f722a1ce9de50955df60a7489f0593bf1a7015521efe901c06d770","impliedFormat":1},{"version":"6b4e081d55ac24fc8a4631d5dd77fe249fa25900abd7d046abb87d90e3b45645","impliedFormat":1},{"version":"a10f0e1854f3316d7ee437b79649e5a6ae3ae14ffe6322b02d4987071a95362e","impliedFormat":1},{"version":"e208f73ef6a980104304b0d2ca5f6bf1b85de6009d2c7e404028b875020fa8f2","impliedFormat":1},{"version":"d163b6bc2372b4f07260747cbc6c0a6405ab3fbcea3852305e98ac43ca59f5bc","impliedFormat":1},{"version":"e6fa9ad47c5f71ff733744a029d1dc472c618de53804eae08ffc243b936f87ff","affectsGlobalScope":true,"impliedFormat":1},{"version":"83e63d6ccf8ec004a3bb6d58b9bb0104f60e002754b1e968024b320730cc5311","impliedFormat":1},{"version":"24826ed94a78d5c64bd857570fdbd96229ad41b5cb654c08d75a9845e3ab7dde","impliedFormat":1},{"version":"8b479a130ccb62e98f11f136d3ac80f2984fdc07616516d29881f3061f2dd472","impliedFormat":1},{"version":"928af3d90454bf656a52a48679f199f64c1435247d6189d1caf4c68f2eaf921f","affectsGlobalScope":true,"impliedFormat":1},{"version":"bceb58df66ab8fb00170df20cd813978c5ab84be1d285710c4eb005d8e9d8efb","affectsGlobalScope":true,"impliedFormat":1},{"version":"3f16a7e4deafa527ed9995a772bb380eb7d3c2c0fd4ae178c5263ed18394db2c","impliedFormat":1},{"version":"933921f0bb0ec12ef45d1062a1fc0f27635318f4d294e4d99de9a5493e618ca2","impliedFormat":1},{"version":"71a0f3ad612c123b57239a7749770017ecfe6b66411488000aba83e4546fde25","impliedFormat":1},{"version":"77fbe5eecb6fac4b6242bbf6eebfc43e98ce5ccba8fa44e0ef6a95c945ff4d98","impliedFormat":1},{"version":"4f9d8ca0c417b67b69eeb54c7ca1bedd7b56034bb9bfd27c5d4f3bc4692daca7","impliedFormat":1},{"version":"814118df420c4e38fe5ae1b9a3bafb6e9c2aa40838e528cde908381867be6466","impliedFormat":1},{"version":"a3fc63c0d7b031693f665f5494412ba4b551fe644ededccc0ab5922401079c95","impliedFormat":1},{"version":"f27524f4bef4b6519c604bdb23bf4465bddcccbf3f003abb901acbd0d7404d99","impliedFormat":1},{"version":"37ba7b45141a45ce6e80e66f2a96c8a5ab1bcef0fc2d0f56bb58df96ec67e972","impliedFormat":1},{"version":"45650f47bfb376c8a8ed39d4bcda5902ab899a3150029684ee4c10676d9fbaee","impliedFormat":1},{"version":"6b039f55681caaf111d5eb84d292b9bee9e0131d0db1ad0871eef0964f533c73","affectsGlobalScope":true,"impliedFormat":1},{"version":"18fd40412d102c5564136f29735e5d1c3b455b8a37f920da79561f1fde068208","impliedFormat":1},{"version":"c8d3e5a18ba35629954e48c4cc8f11dc88224650067a172685c736b27a34a4dc","impliedFormat":1},{"version":"f0be1b8078cd549d91f37c30c222c2a187ac1cf981d994fb476a1adc61387b14","affectsGlobalScope":true,"impliedFormat":1},{"version":"0aaed1d72199b01234152f7a60046bc947f1f37d78d182e9ae09c4289e06a592","impliedFormat":1},{"version":"2b55d426ff2b9087485e52ac4bc7cfafe1dc420fc76dad926cd46526567c501a","impliedFormat":1},{"version":"66ba1b2c3e3a3644a1011cd530fb444a96b1b2dfe2f5e837a002d41a1a799e60","impliedFormat":1},{"version":"7e514f5b852fdbc166b539fdd1f4e9114f29911592a5eb10a94bb3a13ccac3c4","impliedFormat":1},{"version":"5b7aa3c4c1a5d81b411e8cb302b45507fea9358d3569196b27eb1a27ae3a90ef","affectsGlobalScope":true,"impliedFormat":1},{"version":"5987a903da92c7462e0b35704ce7da94d7fdc4b89a984871c0e2b87a8aae9e69","affectsGlobalScope":true,"impliedFormat":1},{"version":"ea08a0345023ade2b47fbff5a76d0d0ed8bff10bc9d22b83f40858a8e941501c","impliedFormat":1},{"version":"47613031a5a31510831304405af561b0ffaedb734437c595256bb61a90f9311b","impliedFormat":1},{"version":"ae062ce7d9510060c5d7e7952ae379224fb3f8f2dd74e88959878af2057c143b","impliedFormat":1},{"version":"8a1a0d0a4a06a8d278947fcb66bf684f117bf147f89b06e50662d79a53be3e9f","affectsGlobalScope":true,"impliedFormat":1},{"version":"358765d5ea8afd285d4fd1532e78b88273f18cb3f87403a9b16fef61ac9fdcfe","impliedFormat":1},{"version":"9f55299850d4f0921e79b6bf344b47c420ce0f507b9dcf593e532b09ea7eeea1","impliedFormat":1},{"version":"316f1486e15cbf7896425f0a16dfe12d447dd57cfb3244b8b119c77df870858f","impliedFormat":99},{"version":"d3cfde44f8089768ebb08098c96d01ca260b88bccf238d55eee93f1c620ff5a5","impliedFormat":1},{"version":"293eadad9dead44c6fd1db6de552663c33f215c55a1bfa2802a1bceed88ff0ec","impliedFormat":1},{"version":"833e92c058d033cde3f29a6c7603f517001d1ddd8020bc94d2067a3bc69b2a8e","impliedFormat":1},{"version":"08b2fae7b0f553ad9f79faec864b179fc58bc172e295a70943e8585dd85f600c","impliedFormat":1},{"version":"f12edf1672a94c578eca32216839604f1e1c16b40a1896198deabf99c882b340","impliedFormat":1},{"version":"e3498cf5e428e6c6b9e97bd88736f26d6cf147dedbfa5a8ad3ed8e05e059af8a","impliedFormat":1},{"version":"dba3f34531fd9b1b6e072928b6f885aa4d28dd6789cbd0e93563d43f4b62da53","impliedFormat":1},{"version":"f672c876c1a04a223cf2023b3d91e8a52bb1544c576b81bf64a8fec82be9969c","impliedFormat":1},{"version":"e4b03ddcf8563b1c0aee782a185286ed85a255ce8a30df8453aade2188bbc904","impliedFormat":1},{"version":"2329d90062487e1eaca87b5e06abcbbeeecf80a82f65f949fd332cfcf824b87b","impliedFormat":1},{"version":"25b3f581e12ede11e5739f57a86e8668fbc0124f6649506def306cad2c59d262","impliedFormat":1},{"version":"4fdb529707247a1a917a4626bfb6a293d52cd8ee57ccf03830ec91d39d606d6d","impliedFormat":1},{"version":"a9ebb67d6bbead6044b43714b50dcb77b8f7541ffe803046fdec1714c1eba206","impliedFormat":1},{"version":"5780b706cece027f0d4444fbb4e1af62dc51e19da7c3d3719f67b22b033859b9","impliedFormat":1},{"version":"3e2857352d6d2d65e6f666a50fc7ab382dc8c3d1446c48a741682a6b88e112a5","signature":"4f1612a744aa11e31f92a9515d306a94f6c62db2192460b934158aa6c294e1ba","impliedFormat":99},{"version":"b5379f02cd546bb6e5d72e562f730c8704fb2b2221be15e39c5fc424c7f0d766","signature":"ce7262e7b77d1a64525083da04939aad88532346b00cd11b0dd4e50abdbc6c52","impliedFormat":99},{"version":"750e371b7364f2f78bf9fd992c3ae908731c7d40a48ab8b8ddeda5a5cb04c1ff","signature":"c9073ab45ac91acd005072b3520523913779c589d6a1c3bd0e0c61aaba7ad54b","impliedFormat":99},{"version":"45233981b2abc6d1534e2b2b6c40dc9276629ba52439900170822af07b7c1c29","signature":"06d338f5ade78472a29723b4aa5af1071883fc4dea043729422b9030e7efb3c8","impliedFormat":99},{"version":"c254bfc1140ffad7755d44cf76281eb7e9631af5fe797f4f77921bbca94a0c7f","signature":"6460c7a64995b2db8a8b0582f0f54fb6d378fc969e724a20114b5e9f49c29394","impliedFormat":99},{"version":"58f0eca379fff051124510988bf826fef3437fb690eb8079931a1fc67c1a38c5","signature":"db48891a080caad287e85f972f25ea31139a09d5e4397d34339f4cabf785d24e","impliedFormat":99},{"version":"656e44e6d9f20e26d3680d4d75b1a287ac9e6ba5fefae4dfee00967276c66a11","signature":"5e35740321335d68c3e6f4801590422524437bc8fd9d15a17e8af24cc4e6a272","impliedFormat":99},{"version":"13094819098c9c2f89bf3621bed7408cab0044a5348be341d936bbe369db1f2d","impliedFormat":99},{"version":"9cb164d125a745174029d574e951114f97783cd96d41b8871b35dc78db3027c2","impliedFormat":99},{"version":"de1fd66aaab7983dad00b60810608449da0e23239ed33e551204f6a7fc27b086","impliedFormat":99},{"version":"35be465478f940349145626295ffa6206600a80d53541dcb348741d99eb1dbb1","impliedFormat":99},{"version":"1377c7bb0ffe9477ab1601aac629221eb540378a95d16704a154ce3d0688d005","signature":"43e818adf60173644896298637f47b01d5819b17eda46eaa32d0c7d64724d012","impliedFormat":99},{"version":"11d2698b637a8f2e699650075a01d9d66d776d50d48dce0965dedec8ceac192a","impliedFormat":99}],"root":[64,[188,194],199,200],"options":{"composite":true,"declaration":true,"esModuleInterop":true,"module":199,"noImplicitOverride":true,"noUncheckedIndexedAccess":true,"outDir":"..","rootDir":"../../..","skipLibCheck":true,"sourceMap":true,"strict":true,"target":9},"referencedMap":[[119,1],[120,1],[121,2],[73,3],[122,4],[123,5],[124,6],[68,7],[71,8],[69,7],[70,7],[125,9],[126,10],[127,11],[128,12],[129,13],[130,14],[131,14],[132,15],[133,16],[134,17],[135,18],[74,7],[72,7],[136,19],[137,20],[138,21],[172,22],[139,23],[140,7],[141,24],[142,25],[143,26],[144,27],[145,28],[146,29],[147,30],[148,31],[149,32],[150,32],[151,33],[152,7],[153,34],[154,35],[156,36],[155,37],[157,38],[158,39],[159,40],[160,41],[161,42],[162,43],[163,44],[164,45],[165,46],[166,47],[167,48],[168,49],[169,50],[75,7],[76,7],[77,7],[116,51],[117,7],[118,7],[170,52],[171,53],[173,54],[78,7],[66,55],[65,7],[67,7],[61,7],[62,7],[12,7],[10,7],[11,7],[16,7],[15,7],[2,7],[17,7],[18,7],[19,7],[20,7],[21,7],[22,7],[23,7],[24,7],[3,7],[25,7],[26,7],[4,7],[27,7],[31,7],[28,7],[29,7],[30,7],[32,7],[33,7],[34,7],[5,7],[35,7],[36,7],[37,7],[38,7],[6,7],[42,7],[39,7],[40,7],[41,7],[43,7],[7,7],[44,7],[49,7],[50,7],[45,7],[46,7],[47,7],[48,7],[8,7],[54,7],[51,7],[52,7],[53,7],[55,7],[9,7],[56,7],[63,7],[57,7],[58,7],[60,7],[59,7],[1,7],[14,7],[13,7],[94,56],[104,57],[93,56],[114,58],[85,59],[84,60],[113,61],[107,62],[112,63],[87,64],[101,65],[86,66],[110,67],[82,68],[81,61],[111,69],[83,70],[88,71],[89,7],[92,71],[79,7],[115,72],[105,73],[96,74],[97,75],[99,76],[95,77],[98,78],[108,61],[90,79],[91,80],[100,81],[80,82],[103,73],[102,71],[106,7],[109,83],[187,84],[179,85],[186,86],[181,7],[182,7],[180,87],[183,88],[174,7],[175,7],[176,84],[178,89],[184,7],[185,90],[177,91],[192,92],[193,93],[64,94],[199,95],[189,96],[191,97],[190,98],[200,7],[194,26],[198,99],[196,100],[197,101],[195,102],[188,103]],"emitSignatures":[[188,"ff785035bc223e88e85148ab6e53bb67f1bde64f5da7fe7aa52aa21c80a07aa6"]],"latestChangedDtsFile":"../shared-protocol/src/index.d.ts","version":"5.9.3"}
1
+ {"fileNames":["../../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es5.d.ts","../../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2015.d.ts","../../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2016.d.ts","../../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2017.d.ts","../../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2018.d.ts","../../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2019.d.ts","../../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2020.d.ts","../../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2021.d.ts","../../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2022.d.ts","../../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.dom.d.ts","../../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.dom.iterable.d.ts","../../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.dom.asynciterable.d.ts","../../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.webworker.importscripts.d.ts","../../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.scripthost.d.ts","../../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2015.core.d.ts","../../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2015.collection.d.ts","../../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2015.generator.d.ts","../../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2015.iterable.d.ts","../../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2015.promise.d.ts","../../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2015.proxy.d.ts","../../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2015.reflect.d.ts","../../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2015.symbol.d.ts","../../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2015.symbol.wellknown.d.ts","../../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2016.array.include.d.ts","../../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2016.intl.d.ts","../../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2017.arraybuffer.d.ts","../../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2017.date.d.ts","../../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2017.object.d.ts","../../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2017.sharedmemory.d.ts","../../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2017.string.d.ts","../../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2017.intl.d.ts","../../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2017.typedarrays.d.ts","../../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2018.asyncgenerator.d.ts","../../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2018.asynciterable.d.ts","../../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2018.intl.d.ts","../../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2018.promise.d.ts","../../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2018.regexp.d.ts","../../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2019.array.d.ts","../../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2019.object.d.ts","../../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2019.string.d.ts","../../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2019.symbol.d.ts","../../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2019.intl.d.ts","../../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2020.bigint.d.ts","../../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2020.date.d.ts","../../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2020.promise.d.ts","../../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2020.sharedmemory.d.ts","../../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2020.string.d.ts","../../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2020.symbol.wellknown.d.ts","../../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2020.intl.d.ts","../../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2020.number.d.ts","../../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2021.promise.d.ts","../../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2021.string.d.ts","../../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2021.weakref.d.ts","../../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2021.intl.d.ts","../../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2022.array.d.ts","../../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2022.error.d.ts","../../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2022.intl.d.ts","../../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2022.object.d.ts","../../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2022.string.d.ts","../../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2022.regexp.d.ts","../../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.decorators.d.ts","../../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.decorators.legacy.d.ts","../../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2022.full.d.ts","../../src/config.ts","../../../../node_modules/.pnpm/commander@13.1.0/node_modules/commander/typings/index.d.ts","../../../../node_modules/.pnpm/commander@13.1.0/node_modules/commander/typings/esm.d.mts","../../../../node_modules/.pnpm/node-pty@1.1.0/node_modules/node-pty/typings/node-pty.d.ts","../../../../node_modules/.pnpm/@types+node@22.19.15/node_modules/@types/node/compatibility/disposable.d.ts","../../../../node_modules/.pnpm/@types+node@22.19.15/node_modules/@types/node/compatibility/indexable.d.ts","../../../../node_modules/.pnpm/@types+node@22.19.15/node_modules/@types/node/compatibility/iterators.d.ts","../../../../node_modules/.pnpm/@types+node@22.19.15/node_modules/@types/node/compatibility/index.d.ts","../../../../node_modules/.pnpm/@types+node@22.19.15/node_modules/@types/node/globals.typedarray.d.ts","../../../../node_modules/.pnpm/@types+node@22.19.15/node_modules/@types/node/buffer.buffer.d.ts","../../../../node_modules/.pnpm/@types+node@22.19.15/node_modules/@types/node/globals.d.ts","../../../../node_modules/.pnpm/@types+node@22.19.15/node_modules/@types/node/web-globals/abortcontroller.d.ts","../../../../node_modules/.pnpm/@types+node@22.19.15/node_modules/@types/node/web-globals/domexception.d.ts","../../../../node_modules/.pnpm/@types+node@22.19.15/node_modules/@types/node/web-globals/events.d.ts","../../../../node_modules/.pnpm/buffer@5.7.1/node_modules/buffer/index.d.ts","../../../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/header.d.ts","../../../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/readable.d.ts","../../../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/file.d.ts","../../../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/fetch.d.ts","../../../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/formdata.d.ts","../../../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/connector.d.ts","../../../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/client.d.ts","../../../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/errors.d.ts","../../../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/dispatcher.d.ts","../../../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/global-dispatcher.d.ts","../../../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/global-origin.d.ts","../../../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/pool-stats.d.ts","../../../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/pool.d.ts","../../../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/handlers.d.ts","../../../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/balanced-pool.d.ts","../../../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/agent.d.ts","../../../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/mock-interceptor.d.ts","../../../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/mock-agent.d.ts","../../../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/mock-client.d.ts","../../../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/mock-pool.d.ts","../../../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/mock-errors.d.ts","../../../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/proxy-agent.d.ts","../../../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/env-http-proxy-agent.d.ts","../../../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/retry-handler.d.ts","../../../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/retry-agent.d.ts","../../../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/api.d.ts","../../../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/interceptors.d.ts","../../../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/util.d.ts","../../../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/cookies.d.ts","../../../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/patch.d.ts","../../../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/websocket.d.ts","../../../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/eventsource.d.ts","../../../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/filereader.d.ts","../../../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/diagnostics-channel.d.ts","../../../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/content-type.d.ts","../../../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/cache.d.ts","../../../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/index.d.ts","../../../../node_modules/.pnpm/@types+node@22.19.15/node_modules/@types/node/web-globals/fetch.d.ts","../../../../node_modules/.pnpm/@types+node@22.19.15/node_modules/@types/node/web-globals/navigator.d.ts","../../../../node_modules/.pnpm/@types+node@22.19.15/node_modules/@types/node/web-globals/storage.d.ts","../../../../node_modules/.pnpm/@types+node@22.19.15/node_modules/@types/node/assert.d.ts","../../../../node_modules/.pnpm/@types+node@22.19.15/node_modules/@types/node/assert/strict.d.ts","../../../../node_modules/.pnpm/@types+node@22.19.15/node_modules/@types/node/async_hooks.d.ts","../../../../node_modules/.pnpm/@types+node@22.19.15/node_modules/@types/node/buffer.d.ts","../../../../node_modules/.pnpm/@types+node@22.19.15/node_modules/@types/node/child_process.d.ts","../../../../node_modules/.pnpm/@types+node@22.19.15/node_modules/@types/node/cluster.d.ts","../../../../node_modules/.pnpm/@types+node@22.19.15/node_modules/@types/node/console.d.ts","../../../../node_modules/.pnpm/@types+node@22.19.15/node_modules/@types/node/constants.d.ts","../../../../node_modules/.pnpm/@types+node@22.19.15/node_modules/@types/node/crypto.d.ts","../../../../node_modules/.pnpm/@types+node@22.19.15/node_modules/@types/node/dgram.d.ts","../../../../node_modules/.pnpm/@types+node@22.19.15/node_modules/@types/node/diagnostics_channel.d.ts","../../../../node_modules/.pnpm/@types+node@22.19.15/node_modules/@types/node/dns.d.ts","../../../../node_modules/.pnpm/@types+node@22.19.15/node_modules/@types/node/dns/promises.d.ts","../../../../node_modules/.pnpm/@types+node@22.19.15/node_modules/@types/node/domain.d.ts","../../../../node_modules/.pnpm/@types+node@22.19.15/node_modules/@types/node/events.d.ts","../../../../node_modules/.pnpm/@types+node@22.19.15/node_modules/@types/node/fs.d.ts","../../../../node_modules/.pnpm/@types+node@22.19.15/node_modules/@types/node/fs/promises.d.ts","../../../../node_modules/.pnpm/@types+node@22.19.15/node_modules/@types/node/http.d.ts","../../../../node_modules/.pnpm/@types+node@22.19.15/node_modules/@types/node/http2.d.ts","../../../../node_modules/.pnpm/@types+node@22.19.15/node_modules/@types/node/https.d.ts","../../../../node_modules/.pnpm/@types+node@22.19.15/node_modules/@types/node/inspector.d.ts","../../../../node_modules/.pnpm/@types+node@22.19.15/node_modules/@types/node/inspector.generated.d.ts","../../../../node_modules/.pnpm/@types+node@22.19.15/node_modules/@types/node/module.d.ts","../../../../node_modules/.pnpm/@types+node@22.19.15/node_modules/@types/node/net.d.ts","../../../../node_modules/.pnpm/@types+node@22.19.15/node_modules/@types/node/os.d.ts","../../../../node_modules/.pnpm/@types+node@22.19.15/node_modules/@types/node/path.d.ts","../../../../node_modules/.pnpm/@types+node@22.19.15/node_modules/@types/node/perf_hooks.d.ts","../../../../node_modules/.pnpm/@types+node@22.19.15/node_modules/@types/node/process.d.ts","../../../../node_modules/.pnpm/@types+node@22.19.15/node_modules/@types/node/punycode.d.ts","../../../../node_modules/.pnpm/@types+node@22.19.15/node_modules/@types/node/querystring.d.ts","../../../../node_modules/.pnpm/@types+node@22.19.15/node_modules/@types/node/readline.d.ts","../../../../node_modules/.pnpm/@types+node@22.19.15/node_modules/@types/node/readline/promises.d.ts","../../../../node_modules/.pnpm/@types+node@22.19.15/node_modules/@types/node/repl.d.ts","../../../../node_modules/.pnpm/@types+node@22.19.15/node_modules/@types/node/sea.d.ts","../../../../node_modules/.pnpm/@types+node@22.19.15/node_modules/@types/node/sqlite.d.ts","../../../../node_modules/.pnpm/@types+node@22.19.15/node_modules/@types/node/stream.d.ts","../../../../node_modules/.pnpm/@types+node@22.19.15/node_modules/@types/node/stream/promises.d.ts","../../../../node_modules/.pnpm/@types+node@22.19.15/node_modules/@types/node/stream/consumers.d.ts","../../../../node_modules/.pnpm/@types+node@22.19.15/node_modules/@types/node/stream/web.d.ts","../../../../node_modules/.pnpm/@types+node@22.19.15/node_modules/@types/node/string_decoder.d.ts","../../../../node_modules/.pnpm/@types+node@22.19.15/node_modules/@types/node/test.d.ts","../../../../node_modules/.pnpm/@types+node@22.19.15/node_modules/@types/node/timers.d.ts","../../../../node_modules/.pnpm/@types+node@22.19.15/node_modules/@types/node/timers/promises.d.ts","../../../../node_modules/.pnpm/@types+node@22.19.15/node_modules/@types/node/tls.d.ts","../../../../node_modules/.pnpm/@types+node@22.19.15/node_modules/@types/node/trace_events.d.ts","../../../../node_modules/.pnpm/@types+node@22.19.15/node_modules/@types/node/tty.d.ts","../../../../node_modules/.pnpm/@types+node@22.19.15/node_modules/@types/node/url.d.ts","../../../../node_modules/.pnpm/@types+node@22.19.15/node_modules/@types/node/util.d.ts","../../../../node_modules/.pnpm/@types+node@22.19.15/node_modules/@types/node/v8.d.ts","../../../../node_modules/.pnpm/@types+node@22.19.15/node_modules/@types/node/vm.d.ts","../../../../node_modules/.pnpm/@types+node@22.19.15/node_modules/@types/node/wasi.d.ts","../../../../node_modules/.pnpm/@types+node@22.19.15/node_modules/@types/node/worker_threads.d.ts","../../../../node_modules/.pnpm/@types+node@22.19.15/node_modules/@types/node/zlib.d.ts","../../../../node_modules/.pnpm/@types+node@22.19.15/node_modules/@types/node/index.d.ts","../../../../node_modules/.pnpm/@types+ws@8.18.1/node_modules/@types/ws/index.d.mts","../../../../node_modules/.pnpm/zod@3.25.76/node_modules/zod/v3/helpers/typealiases.d.cts","../../../../node_modules/.pnpm/zod@3.25.76/node_modules/zod/v3/helpers/util.d.cts","../../../../node_modules/.pnpm/zod@3.25.76/node_modules/zod/v3/index.d.cts","../../../../node_modules/.pnpm/zod@3.25.76/node_modules/zod/v3/zoderror.d.cts","../../../../node_modules/.pnpm/zod@3.25.76/node_modules/zod/v3/locales/en.d.cts","../../../../node_modules/.pnpm/zod@3.25.76/node_modules/zod/v3/errors.d.cts","../../../../node_modules/.pnpm/zod@3.25.76/node_modules/zod/v3/helpers/parseutil.d.cts","../../../../node_modules/.pnpm/zod@3.25.76/node_modules/zod/v3/helpers/enumutil.d.cts","../../../../node_modules/.pnpm/zod@3.25.76/node_modules/zod/v3/helpers/errorutil.d.cts","../../../../node_modules/.pnpm/zod@3.25.76/node_modules/zod/v3/helpers/partialutil.d.cts","../../../../node_modules/.pnpm/zod@3.25.76/node_modules/zod/v3/standard-schema.d.cts","../../../../node_modules/.pnpm/zod@3.25.76/node_modules/zod/v3/types.d.cts","../../../../node_modules/.pnpm/zod@3.25.76/node_modules/zod/v3/external.d.cts","../../../../node_modules/.pnpm/zod@3.25.76/node_modules/zod/index.d.cts","../../../shared-protocol/src/index.ts","../../src/providers.ts","../../src/runtime/scrollback.ts","../../src/runtime/bridge-session.ts","../../src/commands/doctor.ts","../../src/commands/setup.ts","../../src/utils/lan-ip.ts","../../src/utils/daemon.ts","../../../gateway/src/sessions.ts","../../../gateway/src/pairings.ts","../../../gateway/src/relay.ts","../../../gateway/src/embedded.ts","../../src/index.ts","../../src/types/qrcode-terminal.d.ts"],"fileIdsList":[[73,119,120,122,139,140],[73,121,122,139,140],[122,139,140],[73,122,127,139,140,157],[73,122,123,128,133,139,140,142,154,165],[73,122,123,124,133,139,140,142],[73,122,139,140],[68,69,70,73,122,139,140],[73,122,125,139,140,166],[73,122,126,127,134,139,140,143],[73,122,127,139,140,154,162],[73,122,128,130,133,139,140,142],[73,121,122,129,139,140],[73,122,130,131,139,140],[73,122,132,133,139,140],[73,121,122,133,139,140],[73,122,133,134,135,139,140,154,165],[73,122,133,134,135,139,140,149,154,157],[73,115,122,130,133,136,139,140,142,154,165],[73,122,133,134,136,137,139,140,142,154,162,165],[73,122,136,138,139,140,154,162,165],[71,72,73,74,75,76,77,116,117,118,119,120,121,122,123,124,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164,165,166,167,168,169,170,171],[73,122,133,139,140],[73,122,139,140,141,165],[73,122,130,133,139,140,142,154],[73,122,139,140,143],[73,122,139,140,144],[73,121,122,139,140,145],[73,119,120,121,122,123,124,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164,165,166,167,168,169,170,171],[73,122,139,140,147],[73,122,139,140,148],[73,122,133,139,140,149,150],[73,122,139,140,149,151,166,168],[73,122,134,139,140],[73,122,133,139,140,154,155,157],[73,122,139,140,156,157],[73,122,139,140,154,155],[73,122,139,140,157],[73,122,139,140,158],[73,119,122,139,140,154,159,165],[73,122,133,139,140,160,161],[73,122,139,140,160,161],[73,122,127,139,140,142,154,162],[73,122,139,140,163],[73,122,139,140,142,164],[73,122,136,139,140,148,165],[73,122,127,139,140,166],[73,122,139,140,154,167],[73,122,139,140,141,168],[73,122,139,140,169],[73,115,122,139,140],[73,115,122,133,135,139,140,145,154,157,165,167,168,170],[73,122,139,140,154,171],[73,122,133,136,138,139,140,142,154,162,165,171,172],[65,73,122,139,140],[73,87,91,122,139,140,165],[73,87,122,139,140,154,165],[73,82,122,139,140],[73,84,87,122,139,140,162,165],[73,122,139,140,142,162],[73,122,139,140,172],[73,82,122,139,140,172],[73,84,87,122,139,140,142,165],[73,79,80,83,86,122,133,139,140,154,165],[73,87,94,122,139,140],[73,79,85,122,139,140],[73,87,108,109,122,139,140],[73,83,87,122,139,140,157,165,172],[73,108,122,139,140,172],[73,81,82,122,139,140,172],[73,87,122,139,140],[73,81,82,83,84,85,86,87,88,89,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,107,109,110,111,112,113,114,122,139,140],[73,87,102,122,139,140],[73,87,94,95,122,139,140],[73,85,87,95,96,122,139,140],[73,86,122,139,140],[73,79,82,87,122,139,140],[73,87,91,95,96,122,139,140],[73,91,122,139,140],[73,85,87,90,122,139,140,165],[73,79,84,87,94,122,139,140],[73,122,139,140,154],[73,82,87,108,122,139,140,170,172],[73,122,139,140,186],[73,122,139,140,177,178],[73,122,139,140,174,175,177,179,180,185],[73,122,139,140,175,177],[73,122,139,140,185],[73,122,139,140,177],[73,122,139,140,174,175,177,180,181,182,183,184],[73,122,139,140,174,175,176],[64,73,122,123,139,140],[64,73,122,139,140,143,149],[73,122,134,139,140,143,144],[64,66,73,122,139,140,189,191,192,193,194,195,199],[73,122,123,139,140],[67,73,122,139,140,143,173,188,189,190,201],[73,122,139,140,188],[73,122,123,134,139,140,143,144],[73,122,127,136,139,140,173,187,188,196,197,198],[73,122,127,139,140],[73,122,139,140,173,188,196],[73,122,139,140,173,188],[73,122,139,140,187]],"fileInfos":[{"version":"c430d44666289dae81f30fa7b2edebf186ecc91a2d4c71266ea6ae76388792e1","affectsGlobalScope":true,"impliedFormat":1},{"version":"45b7ab580deca34ae9729e97c13cfd999df04416a79116c3bfb483804f85ded4","impliedFormat":1},{"version":"3facaf05f0c5fc569c5649dd359892c98a85557e3e0c847964caeb67076f4d75","impliedFormat":1},{"version":"e44bb8bbac7f10ecc786703fe0a6a4b952189f908707980ba8f3c8975a760962","impliedFormat":1},{"version":"5e1c4c362065a6b95ff952c0eab010f04dcd2c3494e813b493ecfd4fcb9fc0d8","impliedFormat":1},{"version":"68d73b4a11549f9c0b7d352d10e91e5dca8faa3322bfb77b661839c42b1ddec7","impliedFormat":1},{"version":"5efce4fc3c29ea84e8928f97adec086e3dc876365e0982cc8479a07954a3efd4","impliedFormat":1},{"version":"feecb1be483ed332fad555aff858affd90a48ab19ba7272ee084704eb7167569","impliedFormat":1},{"version":"ee7bad0c15b58988daa84371e0b89d313b762ab83cb5b31b8a2d1162e8eb41c2","impliedFormat":1},{"version":"080941d9f9ff9307f7e27a83bcd888b7c8270716c39af943532438932ec1d0b9","affectsGlobalScope":true,"impliedFormat":1},{"version":"2e80ee7a49e8ac312cc11b77f1475804bee36b3b2bc896bead8b6e1266befb43","affectsGlobalScope":true,"impliedFormat":1},{"version":"d7a3c8b952931daebdfc7a2897c53c0a1c73624593fa070e46bd537e64dcd20a","affectsGlobalScope":true,"impliedFormat":1},{"version":"80e18897e5884b6723488d4f5652167e7bb5024f946743134ecc4aa4ee731f89","affectsGlobalScope":true,"impliedFormat":1},{"version":"cd034f499c6cdca722b60c04b5b1b78e058487a7085a8e0d6fb50809947ee573","affectsGlobalScope":true,"impliedFormat":1},{"version":"c57796738e7f83dbc4b8e65132f11a377649c00dd3eee333f672b8f0a6bea671","affectsGlobalScope":true,"impliedFormat":1},{"version":"dc2df20b1bcdc8c2d34af4926e2c3ab15ffe1160a63e58b7e09833f616efff44","affectsGlobalScope":true,"impliedFormat":1},{"version":"515d0b7b9bea2e31ea4ec968e9edd2c39d3eebf4a2d5cbd04e88639819ae3b71","affectsGlobalScope":true,"impliedFormat":1},{"version":"0559b1f683ac7505ae451f9a96ce4c3c92bdc71411651ca6ddb0e88baaaad6a3","affectsGlobalScope":true,"impliedFormat":1},{"version":"0dc1e7ceda9b8b9b455c3a2d67b0412feab00bd2f66656cd8850e8831b08b537","affectsGlobalScope":true,"impliedFormat":1},{"version":"ce691fb9e5c64efb9547083e4a34091bcbe5bdb41027e310ebba8f7d96a98671","affectsGlobalScope":true,"impliedFormat":1},{"version":"8d697a2a929a5fcb38b7a65594020fcef05ec1630804a33748829c5ff53640d0","affectsGlobalScope":true,"impliedFormat":1},{"version":"4ff2a353abf8a80ee399af572debb8faab2d33ad38c4b4474cff7f26e7653b8d","affectsGlobalScope":true,"impliedFormat":1},{"version":"fb0f136d372979348d59b3f5020b4cdb81b5504192b1cacff5d1fbba29378aa1","affectsGlobalScope":true,"impliedFormat":1},{"version":"d15bea3d62cbbdb9797079416b8ac375ae99162a7fba5de2c6c505446486ac0a","affectsGlobalScope":true,"impliedFormat":1},{"version":"68d18b664c9d32a7336a70235958b8997ebc1c3b8505f4f1ae2b7e7753b87618","affectsGlobalScope":true,"impliedFormat":1},{"version":"eb3d66c8327153d8fa7dd03f9c58d351107fe824c79e9b56b462935176cdf12a","affectsGlobalScope":true,"impliedFormat":1},{"version":"38f0219c9e23c915ef9790ab1d680440d95419ad264816fa15009a8851e79119","affectsGlobalScope":true,"impliedFormat":1},{"version":"69ab18c3b76cd9b1be3d188eaf8bba06112ebbe2f47f6c322b5105a6fbc45a2e","affectsGlobalScope":true,"impliedFormat":1},{"version":"a680117f487a4d2f30ea46f1b4b7f58bef1480456e18ba53ee85c2746eeca012","affectsGlobalScope":true,"impliedFormat":1},{"version":"2f11ff796926e0832f9ae148008138ad583bd181899ab7dd768a2666700b1893","affectsGlobalScope":true,"impliedFormat":1},{"version":"4de680d5bb41c17f7f68e0419412ca23c98d5749dcaaea1896172f06435891fc","affectsGlobalScope":true,"impliedFormat":1},{"version":"954296b30da6d508a104a3a0b5d96b76495c709785c1d11610908e63481ee667","affectsGlobalScope":true,"impliedFormat":1},{"version":"ac9538681b19688c8eae65811b329d3744af679e0bdfa5d842d0e32524c73e1c","affectsGlobalScope":true,"impliedFormat":1},{"version":"0a969edff4bd52585473d24995c5ef223f6652d6ef46193309b3921d65dd4376","affectsGlobalScope":true,"impliedFormat":1},{"version":"9e9fbd7030c440b33d021da145d3232984c8bb7916f277e8ffd3dc2e3eae2bdb","affectsGlobalScope":true,"impliedFormat":1},{"version":"811ec78f7fefcabbda4bfa93b3eb67d9ae166ef95f9bff989d964061cbf81a0c","affectsGlobalScope":true,"impliedFormat":1},{"version":"717937616a17072082152a2ef351cb51f98802fb4b2fdabd32399843875974ca","affectsGlobalScope":true,"impliedFormat":1},{"version":"d7e7d9b7b50e5f22c915b525acc5a49a7a6584cf8f62d0569e557c5cfc4b2ac2","affectsGlobalScope":true,"impliedFormat":1},{"version":"71c37f4c9543f31dfced6c7840e068c5a5aacb7b89111a4364b1d5276b852557","affectsGlobalScope":true,"impliedFormat":1},{"version":"576711e016cf4f1804676043e6a0a5414252560eb57de9faceee34d79798c850","affectsGlobalScope":true,"impliedFormat":1},{"version":"89c1b1281ba7b8a96efc676b11b264de7a8374c5ea1e6617f11880a13fc56dc6","affectsGlobalScope":true,"impliedFormat":1},{"version":"74f7fa2d027d5b33eb0471c8e82a6c87216223181ec31247c357a3e8e2fddc5b","affectsGlobalScope":true,"impliedFormat":1},{"version":"d6d7ae4d1f1f3772e2a3cde568ed08991a8ae34a080ff1151af28b7f798e22ca","affectsGlobalScope":true,"impliedFormat":1},{"version":"063600664504610fe3e99b717a1223f8b1900087fab0b4cad1496a114744f8df","affectsGlobalScope":true,"impliedFormat":1},{"version":"934019d7e3c81950f9a8426d093458b65d5aff2c7c1511233c0fd5b941e608ab","affectsGlobalScope":true,"impliedFormat":1},{"version":"52ada8e0b6e0482b728070b7639ee42e83a9b1c22d205992756fe020fd9f4a47","affectsGlobalScope":true,"impliedFormat":1},{"version":"3bdefe1bfd4d6dee0e26f928f93ccc128f1b64d5d501ff4a8cf3c6371200e5e6","affectsGlobalScope":true,"impliedFormat":1},{"version":"59fb2c069260b4ba00b5643b907ef5d5341b167e7d1dbf58dfd895658bda2867","affectsGlobalScope":true,"impliedFormat":1},{"version":"639e512c0dfc3fad96a84caad71b8834d66329a1f28dc95e3946c9b58176c73a","affectsGlobalScope":true,"impliedFormat":1},{"version":"368af93f74c9c932edd84c58883e736c9e3d53cec1fe24c0b0ff451f529ceab1","affectsGlobalScope":true,"impliedFormat":1},{"version":"af3dd424cf267428f30ccfc376f47a2c0114546b55c44d8c0f1d57d841e28d74","affectsGlobalScope":true,"impliedFormat":1},{"version":"995c005ab91a498455ea8dfb63aa9f83fa2ea793c3d8aa344be4a1678d06d399","affectsGlobalScope":true,"impliedFormat":1},{"version":"959d36cddf5e7d572a65045b876f2956c973a586da58e5d26cde519184fd9b8a","affectsGlobalScope":true,"impliedFormat":1},{"version":"965f36eae237dd74e6cca203a43e9ca801ce38824ead814728a2807b1910117d","affectsGlobalScope":true,"impliedFormat":1},{"version":"3925a6c820dcb1a06506c90b1577db1fdbf7705d65b62b99dce4be75c637e26b","affectsGlobalScope":true,"impliedFormat":1},{"version":"0a3d63ef2b853447ec4f749d3f368ce642264246e02911fcb1590d8c161b8005","affectsGlobalScope":true,"impliedFormat":1},{"version":"8cdf8847677ac7d20486e54dd3fcf09eda95812ac8ace44b4418da1bbbab6eb8","affectsGlobalScope":true,"impliedFormat":1},{"version":"8444af78980e3b20b49324f4a16ba35024fef3ee069a0eb67616ea6ca821c47a","affectsGlobalScope":true,"impliedFormat":1},{"version":"3287d9d085fbd618c3971944b65b4be57859f5415f495b33a6adc994edd2f004","affectsGlobalScope":true,"impliedFormat":1},{"version":"b4b67b1a91182421f5df999988c690f14d813b9850b40acd06ed44691f6727ad","affectsGlobalScope":true,"impliedFormat":1},{"version":"8e7f8264d0fb4c5339605a15daadb037bf238c10b654bb3eee14208f860a32ea","affectsGlobalScope":true,"impliedFormat":1},{"version":"782dec38049b92d4e85c1585fbea5474a219c6984a35b004963b00beb1aab538","affectsGlobalScope":true,"impliedFormat":1},{"version":"3cbad9a1ba4453443026ed38e4b8be018abb26565fa7c944376463ad9df07c41","impliedFormat":1},{"version":"1327f0b7c04b6a100701154ae1187bb53e36216ee56863f4eb6b4a3c8286dc5e","signature":"52ef6bb9bda49ae5c2e395c9405f24876f2f9dd6b3ff8e8dbe644db4e3be6c76","impliedFormat":99},{"version":"f70c407d79749859db326d714554c92b6f46bbf00bfdb40a1e2e6f705baa52a0","impliedFormat":1},{"version":"b124c0624b15412ace7d54644ade38d7a69db7e25488a1a4d2a8df6e11696538","impliedFormat":99},{"version":"4bb071c41f8f9aaa3e1691c8c84873fa38a3067161ac0d22f085577a9e483be0","impliedFormat":1},{"version":"6c7176368037af28cb72f2392010fa1cef295d6d6744bca8cfb54985f3a18c3e","affectsGlobalScope":true,"impliedFormat":1},{"version":"ab41ef1f2cdafb8df48be20cd969d875602483859dc194e9c97c8a576892c052","affectsGlobalScope":true,"impliedFormat":1},{"version":"437e20f2ba32abaeb7985e0afe0002de1917bc74e949ba585e49feba65da6ca1","affectsGlobalScope":true,"impliedFormat":1},{"version":"21d819c173c0cf7cc3ce57c3276e77fd9a8a01d35a06ad87158781515c9a438a","impliedFormat":1},{"version":"98cffbf06d6bab333473c70a893770dbe990783904002c4f1a960447b4b53dca","affectsGlobalScope":true,"impliedFormat":1},{"version":"3af97acf03cc97de58a3a4bc91f8f616408099bc4233f6d0852e72a8ffb91ac9","affectsGlobalScope":true,"impliedFormat":1},{"version":"808069bba06b6768b62fd22429b53362e7af342da4a236ed2d2e1c89fcca3b4a","affectsGlobalScope":true,"impliedFormat":1},{"version":"1db0b7dca579049ca4193d034d835f6bfe73096c73663e5ef9a0b5779939f3d0","affectsGlobalScope":true,"impliedFormat":1},{"version":"9798340ffb0d067d69b1ae5b32faa17ab31b82466a3fc00d8f2f2df0c8554aaa","affectsGlobalScope":true,"impliedFormat":1},{"version":"f26b11d8d8e4b8028f1c7d618b22274c892e4b0ef5b3678a8ccbad85419aef43","affectsGlobalScope":true,"impliedFormat":1},{"version":"8e9c23ba78aabc2e0a27033f18737a6df754067731e69dc5f52823957d60a4b6","impliedFormat":1},{"version":"5929864ce17fba74232584d90cb721a89b7ad277220627cc97054ba15a98ea8f","impliedFormat":1},{"version":"763fe0f42b3d79b440a9b6e51e9ba3f3f91352469c1e4b3b67bfa4ff6352f3f4","impliedFormat":1},{"version":"25c8056edf4314820382a5fdb4bb7816999acdcb929c8f75e3f39473b87e85bc","impliedFormat":1},{"version":"c464d66b20788266e5353b48dc4aa6bc0dc4a707276df1e7152ab0c9ae21fad8","impliedFormat":1},{"version":"78d0d27c130d35c60b5e5566c9f1e5be77caf39804636bc1a40133919a949f21","impliedFormat":1},{"version":"c6fd2c5a395f2432786c9cb8deb870b9b0e8ff7e22c029954fabdd692bff6195","impliedFormat":1},{"version":"1d6e127068ea8e104a912e42fc0a110e2aa5a66a356a917a163e8cf9a65e4a75","impliedFormat":1},{"version":"5ded6427296cdf3b9542de4471d2aa8d3983671d4cac0f4bf9c637208d1ced43","impliedFormat":1},{"version":"7f182617db458e98fc18dfb272d40aa2fff3a353c44a89b2c0ccb3937709bfb5","impliedFormat":1},{"version":"cadc8aced301244057c4e7e73fbcae534b0f5b12a37b150d80e5a45aa4bebcbd","impliedFormat":1},{"version":"385aab901643aa54e1c36f5ef3107913b10d1b5bb8cbcd933d4263b80a0d7f20","impliedFormat":1},{"version":"9670d44354bab9d9982eca21945686b5c24a3f893db73c0dae0fd74217a4c219","impliedFormat":1},{"version":"0b8a9268adaf4da35e7fa830c8981cfa22adbbe5b3f6f5ab91f6658899e657a7","impliedFormat":1},{"version":"11396ed8a44c02ab9798b7dca436009f866e8dae3c9c25e8c1fbc396880bf1bb","impliedFormat":1},{"version":"ba7bc87d01492633cb5a0e5da8a4a42a1c86270e7b3d2dea5d156828a84e4882","impliedFormat":1},{"version":"4893a895ea92c85345017a04ed427cbd6a1710453338df26881a6019432febdd","impliedFormat":1},{"version":"c21dc52e277bcfc75fac0436ccb75c204f9e1b3fa5e12729670910639f27343e","impliedFormat":1},{"version":"13f6f39e12b1518c6650bbb220c8985999020fe0f21d818e28f512b7771d00f9","impliedFormat":1},{"version":"9b5369969f6e7175740bf51223112ff209f94ba43ecd3bb09eefff9fd675624a","impliedFormat":1},{"version":"4fe9e626e7164748e8769bbf74b538e09607f07ed17c2f20af8d680ee49fc1da","impliedFormat":1},{"version":"24515859bc0b836719105bb6cc3d68255042a9f02a6022b3187948b204946bd2","impliedFormat":1},{"version":"ea0148f897b45a76544ae179784c95af1bd6721b8610af9ffa467a518a086a43","impliedFormat":1},{"version":"24c6a117721e606c9984335f71711877293a9651e44f59f3d21c1ea0856f9cc9","impliedFormat":1},{"version":"dd3273ead9fbde62a72949c97dbec2247ea08e0c6952e701a483d74ef92d6a17","impliedFormat":1},{"version":"405822be75ad3e4d162e07439bac80c6bcc6dbae1929e179cf467ec0b9ee4e2e","impliedFormat":1},{"version":"0db18c6e78ea846316c012478888f33c11ffadab9efd1cc8bcc12daded7a60b6","impliedFormat":1},{"version":"e61be3f894b41b7baa1fbd6a66893f2579bfad01d208b4ff61daef21493ef0a8","impliedFormat":1},{"version":"bd0532fd6556073727d28da0edfd1736417a3f9f394877b6d5ef6ad88fba1d1a","impliedFormat":1},{"version":"89167d696a849fce5ca508032aabfe901c0868f833a8625d5a9c6e861ef935d2","impliedFormat":1},{"version":"615ba88d0128ed16bf83ef8ccbb6aff05c3ee2db1cc0f89ab50a4939bfc1943f","impliedFormat":1},{"version":"a4d551dbf8746780194d550c88f26cf937caf8d56f102969a110cfaed4b06656","impliedFormat":1},{"version":"8bd86b8e8f6a6aa6c49b71e14c4ffe1211a0e97c80f08d2c8cc98838006e4b88","impliedFormat":1},{"version":"317e63deeb21ac07f3992f5b50cdca8338f10acd4fbb7257ebf56735bf52ab00","impliedFormat":1},{"version":"4732aec92b20fb28c5fe9ad99521fb59974289ed1e45aecb282616202184064f","impliedFormat":1},{"version":"2e85db9e6fd73cfa3d7f28e0ab6b55417ea18931423bd47b409a96e4a169e8e6","impliedFormat":1},{"version":"c46e079fe54c76f95c67fb89081b3e399da2c7d109e7dca8e4b58d83e332e605","impliedFormat":1},{"version":"bf67d53d168abc1298888693338cb82854bdb2e69ef83f8a0092093c2d562107","impliedFormat":1},{"version":"b52476feb4a0cbcb25e5931b930fc73cb6643fb1a5060bf8a3dda0eeae5b4b68","affectsGlobalScope":true,"impliedFormat":1},{"version":"f9501cc13ce624c72b61f12b3963e84fad210fbdf0ffbc4590e08460a3f04eba","affectsGlobalScope":true,"impliedFormat":1},{"version":"e7721c4f69f93c91360c26a0a84ee885997d748237ef78ef665b153e622b36c1","affectsGlobalScope":true,"impliedFormat":1},{"version":"0fa06ada475b910e2106c98c68b10483dc8811d0c14a8a8dd36efb2672485b29","impliedFormat":1},{"version":"33e5e9aba62c3193d10d1d33ae1fa75c46a1171cf76fef750777377d53b0303f","impliedFormat":1},{"version":"2b06b93fd01bcd49d1a6bd1f9b65ddcae6480b9a86e9061634d6f8e354c1468f","impliedFormat":1},{"version":"6a0cd27e5dc2cfbe039e731cf879d12b0e2dded06d1b1dedad07f7712de0d7f4","affectsGlobalScope":true,"impliedFormat":1},{"version":"13f5c844119c43e51ce777c509267f14d6aaf31eafb2c2b002ca35584cd13b29","impliedFormat":1},{"version":"e60477649d6ad21542bd2dc7e3d9ff6853d0797ba9f689ba2f6653818999c264","impliedFormat":1},{"version":"c2510f124c0293ab80b1777c44d80f812b75612f297b9857406468c0f4dafe29","affectsGlobalScope":true,"impliedFormat":1},{"version":"5524481e56c48ff486f42926778c0a3cce1cc85dc46683b92b1271865bcf015a","impliedFormat":1},{"version":"4c829ab315f57c5442c6667b53769975acbf92003a66aef19bce151987675bd1","affectsGlobalScope":true,"impliedFormat":1},{"version":"b2ade7657e2db96d18315694789eff2ddd3d8aea7215b181f8a0b303277cc579","impliedFormat":1},{"version":"9855e02d837744303391e5623a531734443a5f8e6e8755e018c41d63ad797db2","impliedFormat":1},{"version":"4d631b81fa2f07a0e63a9a143d6a82c25c5f051298651a9b69176ba28930756d","impliedFormat":1},{"version":"836a356aae992ff3c28a0212e3eabcb76dd4b0cc06bcb9607aeef560661b860d","impliedFormat":1},{"version":"1e0d1f8b0adfa0b0330e028c7941b5a98c08b600efe7f14d2d2a00854fb2f393","impliedFormat":1},{"version":"41670ee38943d9cbb4924e436f56fc19ee94232bc96108562de1a734af20dc2c","affectsGlobalScope":true,"impliedFormat":1},{"version":"c906fb15bd2aabc9ed1e3f44eb6a8661199d6c320b3aa196b826121552cb3695","impliedFormat":1},{"version":"22295e8103f1d6d8ea4b5d6211e43421fe4564e34d0dd8e09e520e452d89e659","impliedFormat":1},{"version":"58647d85d0f722a1ce9de50955df60a7489f0593bf1a7015521efe901c06d770","impliedFormat":1},{"version":"6b4e081d55ac24fc8a4631d5dd77fe249fa25900abd7d046abb87d90e3b45645","impliedFormat":1},{"version":"a10f0e1854f3316d7ee437b79649e5a6ae3ae14ffe6322b02d4987071a95362e","impliedFormat":1},{"version":"e208f73ef6a980104304b0d2ca5f6bf1b85de6009d2c7e404028b875020fa8f2","impliedFormat":1},{"version":"d163b6bc2372b4f07260747cbc6c0a6405ab3fbcea3852305e98ac43ca59f5bc","impliedFormat":1},{"version":"e6fa9ad47c5f71ff733744a029d1dc472c618de53804eae08ffc243b936f87ff","affectsGlobalScope":true,"impliedFormat":1},{"version":"83e63d6ccf8ec004a3bb6d58b9bb0104f60e002754b1e968024b320730cc5311","impliedFormat":1},{"version":"24826ed94a78d5c64bd857570fdbd96229ad41b5cb654c08d75a9845e3ab7dde","impliedFormat":1},{"version":"8b479a130ccb62e98f11f136d3ac80f2984fdc07616516d29881f3061f2dd472","impliedFormat":1},{"version":"928af3d90454bf656a52a48679f199f64c1435247d6189d1caf4c68f2eaf921f","affectsGlobalScope":true,"impliedFormat":1},{"version":"bceb58df66ab8fb00170df20cd813978c5ab84be1d285710c4eb005d8e9d8efb","affectsGlobalScope":true,"impliedFormat":1},{"version":"3f16a7e4deafa527ed9995a772bb380eb7d3c2c0fd4ae178c5263ed18394db2c","impliedFormat":1},{"version":"933921f0bb0ec12ef45d1062a1fc0f27635318f4d294e4d99de9a5493e618ca2","impliedFormat":1},{"version":"71a0f3ad612c123b57239a7749770017ecfe6b66411488000aba83e4546fde25","impliedFormat":1},{"version":"77fbe5eecb6fac4b6242bbf6eebfc43e98ce5ccba8fa44e0ef6a95c945ff4d98","impliedFormat":1},{"version":"4f9d8ca0c417b67b69eeb54c7ca1bedd7b56034bb9bfd27c5d4f3bc4692daca7","impliedFormat":1},{"version":"814118df420c4e38fe5ae1b9a3bafb6e9c2aa40838e528cde908381867be6466","impliedFormat":1},{"version":"a3fc63c0d7b031693f665f5494412ba4b551fe644ededccc0ab5922401079c95","impliedFormat":1},{"version":"f27524f4bef4b6519c604bdb23bf4465bddcccbf3f003abb901acbd0d7404d99","impliedFormat":1},{"version":"37ba7b45141a45ce6e80e66f2a96c8a5ab1bcef0fc2d0f56bb58df96ec67e972","impliedFormat":1},{"version":"45650f47bfb376c8a8ed39d4bcda5902ab899a3150029684ee4c10676d9fbaee","impliedFormat":1},{"version":"6b039f55681caaf111d5eb84d292b9bee9e0131d0db1ad0871eef0964f533c73","affectsGlobalScope":true,"impliedFormat":1},{"version":"18fd40412d102c5564136f29735e5d1c3b455b8a37f920da79561f1fde068208","impliedFormat":1},{"version":"c8d3e5a18ba35629954e48c4cc8f11dc88224650067a172685c736b27a34a4dc","impliedFormat":1},{"version":"f0be1b8078cd549d91f37c30c222c2a187ac1cf981d994fb476a1adc61387b14","affectsGlobalScope":true,"impliedFormat":1},{"version":"0aaed1d72199b01234152f7a60046bc947f1f37d78d182e9ae09c4289e06a592","impliedFormat":1},{"version":"2b55d426ff2b9087485e52ac4bc7cfafe1dc420fc76dad926cd46526567c501a","impliedFormat":1},{"version":"66ba1b2c3e3a3644a1011cd530fb444a96b1b2dfe2f5e837a002d41a1a799e60","impliedFormat":1},{"version":"7e514f5b852fdbc166b539fdd1f4e9114f29911592a5eb10a94bb3a13ccac3c4","impliedFormat":1},{"version":"5b7aa3c4c1a5d81b411e8cb302b45507fea9358d3569196b27eb1a27ae3a90ef","affectsGlobalScope":true,"impliedFormat":1},{"version":"5987a903da92c7462e0b35704ce7da94d7fdc4b89a984871c0e2b87a8aae9e69","affectsGlobalScope":true,"impliedFormat":1},{"version":"ea08a0345023ade2b47fbff5a76d0d0ed8bff10bc9d22b83f40858a8e941501c","impliedFormat":1},{"version":"47613031a5a31510831304405af561b0ffaedb734437c595256bb61a90f9311b","impliedFormat":1},{"version":"ae062ce7d9510060c5d7e7952ae379224fb3f8f2dd74e88959878af2057c143b","impliedFormat":1},{"version":"8a1a0d0a4a06a8d278947fcb66bf684f117bf147f89b06e50662d79a53be3e9f","affectsGlobalScope":true,"impliedFormat":1},{"version":"358765d5ea8afd285d4fd1532e78b88273f18cb3f87403a9b16fef61ac9fdcfe","impliedFormat":1},{"version":"9f55299850d4f0921e79b6bf344b47c420ce0f507b9dcf593e532b09ea7eeea1","impliedFormat":1},{"version":"316f1486e15cbf7896425f0a16dfe12d447dd57cfb3244b8b119c77df870858f","impliedFormat":99},{"version":"d3cfde44f8089768ebb08098c96d01ca260b88bccf238d55eee93f1c620ff5a5","impliedFormat":1},{"version":"293eadad9dead44c6fd1db6de552663c33f215c55a1bfa2802a1bceed88ff0ec","impliedFormat":1},{"version":"833e92c058d033cde3f29a6c7603f517001d1ddd8020bc94d2067a3bc69b2a8e","impliedFormat":1},{"version":"08b2fae7b0f553ad9f79faec864b179fc58bc172e295a70943e8585dd85f600c","impliedFormat":1},{"version":"f12edf1672a94c578eca32216839604f1e1c16b40a1896198deabf99c882b340","impliedFormat":1},{"version":"e3498cf5e428e6c6b9e97bd88736f26d6cf147dedbfa5a8ad3ed8e05e059af8a","impliedFormat":1},{"version":"dba3f34531fd9b1b6e072928b6f885aa4d28dd6789cbd0e93563d43f4b62da53","impliedFormat":1},{"version":"f672c876c1a04a223cf2023b3d91e8a52bb1544c576b81bf64a8fec82be9969c","impliedFormat":1},{"version":"e4b03ddcf8563b1c0aee782a185286ed85a255ce8a30df8453aade2188bbc904","impliedFormat":1},{"version":"2329d90062487e1eaca87b5e06abcbbeeecf80a82f65f949fd332cfcf824b87b","impliedFormat":1},{"version":"25b3f581e12ede11e5739f57a86e8668fbc0124f6649506def306cad2c59d262","impliedFormat":1},{"version":"4fdb529707247a1a917a4626bfb6a293d52cd8ee57ccf03830ec91d39d606d6d","impliedFormat":1},{"version":"a9ebb67d6bbead6044b43714b50dcb77b8f7541ffe803046fdec1714c1eba206","impliedFormat":1},{"version":"5780b706cece027f0d4444fbb4e1af62dc51e19da7c3d3719f67b22b033859b9","impliedFormat":1},{"version":"3e2857352d6d2d65e6f666a50fc7ab382dc8c3d1446c48a741682a6b88e112a5","signature":"4f1612a744aa11e31f92a9515d306a94f6c62db2192460b934158aa6c294e1ba","impliedFormat":99},{"version":"b5379f02cd546bb6e5d72e562f730c8704fb2b2221be15e39c5fc424c7f0d766","signature":"ce7262e7b77d1a64525083da04939aad88532346b00cd11b0dd4e50abdbc6c52","impliedFormat":99},{"version":"750e371b7364f2f78bf9fd992c3ae908731c7d40a48ab8b8ddeda5a5cb04c1ff","signature":"c9073ab45ac91acd005072b3520523913779c589d6a1c3bd0e0c61aaba7ad54b","impliedFormat":99},{"version":"45233981b2abc6d1534e2b2b6c40dc9276629ba52439900170822af07b7c1c29","signature":"06d338f5ade78472a29723b4aa5af1071883fc4dea043729422b9030e7efb3c8","impliedFormat":99},{"version":"c254bfc1140ffad7755d44cf76281eb7e9631af5fe797f4f77921bbca94a0c7f","signature":"6460c7a64995b2db8a8b0582f0f54fb6d378fc969e724a20114b5e9f49c29394","impliedFormat":99},{"version":"58f0eca379fff051124510988bf826fef3437fb690eb8079931a1fc67c1a38c5","signature":"db48891a080caad287e85f972f25ea31139a09d5e4397d34339f4cabf785d24e","impliedFormat":99},{"version":"656e44e6d9f20e26d3680d4d75b1a287ac9e6ba5fefae4dfee00967276c66a11","signature":"5e35740321335d68c3e6f4801590422524437bc8fd9d15a17e8af24cc4e6a272","impliedFormat":99},{"version":"2abc076372e82881a59b41f7609893245ea0d85cfed334045549c1af402077b0","signature":"52e45382fa92fab0d460cad79e4f63f6fb037b08df36cc31f1d7f47816b1f097","impliedFormat":99},{"version":"13094819098c9c2f89bf3621bed7408cab0044a5348be341d936bbe369db1f2d","impliedFormat":99},{"version":"9cb164d125a745174029d574e951114f97783cd96d41b8871b35dc78db3027c2","impliedFormat":99},{"version":"de1fd66aaab7983dad00b60810608449da0e23239ed33e551204f6a7fc27b086","impliedFormat":99},{"version":"35be465478f940349145626295ffa6206600a80d53541dcb348741d99eb1dbb1","impliedFormat":99},{"version":"d79f0636300f5a916cf87d860bd06679278f451f1afb1ddf2eca6c2375e000b6","signature":"43e818adf60173644896298637f47b01d5819b17eda46eaa32d0c7d64724d012","impliedFormat":99},{"version":"11d2698b637a8f2e699650075a01d9d66d776d50d48dce0965dedec8ceac192a","impliedFormat":99}],"root":[64,[188,195],200,201],"options":{"composite":true,"declaration":true,"esModuleInterop":true,"module":199,"noImplicitOverride":true,"noUncheckedIndexedAccess":true,"outDir":"..","rootDir":"../../..","skipLibCheck":true,"sourceMap":true,"strict":true,"target":9},"referencedMap":[[119,1],[120,1],[121,2],[73,3],[122,4],[123,5],[124,6],[68,7],[71,8],[69,7],[70,7],[125,9],[126,10],[127,11],[128,12],[129,13],[130,14],[131,14],[132,15],[133,16],[134,17],[135,18],[74,7],[72,7],[136,19],[137,20],[138,21],[172,22],[139,23],[140,7],[141,24],[142,25],[143,26],[144,27],[145,28],[146,29],[147,30],[148,31],[149,32],[150,32],[151,33],[152,7],[153,34],[154,35],[156,36],[155,37],[157,38],[158,39],[159,40],[160,41],[161,42],[162,43],[163,44],[164,45],[165,46],[166,47],[167,48],[168,49],[169,50],[75,7],[76,7],[77,7],[116,51],[117,7],[118,7],[170,52],[171,53],[173,54],[78,7],[66,55],[65,7],[67,7],[61,7],[62,7],[12,7],[10,7],[11,7],[16,7],[15,7],[2,7],[17,7],[18,7],[19,7],[20,7],[21,7],[22,7],[23,7],[24,7],[3,7],[25,7],[26,7],[4,7],[27,7],[31,7],[28,7],[29,7],[30,7],[32,7],[33,7],[34,7],[5,7],[35,7],[36,7],[37,7],[38,7],[6,7],[42,7],[39,7],[40,7],[41,7],[43,7],[7,7],[44,7],[49,7],[50,7],[45,7],[46,7],[47,7],[48,7],[8,7],[54,7],[51,7],[52,7],[53,7],[55,7],[9,7],[56,7],[63,7],[57,7],[58,7],[60,7],[59,7],[1,7],[14,7],[13,7],[94,56],[104,57],[93,56],[114,58],[85,59],[84,60],[113,61],[107,62],[112,63],[87,64],[101,65],[86,66],[110,67],[82,68],[81,61],[111,69],[83,70],[88,71],[89,7],[92,71],[79,7],[115,72],[105,73],[96,74],[97,75],[99,76],[95,77],[98,78],[108,61],[90,79],[91,80],[100,81],[80,82],[103,73],[102,71],[106,7],[109,83],[187,84],[179,85],[186,86],[181,7],[182,7],[180,87],[183,88],[174,7],[175,7],[176,84],[178,89],[184,7],[185,90],[177,91],[192,92],[193,93],[64,94],[200,95],[189,96],[191,97],[190,98],[201,7],[195,99],[194,26],[199,100],[197,101],[198,102],[196,103],[188,104]],"emitSignatures":[[188,"ff785035bc223e88e85148ab6e53bb67f1bde64f5da7fe7aa52aa21c80a07aa6"]],"latestChangedDtsFile":"./src/utils/daemon.d.ts","version":"5.9.3"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "linkshell-cli",
3
- "version": "0.1.7",
3
+ "version": "0.1.9",
4
4
  "description": "Remote terminal bridge for Claude Code / Codex — control from your phone",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
package/src/index.ts CHANGED
@@ -15,42 +15,67 @@ program
15
15
  .description(
16
16
  "Bridge a local Claude/Codex terminal session to a remote gateway",
17
17
  )
18
- .version("0.1.7");
18
+ .version("0.1.9");
19
+
20
+ // ── start ───────────────────────────────────────────────────────────
19
21
 
20
22
  program
21
23
  .command("start")
22
- .description("Start a bridge session")
23
- .option("--gateway <url>", "Gateway websocket URL (omit to start built-in gateway)", config.gateway)
24
- .option(
25
- "--pairing-gateway <url-or-host>",
26
- "Public HTTP gateway used in QR/deep link output",
27
- config.pairingGateway,
28
- )
29
- .option("--port <port>", "Port for built-in gateway (default: 8787)", "8787")
24
+ .description("Start a bridge session (with built-in or remote gateway)")
25
+ .option("--gateway <url>", "Gateway websocket URL (omit to start built-in gateway)", config.gateway ?? undefined)
26
+ .option("--pairing-gateway <url-or-host>", "Public HTTP gateway used in QR/deep link output", config.pairingGateway)
27
+ .option("--port <port>", "Port for built-in gateway", "8787")
30
28
  .option("--session-id <id>", "Session identifier (auto-created if omitted)")
31
- .option(
32
- "--provider <provider>",
33
- "claude | codex | custom",
34
- config.provider ?? "claude",
35
- )
29
+ .option("--provider <provider>", "claude | codex | custom", config.provider ?? "claude")
36
30
  .option("--command <command>", "Override provider executable", config.command)
37
- .option(
38
- "--client-name <name>",
39
- "Display name for this CLI",
40
- config.clientName ?? "local-cli",
41
- )
42
- .option(
43
- "--cols <cols>",
44
- "Initial terminal columns",
45
- String(config.cols ?? 120),
46
- )
31
+ .option("--client-name <name>", "Display name for this CLI", config.clientName ?? "local-cli")
32
+ .option("--cols <cols>", "Initial terminal columns", String(config.cols ?? 120))
47
33
  .option("--rows <rows>", "Initial terminal rows", String(config.rows ?? 36))
34
+ .option("--daemon", "Run in background (detached)")
48
35
  .option("--verbose", "Enable verbose logging")
36
+ .option("--_foreground-bridge", undefined) // internal
49
37
  .allowUnknownOption(true)
50
38
  .action(async (options, command) => {
51
- const passthroughArgs = command.args.filter(
52
- (value: string) => value !== "--",
53
- );
39
+ const daemon = await import("./utils/daemon.js");
40
+
41
+ // Daemon mode: spawn detached child and exit
42
+ if (options.daemon && !options._foregroundBridge) {
43
+ const existingPid = daemon.readPid("bridge");
44
+ if (existingPid) {
45
+ process.stderr.write(` Bridge already running (PID ${existingPid})\n`);
46
+ process.stderr.write(` Run: linkshell stop\n\n`);
47
+ return;
48
+ }
49
+
50
+ // Rebuild args for the child, replacing --daemon with --_foreground-bridge
51
+ const childArgs = ["start", "--_foreground-bridge"];
52
+ if (options.gateway) childArgs.push("--gateway", options.gateway);
53
+ if (options.pairingGateway) childArgs.push("--pairing-gateway", options.pairingGateway);
54
+ childArgs.push("--port", String(options.port));
55
+ childArgs.push("--provider", options.provider);
56
+ if (options.command) childArgs.push("--command", options.command);
57
+ childArgs.push("--client-name", options.clientName);
58
+ childArgs.push("--cols", String(options.cols));
59
+ childArgs.push("--rows", String(options.rows));
60
+ if (options.verbose) childArgs.push("--verbose");
61
+ if (options.sessionId) childArgs.push("--session-id", options.sessionId);
62
+ // Pass through extra args
63
+ const extra = command.args.filter((v: string) => v !== "--");
64
+ if (extra.length) childArgs.push("--", ...extra);
65
+
66
+ const pid = daemon.spawnDaemon("bridge", childArgs);
67
+ process.stderr.write(`\n LinkShell bridge started in background\n`);
68
+ process.stderr.write(` PID: ${pid}\n`);
69
+ process.stderr.write(` Provider: ${options.provider}\n`);
70
+ process.stderr.write(` Log: ${daemon.getLogFile("bridge")}\n\n`);
71
+ process.stderr.write(` Stop: linkshell stop\n`);
72
+ process.stderr.write(` Status: linkshell status\n`);
73
+ process.stderr.write(` Logs: tail -f ${daemon.getLogFile("bridge")}\n\n`);
74
+ return;
75
+ }
76
+
77
+ // Foreground mode
78
+ const passthroughArgs = command.args.filter((value: string) => value !== "--");
54
79
  const providerConfig = resolveProviderConfig({
55
80
  provider: options.provider,
56
81
  command: options.command,
@@ -63,7 +88,6 @@ program
63
88
  let embeddedGatewayHandle: { close: () => Promise<void> } | undefined;
64
89
 
65
90
  if (!gatewayUrl) {
66
- // Start built-in gateway
67
91
  const { startEmbeddedGateway } = await import("@linkshell/gateway/embedded");
68
92
  const port = Number(options.port);
69
93
  const gw = await startEmbeddedGateway({
@@ -75,7 +99,6 @@ program
75
99
  gatewayUrl = gw.wsUrl;
76
100
  gatewayHttpUrl = gw.httpUrl;
77
101
 
78
- // Auto-detect LAN IP for QR code
79
102
  const lanIp = getLanIp();
80
103
  if (!pairingGateway && lanIp !== "127.0.0.1") {
81
104
  pairingGateway = `http://${lanIp}:${gw.port}`;
@@ -93,6 +116,9 @@ program
93
116
  .replace(/^ws:/, "http:");
94
117
  }
95
118
 
119
+ // Save PID for status/stop
120
+ daemon.savePid("bridge", process.pid);
121
+
96
122
  const session = new BridgeSession({
97
123
  gatewayUrl,
98
124
  gatewayHttpUrl,
@@ -105,24 +131,51 @@ program
105
131
  providerConfig,
106
132
  });
107
133
 
108
- // Clean up embedded gateway on exit
109
- if (embeddedGatewayHandle) {
110
- const cleanup = async () => {
111
- await embeddedGatewayHandle!.close();
112
- };
113
- process.on("SIGINT", () => { cleanup().then(() => process.exit(0)); });
114
- process.on("SIGTERM", () => { cleanup().then(() => process.exit(0)); });
115
- }
134
+ const cleanup = async () => {
135
+ daemon.removePid("bridge");
136
+ if (embeddedGatewayHandle) await embeddedGatewayHandle.close();
137
+ };
138
+ process.on("SIGINT", () => { cleanup().then(() => process.exit(0)); });
139
+ process.on("SIGTERM", () => { cleanup().then(() => process.exit(0)); });
116
140
 
117
141
  await session.start();
118
142
  });
119
143
 
120
- program
144
+ // ── gateway ─────────────────────────────────────────────────────────
145
+
146
+ const gatewayCmd = program
121
147
  .command("gateway")
122
- .description("Start a standalone gateway server (for deployment on a remote server)")
148
+ .description("Manage the standalone gateway server")
123
149
  .option("--port <port>", "Listen port", "8787")
124
150
  .option("--log-level <level>", "Log level: debug | info | warn | error", "info")
151
+ .option("--daemon", "Run in background (detached)")
152
+ .option("--_foreground-gw", undefined) // internal
125
153
  .action(async (options) => {
154
+ const daemon = await import("./utils/daemon.js");
155
+
156
+ if (options.daemon && !options._foregroundGw) {
157
+ const existingPid = daemon.readPid("gateway");
158
+ if (existingPid) {
159
+ process.stderr.write(` Gateway already running (PID ${existingPid})\n`);
160
+ process.stderr.write(` Run: linkshell gateway stop\n\n`);
161
+ return;
162
+ }
163
+ const pid = daemon.spawnDaemon("gateway", [
164
+ "gateway", "--_foreground-gw",
165
+ "--port", String(options.port),
166
+ "--log-level", options.logLevel,
167
+ ]);
168
+ process.stderr.write(`\n LinkShell Gateway started in background\n`);
169
+ process.stderr.write(` PID: ${pid}\n`);
170
+ process.stderr.write(` Port: ${options.port}\n`);
171
+ process.stderr.write(` Log: ${daemon.getLogFile("gateway")}\n\n`);
172
+ process.stderr.write(` Stop: linkshell gateway stop\n`);
173
+ process.stderr.write(` Status: linkshell gateway status\n`);
174
+ process.stderr.write(` Logs: tail -f ${daemon.getLogFile("gateway")}\n\n`);
175
+ return;
176
+ }
177
+
178
+ // Foreground mode
126
179
  const { startEmbeddedGateway } = await import("@linkshell/gateway/embedded");
127
180
  const port = Number(options.port);
128
181
  const gw = await startEmbeddedGateway({
@@ -131,24 +184,98 @@ program
131
184
  silent: false,
132
185
  });
133
186
 
134
- process.stderr.write(`\n LinkShell Gateway v0.1.0\n`);
187
+ daemon.savePid("gateway", process.pid);
188
+
189
+ process.stderr.write(`\n LinkShell Gateway v0.1.8\n`);
135
190
  process.stderr.write(` Listening on http://0.0.0.0:${gw.port}\n`);
191
+ process.stderr.write(` PID: ${process.pid}\n`);
136
192
  process.stderr.write(` Log level: ${options.logLevel}\n\n`);
137
193
  process.stderr.write(` Clients connect via: ws://your-server:${gw.port}/ws\n`);
138
194
  process.stderr.write(` Health check: curl http://your-server:${gw.port}/healthz\n\n`);
139
195
 
140
196
  const shutdown = async () => {
141
197
  process.stderr.write("[gateway] shutting down...\n");
198
+ daemon.removePid("gateway");
142
199
  await gw.close();
143
200
  process.exit(0);
144
201
  };
145
202
  process.on("SIGINT", shutdown);
146
203
  process.on("SIGTERM", shutdown);
147
204
 
148
- // Keep process alive
149
205
  await new Promise(() => {});
150
206
  });
151
207
 
208
+ gatewayCmd
209
+ .command("stop")
210
+ .description("Stop the background gateway")
211
+ .action(async () => {
212
+ const { stopDaemon } = await import("./utils/daemon.js");
213
+ if (stopDaemon("gateway")) {
214
+ process.stderr.write(" Gateway stopped.\n");
215
+ } else {
216
+ process.stderr.write(" No running gateway found.\n");
217
+ }
218
+ });
219
+
220
+ gatewayCmd
221
+ .command("status")
222
+ .description("Check if the gateway is running")
223
+ .action(async () => {
224
+ const { readPid, getLogFile } = await import("./utils/daemon.js");
225
+ const pid = readPid("gateway");
226
+ if (pid) {
227
+ process.stderr.write(`\n Gateway is running\n`);
228
+ process.stderr.write(` PID: ${pid}\n`);
229
+ process.stderr.write(` Log: ${getLogFile("gateway")}\n\n`);
230
+ } else {
231
+ process.stderr.write(" Gateway is not running.\n");
232
+ }
233
+ });
234
+
235
+ // ── stop (stops both bridge and gateway) ────────────────────────────
236
+
237
+ program
238
+ .command("stop")
239
+ .description("Stop all running LinkShell processes")
240
+ .action(async () => {
241
+ const { stopDaemon } = await import("./utils/daemon.js");
242
+ const bridgeStopped = stopDaemon("bridge");
243
+ const gatewayStopped = stopDaemon("gateway");
244
+ if (bridgeStopped) process.stderr.write(" Bridge stopped.\n");
245
+ if (gatewayStopped) process.stderr.write(" Gateway stopped.\n");
246
+ if (!bridgeStopped && !gatewayStopped) {
247
+ process.stderr.write(" No running processes found.\n");
248
+ }
249
+ });
250
+
251
+ // ── status ──────────────────────────────────────────────────────────
252
+
253
+ program
254
+ .command("status")
255
+ .description("Show status of all LinkShell processes")
256
+ .action(async () => {
257
+ const { readPid, getLogFile } = await import("./utils/daemon.js");
258
+ const bridgePid = readPid("bridge");
259
+ const gatewayPid = readPid("gateway");
260
+
261
+ process.stderr.write("\n");
262
+ if (bridgePid) {
263
+ process.stderr.write(` Bridge: running (PID ${bridgePid})\n`);
264
+ process.stderr.write(` Log: ${getLogFile("bridge")}\n`);
265
+ } else {
266
+ process.stderr.write(" Bridge: not running\n");
267
+ }
268
+ if (gatewayPid) {
269
+ process.stderr.write(` Gateway: running (PID ${gatewayPid})\n`);
270
+ process.stderr.write(` Log: ${getLogFile("gateway")}\n`);
271
+ } else {
272
+ process.stderr.write(" Gateway: not running\n");
273
+ }
274
+ process.stderr.write("\n");
275
+ });
276
+
277
+ // ── doctor / setup ──────────────────────────────────────────────────
278
+
152
279
  program
153
280
  .command("doctor")
154
281
  .description("Check your environment and connectivity")
@@ -0,0 +1,88 @@
1
+ import { existsSync, readFileSync, writeFileSync, unlinkSync, mkdirSync, openSync } from "node:fs";
2
+ import { join } from "node:path";
3
+ import { homedir } from "node:os";
4
+ import { spawn } from "node:child_process";
5
+
6
+ const LINKSHELL_DIR = join(homedir(), ".linkshell");
7
+
8
+ type ServiceName = "gateway" | "bridge";
9
+
10
+ function pidFile(service: ServiceName): string {
11
+ return join(LINKSHELL_DIR, `${service}.pid`);
12
+ }
13
+
14
+ function logFile(service: ServiceName): string {
15
+ return join(LINKSHELL_DIR, `${service}.log`);
16
+ }
17
+
18
+ export function savePid(service: ServiceName, pid: number): void {
19
+ mkdirSync(LINKSHELL_DIR, { recursive: true });
20
+ writeFileSync(pidFile(service), String(pid), "utf8");
21
+ }
22
+
23
+ export function readPid(service: ServiceName): number | null {
24
+ try {
25
+ const file = pidFile(service);
26
+ if (!existsSync(file)) return null;
27
+ const pid = Number(readFileSync(file, "utf8").trim());
28
+ if (!pid || isNaN(pid)) return null;
29
+ try {
30
+ process.kill(pid, 0);
31
+ return pid;
32
+ } catch {
33
+ removePid(service);
34
+ return null;
35
+ }
36
+ } catch {
37
+ return null;
38
+ }
39
+ }
40
+
41
+ export function removePid(service: ServiceName): void {
42
+ try { unlinkSync(pidFile(service)); } catch {}
43
+ }
44
+
45
+ export function getLogFile(service: ServiceName): string {
46
+ return logFile(service);
47
+ }
48
+
49
+ export function getPidFile(service: ServiceName): string {
50
+ return pidFile(service);
51
+ }
52
+
53
+ export function spawnDaemon(service: ServiceName, args: string[]): number {
54
+ mkdirSync(LINKSHELL_DIR, { recursive: true });
55
+ const log = logFile(service);
56
+ const out = openSync(log, "a");
57
+ const err = openSync(log, "a");
58
+
59
+ const entryScript = process.argv[1]!;
60
+
61
+ const child = spawn(
62
+ process.execPath,
63
+ [...process.execArgv, entryScript, ...args],
64
+ {
65
+ detached: true,
66
+ stdio: ["ignore", out, err],
67
+ env: process.env,
68
+ },
69
+ );
70
+
71
+ child.unref();
72
+ const pid = child.pid!;
73
+ savePid(service, pid);
74
+ return pid;
75
+ }
76
+
77
+ export function stopDaemon(service: ServiceName): boolean {
78
+ const pid = readPid(service);
79
+ if (!pid) return false;
80
+ try {
81
+ process.kill(pid, "SIGTERM");
82
+ removePid(service);
83
+ return true;
84
+ } catch {
85
+ removePid(service);
86
+ return false;
87
+ }
88
+ }