mainflow 0.29.0 → 0.30.0
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.js +11 -7
- package/dist/{dist-BbamrIPW.js → dist-IdbnCDqM.js} +24 -4
- package/dist/facts.d.ts +1 -1
- package/dist/facts.js +1 -1
- package/dist/grant-commands.d.ts +1 -1
- package/dist/grant-commands.js +1 -1
- package/dist/hooks.d.ts +4 -4
- package/dist/hooks.js +3 -3
- package/dist/{host-BJnrv8xF.js → host-DmVNYRql.js} +135 -135
- package/dist/host.js +1 -1
- package/dist/{index-DV6Gqu8K.d.ts → index-ihgXABQc.d.ts} +1 -1
- package/dist/{launch-DefacJEL.js → launch-DHug6eli.js} +2 -2
- package/dist/launch.js +1 -1
- package/dist/native/mainflow-swap-darwin-arm64 +0 -0
- package/dist/native/mainflow-swap-darwin-x64 +0 -0
- package/dist/native/mainflow-swap-linux-arm64 +0 -0
- package/dist/native/mainflow-swap-linux-x64 +0 -0
- package/dist/{operation-Bp4U2bx3.js → operation-BQiUL0eq.js} +1103 -475
- package/dist/{ui-CiapFoik.js → ui-BqRmaHXn.js} +13 -8
- package/dist/web/assets/{index-tAb99n75.js → index-DLLPsiVq.js} +29 -29
- package/dist/web/index.html +1 -1
- package/package.json +1 -1
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { j as
|
|
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-
|
|
5
|
-
import { l as CLI_VERSION } from "./launch-
|
|
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 !==
|
|
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
|
|
545
|
+
reason: `format ${found.formatVersion}; this mainflow reads format 3`
|
|
541
546
|
};
|
|
542
547
|
} catch (error) {
|
|
543
548
|
return {
|