7b42e404f5f656d7bfb4aa5c7ddbcd1031264a86
3
Commits
| Author | SHA1 | Message | Date | |
|---|---|---|---|---|
|
|
768eafd6dc |
agy-cli 0.1.25: nc.exe is built under magpie's renamed Bun too (tearicerice on X)
windowsNcBuild() accepted only a runtime named bun / bun.exe. magpie's plugin host runs the Bun it downloads as magpie-bun(.exe) (internal/plugin bunupdate.go magpieBun), so on Windows 0.1.24 always returned null and fell back to nc.cmd: the console window and conhost per `agy acp` MCP call stayed (#1047). The name now matches (magpie-)?bun(.exe). An opencode build, which reports a bun version but has no `build` command, and Node still get null. Run: node --test packages/agy-cli/test/windows-nc.mjs on mica, 6 of 6 pass. Broke by hand: the old regex puts the new magpie-bun.exe assertion red (1 of 6 fails). win-run on xiaomi-gpu: a copy of Bun renamed magpie-bun.exe, platform.mjs picked it, `build --compile --windows-hide-console` exited 0, nc.exe PE subsystem = 2 (GUI). Siblings: no other package checks a Bun basename (grep). Not tried: a real `agy acp` session on Windows. |
||
|
|
80d3a00ee3 |
agy-cli 0.1.24: no console window or leftover conhost on Windows (#1047)
agy dials --ide-mcp-port by running `nc` from PATH, and on Windows the
bridge's nc was nc.cmd: cmd.exe running mcp-server.mjs, two console
programs. When agy starts a console program with a console of its own
(CREATE_NEW_CONSOLE, or CREATE_NO_WINDOW), each dial gets a window or a
conhost.exe. Each session also made its own bin dir, and a host that
exited left its parked agy's cmd/bun children and its workspace dirs
behind.
- Under Bun (magpie's runtime), nc is now a GUI-subsystem nc.exe that
Bun builds from mcp-server.mjs on the user's own machine (`bun build
--compile --windows-hide-console`, ~0.3s on the test box). A GUI exe
gets no console under any creation flags, and it still talks over the
stdio pipes agy hands it. Nothing prebuilt ships. It lives in
%TEMP%\magpie-agy-bridge-nc-<hash of runtime, Bun version and server
source>, so every session and every later host reuses one build. A dir
no host has used for a week, or a half-done build dir older than an
hour, is swept. If the build fails, or the runtime isn't Bun (e.g.
opencode.exe), nc.cmd is used as before.
- At exit on Windows one `taskkill /T /F` ends every live agy with its
tree (cmd, nc). The workspace rm retries while the just-killed
processes let go of their cwd. Only a shim dir this host made is
removed; the shared nc.exe dir stays.
Run on Windows 11 (build 26200, xiaomi-gpu), Bun 1.4.2. A fake agy (Go)
answers ACP and dials `nc 127.0.0.1 <port>` 3 times per session, with
CreationFlags none, CREATE_NO_WINDOW or CREATE_NEW_CONSOLE. 4 sessions
per run, all 12 dials answered in every run below. conhost counts are
those under the host after 4 sessions, while agy is parked:
old, none: 5 conhost; agy 4, cmd 4, bun 4; 4 workspace dirs leaked
old, nowindow: 9 conhost (+2 per session); same leak
old, newconsole: 9 conhost (+2 per session); same leak
new, none / nowindow / newconsole: 5 conhost (the parked agy's own);
agy 4, nc.exe 4, no cmd, no bun; one magpie-agy-bridge-nc-<hash>
dir, nothing else left in TEMP after exit
new, idle eviction (3s): back to 1 conhost, no agy/nc left
new, host hard-killed: no agy/nc left; the 4 workspace dirs stay (no
code runs after a hard kill; the same on old, which also leaks its
bin dir)
old, DETACHED_PROCESS: the dial never answers (agy start times out),
so that isn't what the reported agy does.
The system-wide conhost count was 1 before and after every run.
Tests: test/windows-nc.mjs (6 tests, on any OS through the kit's
platform, execPath and versions overrides): the build command, the
shared dir built once and reused by a later host, no nc.cmd, the
nc.cmd fallback, the one-run tree kill at exit and which dirs it
removes.
Run at this tree on mica (Bun 1.4.2, temp HOME): bun test
packages/agy-cli 15 pass 0 fail; bun scripts/check.mjs exit 0.
On the Windows box: 14 pass, 1 fail. The red is smoke.mjs's "no call to
the loaded tool reaches agy's validator in the old prompt". It fails the
same way at origin/main
|
||
|
|
0f0c4ec68f |
agy-cli: Antigravity on the local agy CLI over ACP (#785)
New package `@magpie-community/opencode-agy-cli-auth` (provider `agy-cli`, `packages/agy-cli`). It serves Antigravity models through the user's installed `agy` CLI over ACP (`agy acp`) and uses agy's own Google sign-in. The plugin reads and writes no Google tokens. The bridge is gitxm's. On top of it, after review: - **ACP identity.** The client names itself (`opencode-agy-cli-auth` and its package version) instead of `zed`. - **Catalog.** - Only what agy offers this client is listed: Gemini until a session says more, then the session's model option and `availableModels`. - Requests are still routed by everything `agy models` lists. - **Prompt.** agy keeps its own system prompt by default. The minimal agent is opt-in with `AGY_BRIDGE_MINIMAL_AGENT=1`, and the README says what turning it on sends upstream. - **Version check.** agy older than 1.4.12 is refused at the handshake. 1.4.12 is the oldest version the `nc` MCP bridge was checked on, and the README documents the bridge. - **Auto-update.** - `AGY_CLI_DISABLE_AUTO_UPDATE` defaults to `true` only for the plugin's own agy processes. - A value the user set is passed on as written. - **Docs.** The READMEs and the registry summary say how this differs from antigravity-acp (#87). - **Tests.** The author's tests came over under `test/` with a fake agy (an ACP stdio server). Each suite runs in its own `bun test`, and a `mock.module` preload stands in for `node:child_process`. - **Cleanup.** A duplicate, unreachable image branch in validateBody is gone. Run at ae5eafb0 on mote (macOS) with HOME=$(mktemp -d): - `bun test packages/agy-cli`: 7 pass. Per suite: - platform 14, compat 9, usage 20; - catalog 15, usage-settlement 18, repeat-batch 14; - smoke ALL OK (301 checks). - `bun scripts/check.mjs`: all ok. - Repo-wide `bun test`: 6792 pass, 0 fail (6812 tests, 492 files). Broken by hand, and each went red: - clientInfo set back to zed; - the version check turned off; - routing limited to the listed models; - auto-update forced to true; - the minimal agent on by default. Not tried: a real agy, since mote has none, or a real Antigravity account. Co-authored-by: gitxm <21175063+gitxm@users.noreply.github.com> |