agent-yes 1.246.3 → 1.246.5-beta.590.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{SUPPORTED_CLIS-BYeEVEgZ.js → SUPPORTED_CLIS-BJhYxHeR.js} +2 -2
- package/dist/SUPPORTED_CLIS-CRTn0Nx8.js +11 -0
- package/dist/{agent-yes.config-DPtMM0S-.js → agent-yes.config-C8e9rNLW.js} +3 -3
- package/dist/{agentShare-B9X9pO6m.js → agentShare-DPI4N4xI.js} +3 -3
- package/dist/{callback-CRF0mUus.js → callback-BKdjxKoV.js} +5 -5
- package/dist/{callback-BqFaWi9L.js → callback-llWDd9ft.js} +3 -3
- package/dist/cli.js +7 -7
- package/dist/{configShared-9wVlbPyC.js → configShared-IBbnn9b8.js} +2 -2
- package/dist/{expose-Ct28jckQ.js → expose-BU3f7VfC.js} +3 -3
- package/dist/index.js +3 -3
- package/dist/{notifyDaemon-CTCu7uSw.js → notifyDaemon-C3p8yn0R.js} +3 -3
- package/dist/{pidStore-bCVS2Ldt.js → pidStore-Bg7wdjxY.js} +1 -1
- package/dist/{pidStore-6EZd5DUv.js → pidStore-vnX0bgra.js} +5 -3
- package/dist/{rustBinary-4znAUQBB.js → rustBinary-CvqZkbf_.js} +2 -2
- package/dist/{schedule-Cg5bJdAF.js → schedule-e8gyu89f.js} +6 -6
- package/dist/{serve-di_OIfsC.js → serve-D_OiHSTd.js} +32 -23
- package/dist/{setup-CjrHOYZs.js → setup-C8PDI1dj.js} +3 -3
- package/dist/{spawnGate-BxgS_GlF.js → spawnGate-BFJPdHCQ.js} +2 -2
- package/dist/{spawnGate-Dc3odVqo.js → spawnGate-Djr4KlF5.js} +1 -1
- package/dist/{subcommands-9m9D3C03.js → subcommands-8KoxlZi3.js} +14 -14
- package/dist/{subcommands-CustPguh.js → subcommands-DNvEvOOs.js} +2 -2
- package/dist/{terminal-Dhx67Thi.js → terminal-DejUdjU0.js} +2 -2
- package/dist/{ts-zcVmOocL.js → ts-dKF7iP5r.js} +141 -13
- package/dist/{versionChecker-DAyhKwPF.js → versionChecker-BRz6S-vY.js} +2 -2
- package/dist/{widget-DeJUoOYQ.js → widget-DUeVYdCO.js} +3 -3
- package/dist/{workspaceConfig-DOHygA2x.js → workspaceConfig-CpilQzMY.js} +24 -2
- package/dist/{ws-CzHpujvz.js → ws-CdMDHB2O.js} +4 -4
- package/lab/ui/index.html +40 -6
- package/package.json +1 -1
- package/ts/agentPermissions.spec.ts +117 -0
- package/ts/agentPermissions.ts +80 -0
- package/ts/globalPidIndex.ts +8 -0
- package/ts/index.ts +20 -3
- package/ts/pidStore.ts +7 -0
- package/ts/resolveBinary.spec.ts +133 -0
- package/ts/resolveBinary.ts +95 -0
- package/ts/serve.ts +47 -1
- package/ts/workspaceConfig.ts +30 -0
- package/dist/SUPPORTED_CLIS-CfuM53rz.js +0 -11
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { t as CLIS_CONFIG } from "./ts-
|
|
1
|
+
import { t as CLIS_CONFIG } from "./ts-dKF7iP5r.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-BJhYxHeR.js.map
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import "./logger-CDIsZ-Pp.js";
|
|
2
|
+
import "./versionChecker-BRz6S-vY.js";
|
|
3
|
+
import "./ts-dKF7iP5r.js";
|
|
4
|
+
import "./todoAutomation-Buo457VO.js";
|
|
5
|
+
import "./JsonlStore-CPGIR0Wy.js";
|
|
6
|
+
import "./globalPidIndex-D9DOSd-c.js";
|
|
7
|
+
import "./pidStore-vnX0bgra.js";
|
|
8
|
+
import "./messageLog-C-YIzhRj.js";
|
|
9
|
+
import { t as SUPPORTED_CLIS } from "./SUPPORTED_CLIS-BJhYxHeR.js";
|
|
10
|
+
|
|
11
|
+
export { SUPPORTED_CLIS };
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { n as logger } from "./logger-CDIsZ-Pp.js";
|
|
2
|
-
import { n as normalizeAgentYesConfig, t as loadSharedCliDefaults } from "./configShared-
|
|
2
|
+
import { n as normalizeAgentYesConfig, t as loadSharedCliDefaults } from "./configShared-IBbnn9b8.js";
|
|
3
|
+
import path from "node:path";
|
|
3
4
|
import os from "node:os";
|
|
4
5
|
import { access, mkdir, readFile, writeFile } from "node:fs/promises";
|
|
5
|
-
import path from "node:path";
|
|
6
6
|
import { parse } from "yaml";
|
|
7
7
|
|
|
8
8
|
//#region ts/defineConfig.ts
|
|
@@ -226,4 +226,4 @@ async function getDefaultConfig() {
|
|
|
226
226
|
|
|
227
227
|
//#endregion
|
|
228
228
|
export { agent_yes_config_default as default };
|
|
229
|
-
//# sourceMappingURL=agent-yes.config-
|
|
229
|
+
//# sourceMappingURL=agent-yes.config-C8e9rNLW.js.map
|
|
@@ -2,8 +2,8 @@ import "./logger-CDIsZ-Pp.js";
|
|
|
2
2
|
import "./globalPidIndex-D9DOSd-c.js";
|
|
3
3
|
import "./messageLog-C-YIzhRj.js";
|
|
4
4
|
import "./e2e-CEIdJGZ7.js";
|
|
5
|
-
import "./configShared-
|
|
6
|
-
import { P as resolveOne } from "./subcommands-
|
|
5
|
+
import "./configShared-IBbnn9b8.js";
|
|
6
|
+
import { P as resolveOne } from "./subcommands-8KoxlZi3.js";
|
|
7
7
|
import "./webrtcLink-BMYneHbu.js";
|
|
8
8
|
import "./remotes-BxQnNxQv.js";
|
|
9
9
|
import { a as startShare } from "./share-BGl3wutJ.js";
|
|
@@ -229,4 +229,4 @@ function transformEvent(rawEvent, agentId, forwarded) {
|
|
|
229
229
|
|
|
230
230
|
//#endregion
|
|
231
231
|
export { createScopedShare, listShares, revokeAllShares, revokeShare };
|
|
232
|
-
//# sourceMappingURL=agentShare-
|
|
232
|
+
//# sourceMappingURL=agentShare-DPI4N4xI.js.map
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { t as agentYesHome } from "./agentYesHome-CtmsY6I-.js";
|
|
2
|
-
import { P as resolveOne } from "./subcommands-
|
|
2
|
+
import { P as resolveOne } from "./subcommands-8KoxlZi3.js";
|
|
3
3
|
import { a as mintCapability, o as parseExpires } from "./callbackCore-Dd28_cBM.js";
|
|
4
4
|
import { randomBytes } from "node:crypto";
|
|
5
|
-
import { mkdir, readFile, writeFile } from "node:fs/promises";
|
|
6
|
-
import path from "node:path";
|
|
7
5
|
import { chmodSync, readFileSync, renameSync, writeFileSync } from "node:fs";
|
|
6
|
+
import path from "node:path";
|
|
7
|
+
import { mkdir, readFile, writeFile } from "node:fs/promises";
|
|
8
8
|
|
|
9
9
|
//#region ts/callback.ts
|
|
10
10
|
function callbacksPath() {
|
|
@@ -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-D_OiHSTd.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-BKdjxKoV.js.map
|
|
@@ -2,11 +2,11 @@ import "./logger-CDIsZ-Pp.js";
|
|
|
2
2
|
import "./globalPidIndex-D9DOSd-c.js";
|
|
3
3
|
import "./messageLog-C-YIzhRj.js";
|
|
4
4
|
import "./e2e-CEIdJGZ7.js";
|
|
5
|
-
import "./configShared-
|
|
6
|
-
import "./subcommands-
|
|
5
|
+
import "./configShared-IBbnn9b8.js";
|
|
6
|
+
import "./subcommands-8KoxlZi3.js";
|
|
7
7
|
import "./webrtcLink-BMYneHbu.js";
|
|
8
8
|
import "./remotes-BxQnNxQv.js";
|
|
9
9
|
import "./callbackCore-Dd28_cBM.js";
|
|
10
|
-
import { i as loadOrCreateCallbackSecret, n as isCallbackRevoked, r as loadCallbackSecretReadOnly, t as cmdCallback } from "./callback-
|
|
10
|
+
import { i as loadOrCreateCallbackSecret, n as isCallbackRevoked, r as loadCallbackSecretReadOnly, t as cmdCallback } from "./callback-BKdjxKoV.js";
|
|
11
11
|
|
|
12
12
|
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 { n as getRustBinary } from "./rustBinary-
|
|
4
|
+
import { i as versionString, n as displayVersion, t as checkAndAutoUpdate } from "./versionChecker-BRz6S-vY.js";
|
|
5
|
+
import { n as getRustBinary } from "./rustBinary-CvqZkbf_.js";
|
|
6
6
|
import { argv } from "process";
|
|
7
7
|
import { spawn } from "child_process";
|
|
8
8
|
import ms from "ms";
|
|
@@ -285,7 +285,7 @@ function buildRustArgs(argv, cliFromScript, supportedClis) {
|
|
|
285
285
|
const rawArg = process.argv[2];
|
|
286
286
|
const managerCommands = !invokedCliName(process.argv);
|
|
287
287
|
const isHelpFlag = rawArg === "-h" || rawArg === "--help";
|
|
288
|
-
const { isSubcommand, runSubcommand, cmdHelp, isUnknownManagerToken } = await import("./subcommands-
|
|
288
|
+
const { isSubcommand, runSubcommand, cmdHelp, isUnknownManagerToken } = await import("./subcommands-DNvEvOOs.js");
|
|
289
289
|
if (isHelpFlag && process.argv.length === 3) {
|
|
290
290
|
await cmdHelp(managerCommands);
|
|
291
291
|
process.exit(0);
|
|
@@ -295,7 +295,7 @@ function buildRustArgs(argv, cliFromScript, supportedClis) {
|
|
|
295
295
|
process.exit(code ?? 0);
|
|
296
296
|
}
|
|
297
297
|
{
|
|
298
|
-
const { SUPPORTED_CLIS } = await import("./SUPPORTED_CLIS-
|
|
298
|
+
const { SUPPORTED_CLIS } = await import("./SUPPORTED_CLIS-CRTn0Nx8.js");
|
|
299
299
|
if (isUnknownManagerToken(rawArg, managerCommands, SUPPORTED_CLIS)) {
|
|
300
300
|
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`);
|
|
301
301
|
process.exit(1);
|
|
@@ -323,7 +323,7 @@ if (config.tray) {
|
|
|
323
323
|
ensureTray();
|
|
324
324
|
}
|
|
325
325
|
if (!config.showVersion && !config.appendPrompt && !config.tray) {
|
|
326
|
-
const { waitForSpawnCapacity } = await import("./spawnGate-
|
|
326
|
+
const { waitForSpawnCapacity } = await import("./spawnGate-Djr4KlF5.js");
|
|
327
327
|
await waitForSpawnCapacity({
|
|
328
328
|
onWait: (reason, waitedMs) => {
|
|
329
329
|
if (config.verbose || waitedMs === 0) console.error(`[agent-yes] spawn gate: ${reason} — waiting…`);
|
|
@@ -346,7 +346,7 @@ if (config.useRust) {
|
|
|
346
346
|
}
|
|
347
347
|
}
|
|
348
348
|
if (rustBinary) {
|
|
349
|
-
const { SUPPORTED_CLIS } = await import("./SUPPORTED_CLIS-
|
|
349
|
+
const { SUPPORTED_CLIS } = await import("./SUPPORTED_CLIS-CRTn0Nx8.js");
|
|
350
350
|
const rustArgs = buildRustArgs(process.argv, config.cli, SUPPORTED_CLIS);
|
|
351
351
|
if (config.verbose) {
|
|
352
352
|
console.log(`[rust] Using binary: ${rustBinary}`);
|
|
@@ -411,7 +411,7 @@ if (config.showVersion) {
|
|
|
411
411
|
process.exit(0);
|
|
412
412
|
}
|
|
413
413
|
if (config.appendPrompt) {
|
|
414
|
-
const { PidStore } = await import("./pidStore-
|
|
414
|
+
const { PidStore } = await import("./pidStore-Bg7wdjxY.js");
|
|
415
415
|
const ipcPath = await PidStore.findActiveFifo(process.cwd());
|
|
416
416
|
if (!ipcPath) {
|
|
417
417
|
console.error("No active agent with IPC found in current directory.");
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { access, readFile } from "node:fs/promises";
|
|
2
1
|
import path from "node:path";
|
|
2
|
+
import { access, readFile } from "node:fs/promises";
|
|
3
3
|
import { fileURLToPath } from "node:url";
|
|
4
4
|
import { parse } from "yaml";
|
|
5
5
|
|
|
@@ -69,4 +69,4 @@ async function loadSharedCliDefaults(fromUrl = import.meta.url) {
|
|
|
69
69
|
|
|
70
70
|
//#endregion
|
|
71
71
|
export { normalizeAgentYesConfig as n, loadSharedCliDefaults as t };
|
|
72
|
-
//# sourceMappingURL=configShared-
|
|
72
|
+
//# sourceMappingURL=configShared-IBbnn9b8.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { createHash, randomBytes } from "node:crypto";
|
|
2
|
-
import { homedir } from "node:os";
|
|
3
|
-
import path from "node:path";
|
|
4
2
|
import { chmodSync, mkdirSync, readFileSync, renameSync, writeFileSync } from "node:fs";
|
|
3
|
+
import path from "node:path";
|
|
4
|
+
import { homedir } from "node:os";
|
|
5
5
|
|
|
6
6
|
//#region node_modules/codehost/src/tunnel/protocol.ts
|
|
7
7
|
let Op = /* @__PURE__ */ function(Op) {
|
|
@@ -546,4 +546,4 @@ async function cmdExpose(args) {
|
|
|
546
546
|
|
|
547
547
|
//#endregion
|
|
548
548
|
export { cmdExpose, ensureExposure, listExposures, stopExposure };
|
|
549
|
-
//# sourceMappingURL=expose-
|
|
549
|
+
//# sourceMappingURL=expose-BU3f7VfC.js.map
|
package/dist/index.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import "./logger-CDIsZ-Pp.js";
|
|
2
|
-
import "./versionChecker-
|
|
3
|
-
import { a as hasTodoStore,
|
|
2
|
+
import "./versionChecker-BRz6S-vY.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-dKF7iP5r.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-Buo457VO.js";
|
|
5
5
|
import "./JsonlStore-CPGIR0Wy.js";
|
|
6
6
|
import "./globalPidIndex-D9DOSd-c.js";
|
|
7
|
-
import "./pidStore-
|
|
7
|
+
import "./pidStore-vnX0bgra.js";
|
|
8
8
|
import "./messageLog-C-YIzhRj.js";
|
|
9
9
|
|
|
10
10
|
export { AgentContext, CLIS_CONFIG, CycleError, DONE_STATE, LIFECYCLES, ORPHANED_STATE, TodoStore, answerAsk, canTransition, config, agentYes as default, describeBlock, hasTodoStore, initialState, isKnownKind, listAsks, listAsksForProject, monitorHint, nextStates, openBlockers, openStore, reconcileTodos, removeControlCharacters, renderDigest, renderTree, requiredGate, statesOf, unblockedTasks };
|
|
@@ -2,8 +2,8 @@ import { n as logger } from "./logger-CDIsZ-Pp.js";
|
|
|
2
2
|
import "./globalPidIndex-D9DOSd-c.js";
|
|
3
3
|
import "./messageLog-C-YIzhRj.js";
|
|
4
4
|
import "./e2e-CEIdJGZ7.js";
|
|
5
|
-
import "./configShared-
|
|
6
|
-
import { $ as shouldStealLock, C as listRecords, J as hostId, K as appendEvent, Q as readInbox, X as listInboxParents, Z as liveWatchers, _ as isPidAlive, c as deriveLiveState, et as daemonLockDir, j as renderLogTailLines, nt as notifyDir, q as gcInboxes, tt as daemonLockOwnerPath } from "./subcommands-
|
|
5
|
+
import "./configShared-IBbnn9b8.js";
|
|
6
|
+
import { $ as shouldStealLock, C as listRecords, J as hostId, K as appendEvent, Q as readInbox, X as listInboxParents, Z as liveWatchers, _ as isPidAlive, c as deriveLiveState, et as daemonLockDir, j as renderLogTailLines, nt as notifyDir, q as gcInboxes, tt as daemonLockOwnerPath } from "./subcommands-8KoxlZi3.js";
|
|
7
7
|
import "./webrtcLink-BMYneHbu.js";
|
|
8
8
|
import "./remotes-BxQnNxQv.js";
|
|
9
9
|
import { mkdir, readFile, rename, rm, stat, writeFile } from "fs/promises";
|
|
@@ -589,4 +589,4 @@ async function ensureDaemon() {
|
|
|
589
589
|
|
|
590
590
|
//#endregion
|
|
591
591
|
export { daemonStatus, ensureDaemon, requestDaemonStop, runDaemon };
|
|
592
|
-
//# sourceMappingURL=notifyDaemon-
|
|
592
|
+
//# sourceMappingURL=notifyDaemon-C3p8yn0R.js.map
|
|
@@ -24,7 +24,7 @@ var PidStore = class PidStore {
|
|
|
24
24
|
logger.warn("[pidStore] Failed to initialize:", error);
|
|
25
25
|
}
|
|
26
26
|
}
|
|
27
|
-
async registerProcess({ pid, cli, args, prompt, cwd, wrapperPid, parentPid }) {
|
|
27
|
+
async registerProcess({ pid, cli, args, prompt, cwd, wrapperPid, parentPid, permissions }) {
|
|
28
28
|
const now = Date.now();
|
|
29
29
|
const argsJson = JSON.stringify(args);
|
|
30
30
|
const logFile = this.getRawLogPath(pid);
|
|
@@ -36,6 +36,7 @@ var PidStore = class PidStore {
|
|
|
36
36
|
pid,
|
|
37
37
|
cli,
|
|
38
38
|
args: argsJson,
|
|
39
|
+
permissions,
|
|
39
40
|
prompt,
|
|
40
41
|
cwd,
|
|
41
42
|
logFile,
|
|
@@ -67,7 +68,8 @@ var PidStore = class PidStore {
|
|
|
67
68
|
started_at: now,
|
|
68
69
|
wrapper_pid: wrapperPid ?? null,
|
|
69
70
|
parent_pid: parentPid ?? null,
|
|
70
|
-
agent_id: agentId
|
|
71
|
+
agent_id: agentId,
|
|
72
|
+
permissions: permissions ?? null
|
|
71
73
|
}).then(() => maybeCompactGlobalPids()).catch(() => null);
|
|
72
74
|
return result;
|
|
73
75
|
}
|
|
@@ -188,4 +190,4 @@ pid-db/
|
|
|
188
190
|
|
|
189
191
|
//#endregion
|
|
190
192
|
export { PidStore as t };
|
|
191
|
-
//# sourceMappingURL=pidStore-
|
|
193
|
+
//# sourceMappingURL=pidStore-vnX0bgra.js.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as getInstalledPackage } from "./versionChecker-
|
|
1
|
+
import { r as getInstalledPackage } from "./versionChecker-BRz6S-vY.js";
|
|
2
2
|
import { execFileSync } from "child_process";
|
|
3
3
|
import { existsSync, mkdirSync, unlinkSync } from "fs";
|
|
4
4
|
import { chmod, copyFile } from "fs/promises";
|
|
@@ -225,4 +225,4 @@ async function getRustBinary(options = {}) {
|
|
|
225
225
|
|
|
226
226
|
//#endregion
|
|
227
227
|
export { getRustBinary as n, findSpawnHiddenLauncher as t };
|
|
228
|
-
//# sourceMappingURL=rustBinary-
|
|
228
|
+
//# sourceMappingURL=rustBinary-CvqZkbf_.js.map
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import "./logger-CDIsZ-Pp.js";
|
|
2
|
-
import "./versionChecker-
|
|
3
|
-
import "./ts-
|
|
2
|
+
import "./versionChecker-BRz6S-vY.js";
|
|
3
|
+
import "./ts-dKF7iP5r.js";
|
|
4
4
|
import "./todoAutomation-Buo457VO.js";
|
|
5
5
|
import "./JsonlStore-CPGIR0Wy.js";
|
|
6
6
|
import "./globalPidIndex-D9DOSd-c.js";
|
|
7
|
-
import "./pidStore-
|
|
7
|
+
import "./pidStore-vnX0bgra.js";
|
|
8
8
|
import "./messageLog-C-YIzhRj.js";
|
|
9
|
-
import { t as SUPPORTED_CLIS } from "./SUPPORTED_CLIS-
|
|
10
|
-
import {
|
|
9
|
+
import { t as SUPPORTED_CLIS } from "./SUPPORTED_CLIS-BJhYxHeR.js";
|
|
10
|
+
import { f as resolveSpawnCwd } from "./workspaceConfig-CpilQzMY.js";
|
|
11
11
|
import { n as liveEnv, t as ensureNodeRuntime } from "./nodeRuntime-BtL6Oo1o.js";
|
|
12
12
|
import { createHash } from "node:crypto";
|
|
13
13
|
|
|
@@ -153,4 +153,4 @@ async function cmdSchedule(rest) {
|
|
|
153
153
|
|
|
154
154
|
//#endregion
|
|
155
155
|
export { cmdSchedule };
|
|
156
|
-
//# sourceMappingURL=schedule-
|
|
156
|
+
//# sourceMappingURL=schedule-e8gyu89f.js.map
|
|
@@ -1,25 +1,25 @@
|
|
|
1
1
|
import "./logger-CDIsZ-Pp.js";
|
|
2
|
-
import { r as getInstalledPackage } from "./versionChecker-
|
|
3
|
-
import { t as findSpawnHiddenLauncher } from "./rustBinary-
|
|
4
|
-
import {
|
|
2
|
+
import { r as getInstalledPackage } from "./versionChecker-BRz6S-vY.js";
|
|
3
|
+
import { t as findSpawnHiddenLauncher } from "./rustBinary-CvqZkbf_.js";
|
|
4
|
+
import { c as permissionBadge, i as answerAsk, o as listAsks, u as CLAUDE_SESSION_PIN_ENV } from "./ts-dKF7iP5r.js";
|
|
5
5
|
import { t as agentYesHome$1 } from "./agentYesHome-CtmsY6I-.js";
|
|
6
6
|
import { x as removeControlCharacters } from "./todoAutomation-Buo457VO.js";
|
|
7
7
|
import "./JsonlStore-CPGIR0Wy.js";
|
|
8
8
|
import { a as updateGlobalPidStatus } from "./globalPidIndex-D9DOSd-c.js";
|
|
9
|
-
import "./pidStore-
|
|
9
|
+
import "./pidStore-vnX0bgra.js";
|
|
10
10
|
import { r as recordInbox } from "./messageLog-C-YIzhRj.js";
|
|
11
11
|
import { t as pgidForWrapper } from "./reaper-DP49VCKx.js";
|
|
12
12
|
import "./e2e-CEIdJGZ7.js";
|
|
13
|
-
import "./configShared-
|
|
14
|
-
import { t as SUPPORTED_CLIS } from "./SUPPORTED_CLIS-
|
|
15
|
-
import { A as recentReadEdges, C as listRecords, D as readNotes, G as writeToIpc, M as renderRawLog, N as renderRawLogLines, O as readPtysize, P as resolveOne, Y as isTransientLockMkdirError, f as extractNeedsInput, j as renderLogTailLines, k as recentMessageEdges, l as deriveLiveStatus, o as controlCodeFromName, p as extractTaskCounts, rt as TYPING_BADGE, u as extractBadges, x as isUserTyping, z as snapshotStatus } from "./subcommands-
|
|
13
|
+
import "./configShared-IBbnn9b8.js";
|
|
14
|
+
import { t as SUPPORTED_CLIS } from "./SUPPORTED_CLIS-BJhYxHeR.js";
|
|
15
|
+
import { A as recentReadEdges, C as listRecords, D as readNotes, G as writeToIpc, M as renderRawLog, N as renderRawLogLines, O as readPtysize, P as resolveOne, Y as isTransientLockMkdirError, f as extractNeedsInput, j as renderLogTailLines, k as recentMessageEdges, l as deriveLiveStatus, o as controlCodeFromName, p as extractTaskCounts, rt as TYPING_BADGE, u as extractBadges, x as isUserTyping, z as snapshotStatus } from "./subcommands-8KoxlZi3.js";
|
|
16
16
|
import "./webrtcLink-BMYneHbu.js";
|
|
17
17
|
import "./remotes-BxQnNxQv.js";
|
|
18
18
|
import { i as frameVisitorMessage, s as verifyCapability, t as MAX_CALLBACK_MSG_BYTES } from "./callbackCore-Dd28_cBM.js";
|
|
19
|
-
import { n as isCallbackRevoked, r as loadCallbackSecretReadOnly } from "./callback-
|
|
20
|
-
import { a as
|
|
19
|
+
import { n as isCallbackRevoked, r as loadCallbackSecretReadOnly } from "./callback-BKdjxKoV.js";
|
|
20
|
+
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-CpilQzMY.js";
|
|
21
21
|
import { n as liveEnv, t as ensureNodeRuntime } from "./nodeRuntime-BtL6Oo1o.js";
|
|
22
|
-
import { r as spawnRejectionReason } from "./spawnGate-
|
|
22
|
+
import { r as spawnRejectionReason } from "./spawnGate-BFJPdHCQ.js";
|
|
23
23
|
import yargs from "yargs";
|
|
24
24
|
import { appendFile, mkdir, open, readFile, readdir, rename, rm, stat, unlink, writeFile } from "fs/promises";
|
|
25
25
|
import { arch, cpus, freemem, homedir, hostname, loadavg, platform, totalmem, uptime, userInfo } from "os";
|
|
@@ -2151,7 +2151,11 @@ Options:
|
|
|
2151
2151
|
size: await sizeOf(r.pid),
|
|
2152
2152
|
inputs: [textIn, envIn],
|
|
2153
2153
|
outputs: [textOut],
|
|
2154
|
-
renderHints: await hintsOf(r)
|
|
2154
|
+
renderHints: await hintsOf(r),
|
|
2155
|
+
configPublic: {
|
|
2156
|
+
permissions: r.permissions ?? null,
|
|
2157
|
+
permissionBadge: permissionBadge(r.permissions)
|
|
2158
|
+
}
|
|
2155
2159
|
})));
|
|
2156
2160
|
nodes.push({
|
|
2157
2161
|
id: envNodeId,
|
|
@@ -2181,7 +2185,8 @@ Options:
|
|
|
2181
2185
|
kill: true,
|
|
2182
2186
|
spawn: true,
|
|
2183
2187
|
spawnHook: hasSpawnHook(),
|
|
2184
|
-
provision: hasProvisionHook()
|
|
2188
|
+
provision: hasProvisionHook(),
|
|
2189
|
+
skipPermissions: allowsSkipPermissions()
|
|
2185
2190
|
}
|
|
2186
2191
|
}
|
|
2187
2192
|
});
|
|
@@ -2296,11 +2301,12 @@ Options:
|
|
|
2296
2301
|
kill: true,
|
|
2297
2302
|
spawn: true,
|
|
2298
2303
|
spawnHook: hasSpawnHook(),
|
|
2299
|
-
provision: hasProvisionHook()
|
|
2304
|
+
provision: hasProvisionHook(),
|
|
2305
|
+
skipPermissions: allowsSkipPermissions()
|
|
2300
2306
|
}
|
|
2301
2307
|
});
|
|
2302
2308
|
if (req.method === "GET" && p === "/api/ws") {
|
|
2303
|
-
const ws = await import("./ws-
|
|
2309
|
+
const ws = await import("./ws-CdMDHB2O.js");
|
|
2304
2310
|
try {
|
|
2305
2311
|
await ws.loadProvision();
|
|
2306
2312
|
} catch (e) {
|
|
@@ -2320,7 +2326,7 @@ Options:
|
|
|
2320
2326
|
if (req.method === "GET" && p === "/api/ws/status") {
|
|
2321
2327
|
const dirRaw = url.searchParams.get("path");
|
|
2322
2328
|
if (!dirRaw) return new Response("missing ?path=<workspace dir>", { status: 400 });
|
|
2323
|
-
const ws = await import("./ws-
|
|
2329
|
+
const ws = await import("./ws-CdMDHB2O.js");
|
|
2324
2330
|
let prov;
|
|
2325
2331
|
try {
|
|
2326
2332
|
prov = await ws.loadProvision();
|
|
@@ -2888,6 +2894,8 @@ Options:
|
|
|
2888
2894
|
const cli = String(body.cli ?? "claude");
|
|
2889
2895
|
if (!SUPPORTED_CLIS.includes(cli)) return new Response(`unsupported cli: ${cli}`, { status: 400 });
|
|
2890
2896
|
const prompt = String(body.prompt ?? "");
|
|
2897
|
+
const wantsSkipPermissions = body.yes === true;
|
|
2898
|
+
if (wantsSkipPermissions && !allowsSkipPermissions()) return new Response("this environment does not permit skip-permissions agents (caps.skipPermissions=false) — spawn without `yes`, or set \"allowSkipPermissions\": true in ~/.agent-yes/config.json (or AGENT_YES_ALLOW_SKIP_PERMISSIONS=1) on the host", { status: 403 });
|
|
2891
2899
|
const reject = await spawnRejectionReason();
|
|
2892
2900
|
if (reject) return new Response(reject, { status: 429 });
|
|
2893
2901
|
let cwd;
|
|
@@ -2983,6 +2991,7 @@ Options:
|
|
|
2983
2991
|
const ayBin = Bun.which("ay") ?? process.argv[1];
|
|
2984
2992
|
const agentArgv = [
|
|
2985
2993
|
...process.platform === "win32" && ayBin.toLowerCase().endsWith(".exe") ? [ayBin] : [process.execPath, ayBin],
|
|
2994
|
+
...wantsSkipPermissions ? ["-y"] : [],
|
|
2986
2995
|
cli,
|
|
2987
2996
|
...prompt ? ["--", prompt] : []
|
|
2988
2997
|
];
|
|
@@ -3070,7 +3079,7 @@ Options:
|
|
|
3070
3079
|
const perm = body.perm ?? "r";
|
|
3071
3080
|
if (perm !== "r" && perm !== "rw") return new Response(`invalid perm ${perm} (want r or rw)`, { status: 400 });
|
|
3072
3081
|
try {
|
|
3073
|
-
const { createScopedShare } = await import("./agentShare-
|
|
3082
|
+
const { createScopedShare } = await import("./agentShare-DPI4N4xI.js");
|
|
3074
3083
|
const share = await createScopedShare({
|
|
3075
3084
|
agent: body.agent,
|
|
3076
3085
|
perm,
|
|
@@ -3085,12 +3094,12 @@ Options:
|
|
|
3085
3094
|
}
|
|
3086
3095
|
}
|
|
3087
3096
|
if (req.method === "GET" && p === "/api/shares") {
|
|
3088
|
-
const { listShares } = await import("./agentShare-
|
|
3097
|
+
const { listShares } = await import("./agentShare-DPI4N4xI.js");
|
|
3089
3098
|
return Response.json(listShares());
|
|
3090
3099
|
}
|
|
3091
3100
|
const revokeM = /^\/api\/share\/([^/]+)$/.exec(p);
|
|
3092
3101
|
if (req.method === "DELETE" && revokeM) {
|
|
3093
|
-
const { revokeShare } = await import("./agentShare-
|
|
3102
|
+
const { revokeShare } = await import("./agentShare-DPI4N4xI.js");
|
|
3094
3103
|
const ok = revokeShare(decodeURIComponent(revokeM[1]));
|
|
3095
3104
|
return new Response(ok ? "revoked" : "no such share", { status: ok ? 200 : 404 });
|
|
3096
3105
|
}
|
|
@@ -3104,7 +3113,7 @@ Options:
|
|
|
3104
3113
|
const port = Number(body.port);
|
|
3105
3114
|
if (!Number.isInteger(port) || port < 1 || port > 65535) return new Response("valid port required", { status: 400 });
|
|
3106
3115
|
try {
|
|
3107
|
-
const { ensureExposure } = await import("./expose-
|
|
3116
|
+
const { ensureExposure } = await import("./expose-BU3f7VfC.js");
|
|
3108
3117
|
const h = await ensureExposure(port, body.relay);
|
|
3109
3118
|
return Response.json({
|
|
3110
3119
|
id: h.id,
|
|
@@ -3118,12 +3127,12 @@ Options:
|
|
|
3118
3127
|
}
|
|
3119
3128
|
}
|
|
3120
3129
|
if (req.method === "GET" && p === "/api/exposes") {
|
|
3121
|
-
const { listExposures } = await import("./expose-
|
|
3130
|
+
const { listExposures } = await import("./expose-BU3f7VfC.js");
|
|
3122
3131
|
return Response.json(listExposures());
|
|
3123
3132
|
}
|
|
3124
3133
|
const unexposeM = /^\/api\/expose\/(\d+)$/.exec(p);
|
|
3125
3134
|
if (req.method === "DELETE" && unexposeM) {
|
|
3126
|
-
const { stopExposure } = await import("./expose-
|
|
3135
|
+
const { stopExposure } = await import("./expose-BU3f7VfC.js");
|
|
3127
3136
|
const ok = stopExposure(Number(unexposeM[1]));
|
|
3128
3137
|
return new Response(ok ? "revoked" : "no such exposure", { status: ok ? 200 : 404 });
|
|
3129
3138
|
}
|
|
@@ -3392,7 +3401,7 @@ Options:
|
|
|
3392
3401
|
const shutdown = (resolve) => {
|
|
3393
3402
|
if (heartbeat) clearInterval(heartbeat);
|
|
3394
3403
|
closeShare?.();
|
|
3395
|
-
import("./agentShare-
|
|
3404
|
+
import("./agentShare-DPI4N4xI.js").then((m) => m.revokeAllShares()).catch(() => {});
|
|
3396
3405
|
server?.stop();
|
|
3397
3406
|
Promise.resolve(releaseHostLock?.()).catch(() => {}).then(resolve);
|
|
3398
3407
|
};
|
|
@@ -3405,4 +3414,4 @@ Options:
|
|
|
3405
3414
|
|
|
3406
3415
|
//#endregion
|
|
3407
3416
|
export { cmdServe, loadTokenReadOnly, mintScopedTermToken, resolveDaemonHttpBase, resolveLocalServeUrl };
|
|
3408
|
-
//# sourceMappingURL=serve-
|
|
3417
|
+
//# sourceMappingURL=serve-D_OiHSTd.js.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { c as getWorkspaceRoot, p as setWorkspaceRoot } from "./workspaceConfig-CpilQzMY.js";
|
|
2
2
|
import { existsSync } from "node:fs";
|
|
3
3
|
import { stdin, stdout } from "node:process";
|
|
4
4
|
import { createInterface } from "node:readline/promises";
|
|
@@ -32,7 +32,7 @@ async function cmdSetup(rest) {
|
|
|
32
32
|
if (!existsSync(abs)) process.stderr.write(` note: that directory doesn't exist yet — create it, or agents spawned there will fail\n`);
|
|
33
33
|
if (noShare) return 0;
|
|
34
34
|
process.stdout.write(`\nsharing this machine to agent-yes.com…\n`);
|
|
35
|
-
const { cmdServe } = await import("./serve-
|
|
35
|
+
const { cmdServe } = await import("./serve-D_OiHSTd.js");
|
|
36
36
|
return cmdServe([
|
|
37
37
|
"install",
|
|
38
38
|
"--share",
|
|
@@ -42,4 +42,4 @@ async function cmdSetup(rest) {
|
|
|
42
42
|
|
|
43
43
|
//#endregion
|
|
44
44
|
export { cmdSetup };
|
|
45
|
-
//# sourceMappingURL=setup-
|
|
45
|
+
//# sourceMappingURL=setup-C8PDI1dj.js.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { i as readGlobalPids } from "./globalPidIndex-D9DOSd-c.js";
|
|
2
|
-
import { n as
|
|
2
|
+
import { n as getMaxAgents, r as getMinFreeMb, s as getSpawnWaitMs } from "./workspaceConfig-CpilQzMY.js";
|
|
3
3
|
import { readFile } from "fs/promises";
|
|
4
4
|
|
|
5
5
|
//#region ts/spawnGate.ts
|
|
@@ -104,4 +104,4 @@ async function waitForSpawnCapacity(opts) {
|
|
|
104
104
|
|
|
105
105
|
//#endregion
|
|
106
106
|
export { waitForSpawnCapacity as i, spawnGateEnabled as n, spawnRejectionReason as r, memAvailableMb as t };
|
|
107
|
-
//# sourceMappingURL=spawnGate-
|
|
107
|
+
//# sourceMappingURL=spawnGate-BFJPdHCQ.js.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import "./logger-CDIsZ-Pp.js";
|
|
2
2
|
import "./globalPidIndex-D9DOSd-c.js";
|
|
3
|
-
import { i as waitForSpawnCapacity, n as spawnGateEnabled, r as spawnRejectionReason, t as memAvailableMb } from "./spawnGate-
|
|
3
|
+
import { i as waitForSpawnCapacity, n as spawnGateEnabled, r as spawnRejectionReason, t as memAvailableMb } from "./spawnGate-BFJPdHCQ.js";
|
|
4
4
|
|
|
5
5
|
export { waitForSpawnCapacity };
|
|
@@ -3,7 +3,7 @@ import { n as logger } from "./logger-CDIsZ-Pp.js";
|
|
|
3
3
|
import { t as agentYesHome } from "./agentYesHome-CtmsY6I-.js";
|
|
4
4
|
import { a as updateGlobalPidStatus, i as readGlobalPids } from "./globalPidIndex-D9DOSd-c.js";
|
|
5
5
|
import { a as recordOutbox, i as recordMessage, n as readMailbox, t as partyMatches } from "./messageLog-C-YIzhRj.js";
|
|
6
|
-
import { t as loadSharedCliDefaults } from "./configShared-
|
|
6
|
+
import { t as loadSharedCliDefaults } from "./configShared-IBbnn9b8.js";
|
|
7
7
|
import { n as isWebrtcSpec } from "./webrtcLink-BMYneHbu.js";
|
|
8
8
|
import { a as resolveRemoteSpec, i as readRemotes } from "./remotes-BxQnNxQv.js";
|
|
9
9
|
import ms from "ms";
|
|
@@ -1267,31 +1267,31 @@ async function runSubcommand(argv) {
|
|
|
1267
1267
|
return cmdCh(rest);
|
|
1268
1268
|
}
|
|
1269
1269
|
case "term": {
|
|
1270
|
-
const { cmdTerm } = await import("./terminal-
|
|
1270
|
+
const { cmdTerm } = await import("./terminal-DejUdjU0.js");
|
|
1271
1271
|
return cmdTerm(rest);
|
|
1272
1272
|
}
|
|
1273
1273
|
case "widget": {
|
|
1274
|
-
const { cmdWidget } = await import("./widget-
|
|
1274
|
+
const { cmdWidget } = await import("./widget-DUeVYdCO.js");
|
|
1275
1275
|
return cmdWidget(rest);
|
|
1276
1276
|
}
|
|
1277
1277
|
case "mint": {
|
|
1278
|
-
const { cmdMint } = await import("./widget-
|
|
1278
|
+
const { cmdMint } = await import("./widget-DUeVYdCO.js");
|
|
1279
1279
|
return cmdMint(rest);
|
|
1280
1280
|
}
|
|
1281
1281
|
case "serve": {
|
|
1282
|
-
const { cmdServe } = await import("./serve-
|
|
1282
|
+
const { cmdServe } = await import("./serve-D_OiHSTd.js");
|
|
1283
1283
|
return cmdServe(rest);
|
|
1284
1284
|
}
|
|
1285
1285
|
case "setup": {
|
|
1286
|
-
const { cmdSetup } = await import("./setup-
|
|
1286
|
+
const { cmdSetup } = await import("./setup-C8PDI1dj.js");
|
|
1287
1287
|
return cmdSetup(rest);
|
|
1288
1288
|
}
|
|
1289
1289
|
case "ws": {
|
|
1290
|
-
const { cmdWs } = await import("./ws-
|
|
1290
|
+
const { cmdWs } = await import("./ws-CdMDHB2O.js");
|
|
1291
1291
|
return cmdWs(rest);
|
|
1292
1292
|
}
|
|
1293
1293
|
case "schedule": {
|
|
1294
|
-
const { cmdSchedule } = await import("./schedule-
|
|
1294
|
+
const { cmdSchedule } = await import("./schedule-e8gyu89f.js");
|
|
1295
1295
|
return cmdSchedule(rest);
|
|
1296
1296
|
}
|
|
1297
1297
|
case "remote": {
|
|
@@ -1299,11 +1299,11 @@ async function runSubcommand(argv) {
|
|
|
1299
1299
|
return cmdRemote(rest);
|
|
1300
1300
|
}
|
|
1301
1301
|
case "expose": {
|
|
1302
|
-
const { cmdExpose } = await import("./expose-
|
|
1302
|
+
const { cmdExpose } = await import("./expose-BU3f7VfC.js");
|
|
1303
1303
|
return cmdExpose(rest);
|
|
1304
1304
|
}
|
|
1305
1305
|
case "callback": {
|
|
1306
|
-
const { cmdCallback } = await import("./callback-
|
|
1306
|
+
const { cmdCallback } = await import("./callback-llWDd9ft.js");
|
|
1307
1307
|
return cmdCallback(rest);
|
|
1308
1308
|
}
|
|
1309
1309
|
case "reap":
|
|
@@ -3706,7 +3706,7 @@ async function cmdAttach(rest) {
|
|
|
3706
3706
|
const winsizeDir = path.join(ayHome, "winsize");
|
|
3707
3707
|
await mkdir(winsizeDir, { recursive: true });
|
|
3708
3708
|
const winsizePath = path.join(winsizeDir, String(record.pid));
|
|
3709
|
-
const { resolveDaemonHttpBase, loadTokenReadOnly } = await import("./serve-
|
|
3709
|
+
const { resolveDaemonHttpBase, loadTokenReadOnly } = await import("./serve-D_OiHSTd.js");
|
|
3710
3710
|
const daemonBase = await resolveDaemonHttpBase().catch(() => null);
|
|
3711
3711
|
const daemonToken = daemonBase ? await loadTokenReadOnly().catch(() => null) ?? "" : "";
|
|
3712
3712
|
const capViewer = `attach:${process.pid}`;
|
|
@@ -4403,7 +4403,7 @@ async function cmdNotify(rest) {
|
|
|
4403
4403
|
}
|
|
4404
4404
|
const ensure = async () => {
|
|
4405
4405
|
if (!argv["ensure-daemon"]) return;
|
|
4406
|
-
const { ensureDaemon } = await import("./notifyDaemon-
|
|
4406
|
+
const { ensureDaemon } = await import("./notifyDaemon-C3p8yn0R.js");
|
|
4407
4407
|
await ensureDaemon().catch(() => null);
|
|
4408
4408
|
};
|
|
4409
4409
|
await heartbeatWatcher(parent, selfStartedAt);
|
|
@@ -4477,7 +4477,7 @@ async function cmdNotifyCursor(args) {
|
|
|
4477
4477
|
}
|
|
4478
4478
|
async function cmdNotifyd(rest) {
|
|
4479
4479
|
const sub = rest[0] ?? "status";
|
|
4480
|
-
const daemon = await import("./notifyDaemon-
|
|
4480
|
+
const daemon = await import("./notifyDaemon-C3p8yn0R.js");
|
|
4481
4481
|
switch (sub) {
|
|
4482
4482
|
case "run": return daemon.runDaemon();
|
|
4483
4483
|
case "once": return daemon.runDaemon({ once: true });
|
|
@@ -4504,4 +4504,4 @@ async function cmdNotifyd(rest) {
|
|
|
4504
4504
|
|
|
4505
4505
|
//#endregion
|
|
4506
4506
|
export { shouldStealLock as $, recentReadEdges as A, stdinActivityPath as B, listRecords as C, readNotes as D, readAgentPtysize as E, resolveReadWindow as F, writeToIpc as G, submitAndConfirm as H, resolveResumeArgs as I, hostId as J, appendEvent as K, restartHintLines as L, renderRawLog as M, renderRawLogLines as N, readPtysize as O, resolveOne as P, readInbox as Q, runSubcommand as R, lastStdinAt as S, menuSelectKeys as T, waitForLogQuiet as U, stopTipForCli as V, writeKeysPaced as W, listInboxParents as X, isTransientLockMkdirError as Y, liveWatchers as Z, isPidAlive as _, cmdHelp as a, isUnknownManagerToken as b, deriveLiveState as c, extractMenu as d, daemonLockDir as et, extractNeedsInput as f, isExitRequest as g, isAgentStuck as h, backoffWhileTyping as i, renderLogTailLines as j, recentMessageEdges as k, deriveLiveStatus as l, finalizedLines as m, READ_PAGE_DEFAULT as n, notifyDir as nt, controlCodeFromName as o, extractTaskCounts as p, gcInboxes as q, TYPING_WINDOW_MS as r, TYPING_BADGE as rt, cursorAbs as s, GRACEFUL_EXIT_COMMANDS as t, daemonLockOwnerPath as tt, extractBadges as u, isSlashCommand as v, matchKeyword as w, isUserTyping as x, isSubcommand as y, snapshotStatus as z };
|
|
4507
|
-
//# sourceMappingURL=subcommands-
|
|
4507
|
+
//# sourceMappingURL=subcommands-8KoxlZi3.js.map
|
|
@@ -2,8 +2,8 @@ import "./logger-CDIsZ-Pp.js";
|
|
|
2
2
|
import "./globalPidIndex-D9DOSd-c.js";
|
|
3
3
|
import "./messageLog-C-YIzhRj.js";
|
|
4
4
|
import "./e2e-CEIdJGZ7.js";
|
|
5
|
-
import "./configShared-
|
|
6
|
-
import { A as recentReadEdges, B as stdinActivityPath, C as listRecords, D as readNotes, E as readAgentPtysize, F as resolveReadWindow, G as writeToIpc, H as submitAndConfirm, I as resolveResumeArgs, L as restartHintLines, M as renderRawLog, N as renderRawLogLines, O as readPtysize, P as resolveOne, R as runSubcommand, S as lastStdinAt, T as menuSelectKeys, U as waitForLogQuiet, V as stopTipForCli, W as writeKeysPaced, _ as isPidAlive, a as cmdHelp, b as isUnknownManagerToken, c as deriveLiveState, d as extractMenu, f as extractNeedsInput, g as isExitRequest, h as isAgentStuck, i as backoffWhileTyping, j as renderLogTailLines, k as recentMessageEdges, l as deriveLiveStatus, m as finalizedLines, n as READ_PAGE_DEFAULT, o as controlCodeFromName, p as extractTaskCounts, r as TYPING_WINDOW_MS, s as cursorAbs, t as GRACEFUL_EXIT_COMMANDS, u as extractBadges, v as isSlashCommand, w as matchKeyword, x as isUserTyping, y as isSubcommand, z as snapshotStatus } from "./subcommands-
|
|
5
|
+
import "./configShared-IBbnn9b8.js";
|
|
6
|
+
import { A as recentReadEdges, B as stdinActivityPath, C as listRecords, D as readNotes, E as readAgentPtysize, F as resolveReadWindow, G as writeToIpc, H as submitAndConfirm, I as resolveResumeArgs, L as restartHintLines, M as renderRawLog, N as renderRawLogLines, O as readPtysize, P as resolveOne, R as runSubcommand, S as lastStdinAt, T as menuSelectKeys, U as waitForLogQuiet, V as stopTipForCli, W as writeKeysPaced, _ as isPidAlive, a as cmdHelp, b as isUnknownManagerToken, c as deriveLiveState, d as extractMenu, f as extractNeedsInput, g as isExitRequest, h as isAgentStuck, i as backoffWhileTyping, j as renderLogTailLines, k as recentMessageEdges, l as deriveLiveStatus, m as finalizedLines, n as READ_PAGE_DEFAULT, o as controlCodeFromName, p as extractTaskCounts, r as TYPING_WINDOW_MS, s as cursorAbs, t as GRACEFUL_EXIT_COMMANDS, u as extractBadges, v as isSlashCommand, w as matchKeyword, x as isUserTyping, y as isSubcommand, z as snapshotStatus } from "./subcommands-8KoxlZi3.js";
|
|
7
7
|
import "./webrtcLink-BMYneHbu.js";
|
|
8
8
|
import "./remotes-BxQnNxQv.js";
|
|
9
9
|
|
|
@@ -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-D_OiHSTd.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-DejUdjU0.js.map
|