Harness.Test

pi-cybernetictesttypescript
Path: pi-cybernetic/test/harness.test.tsRelative: test/harness.test.tsSubproject: pi-cyberneticCategory: cybernetic-tests
Lines: 218Bytes: 8,984Imports: 3Exports: 0has tests

Content Preview

  1. /**
  2. * End-to-end: real Agent, real hooks, mock LLM (scripted streamFn).
  3. * Verifies the concentric wrapper against pi-agent-core's actual loop.
  4. */
  5. import { describe, expect, test } from "bun:test";
  6. import { CyberneticHarness } from "../src/harness/cybernetic-harness.ts";
  7. import {
  8. deleteFileTool,
  9. makeAssistant,
  10. makeToolCall,
  11. mockModel,
  12. readFileTool,
  13. scriptedStreamFn,
  14. } from "./fixtures.ts";
  15. describe("CyberneticHarness end-to-end (mock LLM, real hooks)", () => {
  16. test("happy path: