char-slop/berry
multipurpose self-modifiable agentic harness
git clone https://git.t4t.associates/char-slop/berry
2c34403
main
1import { assert , assertStringIncludes } from "@std/assert" ; 2import { withDom } from "@berry/util/dom.ts" ; 3import { event } from "./event.tsx" ; 4 5Deno . test ( "subagent lifecycle events render without being mistaken for model configuration" , () => 6withDom (() => { 7const lifecycle = event ({ 8ext :"subagent" , 9event :{ type :"spawned" , conversationId :2 , task :"check the build" }, 10}); 11assertStringIncludes ( lifecycle ! . textContent ! , "spawned" ); 12assertStringIncludes ( lifecycle ! . textContent ! , "2" ); 13assert ( ! lifecycle ! . textContent ! . includes ( "check the build" )); 14 15const models = event ({ 16ext :"subagent" , 17event :{ type :"models" , models :[{ provider :"faux" , modelId :"worker" }] }, 18}); 19assertStringIncludes ( models ! . textContent ! , "faux/worker" ); 20}));