fly-to-moon 0.1.21 → 0.1.22
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 +4 -1
- package/package.json +1 -1
package/dist/cli.mjs
CHANGED
|
@@ -2331,6 +2331,7 @@ var Orchestrator = class extends EventEmitter {
|
|
|
2331
2331
|
failCount: 0,
|
|
2332
2332
|
consecutiveFailures: 0,
|
|
2333
2333
|
startTime: /* @__PURE__ */ new Date(),
|
|
2334
|
+
endTime: null,
|
|
2334
2335
|
waitingUntil: null,
|
|
2335
2336
|
lastMessage: null
|
|
2336
2337
|
};
|
|
@@ -2382,6 +2383,7 @@ var Orchestrator = class extends EventEmitter {
|
|
|
2382
2383
|
} else await this.closeAgent();
|
|
2383
2384
|
resetHard(this.cwd);
|
|
2384
2385
|
this.state.status = "stopped";
|
|
2386
|
+
this.state.endTime = /* @__PURE__ */ new Date();
|
|
2385
2387
|
this.emit("state", this.getState());
|
|
2386
2388
|
this.emit("stopped");
|
|
2387
2389
|
})();
|
|
@@ -2613,6 +2615,7 @@ var Orchestrator = class extends EventEmitter {
|
|
|
2613
2615
|
}
|
|
2614
2616
|
abort(reason) {
|
|
2615
2617
|
this.state.status = "aborted";
|
|
2618
|
+
this.state.endTime = /* @__PURE__ */ new Date();
|
|
2616
2619
|
this.state.lastMessage = reason;
|
|
2617
2620
|
this.state.waitingUntil = null;
|
|
2618
2621
|
appendDebugLog("orchestrator:abort", {
|
|
@@ -3241,7 +3244,7 @@ function buildContentCells(prompt, agentName, modelName, state, elapsed, now, av
|
|
|
3241
3244
|
return rows;
|
|
3242
3245
|
}
|
|
3243
3246
|
function buildFrameCells(prompt, agentName, modelName, state, topStars, bottomStars, sideStars, now, terminalWidth, terminalHeight) {
|
|
3244
|
-
const elapsed = formatElapsed(now - state.startTime.getTime());
|
|
3247
|
+
const elapsed = formatElapsed((state.endTime?.getTime() ?? now) - state.startTime.getTime());
|
|
3245
3248
|
const availableHeight = Math.max(0, terminalHeight - 2);
|
|
3246
3249
|
const contentRows = buildContentCells(prompt, agentName, modelName, state, elapsed, now, availableHeight);
|
|
3247
3250
|
while (contentRows.length < Math.min(BASE_CONTENT_ROWS, availableHeight)) contentRows.push([]);
|