Files
plugins/packages/agy-cli/package.json
T
yetone 035a11cf88 agy-cli 0.1.38: a runtime under a non-ASCII folder still builds nc.exe (#1097)
On Windows, Bun's `build --compile` widens its own path byte by byte
into UTF-16 before CopyFileW, so a magpie-bun.exe under a non-ASCII
folder (a Chinese user name) fails with "failed to copy bun executable
into temporary file: ENOENT". windowsNcDir then fell back to nc.cmd,
which agy 1.5.x never runs, and no client tool reached the model.

When process.execPath isn't ASCII, the build now runs a copy of the
runtime in an ASCII-only folder (the temp dir, else %PUBLIC%, else
%ProgramData%) and removes it after. nc.exe's cache key is still the
real runtime's path.

Run (mote, temp HOME, Bun 1.4.2): node --test test/windows-nc.mjs
7 pass; bun test in packages/agy-cli 20 pass; scripts/check.mjs
agy-cli ok. Broken by hand: with main's index.mjs the new test fails.

Windows 11 (xiaomi-gpu, Bun 1.4.2, real binaries): bun under a folder
named with Chinese characters fails `build --compile` with the
reporter's ENOENT. A non-ASCII cwd, server path or output path is fine,
and the compiled exe runs from a non-ASCII folder; an 8.3 short path
doesn't help. The plugin's own ensureShimDir, run by that bun: main
gives nc.cmd, this change gives nc.exe in 614ms, which starts, and
leaves no build dir or runtime copy behind.

Not tried: agy itself against the new nc.exe on Windows, and Bun 1.4.4
(the reporter's); the code path read is the same in Bun's main source.

Reported-by: Hy1an
2026-11-13 19:58:09 +08:00

51 lines
1.1 KiB
JSON

{
"name": "@magpie-community/opencode-agy-cli-auth",
"version": "0.1.38",
"description": "Magpie/OpenCode model provider that connects your local agy CLI through the Agent Client Protocol (agy acp), so Antigravity subscription models run through the real CLI",
"type": "module",
"main": "./opencode.mjs",
"exports": {
".": "./opencode2.mjs"
},
"files": [
"index.mjs",
"opencode.mjs",
"opencode2.mjs",
"platform.mjs",
"login.mjs",
"mcp-server.mjs",
"step-usage.mjs",
"tool-schema.mjs",
"usage.mjs",
"signin.mjs",
"README.md",
"README.en.md",
"LICENSE",
"NOTICE.md",
"re2-pattern.mjs",
"array-items.mjs",
"cloak.mjs"
],
"keywords": [
"magpie",
"magpie-plugin",
"opencode",
"opencode-plugin",
"antigravity",
"agy",
"acp"
],
"license": "MIT",
"repository": {
"type": "git",
"url": "git+https://github.com/magpie-community/plugins.git",
"directory": "packages/agy-cli"
},
"scripts": {
"test": "bun test"
},
"magpie": {
"maxConcurrency": 16
}
}