feat: multi-work agent #12

Merged
StanPonomarev merged 5 commits from feat/multi-work into main 2026-09-18 10:28:03 +02:00
2 changed files with 4 additions and 2 deletions
Showing only changes of commit b90720d270 - Show all commits
+2 -1
View File
@@ -1,5 +1,6 @@
import { afterEach, expect, test } from "bun:test";
import { chmod, mkdir, mkdtemp, readFile, rm, writeFile } from "node:fs/promises";
import { tmpdir } from "node:os";
import { join } from "node:path";
import { Effect, PubSub, Schema, Stream } from "effect";
import { Agent, Model, Provider } from "@opencode/plugin";
@@ -27,7 +28,7 @@ interface LocationInstance {
admit: () => Effect.Effect<void[]>;
}
const scenario = async () => {
const directory = await mkdtemp("/tmp/opencode/composite-");
const directory = await mkdtemp(join(tmpdir(), "composite-"));
directories.push(directory);
const root = join(directory, "root");
const destination = join(directory, "child");
+2 -1
View File
@@ -1,5 +1,6 @@
import { afterEach, expect, test } from "bun:test";
import { mkdir, mkdtemp, rm } from "node:fs/promises";
import { tmpdir } from "node:os";
import { join } from "node:path";
import { command, Herdr } from "../src/herdr.js";
@@ -10,7 +11,7 @@ afterEach(async () => {
});
async function fixture() {
const temporary = await mkdtemp("/tmp/opencode/multi-work-");
const temporary = await mkdtemp(join(tmpdir(), "multi-work-"));
directories.push(temporary);
const root = join(temporary, "root");
const destination = join(temporary, "returned checkout");