feat: package Pi extensions as Bun workspaces
This commit is contained in:
@@ -58,7 +58,7 @@ test("artifact transcript keeps the initial prompt, marker, and newest entries",
|
||||
});
|
||||
|
||||
test("live artifact persistence includes current agents and transcripts", () => {
|
||||
const directory = mkdtempSync(join(tmpdir(), "pi-workflow-artifacts-"));
|
||||
const directory = mkdtempSync(join(tmpdir(), "workflow-artifacts-"));
|
||||
try {
|
||||
const details = workflowDetails();
|
||||
details.agents.push({
|
||||
|
||||
@@ -226,7 +226,7 @@ function run(source, argsJson) {
|
||||
};
|
||||
|
||||
const context = vm.createContext(sandbox, {
|
||||
name: "pi-workflow",
|
||||
name: "workflow",
|
||||
codeGeneration: { strings: false, wasm: false },
|
||||
});
|
||||
new vm.Script(BOOTSTRAP, {
|
||||
|
||||
@@ -27,7 +27,7 @@ test("safeStringify handles cycles, bigint, depth, and size", () => {
|
||||
});
|
||||
|
||||
test("atomic writes leave complete readable content", () => {
|
||||
const directory = mkdtempSync(join(tmpdir(), "pi-workflow-test-"));
|
||||
const directory = mkdtempSync(join(tmpdir(), "workflow-test-"));
|
||||
try {
|
||||
const file = join(directory, "artifact.json");
|
||||
writeFileAtomic(file, '{"value":1}');
|
||||
|
||||
Reference in New Issue
Block a user