yaml-flow 5.4.0 → 5.4.2

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.
@@ -342,7 +342,7 @@ export function createExampleBoardServerRuntime(options = {}) {
342
342
  const tmpSurfaceDir = path.resolve(
343
343
  options.tmpSurfaceDir || process.env.DEMO_SURFACE_DIR || path.join(os.tmpdir(), 'board-live-cards-demo-surface')
344
344
  );
345
- const tmpCardsDir = path.join(tmpSurfaceDir, 'tmp-cards');
345
+ const tmpCardsDir = cardsDir;
346
346
  const runtimeOutDir = path.resolve(
347
347
  options.runtimeOutDir || process.env.DEMO_RUNTIME_OUT_DIR || path.join(os.tmpdir(), 'board-live-cards-demo-runtime-out')
348
348
  );
@@ -385,7 +385,7 @@ export function createExampleBoardServerRuntime(options = {}) {
385
385
  const gandalfCardsDir = options.gandalfCardsDir ? path.resolve(options.gandalfCardsDir) : null;
386
386
  const gandalfRuntimeDir = path.resolve(options.gandalfRuntimeDir || path.join(path.dirname(boardDir), 'gandalf-runtime'));
387
387
  const gandalfRuntimeOutDir = path.resolve(options.gandalfRuntimeOutDir || path.join(path.dirname(boardDir), 'gandalf-runtime-out'));
388
- const tmpGandalfCardsDir = path.join(tmpSurfaceDir, 'tmp-gandalf-cards');
388
+ const tmpGandalfCardsDir = gandalfCardsDir;
389
389
  const gandalfInventoryFile = path.join(gandalfRuntimeDir, 'cards-inventory.jsonl');
390
390
  const gandalfBoardFile = path.join(gandalfRuntimeDir, 'board-graph.json');
391
391
  const gandalfStatusSnapshotFile = path.join(gandalfRuntimeOutDir, 'board-livegraph-status.json');
@@ -1561,14 +1561,12 @@ export function createExampleBoardServerRuntime(options = {}) {
1561
1561
  corsHeaders,
1562
1562
  boardDir,
1563
1563
  tmpSurfaceDir,
1564
- tmpCardsDir,
1565
1564
  runtimeOutDir,
1566
1565
  parseUrl,
1567
1566
  json,
1568
1567
  runCli,
1569
1568
  cardsDir,
1570
1569
  gandalfCardsDir,
1571
- tmpGandalfCardsDir,
1572
1570
  buildPublishedRuntimePayload,
1573
1571
  handleRuntimeApi,
1574
1572
  clearChatRecords,
@@ -124,18 +124,12 @@
124
124
  const p = params && typeof params === 'object' ? params : {};
125
125
  const boardId = String(p.boardId || 'default');
126
126
  const taskExecutorPath = typeof p.taskExecutorPath === 'string' ? p.taskExecutorPath.trim() : '';
127
- const runDemoSetup = p.runDemoSetup !== false;
128
127
  const mode = String(p.mode || currentMode || 'board');
129
128
  const rootEl = p.rootElement;
130
129
  if (!rootEl) throw new Error('bootstrapBoard requires params.rootElement');
131
130
 
132
131
  const paths = boardPaths(boardId);
133
132
 
134
- if (runDemoSetup) {
135
- const setup = await fetchServer(paths.demoSetup);
136
- if (!setup.ok) throw new Error(`Server demo-setup failed (${setup.status}).`);
137
- }
138
-
139
133
  const initBoardPath = taskExecutorPath
140
134
  ? `${paths.initBoard}?taskExecutorPath=${encodeURIComponent(taskExecutorPath)}`
141
135
  : paths.initBoard;
@@ -9851,15 +9851,21 @@ function shouldSuppressSpawn() {
9851
9851
  return process.env.BOARD_LIVE_CARDS_NO_SPAWN === "1";
9852
9852
  }
9853
9853
  function getCliInvocationPath(cliDir) {
9854
- const jsPath = path7__namespace.join(cliDir, "board-live-cards-cli.js");
9855
- if (fs7__namespace.existsSync(jsPath)) {
9856
- return { cmd: process.execPath, args: [jsPath] };
9857
- }
9858
9854
  const tsPath = path7__namespace.join(cliDir, "board-live-cards-cli.ts");
9859
- const localTsx = path7__namespace.join(cliDir, "..", "..", "node_modules", ".bin", "tsx");
9855
+ const localTsxBin = path7__namespace.join(cliDir, "..", "..", "node_modules", ".bin", "tsx");
9856
+ const localTsxMjs = path7__namespace.join(cliDir, "..", "..", "node_modules", "tsx", "dist", "cli.mjs");
9857
+ const localTsx = fs7__namespace.existsSync(localTsxMjs) ? localTsxMjs : localTsxBin;
9860
9858
  if (fs7__namespace.existsSync(tsPath) && fs7__namespace.existsSync(localTsx)) {
9861
9859
  return { cmd: process.execPath, args: [localTsx, tsPath] };
9862
9860
  }
9861
+ const distJsPath = path7__namespace.join(cliDir, "dist", "cli", "board-live-cards-cli.js");
9862
+ if (fs7__namespace.existsSync(distJsPath)) {
9863
+ return { cmd: process.execPath, args: [distJsPath] };
9864
+ }
9865
+ const jsPath = path7__namespace.join(cliDir, "board-live-cards-cli.js");
9866
+ if (fs7__namespace.existsSync(jsPath)) {
9867
+ return { cmd: process.execPath, args: [jsPath] };
9868
+ }
9863
9869
  return null;
9864
9870
  }
9865
9871
  function buildCliInvocation(cliDir, command, args) {