refactor(lifecycle): bootstrap as pure orchestration (#25510)

This commit is contained in:
Kit Langton
2026-05-02 22:26:54 -04:00
committed by GitHub
parent a6cadba814
commit ad05a46d74
4 changed files with 41 additions and 14 deletions

View File

@@ -1,4 +1,5 @@
import { describe, expect, test } from "bun:test"
import { Bus } from "@/bus"
import { Project } from "@/project/project"
import * as Log from "@opencode-ai/core/util/log"
import { $ } from "bun"
@@ -63,6 +64,7 @@ function mockGitFailure(failArg: string) {
function projectLayerWithFailure(failArg: string) {
return Project.layer.pipe(
Layer.provide(mockGitFailure(failArg)),
Layer.provide(Bus.defaultLayer),
Layer.provide(AppFileSystem.defaultLayer),
Layer.provide(NodePath.layer),
)