agent-yes 1.303.0 → 1.303.1-beta.786.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/README.md +15 -0
- package/default.config.yaml +5 -5
- package/dist/{SUPPORTED_CLIS-CqmE-ESB.js → SUPPORTED_CLIS-BVh0ZtgP.js} +2 -2
- package/dist/{SUPPORTED_CLIS-BvWBFlrN.js → SUPPORTED_CLIS-D7WKQjDO.js} +3 -3
- package/dist/{agentShare-Gb4vxJzE.js → agentShare-CdyLD881.js} +7 -6
- package/dist/{askCli-J9hHcgJz.js → askCli-BU3CNCLU.js} +2 -2
- package/dist/{callback-ZzRPkYjf.js → callback-B62xWBOe.js} +7 -6
- package/dist/{callback-CuIY-75l.js → callback-CUNI_et9.js} +5 -5
- package/dist/{callbackCore-DXVwvq0X.js → callbackCore-BesbQ6-Z.js} +1 -1
- package/dist/{callbackCore-BVEHd6Yt.js → callbackCore-DSJWhqAe.js} +1 -1
- package/dist/{channels-BLdkzCbv.js → channels-j5nWuzlQ.js} +2 -2
- package/dist/cli.js +11 -11
- package/dist/{cmdDsh-CymghOa0.js → cmdDsh-2LP0grim.js} +1 -1
- package/dist/{cmdPs-DSKYjOKS.js → cmdPs-mWdk73nd.js} +7 -6
- package/dist/{cwdConflictWarn-DXh7qJz6.js → cwdConflictWarn-skQSMwEh.js} +1 -1
- package/dist/{cwdPassthroughHint-DADidTOP.js → cwdPassthroughHint-BUbWMoz0.js} +1 -1
- package/dist/{expose-ZFn10b_l.js → expose-Dawq1LxC.js} +1 -1
- package/dist/{forkNested-DD_4xEL8.js → forkNested-CavHyWzA.js} +1 -1
- package/dist/{hist-Dy-JVuUY.js → hist-Cs0KFSUW.js} +1 -1
- package/dist/index.js +2 -2
- package/dist/{initMsg-BGBIVi_Q.js → initMsg-CcTqFtsp.js} +1 -1
- package/dist/{initMsg-NleE4YLm.js → initMsg-D9KJnfgC.js} +1 -1
- package/dist/liagent/box-BSIrRRc_.js +2320 -0
- package/dist/liagent/box-DloywR57.d.ts +409 -0
- package/dist/liagent/box.d.ts +3 -0
- package/dist/liagent/box.js +3 -0
- package/dist/liagent/cli.d.ts +1 -0
- package/dist/liagent/cli.js +908 -0
- package/dist/liagent/client.d.ts +28 -0
- package/dist/liagent/client.js +240 -0
- package/dist/liagent/echo-BvzPSI0x.js +86 -0
- package/dist/liagent/echo-W2RcMEny.d.ts +38 -0
- package/dist/liagent/hub.d.ts +405 -0
- package/dist/liagent/hub.js +1831 -0
- package/dist/liagent/index.d.ts +14 -0
- package/dist/liagent/index.js +10 -0
- package/dist/liagent/liagent.js +339 -0
- package/dist/liagent/mic-audio-C3Shud_F.js +754 -0
- package/dist/liagent/mic-audio-DMCWtEI-.d.ts +317 -0
- package/dist/liagent/mic-button-CtZHFBSG.js +651 -0
- package/dist/liagent/mic-button-Y0ioPetQ.d.ts +248 -0
- package/dist/liagent/mic.d.ts +3 -0
- package/dist/liagent/mic.js +4 -0
- package/dist/liagent/progress-CJs08bXb.js +473 -0
- package/dist/liagent/progress-CfE-meHr.d.ts +205 -0
- package/dist/liagent/progress.d.ts +2 -0
- package/dist/liagent/progress.js +3 -0
- package/dist/liagent/protocol.d.ts +324 -0
- package/dist/liagent/protocol.js +504 -0
- package/dist/liagent/speech-rate-DXeJjRTc.js +42 -0
- package/dist/liagent/state-tree-BZCmAknI.js +353 -0
- package/dist/liagent/tree-BrR7NwMf.js +710 -0
- package/dist/liagent/tree-HB9RhX_H.d.ts +295 -0
- package/dist/liagent/tree.d.ts +2 -0
- package/dist/liagent/tree.js +4 -0
- package/dist/liagent/ui-strings-B03le3fh.d.ts +27 -0
- package/dist/liagent/ui-strings-CJIwW5Gf.js +794 -0
- package/dist/liagent/ui.d.ts +394 -0
- package/dist/liagent/ui.js +5 -0
- package/dist/liagent/voice-D7yeS9VM.js +802 -0
- package/dist/liagent/voice-Qo7SCgi8.d.ts +308 -0
- package/dist/liagent/voice.d.ts +3 -0
- package/dist/liagent/voice.js +4 -0
- package/dist/{needsInput-D__56HYf.js → needsInput-hRiWFjGy.js} +1 -1
- package/dist/{nodeRuntime-oANVaOqi.js → nodeRuntime-DGMQRTGT.js} +1 -1
- package/dist/{notifyDaemon-C_gTWqYZ.js → notifyDaemon-CphDin-i.js} +6 -5
- package/dist/{notifyStore-D9cNjXFG.js → notifyStore-C4pH_-zJ.js} +1 -1
- package/dist/{notifyStore-DI4iKFut.js → notifyStore-DIfkfKB2.js} +1 -1
- package/dist/{openBrowser-B6ZyKxfP.js → openBrowser-1cIo4dJL.js} +1 -1
- package/dist/{parentLink-qUr7dRdh.js → parentLink-B58V1RVd.js} +1 -1
- package/dist/{parentLink-CB8Nc-dr.js → parentLink-DoEWVGld.js} +1 -1
- package/dist/{parentPingLoop-BhVR1EQm.js → parentPingLoop-D-HLYj7R.js} +6 -6
- package/dist/{procStats-xvUthnOx.js → procStats-BvmrBrOs.js} +1 -1
- package/dist/{remotes-COBEhmlr.js → remotes-DevcBeLl.js} +5 -4
- package/dist/{remotes-C36aI8Ty.js → remotes-MfdV9M8u.js} +2 -2
- package/dist/roomReplyAlias-DFqg_6IU.js +58 -0
- package/dist/roomReplyAlias-DuEkSSDI.js +6 -0
- package/dist/rustBinary-BwjZgO1K.js +4 -0
- package/dist/{rustBinary-eOcvZ5yS.js → rustBinary-CCDzbWCA.js} +24 -3
- package/dist/{schedule-E2QlsME5.js → schedule-CFBKuWRT.js} +6 -6
- package/dist/{serve-BWy7zL7j.js → serve-950j7kR5.js} +48 -41
- package/dist/{serveRust-BgY5Te5E.js → serveRust-CbBrcUrg.js} +2 -2
- package/dist/{setup-CD9-RyhT.js → setup-DyKq1l88.js} +4 -4
- package/dist/{share-530eCWft.js → share-DrS3LYqf.js} +1 -1
- package/dist/{share-Jl8Eia9b.js → share-w5oRbvlj.js} +1 -1
- package/dist/{shareCmd-Drxb-SjM.js → shareCmd-CZ_HAdpT.js} +10 -10
- package/dist/{spawnGate-CsQ4_N5h.js → spawnGate-DeQBTX-o.js} +1 -1
- package/dist/{spawnGate-SX13EqI3.js → spawnGate-lr3tvA6U.js} +2 -2
- package/dist/{subcommands-Cc6bmEnB.js → subcommands-BfVi1sd7.js} +36 -31
- package/dist/{subcommands-C627cuOl.js → subcommands-HLrcwhwq.js} +5 -4
- package/dist/{systemPathLink-eWUYHNXm.js → systemPathLink-SjUzgSiq.js} +1 -1
- package/dist/{terminal-BddOL2fx.js → terminal-DAwgHVwQ.js} +2 -2
- package/dist/{todoCli-B62mo9af.js → todoCli-BWm5nZE0.js} +2 -2
- package/dist/{todoIdentity-CY1UkEs7.js → todoIdentity-BvXZKWJI.js} +1 -1
- package/dist/{tray-DJtC0yib.js → tray-BeRSozJz.js} +1 -1
- package/dist/trayApp-B9BmH_BF.js +5 -0
- package/dist/{trayApp-D0UYVT6n.js → trayApp-CV_d2Ufj.js} +2 -2
- package/dist/{ts-Bm6FhYS4.js → ts-BPP6xmfi.js} +5 -5
- package/dist/{versionChecker-CFyZKym2.js → versionChecker-Qho6qsKf.js} +2 -2
- package/dist/{webrtcLink-CHLgPKWj.js → webrtcLink-SsInrVHU.js} +1 -1
- package/dist/{webrtcLink-bWxiCBTV.js → webrtcLink-va_gAR77.js} +1 -1
- package/dist/{webrtcRemote-RmkbzY6Y.js → webrtcRemote-BlGyNZDC.js} +2 -2
- package/dist/{widget-C6-P26Ue.js → widget-o1BO92I5.js} +3 -3
- package/dist/{workspaceConfig-CWGh8o36.js → workspaceConfig-BLWB5Wu9.js} +1 -1
- package/dist/{ws-DCcdDRXH.js → ws-CzAKQ2Rd.js} +3 -3
- package/dist/{ws-DmiSL50p.js → ws-S3E4PXL1.js} +6 -5
- 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 +73 -8
- package/ts/buildEnvelope.bun.spec.ts +10 -0
- package/ts/buildEnvelope.spec.ts +10 -0
- package/ts/cli-idle.bun.spec.ts +1 -1
- package/ts/cli-idle.spec.ts +1 -1
- package/ts/composerGuard.spec.ts +12 -4
- package/ts/copyLiagent.ts +42 -0
- package/ts/remotes.ts +9 -1
- package/ts/roomReplyAlias.spec.ts +21 -0
- package/ts/roomReplyAlias.ts +67 -0
- package/ts/rustBinary.ts +19 -0
- package/ts/senderAncestry.ts +1 -3
- package/ts/serve.ts +15 -7
- package/ts/subcommands.spec.ts +6 -3
- package/ts/subcommands.ts +13 -9
- package/dist/rustBinary-Ep0x7WrS.js +0 -4
- package/dist/trayApp-CdLbJK5F.js +0 -5
package/README.md
CHANGED
|
@@ -618,6 +618,21 @@ await claudeYes({
|
|
|
618
618
|
});
|
|
619
619
|
```
|
|
620
620
|
|
|
621
|
+
### Chat with your agent from any web page
|
|
622
|
+
|
|
623
|
+
`agent-yes/liagent` is [liagent](https://github.com/snolab/liagent): a
|
|
624
|
+
floating chat box for your own web pages (a framework-free custom element),
|
|
625
|
+
the hub it talks to (a Cloudflare Durable Object), and the `liagent` CLI that
|
|
626
|
+
delivers each message into an agent-yes agent. It needs none of agent-yes's
|
|
627
|
+
CLI dependencies, so it bundles cleanly for browsers and Workers.
|
|
628
|
+
|
|
629
|
+
```typescript
|
|
630
|
+
import { connectHub, defineChatBox } from "agent-yes/liagent";
|
|
631
|
+
import { chatHub, routeChat } from "agent-yes/liagent/hub";
|
|
632
|
+
```
|
|
633
|
+
|
|
634
|
+
See liagent's README and docs for the hub setup and each framework.
|
|
635
|
+
|
|
621
636
|
## Implementation
|
|
622
637
|
|
|
623
638
|
The tool uses `node-pty` to spawn and manage AI CLI processes, with a sophisticated pattern-matching system that:
|
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-BPP6xmfi.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-BVh0ZtgP.js.map
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import "./logger-CDIsZ-Pp.js";
|
|
2
|
-
import "./versionChecker-
|
|
3
|
-
import "./ts-
|
|
2
|
+
import "./versionChecker-Qho6qsKf.js";
|
|
3
|
+
import "./ts-BPP6xmfi.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-BVh0ZtgP.js";
|
|
11
11
|
|
|
12
12
|
export { SUPPORTED_CLIS };
|
|
@@ -5,11 +5,12 @@ import "./pidStore-433kvh9D.js";
|
|
|
5
5
|
import "./messageLog-Dq_ka-Bt.js";
|
|
6
6
|
import "./e2e-BdLf8DvY.js";
|
|
7
7
|
import "./configShared-De4bR5hH.js";
|
|
8
|
-
import
|
|
9
|
-
import "./
|
|
10
|
-
import "./
|
|
11
|
-
import "./
|
|
12
|
-
import
|
|
8
|
+
import "./webrtcLink-va_gAR77.js";
|
|
9
|
+
import "./remotes-DevcBeLl.js";
|
|
10
|
+
import "./roomReplyAlias-DFqg_6IU.js";
|
|
11
|
+
import { nt as resolveOne } from "./subcommands-BfVi1sd7.js";
|
|
12
|
+
import "./notifyStore-DIfkfKB2.js";
|
|
13
|
+
import { l as startShare } from "./share-w5oRbvlj.js";
|
|
13
14
|
|
|
14
15
|
//#region ts/agentShare.ts
|
|
15
16
|
const MAX_SHARES = 8;
|
|
@@ -232,4 +233,4 @@ function transformEvent(rawEvent, agentId, forwarded) {
|
|
|
232
233
|
|
|
233
234
|
//#endregion
|
|
234
235
|
export { createScopedShare, listShares, revokeAllShares, revokeShare };
|
|
235
|
-
//# sourceMappingURL=agentShare-
|
|
236
|
+
//# sourceMappingURL=agentShare-CdyLD881.js.map
|
|
@@ -3,7 +3,7 @@ import "./JsonlStore-BpYZZTap.js";
|
|
|
3
3
|
import "./globalPidIndex-CRB5KtyL.js";
|
|
4
4
|
import { r as openStore } from "./todoStore-C9RTz0Vs.js";
|
|
5
5
|
import { t as formatIdentity } from "./identity-Bk-aG_xl.js";
|
|
6
|
-
import { a as resolveTodoRoot, i as resolveSelf } from "./todoIdentity-
|
|
6
|
+
import { a as resolveTodoRoot, i as resolveSelf } from "./todoIdentity-BvXZKWJI.js";
|
|
7
7
|
import yargs from "yargs";
|
|
8
8
|
import { randomBytes } from "crypto";
|
|
9
9
|
|
|
@@ -269,4 +269,4 @@ async function runAnswerSubcommand(rest, deps) {
|
|
|
269
269
|
|
|
270
270
|
//#endregion
|
|
271
271
|
export { runAnswerSubcommand, runAskSubcommand };
|
|
272
|
-
//# sourceMappingURL=askCli-
|
|
272
|
+
//# sourceMappingURL=askCli-BU3CNCLU.js.map
|
|
@@ -5,11 +5,12 @@ import "./pidStore-433kvh9D.js";
|
|
|
5
5
|
import "./messageLog-Dq_ka-Bt.js";
|
|
6
6
|
import "./e2e-BdLf8DvY.js";
|
|
7
7
|
import "./configShared-De4bR5hH.js";
|
|
8
|
-
import "./
|
|
9
|
-
import "./
|
|
10
|
-
import "./
|
|
11
|
-
import "./
|
|
12
|
-
import "./
|
|
13
|
-
import
|
|
8
|
+
import "./webrtcLink-va_gAR77.js";
|
|
9
|
+
import "./remotes-DevcBeLl.js";
|
|
10
|
+
import "./roomReplyAlias-DFqg_6IU.js";
|
|
11
|
+
import "./subcommands-BfVi1sd7.js";
|
|
12
|
+
import "./notifyStore-DIfkfKB2.js";
|
|
13
|
+
import "./callbackCore-BesbQ6-Z.js";
|
|
14
|
+
import { i as loadOrCreateCallbackSecret, n as isCallbackRevoked, r as loadCallbackSecretReadOnly, t as cmdCallback } from "./callback-CUNI_et9.js";
|
|
14
15
|
|
|
15
16
|
export { cmdCallback };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { t as agentYesHome } from "./agentYesHome-JmJC28YX.js";
|
|
2
|
-
import { nt as resolveOne } from "./subcommands-
|
|
3
|
-
import { a as mintCapability, o as parseExpires } from "./callbackCore-
|
|
2
|
+
import { nt as resolveOne } from "./subcommands-BfVi1sd7.js";
|
|
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";
|
|
6
6
|
import path from "node:path";
|
|
@@ -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-950j7kR5.js");
|
|
76
76
|
const url = await resolveLocalServeUrl();
|
|
77
77
|
if (url) return url;
|
|
78
78
|
} catch {}
|
|
@@ -170,7 +170,7 @@ async function cmdCallback(rest) {
|
|
|
170
170
|
createdAt: Date.now()
|
|
171
171
|
};
|
|
172
172
|
saveStore(all);
|
|
173
|
-
const { buildSnippet } = await import("./callbackCore-
|
|
173
|
+
const { buildSnippet } = await import("./callbackCore-DSJWhqAe.js");
|
|
174
174
|
w(`callback ${id} → ${record.cli} #${record.pid} @ ${record.cwd}`);
|
|
175
175
|
w(`expires: ${new Date(exp).toISOString()} (${expiresSpec})`);
|
|
176
176
|
w(`endpoint: ${base.replace(/\/+$/, "")}/cb/${cap}`);
|
|
@@ -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-CUNI_et9.js.map
|
|
@@ -140,4 +140,4 @@ function buildSnippet(opts) {
|
|
|
140
140
|
|
|
141
141
|
//#endregion
|
|
142
142
|
export { mintCapability as a, frameVisitorMessage as i, MAX_EXPIRES_MS as n, parseExpires as o, buildSnippet as r, verifyCapability as s, MAX_CALLBACK_MSG_BYTES as t };
|
|
143
|
-
//# sourceMappingURL=callbackCore-
|
|
143
|
+
//# sourceMappingURL=callbackCore-BesbQ6-Z.js.map
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { a as mintCapability, i as frameVisitorMessage, n as MAX_EXPIRES_MS, o as parseExpires, r as buildSnippet, s as verifyCapability, t as MAX_CALLBACK_MSG_BYTES } from "./callbackCore-
|
|
1
|
+
import { a as mintCapability, i as frameVisitorMessage, n as MAX_EXPIRES_MS, o as parseExpires, r as buildSnippet, s as verifyCapability, t as MAX_CALLBACK_MSG_BYTES } from "./callbackCore-BesbQ6-Z.js";
|
|
2
2
|
|
|
3
3
|
export { buildSnippet };
|
|
@@ -387,7 +387,7 @@ function printOp(op) {
|
|
|
387
387
|
*/
|
|
388
388
|
async function runMesh(cwd, entry, opts) {
|
|
389
389
|
const { ChannelPeer } = await import("./peer-3F7owPWt.js");
|
|
390
|
-
const { importRTC, getIceServers } = await import("./share-
|
|
390
|
+
const { importRTC, getIceServers } = await import("./share-DrS3LYqf.js");
|
|
391
391
|
const rtc = await importRTC();
|
|
392
392
|
const seen = new Set((await readOps(cwd, entry.channelId)).map((o) => o.id));
|
|
393
393
|
const peer = new ChannelPeer({
|
|
@@ -567,4 +567,4 @@ async function cmdCh(args) {
|
|
|
567
567
|
|
|
568
568
|
//#endregion
|
|
569
569
|
export { cmdCh };
|
|
570
|
-
//# sourceMappingURL=channels-
|
|
570
|
+
//# sourceMappingURL=channels-j5nWuzlQ.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 {
|
|
4
|
+
import { a as versionString, r as displayVersion, t as checkAndAutoUpdate } from "./versionChecker-Qho6qsKf.js";
|
|
5
|
+
import { m as getRustBinary } from "./rustBinary-CCDzbWCA.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-HLrcwhwq.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-D7WKQjDO.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);
|
|
@@ -317,7 +317,7 @@ function buildRustArgs(argv, cliFromScript, supportedClis) {
|
|
|
317
317
|
}
|
|
318
318
|
}
|
|
319
319
|
{
|
|
320
|
-
const { detectCwdPassthrough, SUPPRESS_CWD_WARN_ENV } = await import("./cwdPassthroughHint-
|
|
320
|
+
const { detectCwdPassthrough, SUPPRESS_CWD_WARN_ENV } = await import("./cwdPassthroughHint-BUbWMoz0.js");
|
|
321
321
|
const dep = detectCwdPassthrough(process.argv);
|
|
322
322
|
if (dep) {
|
|
323
323
|
console.warn(dep.message);
|
|
@@ -328,16 +328,16 @@ await checkAndAutoUpdate();
|
|
|
328
328
|
logger.info(versionString());
|
|
329
329
|
const config = parseCliArgs(process.argv);
|
|
330
330
|
if (config.tray) {
|
|
331
|
-
const { startTray } = await import("./tray-
|
|
331
|
+
const { startTray } = await import("./tray-BeRSozJz.js");
|
|
332
332
|
await startTray();
|
|
333
333
|
await new Promise(() => {});
|
|
334
334
|
}
|
|
335
335
|
{
|
|
336
|
-
const { ensureTray } = await import("./tray-
|
|
336
|
+
const { ensureTray } = await import("./tray-BeRSozJz.js");
|
|
337
337
|
ensureTray();
|
|
338
338
|
}
|
|
339
339
|
if (!config.showVersion && !config.appendPrompt && !config.tray) {
|
|
340
|
-
const { waitForSpawnCapacity } = await import("./spawnGate-
|
|
340
|
+
const { waitForSpawnCapacity } = await import("./spawnGate-DeQBTX-o.js");
|
|
341
341
|
await waitForSpawnCapacity({
|
|
342
342
|
onWait: (reason, waitedMs) => {
|
|
343
343
|
if (config.verbose || waitedMs === 0) console.error(`[agent-yes] spawn gate: ${reason} — waiting…`);
|
|
@@ -346,7 +346,7 @@ if (!config.showVersion && !config.appendPrompt && !config.tray) {
|
|
|
346
346
|
});
|
|
347
347
|
}
|
|
348
348
|
if (!config.showVersion && !config.appendPrompt && !config.tray) {
|
|
349
|
-
const { warnIfCwdOccupied } = await import("./cwdConflictWarn-
|
|
349
|
+
const { warnIfCwdOccupied } = await import("./cwdConflictWarn-skQSMwEh.js");
|
|
350
350
|
await warnIfCwdOccupied(process.argv);
|
|
351
351
|
}
|
|
352
352
|
if (config.useRust) {
|
|
@@ -360,14 +360,14 @@ 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-D7WKQjDO.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}`);
|
|
367
367
|
console.log(`[rust] Args: ${rustArgs.join(" ")}`);
|
|
368
368
|
}
|
|
369
369
|
const attach = config.attach || process.env.AGENT_YES_ATTACH === "1";
|
|
370
|
-
const { shouldForkNested, buildSpawnTutorial, waitForRegistration, confirmAgentStarted, predictedLogPath } = await import("./forkNested-
|
|
370
|
+
const { shouldForkNested, buildSpawnTutorial, waitForRegistration, confirmAgentStarted, predictedLogPath } = await import("./forkNested-CavHyWzA.js");
|
|
371
371
|
if (shouldForkNested({
|
|
372
372
|
isTTY: Boolean(process.stdout.isTTY),
|
|
373
373
|
ayPid: process.env.AGENT_YES_PID,
|
|
@@ -5,11 +5,12 @@ import "./pidStore-433kvh9D.js";
|
|
|
5
5
|
import "./messageLog-Dq_ka-Bt.js";
|
|
6
6
|
import "./e2e-BdLf8DvY.js";
|
|
7
7
|
import "./configShared-De4bR5hH.js";
|
|
8
|
-
import
|
|
9
|
-
import "./
|
|
10
|
-
import "./
|
|
11
|
-
import "./
|
|
12
|
-
import
|
|
8
|
+
import "./webrtcLink-va_gAR77.js";
|
|
9
|
+
import "./remotes-DevcBeLl.js";
|
|
10
|
+
import "./roomReplyAlias-DFqg_6IU.js";
|
|
11
|
+
import { V as listRecords, bt as flattenForest, v as deriveLiveState, yt as buildAgentForest } from "./subcommands-BfVi1sd7.js";
|
|
12
|
+
import "./notifyStore-DIfkfKB2.js";
|
|
13
|
+
import { i as systemStats, n as sampleTrees, r as snapshotProcs, t as humanBytes } from "./procStats-BvmrBrOs.js";
|
|
13
14
|
import yargs from "yargs";
|
|
14
15
|
import { readFileSync } from "node:fs";
|
|
15
16
|
import path from "node:path";
|
|
@@ -330,4 +331,4 @@ function readPpidSync(pid) {
|
|
|
330
331
|
|
|
331
332
|
//#endregion
|
|
332
333
|
export { cmdPs };
|
|
333
|
-
//# sourceMappingURL=cmdPs-
|
|
334
|
+
//# sourceMappingURL=cmdPs-mWdk73nd.js.map
|
|
@@ -141,4 +141,4 @@ async function confirmAgentStarted(pid, graceMs = 1500, aborted) {
|
|
|
141
141
|
|
|
142
142
|
//#endregion
|
|
143
143
|
export { buildSpawnTutorial, confirmAgentStarted, predictedLogPath, shouldForkNested, waitForRegistration };
|
|
144
|
-
//# sourceMappingURL=forkNested-
|
|
144
|
+
//# sourceMappingURL=forkNested-CavHyWzA.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-Qho6qsKf.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-BPP6xmfi.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";
|