flockbay 0.10.35 → 0.10.36

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.
@@ -3,7 +3,7 @@
3
3
  var chalk = require('chalk');
4
4
  var os = require('node:os');
5
5
  var node_crypto = require('node:crypto');
6
- var types = require('./types-Dm3ppWLz.cjs');
6
+ var types = require('./types-CwRisvq6.cjs');
7
7
  var node_child_process = require('node:child_process');
8
8
  var path = require('node:path');
9
9
  var node_readline = require('node:readline');
@@ -1317,7 +1317,7 @@ function buildDaemonSafeEnv(baseEnv, binPath) {
1317
1317
  env[pathKey] = [...prepend, ...existingParts].join(pathSep);
1318
1318
  return env;
1319
1319
  }
1320
- const __filename$1 = node_url.fileURLToPath((typeof document === 'undefined' ? require('u' + 'rl').pathToFileURL(__filename).href : (_documentCurrentScript && _documentCurrentScript.tagName.toUpperCase() === 'SCRIPT' && _documentCurrentScript.src || new URL('index-DwYaKKj_.cjs', document.baseURI).href)));
1320
+ const __filename$1 = node_url.fileURLToPath((typeof document === 'undefined' ? require('u' + 'rl').pathToFileURL(__filename).href : (_documentCurrentScript && _documentCurrentScript.tagName.toUpperCase() === 'SCRIPT' && _documentCurrentScript.src || new URL('index-BNikKvWZ.cjs', document.baseURI).href)));
1321
1321
  const __dirname$1 = path.join(__filename$1, "..");
1322
1322
  function getGlobalClaudeVersion(claudeExecutable) {
1323
1323
  try {
@@ -15549,7 +15549,7 @@ async function authAndSetupMachineIfNeeded() {
15549
15549
  process.exit(1);
15550
15550
  }
15551
15551
  try {
15552
- const { migrateUnrealMcpToFlockbayMcp } = await Promise.resolve().then(function () { return require('./migratePlugin-BlHy_whP.cjs'); });
15552
+ const { migrateUnrealMcpToFlockbayMcp } = await Promise.resolve().then(function () { return require('./migratePlugin-CRFWuUEw.cjs'); });
15553
15553
  const result = migrateUnrealMcpToFlockbayMcp({
15554
15554
  engineRoot,
15555
15555
  projectUprojectPath: project || void 0,
@@ -15688,7 +15688,7 @@ ${engineRoot}`, {
15688
15688
  } else if (subcommand === "codex") {
15689
15689
  try {
15690
15690
  await chdirToNearestUprojectRootIfPresent();
15691
- const { runCodex } = await Promise.resolve().then(function () { return require('./runCodex-BM8Orja_.cjs'); });
15691
+ const { runCodex } = await Promise.resolve().then(function () { return require('./runCodex-BluVgwt8.cjs'); });
15692
15692
  let startedBy = void 0;
15693
15693
  let sessionId = void 0;
15694
15694
  for (let i = 1; i < args.length; i++) {
@@ -15790,7 +15790,7 @@ ${engineRoot}`, {
15790
15790
  }
15791
15791
  try {
15792
15792
  await chdirToNearestUprojectRootIfPresent();
15793
- const { runGemini } = await Promise.resolve().then(function () { return require('./runGemini-CM66E2lV.cjs'); });
15793
+ const { runGemini } = await Promise.resolve().then(function () { return require('./runGemini-BIfd1bTs.cjs'); });
15794
15794
  let startedBy = void 0;
15795
15795
  let sessionId = void 0;
15796
15796
  for (let i = 1; i < args.length; i++) {
@@ -2,7 +2,7 @@ import{createRequire as _pkgrollCR}from"node:module";const require=_pkgrollCR(im
2
2
  import * as os from 'node:os';
3
3
  import os__default, { homedir } from 'node:os';
4
4
  import { randomUUID, createCipheriv, randomBytes, createHash as createHash$1 } from 'node:crypto';
5
- import { l as logger, b as projectPath, d as backoff, e as delay, R as RawJSONLinesSchema, c as configuration, f as readDaemonState, g as clearDaemonState, p as packageJson, r as readSettings, h as readCredentials, u as updateSettings, w as writeCredentials, j as unrealMcpPythonDir, k as acquireDaemonLock, m as writeDaemonState, n as ApiMachineClient, o as releaseDaemonLock, s as sendUnrealMcpTcpCommand, A as ApiClient, v as validatePath, q as run, t as run$1, x as buildShellInvocation, y as clearCredentials, z as clearMachineId, i as installUnrealMcpPluginToEngine, B as buildAndInstallUnrealMcpPlugin, C as getLatestDaemonLog, D as normalizeServerUrlForNode } from './types-CA4DI_7D.mjs';
5
+ import { l as logger, b as projectPath, d as backoff, e as delay, R as RawJSONLinesSchema, c as configuration, f as readDaemonState, g as clearDaemonState, p as packageJson, r as readSettings, h as readCredentials, u as updateSettings, w as writeCredentials, j as unrealMcpPythonDir, k as acquireDaemonLock, m as writeDaemonState, n as ApiMachineClient, o as releaseDaemonLock, s as sendUnrealMcpTcpCommand, A as ApiClient, v as validatePath, q as run, t as run$1, x as buildShellInvocation, y as clearCredentials, z as clearMachineId, i as installUnrealMcpPluginToEngine, B as buildAndInstallUnrealMcpPlugin, C as getLatestDaemonLog, D as normalizeServerUrlForNode } from './types-D-KlOy1q.mjs';
6
6
  import { spawn, execFileSync, execSync } from 'node:child_process';
7
7
  import * as path from 'node:path';
8
8
  import path__default, { resolve, join, dirname } from 'node:path';
@@ -15527,7 +15527,7 @@ async function authAndSetupMachineIfNeeded() {
15527
15527
  process.exit(1);
15528
15528
  }
15529
15529
  try {
15530
- const { migrateUnrealMcpToFlockbayMcp } = await import('./migratePlugin-D12Rm64o.mjs');
15530
+ const { migrateUnrealMcpToFlockbayMcp } = await import('./migratePlugin-DtZdlmFb.mjs');
15531
15531
  const result = migrateUnrealMcpToFlockbayMcp({
15532
15532
  engineRoot,
15533
15533
  projectUprojectPath: project || void 0,
@@ -15666,7 +15666,7 @@ ${engineRoot}`, {
15666
15666
  } else if (subcommand === "codex") {
15667
15667
  try {
15668
15668
  await chdirToNearestUprojectRootIfPresent();
15669
- const { runCodex } = await import('./runCodex-B1GawdWh.mjs');
15669
+ const { runCodex } = await import('./runCodex-DsHHZkRX.mjs');
15670
15670
  let startedBy = void 0;
15671
15671
  let sessionId = void 0;
15672
15672
  for (let i = 1; i < args.length; i++) {
@@ -15768,7 +15768,7 @@ ${engineRoot}`, {
15768
15768
  }
15769
15769
  try {
15770
15770
  await chdirToNearestUprojectRootIfPresent();
15771
- const { runGemini } = await import('./runGemini-DkRnAl3E.mjs');
15771
+ const { runGemini } = await import('./runGemini-cX9eDpjD.mjs');
15772
15772
  let startedBy = void 0;
15773
15773
  let sessionId = void 0;
15774
15774
  for (let i = 1; i < args.length; i++) {
package/dist/index.cjs CHANGED
@@ -1,8 +1,8 @@
1
1
  'use strict';
2
2
 
3
3
  require('chalk');
4
- require('./index-DwYaKKj_.cjs');
5
- require('./types-Dm3ppWLz.cjs');
4
+ require('./index-BNikKvWZ.cjs');
5
+ require('./types-CwRisvq6.cjs');
6
6
  require('zod');
7
7
  require('node:child_process');
8
8
  require('node:fs');
package/dist/index.mjs CHANGED
@@ -1,6 +1,6 @@
1
1
  import 'chalk';
2
- import './index-BMs-hgAn.mjs';
3
- import './types-CA4DI_7D.mjs';
2
+ import './index-CGMEyldR.mjs';
3
+ import './types-D-KlOy1q.mjs';
4
4
  import 'zod';
5
5
  import 'node:child_process';
6
6
  import 'node:fs';
package/dist/lib.cjs CHANGED
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var types = require('./types-Dm3ppWLz.cjs');
3
+ var types = require('./types-CwRisvq6.cjs');
4
4
  require('axios');
5
5
  require('node:fs');
6
6
  require('node:os');
package/dist/lib.mjs CHANGED
@@ -1,4 +1,4 @@
1
- export { A as ApiClient, a as ApiSessionClient, R as RawJSONLinesSchema, c as configuration, l as logger } from './types-CA4DI_7D.mjs';
1
+ export { A as ApiClient, a as ApiSessionClient, R as RawJSONLinesSchema, c as configuration, l as logger } from './types-D-KlOy1q.mjs';
2
2
  import 'axios';
3
3
  import 'node:fs';
4
4
  import 'node:os';
@@ -2,7 +2,7 @@
2
2
 
3
3
  var fs = require('node:fs');
4
4
  var path = require('node:path');
5
- var types = require('./types-Dm3ppWLz.cjs');
5
+ var types = require('./types-CwRisvq6.cjs');
6
6
  require('axios');
7
7
  require('node:os');
8
8
  require('node:events');
@@ -1,6 +1,6 @@
1
1
  import fs__default from 'node:fs';
2
2
  import path__default from 'node:path';
3
- import { i as installUnrealMcpPluginToEngine } from './types-CA4DI_7D.mjs';
3
+ import { i as installUnrealMcpPluginToEngine } from './types-D-KlOy1q.mjs';
4
4
  import 'axios';
5
5
  import 'node:os';
6
6
  import 'node:events';
@@ -2,7 +2,7 @@
2
2
 
3
3
  var ink = require('ink');
4
4
  var React = require('react');
5
- var types = require('./types-Dm3ppWLz.cjs');
5
+ var types = require('./types-CwRisvq6.cjs');
6
6
  var index_js = require('@modelcontextprotocol/sdk/client/index.js');
7
7
  var stdio_js = require('@modelcontextprotocol/sdk/client/stdio.js');
8
8
  var z = require('zod');
@@ -12,7 +12,7 @@ var fs = require('node:fs');
12
12
  var os = require('node:os');
13
13
  var path = require('node:path');
14
14
  var node_child_process = require('node:child_process');
15
- var index = require('./index-DwYaKKj_.cjs');
15
+ var index = require('./index-BNikKvWZ.cjs');
16
16
  require('axios');
17
17
  require('node:events');
18
18
  require('socket.io-client');
@@ -1,6 +1,6 @@
1
1
  import { useStdout, useInput, Box, Text, render } from 'ink';
2
2
  import React, { useState, useRef, useEffect, useCallback } from 'react';
3
- import { l as logger, A as ApiClient, p as packageJson, c as configuration, r as readSettings, b as projectPath } from './types-CA4DI_7D.mjs';
3
+ import { l as logger, A as ApiClient, p as packageJson, c as configuration, r as readSettings, b as projectPath } from './types-D-KlOy1q.mjs';
4
4
  import { Client } from '@modelcontextprotocol/sdk/client/index.js';
5
5
  import { StdioClientTransport } from '@modelcontextprotocol/sdk/client/stdio.js';
6
6
  import { z } from 'zod';
@@ -10,7 +10,7 @@ import fs__default from 'node:fs';
10
10
  import os__default from 'node:os';
11
11
  import path__default, { resolve, join } from 'node:path';
12
12
  import { spawnSync } from 'node:child_process';
13
- import { s as shouldCountToolCall, c as consumeToolQuota, f as formatQuotaDeniedReason, h as hashObject, e as enforceCliVersionPolicy, i as initialMachineMetadata, E as ElicitationHub, n as notifyDaemonSessionStarted, M as MessageQueue2, P as PLATFORM_SYSTEM_PROMPT, a as setLatestUserImages, w as withUserImagesMarker, r as registerKillSessionHandler, b as MessageBuffer, d as startFlockbayServer, g as buildProjectCapsule, t as trimIdent, j as autoFinalizeCoordinationWorkItem, k as detectScreenshotsForGate, l as applyCoordinationSideEffectsFromMcpToolResult, m as stopCaffeinate } from './index-BMs-hgAn.mjs';
13
+ import { s as shouldCountToolCall, c as consumeToolQuota, f as formatQuotaDeniedReason, h as hashObject, e as enforceCliVersionPolicy, i as initialMachineMetadata, E as ElicitationHub, n as notifyDaemonSessionStarted, M as MessageQueue2, P as PLATFORM_SYSTEM_PROMPT, a as setLatestUserImages, w as withUserImagesMarker, r as registerKillSessionHandler, b as MessageBuffer, d as startFlockbayServer, g as buildProjectCapsule, t as trimIdent, j as autoFinalizeCoordinationWorkItem, k as detectScreenshotsForGate, l as applyCoordinationSideEffectsFromMcpToolResult, m as stopCaffeinate } from './index-CGMEyldR.mjs';
14
14
  import 'axios';
15
15
  import 'node:events';
16
16
  import 'socket.io-client';
@@ -6,8 +6,8 @@ var node_crypto = require('node:crypto');
6
6
  var os = require('node:os');
7
7
  var path = require('node:path');
8
8
  var fs$2 = require('node:fs/promises');
9
- var types = require('./types-Dm3ppWLz.cjs');
10
- var index = require('./index-DwYaKKj_.cjs');
9
+ var types = require('./types-CwRisvq6.cjs');
10
+ var index = require('./index-BNikKvWZ.cjs');
11
11
  var node_child_process = require('node:child_process');
12
12
  var sdk = require('@agentclientprotocol/sdk');
13
13
  var fs = require('fs');
@@ -4,8 +4,8 @@ import { randomUUID, createHash } from 'node:crypto';
4
4
  import os__default from 'node:os';
5
5
  import path__default, { resolve, join as join$1, basename } from 'node:path';
6
6
  import { mkdir, writeFile, readFile } from 'node:fs/promises';
7
- import { l as logger, p as packageJson, A as ApiClient, c as configuration, r as readSettings, b as projectPath } from './types-CA4DI_7D.mjs';
8
- import { s as shouldCountToolCall, c as consumeToolQuota, f as formatQuotaDeniedReason, h as hashObject, e as enforceCliVersionPolicy, i as initialMachineMetadata, n as notifyDaemonSessionStarted, M as MessageQueue2, g as buildProjectCapsule, a as setLatestUserImages, b as MessageBuffer, w as withUserImagesMarker, r as registerKillSessionHandler, d as startFlockbayServer, o as extractUserImagesMarker, p as getLatestUserImages, P as PLATFORM_SYSTEM_PROMPT, j as autoFinalizeCoordinationWorkItem, E as ElicitationHub, k as detectScreenshotsForGate, m as stopCaffeinate } from './index-BMs-hgAn.mjs';
7
+ import { l as logger, p as packageJson, A as ApiClient, c as configuration, r as readSettings, b as projectPath } from './types-D-KlOy1q.mjs';
8
+ import { s as shouldCountToolCall, c as consumeToolQuota, f as formatQuotaDeniedReason, h as hashObject, e as enforceCliVersionPolicy, i as initialMachineMetadata, n as notifyDaemonSessionStarted, M as MessageQueue2, g as buildProjectCapsule, a as setLatestUserImages, b as MessageBuffer, w as withUserImagesMarker, r as registerKillSessionHandler, d as startFlockbayServer, o as extractUserImagesMarker, p as getLatestUserImages, P as PLATFORM_SYSTEM_PROMPT, j as autoFinalizeCoordinationWorkItem, E as ElicitationHub, k as detectScreenshotsForGate, m as stopCaffeinate } from './index-CGMEyldR.mjs';
9
9
  import { spawn, spawnSync } from 'node:child_process';
10
10
  import { ndJsonStream, ClientSideConnection } from '@agentclientprotocol/sdk';
11
11
  import { existsSync, readFileSync, mkdirSync, writeFileSync } from 'fs';
@@ -42,7 +42,7 @@ function _interopNamespaceDefault(e) {
42
42
  var z__namespace = /*#__PURE__*/_interopNamespaceDefault(z);
43
43
 
44
44
  var name = "flockbay";
45
- var version = "0.10.35";
45
+ var version = "0.10.36";
46
46
  var description = "Flockbay CLI (local agent + daemon)";
47
47
  var author = "Eduardo Orellana";
48
48
  var license = "UNLICENSED";
@@ -772,7 +772,7 @@ class RpcHandlerManager {
772
772
  }
773
773
  }
774
774
 
775
- const __dirname$1 = path$1.dirname(url.fileURLToPath((typeof document === 'undefined' ? require('u' + 'rl').pathToFileURL(__filename).href : (_documentCurrentScript && _documentCurrentScript.tagName.toUpperCase() === 'SCRIPT' && _documentCurrentScript.src || new URL('types-Dm3ppWLz.cjs', document.baseURI).href))));
775
+ const __dirname$1 = path$1.dirname(url.fileURLToPath((typeof document === 'undefined' ? require('u' + 'rl').pathToFileURL(__filename).href : (_documentCurrentScript && _documentCurrentScript.tagName.toUpperCase() === 'SCRIPT' && _documentCurrentScript.src || new URL('types-CwRisvq6.cjs', document.baseURI).href))));
776
776
  function projectPath() {
777
777
  const path = path$1.resolve(__dirname$1, "..");
778
778
  return path;
@@ -3612,7 +3612,15 @@ async function buildAndInstallUnrealMcpPlugin(options) {
3612
3612
  logStream.write(`args: ${JSON.stringify(args)}
3613
3613
 
3614
3614
  `);
3615
- const child = process.platform === "win32" ? node_child_process.spawn("cmd.exe", ["/c", uat, ...args], { stdio: ["ignore", "pipe", "pipe"] }) : node_child_process.spawn(uat, args, { stdio: ["ignore", "pipe", "pipe"] });
3615
+ const quoteCmdArg = (value) => {
3616
+ const raw = String(value ?? "");
3617
+ if (!raw) return '""';
3618
+ if (!/[\\s"]/g.test(raw)) return raw;
3619
+ return `"${raw.replace(/"/g, '""')}"`;
3620
+ };
3621
+ const child = process.platform === "win32" ? node_child_process.spawn("cmd.exe", ["/s", "/c", [quoteCmdArg(uat), ...args.map(quoteCmdArg)].join(" ")], {
3622
+ stdio: ["ignore", "pipe", "pipe"]
3623
+ }) : node_child_process.spawn(uat, args, { stdio: ["ignore", "pipe", "pipe"] });
3616
3624
  child.stdout?.on("data", (chunk) => logStream.write(chunk));
3617
3625
  child.stderr?.on("data", (chunk) => logStream.write(chunk));
3618
3626
  const exitCode = await new Promise((resolve) => child.on("close", resolve));
@@ -21,7 +21,7 @@ import net from 'node:net';
21
21
  import { spawn as spawn$1 } from 'node:child_process';
22
22
 
23
23
  var name = "flockbay";
24
- var version = "0.10.35";
24
+ var version = "0.10.36";
25
25
  var description = "Flockbay CLI (local agent + daemon)";
26
26
  var author = "Eduardo Orellana";
27
27
  var license = "UNLICENSED";
@@ -3591,7 +3591,15 @@ async function buildAndInstallUnrealMcpPlugin(options) {
3591
3591
  logStream.write(`args: ${JSON.stringify(args)}
3592
3592
 
3593
3593
  `);
3594
- const child = process.platform === "win32" ? spawn$1("cmd.exe", ["/c", uat, ...args], { stdio: ["ignore", "pipe", "pipe"] }) : spawn$1(uat, args, { stdio: ["ignore", "pipe", "pipe"] });
3594
+ const quoteCmdArg = (value) => {
3595
+ const raw = String(value ?? "");
3596
+ if (!raw) return '""';
3597
+ if (!/[\\s"]/g.test(raw)) return raw;
3598
+ return `"${raw.replace(/"/g, '""')}"`;
3599
+ };
3600
+ const child = process.platform === "win32" ? spawn$1("cmd.exe", ["/s", "/c", [quoteCmdArg(uat), ...args.map(quoteCmdArg)].join(" ")], {
3601
+ stdio: ["ignore", "pipe", "pipe"]
3602
+ }) : spawn$1(uat, args, { stdio: ["ignore", "pipe", "pipe"] });
3595
3603
  child.stdout?.on("data", (chunk) => logStream.write(chunk));
3596
3604
  child.stderr?.on("data", (chunk) => logStream.write(chunk));
3597
3605
  const exitCode = await new Promise((resolve) => child.on("close", resolve));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "flockbay",
3
- "version": "0.10.35",
3
+ "version": "0.10.36",
4
4
  "description": "Flockbay CLI (local agent + daemon)",
5
5
  "author": "Eduardo Orellana",
6
6
  "license": "UNLICENSED",