fathom-cli 0.2.2 → 0.2.3
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.
- package/dist/index.js +5 -4
- package/dist/index.js.map +1 -1
- package/package.json +3 -3
package/dist/index.js
CHANGED
|
@@ -17233,7 +17233,7 @@ async function executeBuildMode(mode, promptPath, state) {
|
|
|
17233
17233
|
console.log(chalk4.dim("\n Launching Claude Code..."));
|
|
17234
17234
|
console.log(chalk4.dim(` Context: ${state.featuresTotal} features, starting with ${state.buildQueue[0] ?? "queue"}`));
|
|
17235
17235
|
console.log(chalk4.dim(" " + "\u2500".repeat(50)));
|
|
17236
|
-
await launchClaude(promptPath);
|
|
17236
|
+
await launchClaude(promptPath, void 0, state.buildQueue[0]);
|
|
17237
17237
|
console.log(chalk4.dim(" " + "\u2500".repeat(50)));
|
|
17238
17238
|
console.log(chalk4.dim(" Session complete."));
|
|
17239
17239
|
updateWorkflowState({ ...state, phase: "review", lastSessionAt: (/* @__PURE__ */ new Date()).toISOString() });
|
|
@@ -17262,7 +17262,7 @@ async function executeBuildMode(mode, promptPath, state) {
|
|
|
17262
17262
|
const launchDir = existsSync6(worktreePath) ? worktreePath : process.cwd();
|
|
17263
17263
|
console.log(chalk4.dim(` Launching Claude Code in ${launchDir}...`));
|
|
17264
17264
|
console.log(chalk4.dim(" " + "\u2500".repeat(50)));
|
|
17265
|
-
await launchClaude(promptPath, launchDir);
|
|
17265
|
+
await launchClaude(promptPath, launchDir, state.buildQueue[0]);
|
|
17266
17266
|
console.log(chalk4.dim(" " + "\u2500".repeat(50)));
|
|
17267
17267
|
console.log(chalk4.dim(" Session complete."));
|
|
17268
17268
|
updateWorkflowState({ ...state, phase: "review", lastSessionAt: (/* @__PURE__ */ new Date()).toISOString() });
|
|
@@ -17282,10 +17282,11 @@ async function executeBuildMode(mode, promptPath, state) {
|
|
|
17282
17282
|
}
|
|
17283
17283
|
return false;
|
|
17284
17284
|
}
|
|
17285
|
-
function launchClaude(promptPath, cwd) {
|
|
17285
|
+
function launchClaude(promptPath, cwd, firstFeature) {
|
|
17286
17286
|
return new Promise((resolve18) => {
|
|
17287
17287
|
const promptContent = readFileSync6(promptPath, "utf-8");
|
|
17288
|
-
const
|
|
17288
|
+
const initialPrompt = firstFeature ? `Read the build context in your system prompt. Start working on feature \`${firstFeature}\` \u2014 read the spec reference, plan the implementation, and begin.` : "Read the build context in your system prompt and start working on the first feature in the priority queue.";
|
|
17289
|
+
const child = spawn("claude", ["--append-system-prompt", promptContent, initialPrompt], {
|
|
17289
17290
|
stdio: "inherit",
|
|
17290
17291
|
cwd: cwd ?? process.cwd()
|
|
17291
17292
|
});
|