flowviant 0.28.3 → 0.28.4
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/bin/lib/fleet.mjs +21 -2
- package/package.json +1 -1
package/bin/lib/fleet.mjs
CHANGED
|
@@ -270,6 +270,14 @@ export async function runFleetDaemon() {
|
|
|
270
270
|
teardown();
|
|
271
271
|
process.exit(130);
|
|
272
272
|
});
|
|
273
|
+
// Keep the daemon alive on a stray rejection. Many loops here are fire-and-
|
|
274
|
+
// forget (`void drainWiki()`, dispatch, sync) and rely on their callees never
|
|
275
|
+
// rejecting; Node ≥15 terminates the process on an unhandled rejection, which
|
|
276
|
+
// would kill every in-flight agent worker over one transient error. Log and
|
|
277
|
+
// survive instead — a wedged sub-task self-heals on the next poll.
|
|
278
|
+
process.on('unhandledRejection', (reason) => {
|
|
279
|
+
warn(`unhandled rejection (daemon kept alive): ${reason?.stack || reason}`);
|
|
280
|
+
});
|
|
273
281
|
|
|
274
282
|
// Merge jobs (Flowvy-commanded): approved PRs to squash-merge to main on the
|
|
275
283
|
// user's own gh. `merging` guards against re-processing a job mid-flight.
|
|
@@ -530,8 +538,19 @@ export async function runFleetDaemon() {
|
|
|
530
538
|
// The vault is plain files — the turn needs no MCP server and no
|
|
531
539
|
// cartographer token; the daemon itself syncs afterwards on the fleet
|
|
532
540
|
// credential.
|
|
533
|
-
|
|
534
|
-
|
|
541
|
+
// Guard the mkdir: this runs OUTSIDE the per-task try below, so an
|
|
542
|
+
// ENOSPC/EACCES here (disk full is an anticipated prod condition —
|
|
543
|
+
// worktrees + vault history grow) would escape drainWiki as an unhandled
|
|
544
|
+
// rejection and take down the whole daemon mid-work. Skip this sweep on
|
|
545
|
+
// failure instead.
|
|
546
|
+
let vaultDir;
|
|
547
|
+
try {
|
|
548
|
+
vaultDir = vaultDirFor();
|
|
549
|
+
ensureVault(vaultDir);
|
|
550
|
+
} catch (e) {
|
|
551
|
+
warn(`wiki sweep skipped — vault dir unavailable: ${e?.message || e}`);
|
|
552
|
+
continue;
|
|
553
|
+
}
|
|
535
554
|
// Live progress for this turn: a rolling FEED of everything Claude does
|
|
536
555
|
// (thinking, narration, reads, node writes), the file count, and the
|
|
537
556
|
// phase — streamed to the app (throttled; each frame carries the whole
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "flowviant",
|
|
3
|
-
"version": "0.28.
|
|
3
|
+
"version": "0.28.4",
|
|
4
4
|
"description": "Run your own Claude Code as headless build agents for Flowviant — on your own credentials. Claims dispatched work, opens PRs, captures review evidence, and routes questions back to you.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|