mainflow 0.29.0-alpha.1 → 0.30.0-alpha.1

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.
@@ -1,8 +1,8 @@
1
- import { A as attributeTrace, C as transcriptPath, G as loadHub, J as linksInto, K as dependencyGraph, M as transcriptTitle, S as readSession, Y as refIndex, a as openInApp, at as ConflictError, et as readYaml, h as setArchivedMany, j as traceTranscript, m as ARCHIVE_KINDS, ot as DATA_DIR, q as mainlineEdges, st as WriteError, x as loadSessions } from "./host-BJnrv8xF.js";
2
- import { j as configSchema } from "./dist-BbamrIPW.js";
1
+ import { j as configSchema } from "./dist-IdbnCDqM.js";
2
+ import { A as attributeTrace, C as transcriptPath, G as linksInto, H as loadHub, K as refIndex, M as transcriptTitle, S as readSession, U as dependencyGraph, W as mainlineEdges, Z as readYaml, a as openInApp, at as ConflictError, h as setArchivedMany, j as traceTranscript, m as ARCHIVE_KINDS, ot as DATA_DIR, st as WriteError, x as loadSessions } from "./host-DmVNYRql.js";
3
3
  import { t as listProgress } from "./progress-1BfPg2zN.js";
4
- import { a as remoteMode, b as isSynced, g as readDaemon, m as callDaemon, n as hubWriter, p as DaemonUnavailable, r as writtenLines, x as syncPaths, y as SYNC_DIR } from "./operation-Bp4U2bx3.js";
5
- import { l as CLI_VERSION } from "./launch-DefacJEL.js";
4
+ import { a as remoteMode, b as isSynced, g as readDaemon, m as callDaemon, n as hubWriter, p as DaemonUnavailable, r as writtenLines, x as syncPaths, y as SYNC_DIR } from "./operation-BQiUL0eq.js";
5
+ import { l as CLI_VERSION } from "./launch-DHug6eli.js";
6
6
  import { createRequire } from "node:module";
7
7
  import { closeSync, existsSync, lstatSync, openSync, readFileSync, readSync, realpathSync, statSync, watch } from "node:fs";
8
8
  import { basename, dirname, extname, join, normalize, relative, resolve, sep } from "node:path";
@@ -363,14 +363,19 @@ function readNotices(root) {
363
363
  function parseWarn(line) {
364
364
  if (!line.trim()) return null;
365
365
  try {
366
- const { at, level, kind, path, message, saved } = JSON.parse(line);
366
+ const { at, level, kind, path, message, saved, renumbered } = JSON.parse(line);
367
367
  if (level !== "warn" || typeof at !== "string" || typeof kind !== "string" || typeof message !== "string") return null;
368
+ const ids = Array.isArray(renumbered) ? renumbered.filter((r) => typeof r?.from === "string" && typeof r?.to === "string") : [];
368
369
  return {
369
370
  at,
370
371
  kind,
371
372
  path: typeof path === "string" ? path : "",
372
373
  message,
373
- ...typeof saved === "string" ? { saved } : {}
374
+ ...typeof saved === "string" ? { saved } : {},
375
+ ...ids.length ? { renumbered: ids.map(({ from, to }) => ({
376
+ from,
377
+ to
378
+ })) } : {}
374
379
  };
375
380
  } catch {
376
381
  return null;
@@ -533,11 +538,11 @@ function servedHubs(root) {
533
538
  available: false,
534
539
  reason: `${path} holds hub "${found.hub}"`
535
540
  };
536
- if (found.formatVersion !== 2) return {
541
+ if (found.formatVersion !== 3) return {
537
542
  name,
538
543
  base,
539
544
  available: false,
540
- reason: `format ${found.formatVersion}; this mainflow reads format 2`
545
+ reason: `format ${found.formatVersion}; this mainflow reads format 3`
541
546
  };
542
547
  } catch (error) {
543
548
  return {