agent-yes 1.267.2 → 1.267.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{SUPPORTED_CLIS-DDs0xUvV.js → SUPPORTED_CLIS-C48G8vGB.js} +3 -3
- package/dist/{SUPPORTED_CLIS-CpWKDCtL.js → SUPPORTED_CLIS-Cg0BDCiA.js} +2 -2
- package/dist/{agentShare-D0reU6LW.js → agentShare-UMpLmVuM.js} +2 -2
- package/dist/{callback-Dlqwh9n7.js → callback-CnXpN0lG.js} +3 -3
- package/dist/{callback-Bgehh-IW.js → callback-KldFWtzP.js} +2 -2
- package/dist/cli.js +5 -5
- package/dist/{cmdPs-D8gsRFVV.js → cmdPs-wuMnTKQ2.js} +2 -2
- package/dist/index.js +2 -2
- package/dist/{notifyDaemon-TKtSYtEO.js → notifyDaemon-CtAtYGcX.js} +2 -2
- package/dist/{parentPingLoop-BEvJ2ElR.js → parentPingLoop-Cv-VVEEd.js} +2 -2
- package/dist/{rustBinary-B9FEbqTu.js → rustBinary-BInJa-Nl.js} +2 -2
- package/dist/{schedule-Bmh5uaDr.js → schedule-DFa8Z-bC.js} +4 -4
- package/dist/{serve-BqRNIxeq.js → serve-BYETLNkD.js} +17 -17
- package/dist/{setup-GYkQYxlf.js → setup-ng9mUcXb.js} +2 -2
- package/dist/{subcommands-DLrJfG4D.js → subcommands-DBs9UQ-3.js} +1 -1
- package/dist/{subcommands-DJpVXIb6.js → subcommands-Dk2xyL6v.js} +14 -14
- package/dist/{terminal-CRLPUaKF.js → terminal-fqDRPIu8.js} +2 -2
- package/dist/trayApp-C96YVMTQ.js +5 -0
- package/dist/{trayApp-DLMUu2sB.js → trayApp-mB2pPeCD.js} +2 -2
- package/dist/{ts-ClwhahH9.js → ts-CORLA6m-.js} +3 -3
- package/dist/{versionChecker-ZQYirfMp.js → versionChecker-N8QScM_b.js} +2 -2
- package/dist/{widget-DtZ1WXkf.js → widget-CszqlDS7.js} +3 -3
- package/dist/{ws-CiR2nOD3.js → ws-50USZcB2.js} +2 -2
- package/dist/{ws-Ba372Tym.js → ws-CTk97AIX.js} +2 -2
- package/lab/ui/index.html +48 -3
- package/package.json +1 -1
- package/dist/trayApp-CoD89Y1_.js +0 -5
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import "./logger-CDIsZ-Pp.js";
|
|
2
|
-
import "./versionChecker-
|
|
3
|
-
import "./ts-
|
|
2
|
+
import "./versionChecker-N8QScM_b.js";
|
|
3
|
+
import "./ts-CORLA6m-.js";
|
|
4
4
|
import "./todoAutomation-BQRW614S.js";
|
|
5
5
|
import "./JsonlStore-CPGIR0Wy.js";
|
|
6
6
|
import "./globalPidIndex-Dq4KY2IV.js";
|
|
7
7
|
import "./pidStore-DJqSZPJi.js";
|
|
8
8
|
import "./messageLog-BYFwioFY.js";
|
|
9
|
-
import { t as SUPPORTED_CLIS } from "./SUPPORTED_CLIS-
|
|
9
|
+
import { t as SUPPORTED_CLIS } from "./SUPPORTED_CLIS-Cg0BDCiA.js";
|
|
10
10
|
|
|
11
11
|
export { SUPPORTED_CLIS };
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { t as CLIS_CONFIG } from "./ts-
|
|
1
|
+
import { t as CLIS_CONFIG } from "./ts-CORLA6m-.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-Cg0BDCiA.js.map
|
|
@@ -3,7 +3,7 @@ import "./globalPidIndex-Dq4KY2IV.js";
|
|
|
3
3
|
import "./messageLog-BYFwioFY.js";
|
|
4
4
|
import "./e2e-CUMZC53I.js";
|
|
5
5
|
import "./configShared-DtHMBCl7.js";
|
|
6
|
-
import { B as resolveOne } from "./subcommands-
|
|
6
|
+
import { B as resolveOne } from "./subcommands-Dk2xyL6v.js";
|
|
7
7
|
import "./notifyStore-Cbw2ZJ0X.js";
|
|
8
8
|
import "./webrtcLink-DyCj380i.js";
|
|
9
9
|
import "./remotes-DdAfueOu.js";
|
|
@@ -230,4 +230,4 @@ function transformEvent(rawEvent, agentId, forwarded) {
|
|
|
230
230
|
|
|
231
231
|
//#endregion
|
|
232
232
|
export { createScopedShare, listShares, revokeAllShares, revokeShare };
|
|
233
|
-
//# sourceMappingURL=agentShare-
|
|
233
|
+
//# sourceMappingURL=agentShare-UMpLmVuM.js.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t as agentYesHome } from "./agentYesHome-CtmsY6I-.js";
|
|
2
|
-
import { B as resolveOne } from "./subcommands-
|
|
2
|
+
import { B as resolveOne } from "./subcommands-Dk2xyL6v.js";
|
|
3
3
|
import { a as mintCapability, o as parseExpires } from "./callbackCore-K99x3C75.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-BYETLNkD.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-CnXpN0lG.js.map
|
|
@@ -3,11 +3,11 @@ import "./globalPidIndex-Dq4KY2IV.js";
|
|
|
3
3
|
import "./messageLog-BYFwioFY.js";
|
|
4
4
|
import "./e2e-CUMZC53I.js";
|
|
5
5
|
import "./configShared-DtHMBCl7.js";
|
|
6
|
-
import "./subcommands-
|
|
6
|
+
import "./subcommands-Dk2xyL6v.js";
|
|
7
7
|
import "./notifyStore-Cbw2ZJ0X.js";
|
|
8
8
|
import "./webrtcLink-DyCj380i.js";
|
|
9
9
|
import "./remotes-DdAfueOu.js";
|
|
10
10
|
import "./callbackCore-K99x3C75.js";
|
|
11
|
-
import { i as loadOrCreateCallbackSecret, n as isCallbackRevoked, r as loadCallbackSecretReadOnly, t as cmdCallback } from "./callback-
|
|
11
|
+
import { i as loadOrCreateCallbackSecret, n as isCallbackRevoked, r as loadCallbackSecretReadOnly, t as cmdCallback } from "./callback-CnXpN0lG.js";
|
|
12
12
|
|
|
13
13
|
export { cmdCallback };
|
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 { r as getRustBinary } from "./rustBinary-
|
|
4
|
+
import { i as versionString, n as displayVersion, t as checkAndAutoUpdate } from "./versionChecker-N8QScM_b.js";
|
|
5
|
+
import { r as getRustBinary } from "./rustBinary-BInJa-Nl.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-DBs9UQ-3.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-C48G8vGB.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-C48G8vGB.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}`);
|
|
@@ -3,7 +3,7 @@ import "./globalPidIndex-Dq4KY2IV.js";
|
|
|
3
3
|
import "./messageLog-BYFwioFY.js";
|
|
4
4
|
import "./e2e-CUMZC53I.js";
|
|
5
5
|
import "./configShared-DtHMBCl7.js";
|
|
6
|
-
import { $ as buildAgentForest, O as listRecords, d as deriveLiveState, et as flattenForest } from "./subcommands-
|
|
6
|
+
import { $ as buildAgentForest, O as listRecords, d as deriveLiveState, et as flattenForest } from "./subcommands-Dk2xyL6v.js";
|
|
7
7
|
import "./notifyStore-Cbw2ZJ0X.js";
|
|
8
8
|
import "./webrtcLink-DyCj380i.js";
|
|
9
9
|
import "./remotes-DdAfueOu.js";
|
|
@@ -574,4 +574,4 @@ function readPpidSync(pid) {
|
|
|
574
574
|
|
|
575
575
|
//#endregion
|
|
576
576
|
export { cmdPs };
|
|
577
|
-
//# sourceMappingURL=cmdPs-
|
|
577
|
+
//# sourceMappingURL=cmdPs-wuMnTKQ2.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-N8QScM_b.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-CORLA6m-.js";
|
|
4
4
|
import { _ as isKnownKind, a as renderTree, b as statesOf, c as monitorHint, d as openStore, f as DONE_STATE, g as initialState, h as canTransition, i as renderDigest, l as CycleError, m as ORPHANED_STATE, o as unblockedTasks, p as LIFECYCLES, r as openBlockers, s as describeBlock, t as reconcileTodos, u as TodoStore, v as nextStates, x as removeControlCharacters, y as requiredGate } from "./todoAutomation-BQRW614S.js";
|
|
5
5
|
import "./JsonlStore-CPGIR0Wy.js";
|
|
6
6
|
import "./globalPidIndex-Dq4KY2IV.js";
|
|
@@ -3,7 +3,7 @@ import "./globalPidIndex-Dq4KY2IV.js";
|
|
|
3
3
|
import "./messageLog-BYFwioFY.js";
|
|
4
4
|
import "./e2e-CUMZC53I.js";
|
|
5
5
|
import "./configShared-DtHMBCl7.js";
|
|
6
|
-
import { L as renderLogTailLines, O as listRecords, d as deriveLiveState, x as isPidAlive } from "./subcommands-
|
|
6
|
+
import { L as renderLogTailLines, O as listRecords, d as deriveLiveState, x as isPidAlive } from "./subcommands-Dk2xyL6v.js";
|
|
7
7
|
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-Cbw2ZJ0X.js";
|
|
8
8
|
import "./webrtcLink-DyCj380i.js";
|
|
9
9
|
import "./remotes-DdAfueOu.js";
|
|
@@ -863,4 +863,4 @@ async function ensureDaemon() {
|
|
|
863
863
|
|
|
864
864
|
//#endregion
|
|
865
865
|
export { daemonStatus, ensureDaemon, requestDaemonStop, runDaemon };
|
|
866
|
-
//# sourceMappingURL=notifyDaemon-
|
|
866
|
+
//# sourceMappingURL=notifyDaemon-CtAtYGcX.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-DBs9UQ-3.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-Cv-VVEEd.js.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as getInstalledPackage } from "./versionChecker-
|
|
1
|
+
import { r as getInstalledPackage } from "./versionChecker-N8QScM_b.js";
|
|
2
2
|
import { execFileSync } from "child_process";
|
|
3
3
|
import { existsSync, mkdirSync, unlinkSync } from "fs";
|
|
4
4
|
import { chmod, copyFile } from "fs/promises";
|
|
@@ -243,4 +243,4 @@ async function getRustBinary(options = {}) {
|
|
|
243
243
|
|
|
244
244
|
//#endregion
|
|
245
245
|
export { findTrayLauncher as n, getRustBinary as r, findSpawnHiddenLauncher as t };
|
|
246
|
-
//# sourceMappingURL=rustBinary-
|
|
246
|
+
//# sourceMappingURL=rustBinary-BInJa-Nl.js.map
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import "./logger-CDIsZ-Pp.js";
|
|
2
|
-
import "./versionChecker-
|
|
3
|
-
import "./ts-
|
|
2
|
+
import "./versionChecker-N8QScM_b.js";
|
|
3
|
+
import "./ts-CORLA6m-.js";
|
|
4
4
|
import "./todoAutomation-BQRW614S.js";
|
|
5
5
|
import "./JsonlStore-CPGIR0Wy.js";
|
|
6
6
|
import "./globalPidIndex-Dq4KY2IV.js";
|
|
7
7
|
import "./pidStore-DJqSZPJi.js";
|
|
8
8
|
import "./messageLog-BYFwioFY.js";
|
|
9
|
-
import { t as SUPPORTED_CLIS } from "./SUPPORTED_CLIS-
|
|
9
|
+
import { t as SUPPORTED_CLIS } from "./SUPPORTED_CLIS-Cg0BDCiA.js";
|
|
10
10
|
import { f as resolveSpawnCwd } from "./workspaceConfig-CBKlgA_q.js";
|
|
11
11
|
import { n as liveEnv, t as ensureNodeRuntime } from "./nodeRuntime-QihGFQbI.js";
|
|
12
12
|
import { createHash } from "node:crypto";
|
|
@@ -153,4 +153,4 @@ async function cmdSchedule(rest) {
|
|
|
153
153
|
|
|
154
154
|
//#endregion
|
|
155
155
|
export { cmdSchedule };
|
|
156
|
-
//# sourceMappingURL=schedule-
|
|
156
|
+
//# sourceMappingURL=schedule-DFa8Z-bC.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import "./logger-CDIsZ-Pp.js";
|
|
2
|
-
import { r as getInstalledPackage } from "./versionChecker-
|
|
3
|
-
import { t 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 { r as getInstalledPackage } from "./versionChecker-N8QScM_b.js";
|
|
3
|
+
import { t as findSpawnHiddenLauncher } from "./rustBinary-BInJa-Nl.js";
|
|
4
|
+
import { c as permissionBadge, i as answerAsk, o as listAsks, u as CLAUDE_SESSION_PIN_ENV } from "./ts-CORLA6m-.js";
|
|
5
5
|
import { t as agentYesHome$1 } from "./agentYesHome-CtmsY6I-.js";
|
|
6
6
|
import { x as removeControlCharacters } from "./todoAutomation-BQRW614S.js";
|
|
7
7
|
import "./JsonlStore-CPGIR0Wy.js";
|
|
@@ -11,18 +11,18 @@ import { r as recordInbox } from "./messageLog-BYFwioFY.js";
|
|
|
11
11
|
import { t as pgidForWrapper } from "./reaper-C4BvNylH.js";
|
|
12
12
|
import "./e2e-CUMZC53I.js";
|
|
13
13
|
import "./configShared-DtHMBCl7.js";
|
|
14
|
-
import { t as SUPPORTED_CLIS } from "./SUPPORTED_CLIS-
|
|
15
|
-
import { B as resolveOne, F as recentMessageEdges, G as snapshotStatus, I as recentReadEdges, L as renderLogTailLines, M as readLogForRender, N as readNotes, O as listRecords, P as readPtysize, Q as TYPING_BADGE, R as renderRawLog, T as isUserTyping, Z as writeToIpc, f as deriveLiveStatus, g as extractTaskCounts, h as extractNeedsInput, l as controlCodeFromName, p as extractBadges, z as renderRawLogLines } from "./subcommands-
|
|
14
|
+
import { t as SUPPORTED_CLIS } from "./SUPPORTED_CLIS-Cg0BDCiA.js";
|
|
15
|
+
import { B as resolveOne, F as recentMessageEdges, G as snapshotStatus, I as recentReadEdges, L as renderLogTailLines, M as readLogForRender, N as readNotes, O as listRecords, P as readPtysize, Q as TYPING_BADGE, R as renderRawLog, T as isUserTyping, Z as writeToIpc, f as deriveLiveStatus, g as extractTaskCounts, h as extractNeedsInput, l as controlCodeFromName, p as extractBadges, z as renderRawLogLines } from "./subcommands-Dk2xyL6v.js";
|
|
16
16
|
import { c as isTransientLockMkdirError } from "./notifyStore-Cbw2ZJ0X.js";
|
|
17
17
|
import "./webrtcLink-DyCj380i.js";
|
|
18
18
|
import "./remotes-DdAfueOu.js";
|
|
19
19
|
import { i as frameVisitorMessage, s as verifyCapability, t as MAX_CALLBACK_MSG_BYTES } from "./callbackCore-K99x3C75.js";
|
|
20
|
-
import { n as isCallbackRevoked, r as loadCallbackSecretReadOnly } from "./callback-
|
|
20
|
+
import { n as isCallbackRevoked, r as loadCallbackSecretReadOnly } from "./callback-CnXpN0lG.js";
|
|
21
21
|
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-CBKlgA_q.js";
|
|
22
22
|
import { n as liveEnv, t as ensureNodeRuntime } from "./nodeRuntime-QihGFQbI.js";
|
|
23
|
-
import { i as importProvisionModule } from "./ws-
|
|
23
|
+
import { i as importProvisionModule } from "./ws-CTk97AIX.js";
|
|
24
24
|
import { r as spawnRejectionReason } from "./spawnGate-DN4wNXHq.js";
|
|
25
|
-
import { i as launchTray } from "./trayApp-
|
|
25
|
+
import { i as launchTray } from "./trayApp-mB2pPeCD.js";
|
|
26
26
|
import yargs from "yargs";
|
|
27
27
|
import { appendFile, mkdir, open, readFile, readdir, rename, rm, stat, unlink, writeFile } from "fs/promises";
|
|
28
28
|
import { arch, cpus, freemem, homedir, hostname, loadavg, platform, totalmem, uptime, userInfo } from "os";
|
|
@@ -2435,7 +2435,7 @@ Options:
|
|
|
2435
2435
|
}
|
|
2436
2436
|
});
|
|
2437
2437
|
if (req.method === "GET" && p === "/api/ws") {
|
|
2438
|
-
const ws = await import("./ws-
|
|
2438
|
+
const ws = await import("./ws-50USZcB2.js");
|
|
2439
2439
|
try {
|
|
2440
2440
|
await ws.loadProvision();
|
|
2441
2441
|
} catch (e) {
|
|
@@ -2455,7 +2455,7 @@ Options:
|
|
|
2455
2455
|
if (req.method === "GET" && p === "/api/ws/status") {
|
|
2456
2456
|
const dirRaw = url.searchParams.get("path");
|
|
2457
2457
|
if (!dirRaw) return new Response("missing ?path=<workspace dir>", { status: 400 });
|
|
2458
|
-
const ws = await import("./ws-
|
|
2458
|
+
const ws = await import("./ws-50USZcB2.js");
|
|
2459
2459
|
let prov;
|
|
2460
2460
|
try {
|
|
2461
2461
|
prov = await ws.loadProvision();
|
|
@@ -2477,7 +2477,7 @@ Options:
|
|
|
2477
2477
|
}
|
|
2478
2478
|
}
|
|
2479
2479
|
if (req.method === "GET" && p === "/api/ws/repos") {
|
|
2480
|
-
const ws = await import("./ws-
|
|
2480
|
+
const ws = await import("./ws-50USZcB2.js");
|
|
2481
2481
|
try {
|
|
2482
2482
|
await ws.loadProvision();
|
|
2483
2483
|
} catch (e) {
|
|
@@ -2558,7 +2558,7 @@ Options:
|
|
|
2558
2558
|
const m = /^([A-Za-z0-9_.-]+)\/([A-Za-z0-9_.-]+)$/.exec(repoParam);
|
|
2559
2559
|
if (!m || m[1] === "." || m[1] === ".." || m[2] === "." || m[2] === "..") return new Response("missing/invalid ?repo=<owner>/<repo>", { status: 400 });
|
|
2560
2560
|
const [, owner, repo] = m;
|
|
2561
|
-
const ws = await import("./ws-
|
|
2561
|
+
const ws = await import("./ws-50USZcB2.js");
|
|
2562
2562
|
let prov;
|
|
2563
2563
|
try {
|
|
2564
2564
|
prov = await ws.loadProvision();
|
|
@@ -3466,7 +3466,7 @@ Options:
|
|
|
3466
3466
|
const perm = body.perm ?? "r";
|
|
3467
3467
|
if (perm !== "r" && perm !== "rw") return new Response(`invalid perm ${perm} (want r or rw)`, { status: 400 });
|
|
3468
3468
|
try {
|
|
3469
|
-
const { createScopedShare } = await import("./agentShare-
|
|
3469
|
+
const { createScopedShare } = await import("./agentShare-UMpLmVuM.js");
|
|
3470
3470
|
const share = await createScopedShare({
|
|
3471
3471
|
agent: body.agent,
|
|
3472
3472
|
perm,
|
|
@@ -3481,12 +3481,12 @@ Options:
|
|
|
3481
3481
|
}
|
|
3482
3482
|
}
|
|
3483
3483
|
if (req.method === "GET" && p === "/api/shares") {
|
|
3484
|
-
const { listShares } = await import("./agentShare-
|
|
3484
|
+
const { listShares } = await import("./agentShare-UMpLmVuM.js");
|
|
3485
3485
|
return Response.json(listShares());
|
|
3486
3486
|
}
|
|
3487
3487
|
const revokeM = /^\/api\/share\/([^/]+)$/.exec(p);
|
|
3488
3488
|
if (req.method === "DELETE" && revokeM) {
|
|
3489
|
-
const { revokeShare } = await import("./agentShare-
|
|
3489
|
+
const { revokeShare } = await import("./agentShare-UMpLmVuM.js");
|
|
3490
3490
|
const ok = revokeShare(decodeURIComponent(revokeM[1]));
|
|
3491
3491
|
return new Response(ok ? "revoked" : "no such share", { status: ok ? 200 : 404 });
|
|
3492
3492
|
}
|
|
@@ -3788,7 +3788,7 @@ Options:
|
|
|
3788
3788
|
const shutdown = (resolve) => {
|
|
3789
3789
|
if (heartbeat) clearInterval(heartbeat);
|
|
3790
3790
|
closeShare?.();
|
|
3791
|
-
import("./agentShare-
|
|
3791
|
+
import("./agentShare-UMpLmVuM.js").then((m) => m.revokeAllShares()).catch(() => {});
|
|
3792
3792
|
server?.stop();
|
|
3793
3793
|
Promise.resolve(releaseHostLock?.()).catch(() => {}).then(resolve);
|
|
3794
3794
|
};
|
|
@@ -3801,4 +3801,4 @@ Options:
|
|
|
3801
3801
|
|
|
3802
3802
|
//#endregion
|
|
3803
3803
|
export { cmdServe, loadTokenReadOnly, mintScopedTermToken, resolveDaemonHttpBase, resolveLocalServeUrl };
|
|
3804
|
-
//# sourceMappingURL=serve-
|
|
3804
|
+
//# sourceMappingURL=serve-BYETLNkD.js.map
|
|
@@ -40,7 +40,7 @@ async function cmdSetup(rest) {
|
|
|
40
40
|
} catch {}
|
|
41
41
|
if (noShare) return 0;
|
|
42
42
|
process.stdout.write(`\nsharing this machine to agent-yes.com…\n`);
|
|
43
|
-
const { cmdServe } = await import("./serve-
|
|
43
|
+
const { cmdServe } = await import("./serve-BYETLNkD.js");
|
|
44
44
|
return cmdServe([
|
|
45
45
|
"install",
|
|
46
46
|
"--share",
|
|
@@ -50,4 +50,4 @@ async function cmdSetup(rest) {
|
|
|
50
50
|
|
|
51
51
|
//#endregion
|
|
52
52
|
export { cmdSetup };
|
|
53
|
-
//# sourceMappingURL=setup-
|
|
53
|
+
//# sourceMappingURL=setup-ng9mUcXb.js.map
|
|
@@ -3,7 +3,7 @@ import "./globalPidIndex-Dq4KY2IV.js";
|
|
|
3
3
|
import "./messageLog-BYFwioFY.js";
|
|
4
4
|
import "./e2e-CUMZC53I.js";
|
|
5
5
|
import "./configShared-DtHMBCl7.js";
|
|
6
|
-
import { A as menuSelectKeys, B as resolveOne, C as isSubcommand, D as lastStdinAt, E as lastReadAt, F as recentMessageEdges, G as snapshotStatus, H as resolveResumeArgs, I as recentReadEdges, J as submitAndConfirm, K as stdinActivityPath, L as renderLogTailLines, M as readLogForRender, N as readNotes, O as listRecords, P as readPtysize, R as renderRawLog, S as isSlashCommand, T as isUserTyping, U as restartHintLines, V as resolveReadWindow, W as runSubcommand, X as writeKeysPaced, Y as waitForLogQuiet, Z as writeToIpc, _ as finalizedLines, a as TYPING_WINDOW_MS, b as isExitRequest, c as cmdHelp, d as deriveLiveState, f as deriveLiveStatus, g as extractTaskCounts, h as extractNeedsInput, i as READ_WINDOW_MS, j as readAgentPtysize, k as matchKeyword, l as controlCodeFromName, m as extractMenu, n as MAX_RENDER_BYTES, o as backoffWhileTyping, p as extractBadges, q as stopTipForCli, r as READ_PAGE_DEFAULT, s as cmdDeepseek, t as GRACEFUL_EXIT_COMMANDS, u as cursorAbs, v as isAgentStuck, w as isUnknownManagerToken, x as isPidAlive, y as isBareManagerInvocation, z as renderRawLogLines } from "./subcommands-
|
|
6
|
+
import { A as menuSelectKeys, B as resolveOne, C as isSubcommand, D as lastStdinAt, E as lastReadAt, F as recentMessageEdges, G as snapshotStatus, H as resolveResumeArgs, I as recentReadEdges, J as submitAndConfirm, K as stdinActivityPath, L as renderLogTailLines, M as readLogForRender, N as readNotes, O as listRecords, P as readPtysize, R as renderRawLog, S as isSlashCommand, T as isUserTyping, U as restartHintLines, V as resolveReadWindow, W as runSubcommand, X as writeKeysPaced, Y as waitForLogQuiet, Z as writeToIpc, _ as finalizedLines, a as TYPING_WINDOW_MS, b as isExitRequest, c as cmdHelp, d as deriveLiveState, f as deriveLiveStatus, g as extractTaskCounts, h as extractNeedsInput, i as READ_WINDOW_MS, j as readAgentPtysize, k as matchKeyword, l as controlCodeFromName, m as extractMenu, n as MAX_RENDER_BYTES, o as backoffWhileTyping, p as extractBadges, q as stopTipForCli, r as READ_PAGE_DEFAULT, s as cmdDeepseek, t as GRACEFUL_EXIT_COMMANDS, u as cursorAbs, v as isAgentStuck, w as isUnknownManagerToken, x as isPidAlive, y as isBareManagerInvocation, z as renderRawLogLines } from "./subcommands-Dk2xyL6v.js";
|
|
7
7
|
import "./notifyStore-Cbw2ZJ0X.js";
|
|
8
8
|
import "./webrtcLink-DyCj380i.js";
|
|
9
9
|
import "./remotes-DdAfueOu.js";
|
|
@@ -893,7 +893,7 @@ async function runSubcommand(argv) {
|
|
|
893
893
|
switch (sub) {
|
|
894
894
|
case "ls":
|
|
895
895
|
case "list": return await cmdLs(rest);
|
|
896
|
-
case "ps": return await (await import("./cmdPs-
|
|
896
|
+
case "ps": return await (await import("./cmdPs-wuMnTKQ2.js")).cmdPs(rest);
|
|
897
897
|
case "status": return await cmdStatus(rest);
|
|
898
898
|
case "whoami": return await cmdWhoami(rest);
|
|
899
899
|
case "result": return await cmdResult(rest);
|
|
@@ -925,35 +925,35 @@ async function runSubcommand(argv) {
|
|
|
925
925
|
return cmdCh(rest);
|
|
926
926
|
}
|
|
927
927
|
case "term": {
|
|
928
|
-
const { cmdTerm } = await import("./terminal-
|
|
928
|
+
const { cmdTerm } = await import("./terminal-fqDRPIu8.js");
|
|
929
929
|
return cmdTerm(rest);
|
|
930
930
|
}
|
|
931
931
|
case "widget": {
|
|
932
|
-
const { cmdWidget } = await import("./widget-
|
|
932
|
+
const { cmdWidget } = await import("./widget-CszqlDS7.js");
|
|
933
933
|
return cmdWidget(rest);
|
|
934
934
|
}
|
|
935
935
|
case "mint": {
|
|
936
|
-
const { cmdMint } = await import("./widget-
|
|
936
|
+
const { cmdMint } = await import("./widget-CszqlDS7.js");
|
|
937
937
|
return cmdMint(rest);
|
|
938
938
|
}
|
|
939
939
|
case "serve": {
|
|
940
|
-
const { cmdServe } = await import("./serve-
|
|
940
|
+
const { cmdServe } = await import("./serve-BYETLNkD.js");
|
|
941
941
|
return cmdServe(rest);
|
|
942
942
|
}
|
|
943
943
|
case "tray": {
|
|
944
|
-
const { cmdTray } = await import("./trayApp-
|
|
944
|
+
const { cmdTray } = await import("./trayApp-C96YVMTQ.js");
|
|
945
945
|
return cmdTray(rest);
|
|
946
946
|
}
|
|
947
947
|
case "setup": {
|
|
948
|
-
const { cmdSetup } = await import("./setup-
|
|
948
|
+
const { cmdSetup } = await import("./setup-ng9mUcXb.js");
|
|
949
949
|
return cmdSetup(rest);
|
|
950
950
|
}
|
|
951
951
|
case "ws": {
|
|
952
|
-
const { cmdWs } = await import("./ws-
|
|
952
|
+
const { cmdWs } = await import("./ws-50USZcB2.js");
|
|
953
953
|
return cmdWs(rest);
|
|
954
954
|
}
|
|
955
955
|
case "schedule": {
|
|
956
|
-
const { cmdSchedule } = await import("./schedule-
|
|
956
|
+
const { cmdSchedule } = await import("./schedule-DFa8Z-bC.js");
|
|
957
957
|
return cmdSchedule(rest);
|
|
958
958
|
}
|
|
959
959
|
case "remote": {
|
|
@@ -965,7 +965,7 @@ async function runSubcommand(argv) {
|
|
|
965
965
|
return cmdExpose(rest);
|
|
966
966
|
}
|
|
967
967
|
case "callback": {
|
|
968
|
-
const { cmdCallback } = await import("./callback-
|
|
968
|
+
const { cmdCallback } = await import("./callback-KldFWtzP.js");
|
|
969
969
|
return cmdCallback(rest);
|
|
970
970
|
}
|
|
971
971
|
case "reap":
|
|
@@ -3465,7 +3465,7 @@ async function cmdAttach(rest) {
|
|
|
3465
3465
|
const winsizeDir = path.join(ayHome, "winsize");
|
|
3466
3466
|
await mkdir(winsizeDir, { recursive: true });
|
|
3467
3467
|
const winsizePath = path.join(winsizeDir, String(record.pid));
|
|
3468
|
-
const { resolveDaemonHttpBase, loadTokenReadOnly } = await import("./serve-
|
|
3468
|
+
const { resolveDaemonHttpBase, loadTokenReadOnly } = await import("./serve-BYETLNkD.js");
|
|
3469
3469
|
const daemonBase = await resolveDaemonHttpBase().catch(() => null);
|
|
3470
3470
|
const daemonToken = daemonBase ? await loadTokenReadOnly().catch(() => null) ?? "" : "";
|
|
3471
3471
|
const capViewer = `attach:${process.pid}`;
|
|
@@ -4175,7 +4175,7 @@ async function cmdNotify(rest) {
|
|
|
4175
4175
|
}
|
|
4176
4176
|
const ensure = async () => {
|
|
4177
4177
|
if (!argv["ensure-daemon"]) return;
|
|
4178
|
-
const { ensureDaemon } = await import("./notifyDaemon-
|
|
4178
|
+
const { ensureDaemon } = await import("./notifyDaemon-CtAtYGcX.js");
|
|
4179
4179
|
await ensureDaemon().catch(() => null);
|
|
4180
4180
|
};
|
|
4181
4181
|
await heartbeatWatcher(parent, selfStartedAt);
|
|
@@ -4249,7 +4249,7 @@ async function cmdNotifyCursor(args) {
|
|
|
4249
4249
|
}
|
|
4250
4250
|
async function cmdNotifyd(rest) {
|
|
4251
4251
|
const sub = rest[0] ?? "status";
|
|
4252
|
-
const daemon = await import("./notifyDaemon-
|
|
4252
|
+
const daemon = await import("./notifyDaemon-CtAtYGcX.js");
|
|
4253
4253
|
switch (sub) {
|
|
4254
4254
|
case "run": return daemon.runDaemon();
|
|
4255
4255
|
case "once": return daemon.runDaemon({ once: true });
|
|
@@ -4276,4 +4276,4 @@ async function cmdNotifyd(rest) {
|
|
|
4276
4276
|
|
|
4277
4277
|
//#endregion
|
|
4278
4278
|
export { buildAgentForest as $, menuSelectKeys as A, resolveOne as B, isSubcommand as C, lastStdinAt as D, lastReadAt as E, recentMessageEdges as F, snapshotStatus as G, resolveResumeArgs as H, recentReadEdges as I, submitAndConfirm as J, stdinActivityPath as K, renderLogTailLines as L, readLogForRender as M, readNotes as N, listRecords as O, readPtysize as P, TYPING_BADGE as Q, renderRawLog as R, isSlashCommand as S, isUserTyping as T, restartHintLines as U, resolveReadWindow as V, runSubcommand as W, writeKeysPaced as X, waitForLogQuiet as Y, writeToIpc as Z, finalizedLines as _, TYPING_WINDOW_MS as a, isExitRequest as b, cmdHelp as c, deriveLiveState as d, flattenForest as et, deriveLiveStatus as f, extractTaskCounts as g, extractNeedsInput as h, READ_WINDOW_MS as i, readAgentPtysize as j, matchKeyword as k, controlCodeFromName as l, extractMenu as m, MAX_RENDER_BYTES as n, backoffWhileTyping as o, extractBadges as p, stopTipForCli as q, READ_PAGE_DEFAULT as r, cmdDeepseek as s, GRACEFUL_EXIT_COMMANDS as t, cursorAbs as u, isAgentStuck as v, isUnknownManagerToken as w, isPidAlive as x, isBareManagerInvocation as y, renderRawLogLines as z };
|
|
4279
|
-
//# sourceMappingURL=subcommands-
|
|
4279
|
+
//# sourceMappingURL=subcommands-Dk2xyL6v.js.map
|
|
@@ -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-BYETLNkD.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-fqDRPIu8.js.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { n as findTrayLauncher } from "./rustBinary-
|
|
1
|
+
import { n as findTrayLauncher } from "./rustBinary-BInJa-Nl.js";
|
|
2
2
|
import { t as agentYesHome } from "./agentYesHome-CtmsY6I-.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-mB2pPeCD.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 { r as getInstalledPackage } from "./versionChecker-
|
|
3
|
+
import { r as getInstalledPackage } from "./versionChecker-N8QScM_b.js";
|
|
4
4
|
import { t as agentYesHome } from "./agentYesHome-CtmsY6I-.js";
|
|
5
5
|
import { d as openStore, p as LIFECYCLES, x as removeControlCharacters } from "./todoAutomation-BQRW614S.js";
|
|
6
6
|
import { i as shouldUseLock, r as releaseLock, t as acquireLock } from "./runningLock-DBoONoM-.js";
|
|
@@ -2068,7 +2068,7 @@ async function agentYes({ cli, cliArgs = [], skipPermissions = false, prompt, ro
|
|
|
2068
2068
|
}, 100);
|
|
2069
2069
|
const cleanupHeartbeat = () => clearInterval(heartbeatInterval);
|
|
2070
2070
|
shell.onExit(cleanupHeartbeat);
|
|
2071
|
-
const { startParentPingLoop } = await import("./parentPingLoop-
|
|
2071
|
+
const { startParentPingLoop } = await import("./parentPingLoop-Cv-VVEEd.js");
|
|
2072
2072
|
const parentPingLoop = startParentPingLoop({
|
|
2073
2073
|
parentPid,
|
|
2074
2074
|
selfWrapperPid: process.pid,
|
|
@@ -2332,4 +2332,4 @@ function sleep(ms) {
|
|
|
2332
2332
|
|
|
2333
2333
|
//#endregion
|
|
2334
2334
|
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 };
|
|
2335
|
-
//# sourceMappingURL=ts-
|
|
2335
|
+
//# sourceMappingURL=ts-CORLA6m-.js.map
|
|
@@ -7,7 +7,7 @@ import { fileURLToPath } from "url";
|
|
|
7
7
|
|
|
8
8
|
//#region package.json
|
|
9
9
|
var name = "agent-yes";
|
|
10
|
-
var version = "1.267.
|
|
10
|
+
var version = "1.267.3";
|
|
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-N8QScM_b.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-BYETLNkD.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-BYETLNkD.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-CszqlDS7.js.map
|
|
@@ -3,10 +3,10 @@ import "./globalPidIndex-Dq4KY2IV.js";
|
|
|
3
3
|
import "./messageLog-BYFwioFY.js";
|
|
4
4
|
import "./e2e-CUMZC53I.js";
|
|
5
5
|
import "./configShared-DtHMBCl7.js";
|
|
6
|
-
import "./subcommands-
|
|
6
|
+
import "./subcommands-Dk2xyL6v.js";
|
|
7
7
|
import "./notifyStore-Cbw2ZJ0X.js";
|
|
8
8
|
import "./webrtcLink-DyCj380i.js";
|
|
9
9
|
import "./remotes-DdAfueOu.js";
|
|
10
|
-
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-
|
|
10
|
+
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-CTk97AIX.js";
|
|
11
11
|
|
|
12
12
|
export { WS_JSON_SCHEMA, cmdWs, collectWorkspaces, isPathInside, loadProvision, walkWorkspaces, workspaceStatus };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { O as listRecords } from "./subcommands-
|
|
1
|
+
import { O as listRecords } from "./subcommands-Dk2xyL6v.js";
|
|
2
2
|
import { a as getProvisionRoot } from "./workspaceConfig-CBKlgA_q.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-CTk97AIX.js.map
|
package/lab/ui/index.html
CHANGED
|
@@ -8129,7 +8129,10 @@ my.translate = async (text, lang) => {
|
|
|
8129
8129
|
});
|
|
8130
8130
|
$("nf-repo")?.addEventListener("change", onRepoChange);
|
|
8131
8131
|
$("nf-branch-row")?.addEventListener("input", (ev) => {
|
|
8132
|
-
if (ev.target.id === "nf-branch")
|
|
8132
|
+
if (ev.target.id === "nf-branch") {
|
|
8133
|
+
updateBranchHint();
|
|
8134
|
+
updateProvisionCwd();
|
|
8135
|
+
}
|
|
8133
8136
|
});
|
|
8134
8137
|
showHook(target);
|
|
8135
8138
|
loadRepoPicker(target);
|
|
@@ -8143,6 +8146,7 @@ my.translate = async (text, lang) => {
|
|
|
8143
8146
|
// The listing endpoints are best-effort; a fetch failure just leaves the
|
|
8144
8147
|
// datalist empty and shows a short hint, manual input still provisions.
|
|
8145
8148
|
let nfRemoteBranches = null; // Set of remote branch names for the picked repo
|
|
8149
|
+
let nfWsRoot = ""; // target host's workspace root (from /api/ws/repos)
|
|
8146
8150
|
|
|
8147
8151
|
// What the repo field's text means. github-first: bare owner/repo IS a
|
|
8148
8152
|
// github repo; only scheme/git@ inputs on other hosts become raw git URLs.
|
|
@@ -8159,10 +8163,47 @@ my.translate = async (text, lang) => {
|
|
|
8159
8163
|
m = /^([A-Za-z0-9_.-]+)\/([A-Za-z0-9_.-]+)$/.exec(v);
|
|
8160
8164
|
if (m && m[1] !== "." && m[1] !== "..")
|
|
8161
8165
|
return { kind: "github", owner: m[1], repo: m[2], branch: "" };
|
|
8162
|
-
if (/^(git@[^:\s]+:|ssh:\/\/|git:\/\/|https?:\/\/)\S+$/.test(v))
|
|
8163
|
-
|
|
8166
|
+
if (/^(git@[^:\s]+:|ssh:\/\/|git:\/\/|https?:\/\/)\S+$/.test(v)) {
|
|
8167
|
+
// owner/repo from the last two path segments — where the server's
|
|
8168
|
+
// raw-clone path will place the checkout in the standard layout
|
|
8169
|
+
const segs = v
|
|
8170
|
+
.replace(/\/+$/, "")
|
|
8171
|
+
.replace(/\.git$/, "")
|
|
8172
|
+
.split(/[/:]/)
|
|
8173
|
+
.filter(Boolean);
|
|
8174
|
+
return {
|
|
8175
|
+
kind: "git",
|
|
8176
|
+
url: v.replace(/\/+$/, ""),
|
|
8177
|
+
owner: segs.length >= 2 ? segs[segs.length - 2] : "",
|
|
8178
|
+
repo: segs.length >= 2 ? segs[segs.length - 1] : "",
|
|
8179
|
+
};
|
|
8180
|
+
}
|
|
8164
8181
|
return null;
|
|
8165
8182
|
}
|
|
8183
|
+
|
|
8184
|
+
// While a provision source is picked, the Working dir is DERIVED — show
|
|
8185
|
+
// the ws-standard target <wsRoot>/<owner>/<repo>/tree/<branch> and lock
|
|
8186
|
+
// the field so it can't read as "clone into whatever dir was there".
|
|
8187
|
+
// Cleared → unlock and restore what the user had typed.
|
|
8188
|
+
function updateProvisionCwd() {
|
|
8189
|
+
const cwdEl = $("nf-cwd");
|
|
8190
|
+
if (!cwdEl) return;
|
|
8191
|
+
const parsed = parseRepoInput($("nf-repo")?.value || "");
|
|
8192
|
+
if (!parsed || !parsed.owner || !parsed.repo) {
|
|
8193
|
+
if (cwdEl.disabled) {
|
|
8194
|
+
cwdEl.disabled = false;
|
|
8195
|
+
cwdEl.value = cwdEl.dataset.userCwd || "";
|
|
8196
|
+
}
|
|
8197
|
+
return;
|
|
8198
|
+
}
|
|
8199
|
+
if (!cwdEl.disabled) cwdEl.dataset.userCwd = cwdEl.value;
|
|
8200
|
+
let br = ($("nf-branch")?.value || "").trim() || parsed.branch || "";
|
|
8201
|
+
if (!br && nfRemoteBranches) {
|
|
8202
|
+
br = nfRemoteBranches.has("main") ? "main" : nfRemoteBranches.has("master") ? "master" : "";
|
|
8203
|
+
}
|
|
8204
|
+
cwdEl.disabled = true;
|
|
8205
|
+
cwdEl.value = `${nfWsRoot || "~/ws"}/${parsed.owner}/${parsed.repo}/tree/${br || "…"}`;
|
|
8206
|
+
}
|
|
8166
8207
|
function loadRepoPicker(target) {
|
|
8167
8208
|
const dl = $("nf-repo-list");
|
|
8168
8209
|
const hint = $("nf-repo-hint");
|
|
@@ -8175,6 +8216,8 @@ my.translate = async (text, lang) => {
|
|
|
8175
8216
|
// a slow answer for a host the user switched away from must not
|
|
8176
8217
|
// paint the new host's repo list (same guard as showHook)
|
|
8177
8218
|
if ($("newform").dataset.room !== forId) return;
|
|
8219
|
+
nfWsRoot = (d && d.wsRoot) || "";
|
|
8220
|
+
updateProvisionCwd();
|
|
8178
8221
|
const repos = (d && d.repos) || [];
|
|
8179
8222
|
dl.innerHTML = repos
|
|
8180
8223
|
.map(
|
|
@@ -8202,6 +8245,7 @@ my.translate = async (text, lang) => {
|
|
|
8202
8245
|
const hint = $("nf-branch-hint");
|
|
8203
8246
|
nfRemoteBranches = null;
|
|
8204
8247
|
if (row) row.style.display = parsed ? "" : "none";
|
|
8248
|
+
updateProvisionCwd();
|
|
8205
8249
|
if (!parsed) return;
|
|
8206
8250
|
if (parsed.kind === "github") {
|
|
8207
8251
|
if (parsed.branch && $("nf-branch")) $("nf-branch").value = parsed.branch;
|
|
@@ -8246,6 +8290,7 @@ my.translate = async (text, lang) => {
|
|
|
8246
8290
|
)
|
|
8247
8291
|
.join("");
|
|
8248
8292
|
updateBranchHint(d && d.error);
|
|
8293
|
+
updateProvisionCwd();
|
|
8249
8294
|
})
|
|
8250
8295
|
.catch(() => {
|
|
8251
8296
|
if (hint) hint.textContent = "branch list unavailable — type a branch name";
|
package/package.json
CHANGED
package/dist/trayApp-CoD89Y1_.js
DELETED