@akanjs/code 3.3.0-rc.84 → 3.3.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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@akanjs/code",
|
|
3
|
-
"version": "3.3.0
|
|
3
|
+
"version": "3.3.0",
|
|
4
4
|
"sourceType": "module",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"publishConfig": {
|
|
@@ -31,14 +31,14 @@
|
|
|
31
31
|
"./package.json": "./package.json"
|
|
32
32
|
},
|
|
33
33
|
"dependencies": {
|
|
34
|
-
"@akanjs/devkit": "3.3.0
|
|
34
|
+
"@akanjs/devkit": "3.3.0",
|
|
35
35
|
"@earendil-works/pi-agent-core": "1.5.2",
|
|
36
36
|
"@earendil-works/pi-ai": "1.5.2",
|
|
37
37
|
"@earendil-works/pi-codemode": "1.5.2",
|
|
38
38
|
"@earendil-works/pi-coding-agent": "1.5.2",
|
|
39
39
|
"@earendil-works/pi-mcp": "1.5.2",
|
|
40
40
|
"@earendil-works/pi-tui": "1.5.2",
|
|
41
|
-
"akanjs": "3.3.0
|
|
41
|
+
"akanjs": "3.3.0",
|
|
42
42
|
"chalk": "^6.0.1",
|
|
43
43
|
"ink": "^6.8.0",
|
|
44
44
|
"react": "19.3.1",
|
|
@@ -317,6 +317,7 @@ describe("workspace trust", () => {
|
|
|
317
317
|
expect(existsSync(akanCodePaths.trustFile())).toBe(false);
|
|
318
318
|
});
|
|
319
319
|
|
|
320
|
+
//? Writing the 10,001 files takes 3 s on a quiet Windows machine and 12 s on a busy one.
|
|
320
321
|
test("an extensions folder past the file or byte cap is not checked, and its approval is never remembered", () => {
|
|
321
322
|
const many = workspace();
|
|
322
323
|
const modules = path.join(akanCodePaths.extensionsDir(many), "node_modules", "dep");
|
|
@@ -332,7 +333,7 @@ describe("workspace trust", () => {
|
|
|
332
333
|
WorkspaceTrust.approve(root, [item as NonNullable<typeof item>], true);
|
|
333
334
|
}
|
|
334
335
|
expect(existsSync(akanCodePaths.trustFile())).toBe(false);
|
|
335
|
-
});
|
|
336
|
+
}, 30_000);
|
|
336
337
|
|
|
337
338
|
test("a disabled server needs no approval", () => {
|
|
338
339
|
const root = workspace(JSON.stringify({ mcpServers: { tool: { command: "node", disabled: true } } }));
|
package/tui/codeTui.test.tsx
CHANGED
|
@@ -1013,8 +1013,8 @@ describe("CodeTui", () => {
|
|
|
1013
1013
|
await harness.ready();
|
|
1014
1014
|
const file = path.join(tmpdir(), "Screenshot at 20.11.02.png");
|
|
1015
1015
|
await Bun.write(file, new Uint8Array([0x89, 0x50, 0x4e, 0x47]));
|
|
1016
|
-
// Escaped spaces, the way a terminal writes a dragged or pasted path.
|
|
1017
|
-
await harness.press(file.replace(/[\\ ]/g, "\\$&"));
|
|
1016
|
+
// Escaped spaces, the way a terminal writes a dragged or pasted path; a Windows terminal quotes the path instead.
|
|
1017
|
+
await harness.press(process.platform === "win32" ? `"${file}"` : file.replace(/[\\ ]/g, "\\$&"));
|
|
1018
1018
|
await harness.drawn("[image #1]");
|
|
1019
1019
|
expect(harness.stdout.lastFrame).not.toContain("Screenshot at");
|
|
1020
1020
|
await harness.press("look at this");
|