• turbo 2.10.12 • Packages in scope: bb-plugin-provider-pi • Running test in 1 packages • Remote caching disabled, using shared worktree cache //:ensure-native-modules: cache bypass, force executing ecc089c4e847e470 @bb/plugin-build:generate: cache hit, replaying logs c2ba17c7b4194dc9 @bb/plugin-build:generate: @bb/plugin-build:generate: > @bb/plugin-build@0.0.1 generate /packages/plugin-build @bb/plugin-build:generate: > node ./scripts/generate-plugin-theme.mjs && node ./scripts/generate-runtime-export-manifest.mjs @bb/plugin-build:generate: @bb/plugin-build:generate: plugin-theme.generated.ts up to date @bb/plugin-build:generate: wrote /packages/plugin-build/src/generated/runtime-export-manifest.generated.ts (react@19.2.4) @bb/templates:generate:plugin-scaffold: cache hit, replaying logs 1ae00da0140a535f @bb/templates:generate:plugin-scaffold: @bb/templates:generate:plugin-scaffold: > @bb/templates@0.0.1 generate:plugin-scaffold /packages/templates @bb/templates:generate:plugin-scaffold: > node ./scripts/generate-plugin-scaffold.mjs @bb/templates:generate:plugin-scaffold: @bb/templates:generate:templates: cache hit, replaying logs 4bafdf2c481540f9 @bb/templates:generate:templates: @bb/templates:generate:templates: > @bb/templates@0.0.1 generate:templates /packages/templates @bb/templates:generate:templates: > node ./scripts/generate-templates.mjs @bb/templates:generate:templates: @get-bb/plugin-sdk:build: cache hit, replaying logs abedadb1b95bc8e0 @get-bb/plugin-sdk:build: @get-bb/plugin-sdk:build: > @get-bb/plugin-sdk@0.6.19 build /packages/plugin-sdk @get-bb/plugin-sdk:build: > node scripts/build-runtime.mjs @get-bb/plugin-sdk:build: @get-bb/plugin-sdk:build: Built 19 @get-bb/plugin-sdk runtime entries. //:ensure-native-modules: //:ensure-native-modules: > bb@ ensure-native-modules //:ensure-native-modules: > node scripts/ensure-native-modules.mjs //:ensure-native-modules: //:ensure-native-modules: [ensure-native-modules] Detached hardlinked better-sqlite3 binary before verification bb-plugin-provider-pi:test: cache miss, executing f46e4d04b2e85219 bb-plugin-provider-pi:test: bb-plugin-provider-pi:test: > bb-plugin-provider-pi@0.1.0 test /plugins/provider-pi bb-plugin-provider-pi:test: > vitest run --config vitest.config.ts "src/image-read.test.ts" bb-plugin-provider-pi:test: bb-plugin-provider-pi:test: bb-plugin-provider-pi:test: RUN v4.1.1 /plugins/provider-pi bb-plugin-provider-pi:test: bb-plugin-provider-pi:test: ❯ |bb-plugin-provider-pi| src/image-read.test.ts (16 tests | 3 failed) 33ms bb-plugin-provider-pi:test: × preserves the correct item shape for 'successful image read' 17ms bb-plugin-provider-pi:test: × preserves the correct item shape for 'mixed text and image without an image…' 2ms bb-plugin-provider-pi:test: ✓ preserves the correct item shape for 'text at an image path' 1ms bb-plugin-provider-pi:test: ✓ preserves the correct item shape for 'failed image read' 4ms bb-plugin-provider-pi:test: ✓ preserves the correct item shape for 'unrelated image tool' 1ms bb-plugin-provider-pi:test: ✓ preserves the correct item shape for 'missing path' 1ms bb-plugin-provider-pi:test: ✓ preserves the correct item shape for 'non-string path' 0ms bb-plugin-provider-pi:test: ✓ preserves the correct item shape for 'empty path' 0ms bb-plugin-provider-pi:test: ✓ preserves the correct item shape for 'whitespace path' 1ms bb-plugin-provider-pi:test: ✓ preserves the correct item shape for 'missing image data' 0ms bb-plugin-provider-pi:test: ✓ preserves the correct item shape for 'empty image data' 1ms bb-plugin-provider-pi:test: ✓ preserves the correct item shape for 'invalid image MIME' 0ms bb-plugin-provider-pi:test: ✓ preserves the correct item shape for 'malformed content' 0ms bb-plugin-provider-pi:test: ✓ preserves the correct item shape for 'null block' 0ms bb-plugin-provider-pi:test: × does not reuse another thread's path for overlapping tool IDs 2ms bb-plugin-provider-pi:test: ✓ keeps an image-bearing close without a start generic 0ms bb-plugin-provider-pi:test: bb-plugin-provider-pi:test: ⎯⎯⎯⎯⎯⎯⎯ Failed Tests 3 ⎯⎯⎯⎯⎯⎯⎯ bb-plugin-provider-pi:test: bb-plugin-provider-pi:test: FAIL |bb-plugin-provider-pi| src/image-read.test.ts > Pi native image read completion > preserves the correct item shape for 'successful image read' bb-plugin-provider-pi:test: AssertionError: expected { type: 'toolCall', …(5) } to deeply equal { type: 'imageView', …(2) } bb-plugin-provider-pi:test: bb-plugin-provider-pi:test: - Expected bb-plugin-provider-pi:test: + Received bb-plugin-provider-pi:test: bb-plugin-provider-pi:test: { bb-plugin-provider-pi:test: + "arguments": { bb-plugin-provider-pi:test: + "path": "/workspace/asset.png", bb-plugin-provider-pi:test: + }, bb-plugin-provider-pi:test: "id": "image-read-i1", bb-plugin-provider-pi:test: - "path": "/workspace/asset.png", bb-plugin-provider-pi:test: - "type": "imageView", bb-plugin-provider-pi:test: + "result": "[image]", bb-plugin-provider-pi:test: + "status": "completed", bb-plugin-provider-pi:test: + "tool": "read", bb-plugin-provider-pi:test: + "type": "toolCall", bb-plugin-provider-pi:test: } bb-plugin-provider-pi:test: bb-plugin-provider-pi:test: ❯ src/image-read.test.ts:120:31 bb-plugin-provider-pi:test: 118| expect(completed?.item.id).toBe(started?.item.id); bb-plugin-provider-pi:test: 119| if (scenario.imagePath !== null) { bb-plugin-provider-pi:test: 120| expect(completed?.item).toEqual({ bb-plugin-provider-pi:test: | ^ bb-plugin-provider-pi:test: 121| type: "imageView", bb-plugin-provider-pi:test: 122| id: started?.item.id, bb-plugin-provider-pi:test: bb-plugin-provider-pi:test: ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯[1/3]⎯ bb-plugin-provider-pi:test: bb-plugin-provider-pi:test: FAIL |bb-plugin-provider-pi| src/image-read.test.ts > Pi native image read completion > preserves the correct item shape for 'mixed text and image without an image…' bb-plugin-provider-pi:test: AssertionError: expected { type: 'toolCall', …(5) } to deeply equal { type: 'imageView', …(2) } bb-plugin-provider-pi:test: bb-plugin-provider-pi:test: Test Files 1 failed (1) bb-plugin-provider-pi:test: Tests 3 failed | 13 passed (16) bb-plugin-provider-pi:test: Start at 19:56:15 bb-plugin-provider-pi:test: Duration 830ms (transform 422ms, setup 0ms, import 624ms, tests 33ms, environment 0ms) bb-plugin-provider-pi:test: bb-plugin-provider-pi:test: bb-plugin-provider-pi:test: - Expected bb-plugin-provider-pi:test: + Received bb-plugin-provider-pi:test: bb-plugin-provider-pi:test: { bb-plugin-provider-pi:test: + "arguments": { bb-plugin-provider-pi:test: + "path": "/workspace/asset", bb-plugin-provider-pi:test: + }, bb-plugin-provider-pi:test: "id": "image-read-i1", bb-plugin-provider-pi:test: - "path": "/workspace/asset", bb-plugin-provider-pi:test: - "type": "imageView", bb-plugin-provider-pi:test: + "result": "scaled bb-plugin-provider-pi:test: + [image]", bb-plugin-provider-pi:test: + "status": "completed", bb-plugin-provider-pi:test: + "tool": "read", bb-plugin-provider-pi:test: + "type": "toolCall", bb-plugin-provider-pi:test: } bb-plugin-provider-pi:test: bb-plugin-provider-pi:test: ❯ src/image-read.test.ts:120:31 bb-plugin-provider-pi:test: 118| expect(completed?.item.id).toBe(started?.item.id); bb-plugin-provider-pi:test: 119| if (scenario.imagePath !== null) { bb-plugin-provider-pi:test: 120| expect(completed?.item).toEqual({ bb-plugin-provider-pi:test: | ^ bb-plugin-provider-pi:test: 121| type: "imageView", bb-plugin-provider-pi:test: 122| id: started?.item.id, bb-plugin-provider-pi:test: bb-plugin-provider-pi:test: ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯[2/3]⎯ bb-plugin-provider-pi:test: bb-plugin-provider-pi:test: FAIL |bb-plugin-provider-pi| src/image-read.test.ts > Pi native image read completion > does not reuse another thread's path for overlapping tool IDs bb-plugin-provider-pi:test: AssertionError: expected { type: 'toolCall', …(5) } to match object { type: 'imageView', …(1) } bb-plugin-provider-pi:test: (6 matching properties omitted from actual) bb-plugin-provider-pi:test: bb-plugin-provider-pi:test: - Expected bb-plugin-provider-pi:test: + Received bb-plugin-provider-pi:test: bb-plugin-provider-pi:test: { bb-plugin-provider-pi:test: - "path": "/workspace/thread-b.png", bb-plugin-provider-pi:test: - "type": "imageView", bb-plugin-provider-pi:test: + "type": "toolCall", bb-plugin-provider-pi:test: } bb-plugin-provider-pi:test: bb-plugin-provider-pi:test: ❯ src/image-read.test.ts:161:31 bb-plugin-provider-pi:test: 159| .filter((event) => event.type === "item/completed") bb-plugin-provider-pi:test: 160| .at(-1); bb-plugin-provider-pi:test: 161| expect(completed?.item).toMatchObject({ bb-plugin-provider-pi:test: | ^ bb-plugin-provider-pi:test: 162| type: "imageView", bb-plugin-provider-pi:test: 163| path: `/workspace/${threadId}.png`, bb-plugin-provider-pi:test: bb-plugin-provider-pi:test: ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯[3/3]⎯ bb-plugin-provider-pi:test: bb-plugin-provider-pi:test:  ELIFECYCLE  Test failed. See above for more details. bb-plugin-provider-pi#test: ERROR command (/plugins/provider-pi) /usr/local/bin/pnpm run test src/image-read.test.ts exited (1) Tasks: 5 successful, 6 total Cached: 4 cached, 6 total Time: 2.374s Failed: bb-plugin-provider-pi#test ERROR run failed: command exited (1)