Files
anomalyco_opencode/packages
Kit Langton 847c408c07 refactor: migrate test inits from Promise to Effect; drop Promise variant
Converts ~60 Instance.provide({init: () => Promise}) call sites in
amazon-bedrock and provider tests to Effect-typed inits via
Effect.promise(...).pipe(Effect.asVoid). Tightens Instance.provide /
Instance.load / Instance.reload signatures to only accept
Effect.Effect<void> for init.

liftLegacyInput still wraps the Effect with ALS bind via context.provide
(through Effect.callback) so legacy code reachable through init that
reads Instance.directory etc. continues to work. The wrap is now the
single remaining bridge; once tests stop reading from ALS in init
bodies, it can be deleted.

Tests: bedrock + provider suites both pass. Pre-existing baseline
failures in session.created.test.ts and project-init-git.test.ts are
unrelated flakes (verified by running on dev's HEAD).
2026-05-02 00:23:50 -04:00
..
2026-05-01 06:13:48 +00:00
2026-05-01 06:13:48 +00:00
2026-05-01 06:13:48 +00:00