agent-yes 1.303.1-beta.796.1 → 1.303.1-beta.810.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 +39 -0
- package/dist/{JsonlStore-BpYZZTap.js → JsonlStore-CB_0sfdT.js} +5 -4
- package/dist/{SUPPORTED_CLIS-CIviDeqJ.js → SUPPORTED_CLIS-DIsylUef.js} +2 -2
- package/dist/SUPPORTED_CLIS-cJcdAMxS.js +12 -0
- package/dist/{agentShare-Bgmp_lGz.js → agentShare-uklMrG1Q.js} +8 -8
- package/dist/{askCli-BIKef8Uz.js → askCli-KmMf-3wA.js} +6 -6
- package/dist/{browser-BmxN1Ur9.js → browser-BAFPmEvN.js} +2 -2
- package/dist/{callback-r0aWZF5m.js → callback-C5sUukJq.js} +8 -8
- package/dist/{callback-COPj84yO.js → callback-D3vNglVm.js} +3 -3
- package/dist/cli.js +12 -12
- package/dist/{cmdKill-1irEzKl9.js → cmdKill-CzSBfWmx.js} +2 -2
- package/dist/{cmdPs-B-33TYQz.js → cmdPs-7WQUcqos.js} +8 -8
- package/dist/{cwdConflictWarn-By7o2nh3.js → cwdConflictWarn-y-epQyOj.js} +2 -2
- package/dist/{forkNested-Bk0aDizk.js → forkNested-3heLs5XC.js} +3 -3
- package/dist/{globalPidIndex-CRB5KtyL.js → globalPidIndex-BsjlId-h.js} +6 -5
- package/dist/{globalPidIndex-Q6NdU1NM.js → globalPidIndex-uoz8Esqz.js} +1 -1
- package/dist/{identity-DA7YI9km.js → identity-C0MxfwI2.js} +1 -1
- package/dist/{identity-Bk-aG_xl.js → identity-Ckav3-Up.js} +1 -1
- package/dist/index.js +7 -7
- package/dist/{nodeRuntime-B1nCglgu.js → nodeRuntime-DGMQRTGT.js} +1 -1
- package/dist/{notifyDaemon-DcMjfQzN.js → notifyDaemon-I0Ev5Kxb.js} +8 -8
- package/dist/oxmgrService-DlYHmqyI.js +37 -0
- package/dist/oxmgrService-o9L3I6FX.js +3 -0
- package/dist/{parentLink-COFYy_0K.js → parentLink-BcAYcO9L.js} +2 -2
- package/dist/{parentLink-1BOJuXBu.js → parentLink-MBUD3oY2.js} +2 -2
- package/dist/{parentPingLoop-jDx6C7cy.js → parentPingLoop-C7Eb_CE7.js} +4 -4
- package/dist/{pidStore-433kvh9D.js → pidStore-C50VPk3E.js} +3 -3
- package/dist/pidStore-COkPjpW8.js +6 -0
- package/dist/{remotes-D6sc8jcM.js → remotes-BqLoB5GR.js} +2 -2
- package/dist/{remotes-B2i_QcdG.js → remotes-BsMGvAay.js} +3 -3
- package/dist/{roomReplyAlias-9jb1qmh3.js → roomReplyAlias-B-v76TA8.js} +3 -3
- package/dist/roomReplyAlias-BzWUBkQy.js +6 -0
- package/dist/{rustBinary-Dr29wGvK.js → rustBinary-B6lsEdzx.js} +2 -2
- package/dist/{rustBinary-B_PBE-qv.js → rustBinary-C7nv30Se.js} +2 -2
- package/dist/{schedule-Bh5dzjn9.js → schedule-BAA-14nc.js} +16 -45
- package/dist/schedulesCli-CLqieyQZ.js +784 -0
- package/dist/{serve-BSCcPxX8.js → serve-BnPfpr9_.js} +54 -44
- package/dist/{serveRust-DKhCiKjJ.js → serveRust-BfWkeL6T.js} +2 -2
- package/dist/{setup-D-2G5l3p.js → setup-DoWn0szx.js} +4 -4
- package/dist/{shareCmd-DZyXxoCO.js → shareCmd-BRudkg6B.js} +7 -7
- package/dist/spawnGate-Dfj9V76w.js +5 -0
- package/dist/{spawnGate-CEk6MowO.js → spawnGate-Dj_WaS29.js} +3 -3
- package/dist/{subcommands-BbqJJZT1.js → subcommands-C5rUetgG.js} +244 -55
- package/dist/subcommands-DOlA1mKx.js +15 -0
- package/dist/{systemPathLink-DPb5Xbad.js → systemPathLink-Y3iC7bYV.js} +1 -1
- package/dist/{terminal-Z_Y8hGCW.js → terminal-DIQdsZBb.js} +2 -2
- package/dist/terminal.js +1 -1
- package/dist/{todoAutomation-TTp_Qz9G.js → todoAutomation-CKlrxuZv.js} +2 -2
- package/dist/{todoCli-C8hRlyCE.js → todoCli-CU9vSJSJ.js} +6 -6
- package/dist/{todoIdentity-B3VCO-jT.js → todoIdentity-CzS1e7VL.js} +2 -2
- package/dist/{todoStore-C9RTz0Vs.js → todoStore-msRCEUi1.js} +2 -2
- package/dist/{tray-BZ8qvzgM.js → tray-CLktEN3G.js} +1 -1
- package/dist/{trayApp-DZJxriXd.js → trayApp-BcSyV5G4.js} +2 -2
- package/dist/trayApp-CZAB0bnd.js +5 -0
- package/dist/{ts-EMAWQVF3.js → ts-CKg13ouW.js} +87 -18
- package/dist/{versionChecker-Wfi5fazr.js → versionChecker-DK_hbkRb.js} +2 -2
- package/dist/{webrtcLink-va_gAR77.js → webrtcLink-DcvacEci.js} +1 -1
- package/dist/{webrtcLink-SsInrVHU.js → webrtcLink-WxS1nTIs.js} +1 -1
- package/dist/{webrtcRemote-DRF6N3FQ.js → webrtcRemote-C3xQyf3u.js} +2 -2
- package/dist/{widget-BUri84Wp.js → widget-CFJu5d9_.js} +3 -3
- package/dist/widgets.js +1 -1
- package/dist/{workspaceConfig-DXWyuf1A.js → workspaceConfig-DBgsu81B.js} +1 -1
- package/dist/{ws-DAtzWRX4.js → ws-CTf8N7ML.js} +3 -3
- package/dist/{ws-BhiUNf9w.js → ws-D9rzbMGW.js} +8 -8
- package/package.json +1 -1
- package/ts/JsonlStore.ts +10 -3
- package/ts/composerGuard.edges.spec.ts +91 -0
- package/ts/composerGuard.spec.ts +18 -0
- package/ts/composerGuard.ts +7 -2
- package/ts/conptyModeFilter.spec.ts +30 -0
- package/ts/conptyModeFilter.ts +53 -0
- package/ts/cwdConflictWarn.io.spec.ts +50 -0
- package/ts/globalPidIndex.edges.spec.ts +125 -0
- package/ts/globalPidIndex.ts +6 -2
- package/ts/index.ts +13 -1
- package/ts/interruptSend.bun.spec.ts +99 -0
- package/ts/interruptSend.spec.ts +99 -0
- package/ts/interruptSend.ts +51 -0
- package/ts/lockRegistry.spec.ts +49 -0
- package/ts/needsInput.edges.spec.ts +23 -0
- package/ts/pushGatePlan.spec.ts +147 -0
- package/ts/roomReplyAlias.io.spec.ts +81 -0
- package/ts/schedule.ts +5 -1
- package/ts/schedules.bun.spec.ts +397 -0
- package/ts/schedules.spec.ts +397 -0
- package/ts/schedules.ts +517 -0
- package/ts/schedulesCli.ts +386 -0
- package/ts/sendControl.bun.spec.ts +12 -0
- package/ts/serve.ts +10 -5
- package/ts/sizeNego.bun.spec.ts +9 -2
- package/ts/sizeNego.spec.ts +9 -2
- package/ts/sizeNego.ts +10 -5
- package/ts/subcommands.spec.ts +209 -6
- package/ts/subcommands.ts +272 -25
- package/ts/suggestAgents.spec.ts +33 -0
- package/ts/terminal/browser.ts +1 -1
- package/dist/SUPPORTED_CLIS-CXQnG41E.js +0 -12
- package/dist/pidStore-BRlKRHXY.js +0 -6
- package/dist/roomReplyAlias-DKEuV2Qt.js +0 -6
- package/dist/spawnGate-CYzzHDcZ.js +0 -5
- package/dist/subcommands-B_h4-tvC.js +0 -15
- package/dist/trayApp-D__QcBRd.js +0 -5
package/README.md
CHANGED
|
@@ -182,6 +182,26 @@ cy attach <keyword> # interactive attach (detach: Ctrl-\)
|
|
|
182
182
|
cy stop <keyword> # graceful shutdown (claude/codex: /exit)
|
|
183
183
|
```
|
|
184
184
|
|
|
185
|
+
`ay send` writes to busy agents without waiting for idle, using native Enter
|
|
186
|
+
delivery (including the CLI's own queue). Existing drafts and active typing
|
|
187
|
+
remain protected, so these can defer delivery. It never substitutes a
|
|
188
|
+
cancellation shortcut based on a busy indicator or a shortcut hint.
|
|
189
|
+
|
|
190
|
+
To explicitly request agy's immediate-send shortcut, use
|
|
191
|
+
`ay send <keyword> "message" --code=alt-m`. This sends `ESC m` after pasting and
|
|
192
|
+
may interrupt the current turn; native queued delivery remains the default.
|
|
193
|
+
The explicit shortcut is supported by `--no-wait` and the drainer too, and is
|
|
194
|
+
never retried automatically.
|
|
195
|
+
|
|
196
|
+
Use `ay send <keyword> "message" --interrupt` (or `-i`) to stop a running local
|
|
197
|
+
Claude, Codex, or agy turn first. It sends Escape once, waits up to eight seconds
|
|
198
|
+
for an idle input prompt, then pastes and submits the message. If cancellation
|
|
199
|
+
does not reach idle, the message is not sent. Permission and confirmation
|
|
200
|
+
prompts are never cancelled: the command reports that interruption was skipped
|
|
201
|
+
and uses the normal send path. Existing drafts remain protected. `--no-wait`
|
|
202
|
+
still waits for cancellation before skipping message submission confirmation.
|
|
203
|
+
|
|
204
|
+
|
|
185
205
|
#### Tips
|
|
186
206
|
|
|
187
207
|
- A **single** `--code=ctrl-c` does not stop `claude` / `codex` — they treat it
|
|
@@ -195,6 +215,24 @@ cy stop <keyword> # graceful shutdown (claude/codex: /exit)
|
|
|
195
215
|
so subcommands work whether the target agent is the TS or Rust runtime.
|
|
196
216
|
Detailed reference (Japanese): [`docs/cy-subcommands.md`](./docs/cy-subcommands.md).
|
|
197
217
|
|
|
218
|
+
### Recurring reminders (`ay cron`)
|
|
219
|
+
|
|
220
|
+
Send a message to an agent on a 5-field cron (timezone `$AY_CRON_TZ`, default Asia/Tokyo):
|
|
221
|
+
|
|
222
|
+
```bash
|
|
223
|
+
ay cron "*/30 9-18 * * 1-5" lane:alpha "progress report please ({now})"
|
|
224
|
+
ay cron ls # id, cron, target, next run, last result
|
|
225
|
+
ay cron rm c1
|
|
226
|
+
ay schedules ls # everything: cron reminders + legacy `ay schedule` jobs
|
|
227
|
+
ay schedules daemon status # the per-machine scheduler daemon
|
|
228
|
+
```
|
|
229
|
+
|
|
230
|
+
Reminders live in one store (`~/.config/agent-yes/schedules.json`). One scheduler
|
|
231
|
+
daemon per machine fires them (it sleeps until the next fire, no polling, and wakes when the store changes) with `ay send --force`; it is kept alive by oxmgr when
|
|
232
|
+
installed, else systemd --user, launchd, Windows Task Scheduler, or a detached process.
|
|
233
|
+
A tick missed while the daemon was down is skipped. Fires are logged as JSONL to
|
|
234
|
+
`~/.local/share/agent-yes/schedules.log`; a target that isn't live is logged and skipped.
|
|
235
|
+
|
|
198
236
|
### Shared task list across agents (`ay todo`)
|
|
199
237
|
|
|
200
238
|
A lifecycle-tracked task list that every agent working on a repo reads and
|
|
@@ -229,6 +267,7 @@ Tasks move through a lifecycle per `--kind`, and gated transitions require
|
|
|
229
267
|
**independent verification**: whoever did the work cannot approve it. See
|
|
230
268
|
`ts/todoStore.ts` for the gate model.
|
|
231
269
|
|
|
270
|
+
|
|
232
271
|
### Ask another agent a question (`ay ask`)
|
|
233
272
|
|
|
234
273
|
`ay send` の送信確認では、今回のメッセージ識別子が入力欄から履歴へ移ったことを調べます。終了コードは `0` = 送信確認済み、`1` = `NOT SUBMITTED`(宛先を確認してから再送)、`3` = 宛先到達不能、`4` = `QUEUED`(受付済み・処理待ち)です。`4` は失敗として本文を再送せず、宛先の処理を待ってください。確認できない画面や入力候補・ダイアログには Enter を追加しません。`--no-wait` は従来どおり確認を省略するため、終了コード `0` でも送信確認を意味しません。
|
|
@@ -160,11 +160,12 @@ var JsonlStore = class {
|
|
|
160
160
|
}
|
|
161
161
|
}
|
|
162
162
|
async withLock(fn) {
|
|
163
|
-
const dir = path.dirname(this.filePath);
|
|
164
163
|
let release;
|
|
165
164
|
try {
|
|
166
|
-
|
|
167
|
-
|
|
165
|
+
const lockfilePath = this.filePath + ".lock";
|
|
166
|
+
release = await lock(lockfilePath, {
|
|
167
|
+
realpath: false,
|
|
168
|
+
lockfilePath,
|
|
168
169
|
retries: {
|
|
169
170
|
retries: 5,
|
|
170
171
|
minTimeout: 50,
|
|
@@ -184,4 +185,4 @@ function generateId() {
|
|
|
184
185
|
|
|
185
186
|
//#endregion
|
|
186
187
|
export { JsonlStore as t };
|
|
187
|
-
//# sourceMappingURL=JsonlStore-
|
|
188
|
+
//# sourceMappingURL=JsonlStore-CB_0sfdT.js.map
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { t as CLIS_CONFIG } from "./ts-
|
|
1
|
+
import { t as CLIS_CONFIG } from "./ts-CKg13ouW.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-DIsylUef.js.map
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import "./logger-CDIsZ-Pp.js";
|
|
2
|
+
import "./versionChecker-DK_hbkRb.js";
|
|
3
|
+
import "./ts-CKg13ouW.js";
|
|
4
|
+
import "./todoAutomation-CKlrxuZv.js";
|
|
5
|
+
import "./JsonlStore-CB_0sfdT.js";
|
|
6
|
+
import "./globalPidIndex-BsjlId-h.js";
|
|
7
|
+
import "./pidStore-C50VPk3E.js";
|
|
8
|
+
import "./messageLog-Dq_ka-Bt.js";
|
|
9
|
+
import "./todoStore-msRCEUi1.js";
|
|
10
|
+
import { t as SUPPORTED_CLIS } from "./SUPPORTED_CLIS-DIsylUef.js";
|
|
11
|
+
|
|
12
|
+
export { SUPPORTED_CLIS };
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import "./logger-CDIsZ-Pp.js";
|
|
2
|
-
import "./JsonlStore-
|
|
3
|
-
import "./globalPidIndex-
|
|
4
|
-
import "./pidStore-
|
|
2
|
+
import "./JsonlStore-CB_0sfdT.js";
|
|
3
|
+
import "./globalPidIndex-BsjlId-h.js";
|
|
4
|
+
import "./pidStore-C50VPk3E.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
|
|
8
|
+
import { ot as resolveOne } from "./subcommands-C5rUetgG.js";
|
|
9
|
+
import "./webrtcLink-DcvacEci.js";
|
|
10
|
+
import "./remotes-BsMGvAay.js";
|
|
11
|
+
import "./roomReplyAlias-B-v76TA8.js";
|
|
12
12
|
import "./notifyStore-DIfkfKB2.js";
|
|
13
13
|
import "./senderAncestry-CVHeKk1Y.js";
|
|
14
14
|
import { l as startShare } from "./share-CbFetL5H.js";
|
|
@@ -234,4 +234,4 @@ function transformEvent(rawEvent, agentId, forwarded) {
|
|
|
234
234
|
|
|
235
235
|
//#endregion
|
|
236
236
|
export { createScopedShare, listShares, revokeAllShares, revokeShare };
|
|
237
|
-
//# sourceMappingURL=agentShare-
|
|
237
|
+
//# sourceMappingURL=agentShare-uklMrG1Q.js.map
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import "./logger-CDIsZ-Pp.js";
|
|
2
|
-
import "./JsonlStore-
|
|
3
|
-
import "./globalPidIndex-
|
|
4
|
-
import { r as openStore } from "./todoStore-
|
|
5
|
-
import { t as formatIdentity } from "./identity-
|
|
6
|
-
import { a as resolveTodoRoot, i as resolveSelf } from "./todoIdentity-
|
|
2
|
+
import "./JsonlStore-CB_0sfdT.js";
|
|
3
|
+
import "./globalPidIndex-BsjlId-h.js";
|
|
4
|
+
import { r as openStore } from "./todoStore-msRCEUi1.js";
|
|
5
|
+
import { t as formatIdentity } from "./identity-Ckav3-Up.js";
|
|
6
|
+
import { a as resolveTodoRoot, i as resolveSelf } from "./todoIdentity-CzS1e7VL.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-KmMf-3wA.js.map
|
|
@@ -13031,7 +13031,7 @@ var AyTerminal = class {
|
|
|
13031
13031
|
* daemon's negotiation (3a/3b) can shrink the shared PTY to what the panel shows —
|
|
13032
13032
|
* the "drag the widget to resize the agent" behavior, but through the same
|
|
13033
13033
|
* smallest-client-wins negotiation as every other viewer (bounded by the operator's
|
|
13034
|
-
* local terminal + the
|
|
13034
|
+
* local terminal + the 80×10 floor), NOT a raw /api/resize that scrambled everyone.
|
|
13035
13035
|
* Debounced so a drag doesn't spam. Read-only widgets never report (pure observers).
|
|
13036
13036
|
*/
|
|
13037
13037
|
sendCap(cols, rows) {
|
|
@@ -13566,4 +13566,4 @@ const XTERM_CSS = `
|
|
|
13566
13566
|
|
|
13567
13567
|
//#endregion
|
|
13568
13568
|
export { AyTerminal as t };
|
|
13569
|
-
//# sourceMappingURL=browser-
|
|
13569
|
+
//# sourceMappingURL=browser-BAFPmEvN.js.map
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import "./logger-CDIsZ-Pp.js";
|
|
2
|
-
import "./JsonlStore-
|
|
3
|
-
import "./globalPidIndex-
|
|
4
|
-
import "./pidStore-
|
|
2
|
+
import "./JsonlStore-CB_0sfdT.js";
|
|
3
|
+
import "./globalPidIndex-BsjlId-h.js";
|
|
4
|
+
import "./pidStore-C50VPk3E.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 "./
|
|
8
|
+
import "./subcommands-C5rUetgG.js";
|
|
9
|
+
import "./webrtcLink-DcvacEci.js";
|
|
10
|
+
import "./remotes-BsMGvAay.js";
|
|
11
|
+
import "./roomReplyAlias-B-v76TA8.js";
|
|
12
12
|
import "./notifyStore-DIfkfKB2.js";
|
|
13
13
|
import "./senderAncestry-CVHeKk1Y.js";
|
|
14
14
|
import "./callbackCore-Deve5pv3.js";
|
|
15
|
-
import { i as loadOrCreateCallbackSecret, n as isCallbackRevoked, r as loadCallbackSecretReadOnly, t as cmdCallback } from "./callback-
|
|
15
|
+
import { i as loadOrCreateCallbackSecret, n as isCallbackRevoked, r as loadCallbackSecretReadOnly, t as cmdCallback } from "./callback-D3vNglVm.js";
|
|
16
16
|
|
|
17
17
|
export { cmdCallback };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t as agentYesHome } from "./agentYesHome-JmJC28YX.js";
|
|
2
|
-
import {
|
|
2
|
+
import { ot as resolveOne } from "./subcommands-C5rUetgG.js";
|
|
3
3
|
import { a as mintCapability, o as parseExpires } from "./callbackCore-Deve5pv3.js";
|
|
4
4
|
import { chmodSync, readFileSync, renameSync, writeFileSync } from "node:fs";
|
|
5
5
|
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-BnPfpr9_.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-D3vNglVm.js.map
|
package/dist/cli.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
#!/usr/bin/env bun
|
|
2
2
|
import { t as invokedCliName } from "./invokedCli-zdFbz1ST.js";
|
|
3
3
|
import { n as logger } from "./logger-CDIsZ-Pp.js";
|
|
4
|
-
import { a as versionString, r as displayVersion, t as checkAndAutoUpdate } from "./versionChecker-
|
|
5
|
-
import { m as getRustBinary } from "./rustBinary-
|
|
4
|
+
import { a as versionString, r as displayVersion, t as checkAndAutoUpdate } from "./versionChecker-DK_hbkRb.js";
|
|
5
|
+
import { m as getRustBinary } from "./rustBinary-C7nv30Se.js";
|
|
6
6
|
import { statSync } from "node:fs";
|
|
7
7
|
import { isAbsolute } from "node:path";
|
|
8
8
|
import { argv } from "process";
|
|
@@ -378,7 +378,7 @@ function buildRustArgs(argv, cliFromScript, supportedClis) {
|
|
|
378
378
|
const rawArg = process.argv[2];
|
|
379
379
|
const managerCommands = !invokedCliName(process.argv);
|
|
380
380
|
const isHelpFlag = rawArg === "-h" || rawArg === "--help";
|
|
381
|
-
const { isSubcommand, runSubcommand, cmdHelp, isUnknownManagerToken, isBareManagerInvocation } = await import("./subcommands-
|
|
381
|
+
const { isSubcommand, runSubcommand, cmdHelp, isUnknownManagerToken, isBareManagerInvocation } = await import("./subcommands-DOlA1mKx.js");
|
|
382
382
|
if (isHelpFlag && process.argv.length === 3) {
|
|
383
383
|
await cmdHelp(managerCommands);
|
|
384
384
|
process.exit(0);
|
|
@@ -392,7 +392,7 @@ function buildRustArgs(argv, cliFromScript, supportedClis) {
|
|
|
392
392
|
process.exit(code ?? 0);
|
|
393
393
|
}
|
|
394
394
|
{
|
|
395
|
-
const { SUPPORTED_CLIS } = await import("./SUPPORTED_CLIS-
|
|
395
|
+
const { SUPPORTED_CLIS } = await import("./SUPPORTED_CLIS-cJcdAMxS.js");
|
|
396
396
|
if (isUnknownManagerToken(rawArg, managerCommands, SUPPORTED_CLIS)) {
|
|
397
397
|
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`);
|
|
398
398
|
process.exit(1);
|
|
@@ -411,7 +411,7 @@ await checkAndAutoUpdate();
|
|
|
411
411
|
logger.info(versionString());
|
|
412
412
|
const config = parseCliArgs(process.argv);
|
|
413
413
|
{
|
|
414
|
-
const { stripDetachFlag } = await import("./forkNested-
|
|
414
|
+
const { stripDetachFlag } = await import("./forkNested-3heLs5XC.js");
|
|
415
415
|
const res = stripDetachFlag(process.argv.slice(2), Boolean(config.detach));
|
|
416
416
|
if (!res.ok) {
|
|
417
417
|
console.error(res.error);
|
|
@@ -428,16 +428,16 @@ if (config.detach && !config.useRust) {
|
|
|
428
428
|
process.exit(1);
|
|
429
429
|
}
|
|
430
430
|
if (config.tray) {
|
|
431
|
-
const { startTray } = await import("./tray-
|
|
431
|
+
const { startTray } = await import("./tray-CLktEN3G.js");
|
|
432
432
|
await startTray();
|
|
433
433
|
await new Promise(() => {});
|
|
434
434
|
}
|
|
435
435
|
{
|
|
436
|
-
const { ensureTray } = await import("./tray-
|
|
436
|
+
const { ensureTray } = await import("./tray-CLktEN3G.js");
|
|
437
437
|
ensureTray();
|
|
438
438
|
}
|
|
439
439
|
if (!config.showVersion && !config.appendPrompt && !config.tray) {
|
|
440
|
-
const { waitForSpawnCapacity } = await import("./spawnGate-
|
|
440
|
+
const { waitForSpawnCapacity } = await import("./spawnGate-Dfj9V76w.js");
|
|
441
441
|
await waitForSpawnCapacity({
|
|
442
442
|
onWait: (reason, waitedMs) => {
|
|
443
443
|
if (config.verbose || waitedMs === 0) console.error(`[agent-yes] spawn gate: ${reason} — waiting…`);
|
|
@@ -446,7 +446,7 @@ if (!config.showVersion && !config.appendPrompt && !config.tray) {
|
|
|
446
446
|
});
|
|
447
447
|
}
|
|
448
448
|
if (!config.showVersion && !config.appendPrompt && !config.tray) {
|
|
449
|
-
const { warnIfCwdOccupied } = await import("./cwdConflictWarn-
|
|
449
|
+
const { warnIfCwdOccupied } = await import("./cwdConflictWarn-y-epQyOj.js");
|
|
450
450
|
await warnIfCwdOccupied(process.argv);
|
|
451
451
|
}
|
|
452
452
|
if (config.useRust) {
|
|
@@ -464,14 +464,14 @@ if (config.useRust) {
|
|
|
464
464
|
process.exit(1);
|
|
465
465
|
}
|
|
466
466
|
if (rustBinary) {
|
|
467
|
-
const { SUPPORTED_CLIS } = await import("./SUPPORTED_CLIS-
|
|
467
|
+
const { SUPPORTED_CLIS } = await import("./SUPPORTED_CLIS-cJcdAMxS.js");
|
|
468
468
|
const rustArgs = buildRustArgs(process.argv, config.cli, SUPPORTED_CLIS);
|
|
469
469
|
if (config.verbose) {
|
|
470
470
|
console.log(`[rust] Using binary: ${rustBinary}`);
|
|
471
471
|
console.log(`[rust] Args: ${rustArgs.join(" ")}`);
|
|
472
472
|
}
|
|
473
473
|
const attach = config.attach || process.env.AGENT_YES_ATTACH === "1";
|
|
474
|
-
const { shouldForkNested, buildSpawnTutorial, waitForRegistration, confirmAgentStarted, predictedLogPath } = await import("./forkNested-
|
|
474
|
+
const { shouldForkNested, buildSpawnTutorial, waitForRegistration, confirmAgentStarted, predictedLogPath } = await import("./forkNested-3heLs5XC.js");
|
|
475
475
|
if (shouldForkNested({
|
|
476
476
|
isTTY: Boolean(process.stdout.isTTY),
|
|
477
477
|
ayPid: process.env.AGENT_YES_PID,
|
|
@@ -539,7 +539,7 @@ if (config.showVersion) {
|
|
|
539
539
|
process.exit(0);
|
|
540
540
|
}
|
|
541
541
|
if (config.appendPrompt) {
|
|
542
|
-
const { PidStore } = await import("./pidStore-
|
|
542
|
+
const { PidStore } = await import("./pidStore-COkPjpW8.js");
|
|
543
543
|
const ipcPath = await PidStore.findActiveFifo(process.cwd());
|
|
544
544
|
if (!ipcPath) {
|
|
545
545
|
console.error("No active agent with IPC found in current directory.");
|
|
@@ -54,7 +54,7 @@ async function cmdKill(rest) {
|
|
|
54
54
|
return 1;
|
|
55
55
|
}
|
|
56
56
|
const pid = Number(sel);
|
|
57
|
-
const { readGlobalPids, updateGlobalPidStatus } = await import("./globalPidIndex-
|
|
57
|
+
const { readGlobalPids, updateGlobalPidStatus } = await import("./globalPidIndex-uoz8Esqz.js");
|
|
58
58
|
const matches = (await readGlobalPids()).filter((r) => r.pid === pid);
|
|
59
59
|
if (matches.length !== 1) {
|
|
60
60
|
process.stderr.write(matches.length === 0 ? `ay kill: no registered agent has pid ${pid} (see: ay ls --all)\n` : `ay kill: ${matches.length} registry rows claim pid ${pid} — refusing an ambiguous kill\n`);
|
|
@@ -113,4 +113,4 @@ async function cmdKill(rest) {
|
|
|
113
113
|
|
|
114
114
|
//#endregion
|
|
115
115
|
export { cmdKill };
|
|
116
|
-
//# sourceMappingURL=cmdKill-
|
|
116
|
+
//# sourceMappingURL=cmdKill-CzSBfWmx.js.map
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import "./logger-CDIsZ-Pp.js";
|
|
2
|
-
import "./JsonlStore-
|
|
3
|
-
import "./globalPidIndex-
|
|
4
|
-
import "./pidStore-
|
|
2
|
+
import "./JsonlStore-CB_0sfdT.js";
|
|
3
|
+
import "./globalPidIndex-BsjlId-h.js";
|
|
4
|
+
import "./pidStore-C50VPk3E.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
|
|
8
|
+
import { Dt as flattenForest, Et as buildAgentForest, G as listRecords, y as deriveLiveState } from "./subcommands-C5rUetgG.js";
|
|
9
|
+
import "./webrtcLink-DcvacEci.js";
|
|
10
|
+
import "./remotes-BsMGvAay.js";
|
|
11
|
+
import "./roomReplyAlias-B-v76TA8.js";
|
|
12
12
|
import "./notifyStore-DIfkfKB2.js";
|
|
13
13
|
import "./senderAncestry-CVHeKk1Y.js";
|
|
14
14
|
import { i as systemStats, n as sampleTrees, r as snapshotProcs, t as humanBytes } from "./procStats-DwTxj3rs.js";
|
|
@@ -332,4 +332,4 @@ function readPpidSync(pid) {
|
|
|
332
332
|
|
|
333
333
|
//#endregion
|
|
334
334
|
export { cmdPs };
|
|
335
|
-
//# sourceMappingURL=cmdPs-
|
|
335
|
+
//# sourceMappingURL=cmdPs-7WQUcqos.js.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import "./logger-CDIsZ-Pp.js";
|
|
2
|
-
import { a as readGlobalPids } from "./globalPidIndex-
|
|
2
|
+
import { a as readGlobalPids } from "./globalPidIndex-BsjlId-h.js";
|
|
3
3
|
import path from "path";
|
|
4
4
|
|
|
5
5
|
//#region ts/cwdConflictWarn.ts
|
|
@@ -77,4 +77,4 @@ async function warnIfCwdOccupied(rawArgv) {
|
|
|
77
77
|
|
|
78
78
|
//#endregion
|
|
79
79
|
export { warnIfCwdOccupied };
|
|
80
|
-
//# sourceMappingURL=cwdConflictWarn-
|
|
80
|
+
//# sourceMappingURL=cwdConflictWarn-y-epQyOj.js.map
|
|
@@ -102,7 +102,7 @@ function buildSpawnTutorial(cli, pid) {
|
|
|
102
102
|
* fast instead of waiting out the whole window).
|
|
103
103
|
*/
|
|
104
104
|
async function waitForRegistration(pid, timeoutMs = 5e3, aborted) {
|
|
105
|
-
const { readGlobalPids } = await import("./globalPidIndex-
|
|
105
|
+
const { readGlobalPids } = await import("./globalPidIndex-uoz8Esqz.js");
|
|
106
106
|
const isRegistered = async () => (await readGlobalPids()).some((r) => r.pid === pid && r.status !== "exited");
|
|
107
107
|
const deadline = Date.now() + timeoutMs;
|
|
108
108
|
while (Date.now() < deadline) {
|
|
@@ -150,7 +150,7 @@ async function tailFile(file, max = 400) {
|
|
|
150
150
|
* success, keeping the previous behaviour for anything this can't decide.
|
|
151
151
|
*/
|
|
152
152
|
async function confirmAgentStarted(pid, graceMs = 1500, aborted) {
|
|
153
|
-
const { readGlobalPids } = await import("./globalPidIndex-
|
|
153
|
+
const { readGlobalPids } = await import("./globalPidIndex-uoz8Esqz.js");
|
|
154
154
|
const { stat } = await import("fs/promises");
|
|
155
155
|
const deadline = Date.now() + graceMs;
|
|
156
156
|
while (Date.now() < deadline) {
|
|
@@ -181,4 +181,4 @@ async function confirmAgentStarted(pid, graceMs = 1500, aborted) {
|
|
|
181
181
|
|
|
182
182
|
//#endregion
|
|
183
183
|
export { buildSpawnTutorial, confirmAgentStarted, predictedLogPath, shouldForkNested, stripDetachFlag, waitForRegistration };
|
|
184
|
-
//# sourceMappingURL=forkNested-
|
|
184
|
+
//# sourceMappingURL=forkNested-3heLs5XC.js.map
|
|
@@ -17,12 +17,13 @@ function resolveGlobalFile() {
|
|
|
17
17
|
return path.join(resolveGlobalDir(), "pids.jsonl");
|
|
18
18
|
}
|
|
19
19
|
async function withLock(file, fn) {
|
|
20
|
-
|
|
21
|
-
await mkdir(dir, { recursive: true });
|
|
20
|
+
await mkdir(path.dirname(file), { recursive: true });
|
|
22
21
|
let release;
|
|
23
22
|
try {
|
|
24
|
-
|
|
25
|
-
|
|
23
|
+
const lockfilePath = file + ".lock";
|
|
24
|
+
release = await lock(lockfilePath, {
|
|
25
|
+
realpath: false,
|
|
26
|
+
lockfilePath,
|
|
26
27
|
retries: {
|
|
27
28
|
retries: 5,
|
|
28
29
|
minTimeout: 50,
|
|
@@ -315,4 +316,4 @@ async function gcLogs(maxAgeMs = retentionMs()) {
|
|
|
315
316
|
|
|
316
317
|
//#endregion
|
|
317
318
|
export { readGlobalPids as a, pruneOldLogs as i, gcLogs as n, sweepOrphanLogs as o, maybeCompactGlobalPids as r, updateGlobalPidStatus as s, appendGlobalPid as t };
|
|
318
|
-
//# sourceMappingURL=globalPidIndex-
|
|
319
|
+
//# sourceMappingURL=globalPidIndex-BsjlId-h.js.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import "./logger-CDIsZ-Pp.js";
|
|
2
|
-
import { a as readGlobalPids, i as pruneOldLogs, n as gcLogs, o as sweepOrphanLogs, r as maybeCompactGlobalPids, s as updateGlobalPidStatus, t as appendGlobalPid } from "./globalPidIndex-
|
|
2
|
+
import { a as readGlobalPids, i as pruneOldLogs, n as gcLogs, o as sweepOrphanLogs, r as maybeCompactGlobalPids, s as updateGlobalPidStatus, t as appendGlobalPid } from "./globalPidIndex-BsjlId-h.js";
|
|
3
3
|
|
|
4
4
|
export { gcLogs, readGlobalPids, updateGlobalPidStatus };
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { a as safeBranch, i as readGitBranch, n as localHost, o as safeToken, r as localUser, s as tildify, t as formatIdentity } from "./identity-
|
|
1
|
+
import { a as safeBranch, i as readGitBranch, n as localHost, o as safeToken, r as localUser, s as tildify, t as formatIdentity } from "./identity-Ckav3-Up.js";
|
|
2
2
|
|
|
3
3
|
export { formatIdentity };
|
|
@@ -106,4 +106,4 @@ function formatIdentity(parts) {
|
|
|
106
106
|
|
|
107
107
|
//#endregion
|
|
108
108
|
export { safeBranch as a, readGitBranch as i, localHost as n, safeToken as o, localUser as r, tildify as s, formatIdentity as t };
|
|
109
|
-
//# sourceMappingURL=identity-
|
|
109
|
+
//# sourceMappingURL=identity-Ckav3-Up.js.map
|
package/dist/index.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
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-
|
|
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-
|
|
5
|
-
import "./JsonlStore-
|
|
6
|
-
import "./globalPidIndex-
|
|
7
|
-
import "./pidStore-
|
|
2
|
+
import "./versionChecker-DK_hbkRb.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-CKg13ouW.js";
|
|
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-CKlrxuZv.js";
|
|
5
|
+
import "./JsonlStore-CB_0sfdT.js";
|
|
6
|
+
import "./globalPidIndex-BsjlId-h.js";
|
|
7
|
+
import "./pidStore-C50VPk3E.js";
|
|
8
8
|
import "./messageLog-Dq_ka-Bt.js";
|
|
9
|
-
import { a as LIFECYCLES, c as initialState, d as requiredGate, f as statesOf, i as DONE_STATE, l as isKnownKind, n as TodoStore, o as ORPHANED_STATE, r as openStore, s as canTransition, t as CycleError, u as nextStates } from "./todoStore-
|
|
9
|
+
import { a as LIFECYCLES, c as initialState, d as requiredGate, f as statesOf, i as DONE_STATE, l as isKnownKind, n as TodoStore, o as ORPHANED_STATE, r as openStore, s as canTransition, t as CycleError, u as nextStates } from "./todoStore-msRCEUi1.js";
|
|
10
10
|
|
|
11
11
|
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 };
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { n as logger } from "./logger-CDIsZ-Pp.js";
|
|
2
|
-
import "./JsonlStore-
|
|
3
|
-
import "./globalPidIndex-
|
|
4
|
-
import "./pidStore-
|
|
2
|
+
import "./JsonlStore-CB_0sfdT.js";
|
|
3
|
+
import "./globalPidIndex-BsjlId-h.js";
|
|
4
|
+
import "./pidStore-C50VPk3E.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
|
|
8
|
+
import { G as listRecords, I as isPidAlive, rt as renderLogTailLines, y as deriveLiveState } from "./subcommands-C5rUetgG.js";
|
|
9
|
+
import "./webrtcLink-DcvacEci.js";
|
|
10
|
+
import "./remotes-BsMGvAay.js";
|
|
11
|
+
import "./roomReplyAlias-B-v76TA8.js";
|
|
12
12
|
import { f as readInbox, g as daemonLockOwnerPath, h as daemonLockDir, i as gcInboxes, l as listInboxParents, m as shouldStealLock, n as appendEvent, s as hostId, u as liveWatchers, x as notifyDir } from "./notifyStore-DIfkfKB2.js";
|
|
13
13
|
import "./senderAncestry-CVHeKk1Y.js";
|
|
14
14
|
import { readFileSync, renameSync, unlinkSync, writeFileSync } from "node:fs";
|
|
@@ -881,4 +881,4 @@ async function ensureDaemon() {
|
|
|
881
881
|
|
|
882
882
|
//#endregion
|
|
883
883
|
export { daemonStatus, ensureDaemon, requestDaemonStop, runDaemon };
|
|
884
|
-
//# sourceMappingURL=notifyDaemon-
|
|
884
|
+
//# sourceMappingURL=notifyDaemon-I0Ev5Kxb.js.map
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { n as liveEnv } from "./nodeRuntime-DGMQRTGT.js";
|
|
2
|
+
|
|
3
|
+
//#region ts/oxmgrService.ts
|
|
4
|
+
async function ensureBootAutostart(oxmgrBin) {
|
|
5
|
+
try {
|
|
6
|
+
if (await Bun.spawn([
|
|
7
|
+
oxmgrBin,
|
|
8
|
+
"service",
|
|
9
|
+
"status"
|
|
10
|
+
], {
|
|
11
|
+
stdio: [
|
|
12
|
+
"ignore",
|
|
13
|
+
"ignore",
|
|
14
|
+
"ignore"
|
|
15
|
+
],
|
|
16
|
+
env: liveEnv()
|
|
17
|
+
}).exited === 0) return true;
|
|
18
|
+
return await Bun.spawn([
|
|
19
|
+
oxmgrBin,
|
|
20
|
+
"service",
|
|
21
|
+
"install"
|
|
22
|
+
], {
|
|
23
|
+
stdio: [
|
|
24
|
+
"ignore",
|
|
25
|
+
"ignore",
|
|
26
|
+
"ignore"
|
|
27
|
+
],
|
|
28
|
+
env: liveEnv()
|
|
29
|
+
}).exited === 0;
|
|
30
|
+
} catch {
|
|
31
|
+
return false;
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
//#endregion
|
|
36
|
+
export { ensureBootAutostart as t };
|
|
37
|
+
//# sourceMappingURL=oxmgrService-DlYHmqyI.js.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as readGlobalPids } from "./globalPidIndex-
|
|
1
|
+
import { a as readGlobalPids } from "./globalPidIndex-BsjlId-h.js";
|
|
2
2
|
|
|
3
3
|
//#region ts/parentLink.ts
|
|
4
4
|
/**
|
|
@@ -50,4 +50,4 @@ function spawnerFromRecords(records, parentPid) {
|
|
|
50
50
|
|
|
51
51
|
//#endregion
|
|
52
52
|
export { spawnerFromRecords as n, resolveSpawner as t };
|
|
53
|
-
//# sourceMappingURL=parentLink-
|
|
53
|
+
//# sourceMappingURL=parentLink-BcAYcO9L.js.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import "./logger-CDIsZ-Pp.js";
|
|
2
|
-
import "./globalPidIndex-
|
|
3
|
-
import { n as spawnerFromRecords, t as resolveSpawner } from "./parentLink-
|
|
2
|
+
import "./globalPidIndex-BsjlId-h.js";
|
|
3
|
+
import { n as spawnerFromRecords, t as resolveSpawner } from "./parentLink-BcAYcO9L.js";
|
|
4
4
|
|
|
5
5
|
export { resolveSpawner };
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { n as logger } from "./logger-CDIsZ-Pp.js";
|
|
2
|
-
import "./globalPidIndex-
|
|
2
|
+
import "./globalPidIndex-BsjlId-h.js";
|
|
3
3
|
import { t as classifyNeedsInput } from "./needsInput-hRiWFjGy.js";
|
|
4
4
|
import { n as replyTargetOf, r as shortenHome } from "./initMsg-BEVDWYnv.js";
|
|
5
|
-
import { t as resolveSpawner } from "./parentLink-
|
|
5
|
+
import { t as resolveSpawner } from "./parentLink-BcAYcO9L.js";
|
|
6
6
|
import { spawn } from "node:child_process";
|
|
7
7
|
|
|
8
8
|
//#region ts/parentPing.ts
|
|
@@ -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-DOlA1mKx.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-C7Eb_CE7.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { n as logger } from "./logger-CDIsZ-Pp.js";
|
|
2
2
|
import { t as agentYesHome } from "./agentYesHome-JmJC28YX.js";
|
|
3
|
-
import { t as JsonlStore } from "./JsonlStore-
|
|
4
|
-
import { i as pruneOldLogs, r as maybeCompactGlobalPids, s as updateGlobalPidStatus, t as appendGlobalPid } from "./globalPidIndex-
|
|
3
|
+
import { t as JsonlStore } from "./JsonlStore-CB_0sfdT.js";
|
|
4
|
+
import { i as pruneOldLogs, r as maybeCompactGlobalPids, s as updateGlobalPidStatus, t as appendGlobalPid } from "./globalPidIndex-BsjlId-h.js";
|
|
5
5
|
import { mkdir, writeFile } from "fs/promises";
|
|
6
6
|
import path from "path";
|
|
7
7
|
import { randomBytes } from "node:crypto";
|
|
@@ -197,4 +197,4 @@ pid-db/
|
|
|
197
197
|
|
|
198
198
|
//#endregion
|
|
199
199
|
export { PidStore as t };
|
|
200
|
-
//# sourceMappingURL=pidStore-
|
|
200
|
+
//# sourceMappingURL=pidStore-C50VPk3E.js.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import "./e2e-BdLf8DvY.js";
|
|
2
|
-
import "./webrtcLink-
|
|
3
|
-
import { a as deleteRemoteAlias, c as parseShareUrl, d as writeRemoteAlias, i as defaultConnectAlias, l as readRemotes, n as cmdConnect, o as maskRemoteUrl, r as cmdRemote, s as parseDirectRemoteSpec, t as MASK, u as resolveRemoteSpec } from "./remotes-
|
|
2
|
+
import "./webrtcLink-DcvacEci.js";
|
|
3
|
+
import { a as deleteRemoteAlias, c as parseShareUrl, d as writeRemoteAlias, i as defaultConnectAlias, l as readRemotes, n as cmdConnect, o as maskRemoteUrl, r as cmdRemote, s as parseDirectRemoteSpec, t as MASK, u as resolveRemoteSpec } from "./remotes-BsMGvAay.js";
|
|
4
4
|
|
|
5
5
|
export { cmdConnect, cmdRemote };
|