claude-yes 1.72.1 → 1.72.3
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.
|
@@ -815,7 +815,7 @@ function tryCatch(catchFn, fn) {
|
|
|
815
815
|
//#endregion
|
|
816
816
|
//#region package.json
|
|
817
817
|
var name = "agent-yes";
|
|
818
|
-
var version = "1.72.
|
|
818
|
+
var version = "1.72.3";
|
|
819
819
|
|
|
820
820
|
//#endregion
|
|
821
821
|
//#region ts/pty-fix.ts
|
|
@@ -1895,4 +1895,4 @@ const SUPPORTED_CLIS = Object.keys(CLIS_CONFIG);
|
|
|
1895
1895
|
|
|
1896
1896
|
//#endregion
|
|
1897
1897
|
export { AgentContext as a, PidStore as c, config as i, removeControlCharacters as l, CLIS_CONFIG as n, name as o, agentYes as r, version as s, SUPPORTED_CLIS as t };
|
|
1898
|
-
//# sourceMappingURL=SUPPORTED_CLIS-
|
|
1898
|
+
//# sourceMappingURL=SUPPORTED_CLIS-C-KnmE0Y.js.map
|
package/dist/cli.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
#!/usr/bin/env bun
|
|
2
|
-
import { c as PidStore, o as name, s as version, t as SUPPORTED_CLIS } from "./SUPPORTED_CLIS-
|
|
2
|
+
import { c as PidStore, o as name, s as version, t as SUPPORTED_CLIS } from "./SUPPORTED_CLIS-C-KnmE0Y.js";
|
|
3
3
|
import { t as logger } from "./logger-CX77vJDA.js";
|
|
4
4
|
import { argv } from "process";
|
|
5
5
|
import { spawn } from "child_process";
|
package/dist/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as AgentContext, i as config, l as removeControlCharacters, n as CLIS_CONFIG, r as agentYes } from "./SUPPORTED_CLIS-
|
|
1
|
+
import { a as AgentContext, i as config, l as removeControlCharacters, n as CLIS_CONFIG, r as agentYes } from "./SUPPORTED_CLIS-C-KnmE0Y.js";
|
|
2
2
|
import "./logger-CX77vJDA.js";
|
|
3
3
|
|
|
4
4
|
export { AgentContext, CLIS_CONFIG, config, agentYes as default, removeControlCharacters };
|
package/package.json
CHANGED
package/ts/JsonlStore.spec.ts
CHANGED
|
@@ -2,21 +2,30 @@ import { describe, expect, it, beforeEach, afterEach } from "vitest";
|
|
|
2
2
|
import { JsonlStore } from "./JsonlStore";
|
|
3
3
|
import { rm, readFile, writeFile, mkdir } from "fs/promises";
|
|
4
4
|
import path from "path";
|
|
5
|
+
import os from "os";
|
|
5
6
|
|
|
6
|
-
const TEST_DIR = "
|
|
7
|
+
const TEST_DIR = path.join(os.tmpdir(), "jsonlstore-test-" + process.pid);
|
|
7
8
|
const TEST_FILE = path.join(TEST_DIR, "test.jsonl");
|
|
8
9
|
|
|
9
10
|
describe("JsonlStore", () => {
|
|
10
11
|
let store: JsonlStore;
|
|
11
12
|
|
|
12
13
|
beforeEach(async () => {
|
|
13
|
-
|
|
14
|
+
try {
|
|
15
|
+
await rm(TEST_DIR, { recursive: true, force: true });
|
|
16
|
+
} catch {
|
|
17
|
+
// ignore cleanup failures (e.g. Windows lock files from previous test)
|
|
18
|
+
}
|
|
14
19
|
await mkdir(TEST_DIR, { recursive: true });
|
|
15
20
|
store = new JsonlStore(TEST_FILE);
|
|
16
21
|
});
|
|
17
22
|
|
|
18
23
|
afterEach(async () => {
|
|
19
|
-
|
|
24
|
+
try {
|
|
25
|
+
await rm(TEST_DIR, { recursive: true, force: true });
|
|
26
|
+
} catch {
|
|
27
|
+
// ignore cleanup failures
|
|
28
|
+
}
|
|
20
29
|
});
|
|
21
30
|
|
|
22
31
|
describe("load", () => {
|
package/ts/pidStore.spec.ts
CHANGED
|
@@ -12,14 +12,22 @@ describe("PidStore", () => {
|
|
|
12
12
|
let store: PidStore;
|
|
13
13
|
|
|
14
14
|
beforeEach(async () => {
|
|
15
|
-
|
|
15
|
+
try {
|
|
16
|
+
await rm(TEST_DIR, { recursive: true, force: true });
|
|
17
|
+
} catch {
|
|
18
|
+
// ignore cleanup failures (e.g. Windows lock files from previous test)
|
|
19
|
+
}
|
|
16
20
|
store = new PidStore(TEST_DIR);
|
|
17
21
|
await store.init();
|
|
18
22
|
});
|
|
19
23
|
|
|
20
24
|
afterEach(async () => {
|
|
21
25
|
await store.close();
|
|
22
|
-
|
|
26
|
+
try {
|
|
27
|
+
await rm(TEST_DIR, { recursive: true, force: true });
|
|
28
|
+
} catch {
|
|
29
|
+
// ignore cleanup failures
|
|
30
|
+
}
|
|
23
31
|
});
|
|
24
32
|
|
|
25
33
|
describe("registerProcess", () => {
|
|
@@ -170,7 +178,11 @@ describe("PidStore", () => {
|
|
|
170
178
|
|
|
171
179
|
it("should return fifo of most recent non-exited process", async () => {
|
|
172
180
|
const fifoTestDir = TEST_DIR + "-fifo";
|
|
173
|
-
|
|
181
|
+
try {
|
|
182
|
+
await rm(fifoTestDir, { recursive: true, force: true });
|
|
183
|
+
} catch {
|
|
184
|
+
// ignore cleanup failures (e.g. Windows lock files)
|
|
185
|
+
}
|
|
174
186
|
|
|
175
187
|
const fifoStore = new PidStore(fifoTestDir);
|
|
176
188
|
await fifoStore.init();
|
|
@@ -185,7 +197,11 @@ describe("PidStore", () => {
|
|
|
185
197
|
expect(fifo!).toContain(`${process.pid}.stdin`);
|
|
186
198
|
}
|
|
187
199
|
|
|
188
|
-
|
|
200
|
+
try {
|
|
201
|
+
await rm(fifoTestDir, { recursive: true, force: true });
|
|
202
|
+
} catch {
|
|
203
|
+
// ignore cleanup failures
|
|
204
|
+
}
|
|
189
205
|
});
|
|
190
206
|
});
|
|
191
207
|
|