claude-yes 1.303.1-beta.785.1 → 1.303.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/default.config.yaml +5 -5
- package/dist/{SUPPORTED_CLIS-BFtOYEti.js → SUPPORTED_CLIS-DCmlGzDK.js} +2 -2
- package/dist/{SUPPORTED_CLIS-u5klqg8t.js → SUPPORTED_CLIS-nzin57HV.js} +3 -3
- package/dist/{agentShare-bpyKwrac.js → agentShare-HNPcxfQF.js} +2 -2
- package/dist/{callback-BT4svEJ_.js → callback-CT0zTgVr.js} +2 -2
- package/dist/{callback-DFBdT86k.js → callback-DmvfKCtq.js} +3 -3
- package/dist/cli.js +5 -5
- package/dist/{cmdPs-DeMHpYBO.js → cmdPs-FvPn5mQm.js} +2 -2
- package/dist/index.js +2 -2
- package/dist/{notifyDaemon-CGFZjzxf.js → notifyDaemon-Csp3Twzu.js} +2 -2
- package/dist/{parentPingLoop-ChKRikRT.js → parentPingLoop-Dx7WYF54.js} +2 -2
- package/dist/{rustBinary-DeJ_WiOn.js → rustBinary-BYIwfdRn.js} +2 -2
- package/dist/{rustBinary-BqWlgdHn.js → rustBinary-DLwor5QY.js} +2 -2
- package/dist/{schedule-bknxRfC6.js → schedule-Des120DU.js} +4 -4
- package/dist/{serve-Y9CLi4Nv.js → serve-Cs-Lt6SN.js} +21 -21
- package/dist/{setup-BzpCA-qi.js → setup-zHEPmtOW.js} +2 -2
- package/dist/{shareCmd-Dsw11DMu.js → shareCmd-CMLG3298.js} +5 -5
- package/dist/{subcommands-DbnLQ_3-.js → subcommands-CbMkQsMA.js} +16 -16
- package/dist/{subcommands-D_mA8hsL.js → subcommands-Cmp7rdRG.js} +1 -1
- package/dist/{terminal-zAKeAZz2.js → terminal-B3SL27FO.js} +2 -2
- package/dist/{trayApp-CdN1mrZS.js → trayApp-BUvcPna_.js} +2 -2
- package/dist/trayApp-CL3y3c_n.js +5 -0
- package/dist/{ts-Dg3qF1sP.js → ts-nJbsXlEF.js} +3 -3
- package/dist/{versionChecker-CLDvUbCd.js → versionChecker-DyApQljg.js} +2 -2
- package/dist/{widget-CnBXPhiy.js → widget-D7hK3agu.js} +3 -3
- package/dist/{ws-_7kcI72o.js → ws-BSX049_p.js} +2 -2
- package/dist/{ws-SYNxqIMc.js → ws-DkxUxntV.js} +2 -2
- package/lab/ui/index.html +1 -1
- package/lab/ui/lab/posts/2026-08-11-slack-term-safe-writes.md +1 -1
- package/package.json +5 -7
- package/ts/cli-idle.bun.spec.ts +1 -1
- package/ts/cli-idle.spec.ts +1 -1
- package/ts/composerGuard.spec.ts +4 -12
- package/ts/senderAncestry.ts +3 -1
- package/ts/serve.ts +2 -2
- package/ts/subcommands.spec.ts +1 -2
- package/ts/subcommands.ts +3 -1
- package/dist/trayApp-0pEPUiZY.js +0 -5
package/default.config.yaml
CHANGED
|
@@ -55,14 +55,14 @@ clis:
|
|
|
55
55
|
# then confirms it once the screen has moved. Single-line on purpose —
|
|
56
56
|
# the TS runtime matches typingRespond per rendered line.
|
|
57
57
|
"\u001b[B":
|
|
58
|
-
- pattern:
|
|
58
|
+
- pattern: '❯ ?No, exit'
|
|
59
59
|
flags: m
|
|
60
60
|
enter:
|
|
61
61
|
# Trust dialog, legacy numbered layout (cursor already on Yes).
|
|
62
62
|
- pattern: ' > 1\. Yes, I trust this folder'
|
|
63
63
|
flags: m
|
|
64
64
|
# Trust dialog, current layout — after the Down above moved the cursor.
|
|
65
|
-
- pattern:
|
|
65
|
+
- pattern: '❯ ?Yes, I trust this folder'
|
|
66
66
|
flags: m
|
|
67
67
|
- pattern: '❯ ?1\. ?Dark mode ?✔'
|
|
68
68
|
flags: m
|
|
@@ -223,14 +223,14 @@ clis:
|
|
|
223
223
|
# then confirms it once the screen has moved. Single-line on purpose —
|
|
224
224
|
# the TS runtime matches typingRespond per rendered line.
|
|
225
225
|
"\u001b[B":
|
|
226
|
-
- pattern:
|
|
226
|
+
- pattern: '❯ ?No, exit'
|
|
227
227
|
flags: m
|
|
228
228
|
enter:
|
|
229
229
|
# Trust dialog, legacy numbered layout (cursor already on Yes).
|
|
230
230
|
- pattern: ' > 1\. Yes, I trust this folder'
|
|
231
231
|
flags: m
|
|
232
232
|
# Trust dialog, current layout — after the Down above moved the cursor.
|
|
233
|
-
- pattern:
|
|
233
|
+
- pattern: '❯ ?Yes, I trust this folder'
|
|
234
234
|
flags: m
|
|
235
235
|
- pattern: '❯ ?1\. ?Dark mode ?✔'
|
|
236
236
|
flags: m
|
|
@@ -367,7 +367,7 @@ clis:
|
|
|
367
367
|
flags: m
|
|
368
368
|
enter:
|
|
369
369
|
# First-launch trust dialog; cursor starts on "Yes, I trust this folder".
|
|
370
|
-
- pattern:
|
|
370
|
+
- pattern: '^ {0,4}> ?Yes, I trust this folder'
|
|
371
371
|
flags: m
|
|
372
372
|
# Tool permission menu ("1. Yes, run command" / "1. Yes, ..."); the
|
|
373
373
|
# cursor starts on option 1.
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { t as CLIS_CONFIG } from "./ts-
|
|
1
|
+
import { t as CLIS_CONFIG } from "./ts-nJbsXlEF.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-DCmlGzDK.js.map
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import "./logger-CDIsZ-Pp.js";
|
|
2
|
-
import "./versionChecker-
|
|
3
|
-
import "./ts-
|
|
2
|
+
import "./versionChecker-DyApQljg.js";
|
|
3
|
+
import "./ts-nJbsXlEF.js";
|
|
4
4
|
import "./todoAutomation-TTp_Qz9G.js";
|
|
5
5
|
import "./JsonlStore-BpYZZTap.js";
|
|
6
6
|
import "./globalPidIndex-CRB5KtyL.js";
|
|
7
7
|
import "./pidStore-433kvh9D.js";
|
|
8
8
|
import "./messageLog-Dq_ka-Bt.js";
|
|
9
9
|
import "./todoStore-C9RTz0Vs.js";
|
|
10
|
-
import { t as SUPPORTED_CLIS } from "./SUPPORTED_CLIS-
|
|
10
|
+
import { t as SUPPORTED_CLIS } from "./SUPPORTED_CLIS-DCmlGzDK.js";
|
|
11
11
|
|
|
12
12
|
export { SUPPORTED_CLIS };
|
|
@@ -8,7 +8,7 @@ import "./configShared-De4bR5hH.js";
|
|
|
8
8
|
import "./webrtcLink-va_gAR77.js";
|
|
9
9
|
import "./remotes-DevcBeLl.js";
|
|
10
10
|
import "./roomReplyAlias-DFqg_6IU.js";
|
|
11
|
-
import { nt as resolveOne } from "./subcommands-
|
|
11
|
+
import { nt as resolveOne } from "./subcommands-CbMkQsMA.js";
|
|
12
12
|
import "./notifyStore-DIfkfKB2.js";
|
|
13
13
|
import { l as startShare } from "./share-w5oRbvlj.js";
|
|
14
14
|
|
|
@@ -233,4 +233,4 @@ function transformEvent(rawEvent, agentId, forwarded) {
|
|
|
233
233
|
|
|
234
234
|
//#endregion
|
|
235
235
|
export { createScopedShare, listShares, revokeAllShares, revokeShare };
|
|
236
|
-
//# sourceMappingURL=agentShare-
|
|
236
|
+
//# sourceMappingURL=agentShare-HNPcxfQF.js.map
|
|
@@ -8,9 +8,9 @@ import "./configShared-De4bR5hH.js";
|
|
|
8
8
|
import "./webrtcLink-va_gAR77.js";
|
|
9
9
|
import "./remotes-DevcBeLl.js";
|
|
10
10
|
import "./roomReplyAlias-DFqg_6IU.js";
|
|
11
|
-
import "./subcommands-
|
|
11
|
+
import "./subcommands-CbMkQsMA.js";
|
|
12
12
|
import "./notifyStore-DIfkfKB2.js";
|
|
13
13
|
import "./callbackCore-BesbQ6-Z.js";
|
|
14
|
-
import { i as loadOrCreateCallbackSecret, n as isCallbackRevoked, r as loadCallbackSecretReadOnly, t as cmdCallback } from "./callback-
|
|
14
|
+
import { i as loadOrCreateCallbackSecret, n as isCallbackRevoked, r as loadCallbackSecretReadOnly, t as cmdCallback } from "./callback-DmvfKCtq.js";
|
|
15
15
|
|
|
16
16
|
export { cmdCallback };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t as agentYesHome } from "./agentYesHome-JmJC28YX.js";
|
|
2
|
-
import { nt as resolveOne } from "./subcommands-
|
|
2
|
+
import { nt as resolveOne } from "./subcommands-CbMkQsMA.js";
|
|
3
3
|
import { a as mintCapability, o as parseExpires } from "./callbackCore-BesbQ6-Z.js";
|
|
4
4
|
import { randomBytes } from "node:crypto";
|
|
5
5
|
import { chmodSync, readFileSync, renameSync, writeFileSync } from "node:fs";
|
|
@@ -72,7 +72,7 @@ async function resolveBase(flag) {
|
|
|
72
72
|
if (flag) return flag;
|
|
73
73
|
if (process.env.AGENT_YES_CALLBACK_BASE) return process.env.AGENT_YES_CALLBACK_BASE;
|
|
74
74
|
try {
|
|
75
|
-
const { resolveLocalServeUrl } = await import("./serve-
|
|
75
|
+
const { resolveLocalServeUrl } = await import("./serve-Cs-Lt6SN.js");
|
|
76
76
|
const url = await resolveLocalServeUrl();
|
|
77
77
|
if (url) return url;
|
|
78
78
|
} catch {}
|
|
@@ -187,4 +187,4 @@ async function cmdCallback(rest) {
|
|
|
187
187
|
|
|
188
188
|
//#endregion
|
|
189
189
|
export { loadOrCreateCallbackSecret as i, isCallbackRevoked as n, loadCallbackSecretReadOnly as r, cmdCallback as t };
|
|
190
|
-
//# sourceMappingURL=callback-
|
|
190
|
+
//# sourceMappingURL=callback-DmvfKCtq.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-zdFbz1ST.js";
|
|
3
3
|
import { n as logger } from "./logger-CDIsZ-Pp.js";
|
|
4
|
-
import { a as versionString, r as displayVersion, t as checkAndAutoUpdate } from "./versionChecker-
|
|
5
|
-
import { m as getRustBinary } from "./rustBinary-
|
|
4
|
+
import { a as versionString, r as displayVersion, t as checkAndAutoUpdate } from "./versionChecker-DyApQljg.js";
|
|
5
|
+
import { m as getRustBinary } from "./rustBinary-DLwor5QY.js";
|
|
6
6
|
import { argv } from "process";
|
|
7
7
|
import { spawn } from "child_process";
|
|
8
8
|
import ms from "ms";
|
|
@@ -295,7 +295,7 @@ function buildRustArgs(argv, cliFromScript, supportedClis) {
|
|
|
295
295
|
const rawArg = process.argv[2];
|
|
296
296
|
const managerCommands = !invokedCliName(process.argv);
|
|
297
297
|
const isHelpFlag = rawArg === "-h" || rawArg === "--help";
|
|
298
|
-
const { isSubcommand, runSubcommand, cmdHelp, isUnknownManagerToken, isBareManagerInvocation } = await import("./subcommands-
|
|
298
|
+
const { isSubcommand, runSubcommand, cmdHelp, isUnknownManagerToken, isBareManagerInvocation } = await import("./subcommands-Cmp7rdRG.js");
|
|
299
299
|
if (isHelpFlag && process.argv.length === 3) {
|
|
300
300
|
await cmdHelp(managerCommands);
|
|
301
301
|
process.exit(0);
|
|
@@ -309,7 +309,7 @@ function buildRustArgs(argv, cliFromScript, supportedClis) {
|
|
|
309
309
|
process.exit(code ?? 0);
|
|
310
310
|
}
|
|
311
311
|
{
|
|
312
|
-
const { SUPPORTED_CLIS } = await import("./SUPPORTED_CLIS-
|
|
312
|
+
const { SUPPORTED_CLIS } = await import("./SUPPORTED_CLIS-nzin57HV.js");
|
|
313
313
|
if (isUnknownManagerToken(rawArg, managerCommands, SUPPORTED_CLIS)) {
|
|
314
314
|
process.stderr.write(`ay: unknown subcommand or CLI '${rawArg}'.\n See 'ay help' for subcommands. To run an agent, name a CLI:\n 'ay <cli> …' (e.g. 'ay claude …') or 'ay --cli <cli> …'.\n`);
|
|
315
315
|
process.exit(1);
|
|
@@ -360,7 +360,7 @@ if (config.useRust) {
|
|
|
360
360
|
}
|
|
361
361
|
}
|
|
362
362
|
if (rustBinary) {
|
|
363
|
-
const { SUPPORTED_CLIS } = await import("./SUPPORTED_CLIS-
|
|
363
|
+
const { SUPPORTED_CLIS } = await import("./SUPPORTED_CLIS-nzin57HV.js");
|
|
364
364
|
const rustArgs = buildRustArgs(process.argv, config.cli, SUPPORTED_CLIS);
|
|
365
365
|
if (config.verbose) {
|
|
366
366
|
console.log(`[rust] Using binary: ${rustBinary}`);
|
|
@@ -8,7 +8,7 @@ import "./configShared-De4bR5hH.js";
|
|
|
8
8
|
import "./webrtcLink-va_gAR77.js";
|
|
9
9
|
import "./remotes-DevcBeLl.js";
|
|
10
10
|
import "./roomReplyAlias-DFqg_6IU.js";
|
|
11
|
-
import { V as listRecords, bt as flattenForest, v as deriveLiveState, yt as buildAgentForest } from "./subcommands-
|
|
11
|
+
import { V as listRecords, bt as flattenForest, v as deriveLiveState, yt as buildAgentForest } from "./subcommands-CbMkQsMA.js";
|
|
12
12
|
import "./notifyStore-DIfkfKB2.js";
|
|
13
13
|
import { i as systemStats, n as sampleTrees, r as snapshotProcs, t as humanBytes } from "./procStats-BvmrBrOs.js";
|
|
14
14
|
import yargs from "yargs";
|
|
@@ -331,4 +331,4 @@ function readPpidSync(pid) {
|
|
|
331
331
|
|
|
332
332
|
//#endregion
|
|
333
333
|
export { cmdPs };
|
|
334
|
-
//# sourceMappingURL=cmdPs-
|
|
334
|
+
//# sourceMappingURL=cmdPs-FvPn5mQm.js.map
|
package/dist/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import "./logger-CDIsZ-Pp.js";
|
|
2
|
-
import "./versionChecker-
|
|
3
|
-
import { a as hasTodoStore, i as answerAsk, l as AgentContext, n as agentYes, o as listAsks, r as config, s as listAsksForProject, t as CLIS_CONFIG } from "./ts-
|
|
2
|
+
import "./versionChecker-DyApQljg.js";
|
|
3
|
+
import { a as hasTodoStore, i as answerAsk, l as AgentContext, n as agentYes, o as listAsks, r as config, s as listAsksForProject, t as CLIS_CONFIG } from "./ts-nJbsXlEF.js";
|
|
4
4
|
import { a as renderTree, c as describeBlock, i as renderDigest, l as monitorHint, o as unblockedTasks, r as openBlockers, t as reconcileTodos, u as removeControlCharacters } from "./todoAutomation-TTp_Qz9G.js";
|
|
5
5
|
import "./JsonlStore-BpYZZTap.js";
|
|
6
6
|
import "./globalPidIndex-CRB5KtyL.js";
|
|
@@ -8,7 +8,7 @@ import "./configShared-De4bR5hH.js";
|
|
|
8
8
|
import "./webrtcLink-va_gAR77.js";
|
|
9
9
|
import "./remotes-DevcBeLl.js";
|
|
10
10
|
import "./roomReplyAlias-DFqg_6IU.js";
|
|
11
|
-
import { $ as renderLogTailLines, N as isPidAlive, V as listRecords, v as deriveLiveState } from "./subcommands-
|
|
11
|
+
import { $ as renderLogTailLines, N as isPidAlive, V as listRecords, v as deriveLiveState } from "./subcommands-CbMkQsMA.js";
|
|
12
12
|
import { f as readInbox, g as daemonLockOwnerPath, h as daemonLockDir, i as gcInboxes, l as listInboxParents, m as shouldStealLock, n as appendEvent, s as hostId, u as liveWatchers, x as notifyDir } from "./notifyStore-DIfkfKB2.js";
|
|
13
13
|
import { mkdir, readFile, rename, rm, stat, writeFile } from "fs/promises";
|
|
14
14
|
import { randomUUID } from "node:crypto";
|
|
@@ -880,4 +880,4 @@ async function ensureDaemon() {
|
|
|
880
880
|
|
|
881
881
|
//#endregion
|
|
882
882
|
export { daemonStatus, ensureDaemon, requestDaemonStop, runDaemon };
|
|
883
|
-
//# sourceMappingURL=notifyDaemon-
|
|
883
|
+
//# sourceMappingURL=notifyDaemon-Csp3Twzu.js.map
|
|
@@ -338,7 +338,7 @@ async function isParentWatching(parentWrapperPid, parentAgentPid, selfAgentPid,
|
|
|
338
338
|
logger.debug("[parent-ping] watcher lookup failed:", error);
|
|
339
339
|
}
|
|
340
340
|
try {
|
|
341
|
-
const { lastReadAt, READ_WINDOW_MS } = await import("./subcommands-
|
|
341
|
+
const { lastReadAt, READ_WINDOW_MS } = await import("./subcommands-Cmp7rdRG.js");
|
|
342
342
|
const last = await lastReadAt(`agent:${parentAgentPid}`, selfAgentPid);
|
|
343
343
|
if (last !== null && now - last <= READ_WINDOW_MS) return true;
|
|
344
344
|
} catch (error) {
|
|
@@ -466,4 +466,4 @@ function startParentPingLoop(opts) {
|
|
|
466
466
|
|
|
467
467
|
//#endregion
|
|
468
468
|
export { startParentPingLoop };
|
|
469
|
-
//# sourceMappingURL=parentPingLoop-
|
|
469
|
+
//# sourceMappingURL=parentPingLoop-Dx7WYF54.js.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import "./versionChecker-
|
|
2
|
-
import { a as ensureExecutable, c as findSpawnHiddenLauncher, d as getBinDir, f as getBinaryName, h as hasValidMacSignature, i as ensureAyrsBinary, l as findTrayLauncher, m as getRustBinary, n as devBuildInfo, o as findAyrsBinary, p as getDownloadUrl, r as downloadBinary, s as findRustBinary, t as chmodExtractedBinaries, u as gcOldBinaryDirs } from "./rustBinary-
|
|
1
|
+
import "./versionChecker-DyApQljg.js";
|
|
2
|
+
import { a as ensureExecutable, c as findSpawnHiddenLauncher, d as getBinDir, f as getBinaryName, h as hasValidMacSignature, i as ensureAyrsBinary, l as findTrayLauncher, m as getRustBinary, n as devBuildInfo, o as findAyrsBinary, p as getDownloadUrl, r as downloadBinary, s as findRustBinary, t as chmodExtractedBinaries, u as gcOldBinaryDirs } from "./rustBinary-DLwor5QY.js";
|
|
3
3
|
|
|
4
4
|
export { ensureAyrsBinary, findAyrsBinary, gcOldBinaryDirs };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { i as getInstalledPackage, n as compareVersions } from "./versionChecker-
|
|
1
|
+
import { i as getInstalledPackage, n as compareVersions } from "./versionChecker-DyApQljg.js";
|
|
2
2
|
import { execFileSync } from "child_process";
|
|
3
3
|
import { accessSync, chmodSync, constants, existsSync, mkdirSync, readdirSync, rmSync, statSync, unlinkSync } from "fs";
|
|
4
4
|
import { chmod, copyFile } from "fs/promises";
|
|
@@ -435,4 +435,4 @@ async function getRustBinary(options = {}) {
|
|
|
435
435
|
|
|
436
436
|
//#endregion
|
|
437
437
|
export { ensureExecutable as a, findSpawnHiddenLauncher as c, getBinDir as d, getBinaryName as f, hasValidMacSignature as h, ensureAyrsBinary as i, findTrayLauncher as l, getRustBinary as m, devBuildInfo as n, findAyrsBinary as o, getDownloadUrl as p, downloadBinary as r, findRustBinary as s, chmodExtractedBinaries as t, gcOldBinaryDirs as u };
|
|
438
|
-
//# sourceMappingURL=rustBinary-
|
|
438
|
+
//# sourceMappingURL=rustBinary-DLwor5QY.js.map
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import "./logger-CDIsZ-Pp.js";
|
|
2
|
-
import "./versionChecker-
|
|
3
|
-
import "./ts-
|
|
2
|
+
import "./versionChecker-DyApQljg.js";
|
|
3
|
+
import "./ts-nJbsXlEF.js";
|
|
4
4
|
import "./todoAutomation-TTp_Qz9G.js";
|
|
5
5
|
import "./JsonlStore-BpYZZTap.js";
|
|
6
6
|
import "./globalPidIndex-CRB5KtyL.js";
|
|
7
7
|
import "./pidStore-433kvh9D.js";
|
|
8
8
|
import "./messageLog-Dq_ka-Bt.js";
|
|
9
9
|
import "./todoStore-C9RTz0Vs.js";
|
|
10
|
-
import { t as SUPPORTED_CLIS } from "./SUPPORTED_CLIS-
|
|
10
|
+
import { t as SUPPORTED_CLIS } from "./SUPPORTED_CLIS-DCmlGzDK.js";
|
|
11
11
|
import { f as resolveSpawnCwd } from "./workspaceConfig-BLWB5Wu9.js";
|
|
12
12
|
import { n as liveEnv, t as ensureNodeRuntime } from "./nodeRuntime-DGMQRTGT.js";
|
|
13
13
|
import { createHash } from "node:crypto";
|
|
@@ -154,4 +154,4 @@ async function cmdSchedule(rest) {
|
|
|
154
154
|
|
|
155
155
|
//#endregion
|
|
156
156
|
export { cmdSchedule };
|
|
157
|
-
//# sourceMappingURL=schedule-
|
|
157
|
+
//# sourceMappingURL=schedule-Des120DU.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import "./logger-CDIsZ-Pp.js";
|
|
2
|
-
import { i as getInstalledPackage } from "./versionChecker-
|
|
3
|
-
import { c as findSpawnHiddenLauncher } from "./rustBinary-
|
|
4
|
-
import { c as permissionBadge, i as answerAsk, o as listAsks, u as CLAUDE_SESSION_PIN_ENV } from "./ts-
|
|
2
|
+
import { i as getInstalledPackage } from "./versionChecker-DyApQljg.js";
|
|
3
|
+
import { c as findSpawnHiddenLauncher } from "./rustBinary-DLwor5QY.js";
|
|
4
|
+
import { c as permissionBadge, i as answerAsk, o as listAsks, u as CLAUDE_SESSION_PIN_ENV } from "./ts-nJbsXlEF.js";
|
|
5
5
|
import { t as agentYesHome$1 } from "./agentYesHome-JmJC28YX.js";
|
|
6
6
|
import { u as removeControlCharacters } from "./todoAutomation-TTp_Qz9G.js";
|
|
7
7
|
import "./JsonlStore-BpYZZTap.js";
|
|
@@ -12,20 +12,20 @@ import { t as pgidForWrapper } from "./reaper-C2cuougX.js";
|
|
|
12
12
|
import "./todoStore-C9RTz0Vs.js";
|
|
13
13
|
import "./e2e-BdLf8DvY.js";
|
|
14
14
|
import "./configShared-De4bR5hH.js";
|
|
15
|
-
import { t as SUPPORTED_CLIS } from "./SUPPORTED_CLIS-
|
|
15
|
+
import { t as SUPPORTED_CLIS } from "./SUPPORTED_CLIS-DCmlGzDK.js";
|
|
16
16
|
import { i as isWebrtcSpec, o as toWebrtcUrl } from "./webrtcLink-va_gAR77.js";
|
|
17
17
|
import "./remotes-DevcBeLl.js";
|
|
18
18
|
import "./roomReplyAlias-DFqg_6IU.js";
|
|
19
|
-
import { $ as renderLogTailLines, C as extractBadges, E as extractTaskCounts, J as readLogForRender, P as isSlashCommand, Q as recentReadEdges, R as isUserTyping, T as extractNeedsInput, V as listRecords, X as readPtysize, Y as readNotes, Z as recentMessageEdges, _t as shouldFramePaste, ct as snapshotStatus, et as renderRawLog, f as cliDefaults, gt as framePaste, h as controlCodeFromName, ht as withIpcLock, mt as writeToIpc, nt as resolveOne, tt as renderRawLogLines, vt as TYPING_BADGE, y as deriveLiveStatus } from "./subcommands-
|
|
19
|
+
import { $ as renderLogTailLines, C as extractBadges, E as extractTaskCounts, J as readLogForRender, P as isSlashCommand, Q as recentReadEdges, R as isUserTyping, T as extractNeedsInput, V as listRecords, X as readPtysize, Y as readNotes, Z as recentMessageEdges, _t as shouldFramePaste, ct as snapshotStatus, et as renderRawLog, f as cliDefaults, gt as framePaste, h as controlCodeFromName, ht as withIpcLock, mt as writeToIpc, nt as resolveOne, tt as renderRawLogLines, vt as TYPING_BADGE, y as deriveLiveStatus } from "./subcommands-CbMkQsMA.js";
|
|
20
20
|
import { c as isTransientLockMkdirError } from "./notifyStore-DIfkfKB2.js";
|
|
21
21
|
import { i as frameVisitorMessage, s as verifyCapability, t as MAX_CALLBACK_MSG_BYTES } from "./callbackCore-BesbQ6-Z.js";
|
|
22
|
-
import { n as isCallbackRevoked, r as loadCallbackSecretReadOnly } from "./callback-
|
|
22
|
+
import { n as isCallbackRevoked, r as loadCallbackSecretReadOnly } from "./callback-DmvfKCtq.js";
|
|
23
23
|
import { n as sampleTrees } from "./procStats-BvmrBrOs.js";
|
|
24
24
|
import { a as getProvisionRoot, d as isProvisionAllowed, f as resolveSpawnCwd, i as getProvisionHook, l as hasProvisionHook, o as getSpawnHook, t as allowsSkipPermissions, u as hasSpawnHook } from "./workspaceConfig-BLWB5Wu9.js";
|
|
25
25
|
import { n as liveEnv, t as ensureNodeRuntime } from "./nodeRuntime-DGMQRTGT.js";
|
|
26
|
-
import { i as importProvisionModule } from "./ws-
|
|
26
|
+
import { i as importProvisionModule } from "./ws-BSX049_p.js";
|
|
27
27
|
import { r as spawnRejectionReason } from "./spawnGate-lr3tvA6U.js";
|
|
28
|
-
import { i as launchTray } from "./trayApp-
|
|
28
|
+
import { i as launchTray } from "./trayApp-BUvcPna_.js";
|
|
29
29
|
import yargs from "yargs";
|
|
30
30
|
import { appendFile, mkdir, open, readFile, readdir, rename, rm, stat, unlink, writeFile } from "fs/promises";
|
|
31
31
|
import { arch, cpus, freemem, homedir, hostname, loadavg, platform, totalmem, uptime, userInfo } from "os";
|
|
@@ -1345,7 +1345,7 @@ async function warnStrayServeProcesses() {
|
|
|
1345
1345
|
}
|
|
1346
1346
|
async function daemonShareRuntime(args) {
|
|
1347
1347
|
const { daemonShareRuntime: decide } = await import("./serveRust-CbBrcUrg.js");
|
|
1348
|
-
const { findAyrsBinary } = await import("./rustBinary-
|
|
1348
|
+
const { findAyrsBinary } = await import("./rustBinary-BYIwfdRn.js");
|
|
1349
1349
|
return decide(args, () => !!findAyrsBinary());
|
|
1350
1350
|
}
|
|
1351
1351
|
function explicitWebrtcUrl(args) {
|
|
@@ -1643,7 +1643,7 @@ async function cmdServeStatus(args) {
|
|
|
1643
1643
|
const token = await loadTokenReadOnly();
|
|
1644
1644
|
const daemonArgs = mgr ? await readDaemonServeArgs(mgr) : null;
|
|
1645
1645
|
const installed = daemonArgs !== null;
|
|
1646
|
-
const { daemonShareLink, foregroundAyrsShareLink } = await import("./shareCmd-
|
|
1646
|
+
const { daemonShareLink, foregroundAyrsShareLink } = await import("./shareCmd-CMLG3298.js");
|
|
1647
1647
|
const shareLink = (installed ? await daemonShareLink(daemonArgs) : await foregroundAyrsShareLink()) ?? await readShareLink();
|
|
1648
1648
|
const running = installed ? await readDaemonRunning(mgr) : false;
|
|
1649
1649
|
const a = daemonArgs ?? [];
|
|
@@ -1777,14 +1777,14 @@ Options:
|
|
|
1777
1777
|
const { planRustServe } = await import("./serveRust-CbBrcUrg.js");
|
|
1778
1778
|
const plan = planRustServe(rest);
|
|
1779
1779
|
if (plan.kind === "rust-only") {
|
|
1780
|
-
const { ensureAyrsBinary } = await import("./rustBinary-
|
|
1780
|
+
const { ensureAyrsBinary } = await import("./rustBinary-BYIwfdRn.js");
|
|
1781
1781
|
const ayrs = await ensureAyrsBinary();
|
|
1782
1782
|
if (ayrs) return runAyrsServe(ayrs, plan.argv);
|
|
1783
1783
|
process.stderr.write(`ay serve: ${plan.feature} needs the Rust daemon (ayrs), which was not found (bun run build:rs, or reinstall)\n`);
|
|
1784
1784
|
return 1;
|
|
1785
1785
|
}
|
|
1786
1786
|
if (plan.kind === "rust") {
|
|
1787
|
-
const { ensureAyrsBinary } = await import("./rustBinary-
|
|
1787
|
+
const { ensureAyrsBinary } = await import("./rustBinary-BYIwfdRn.js");
|
|
1788
1788
|
const ayrs = await ensureAyrsBinary();
|
|
1789
1789
|
if (ayrs) return runAyrsServe(ayrs, plan.argv);
|
|
1790
1790
|
process.stderr.write("ay serve: ayrs binary not found — running the TypeScript server (bun run build:rs, or reinstall, to get the Rust daemon)\n");
|
|
@@ -2765,7 +2765,7 @@ Options:
|
|
|
2765
2765
|
}
|
|
2766
2766
|
});
|
|
2767
2767
|
if (req.method === "GET" && p === "/api/ws") {
|
|
2768
|
-
const ws = await import("./ws-
|
|
2768
|
+
const ws = await import("./ws-DkxUxntV.js");
|
|
2769
2769
|
try {
|
|
2770
2770
|
await ws.loadProvision();
|
|
2771
2771
|
} catch (e) {
|
|
@@ -2785,7 +2785,7 @@ Options:
|
|
|
2785
2785
|
if (req.method === "GET" && p === "/api/ws/status") {
|
|
2786
2786
|
const dirRaw = url.searchParams.get("path");
|
|
2787
2787
|
if (!dirRaw) return new Response("missing ?path=<workspace dir>", { status: 400 });
|
|
2788
|
-
const ws = await import("./ws-
|
|
2788
|
+
const ws = await import("./ws-DkxUxntV.js");
|
|
2789
2789
|
let prov;
|
|
2790
2790
|
try {
|
|
2791
2791
|
prov = await ws.loadProvision();
|
|
@@ -2807,7 +2807,7 @@ Options:
|
|
|
2807
2807
|
}
|
|
2808
2808
|
}
|
|
2809
2809
|
if (req.method === "GET" && p === "/api/ws/repos") {
|
|
2810
|
-
const ws = await import("./ws-
|
|
2810
|
+
const ws = await import("./ws-DkxUxntV.js");
|
|
2811
2811
|
try {
|
|
2812
2812
|
await ws.loadProvision();
|
|
2813
2813
|
} catch (e) {
|
|
@@ -2888,7 +2888,7 @@ Options:
|
|
|
2888
2888
|
const m = /^([A-Za-z0-9_.-]+)\/([A-Za-z0-9_.-]+)$/.exec(repoParam);
|
|
2889
2889
|
if (!m || m[1] === "." || m[1] === ".." || m[2] === "." || m[2] === "..") return new Response("missing/invalid ?repo=<owner>/<repo>", { status: 400 });
|
|
2890
2890
|
const [, owner, repo] = m;
|
|
2891
|
-
const ws = await import("./ws-
|
|
2891
|
+
const ws = await import("./ws-DkxUxntV.js");
|
|
2892
2892
|
let prov;
|
|
2893
2893
|
try {
|
|
2894
2894
|
prov = await ws.loadProvision();
|
|
@@ -3812,7 +3812,7 @@ Options:
|
|
|
3812
3812
|
const perm = body.perm ?? "r";
|
|
3813
3813
|
if (perm !== "r" && perm !== "rw") return new Response(`invalid perm ${perm} (want r or rw)`, { status: 400 });
|
|
3814
3814
|
try {
|
|
3815
|
-
const { createScopedShare } = await import("./agentShare-
|
|
3815
|
+
const { createScopedShare } = await import("./agentShare-HNPcxfQF.js");
|
|
3816
3816
|
const share = await createScopedShare({
|
|
3817
3817
|
agent: body.agent,
|
|
3818
3818
|
perm,
|
|
@@ -3827,12 +3827,12 @@ Options:
|
|
|
3827
3827
|
}
|
|
3828
3828
|
}
|
|
3829
3829
|
if (req.method === "GET" && p === "/api/shares") {
|
|
3830
|
-
const { listShares } = await import("./agentShare-
|
|
3830
|
+
const { listShares } = await import("./agentShare-HNPcxfQF.js");
|
|
3831
3831
|
return Response.json(listShares());
|
|
3832
3832
|
}
|
|
3833
3833
|
const revokeM = /^\/api\/share\/([^/]+)$/.exec(p);
|
|
3834
3834
|
if (req.method === "DELETE" && revokeM) {
|
|
3835
|
-
const { revokeShare } = await import("./agentShare-
|
|
3835
|
+
const { revokeShare } = await import("./agentShare-HNPcxfQF.js");
|
|
3836
3836
|
const ok = revokeShare(decodeURIComponent(revokeM[1]));
|
|
3837
3837
|
return new Response(ok ? "revoked" : "no such share", { status: ok ? 200 : 404 });
|
|
3838
3838
|
}
|
|
@@ -4144,7 +4144,7 @@ Options:
|
|
|
4144
4144
|
const shutdown = (resolve) => {
|
|
4145
4145
|
if (heartbeat) clearInterval(heartbeat);
|
|
4146
4146
|
closeShare?.();
|
|
4147
|
-
import("./agentShare-
|
|
4147
|
+
import("./agentShare-HNPcxfQF.js").then((m) => m.revokeAllShares()).catch(() => {});
|
|
4148
4148
|
server?.stop();
|
|
4149
4149
|
Promise.resolve(releaseHostLock?.()).catch(() => {}).then(resolve);
|
|
4150
4150
|
};
|
|
@@ -4157,4 +4157,4 @@ Options:
|
|
|
4157
4157
|
|
|
4158
4158
|
//#endregion
|
|
4159
4159
|
export { cmdServe, inspectServeDaemon, loadTokenReadOnly, mintScopedTermToken, resolveDaemonHttpBase, resolveLocalServeUrl };
|
|
4160
|
-
//# sourceMappingURL=serve-
|
|
4160
|
+
//# sourceMappingURL=serve-Cs-Lt6SN.js.map
|
|
@@ -97,7 +97,7 @@ async function cmdSetup(rest) {
|
|
|
97
97
|
} catch {}
|
|
98
98
|
if (noShare) return 0;
|
|
99
99
|
process.stdout.write(`\nsharing this machine to agent-yes.com…\n`);
|
|
100
|
-
const { cmdServe } = await import("./serve-
|
|
100
|
+
const { cmdServe } = await import("./serve-Cs-Lt6SN.js");
|
|
101
101
|
return cmdServe([
|
|
102
102
|
"install",
|
|
103
103
|
"--share",
|
|
@@ -107,4 +107,4 @@ async function cmdSetup(rest) {
|
|
|
107
107
|
|
|
108
108
|
//#endregion
|
|
109
109
|
export { cmdSetup };
|
|
110
|
-
//# sourceMappingURL=setup-
|
|
110
|
+
//# sourceMappingURL=setup-zHEPmtOW.js.map
|
|
@@ -244,7 +244,7 @@ Options:
|
|
|
244
244
|
--port N HTTP port (default: ${DEFAULT_SHARE_PORT}, or the daemon's)\n --path /ay tailscale mount path (default: ${DEFAULT_TS_PATH})\n -y, --yes approve the shown commands without prompting\n --json print {mode, url} as JSON\n\nThe URL carries this host's serve token: whoever holds it can read and steer\nevery agent here. Rotate: rm ~/.agent-yes/.serve-token && ay serve install\n`;
|
|
245
245
|
async function shareRuntimeOf(args) {
|
|
246
246
|
const { daemonShareRuntime } = await import("./serveRust-CbBrcUrg.js");
|
|
247
|
-
const { findAyrsBinary } = await import("./rustBinary-
|
|
247
|
+
const { findAyrsBinary } = await import("./rustBinary-BYIwfdRn.js");
|
|
248
248
|
return daemonShareRuntime(args ?? [], () => !!findAyrsBinary());
|
|
249
249
|
}
|
|
250
250
|
async function daemonShareLink(args) {
|
|
@@ -260,7 +260,7 @@ async function daemonShareLink(args) {
|
|
|
260
260
|
async function foregroundAyrsShareLink() {
|
|
261
261
|
const { readShareRoom, shareLinkFromRoomUrl } = await import("./share-DrS3LYqf.js");
|
|
262
262
|
const { parseWebrtcLink } = await import("./webrtcLink-SsInrVHU.js");
|
|
263
|
-
const { isPidAlive } = await import("./subcommands-
|
|
263
|
+
const { isPidAlive } = await import("./subcommands-Cmp7rdRG.js");
|
|
264
264
|
const { agentYesHome } = await import("./agentYesHome-CYNNNP71.js");
|
|
265
265
|
const { readFile } = await import("fs/promises");
|
|
266
266
|
const path = await import("path");
|
|
@@ -276,7 +276,7 @@ async function foregroundAyrsShareLink() {
|
|
|
276
276
|
}
|
|
277
277
|
}
|
|
278
278
|
async function cmdShareStatus(mount) {
|
|
279
|
-
const { inspectServeDaemon } = await import("./serve-
|
|
279
|
+
const { inspectServeDaemon } = await import("./serve-Cs-Lt6SN.js");
|
|
280
280
|
const [d, ts] = await Promise.all([inspectServeDaemon(), detectTailscale()]);
|
|
281
281
|
const line = (k, v) => process.stdout.write(`${k.padEnd(11)}${v}\n`);
|
|
282
282
|
if (d.args === null) {
|
|
@@ -323,7 +323,7 @@ async function cmdShare(rest) {
|
|
|
323
323
|
process.stderr.write(`ay share: unknown mode '${mode}' — one of ${SHARE_MODES.join(", ")}\n`);
|
|
324
324
|
return 1;
|
|
325
325
|
}
|
|
326
|
-
const { inspectServeDaemon, cmdServe } = await import("./serve-
|
|
326
|
+
const { inspectServeDaemon, cmdServe } = await import("./serve-Cs-Lt6SN.js");
|
|
327
327
|
const [daemon, ts] = await Promise.all([inspectServeDaemon(), detectTailscale()]);
|
|
328
328
|
const lanIp = pickLanIp(networkInterfaces());
|
|
329
329
|
if (!mode) {
|
|
@@ -448,4 +448,4 @@ async function cmdShare(rest) {
|
|
|
448
448
|
|
|
449
449
|
//#endregion
|
|
450
450
|
export { cmdShare, daemonShareLink, foregroundAyrsShareLink };
|
|
451
|
-
//# sourceMappingURL=shareCmd-
|
|
451
|
+
//# sourceMappingURL=shareCmd-CMLG3298.js.map
|
|
@@ -2145,7 +2145,7 @@ async function runSubcommand(argv) {
|
|
|
2145
2145
|
switch (sub) {
|
|
2146
2146
|
case "ls":
|
|
2147
2147
|
case "list": return await cmdLs(rest);
|
|
2148
|
-
case "ps": return await (await import("./cmdPs-
|
|
2148
|
+
case "ps": return await (await import("./cmdPs-FvPn5mQm.js")).cmdPs(rest);
|
|
2149
2149
|
case "status": return await cmdStatus(rest);
|
|
2150
2150
|
case "whoami": return await cmdWhoami(rest);
|
|
2151
2151
|
case "result": return await cmdResult(rest);
|
|
@@ -2194,35 +2194,35 @@ async function runSubcommand(argv) {
|
|
|
2194
2194
|
return cmdCh(rest);
|
|
2195
2195
|
}
|
|
2196
2196
|
case "term": {
|
|
2197
|
-
const { cmdTerm } = await import("./terminal-
|
|
2197
|
+
const { cmdTerm } = await import("./terminal-B3SL27FO.js");
|
|
2198
2198
|
return cmdTerm(rest);
|
|
2199
2199
|
}
|
|
2200
2200
|
case "widget": {
|
|
2201
|
-
const { cmdWidget } = await import("./widget-
|
|
2201
|
+
const { cmdWidget } = await import("./widget-D7hK3agu.js");
|
|
2202
2202
|
return cmdWidget(rest);
|
|
2203
2203
|
}
|
|
2204
2204
|
case "mint": {
|
|
2205
|
-
const { cmdMint } = await import("./widget-
|
|
2205
|
+
const { cmdMint } = await import("./widget-D7hK3agu.js");
|
|
2206
2206
|
return cmdMint(rest);
|
|
2207
2207
|
}
|
|
2208
2208
|
case "serve": {
|
|
2209
|
-
const { cmdServe } = await import("./serve-
|
|
2209
|
+
const { cmdServe } = await import("./serve-Cs-Lt6SN.js");
|
|
2210
2210
|
return cmdServe(rest);
|
|
2211
2211
|
}
|
|
2212
2212
|
case "tray": {
|
|
2213
|
-
const { cmdTray } = await import("./trayApp-
|
|
2213
|
+
const { cmdTray } = await import("./trayApp-CL3y3c_n.js");
|
|
2214
2214
|
return cmdTray(rest);
|
|
2215
2215
|
}
|
|
2216
2216
|
case "setup": {
|
|
2217
|
-
const { cmdSetup } = await import("./setup-
|
|
2217
|
+
const { cmdSetup } = await import("./setup-zHEPmtOW.js");
|
|
2218
2218
|
return cmdSetup(rest);
|
|
2219
2219
|
}
|
|
2220
2220
|
case "ws": {
|
|
2221
|
-
const { cmdWs } = await import("./ws-
|
|
2221
|
+
const { cmdWs } = await import("./ws-DkxUxntV.js");
|
|
2222
2222
|
return cmdWs(rest);
|
|
2223
2223
|
}
|
|
2224
2224
|
case "schedule": {
|
|
2225
|
-
const { cmdSchedule } = await import("./schedule-
|
|
2225
|
+
const { cmdSchedule } = await import("./schedule-Des120DU.js");
|
|
2226
2226
|
return cmdSchedule(rest);
|
|
2227
2227
|
}
|
|
2228
2228
|
case "remote": {
|
|
@@ -2230,7 +2230,7 @@ async function runSubcommand(argv) {
|
|
|
2230
2230
|
return cmdRemote(rest);
|
|
2231
2231
|
}
|
|
2232
2232
|
case "share": {
|
|
2233
|
-
const { cmdShare } = await import("./shareCmd-
|
|
2233
|
+
const { cmdShare } = await import("./shareCmd-CMLG3298.js");
|
|
2234
2234
|
return cmdShare(rest);
|
|
2235
2235
|
}
|
|
2236
2236
|
case "connect": {
|
|
@@ -2242,7 +2242,7 @@ async function runSubcommand(argv) {
|
|
|
2242
2242
|
return cmdExpose(rest);
|
|
2243
2243
|
}
|
|
2244
2244
|
case "callback": {
|
|
2245
|
-
const { cmdCallback } = await import("./callback-
|
|
2245
|
+
const { cmdCallback } = await import("./callback-CT0zTgVr.js");
|
|
2246
2246
|
return cmdCallback(rest);
|
|
2247
2247
|
}
|
|
2248
2248
|
case "reap":
|
|
@@ -2253,7 +2253,7 @@ async function runSubcommand(argv) {
|
|
|
2253
2253
|
return await cmdDsh(rest);
|
|
2254
2254
|
}
|
|
2255
2255
|
case "gc": {
|
|
2256
|
-
const { gcOldBinaryDirs } = await import("./rustBinary-
|
|
2256
|
+
const { gcOldBinaryDirs } = await import("./rustBinary-BYIwfdRn.js");
|
|
2257
2257
|
const { gcLogs } = await import("./globalPidIndex-BftWlg2V.js");
|
|
2258
2258
|
const bins = gcOldBinaryDirs();
|
|
2259
2259
|
const logs = await gcLogs();
|
|
@@ -6013,7 +6013,7 @@ async function cmdAttach(rest) {
|
|
|
6013
6013
|
const winsizeDir = path.join(ayHome, "winsize");
|
|
6014
6014
|
await mkdir(winsizeDir, { recursive: true });
|
|
6015
6015
|
const winsizePath = path.join(winsizeDir, String(record.pid));
|
|
6016
|
-
const { resolveDaemonHttpBase, loadTokenReadOnly } = await import("./serve-
|
|
6016
|
+
const { resolveDaemonHttpBase, loadTokenReadOnly } = await import("./serve-Cs-Lt6SN.js");
|
|
6017
6017
|
const daemonBase = await resolveDaemonHttpBase().catch(() => null);
|
|
6018
6018
|
const daemonToken = daemonBase ? await loadTokenReadOnly().catch(() => null) ?? "" : "";
|
|
6019
6019
|
const capViewer = `attach:${process.pid}`;
|
|
@@ -6762,7 +6762,7 @@ async function cmdNotify(rest) {
|
|
|
6762
6762
|
}
|
|
6763
6763
|
const ensure = async () => {
|
|
6764
6764
|
if (!argv["ensure-daemon"]) return;
|
|
6765
|
-
const { ensureDaemon } = await import("./notifyDaemon-
|
|
6765
|
+
const { ensureDaemon } = await import("./notifyDaemon-Csp3Twzu.js");
|
|
6766
6766
|
await ensureDaemon().catch(() => null);
|
|
6767
6767
|
};
|
|
6768
6768
|
await heartbeatWatcher(parent, selfStartedAt);
|
|
@@ -6836,7 +6836,7 @@ async function cmdNotifyCursor(args) {
|
|
|
6836
6836
|
}
|
|
6837
6837
|
async function cmdNotifyd(rest) {
|
|
6838
6838
|
const sub = rest[0] ?? "status";
|
|
6839
|
-
const daemon = await import("./notifyDaemon-
|
|
6839
|
+
const daemon = await import("./notifyDaemon-Csp3Twzu.js");
|
|
6840
6840
|
switch (sub) {
|
|
6841
6841
|
case "run": return daemon.runDaemon();
|
|
6842
6842
|
case "once": return daemon.runDaemon({ once: true });
|
|
@@ -6863,4 +6863,4 @@ async function cmdNotifyd(rest) {
|
|
|
6863
6863
|
|
|
6864
6864
|
//#endregion
|
|
6865
6865
|
export { renderLogTailLines as $, isAgentStuck as A, lastStdinAt as B, extractBadges as C, finalizedLines as D, extractTaskCounts as E, isSubcommand as F, probeStdinReachable as G, matchKeyword as H, isUnknownManagerToken as I, readLogForRender as J, readAgentPtysize as K, isUnreachableWriteErrno as L, isExitRequest as M, isPidAlive as N, inspectSubmission as O, isSlashCommand as P, recentReadEdges as Q, isUserTyping as R, envelopeCostFor as S, extractNeedsInput as T, menuSelectKeys as U, listRecords as V, ownedCollapsedPaste as W, readPtysize as X, readNotes as Y, recentMessageEdges as Z, cwdLabel as _, shouldFramePaste as _t, READ_WINDOW_MS as a, restartHintLines as at, drainerLauncher as b, flattenForest as bt, SEND_EXIT_UNREACHABLE as c, snapshotStatus as ct, buildEnvelope as d, submitAndConfirm as dt, renderRawLog as et, cliDefaults as f, waitForLogQuiet as ft, cursorAbs as g, framePaste as gt, controlCodeFromName as h, withIpcLock as ht, READ_PAGE_DEFAULT as i, resolveResumeArgs as it, isBareManagerInvocation as j, isAgentIdShaped as k, TYPING_WINDOW_MS as l, stdinActivityPath as lt, confirmStdinUnreachable as m, writeToIpc as mt, GRACEFUL_EXIT_COMMANDS as n, resolveOne as nt, SEND_BODY_MAX_CHARS as o, runSubcommand as ot, cmdHelp as p, writeKeysPaced as pt, readComposerState as q, MAX_RENDER_BYTES as r, resolveReadWindow as rt, SEND_EXIT_QUEUED as s, sendPayloadCapError as st, COMPOSER_WINDOWS as t, renderRawLogLines as tt, backoffWhileTyping as u, stopTipForCli as ut, deriveLiveState as v, TYPING_BADGE as vt, extractMenu as w, envelopeAttribution as x, deriveLiveStatus as y, buildAgentForest as yt, lastReadAt as z };
|
|
6866
|
-
//# sourceMappingURL=subcommands-
|
|
6866
|
+
//# sourceMappingURL=subcommands-CbMkQsMA.js.map
|
|
@@ -8,7 +8,7 @@ import "./configShared-De4bR5hH.js";
|
|
|
8
8
|
import "./webrtcLink-va_gAR77.js";
|
|
9
9
|
import "./remotes-DevcBeLl.js";
|
|
10
10
|
import "./roomReplyAlias-DFqg_6IU.js";
|
|
11
|
-
import { $ as renderLogTailLines, A as isAgentStuck, B as lastStdinAt, C as extractBadges, D as finalizedLines, E as extractTaskCounts, F as isSubcommand, G as probeStdinReachable, H as matchKeyword, I as isUnknownManagerToken, J as readLogForRender, K as readAgentPtysize, L as isUnreachableWriteErrno, M as isExitRequest, N as isPidAlive, O as inspectSubmission, P as isSlashCommand, Q as recentReadEdges, R as isUserTyping, S as envelopeCostFor, T as extractNeedsInput, U as menuSelectKeys, V as listRecords, W as ownedCollapsedPaste, X as readPtysize, Y as readNotes, Z as recentMessageEdges, _ as cwdLabel, a as READ_WINDOW_MS, at as restartHintLines, b as drainerLauncher, c as SEND_EXIT_UNREACHABLE, ct as snapshotStatus, d as buildEnvelope, dt as submitAndConfirm, et as renderRawLog, f as cliDefaults, ft as waitForLogQuiet, g as cursorAbs, h as controlCodeFromName, i as READ_PAGE_DEFAULT, it as resolveResumeArgs, j as isBareManagerInvocation, k as isAgentIdShaped, l as TYPING_WINDOW_MS, lt as stdinActivityPath, m as confirmStdinUnreachable, mt as writeToIpc, n as GRACEFUL_EXIT_COMMANDS, nt as resolveOne, o as SEND_BODY_MAX_CHARS, ot as runSubcommand, p as cmdHelp, pt as writeKeysPaced, q as readComposerState, r as MAX_RENDER_BYTES, rt as resolveReadWindow, s as SEND_EXIT_QUEUED, st as sendPayloadCapError, t as COMPOSER_WINDOWS, tt as renderRawLogLines, u as backoffWhileTyping, ut as stopTipForCli, v as deriveLiveState, w as extractMenu, x as envelopeAttribution, y as deriveLiveStatus, z as lastReadAt } from "./subcommands-
|
|
11
|
+
import { $ as renderLogTailLines, A as isAgentStuck, B as lastStdinAt, C as extractBadges, D as finalizedLines, E as extractTaskCounts, F as isSubcommand, G as probeStdinReachable, H as matchKeyword, I as isUnknownManagerToken, J as readLogForRender, K as readAgentPtysize, L as isUnreachableWriteErrno, M as isExitRequest, N as isPidAlive, O as inspectSubmission, P as isSlashCommand, Q as recentReadEdges, R as isUserTyping, S as envelopeCostFor, T as extractNeedsInput, U as menuSelectKeys, V as listRecords, W as ownedCollapsedPaste, X as readPtysize, Y as readNotes, Z as recentMessageEdges, _ as cwdLabel, a as READ_WINDOW_MS, at as restartHintLines, b as drainerLauncher, c as SEND_EXIT_UNREACHABLE, ct as snapshotStatus, d as buildEnvelope, dt as submitAndConfirm, et as renderRawLog, f as cliDefaults, ft as waitForLogQuiet, g as cursorAbs, h as controlCodeFromName, i as READ_PAGE_DEFAULT, it as resolveResumeArgs, j as isBareManagerInvocation, k as isAgentIdShaped, l as TYPING_WINDOW_MS, lt as stdinActivityPath, m as confirmStdinUnreachable, mt as writeToIpc, n as GRACEFUL_EXIT_COMMANDS, nt as resolveOne, o as SEND_BODY_MAX_CHARS, ot as runSubcommand, p as cmdHelp, pt as writeKeysPaced, q as readComposerState, r as MAX_RENDER_BYTES, rt as resolveReadWindow, s as SEND_EXIT_QUEUED, st as sendPayloadCapError, t as COMPOSER_WINDOWS, tt as renderRawLogLines, u as backoffWhileTyping, ut as stopTipForCli, v as deriveLiveState, w as extractMenu, x as envelopeAttribution, y as deriveLiveStatus, z as lastReadAt } from "./subcommands-CbMkQsMA.js";
|
|
12
12
|
import "./notifyStore-DIfkfKB2.js";
|
|
13
13
|
|
|
14
14
|
export { READ_WINDOW_MS, cmdHelp, isBareManagerInvocation, isPidAlive, isSubcommand, isUnknownManagerToken, lastReadAt, runSubcommand };
|
|
@@ -98,7 +98,7 @@ async function cmdTermMint(args) {
|
|
|
98
98
|
if (flags.ro && flags.interactive) throw new Error("--ro and --interactive are mutually exclusive");
|
|
99
99
|
const ttlSec = parseTtlSec(typeof flags.ttl === "string" ? flags.ttl : "15m");
|
|
100
100
|
const canSend = flags.interactive === true;
|
|
101
|
-
const { mintScopedTermToken } = await import("./serve-
|
|
101
|
+
const { mintScopedTermToken } = await import("./serve-Cs-Lt6SN.js");
|
|
102
102
|
const r = await mintScopedTermToken(pid, {
|
|
103
103
|
ttlSec,
|
|
104
104
|
canSend
|
|
@@ -135,4 +135,4 @@ async function cmdTerm(args) {
|
|
|
135
135
|
|
|
136
136
|
//#endregion
|
|
137
137
|
export { cmdTerm };
|
|
138
|
-
//# sourceMappingURL=terminal-
|
|
138
|
+
//# sourceMappingURL=terminal-B3SL27FO.js.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { l as findTrayLauncher } from "./rustBinary-
|
|
1
|
+
import { l as findTrayLauncher } from "./rustBinary-DLwor5QY.js";
|
|
2
2
|
import { t as agentYesHome } from "./agentYesHome-JmJC28YX.js";
|
|
3
3
|
import { existsSync } from "node:fs";
|
|
4
4
|
import path from "node:path";
|
|
@@ -97,4 +97,4 @@ async function cmdTray(args) {
|
|
|
97
97
|
|
|
98
98
|
//#endregion
|
|
99
99
|
export { trayHiddenMarker as a, launchTray as i, hasDesktop as n, isTrayHidden as r, cmdTray as t };
|
|
100
|
-
//# sourceMappingURL=trayApp-
|
|
100
|
+
//# sourceMappingURL=trayApp-BUvcPna_.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { n as __esmMin, r as __exportAll } from "./chunk-cZBX9HZv.js";
|
|
2
2
|
import { n as logger, t as addTransport } from "./logger-CDIsZ-Pp.js";
|
|
3
|
-
import { i as getInstalledPackage } from "./versionChecker-
|
|
3
|
+
import { i as getInstalledPackage } from "./versionChecker-DyApQljg.js";
|
|
4
4
|
import { t as agentYesHome } from "./agentYesHome-JmJC28YX.js";
|
|
5
5
|
import { u as removeControlCharacters } from "./todoAutomation-TTp_Qz9G.js";
|
|
6
6
|
import { i as shouldUseLock, r as releaseLock, t as acquireLock } from "./runningLock-DMznYh45.js";
|
|
@@ -2086,7 +2086,7 @@ async function agentYes({ cli, cliArgs = [], skipPermissions = false, prompt, ro
|
|
|
2086
2086
|
}, 100);
|
|
2087
2087
|
const cleanupHeartbeat = () => clearInterval(heartbeatInterval);
|
|
2088
2088
|
shell.onExit(cleanupHeartbeat);
|
|
2089
|
-
const { startParentPingLoop } = await import("./parentPingLoop-
|
|
2089
|
+
const { startParentPingLoop } = await import("./parentPingLoop-Dx7WYF54.js");
|
|
2090
2090
|
const parentPingLoop = startParentPingLoop({
|
|
2091
2091
|
parentPid,
|
|
2092
2092
|
selfWrapperPid: process.pid,
|
|
@@ -2349,4 +2349,4 @@ function sleep(ms) {
|
|
|
2349
2349
|
|
|
2350
2350
|
//#endregion
|
|
2351
2351
|
export { hasTodoStore as a, permissionBadge as c, answerAsk as i, AgentContext as l, agentYes as n, listAsks as o, config as r, listAsksForProject as s, CLIS_CONFIG as t, CLAUDE_SESSION_PIN_ENV as u };
|
|
2352
|
-
//# sourceMappingURL=ts-
|
|
2352
|
+
//# sourceMappingURL=ts-nJbsXlEF.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.303.1
|
|
10
|
+
var version = "1.303.1";
|
|
11
11
|
|
|
12
12
|
//#endregion
|
|
13
13
|
//#region ts/versionChecker.ts
|
|
@@ -285,4 +285,4 @@ async function displayVersion() {
|
|
|
285
285
|
|
|
286
286
|
//#endregion
|
|
287
287
|
export { versionString as a, getInstalledPackage as i, compareVersions as n, displayVersion as r, checkAndAutoUpdate as t };
|
|
288
|
-
//# sourceMappingURL=versionChecker-
|
|
288
|
+
//# sourceMappingURL=versionChecker-DyApQljg.js.map
|
|
@@ -28,7 +28,7 @@ function parseFlags(args, known) {
|
|
|
28
28
|
}
|
|
29
29
|
/** Resolve the local daemon base URL + token (flags override discovery). */
|
|
30
30
|
async function daemonTarget(flags) {
|
|
31
|
-
const { resolveDaemonHttpBase, loadTokenReadOnly } = await import("./serve-
|
|
31
|
+
const { resolveDaemonHttpBase, loadTokenReadOnly } = await import("./serve-Cs-Lt6SN.js");
|
|
32
32
|
const base = typeof flags.base === "string" ? flags.base : await resolveDaemonHttpBase();
|
|
33
33
|
if (!base) throw new Error("no running ay serve daemon found — start `ay serve` or pass --base <url> (e.g. http://127.0.0.1:PORT)");
|
|
34
34
|
const token = typeof flags.token === "string" ? flags.token : await loadTokenReadOnly() ?? "";
|
|
@@ -186,7 +186,7 @@ async function cmdMint(args) {
|
|
|
186
186
|
const bad = caps.filter((c) => !KNOWN_CAPS.has(c));
|
|
187
187
|
if (bad.length) throw new Error(`unknown cap(s): ${bad.join(", ")} (valid: ${[...KNOWN_CAPS].join(", ")})`);
|
|
188
188
|
const ttlSec = parseTtlSec(typeof flags.ttl === "string" ? flags.ttl : "15m");
|
|
189
|
-
const { mintScopedTermToken } = await import("./serve-
|
|
189
|
+
const { mintScopedTermToken } = await import("./serve-Cs-Lt6SN.js");
|
|
190
190
|
const r = await mintScopedTermToken(target, {
|
|
191
191
|
ttlSec,
|
|
192
192
|
caps
|
|
@@ -202,4 +202,4 @@ async function cmdMint(args) {
|
|
|
202
202
|
|
|
203
203
|
//#endregion
|
|
204
204
|
export { cmdMint, cmdWidget };
|
|
205
|
-
//# sourceMappingURL=widget-
|
|
205
|
+
//# sourceMappingURL=widget-D7hK3agu.js.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { V as listRecords } from "./subcommands-
|
|
1
|
+
import { V as listRecords } from "./subcommands-CbMkQsMA.js";
|
|
2
2
|
import { a as getProvisionRoot } from "./workspaceConfig-BLWB5Wu9.js";
|
|
3
3
|
import { existsSync } from "fs";
|
|
4
4
|
import { lstat, opendir } from "fs/promises";
|
|
@@ -424,4 +424,4 @@ async function cmdWs(args) {
|
|
|
424
424
|
|
|
425
425
|
//#endregion
|
|
426
426
|
export { isPathInside as a, walkWorkspaces as c, importProvisionModule as i, workspaceStatus as l, cmdWs as n, loadProvision as o, collectWorkspaces as r, resolveOperand as s, WS_JSON_SCHEMA as t };
|
|
427
|
-
//# sourceMappingURL=ws-
|
|
427
|
+
//# sourceMappingURL=ws-BSX049_p.js.map
|
|
@@ -8,8 +8,8 @@ import "./configShared-De4bR5hH.js";
|
|
|
8
8
|
import "./webrtcLink-va_gAR77.js";
|
|
9
9
|
import "./remotes-DevcBeLl.js";
|
|
10
10
|
import "./roomReplyAlias-DFqg_6IU.js";
|
|
11
|
-
import "./subcommands-
|
|
11
|
+
import "./subcommands-CbMkQsMA.js";
|
|
12
12
|
import "./notifyStore-DIfkfKB2.js";
|
|
13
|
-
import { a as isPathInside, c as walkWorkspaces, i as importProvisionModule, l as workspaceStatus, n as cmdWs, o as loadProvision, r as collectWorkspaces, s as resolveOperand, t as WS_JSON_SCHEMA } from "./ws-
|
|
13
|
+
import { a as isPathInside, c as walkWorkspaces, i as importProvisionModule, l as workspaceStatus, n as cmdWs, o as loadProvision, r as collectWorkspaces, s as resolveOperand, t as WS_JSON_SCHEMA } from "./ws-BSX049_p.js";
|
|
14
14
|
|
|
15
15
|
export { WS_JSON_SCHEMA, cmdWs, collectWorkspaces, isPathInside, loadProvision, walkWorkspaces, workspaceStatus };
|
package/lab/ui/index.html
CHANGED
|
@@ -5973,7 +5973,7 @@ my.translate = async (text, lang) => {
|
|
|
5973
5973
|
function pruneStale(list) {
|
|
5974
5974
|
if (showStale) return list;
|
|
5975
5975
|
const keep = new Set(list.filter((e) => !isStaleStopped(e) || e._key === sel));
|
|
5976
|
-
for (let grew = true; grew;) {
|
|
5976
|
+
for (let grew = true; grew; ) {
|
|
5977
5977
|
grew = false;
|
|
5978
5978
|
const wanted = new Set();
|
|
5979
5979
|
for (const e of keep)
|
|
@@ -166,7 +166,7 @@ The affordances that only make sense when the operator is a machine:
|
|
|
166
166
|
renderer hides entire conversations. Marking them means a reader is never misled into thinking it
|
|
167
167
|
has read everything.
|
|
168
168
|
- **stdout is data, stderr is commentary** in the streaming path, so `slack tail "#general" | grep
|
|
169
|
-
|
|
169
|
+
deploy` sees messages and not chrome.
|
|
170
170
|
- **Output is valid input** — a printed permalink or ISO stamp can be pasted straight back as a
|
|
171
171
|
target, with strict parsers that throw rather than guess.
|
|
172
172
|
- **`SKILL.md` ships in the npm tarball** with agent-skill frontmatter, so it triggers on how a user
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "claude-yes",
|
|
3
|
-
"version": "1.303.1
|
|
3
|
+
"version": "1.303.1",
|
|
4
4
|
"description": "A wrapper tool that automates interactions with various AI CLI tools by automatically handling common prompts and responses.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"ai",
|
|
@@ -118,8 +118,7 @@
|
|
|
118
118
|
"postbuild": "bun ./ts/postbuild.ts",
|
|
119
119
|
"demo": "bun run build && bun link && claude-yes -- demo",
|
|
120
120
|
"dev": "bun ts/index.ts",
|
|
121
|
-
"typecheck": "
|
|
122
|
-
"typecheck:tsgo": "tsgo --noEmit",
|
|
121
|
+
"typecheck": "tsgo --noEmit",
|
|
123
122
|
"fmt": "oxlint --fix --fix-suggestions && oxfmt",
|
|
124
123
|
"verify-deps": "node ./scripts/verify-deps.js",
|
|
125
124
|
"_prepack": "bun run build",
|
|
@@ -161,7 +160,7 @@
|
|
|
161
160
|
"@types/proper-lockfile": "^4.1.4",
|
|
162
161
|
"@types/ws": "^8.18.1",
|
|
163
162
|
"@types/yargs": "^17.0.35",
|
|
164
|
-
"@typescript/native-preview": "^7.0.0-dev.
|
|
163
|
+
"@typescript/native-preview": "^7.0.0-dev.20260124.1",
|
|
165
164
|
"@vitest/coverage-v8": "4.1.0",
|
|
166
165
|
"@xterm/addon-fit": "^0.11.0",
|
|
167
166
|
"@xterm/xterm": "^6.0.0",
|
|
@@ -170,15 +169,14 @@
|
|
|
170
169
|
"husky": "^9.1.7",
|
|
171
170
|
"lint-staged": "^16.2.7",
|
|
172
171
|
"node-pty": "^1.1.0",
|
|
173
|
-
"oxfmt": "^0.
|
|
174
|
-
"oxlint": "^1.
|
|
172
|
+
"oxfmt": "^0.26.0",
|
|
173
|
+
"oxlint": "^1.41.0",
|
|
175
174
|
"patch-package": "^8.0.1",
|
|
176
175
|
"playwright": "^1.58.2",
|
|
177
176
|
"rambda": "^11.0.1",
|
|
178
177
|
"semantic-release": "^25.0.2",
|
|
179
178
|
"standard-version": "^9.5.0",
|
|
180
179
|
"tsdown": "^0.20.3",
|
|
181
|
-
"tsrs": "0.20.1-ts7.1.0-beta",
|
|
182
180
|
"vitest": "4.1.0",
|
|
183
181
|
"ws": "^8.20.0",
|
|
184
182
|
"zod": "^3.23.0"
|
package/ts/cli-idle.bun.spec.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { exec } from "child_process";
|
|
2
2
|
import { fromStdio } from "from-node-stream";
|
|
3
3
|
import sflow from "sflow";
|
|
4
|
-
import { describe,
|
|
4
|
+
import { describe, it } from "bun:test";
|
|
5
5
|
import { sleepms } from "./utils";
|
|
6
6
|
|
|
7
7
|
describe("CLI idle tests", () => {
|
package/ts/cli-idle.spec.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { exec } from "child_process";
|
|
2
2
|
import { fromStdio } from "from-node-stream";
|
|
3
3
|
import sflow from "sflow";
|
|
4
|
-
import { describe,
|
|
4
|
+
import { describe, it } from "vitest";
|
|
5
5
|
import { sleepms } from "./utils";
|
|
6
6
|
|
|
7
7
|
describe("CLI idle tests", () => {
|
package/ts/composerGuard.spec.ts
CHANGED
|
@@ -295,27 +295,19 @@ describe("composerBoxed", () => {
|
|
|
295
295
|
expect(composerBoxed(["● done", "❯ please summarise", " answer"])).toBe(false);
|
|
296
296
|
});
|
|
297
297
|
it("rejects a stale box that history has been drawn under", () => {
|
|
298
|
-
expect(
|
|
299
|
-
composerBoxed([RULE, "❯ old draft", RULE, "● done", "❯ please summarise", " answer"]),
|
|
300
|
-
).toBe(false);
|
|
298
|
+
expect(composerBoxed([RULE, "❯ old draft", RULE, "● done", "❯ please summarise", " answer"])).toBe(false);
|
|
301
299
|
expect(composerBoxed([RULE, "❯ ", RULE, " a", " b", " c", " d", " e"])).toBe(false);
|
|
302
300
|
// Left open by a partial redraw, with history drawn under it.
|
|
303
301
|
expect(composerBoxed([RULE, "❯ ", "● done", "❯ please summarise", " answer"])).toBe(false);
|
|
304
|
-
expect(
|
|
305
|
-
composerBoxed([RULE, "❯ ", " a", " b", " c", " d", " e", " f", " g", " h", " i"]),
|
|
306
|
-
).toBe(false);
|
|
302
|
+
expect(composerBoxed([RULE, "❯ ", " a", " b", " c", " d", " e", " f", " g", " h", " i"])).toBe(false);
|
|
307
303
|
// Transcript drawn under a stale prompt, with chrome further down.
|
|
308
|
-
expect(composerBoxed([RULE, "❯ ", "● done", "❯ please summarise", " answer", RULE])).toBe(
|
|
309
|
-
false,
|
|
310
|
-
);
|
|
304
|
+
expect(composerBoxed([RULE, "❯ ", "● done", "❯ please summarise", " answer", RULE])).toBe(false);
|
|
311
305
|
expect(
|
|
312
306
|
composerBoxed([RULE, "❯ ", ...Array.from({ length: 9 }, (_, i) => ` row ${i}`), FOOTER]),
|
|
313
307
|
).toBe(false);
|
|
314
308
|
});
|
|
315
309
|
|
|
316
310
|
it("accepts a short multi-line draft inside the box", () => {
|
|
317
|
-
expect(composerBoxed([RULE, "❯ first line", " second line", " third", RULE, FOOTER])).toBe(
|
|
318
|
-
true,
|
|
319
|
-
);
|
|
311
|
+
expect(composerBoxed([RULE, "❯ first line", " second line", " third", RULE, FOOTER])).toBe(true);
|
|
320
312
|
});
|
|
321
313
|
});
|
package/ts/senderAncestry.ts
CHANGED
|
@@ -230,7 +230,9 @@ export function pidOwnershipVerdict(
|
|
|
230
230
|
toleranceSecs = 60,
|
|
231
231
|
): PidOwnership {
|
|
232
232
|
if (ageSecs === undefined || startedAt === undefined) return "unknown";
|
|
233
|
-
return ageMatchesRegistration(ageSecs, startedAt, now, toleranceSecs)
|
|
233
|
+
return ageMatchesRegistration(ageSecs, startedAt, now, toleranceSecs)
|
|
234
|
+
? "ours"
|
|
235
|
+
: "reused";
|
|
234
236
|
}
|
|
235
237
|
|
|
236
238
|
export async function readAncestryTable(
|
package/ts/serve.ts
CHANGED
|
@@ -13,7 +13,7 @@ import {
|
|
|
13
13
|
import { existsSync, realpathSync, renameSync, watch, writeFileSync } from "node:fs";
|
|
14
14
|
import { execFileSync } from "node:child_process";
|
|
15
15
|
import { fileURLToPath } from "node:url";
|
|
16
|
-
import { randomBytes, timingSafeEqual } from "crypto";
|
|
16
|
+
import { createHash, randomBytes, timingSafeEqual } from "crypto";
|
|
17
17
|
import {
|
|
18
18
|
arch,
|
|
19
19
|
cpus,
|
|
@@ -2160,7 +2160,7 @@ export async function cmdServe(rest: string[]): Promise<number> {
|
|
|
2160
2160
|
// eslint-disable-next-line no-control-regex
|
|
2161
2161
|
const oscTitleRe = /\x1b\][02];([^\x07\x1b]*)(?:\x07|\x1b\\)/g;
|
|
2162
2162
|
let title: string | null = null;
|
|
2163
|
-
for (let m; (m = oscTitleRe.exec(text));) if (m[1]!.trim()) title = m[1]!.trim();
|
|
2163
|
+
for (let m; (m = oscTitleRe.exec(text)); ) if (m[1]!.trim()) title = m[1]!.trim();
|
|
2164
2164
|
// Defense-in-depth: this title is remote-controlled text (an agent sets its
|
|
2165
2165
|
// own terminal title) that the web console renders. The console escapes it,
|
|
2166
2166
|
// but strip C0/C1 control bytes and cap the length at the SOURCE too, so a
|
package/ts/subcommands.spec.ts
CHANGED
|
@@ -2070,8 +2070,7 @@ describe("subcommands.cmdSend end-to-end submit-confirm wiring", () => {
|
|
|
2070
2070
|
const errs: string[] = [];
|
|
2071
2071
|
const origErr = process.stderr.write.bind(process.stderr);
|
|
2072
2072
|
process.stderr.write = ((c: string | Uint8Array) => (
|
|
2073
|
-
errs.push(String(c)),
|
|
2074
|
-
true
|
|
2073
|
+
errs.push(String(c)), true
|
|
2075
2074
|
)) as typeof process.stderr.write;
|
|
2076
2075
|
let res: { code: number | null; stdout: string };
|
|
2077
2076
|
try {
|
package/ts/subcommands.ts
CHANGED
|
@@ -4776,7 +4776,9 @@ function extractActivityFromLines(lines: string[]): string | null {
|
|
|
4776
4776
|
|
|
4777
4777
|
// ❯ appears after (or without) any spinner → agent is idle/waiting for input
|
|
4778
4778
|
if (lastPromptIdx > lastSpinnerIdx) {
|
|
4779
|
-
const text = clean[lastPromptIdx]!.trim()
|
|
4779
|
+
const text = clean[lastPromptIdx]!.trim()
|
|
4780
|
+
.replace(/^❯\s*/, "")
|
|
4781
|
+
.trim();
|
|
4780
4782
|
return text ? `» ${text}` : null;
|
|
4781
4783
|
}
|
|
4782
4784
|
|
package/dist/trayApp-0pEPUiZY.js
DELETED