Forked from OpenCode v1.17.4 with multi-agent system: - 5 agents: aircoding, scheduler, worker, architect, reviewer - Deterministic DAG scheduling engine (coordinator_tick) - Tool whitelists as hard enforcement - AirCoding validation plugin - V1 requirements: C4 docs, ADR, AGENTS.md, debug-log.md - Design documents in docs/
12 lines
440 B
TypeScript
12 lines
440 B
TypeScript
import { describe, expect, test } from "bun:test"
|
|
|
|
describe("tui attach", () => {
|
|
test("loads the TUI integration lazily", async () => {
|
|
const source = await Bun.file(new URL("../../../src/cli/cmd/attach.ts", import.meta.url)).text()
|
|
|
|
expect(source).toContain('await import("../tui/layer")')
|
|
expect(source).toMatch(/await import\(["']@\/plugin\/tui\/runtime["']\)/)
|
|
expect(source).not.toContain('import("./app")')
|
|
})
|
|
})
|