- makeRuntime.provide reads InstanceRef from current Effect fiber when ALS is unavailable, bridging static function calls (like Bus.publish) that create new fibers from inside Effect code - Database.transaction preserves Instance ALS via Instance.bind on the bun:sqlite transaction callback (native fn loses ALS) - Instance.restore helper for bridging Effect→sync code with ALS - InstanceState.withALS bridges InstanceRef back to ALS for sync callers - prompt.ts: InstructionPrompt.clear wrapped with withALS - Remove ALL provideInstance(dir) wrappers from prompt-effect tests |
||
|---|---|---|
| .. | ||
| compaction.test.ts | ||
| instruction.test.ts | ||
| llm.test.ts | ||
| message-v2.test.ts | ||
| messages-pagination.test.ts | ||
| processor-effect.test.ts | ||
| prompt-concurrency.test.ts | ||
| prompt-effect.test.ts | ||
| prompt-provider.test.ts | ||
| prompt.test.ts | ||
| retry.test.ts | ||
| revert-compact.test.ts | ||
| session.test.ts | ||
| structured-output-integration.test.ts | ||
| structured-output.test.ts | ||
| system.test.ts | ||