fly-to-moon 0.1.15 → 0.1.16
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/cli.mjs +7 -3
- package/package.json +1 -1
package/dist/cli.mjs
CHANGED
|
@@ -2340,7 +2340,10 @@ var Orchestrator = class extends EventEmitter {
|
|
|
2340
2340
|
}
|
|
2341
2341
|
recordFailure(notesSummary, recordSummary, learnings) {
|
|
2342
2342
|
appendNotes(this.runInfo.notesPath, this.state.currentIteration, notesSummary, [], learnings);
|
|
2343
|
-
|
|
2343
|
+
if (this.limits.commitAll) {
|
|
2344
|
+
commitAll(`fttm #${this.state.currentIteration}: [FAILED] ${recordSummary}`, this.cwd);
|
|
2345
|
+
this.state.commitCount = getBranchCommitCount(this.runInfo.baseCommit, this.cwd);
|
|
2346
|
+
} else resetHard(this.cwd);
|
|
2344
2347
|
this.state.failCount++;
|
|
2345
2348
|
this.state.consecutiveFailures++;
|
|
2346
2349
|
return {
|
|
@@ -3228,7 +3231,7 @@ function readReexecStdinPrompt(env) {
|
|
|
3228
3231
|
}
|
|
3229
3232
|
}
|
|
3230
3233
|
const program = new Command();
|
|
3231
|
-
program.name("fttm").description("Fly to the moon, fly to the mars - AI agents for humans").version(packageVersion).argument("[prompt]", "The objective for the coding agent").option("--agent <agent>", "Agent to use (claude, codex, rovodev, or opencode)").option("--model <model>", "Model to use (e.g., opencode/claude-sonnet-4-6, minimax-m2.7)").option("--max-iterations <n>", "Abort after N total iterations", parseNonNegativeInteger).option("--detach", "Run in background (default: false, use with --max-iterations for true daemon mode)", false).option("--max-tokens <n>", "Abort after N total input+output tokens", parseNonNegativeInteger).option("--prevent-sleep <mode>", "Prevent system sleep during the run (\"on\" or \"off\")", parseOnOffBoolean).option("--mock", "", false).action(async (promptArg, options) => {
|
|
3234
|
+
program.name("fttm").description("Fly to the moon, fly to the mars - AI agents for humans").version(packageVersion).argument("[prompt]", "The objective for the coding agent").option("--agent <agent>", "Agent to use (claude, codex, rovodev, or opencode)").option("--model <model>", "Model to use (e.g., opencode/claude-sonnet-4-6, minimax-m2.7)").option("--max-iterations <n>", "Abort after N total iterations", parseNonNegativeInteger).option("--detach", "Run in background (default: false, use with --max-iterations for true daemon mode)", false).option("--max-tokens <n>", "Abort after N total input+output tokens", parseNonNegativeInteger).option("--prevent-sleep <mode>", "Prevent system sleep during the run (\"on\" or \"off\")", parseOnOffBoolean).option("--commit", "Commit all iterations including failed ones (default: only commit successful iterations)", false).option("--mock", "", false).action(async (promptArg, options) => {
|
|
3232
3235
|
if (options.mock) {
|
|
3233
3236
|
const mock = new MockOrchestrator();
|
|
3234
3237
|
enterAltScreen();
|
|
@@ -3310,7 +3313,8 @@ program.name("fttm").description("Fly to the moon, fly to the mars - AI agents f
|
|
|
3310
3313
|
appendDebugLog("run:start", { args: process$1.argv.slice(2) });
|
|
3311
3314
|
const orchestrator = new Orchestrator(config, createAgent(config.agent, runInfo, config.agentPathOverride[config.agent], options.model), runInfo, prompt, cwd, startIteration, {
|
|
3312
3315
|
maxIterations: options.maxIterations,
|
|
3313
|
-
maxTokens: options.maxTokens
|
|
3316
|
+
maxTokens: options.maxTokens,
|
|
3317
|
+
commitAll: options.commit
|
|
3314
3318
|
});
|
|
3315
3319
|
let shutdownSignal = null;
|
|
3316
3320
|
enterAltScreen();
|