fix(harness): move harness-specific output handling into the harness plugins (#1855)
This commit is contained in:
1 parent
ad9b2dee42
commit
08b7db413b
14 files changed
+129
-83
No files matched your search
@@ -657,6 +657,8 @@ export function createLauncher({
|
||||
const { manifest, ...files } = bundle.files;
|
||||
const adapter = call(model.harness, "adapter", () => harness.adapter());
|
||||
const turnEnd = call(model.harness, "turnEnd", () => harness.turnEnd());
|
||||
const outputPolicy = call(model.harness, "outputPolicy", () => harness.outputPolicy({ proxy: Boolean(sessionProxy) }));
|
||||
if (!["adapter", "non-newline-stdout", "stdout"].includes(outputPolicy)) throw new Refusal("harness-refused", "invalid harness output policy");
|
||||
const transcript = call(model.harness, "transcript", () => harness.transcript({ runDir, store }));
|
||||
const harnessMounts = call(model.harness, "mounts", () => harness.mounts({ env }));
|
||||
// Row 93: the git socket, for a role that pushes work or reviews it. Row 137: or lands it.
|
||||
@@ -688,6 +690,8 @@ export function createLauncher({
|
||||
bundle: files,
|
||||
harnessEnv,
|
||||
turnEnd,
|
||||
outputPolicy,
|
||||
outputPolicyVersion: 1,
|
||||
toolSocket,
|
||||
turnMarker,
|
||||
...(holding?.length ? { landing: holding.map(({ decision, task_ref }) => ({ decision, task_ref })) } : {}),
|
||||
|
||||
Reference in new issue
Block a user