Add a harness
Adapters live in this package. Loading one from your own code is not supported yet.
- Add
src/harnesses/<id>.tswhose default export has the five fields of theHarnesstype insrc/harnesses/shared.ts:id,bin,authFiles,invocation,parse. Declare the stream events thatparsereads as a type in the same file. - In
invocation, load a plugin subject the way the harness loads a local plugin (pluginDir), copy a skills subject to where the harness discovers a user’s skills (placeSkills), and point the harness’s own config variables intohome. Returnsetupcommands when the harness has to install the plugin before it runs. Whensubjectisnull, load nothing. The judge and thenonebaseline run that way. - Pass the prompt so that a leading dash cannot be read as a flag: after a
--separator, or instdinwhen the CLI has no separator. Confirm it against the real CLI. - In
parse, normalize the stream and nothing more. Returnnullfor a field the harness does not report. Put only a tool call’s input intoolCalls, never its output, or file contents will count as skill loads. Build each tool call withtoolCalland a table from the harness’s tool names to the kinds under Tool checks. - Add the adapter to
HARNESSESinsrc/harnesses/index.tsat its place in the preference order. - Capture one real stream into
test/fixtures/and add it tosrc/adapters.test.ts. Add the harness to the table of skill locations insrc/invocation.test.ts, and add a row to every table in How each harness is started and What was verified and to the table of skill locations under Subjects.