flowviant 0.28.2 → 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.
@@ -320,9 +320,9 @@ const shortPath = (p, cwd) => {
320
320
  };
321
321
 
322
322
  // Turn one Claude tool_use into a compact activity {kind, label}, or null for
323
- // tools not worth surfacing. `kind:'read'` is what the file counter counts;
324
- // an emit_wiki_node flips the phase to "writing". Used by wiki turns to stream
325
- // exactly which files Claude is touching (daemon console + app cover).
323
+ // tools not worth surfacing. `kind:'read'` is what the file counter counts; a
324
+ // Write/Edit of a vault page is the "writing" signal. Used by wiki turns to
325
+ // stream exactly which files Claude is touching (daemon console + app cover).
326
326
  export function humanizeToolUse(name, input = {}, cwd = '') {
327
327
  switch (name) {
328
328
  case 'Read':
@@ -348,10 +348,6 @@ export function humanizeToolUse(name, input = {}, cwd = '') {
348
348
  case 'Bash':
349
349
  return { kind: 'bash', label: `$ ${String(input.command ?? '').replace(/\s+/g, ' ').slice(0, 60)}` };
350
350
  default:
351
- if (typeof name !== 'string') return null;
352
- if (name.includes('emit_wiki_node')) return { kind: 'write', label: `+ node ${input.id ?? ''}` };
353
- if (name.includes('finish_wiki_generation')) return { kind: 'write', label: 'finalize wiki' };
354
- if (name.includes('list_wiki_nodes')) return { kind: 'mcp', label: 'list wiki nodes' };
355
351
  return null; // other tools: silent
356
352
  }
357
353
  }
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
- const vaultDir = vaultDirFor();
534
- ensureVault(vaultDir);
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.2",
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": {