• turbo 2.10.12 • Packages in scope: @get-bb/plugin-sdk • Running test in 1 packages • Remote caching disabled, using shared worktree cache //:ensure-native-modules: cache bypass, force executing 2ca964a59e70c9ad @bb/templates:generate:plugin-scaffold: cache hit, replaying logs 3e4844d763ebda3d @bb/templates:generate:plugin-scaffold: @bb/templates:generate:plugin-scaffold: > @bb/templates@0.0.1 generate:plugin-scaffold /tmp/slopcop-5565-eNdpNP/source/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 5dd66a576ab1fa39 @bb/templates:generate:templates: @bb/templates:generate:templates: > @bb/templates@0.0.1 generate:templates /tmp/slopcop-5565-eNdpNP/source/packages/templates @bb/templates:generate:templates: > node ./scripts/generate-templates.mjs @bb/templates:generate:templates: @get-bb/plugin-sdk:build:types: cache hit, replaying logs 41a425f7bb0f5b82 @get-bb/plugin-sdk:build:types: @get-bb/plugin-sdk:build:types: > @get-bb/plugin-sdk@0.6.49 build:types /tmp/slopcop-5565-eNdpNP/source/packages/plugin-sdk @get-bb/plugin-sdk:build:types: > node scripts/build-bundled-dts.mjs @get-bb/plugin-sdk:build:types: @get-bb/plugin-sdk:build:types: Unchanged bundled-types/bb-plugin-sdk.d.ts @get-bb/plugin-sdk:build:types: Unchanged bundled-types/bb-plugin-sdk-provider-bridge.d.ts @get-bb/plugin-sdk:build:types: Unchanged bundled-types/bb-plugin-sdk-provider-bridge-testing.d.ts @get-bb/plugin-sdk:build:types: Unchanged bundled-types/bb-plugin-sdk-provider-bridge-acp.d.ts @get-bb/plugin-sdk:build:types: Unchanged bundled-types/bb-plugin-sdk-provider-bridge-acp-next.d.ts @get-bb/plugin-sdk:build:types: Unchanged bundled-types/bb-plugin-sdk-environment-provider.d.ts @get-bb/plugin-sdk:build:types: Unchanged bundled-types/bb-plugin-sdk-machine-provider.d.ts @get-bb/plugin-sdk:build:types: Unchanged bundled-types/bb-plugin-sdk-app.d.ts @get-bb/plugin-sdk:build:types: Unchanged bundled-types/bb-plugin-sdk-host.d.ts @get-bb/plugin-sdk:build:types: Unchanged bundled-types/bb-plugin-sdk-internal-composer-customization-validation.d.ts @get-bb/plugin-sdk:build:types: Unchanged bundled-types/bb-plugin-sdk-internal-composer-handle.d.ts @get-bb/plugin-sdk:build:types: Unchanged bundled-types/bb-plugin-sdk-internal-composer-view.d.ts @get-bb/plugin-sdk:build:types: Unchanged bundled-types/bb-plugin-sdk-internal-file-navigation-validation.d.ts @get-bb/plugin-sdk:build:types: Unchanged bundled-types/bb-plugin-sdk-internal-host-policy.d.ts @get-bb/plugin-sdk:build:types: Unchanged bundled-types/bb-plugin-sdk-internal-plugin-app-collector.d.ts @get-bb/plugin-sdk:build:types: Unchanged bundled-types/bb-plugin-sdk-testing.d.ts @get-bb/plugin-sdk:build:types: Unchanged bundled-types/bb-plugin-sdk-testing-app.d.ts @get-bb/plugin-sdk:build:types: Unchanged bundled-types/bb-plugin-sdk-testing-host.d.ts //:ensure-native-modules: //:ensure-native-modules: > bb@ ensure-native-modules /tmp/slopcop-5565-eNdpNP/verify //: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 @get-bb/plugin-sdk:test: cache miss, executing 733ede8e35f3fa59 @get-bb/plugin-sdk:test: @get-bb/plugin-sdk:test: > @get-bb/plugin-sdk@0.6.49 test /tmp/slopcop-5565-eNdpNP/verify/packages/plugin-sdk @get-bb/plugin-sdk:test: > vitest run --config vitest.config.ts "src/testing/__tests__/fake-plugin-host.test.ts" "-t" "resolves conditional tools" @get-bb/plugin-sdk:test: @get-bb/plugin-sdk:test: @get-bb/plugin-sdk:test: RUN v4.1.1 /tmp/slopcop-5565-eNdpNP/verify/packages/plugin-sdk @get-bb/plugin-sdk:test: @get-bb/plugin-sdk:test: ❯ |@get-bb/plugin-sdk| src/testing/__tests__/fake-plugin-host.test.ts (97 tests | 1 failed | 96 skipped) 16ms @get-bb/plugin-sdk:test: ↓ builds complete host responses with targeted overrides @get-bb/plugin-sdk:test: ↓ derives linked dispatch identities unless explicitly overridden @get-bb/plugin-sdk:test: ↓ keeps queued messages on the dispatch context thread by default @get-bb/plugin-sdk:test: ↓ serves the configured public app URL and defaults to null @get-bb/plugin-sdk:test: ↓ settles a blocking request through the harness @get-bb/plugin-sdk:test: ↓ settles requests on abort and plugin disposal @get-bb/plugin-sdk:test: ↓ uses the production validation and error names @get-bb/plugin-sdk:test: ↓ validates typed host calls and delivers host lifecycle events @get-bb/plugin-sdk:test: ↓ uses validated current-state replacements and read-only tunnel identity @get-bb/plugin-sdk:test: ↓ kv round-trips JSON, lists by prefix sorted, and enforces the 256KB cap @get-bb/plugin-sdk:test: ↓ database() returns one shared database and migrate() is append-only by index @get-bb/plugin-sdk:test: ↓ reserves unknown legacy migration indexes @get-bb/plugin-sdk:test: ↓ database() replaces a handle the plugin closed itself, like the host @get-bb/plugin-sdk:test: ↓ resolves pre-seeded values, defaults, and type mismatches like the host @get-bb/plugin-sdk:test: ↓ setSettings validates, fires onChange with next/prev, and skips no-op updates @get-bb/plugin-sdk:test: ↓ validates strings and lets plugin server code persist its own settings @get-bb/plugin-sdk:test: ↓ rejects duplicate and invalid descriptors at define time @get-bb/plugin-sdk:test: ↓ callRpc validates and JSON-normalizes input and output @get-bb/plugin-sdk:test: ↓ matches production validation, handler, and serialization failures @get-bb/plugin-sdk:test: ↓ rejects invalid and duplicate registrations @get-bb/plugin-sdk:test: ↓ dispatches to the exact-match route with a real Hono context @get-bb/plugin-sdk:test: ↓ maps a throwing handler to the host's 500 shape @get-bb/plugin-sdk:test: ↓ adopts a structurally valid Response from another realm like the host (#1661) @get-bb/plugin-sdk:test: ↓ drives WebSocket lifecycle events and captures text and binary sends @get-bb/plugin-sdk:test: ↓ isolates WebSocket event failures and closes sessions on reload @get-bb/plugin-sdk:test: ↓ rejects a throwing WebSocket factory @get-bb/plugin-sdk:test: ↓ normalizes results and maps throws like the host @get-bb/plugin-sdk:test: ↓ mirrors production output-limit errors without truncating @get-bb/plugin-sdk:test: ↓ uses the production host's reserved CLI names @get-bb/plugin-sdk:test: ↓ rejects a duplicate registration like the production host @get-bb/plugin-sdk:test: ↓ runService starts once, exposes the AbortController, and resolves on abort @get-bb/plugin-sdk:test: ↓ treats NeedsConfigurationError (by name) as needs-configuration, not a crash @get-bb/plugin-sdk:test: ↓ validates cron expressions at registration and runs schedules on demand @get-bb/plugin-sdk:test: ↓ emits a typed thread.active payload @get-bb/plugin-sdk:test: ↓ emitThreadEvent delivers typed payloads and captures handler errors @get-bb/plugin-sdk:test: ↓ rejects unknown events at registration @get-bb/plugin-sdk:test: ↓ records calls with plugin spawn attribution and runs stubs @get-bb/plugin-sdk:test: ↓ normalizes metadata-bearing spawn and fork calls with plugin attribution @get-bb/plugin-sdk:test: ↓ defaults metadata targets, preserves explicit targets, and validates set before stubs @get-bb/plugin-sdk:test: ↓ rejects invalid spawn and fork metadata seeds without recording or sending them @get-bb/plugin-sdk:test: ↓ applies production fork attribution defaults when no metadata is seeded @get-bb/plugin-sdk:test: ↓ keeps nested plugin administration available through the backend SDK @get-bb/plugin-sdk:test: ↓ throws a stub-naming error for unstubbed methods and accepts late stubs @get-bb/plugin-sdk:test: ↓ validates zod parameters per call and executes with a default context @get-bb/plugin-sdk:test: ↓ records a tool's presentation and hands it to the provider-facing tool set @get-bb/plugin-sdk:test: ↓ lets a tool presentation name one of the plugin's own declared icons and nothing else, like production @get-bb/plugin-sdk:test: ↓ records a valid presentation normalized the way the production host stores it @get-bb/plugin-sdk:test: ↓ rejects a registration built against SDK <0.4.16 that carries experimental_presentation with the production host's message @get-bb/plugin-sdk:test: ↓ rejects a registration built against SDK <0.4.16 that carries experimental_statusLabels with the production host's message @get-bb/plugin-sdk:test: ↓ rejects a registration built against SDK <0.4.16 that carries experimental_rowStyle with the production host's message @get-bb/plugin-sdk:test: ↓ rejects recursive schemas at registration and configuration @get-bb/plugin-sdk:test: ↓ rejects duplicate keyed registrations like the production host @get-bb/plugin-sdk:test: ↓ hands configure a deep-frozen metadata copy without touching the caller's context @get-bb/plugin-sdk:test: ↓ rejects invalid fixture metadata before configure and defaults absent metadata to {} @get-bb/plugin-sdk:test: × resolves conditional tools, skills, context, and capped instructions without rebuilding registrations 15ms @get-bb/plugin-sdk:test: ↓ fails closed for unknown and duplicate configure ids @get-bb/plugin-sdk:test: ↓ reloads atomically while preserving storage and the direct harness API @get-bb/plugin-sdk:test: ↓ runs install handlers in order and isolates a throwing one @get-bb/plugin-sdk:test: ↓ aborts services, runs hooks LIFO, closes the database, and poisons the handle @get-bb/plugin-sdk:test: ↓ normalizes published payloads and records needs-configuration @get-bb/plugin-sdk:test: ↓ rejects malformed declarations with the shared host policy @get-bb/plugin-sdk:test: ↓ refuses a provider icon naming an undeclared or foreign icon, like production @get-bb/plugin-sdk:test: ↓ refuses a plugin that declares no bb.host entry, like production @get-bb/plugin-sdk:test: ↓ round-trips a registration through the harness and dispose @get-bb/plugin-sdk:test: ↓ normalizes and deeply freezes opaque provider bridge options @get-bb/plugin-sdk:test: ↓ defaults maintenance support a plugin does not declare to false @get-bb/plugin-sdk:test: ↓ clears registrations on dispose @get-bb/plugin-sdk:test: ↓ round trips validated entries with the provider context @get-bb/plugin-sdk:test: ↓ resolves environment-backed provider health only beside an env resolver @get-bb/plugin-sdk:test: ↓ fails a malformed resolver closed and rejects duplicate registration @get-bb/plugin-sdk:test: ↓ records the validated service and removes it on dispose @get-bb/plugin-sdk:test: ↓ refuses a second service with the same id @get-bb/plugin-sdk:test: ↓ accepts legacy environment declarations without presentation fields @get-bb/plugin-sdk:test: ↓ rejects invalid description (null) for concrete and composed environments @get-bb/plugin-sdk:test: ↓ rejects invalid description ("") for concrete and composed environments @get-bb/plugin-sdk:test: ↓ rejects invalid description (" ") for concrete and composed environments @get-bb/plugin-sdk:test: ↓ rejects invalid description ("xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx") for concrete and composed environments @get-bb/plugin-sdk:test: ↓ rejects invalid icon (null) for concrete and composed environments @get-bb/plugin-sdk:test: ↓ rejects invalid icon ("") for concrete and composed environments @get-bb/plugin-sdk:test: ↓ rejects invalid icon (" ") for concrete and composed environments @get-bb/plugin-sdk:test: ↓ keeps compositions separate from concrete lifecycle providers @get-bb/plugin-sdk:test: ↓ normalizes a registration and exposes it to the harness @get-bb/plugin-sdk:test: ↓ enforces environment icon ownership and rejects escaping asset paths @get-bb/plugin-sdk:test: ↓ defaults every requirement to false @get-bb/plugin-sdk:test: ↓ refuses inputs that are not a Standard Schema validator @get-bb/plugin-sdk:test: ↓ refuses a bad id or a declaration without create @get-bb/plugin-sdk:test: ↓ refuses a non-boolean requirement @get-bb/plugin-sdk:test: ↓ refuses projectless together with a project requirement @get-bb/plugin-sdk:test: ↓ refuses projectless together with projectCheckout @get-bb/plugin-sdk:test: ↓ normalizes a checkout provider that does not need git @get-bb/plugin-sdk:test: ↓ normalizes a host-scoped checkout provider @get-bb/plugin-sdk:test: ↓ accepts a machine provider without suspend and resume @get-bb/plugin-sdk:test: ↓ normalizes ephemeral machine lifecycle policy @get-bb/plugin-sdk:test: ↓ rejects empty required machine metadata: {"description":"","icon":"Terminal"} @get-bb/plugin-sdk:test: ↓ rejects empty required machine metadata: {"description":"Provision a machine.","icon":" "} @get-bb/plugin-sdk:test: ↓ requires machine suspend and resume as a pair @get-bb/plugin-sdk:test: ↓ delivers message.cancelled to a listener @get-bb/plugin-sdk:test: @get-bb/plugin-sdk:test: ⎯⎯⎯⎯⎯⎯⎯ Failed Tests 1 ⎯⎯⎯⎯⎯⎯⎯ @get-bb/plugin-sdk:test: @get-bb/plugin-sdk:test: FAIL |@get-bb/plugin-sdk| src/testing/__tests__/fake-plugin-host.test.ts > agent tools > resolves conditional tools, skills, context, and capped instructions without rebuilding registrations @get-bb/plugin-sdk:test: AssertionError: expected [] to deeply equal [ { level: 'warn', …(1) }, …(1) ] @get-bb/plugin-sdk:test: @get-bb/plugin-sdk:test: - Expected @get-bb/plugin-sdk:test: + Received @get-bb/plugin-sdk:test: @get-bb/plugin-sdk:test: - [ @get-bb/plugin-sdk:test: - { @get-bb/plugin-sdk:test: - "level": "warn", @get-bb/plugin-sdk:test: - "message": StringContaining "configure() output.instructions truncated from 5000 to 4096 characters", @get-bb/plugin-sdk:test: - }, @get-bb/plugin-sdk:test: - { @get-bb/plugin-sdk:test: - "level": "warn", @get-bb/plugin-sdk:test: - "message": StringContaining "configure() output.instructions truncated from 5000 to 4096 characters", @get-bb/plugin-sdk:test: - }, @get-bb/plugin-sdk:test: - ] @get-bb/plugin-sdk:test: + [] @get-bb/plugin-sdk:test: @get-bb/plugin-sdk:test: ❯ src/testing/__tests__/fake-plugin-host.test.ts:1552:32 @get-bb/plugin-sdk:test: 1550| expect(alpha.skills).toEqual(["alpha-skill"]); @get-bb/plugin-sdk:test: 1551| expect(alpha.instructions).toHaveLength(4096); @get-bb/plugin-sdk:test: 1552| expect(harness.logEntries).toEqual([ @get-bb/plugin-sdk:test: | ^ @get-bb/plugin-sdk:test: 1553| { @get-bb/plugin-sdk:test: 1554| level: "warn", @get-bb/plugin-sdk:test: @get-bb/plugin-sdk:test: ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯[1/1]⎯ @get-bb/plugin-sdk:test: @get-bb/plugin-sdk:test: @get-bb/plugin-sdk:test: Test Files 1 failed (1) @get-bb/plugin-sdk:test: Tests 1 failed | 96 skipped (97) @get-bb/plugin-sdk:test: Start at 16:17:29 @get-bb/plugin-sdk:test: Duration 2.70s (transform 2.26s, setup 0ms, import 2.49s, tests 16ms, environment 0ms) @get-bb/plugin-sdk:test: @get-bb/plugin-sdk:test:  ELIFECYCLE  Test failed. See above for more details. @get-bb/plugin-sdk#test: ERROR command (/tmp/slopcop-5565-eNdpNP/verify/packages/plugin-sdk) /usr/local/bin/pnpm run test src/testing/__tests__/fake-plugin-host.test.ts -t resolves conditional tools exited (1) Tasks: 4 successful, 5 total Cached: 3 cached, 5 total Time: 4.474s Failed: @get-bb/plugin-sdk#test ERROR run failed: command exited (1)