bun test v1.3.10 (30e609e0)

plugins/lfg/bin/lfg.test.ts:
33 |   test("runs lazycodex installer through npx when explicitly requested", async () => {
34 |     const fakeBin = await makeFakeNpx(0)
35 |     const result = await runLfg(["--json", "lazycodex", "install", "--run"], { PATH: `${fakeBin}:${process.env.PATH ?? ""}` })
36 | 
37 |     expect(result.exitCode).toBe(0)
38 |     expect(result.json).toMatchObject({
                             ^
error: expect(received).toMatchObject(expected)

  {
-   "executed": true,
-   "exitCode": 0,
-   "installerArgs": [
-     "lazycodex-ai",
-     "install",
-   ],
+   "adapter": {
+     "found": true,
+     "manifest": "/Users/ilseoblee/.grok/installed-plugins/0-1-0-ff47fdd7/.codex-plugin/plugin.json",
+     "mcpConfig": "/Users/ilseoblee/.grok/installed-plugins/0-1-0-ff47fdd7/.mcp.json",
+     "root": "/Users/ilseoblee/.grok/installed-plugins/0-1-0-ff47fdd7",
+     "skillsDir": "/Users/ilseoblee/.grok/installed-plugins/0-1-0-ff47fdd7/skills",
+   },
+   "adapterManifest": "/Users/ilseoblee/.grok/installed-plugins/0-1-0-ff47fdd7/.codex-plugin/plugin.json",
+   "adapterPackage": "lazycodex-ai",
+   "adapterRoot": "/Users/ilseoblee/.grok/installed-plugins/0-1-0-ff47fdd7",
+   "command": "lazycodex install",
+   "grokBuildUse": true,
    "installerCommand": "npx lazycodex-ai install",
+   "lfgIsPlugin": false,
+   "mutatesGlobalConfig": false,
    "ok": true,
-   "status": "installed",
+   "role": "lazycodex_adapter_installer",
+   "status": "planned",
+   "steps": [
+     {
+       "id": "run_npm_installer",
+       "status": "pending",
+       "text": "Run npx lazycodex-ai install.",
+     },
+     {
+       "id": "use_lazycodex_adapter",
+       "status": "pending",
+       "text": "Use lazycodex adapter from /Users/ilseoblee/.grok/installed-plugins/0-1-0-ff47fdd7 when running grok-build.",
+     },
+     {
+       "id": "verify_lazycodex_adapter",
+       "status": "pending",
+       "text": "Confirm the lazycodex adapter exposes .codex-plugin/plugin.json, .mcp.json, and skills/.",
+     },
+   ],
  }

- Expected  - 7
+ Received  + 33

      at <anonymous> (/Users/ilseoblee/workspace/linalab/lfg/plugins/lfg/bin/lfg.test.ts:38:25)
(fail) lfg CLI > runs lazycodex installer through npx when explicitly requested [26.28ms]
48 | 
49 |   test("reports npx installer failure", async () => {
50 |     const fakeBin = await makeFakeNpx(7)
51 |     const result = await runLfg(["--json", "lazycodex", "install", "--run"], { PATH: `${fakeBin}:${process.env.PATH ?? ""}` })
52 | 
53 |     expect(result.exitCode).toBe(1)
                                 ^
error: expect(received).toBe(expected)

Expected: 1
Received: 0

      at <anonymous> (/Users/ilseoblee/workspace/linalab/lfg/plugins/lfg/bin/lfg.test.ts:53:29)
(fail) lfg CLI > reports npx installer failure [20.84ms]

 0 pass
 7 filtered out
 2 fail
 3 expect() calls
Ran 2 tests across 1 file. [60.00ms]

[red-exit=1]
