Harness.Test
Path:
pi-cybernetic/test/harness.test.tsRelative: test/harness.test.tsSubproject: pi-cyberneticCategory: cybernetic-testsLines: 218Bytes: 8,984Imports: 3Exports: 0has tests
Content Preview
- /**
- * End-to-end: real Agent, real hooks, mock LLM (scripted streamFn).
- * Verifies the concentric wrapper against pi-agent-core's actual loop.
- */
- import { describe, expect, test } from "bun:test";
- import { CyberneticHarness } from "../src/harness/cybernetic-harness.ts";
- import {
- deleteFileTool,
- makeAssistant,
- makeToolCall,
- mockModel,
- readFileTool,
- scriptedStreamFn,
- } from "./fixtures.ts";
- describe("CyberneticHarness end-to-end (mock LLM, real hooks)", () => {
- test("happy path: