flockbay 0.10.24 → 0.10.25

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,7 +1,7 @@
1
1
  import{createRequire as _pkgrollCR}from"node:module";const require=_pkgrollCR(import.meta.url);import chalk from 'chalk';
2
2
  import os, { homedir } from 'node:os';
3
3
  import { randomUUID, createCipheriv, randomBytes } from 'node:crypto';
4
- import { l as logger, p as projectPath, d as backoff, e as delay, R as RawJSONLinesSchema, c as configuration, f as readDaemonState, g as clearDaemonState, b as packageJson, r as readSettings, h as readCredentials, u as updateSettings, w as writeCredentials, i as unrealMcpPythonDir, j as acquireDaemonLock, k as writeDaemonState, m as ApiMachineClient, n as releaseDaemonLock, s as sendUnrealMcpTcpCommand, A as ApiClient, o as clearCredentials, q as clearMachineId, t as installUnrealMcpPluginToEngine, v as buildAndInstallUnrealMcpPlugin, x as getLatestDaemonLog, y as normalizeServerUrlForNode } from './types-B83OY7Tb.mjs';
4
+ import { l as logger, p as projectPath, d as backoff, e as delay, R as RawJSONLinesSchema, c as configuration, f as readDaemonState, g as clearDaemonState, b as packageJson, r as readSettings, h as readCredentials, u as updateSettings, w as writeCredentials, i as unrealMcpPythonDir, j as acquireDaemonLock, k as writeDaemonState, m as ApiMachineClient, n as releaseDaemonLock, s as sendUnrealMcpTcpCommand, A as ApiClient, o as clearCredentials, q as clearMachineId, t as installUnrealMcpPluginToEngine, v as buildAndInstallUnrealMcpPlugin, x as getLatestDaemonLog, y as normalizeServerUrlForNode } from './types-Cg6Y04sc.mjs';
5
5
  import { spawn, execFileSync, execSync } from 'node:child_process';
6
6
  import path, { resolve, join, dirname } from 'node:path';
7
7
  import { createInterface } from 'node:readline';
@@ -12670,7 +12670,7 @@ ${engineRoot}`, {
12670
12670
  } else if (subcommand === "codex") {
12671
12671
  try {
12672
12672
  await chdirToNearestUprojectRootIfPresent();
12673
- const { runCodex } = await import('./runCodex-OxMZG47u.mjs');
12673
+ const { runCodex } = await import('./runCodex-DDxij6Wd.mjs');
12674
12674
  let startedBy = void 0;
12675
12675
  let sessionId = void 0;
12676
12676
  for (let i = 1; i < args.length; i++) {
@@ -12772,7 +12772,7 @@ ${engineRoot}`, {
12772
12772
  }
12773
12773
  try {
12774
12774
  await chdirToNearestUprojectRootIfPresent();
12775
- const { runGemini } = await import('./runGemini-CKJGSs8A.mjs');
12775
+ const { runGemini } = await import('./runGemini-BSz9-pJj.mjs');
12776
12776
  let startedBy = void 0;
12777
12777
  let sessionId = void 0;
12778
12778
  for (let i = 1; i < args.length; i++) {
@@ -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-C8y4Qsfc.cjs');
6
+ var types = require('./types-fWJj1SlT.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');
@@ -1273,7 +1273,7 @@ function buildDaemonSafeEnv(baseEnv, binPath) {
1273
1273
  env[pathKey] = [...prepend, ...existingParts].join(pathSep);
1274
1274
  return env;
1275
1275
  }
1276
- 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-ltPvhytE.cjs', document.baseURI).href)));
1276
+ 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-CTYVAA_M.cjs', document.baseURI).href)));
1277
1277
  const __dirname$1 = path.join(__filename$1, "..");
1278
1278
  function getGlobalClaudeVersion(claudeExecutable) {
1279
1279
  try {
@@ -12692,7 +12692,7 @@ ${engineRoot}`, {
12692
12692
  } else if (subcommand === "codex") {
12693
12693
  try {
12694
12694
  await chdirToNearestUprojectRootIfPresent();
12695
- const { runCodex } = await Promise.resolve().then(function () { return require('./runCodex-B8oJouHY.cjs'); });
12695
+ const { runCodex } = await Promise.resolve().then(function () { return require('./runCodex-DjisgfAa.cjs'); });
12696
12696
  let startedBy = void 0;
12697
12697
  let sessionId = void 0;
12698
12698
  for (let i = 1; i < args.length; i++) {
@@ -12794,7 +12794,7 @@ ${engineRoot}`, {
12794
12794
  }
12795
12795
  try {
12796
12796
  await chdirToNearestUprojectRootIfPresent();
12797
- const { runGemini } = await Promise.resolve().then(function () { return require('./runGemini-D6Lfno7n.cjs'); });
12797
+ const { runGemini } = await Promise.resolve().then(function () { return require('./runGemini-B1i5JUTA.cjs'); });
12798
12798
  let startedBy = void 0;
12799
12799
  let sessionId = void 0;
12800
12800
  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-ltPvhytE.cjs');
5
- require('./types-C8y4Qsfc.cjs');
4
+ require('./index-CTYVAA_M.cjs');
5
+ require('./types-fWJj1SlT.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-JzArX4mS.mjs';
3
- import './types-B83OY7Tb.mjs';
2
+ import './index-B22iDcA0.mjs';
3
+ import './types-Cg6Y04sc.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-C8y4Qsfc.cjs');
3
+ var types = require('./types-fWJj1SlT.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-B83OY7Tb.mjs';
1
+ export { A as ApiClient, a as ApiSessionClient, R as RawJSONLinesSchema, c as configuration, l as logger } from './types-Cg6Y04sc.mjs';
2
2
  import 'axios';
3
3
  import 'node:fs';
4
4
  import 'node:os';
@@ -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, r as readSettings, p as projectPath, c as configuration, b as packageJson } from './types-B83OY7Tb.mjs';
3
+ import { l as logger, A as ApiClient, r as readSettings, p as projectPath, c as configuration, b as packageJson } from './types-Cg6Y04sc.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 from 'node:os';
11
11
  import path, { 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, 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, e as buildProjectCapsule, t as trimIdent, g as autoFinalizeCoordinationWorkItem, j as detectScreenshotsForGate, k as applyCoordinationSideEffectsFromMcpToolResult, l as stopCaffeinate } from './index-JzArX4mS.mjs';
13
+ import { s as shouldCountToolCall, c as consumeToolQuota, f as formatQuotaDeniedReason, h as hashObject, 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, e as buildProjectCapsule, t as trimIdent, g as autoFinalizeCoordinationWorkItem, j as detectScreenshotsForGate, k as applyCoordinationSideEffectsFromMcpToolResult, l as stopCaffeinate } from './index-B22iDcA0.mjs';
14
14
  import 'axios';
15
15
  import 'node:events';
16
16
  import 'socket.io-client';
@@ -2233,12 +2233,9 @@ function parseEffortSuffix(model) {
2233
2233
  function resolveCodexModelOverride(rawModel) {
2234
2234
  const model = typeof rawModel === "string" ? rawModel.trim() : "";
2235
2235
  if (!model) return {};
2236
- const isChatGptAuth = readCodexAuthIsChatGptAccount();
2237
- if (!isChatGptAuth) {
2238
- return { config: { model } };
2239
- }
2240
2236
  const effort = parseEffortSuffix(model);
2241
- if (model === "gpt-5-minimal" || model.startsWith("gpt-5-codex-") || model.startsWith("gpt-5-")) {
2237
+ const isFlockbayModelModeToken = model === "gpt-5-minimal" || model === "gpt-5-low" || model === "gpt-5-medium" || model === "gpt-5-high" || model.startsWith("gpt-5-codex-");
2238
+ if (isFlockbayModelModeToken) {
2242
2239
  const nextEffort = effort ?? "medium";
2243
2240
  return {
2244
2241
  config: {
@@ -2247,6 +2244,12 @@ function resolveCodexModelOverride(rawModel) {
2247
2244
  }
2248
2245
  };
2249
2246
  }
2247
+ const isChatGptAuth = readCodexAuthIsChatGptAccount();
2248
+ if (!isChatGptAuth) return { config: { model } };
2249
+ if (model.startsWith("gpt-5-")) {
2250
+ const nextEffort = effort ?? "medium";
2251
+ return { config: { model: "gpt-5.2", model_reasoning_effort: nextEffort } };
2252
+ }
2250
2253
  return { config: { model } };
2251
2254
  }
2252
2255
 
@@ -2,7 +2,7 @@
2
2
 
3
3
  var ink = require('ink');
4
4
  var React = require('react');
5
- var types = require('./types-C8y4Qsfc.cjs');
5
+ var types = require('./types-fWJj1SlT.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-ltPvhytE.cjs');
15
+ var index = require('./index-CTYVAA_M.cjs');
16
16
  require('axios');
17
17
  require('node:events');
18
18
  require('socket.io-client');
@@ -2235,12 +2235,9 @@ function parseEffortSuffix(model) {
2235
2235
  function resolveCodexModelOverride(rawModel) {
2236
2236
  const model = typeof rawModel === "string" ? rawModel.trim() : "";
2237
2237
  if (!model) return {};
2238
- const isChatGptAuth = readCodexAuthIsChatGptAccount();
2239
- if (!isChatGptAuth) {
2240
- return { config: { model } };
2241
- }
2242
2238
  const effort = parseEffortSuffix(model);
2243
- if (model === "gpt-5-minimal" || model.startsWith("gpt-5-codex-") || model.startsWith("gpt-5-")) {
2239
+ const isFlockbayModelModeToken = model === "gpt-5-minimal" || model === "gpt-5-low" || model === "gpt-5-medium" || model === "gpt-5-high" || model.startsWith("gpt-5-codex-");
2240
+ if (isFlockbayModelModeToken) {
2244
2241
  const nextEffort = effort ?? "medium";
2245
2242
  return {
2246
2243
  config: {
@@ -2249,6 +2246,12 @@ function resolveCodexModelOverride(rawModel) {
2249
2246
  }
2250
2247
  };
2251
2248
  }
2249
+ const isChatGptAuth = readCodexAuthIsChatGptAccount();
2250
+ if (!isChatGptAuth) return { config: { model } };
2251
+ if (model.startsWith("gpt-5-")) {
2252
+ const nextEffort = effort ?? "medium";
2253
+ return { config: { model: "gpt-5.2", model_reasoning_effort: nextEffort } };
2254
+ }
2252
2255
  return { config: { model } };
2253
2256
  }
2254
2257
 
@@ -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-C8y4Qsfc.cjs');
10
- var index = require('./index-ltPvhytE.cjs');
9
+ var types = require('./types-fWJj1SlT.cjs');
10
+ var index = require('./index-CTYVAA_M.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 from 'node:os';
5
5
  import path, { resolve, join as join$1, basename } from 'node:path';
6
6
  import { mkdir, writeFile, readFile } from 'node:fs/promises';
7
- import { l as logger, b as packageJson, A as ApiClient, r as readSettings, p as projectPath, c as configuration } from './types-B83OY7Tb.mjs';
8
- import { s as shouldCountToolCall, c as consumeToolQuota, f as formatQuotaDeniedReason, h as hashObject, i as initialMachineMetadata, n as notifyDaemonSessionStarted, M as MessageQueue2, e as buildProjectCapsule, a as setLatestUserImages, b as MessageBuffer, w as withUserImagesMarker, r as registerKillSessionHandler, d as startFlockbayServer, m as extractUserImagesMarker, o as getLatestUserImages, P as PLATFORM_SYSTEM_PROMPT, g as autoFinalizeCoordinationWorkItem, E as ElicitationHub, j as detectScreenshotsForGate, l as stopCaffeinate } from './index-JzArX4mS.mjs';
7
+ import { l as logger, b as packageJson, A as ApiClient, r as readSettings, p as projectPath, c as configuration } from './types-Cg6Y04sc.mjs';
8
+ import { s as shouldCountToolCall, c as consumeToolQuota, f as formatQuotaDeniedReason, h as hashObject, i as initialMachineMetadata, n as notifyDaemonSessionStarted, M as MessageQueue2, e as buildProjectCapsule, a as setLatestUserImages, b as MessageBuffer, w as withUserImagesMarker, r as registerKillSessionHandler, d as startFlockbayServer, m as extractUserImagesMarker, o as getLatestUserImages, P as PLATFORM_SYSTEM_PROMPT, g as autoFinalizeCoordinationWorkItem, E as ElicitationHub, j as detectScreenshotsForGate, l as stopCaffeinate } from './index-B22iDcA0.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';
@@ -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.24";
24
+ var version = "0.10.25";
25
25
  var description = "Flockbay CLI (local agent + daemon)";
26
26
  var author = "Eduardo Orellana";
27
27
  var license = "UNLICENSED";
@@ -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.24";
45
+ var version = "0.10.25";
46
46
  var description = "Flockbay CLI (local agent + daemon)";
47
47
  var author = "Eduardo Orellana";
48
48
  var license = "UNLICENSED";
@@ -770,7 +770,7 @@ class RpcHandlerManager {
770
770
  }
771
771
  }
772
772
 
773
- 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-C8y4Qsfc.cjs', document.baseURI).href))));
773
+ 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-fWJj1SlT.cjs', document.baseURI).href))));
774
774
  function projectPath() {
775
775
  const path = path$1.resolve(__dirname$1, "..");
776
776
  return path;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "flockbay",
3
- "version": "0.10.24",
3
+ "version": "0.10.25",
4
4
  "description": "Flockbay CLI (local agent + daemon)",
5
5
  "author": "Eduardo Orellana",
6
6
  "license": "UNLICENSED",