claude-yes 1.174.0 → 1.174.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/SUPPORTED_CLIS-BtaQCnmF.js +8 -0
- package/dist/{SUPPORTED_CLIS-DRYgob0H.js → SUPPORTED_CLIS-DnHiQpuZ.js} +2 -2
- package/dist/cli.js +4 -4
- package/dist/index.js +2 -2
- package/dist/{notifyDaemon-BIAiDk8X.js → notifyDaemon-CbvOJKix.js} +2 -2
- package/dist/{rustBinary-B3-RzNau.js → rustBinary-BDSf3JN-.js} +2 -2
- package/dist/{schedule-OIx0pPXv.js → schedule-jSaSNqve.js} +4 -4
- package/dist/{serve-ClCuMror.js → serve-DYcMbyZx.js} +25 -18
- package/dist/{setup-Bwb6P834.js → setup-CVbuq9VM.js} +2 -2
- package/dist/{subcommands-DYcGpfkJ.js → subcommands-BJHFFNOc.js} +6 -6
- package/dist/{subcommands-BeUD8RlG.js → subcommands-DYDKdt58.js} +1 -1
- package/dist/{ts-l6q9fhuc.js → ts-CV_tUkRh.js} +2 -2
- package/dist/{versionChecker-DltRc0f8.js → versionChecker-D2c3MKj7.js} +2 -2
- package/package.json +1 -1
- package/ts/serve.ts +38 -16
- package/dist/SUPPORTED_CLIS-C2CKMUGB.js +0 -8
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import "./ts-CV_tUkRh.js";
|
|
2
|
+
import "./logger-CDIsZ-Pp.js";
|
|
3
|
+
import "./versionChecker-D2c3MKj7.js";
|
|
4
|
+
import "./pidStore-BIvsBQ8X.js";
|
|
5
|
+
import "./globalPidIndex-CoNr7tS8.js";
|
|
6
|
+
import { t as SUPPORTED_CLIS } from "./SUPPORTED_CLIS-DnHiQpuZ.js";
|
|
7
|
+
|
|
8
|
+
export { SUPPORTED_CLIS };
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { t as CLIS_CONFIG } from "./ts-
|
|
1
|
+
import { t as CLIS_CONFIG } from "./ts-CV_tUkRh.js";
|
|
2
2
|
|
|
3
3
|
//#region ts/SUPPORTED_CLIS.ts
|
|
4
4
|
const SUPPORTED_CLIS = Object.keys(CLIS_CONFIG);
|
|
5
5
|
|
|
6
6
|
//#endregion
|
|
7
7
|
export { SUPPORTED_CLIS as t };
|
|
8
|
-
//# sourceMappingURL=SUPPORTED_CLIS-
|
|
8
|
+
//# sourceMappingURL=SUPPORTED_CLIS-DnHiQpuZ.js.map
|
package/dist/cli.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
#!/usr/bin/env bun
|
|
2
2
|
import { t as invokedCliName } from "./invokedCli-uqM2YYA7.js";
|
|
3
3
|
import { n as logger } from "./logger-CDIsZ-Pp.js";
|
|
4
|
-
import { i as versionString, n as displayVersion, t as checkAndAutoUpdate } from "./versionChecker-
|
|
5
|
-
import { n as getRustBinary } from "./rustBinary-
|
|
4
|
+
import { i as versionString, n as displayVersion, t as checkAndAutoUpdate } from "./versionChecker-D2c3MKj7.js";
|
|
5
|
+
import { n as getRustBinary } from "./rustBinary-BDSf3JN-.js";
|
|
6
6
|
import { argv } from "process";
|
|
7
7
|
import { spawn } from "child_process";
|
|
8
8
|
import ms from "ms";
|
|
@@ -285,7 +285,7 @@ function buildRustArgs(argv, cliFromScript, supportedClis) {
|
|
|
285
285
|
const rawArg = process.argv[2];
|
|
286
286
|
const managerCommands = !invokedCliName(process.argv);
|
|
287
287
|
const isHelpFlag = rawArg === "-h" || rawArg === "--help";
|
|
288
|
-
const { isSubcommand, runSubcommand, cmdHelp } = await import("./subcommands-
|
|
288
|
+
const { isSubcommand, runSubcommand, cmdHelp } = await import("./subcommands-DYDKdt58.js");
|
|
289
289
|
if (isHelpFlag && process.argv.length === 3) {
|
|
290
290
|
await cmdHelp(managerCommands);
|
|
291
291
|
process.exit(0);
|
|
@@ -327,7 +327,7 @@ if (config.useRust) {
|
|
|
327
327
|
}
|
|
328
328
|
}
|
|
329
329
|
if (rustBinary) {
|
|
330
|
-
const { SUPPORTED_CLIS } = await import("./SUPPORTED_CLIS-
|
|
330
|
+
const { SUPPORTED_CLIS } = await import("./SUPPORTED_CLIS-BtaQCnmF.js");
|
|
331
331
|
const rustArgs = buildRustArgs(process.argv, config.cli, SUPPORTED_CLIS);
|
|
332
332
|
if (config.verbose) {
|
|
333
333
|
console.log(`[rust] Using binary: ${rustBinary}`);
|
package/dist/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { a as removeControlCharacters, i as AgentContext, n as agentYes, r as config, t as CLIS_CONFIG } from "./ts-
|
|
1
|
+
import { a as removeControlCharacters, i as AgentContext, n as agentYes, r as config, t as CLIS_CONFIG } from "./ts-CV_tUkRh.js";
|
|
2
2
|
import "./logger-CDIsZ-Pp.js";
|
|
3
|
-
import "./versionChecker-
|
|
3
|
+
import "./versionChecker-D2c3MKj7.js";
|
|
4
4
|
import "./pidStore-BIvsBQ8X.js";
|
|
5
5
|
import "./globalPidIndex-CoNr7tS8.js";
|
|
6
6
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { n as logger } from "./logger-CDIsZ-Pp.js";
|
|
2
2
|
import "./globalPidIndex-CoNr7tS8.js";
|
|
3
3
|
import "./configShared-0MnIQ652.js";
|
|
4
|
-
import { D as renderLogTailLines, G as hostId, J as readInbox, K as listInboxParents, Q as notifyDir, S as listRecords, U as appendEvent, W as gcInboxes, X as daemonLockDir, Y as shouldStealLock, Z as daemonLockOwnerPath, _ as isPidAlive, c as deriveLiveState, q as liveWatchers } from "./subcommands-
|
|
4
|
+
import { D as renderLogTailLines, G as hostId, J as readInbox, K as listInboxParents, Q as notifyDir, S as listRecords, U as appendEvent, W as gcInboxes, X as daemonLockDir, Y as shouldStealLock, Z as daemonLockOwnerPath, _ as isPidAlive, c as deriveLiveState, q as liveWatchers } from "./subcommands-BJHFFNOc.js";
|
|
5
5
|
import "./e2e-jb0Hp43q.js";
|
|
6
6
|
import "./webrtcLink-B7REGtK2.js";
|
|
7
7
|
import "./remotes-CC-4GuJb.js";
|
|
@@ -588,4 +588,4 @@ async function ensureDaemon() {
|
|
|
588
588
|
|
|
589
589
|
//#endregion
|
|
590
590
|
export { daemonStatus, ensureDaemon, requestDaemonStop, runDaemon };
|
|
591
|
-
//# sourceMappingURL=notifyDaemon-
|
|
591
|
+
//# sourceMappingURL=notifyDaemon-CbvOJKix.js.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as getInstalledPackage } from "./versionChecker-
|
|
1
|
+
import { r as getInstalledPackage } from "./versionChecker-D2c3MKj7.js";
|
|
2
2
|
import { execFileSync } from "child_process";
|
|
3
3
|
import { existsSync, mkdirSync, unlinkSync } from "fs";
|
|
4
4
|
import { chmod, copyFile } from "fs/promises";
|
|
@@ -225,4 +225,4 @@ async function getRustBinary(options = {}) {
|
|
|
225
225
|
|
|
226
226
|
//#endregion
|
|
227
227
|
export { getRustBinary as n, findSpawnHiddenLauncher as t };
|
|
228
|
-
//# sourceMappingURL=rustBinary-
|
|
228
|
+
//# sourceMappingURL=rustBinary-BDSf3JN-.js.map
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import "./ts-
|
|
1
|
+
import "./ts-CV_tUkRh.js";
|
|
2
2
|
import "./logger-CDIsZ-Pp.js";
|
|
3
|
-
import "./versionChecker-
|
|
3
|
+
import "./versionChecker-D2c3MKj7.js";
|
|
4
4
|
import "./pidStore-BIvsBQ8X.js";
|
|
5
5
|
import "./globalPidIndex-CoNr7tS8.js";
|
|
6
|
-
import { t as SUPPORTED_CLIS } from "./SUPPORTED_CLIS-
|
|
6
|
+
import { t as SUPPORTED_CLIS } from "./SUPPORTED_CLIS-DnHiQpuZ.js";
|
|
7
7
|
import { d as resolveSpawnCwd } from "./workspaceConfig-BgqK-31W.js";
|
|
8
8
|
import { createHash } from "node:crypto";
|
|
9
9
|
|
|
@@ -141,4 +141,4 @@ async function cmdSchedule(rest) {
|
|
|
141
141
|
|
|
142
142
|
//#endregion
|
|
143
143
|
export { cmdSchedule };
|
|
144
|
-
//# sourceMappingURL=schedule-
|
|
144
|
+
//# sourceMappingURL=schedule-jSaSNqve.js.map
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import "./ts-
|
|
1
|
+
import "./ts-CV_tUkRh.js";
|
|
2
2
|
import "./logger-CDIsZ-Pp.js";
|
|
3
|
-
import { r as getInstalledPackage } from "./versionChecker-
|
|
4
|
-
import { t as findSpawnHiddenLauncher } from "./rustBinary-
|
|
3
|
+
import { r as getInstalledPackage } from "./versionChecker-D2c3MKj7.js";
|
|
4
|
+
import { t as findSpawnHiddenLauncher } from "./rustBinary-BDSf3JN-.js";
|
|
5
5
|
import "./pidStore-BIvsBQ8X.js";
|
|
6
6
|
import { a as updateGlobalPidStatus } from "./globalPidIndex-CoNr7tS8.js";
|
|
7
7
|
import { t as pgidForWrapper } from "./reaper-CWF2_ATd.js";
|
|
8
8
|
import "./configShared-0MnIQ652.js";
|
|
9
|
-
import { t as SUPPORTED_CLIS } from "./SUPPORTED_CLIS-
|
|
10
|
-
import { A as resolveOne, E as readPtysize, F as snapshotStatus, H as TYPING_BADGE, O as renderRawLog, S as listRecords, T as readNotes, V as writeToIpc, b as isUserTyping, f as extractNeedsInput, l as deriveLiveStatus, o as controlCodeFromName, p as extractTaskCounts, u as extractBadges } from "./subcommands-
|
|
9
|
+
import { t as SUPPORTED_CLIS } from "./SUPPORTED_CLIS-DnHiQpuZ.js";
|
|
10
|
+
import { A as resolveOne, E as readPtysize, F as snapshotStatus, H as TYPING_BADGE, O as renderRawLog, S as listRecords, T as readNotes, V as writeToIpc, b as isUserTyping, f as extractNeedsInput, l as deriveLiveStatus, o as controlCodeFromName, p as extractTaskCounts, u as extractBadges } from "./subcommands-BJHFFNOc.js";
|
|
11
11
|
import "./e2e-jb0Hp43q.js";
|
|
12
12
|
import "./webrtcLink-B7REGtK2.js";
|
|
13
13
|
import "./remotes-CC-4GuJb.js";
|
|
@@ -1579,23 +1579,30 @@ Options:
|
|
|
1579
1579
|
continue;
|
|
1580
1580
|
}
|
|
1581
1581
|
if (inUse) {
|
|
1582
|
+
if (wantWebrtc) {
|
|
1583
|
+
process.stderr.write(`ay serve: port ${port} is still in use after retries — continuing WebRTC-only (HTTP API disabled). Free the port and restart to re-enable HTTP, or pick another with --port N.\n`);
|
|
1584
|
+
server = null;
|
|
1585
|
+
break;
|
|
1586
|
+
}
|
|
1582
1587
|
process.stderr.write(`ay serve: port ${port} is still in use after retries — pick another with --port N,\nor run a port-free WebRTC-only share with: ay serve --webrtc\n`);
|
|
1583
1588
|
return 1;
|
|
1584
1589
|
}
|
|
1585
1590
|
throw e;
|
|
1586
1591
|
}
|
|
1587
|
-
|
|
1588
|
-
|
|
1589
|
-
|
|
1590
|
-
|
|
1591
|
-
|
|
1592
|
-
|
|
1593
|
-
|
|
1594
|
-
|
|
1595
|
-
|
|
1596
|
-
|
|
1597
|
-
|
|
1598
|
-
|
|
1592
|
+
if (server) {
|
|
1593
|
+
const uiHost = host === "0.0.0.0" || host === "::" ? "127.0.0.1" : host;
|
|
1594
|
+
process.stdout.write(`ay serve ${scheme}://${host}:${port}\n`);
|
|
1595
|
+
process.stdout.write(`token: ${token}\n\n`);
|
|
1596
|
+
process.stdout.write(`web console (token in the # is eaten on open):\n`);
|
|
1597
|
+
process.stdout.write(` ${scheme}://${uiHost}:${port}/#k=${token}\n\n`);
|
|
1598
|
+
process.stdout.write(`connect from another machine:\n`);
|
|
1599
|
+
process.stdout.write(` ay ls ${token}@<host>:${port}\n`);
|
|
1600
|
+
process.stdout.write(` ay tail ${token}@<host>:${port}:<keyword>\n`);
|
|
1601
|
+
process.stdout.write(` ay send ${token}@<host>:${port}:<keyword> "message"\n\n`);
|
|
1602
|
+
process.stdout.write(`save as alias:\n`);
|
|
1603
|
+
process.stdout.write(` ay remote add <alias> ${scheme}://${token}@<host>:${port}\n\n`);
|
|
1604
|
+
if (!useHttps) process.stdout.write("for HTTPS: ay serve --tls-cert cert.pem --tls-key key.pem\n openssl req -x509 -newkey rsa:2048 -keyout key.pem -out cert.pem -days 365 -nodes -subj '/CN=localhost'\n\n");
|
|
1605
|
+
}
|
|
1599
1606
|
}
|
|
1600
1607
|
let closeShare;
|
|
1601
1608
|
if (wantWebrtc) {
|
|
@@ -1661,4 +1668,4 @@ Options:
|
|
|
1661
1668
|
|
|
1662
1669
|
//#endregion
|
|
1663
1670
|
export { cmdServe };
|
|
1664
|
-
//# sourceMappingURL=serve-
|
|
1671
|
+
//# sourceMappingURL=serve-DYcMbyZx.js.map
|
|
@@ -32,7 +32,7 @@ async function cmdSetup(rest) {
|
|
|
32
32
|
if (!existsSync(abs)) process.stderr.write(` note: that directory doesn't exist yet — create it, or agents spawned there will fail\n`);
|
|
33
33
|
if (noShare) return 0;
|
|
34
34
|
process.stdout.write(`\nsharing this machine to agent-yes.com…\n`);
|
|
35
|
-
const { cmdServe } = await import("./serve-
|
|
35
|
+
const { cmdServe } = await import("./serve-DYcMbyZx.js");
|
|
36
36
|
return cmdServe([
|
|
37
37
|
"install",
|
|
38
38
|
"--share",
|
|
@@ -42,4 +42,4 @@ async function cmdSetup(rest) {
|
|
|
42
42
|
|
|
43
43
|
//#endregion
|
|
44
44
|
export { cmdSetup };
|
|
45
|
-
//# sourceMappingURL=setup-
|
|
45
|
+
//# sourceMappingURL=setup-CVbuq9VM.js.map
|
|
@@ -1126,15 +1126,15 @@ async function runSubcommand(argv) {
|
|
|
1126
1126
|
case "restart": return await cmdRestart(rest);
|
|
1127
1127
|
case "note": return await cmdNote(rest);
|
|
1128
1128
|
case "serve": {
|
|
1129
|
-
const { cmdServe } = await import("./serve-
|
|
1129
|
+
const { cmdServe } = await import("./serve-DYcMbyZx.js");
|
|
1130
1130
|
return cmdServe(rest);
|
|
1131
1131
|
}
|
|
1132
1132
|
case "setup": {
|
|
1133
|
-
const { cmdSetup } = await import("./setup-
|
|
1133
|
+
const { cmdSetup } = await import("./setup-CVbuq9VM.js");
|
|
1134
1134
|
return cmdSetup(rest);
|
|
1135
1135
|
}
|
|
1136
1136
|
case "schedule": {
|
|
1137
|
-
const { cmdSchedule } = await import("./schedule-
|
|
1137
|
+
const { cmdSchedule } = await import("./schedule-jSaSNqve.js");
|
|
1138
1138
|
return cmdSchedule(rest);
|
|
1139
1139
|
}
|
|
1140
1140
|
case "remote": {
|
|
@@ -3969,7 +3969,7 @@ async function cmdNotify(rest) {
|
|
|
3969
3969
|
}
|
|
3970
3970
|
const ensure = async () => {
|
|
3971
3971
|
if (!argv["ensure-daemon"]) return;
|
|
3972
|
-
const { ensureDaemon } = await import("./notifyDaemon-
|
|
3972
|
+
const { ensureDaemon } = await import("./notifyDaemon-CbvOJKix.js");
|
|
3973
3973
|
await ensureDaemon().catch(() => null);
|
|
3974
3974
|
};
|
|
3975
3975
|
await heartbeatWatcher(parent, selfStartedAt);
|
|
@@ -4043,7 +4043,7 @@ async function cmdNotifyCursor(args) {
|
|
|
4043
4043
|
}
|
|
4044
4044
|
async function cmdNotifyd(rest) {
|
|
4045
4045
|
const sub = rest[0] ?? "status";
|
|
4046
|
-
const daemon = await import("./notifyDaemon-
|
|
4046
|
+
const daemon = await import("./notifyDaemon-CbvOJKix.js");
|
|
4047
4047
|
switch (sub) {
|
|
4048
4048
|
case "run": return daemon.runDaemon();
|
|
4049
4049
|
case "once": return daemon.runDaemon({ once: true });
|
|
@@ -4070,4 +4070,4 @@ async function cmdNotifyd(rest) {
|
|
|
4070
4070
|
|
|
4071
4071
|
//#endregion
|
|
4072
4072
|
export { resolveOne as A, writeKeysPaced as B, matchKeyword as C, renderLogTailLines as D, readPtysize as E, snapshotStatus as F, hostId as G, TYPING_BADGE as H, stdinActivityPath as I, readInbox as J, listInboxParents as K, stopTipForCli as L, resolveResumeArgs as M, restartHintLines as N, renderRawLog as O, runSubcommand as P, notifyDir as Q, submitAndConfirm as R, listRecords as S, readNotes as T, appendEvent as U, writeToIpc as V, gcInboxes as W, daemonLockDir as X, shouldStealLock as Y, daemonLockOwnerPath as Z, isPidAlive as _, cmdHelp as a, isUserTyping as b, deriveLiveState as c, extractMenu as d, extractNeedsInput as f, isExitRequest as g, isAgentStuck as h, backoffWhileTyping as i, resolveReadWindow as j, renderRawLogLines as k, deriveLiveStatus as l, finalizedLines as m, READ_PAGE_DEFAULT as n, controlCodeFromName as o, extractTaskCounts as p, liveWatchers as q, TYPING_WINDOW_MS as r, cursorAbs as s, GRACEFUL_EXIT_COMMANDS as t, extractBadges as u, isSlashCommand as v, menuSelectKeys as w, lastStdinAt as x, isSubcommand as y, waitForLogQuiet as z };
|
|
4073
|
-
//# sourceMappingURL=subcommands-
|
|
4073
|
+
//# sourceMappingURL=subcommands-BJHFFNOc.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import "./logger-CDIsZ-Pp.js";
|
|
2
2
|
import "./globalPidIndex-CoNr7tS8.js";
|
|
3
3
|
import "./configShared-0MnIQ652.js";
|
|
4
|
-
import { A as resolveOne, B as writeKeysPaced, C as matchKeyword, D as renderLogTailLines, E as readPtysize, F as snapshotStatus, I as stdinActivityPath, L as stopTipForCli, M as resolveResumeArgs, N as restartHintLines, O as renderRawLog, P as runSubcommand, R as submitAndConfirm, S as listRecords, T as readNotes, V as writeToIpc, _ as isPidAlive, a as cmdHelp, b as isUserTyping, c as deriveLiveState, d as extractMenu, f as extractNeedsInput, g as isExitRequest, h as isAgentStuck, i as backoffWhileTyping, j as resolveReadWindow, k as renderRawLogLines, l as deriveLiveStatus, m as finalizedLines, n as READ_PAGE_DEFAULT, o as controlCodeFromName, p as extractTaskCounts, r as TYPING_WINDOW_MS, s as cursorAbs, t as GRACEFUL_EXIT_COMMANDS, u as extractBadges, v as isSlashCommand, w as menuSelectKeys, x as lastStdinAt, y as isSubcommand, z as waitForLogQuiet } from "./subcommands-
|
|
4
|
+
import { A as resolveOne, B as writeKeysPaced, C as matchKeyword, D as renderLogTailLines, E as readPtysize, F as snapshotStatus, I as stdinActivityPath, L as stopTipForCli, M as resolveResumeArgs, N as restartHintLines, O as renderRawLog, P as runSubcommand, R as submitAndConfirm, S as listRecords, T as readNotes, V as writeToIpc, _ as isPidAlive, a as cmdHelp, b as isUserTyping, c as deriveLiveState, d as extractMenu, f as extractNeedsInput, g as isExitRequest, h as isAgentStuck, i as backoffWhileTyping, j as resolveReadWindow, k as renderRawLogLines, l as deriveLiveStatus, m as finalizedLines, n as READ_PAGE_DEFAULT, o as controlCodeFromName, p as extractTaskCounts, r as TYPING_WINDOW_MS, s as cursorAbs, t as GRACEFUL_EXIT_COMMANDS, u as extractBadges, v as isSlashCommand, w as menuSelectKeys, x as lastStdinAt, y as isSubcommand, z as waitForLogQuiet } from "./subcommands-BJHFFNOc.js";
|
|
5
5
|
import "./e2e-jb0Hp43q.js";
|
|
6
6
|
import "./webrtcLink-B7REGtK2.js";
|
|
7
7
|
import "./remotes-CC-4GuJb.js";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { n as logger, t as addTransport } from "./logger-CDIsZ-Pp.js";
|
|
2
|
-
import { r as getInstalledPackage } from "./versionChecker-
|
|
2
|
+
import { r as getInstalledPackage } from "./versionChecker-D2c3MKj7.js";
|
|
3
3
|
import { t as agentYesHome } from "./agentYesHome-CtHb5b71.js";
|
|
4
4
|
import { i as shouldUseLock, r as releaseLock, t as acquireLock } from "./runningLock-CNMl13dC.js";
|
|
5
5
|
import { t as PidStore } from "./pidStore-BIvsBQ8X.js";
|
|
@@ -1824,4 +1824,4 @@ function sleep(ms) {
|
|
|
1824
1824
|
|
|
1825
1825
|
//#endregion
|
|
1826
1826
|
export { removeControlCharacters as a, AgentContext as i, agentYes as n, config as r, CLIS_CONFIG as t };
|
|
1827
|
-
//# sourceMappingURL=ts-
|
|
1827
|
+
//# sourceMappingURL=ts-CV_tUkRh.js.map
|
|
@@ -7,7 +7,7 @@ import { fileURLToPath } from "url";
|
|
|
7
7
|
|
|
8
8
|
//#region package.json
|
|
9
9
|
var name = "claude-yes";
|
|
10
|
-
var version = "1.174.
|
|
10
|
+
var version = "1.174.1";
|
|
11
11
|
|
|
12
12
|
//#endregion
|
|
13
13
|
//#region ts/versionChecker.ts
|
|
@@ -215,4 +215,4 @@ async function displayVersion() {
|
|
|
215
215
|
|
|
216
216
|
//#endregion
|
|
217
217
|
export { versionString as i, displayVersion as n, getInstalledPackage as r, checkAndAutoUpdate as t };
|
|
218
|
-
//# sourceMappingURL=versionChecker-
|
|
218
|
+
//# sourceMappingURL=versionChecker-D2c3MKj7.js.map
|
package/package.json
CHANGED
package/ts/serve.ts
CHANGED
|
@@ -2364,6 +2364,24 @@ export async function cmdServe(rest: string[]): Promise<number> {
|
|
|
2364
2364
|
continue;
|
|
2365
2365
|
}
|
|
2366
2366
|
if (inUse) {
|
|
2367
|
+
// The port is wedged by something we can't evict — classically a dead
|
|
2368
|
+
// serve whose spawned child agents inherited its listen-socket handle
|
|
2369
|
+
// (on Windows the socket lacks non-inheritable/CLOEXEC semantics, so it
|
|
2370
|
+
// survives the parent and keeps :port LISTENING under a defunct PID).
|
|
2371
|
+
// Exiting here just feeds a pm2 restart loop that can never re-bind.
|
|
2372
|
+
// When WebRTC is also requested, degrade to WebRTC-only instead: the
|
|
2373
|
+
// console still reaches this machine peer-to-peer with no port, so the
|
|
2374
|
+
// daemon stays useful and stops crash-looping. Only give up when
|
|
2375
|
+
// there's no WebRTC transport to fall back to (pure --http).
|
|
2376
|
+
if (wantWebrtc) {
|
|
2377
|
+
process.stderr.write(
|
|
2378
|
+
`ay serve: port ${port} is still in use after retries — continuing WebRTC-only ` +
|
|
2379
|
+
`(HTTP API disabled). Free the port and restart to re-enable HTTP, ` +
|
|
2380
|
+
`or pick another with --port N.\n`,
|
|
2381
|
+
);
|
|
2382
|
+
server = null;
|
|
2383
|
+
break;
|
|
2384
|
+
}
|
|
2367
2385
|
process.stderr.write(
|
|
2368
2386
|
`ay serve: port ${port} is still in use after retries — pick another with --port N,\n` +
|
|
2369
2387
|
`or run a port-free WebRTC-only share with: ay serve --webrtc\n`,
|
|
@@ -2374,22 +2392,26 @@ export async function cmdServe(rest: string[]): Promise<number> {
|
|
|
2374
2392
|
}
|
|
2375
2393
|
}
|
|
2376
2394
|
|
|
2377
|
-
|
|
2378
|
-
|
|
2379
|
-
|
|
2380
|
-
|
|
2381
|
-
|
|
2382
|
-
|
|
2383
|
-
|
|
2384
|
-
|
|
2385
|
-
|
|
2386
|
-
|
|
2387
|
-
|
|
2388
|
-
|
|
2389
|
-
process.stdout.write(
|
|
2390
|
-
|
|
2391
|
-
|
|
2392
|
-
|
|
2395
|
+
// server is null only when we degraded to WebRTC-only above (port wedged);
|
|
2396
|
+
// skip the HTTP connection banner since nothing is listening on the port.
|
|
2397
|
+
if (server) {
|
|
2398
|
+
const uiHost = host === "0.0.0.0" || host === "::" ? "127.0.0.1" : host;
|
|
2399
|
+
process.stdout.write(`ay serve ${scheme}://${host}:${port}\n`);
|
|
2400
|
+
process.stdout.write(`token: ${token}\n\n`);
|
|
2401
|
+
process.stdout.write(`web console (token in the # is eaten on open):\n`);
|
|
2402
|
+
process.stdout.write(` ${scheme}://${uiHost}:${port}/#k=${token}\n\n`);
|
|
2403
|
+
process.stdout.write(`connect from another machine:\n`);
|
|
2404
|
+
process.stdout.write(` ay ls ${token}@<host>:${port}\n`);
|
|
2405
|
+
process.stdout.write(` ay tail ${token}@<host>:${port}:<keyword>\n`);
|
|
2406
|
+
process.stdout.write(` ay send ${token}@<host>:${port}:<keyword> "message"\n\n`);
|
|
2407
|
+
process.stdout.write(`save as alias:\n`);
|
|
2408
|
+
process.stdout.write(` ay remote add <alias> ${scheme}://${token}@<host>:${port}\n\n`);
|
|
2409
|
+
if (!useHttps) {
|
|
2410
|
+
process.stdout.write(
|
|
2411
|
+
`for HTTPS: ay serve --tls-cert cert.pem --tls-key key.pem\n` +
|
|
2412
|
+
` openssl req -x509 -newkey rsa:2048 -keyout key.pem -out cert.pem -days 365 -nodes -subj '/CN=localhost'\n\n`,
|
|
2413
|
+
);
|
|
2414
|
+
}
|
|
2393
2415
|
}
|
|
2394
2416
|
}
|
|
2395
2417
|
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import "./ts-l6q9fhuc.js";
|
|
2
|
-
import "./logger-CDIsZ-Pp.js";
|
|
3
|
-
import "./versionChecker-DltRc0f8.js";
|
|
4
|
-
import "./pidStore-BIvsBQ8X.js";
|
|
5
|
-
import "./globalPidIndex-CoNr7tS8.js";
|
|
6
|
-
import { t as SUPPORTED_CLIS } from "./SUPPORTED_CLIS-DRYgob0H.js";
|
|
7
|
-
|
|
8
|
-
export { SUPPORTED_CLIS };
|