fifony 0.1.14-next.a724e8a → 0.1.14-next.bc6cdbf

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,4 +1,4 @@
1
- const CACHE_VERSION = "1773770745789";
1
+ const CACHE_VERSION = "1773770366697";
2
2
  const CORE_CACHE = `fifony-core-${CACHE_VERSION}`;
3
3
  const ASSET_CACHE = `fifony-assets-${CACHE_VERSION}`;
4
4
  const APP_SHELL_ROUTES = ["/kanban", "/issues", "/agents", "/providers", "/settings"];
@@ -5212,22 +5212,23 @@ async function generatePlan(title, description, config, workflowDefinition, opti
5212
5212
  const prompt = await buildPlanPrompt(title, description, fast);
5213
5213
  const tempDir = mkdtempSync2(join11(tmpdir2(), "fifony-plan-"));
5214
5214
  const promptFile = join11(tempDir, "fifony-plan-prompt.md");
5215
+ const envFile = join11(tempDir, "fifony-plan-env.sh");
5215
5216
  writeFileSync5(promptFile, `${prompt}
5216
5217
  `, "utf8");
5218
+ writeFileSync5(envFile, [
5219
+ `export FIFONY_PROMPT_FILE=${JSON.stringify(promptFile)}`,
5220
+ `export FIFONY_AGENT_PROVIDER=${JSON.stringify(preferred)}`
5221
+ ].join("\n"), "utf8");
5222
+ const wrappedCommand = `. "${envFile}" && ${command}`;
5217
5223
  let lastProgressPersist = 0;
5218
5224
  const PROGRESS_INTERVAL_MS = 2e3;
5219
5225
  const output = await new Promise((resolve4, reject) => {
5220
5226
  let stdout2 = "";
5221
- const child = spawn4(command, {
5227
+ const child = spawn4(wrappedCommand, {
5222
5228
  shell: true,
5223
5229
  cwd: tempDir,
5224
5230
  detached: true,
5225
- stdio: ["pipe", "pipe", "pipe"],
5226
- env: {
5227
- ...process.env,
5228
- FIFONY_PROMPT_FILE: promptFile,
5229
- FIFONY_AGENT_PROVIDER: preferred
5230
- }
5231
+ stdio: ["pipe", "pipe", "pipe"]
5231
5232
  });
5232
5233
  child.unref();
5233
5234
  child.stdin?.end();
@@ -5352,20 +5353,21 @@ async function refinePlan(issue, feedback, config, workflowDefinition) {
5352
5353
  const prompt = await buildRefinePrompt(issue.title, issue.description, issue.plan, feedback);
5353
5354
  const tempDir = mkdtempSync2(join11(tmpdir2(), "fifony-refine-"));
5354
5355
  const promptFile = join11(tempDir, "fifony-refine-prompt.md");
5356
+ const envFile = join11(tempDir, "fifony-refine-env.sh");
5355
5357
  writeFileSync5(promptFile, `${prompt}
5356
5358
  `, "utf8");
5359
+ writeFileSync5(envFile, [
5360
+ `export FIFONY_PROMPT_FILE=${JSON.stringify(promptFile)}`,
5361
+ `export FIFONY_AGENT_PROVIDER=${JSON.stringify(preferred)}`
5362
+ ].join("\n"), "utf8");
5363
+ const wrappedCommand = `. "${envFile}" && ${command}`;
5357
5364
  const output = await new Promise((resolve4, reject) => {
5358
5365
  let stdout2 = "";
5359
- const child = spawn4(command, {
5366
+ const child = spawn4(wrappedCommand, {
5360
5367
  shell: true,
5361
5368
  cwd: tempDir,
5362
5369
  detached: true,
5363
- stdio: ["pipe", "pipe", "pipe"],
5364
- env: {
5365
- ...process.env,
5366
- FIFONY_PROMPT_FILE: promptFile,
5367
- FIFONY_AGENT_PROVIDER: preferred
5368
- }
5370
+ stdio: ["pipe", "pipe", "pipe"]
5369
5371
  });
5370
5372
  child.unref();
5371
5373
  child.stdin?.end();