agent-yes 1.96.0 → 1.98.0
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-BtLklR5y.js +8 -0
- package/dist/{SUPPORTED_CLIS-B2FAlgXF.js → SUPPORTED_CLIS-C0a9K6I5.js} +2 -2
- package/dist/cli.js +6 -6
- package/dist/index.js +3 -3
- package/dist/pidStore-9b3YTuf4.js +5 -0
- package/dist/{pidStore-DTzl6zeh.js → pidStore-DBjlqzo8.js} +22 -22
- package/dist/{runningLock-C22d9SRJ.js → runningLock-CJxsoGdb.js} +1 -1
- package/dist/serve-DPY37v0u.js +546 -0
- package/dist/{share-DUhUA1Pi.js → share-D-r6y3xD.js} +3 -3
- package/dist/{subcommands-CcOYsLYD.js → subcommands-D4Muugfr.js} +8 -3
- package/dist/{subcommands-EieqoC9Z.js → subcommands-fCkYXyTe.js} +1 -1
- package/dist/{tray-D4cJA4UH.js → tray-CWQe9DMY.js} +2 -2
- package/dist/{ts-DkjQJTcB.js → ts-BuFWTNL9.js} +13 -4
- package/dist/{versionChecker-xqnqyGKE.js → versionChecker-CpNUvHBx.js} +2 -2
- package/lab/ui/index.html +1577 -0
- package/lab/ui/room-client.js +449 -0
- package/package.json +4 -2
- package/ts/index.ts +16 -0
- package/ts/serve.ts +437 -279
- package/ts/share.ts +20 -16
- package/ts/subcommands.ts +6 -0
- package/dist/SUPPORTED_CLIS-G8izHOJP.js +0 -8
- package/dist/pidStore-iJY3JFTn.js +0 -5
- package/dist/serve-CuAPBK4y.js +0 -425
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import "./ts-BuFWTNL9.js";
|
|
2
|
+
import "./logger-B9h0djqx.js";
|
|
3
|
+
import "./versionChecker-CpNUvHBx.js";
|
|
4
|
+
import "./pidStore-DBjlqzo8.js";
|
|
5
|
+
import "./globalPidIndex-yVd3mbsV.js";
|
|
6
|
+
import { t as SUPPORTED_CLIS } from "./SUPPORTED_CLIS-C0a9K6I5.js";
|
|
7
|
+
|
|
8
|
+
export { SUPPORTED_CLIS };
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { t as CLIS_CONFIG } from "./ts-
|
|
1
|
+
import { t as CLIS_CONFIG } from "./ts-BuFWTNL9.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-C0a9K6I5.js.map
|
package/dist/cli.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
#!/usr/bin/env bun
|
|
2
2
|
import { n as logger } from "./logger-B9h0djqx.js";
|
|
3
|
-
import { i as versionString, n as displayVersion, r as getInstalledPackage, t as checkAndAutoUpdate } from "./versionChecker-
|
|
3
|
+
import { i as versionString, n as displayVersion, r as getInstalledPackage, t as checkAndAutoUpdate } from "./versionChecker-CpNUvHBx.js";
|
|
4
4
|
import { argv } from "process";
|
|
5
5
|
import { execFileSync, spawn } from "child_process";
|
|
6
6
|
import ms from "ms";
|
|
@@ -482,7 +482,7 @@ function buildRustArgs(argv, cliFromScript, supportedClis) {
|
|
|
482
482
|
{
|
|
483
483
|
const rawArg = process.argv[2];
|
|
484
484
|
const isHelpFlag = rawArg === "-h" || rawArg === "--help";
|
|
485
|
-
const { isSubcommand, runSubcommand, cmdHelp } = await import("./subcommands-
|
|
485
|
+
const { isSubcommand, runSubcommand, cmdHelp } = await import("./subcommands-fCkYXyTe.js");
|
|
486
486
|
if (isHelpFlag && process.argv.length === 3) {
|
|
487
487
|
cmdHelp();
|
|
488
488
|
process.exit(0);
|
|
@@ -496,12 +496,12 @@ await checkAndAutoUpdate();
|
|
|
496
496
|
logger.info(versionString());
|
|
497
497
|
const config = parseCliArgs(process.argv);
|
|
498
498
|
if (config.tray) {
|
|
499
|
-
const { startTray } = await import("./tray-
|
|
499
|
+
const { startTray } = await import("./tray-CWQe9DMY.js");
|
|
500
500
|
await startTray();
|
|
501
501
|
await new Promise(() => {});
|
|
502
502
|
}
|
|
503
503
|
{
|
|
504
|
-
const { ensureTray } = await import("./tray-
|
|
504
|
+
const { ensureTray } = await import("./tray-CWQe9DMY.js");
|
|
505
505
|
ensureTray();
|
|
506
506
|
}
|
|
507
507
|
if (config.useRust) {
|
|
@@ -515,7 +515,7 @@ if (config.useRust) {
|
|
|
515
515
|
}
|
|
516
516
|
}
|
|
517
517
|
if (rustBinary) {
|
|
518
|
-
const { SUPPORTED_CLIS } = await import("./SUPPORTED_CLIS-
|
|
518
|
+
const { SUPPORTED_CLIS } = await import("./SUPPORTED_CLIS-BtLklR5y.js");
|
|
519
519
|
const rustArgs = buildRustArgs(process.argv, config.cli, SUPPORTED_CLIS);
|
|
520
520
|
if (config.verbose) {
|
|
521
521
|
console.log(`[rust] Using binary: ${rustBinary}`);
|
|
@@ -545,7 +545,7 @@ if (config.showVersion) {
|
|
|
545
545
|
process.exit(0);
|
|
546
546
|
}
|
|
547
547
|
if (config.appendPrompt) {
|
|
548
|
-
const { PidStore } = await import("./pidStore-
|
|
548
|
+
const { PidStore } = await import("./pidStore-9b3YTuf4.js");
|
|
549
549
|
const ipcPath = await PidStore.findActiveFifo(process.cwd());
|
|
550
550
|
if (!ipcPath) {
|
|
551
551
|
console.error("No active agent with IPC found in current directory.");
|
package/dist/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { a as removeControlCharacters, i as AgentContext, n as agentYes, r as config, t as CLIS_CONFIG } from "./ts-
|
|
1
|
+
import { a as removeControlCharacters, i as AgentContext, n as agentYes, r as config, t as CLIS_CONFIG } from "./ts-BuFWTNL9.js";
|
|
2
2
|
import "./logger-B9h0djqx.js";
|
|
3
|
-
import "./versionChecker-
|
|
4
|
-
import "./pidStore-
|
|
3
|
+
import "./versionChecker-CpNUvHBx.js";
|
|
4
|
+
import "./pidStore-DBjlqzo8.js";
|
|
5
5
|
import "./globalPidIndex-yVd3mbsV.js";
|
|
6
6
|
|
|
7
7
|
export { AgentContext, CLIS_CONFIG, config, agentYes as default, removeControlCharacters };
|
|
@@ -6,6 +6,26 @@ import { homedir } from "os";
|
|
|
6
6
|
import path from "path";
|
|
7
7
|
import { lock } from "proper-lockfile";
|
|
8
8
|
|
|
9
|
+
//#region ts/agentYesHome.ts
|
|
10
|
+
/**
|
|
11
|
+
* Root directory for cross-runtime, machine-global agent-yes state:
|
|
12
|
+
* the pid index (`pids.jsonl`), FIFO/named-pipe IPC endpoints (`fifo/`),
|
|
13
|
+
* winsize signals, notes, and the serve token.
|
|
14
|
+
*
|
|
15
|
+
* Durable per-session *logs* deliberately do NOT live here — they go under
|
|
16
|
+
* `<cwd>/.agent-yes/` so they stay colocated with the project that produced
|
|
17
|
+
* them (see `PidStore`). Only ephemeral IPC + the discovery index are global,
|
|
18
|
+
* which keeps FIFOs on the local home filesystem (reliable `mkfifo`) and lets
|
|
19
|
+
* `ay ls`/`ay attach` find every agent regardless of the caller's cwd.
|
|
20
|
+
*
|
|
21
|
+
* Resolved at call time (not module load) so tests and callers can override
|
|
22
|
+
* via `$AGENT_YES_HOME` without juggling the module cache.
|
|
23
|
+
*/
|
|
24
|
+
function agentYesHome() {
|
|
25
|
+
return process.env.AGENT_YES_HOME ?? path.join(homedir(), ".agent-yes");
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
//#endregion
|
|
9
29
|
//#region ts/JsonlStore.ts
|
|
10
30
|
/**
|
|
11
31
|
* A lightweight NeDB-style JSONL persistence layer.
|
|
@@ -184,26 +204,6 @@ function generateId() {
|
|
|
184
204
|
return Date.now().toString(36) + (idCounter++).toString(36) + Math.random().toString(36).slice(2, 6);
|
|
185
205
|
}
|
|
186
206
|
|
|
187
|
-
//#endregion
|
|
188
|
-
//#region ts/agentYesHome.ts
|
|
189
|
-
/**
|
|
190
|
-
* Root directory for cross-runtime, machine-global agent-yes state:
|
|
191
|
-
* the pid index (`pids.jsonl`), FIFO/named-pipe IPC endpoints (`fifo/`),
|
|
192
|
-
* winsize signals, notes, and the serve token.
|
|
193
|
-
*
|
|
194
|
-
* Durable per-session *logs* deliberately do NOT live here — they go under
|
|
195
|
-
* `<cwd>/.agent-yes/` so they stay colocated with the project that produced
|
|
196
|
-
* them (see `PidStore`). Only ephemeral IPC + the discovery index are global,
|
|
197
|
-
* which keeps FIFOs on the local home filesystem (reliable `mkfifo`) and lets
|
|
198
|
-
* `ay ls`/`ay attach` find every agent regardless of the caller's cwd.
|
|
199
|
-
*
|
|
200
|
-
* Resolved at call time (not module load) so tests and callers can override
|
|
201
|
-
* via `$AGENT_YES_HOME` without juggling the module cache.
|
|
202
|
-
*/
|
|
203
|
-
function agentYesHome() {
|
|
204
|
-
return process.env.AGENT_YES_HOME ?? path.join(homedir(), ".agent-yes");
|
|
205
|
-
}
|
|
206
|
-
|
|
207
207
|
//#endregion
|
|
208
208
|
//#region ts/pidStore.ts
|
|
209
209
|
var PidStore = class PidStore {
|
|
@@ -380,5 +380,5 @@ pid-db/
|
|
|
380
380
|
};
|
|
381
381
|
|
|
382
382
|
//#endregion
|
|
383
|
-
export { PidStore as t };
|
|
384
|
-
//# sourceMappingURL=pidStore-
|
|
383
|
+
export { agentYesHome as n, PidStore as t };
|
|
384
|
+
//# sourceMappingURL=pidStore-DBjlqzo8.js.map
|