iterate on prep

This commit is contained in:
David Blass
2025-12-16 17:47:37 -05:00
parent 853746ba65
commit d074ece31b
16 changed files with 1389 additions and 365 deletions
+2 -2
View File
@@ -20,7 +20,7 @@ export const codex = agent({
executablePath: "bin/codex.js",
});
},
run: async ({ payload, mcpServers, apiKey, cliPath }) => {
run: async ({ payload, mcpServers, apiKey, cliPath, prepResults }) => {
// create config directory for codex before setting HOME
const tempHome = process.env.PULLFROG_TEMP_DIR!;
const configDir = join(tempHome, ".config", "codex");
@@ -61,7 +61,7 @@ export const codex = agent({
);
try {
const streamedTurn = await thread.runStreamed(addInstructions(payload));
const streamedTurn = await thread.runStreamed(addInstructions({ payload, prepResults }));
let finalOutput = "";
for await (const event of streamedTurn.events) {