agent-yes 1.300.3 → 1.300.4
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-CWJr4TJH.js → SUPPORTED_CLIS-BIg_X-jE.js} +2 -2
- package/dist/{SUPPORTED_CLIS-ChSO8FiS.js → SUPPORTED_CLIS-D7lOxOnw.js} +3 -3
- package/dist/{agentShare-NkW0b0mg.js → agentShare-BfHUZgk4.js} +4 -4
- package/dist/{callback-CjlaFXp1.js → callback-COR0F2eB.js} +3 -3
- package/dist/{callback-B8CUyag4.js → callback-yWhCmi4k.js} +3 -3
- package/dist/{channels-aYwLMbFV.js → channels-rhxQArqN.js} +2 -2
- package/dist/cli.js +5 -5
- package/dist/{cmdPs-C8DIl8V6.js → cmdPs-B3jTE4f3.js} +3 -3
- package/dist/index.js +2 -2
- package/dist/{notifyDaemon-DWIfzEE7.js → notifyDaemon-BIo7Nkk2.js} +3 -3
- package/dist/{parentPingLoop-Bh3KuFcW.js → parentPingLoop-9T4Pzp6c.js} +2 -2
- package/dist/{remotes-B4v0Nowo.js → remotes-B4CNXwDS.js} +2 -2
- package/dist/{remotes-DnMQWaqQ.js → remotes-CQTEY8Gt.js} +1 -1
- package/dist/{rustBinary-gI_r3g9K.js → rustBinary-CJXUPUWd.js} +48 -5
- package/dist/rustBinary-FhGG3Yfl.js +4 -0
- package/dist/{schedule-DryC--yx.js → schedule-DmijwnTA.js} +4 -4
- package/dist/{serve-DVoYVgBo.js → serve-F5tXYO0-.js} +99 -32
- package/dist/{serveRust-DDQiZmMf.js → serveRust-BAawe83i.js} +16 -2
- package/dist/{setup--1zRHaGW.js → setup-mCb1JbTX.js} +2 -2
- package/dist/{share-C9oGvjXT.js → share-CLataFnI.js} +18 -12
- package/dist/share-nmgSIjYP.js +4 -0
- package/dist/{shareCmd-BI3hRWGO.js → shareCmd-aOKimJeT.js} +25 -7
- package/dist/{subcommands-BviFOQZE.js → subcommands-DRq0MgSm.js} +2 -2
- package/dist/{subcommands-UWLkF5pq.js → subcommands-Ddo2TYZs.js} +404 -77
- package/dist/{terminal-DviH1E3C.js → terminal-DEXrWOa9.js} +2 -2
- package/dist/trayApp-0RVjo43f.js +5 -0
- package/dist/{trayApp-PJrwfyDs.js → trayApp-BUXx7cES.js} +2 -2
- package/dist/{ts--JmSY117.js → ts-CRbycTni.js} +5 -5
- package/dist/{versionChecker-CCGSbjio.js → versionChecker-DeQEhRGB.js} +2 -2
- package/dist/{webrtcRemote-Cd4vTrgv.js → webrtcRemote-Cy5kB8aR.js} +115 -14
- package/dist/{widget-DgBDIGRQ.js → widget-DneXqnL8.js} +3 -3
- package/dist/{ws-DnBg8-g-.js → ws-DPw1lVTi.js} +3 -3
- package/dist/{ws-dc7MP054.js → ws-Dr-0Ckq7.js} +2 -2
- package/package.json +1 -1
- package/ts/remoteCache.bun.spec.ts +191 -0
- package/ts/remoteCache.spec.ts +191 -0
- package/ts/remoteCache.ts +193 -0
- package/ts/rustBinary.bun.spec.ts +39 -2
- package/ts/rustBinary.spec.ts +53 -2
- package/ts/rustBinary.ts +61 -3
- package/ts/serve.spec.ts +103 -0
- package/ts/serve.ts +100 -15
- package/ts/serveRust.spec.ts +24 -1
- package/ts/serveRust.ts +19 -0
- package/ts/share.bun.spec.ts +54 -2
- package/ts/share.spec.ts +54 -2
- package/ts/share.ts +40 -15
- package/ts/shareCmd.ts +33 -2
- package/ts/strayServe.ts +1 -0
- package/ts/subcommands.spec.ts +36 -3
- package/ts/subcommands.ts +384 -98
- package/ts/webrtcRemote.ts +66 -20
- package/ts/webrtcSignal.bun.spec.ts +120 -0
- package/ts/webrtcSignal.spec.ts +120 -0
- package/ts/webrtcSignal.ts +143 -0
- package/dist/rustBinary-BNmAJEBb.js +0 -4
- package/dist/share-Bmnd_qT0.js +0 -4
- package/dist/trayApp-BDIb8fOj.js +0 -5
package/ts/subcommands.spec.ts
CHANGED
|
@@ -2070,8 +2070,7 @@ describe("subcommands.cmdSend end-to-end submit-confirm wiring", () => {
|
|
|
2070
2070
|
const errs: string[] = [];
|
|
2071
2071
|
const origErr = process.stderr.write.bind(process.stderr);
|
|
2072
2072
|
process.stderr.write = ((c: string | Uint8Array) => (
|
|
2073
|
-
errs.push(String(c)),
|
|
2074
|
-
true
|
|
2073
|
+
errs.push(String(c)), true
|
|
2075
2074
|
)) as typeof process.stderr.write;
|
|
2076
2075
|
let res: { code: number | null; stdout: string };
|
|
2077
2076
|
try {
|
|
@@ -4729,7 +4728,10 @@ describe("readComposerState on a lane idle for hours", { timeout: 60_000 }, () =
|
|
|
4729
4728
|
for (let r = 39; r <= 46; r++) log += at(r, screen[r - 1]! + (r === 46 ? ` ${k % 10}` : ""));
|
|
4730
4729
|
// A fragment of an older frame's box, still holding what was typed then.
|
|
4731
4730
|
if (staleBox !== undefined)
|
|
4732
|
-
log +=
|
|
4731
|
+
log +=
|
|
4732
|
+
at(30, `${GRAY}${"─".repeat(COLS)}\x1b[0m`) +
|
|
4733
|
+
at(31, `❯ ${staleBox}`) +
|
|
4734
|
+
at(32, `${GRAY}${"─".repeat(COLS)}\x1b[0m`);
|
|
4733
4735
|
log += "\x1b[48;3H";
|
|
4734
4736
|
}
|
|
4735
4737
|
return log;
|
|
@@ -4798,3 +4800,34 @@ describe("readComposerState on a lane idle for hours", { timeout: 60_000 }, () =
|
|
|
4798
4800
|
expect(await stateOf("x\r\n".repeat(20000) + box)).toEqual({ kind: "draft", chars: 6 });
|
|
4799
4801
|
});
|
|
4800
4802
|
});
|
|
4803
|
+
|
|
4804
|
+
// A plain shell (cmd, bash, an ssh session) has no composer row. Its evidence
|
|
4805
|
+
// of a submitted raw send is the echoed command line followed by a NEW prompt;
|
|
4806
|
+
// the same text on the final line is the command typed but not yet entered.
|
|
4807
|
+
// Without this every `ay send --raw` to a shell reported NOT SUBMITTED (exit 1)
|
|
4808
|
+
// after the command had visibly run.
|
|
4809
|
+
describe("inspectSubmission: shells without a composer", () => {
|
|
4810
|
+
it("counts an echoed command above a fresh prompt as submitted", async () => {
|
|
4811
|
+
const { inspectSubmission } = await loadModule();
|
|
4812
|
+
const ran = ["alice@box:~/repo$ echo PIPE_OK_1", "PIPE_OK_1", "", "alice@box:~/repo$ "];
|
|
4813
|
+
expect(inspectSubmission(ran, "echo PIPE_OK_1")).toMatchObject({
|
|
4814
|
+
submission: "submitted",
|
|
4815
|
+
retry: false,
|
|
4816
|
+
transcriptMatches: 1,
|
|
4817
|
+
composerVisible: false,
|
|
4818
|
+
inComposer: false,
|
|
4819
|
+
});
|
|
4820
|
+
});
|
|
4821
|
+
|
|
4822
|
+
it("does not count the command while it is still on the last line, nor a wrapped message", async () => {
|
|
4823
|
+
const { inspectSubmission } = await loadModule();
|
|
4824
|
+
const typed = ["alice@box:~/repo$ ls", "a b", "alice@box:~/repo$ echo PIPE_OK_1"];
|
|
4825
|
+
expect(inspectSubmission(typed, "echo PIPE_OK_1").submission).toBe("not-submitted");
|
|
4826
|
+
expect(inspectSubmission(typed, "echo PIPE_OK_1").retry).toBe(false);
|
|
4827
|
+
const wrapped = ["alice@box:~/repo$ <ay-msg abc12345 from x>", "hi", "alice@box:~/repo$ "];
|
|
4828
|
+
expect(inspectSubmission(wrapped, "<ay-msg abc12345 from x>").submission).toBe("not-submitted");
|
|
4829
|
+
expect(inspectSubmission(["alice@box:~/repo$ "], "echo PIPE_OK_1").submission).toBe(
|
|
4830
|
+
"not-submitted",
|
|
4831
|
+
);
|
|
4832
|
+
});
|
|
4833
|
+
});
|