feat(agent): establish durable harness type contracts

This commit is contained in:
Mario Zechner 2026-08-11 17:43:26 +02:00
parent 40a3d8556a
commit 5aeb06bb11
78 changed files with 1211 additions and 12174 deletions

View file

@ -6,7 +6,6 @@ import {
bashExecutionToText,
convertToLlm,
createCustomMessage,
InMemorySessionRepo,
FileError,
formatPromptTemplateInvocation,
formatSkillInvocation,
@ -28,7 +27,6 @@ const stream = createAssistantMessageEventStream();
const agent = new Agent({ initialState: { model }, streamFn: streamSimple });
agent.steer({ role: "user", content: [{ type: "text", text: "queued" }], timestamp: 0 });
const repo = new InMemorySessionRepo();
const result = getOrThrow(ok({ value: 1 }));
const customMessage = createCustomMessage("note", "hello", true, undefined, "2026-01-01T00:00:00.000Z");
const llmMessages = convertToLlm([customMessage]);
@ -41,7 +39,6 @@ console.log(
schema.type,
typeof stream.push,
agent.hasQueuedMessages(),
typeof repo.create,
result.value,
llmMessages.length,
bashExecutionToText({