flockbay 0.10.20 → 0.10.22
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/{index-CX0Z8pmz.mjs → index-BjZUYSzh.mjs} +471 -31
- package/dist/{index-D_mglYG0.cjs → index-DQTqwzYd.cjs} +471 -31
- package/dist/index.cjs +2 -2
- package/dist/index.mjs +2 -2
- package/dist/lib.cjs +1 -1
- package/dist/lib.mjs +1 -1
- package/dist/{runCodex-Biis9GFw.mjs → runCodex-B7fGICdv.mjs} +11 -13
- package/dist/{runCodex-CXJW0tzo.cjs → runCodex-CaWagdzG.cjs} +11 -13
- package/dist/{runGemini-FOBXtEU6.cjs → runGemini-8w5P093W.cjs} +234 -49
- package/dist/{runGemini-BSH4b0wu.mjs → runGemini-CK43WQk8.mjs} +234 -49
- package/dist/{types-C4QeUggl.mjs → types-CMWcip0F.mjs} +41 -3
- package/dist/{types-BYHCKlu_.cjs → types-Z2OYpI8c.cjs} +41 -2
- package/package.json +1 -1
- package/scripts/claude_version_utils.cjs +66 -12
- package/tools/unreal-mcp/upstream/MCPGameProject/Plugins/UnrealMCP/Source/UnrealMCP/Private/Commands/UnrealMCPEditorCommands.cpp +32 -11
- package/tools/unreal-mcp/upstream/MCPGameProject/Plugins/UnrealMCP/Source/UnrealMCP/UnrealMCP.Build.cs +1 -0
package/dist/index.cjs
CHANGED
package/dist/index.mjs
CHANGED
package/dist/lib.cjs
CHANGED
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-
|
|
1
|
+
export { A as ApiClient, a as ApiSessionClient, R as RawJSONLinesSchema, c as configuration, l as logger } from './types-CMWcip0F.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-
|
|
3
|
+
import { l as logger, A as ApiClient, r as readSettings, p as projectPath, c as configuration, b as packageJson } from './types-CMWcip0F.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 detectUnrealProject, g as buildProjectCapsule, t as trimIdent, j as autoFinalizeCoordinationWorkItem, k as detectScreenshotsForGate, l as applyCoordinationSideEffectsFromMcpToolResult, m as stopCaffeinate } from './index-
|
|
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 detectUnrealProject, g as buildProjectCapsule, t as trimIdent, j as autoFinalizeCoordinationWorkItem, k as detectScreenshotsForGate, l as applyCoordinationSideEffectsFromMcpToolResult, m as stopCaffeinate } from './index-BjZUYSzh.mjs';
|
|
14
14
|
import 'axios';
|
|
15
15
|
import 'node:events';
|
|
16
16
|
import 'socket.io-client';
|
|
@@ -250,18 +250,18 @@ function buildMcpElicitationResult(decision, requestedSchemaRaw, options) {
|
|
|
250
250
|
if (!raw) return "";
|
|
251
251
|
if (/^Blocked\b/.test(raw)) return raw;
|
|
252
252
|
if (raw === "ledger_read_required") {
|
|
253
|
-
return "Blocked by
|
|
253
|
+
return "Blocked by Policy (automatic; not the user): read the ledger before making file edits. Next: call mcp__flockbay__ledger_read, then retry the edit.";
|
|
254
254
|
}
|
|
255
255
|
if (raw === "docs_index_read_required") {
|
|
256
|
-
return "Blocked by
|
|
256
|
+
return "Blocked by Policy (automatic; not the user): read the game Documentation index before making edits. Next: call mcp__flockbay__docs_index_read, then retry the edit.";
|
|
257
257
|
}
|
|
258
258
|
if (raw.startsWith("file_claim_required:")) {
|
|
259
259
|
const withoutPrefix = raw.slice("file_claim_required:".length);
|
|
260
260
|
const file = withoutPrefix.split("(")[0]?.trim() || "the file";
|
|
261
|
-
return `Blocked by
|
|
261
|
+
return `Blocked by Policy (automatic; not the user): claim ${file} before editing it. Next: claim the file via mcp__flockbay__ledger_claim (or mcp__flockbay__coordination_claim_files), then retry the edit.`;
|
|
262
262
|
}
|
|
263
263
|
if (raw === "read_only_mode") {
|
|
264
|
-
return "Blocked by
|
|
264
|
+
return "Blocked by Policy (automatic; not the user): this session is in read-only mode. Next: switch permission mode to allow edits, then retry.";
|
|
265
265
|
}
|
|
266
266
|
return `Blocked: ${raw}`;
|
|
267
267
|
};
|
|
@@ -1740,7 +1740,7 @@ function buildPolicyHint(reason, decision, gate) {
|
|
|
1740
1740
|
};
|
|
1741
1741
|
}
|
|
1742
1742
|
return {
|
|
1743
|
-
summary: "Blocked by
|
|
1743
|
+
summary: "Blocked by Policy.",
|
|
1744
1744
|
nextSteps: []
|
|
1745
1745
|
};
|
|
1746
1746
|
}
|
|
@@ -1752,7 +1752,7 @@ function buildPolicyHint(reason, decision, gate) {
|
|
|
1752
1752
|
}
|
|
1753
1753
|
if (raw === "ledger_read_required") {
|
|
1754
1754
|
return {
|
|
1755
|
-
summary: "Blocked by
|
|
1755
|
+
summary: "Blocked by Policy (automatic; not the user): read the ledger before making file edits.",
|
|
1756
1756
|
nextSteps: [
|
|
1757
1757
|
"Call `mcp__flockbay__ledger_read` (or `mcp__flockbay__coordination_ledger_snapshot`).",
|
|
1758
1758
|
"Then retry the file edit."
|
|
@@ -1761,7 +1761,7 @@ function buildPolicyHint(reason, decision, gate) {
|
|
|
1761
1761
|
}
|
|
1762
1762
|
if (raw === "docs_index_read_required") {
|
|
1763
1763
|
return {
|
|
1764
|
-
summary: "Blocked by
|
|
1764
|
+
summary: "Blocked by Policy (automatic; not the user): read the game Documentation index before making edits.",
|
|
1765
1765
|
nextSteps: [
|
|
1766
1766
|
"Call `mcp__flockbay__docs_index_read`.",
|
|
1767
1767
|
"Then retry the edit."
|
|
@@ -1772,7 +1772,7 @@ function buildPolicyHint(reason, decision, gate) {
|
|
|
1772
1772
|
const withoutPrefix = raw.slice("file_claim_required:".length);
|
|
1773
1773
|
const file = withoutPrefix.split("(")[0]?.trim() || "the file";
|
|
1774
1774
|
return {
|
|
1775
|
-
summary: `Blocked by
|
|
1775
|
+
summary: `Blocked by Policy (automatic; not the user): claim \`${file}\` before editing it.`,
|
|
1776
1776
|
nextSteps: [
|
|
1777
1777
|
`Claim the file via \`mcp__flockbay__ledger_claim\` or \`mcp__flockbay__coordination_claim_files\` (files: ["${file}"]).`,
|
|
1778
1778
|
"Then retry the file edit."
|
|
@@ -1781,7 +1781,7 @@ function buildPolicyHint(reason, decision, gate) {
|
|
|
1781
1781
|
}
|
|
1782
1782
|
if (raw === "read_only_mode") {
|
|
1783
1783
|
return {
|
|
1784
|
-
summary: "Blocked by
|
|
1784
|
+
summary: "Blocked by Policy (automatic; not the user): this session is in read-only mode.",
|
|
1785
1785
|
nextSteps: [
|
|
1786
1786
|
"Switch permission mode to allow edits (disable read-only).",
|
|
1787
1787
|
"Then retry the action."
|
|
@@ -3177,11 +3177,9 @@ async function runCodex(opts) {
|
|
|
3177
3177
|
} else if (msg.type === "task_complete") {
|
|
3178
3178
|
messageBuffer.addMessage("Task completed", "status");
|
|
3179
3179
|
flushInflightExecCalls({ isError: false, reason: "task_complete" });
|
|
3180
|
-
sendReady();
|
|
3181
3180
|
} else if (msg.type === "turn_aborted") {
|
|
3182
3181
|
messageBuffer.addMessage("Turn aborted", "status");
|
|
3183
3182
|
flushInflightExecCalls({ isError: true, reason: "turn_aborted" });
|
|
3184
|
-
sendReady();
|
|
3185
3183
|
}
|
|
3186
3184
|
if (msg.type === "task_started") {
|
|
3187
3185
|
if (!thinking) {
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
var ink = require('ink');
|
|
4
4
|
var React = require('react');
|
|
5
|
-
var types = require('./types-
|
|
5
|
+
var types = require('./types-Z2OYpI8c.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-
|
|
15
|
+
var index = require('./index-DQTqwzYd.cjs');
|
|
16
16
|
require('axios');
|
|
17
17
|
require('node:events');
|
|
18
18
|
require('socket.io-client');
|
|
@@ -252,18 +252,18 @@ function buildMcpElicitationResult(decision, requestedSchemaRaw, options) {
|
|
|
252
252
|
if (!raw) return "";
|
|
253
253
|
if (/^Blocked\b/.test(raw)) return raw;
|
|
254
254
|
if (raw === "ledger_read_required") {
|
|
255
|
-
return "Blocked by
|
|
255
|
+
return "Blocked by Policy (automatic; not the user): read the ledger before making file edits. Next: call mcp__flockbay__ledger_read, then retry the edit.";
|
|
256
256
|
}
|
|
257
257
|
if (raw === "docs_index_read_required") {
|
|
258
|
-
return "Blocked by
|
|
258
|
+
return "Blocked by Policy (automatic; not the user): read the game Documentation index before making edits. Next: call mcp__flockbay__docs_index_read, then retry the edit.";
|
|
259
259
|
}
|
|
260
260
|
if (raw.startsWith("file_claim_required:")) {
|
|
261
261
|
const withoutPrefix = raw.slice("file_claim_required:".length);
|
|
262
262
|
const file = withoutPrefix.split("(")[0]?.trim() || "the file";
|
|
263
|
-
return `Blocked by
|
|
263
|
+
return `Blocked by Policy (automatic; not the user): claim ${file} before editing it. Next: claim the file via mcp__flockbay__ledger_claim (or mcp__flockbay__coordination_claim_files), then retry the edit.`;
|
|
264
264
|
}
|
|
265
265
|
if (raw === "read_only_mode") {
|
|
266
|
-
return "Blocked by
|
|
266
|
+
return "Blocked by Policy (automatic; not the user): this session is in read-only mode. Next: switch permission mode to allow edits, then retry.";
|
|
267
267
|
}
|
|
268
268
|
return `Blocked: ${raw}`;
|
|
269
269
|
};
|
|
@@ -1742,7 +1742,7 @@ function buildPolicyHint(reason, decision, gate) {
|
|
|
1742
1742
|
};
|
|
1743
1743
|
}
|
|
1744
1744
|
return {
|
|
1745
|
-
summary: "Blocked by
|
|
1745
|
+
summary: "Blocked by Policy.",
|
|
1746
1746
|
nextSteps: []
|
|
1747
1747
|
};
|
|
1748
1748
|
}
|
|
@@ -1754,7 +1754,7 @@ function buildPolicyHint(reason, decision, gate) {
|
|
|
1754
1754
|
}
|
|
1755
1755
|
if (raw === "ledger_read_required") {
|
|
1756
1756
|
return {
|
|
1757
|
-
summary: "Blocked by
|
|
1757
|
+
summary: "Blocked by Policy (automatic; not the user): read the ledger before making file edits.",
|
|
1758
1758
|
nextSteps: [
|
|
1759
1759
|
"Call `mcp__flockbay__ledger_read` (or `mcp__flockbay__coordination_ledger_snapshot`).",
|
|
1760
1760
|
"Then retry the file edit."
|
|
@@ -1763,7 +1763,7 @@ function buildPolicyHint(reason, decision, gate) {
|
|
|
1763
1763
|
}
|
|
1764
1764
|
if (raw === "docs_index_read_required") {
|
|
1765
1765
|
return {
|
|
1766
|
-
summary: "Blocked by
|
|
1766
|
+
summary: "Blocked by Policy (automatic; not the user): read the game Documentation index before making edits.",
|
|
1767
1767
|
nextSteps: [
|
|
1768
1768
|
"Call `mcp__flockbay__docs_index_read`.",
|
|
1769
1769
|
"Then retry the edit."
|
|
@@ -1774,7 +1774,7 @@ function buildPolicyHint(reason, decision, gate) {
|
|
|
1774
1774
|
const withoutPrefix = raw.slice("file_claim_required:".length);
|
|
1775
1775
|
const file = withoutPrefix.split("(")[0]?.trim() || "the file";
|
|
1776
1776
|
return {
|
|
1777
|
-
summary: `Blocked by
|
|
1777
|
+
summary: `Blocked by Policy (automatic; not the user): claim \`${file}\` before editing it.`,
|
|
1778
1778
|
nextSteps: [
|
|
1779
1779
|
`Claim the file via \`mcp__flockbay__ledger_claim\` or \`mcp__flockbay__coordination_claim_files\` (files: ["${file}"]).`,
|
|
1780
1780
|
"Then retry the file edit."
|
|
@@ -1783,7 +1783,7 @@ function buildPolicyHint(reason, decision, gate) {
|
|
|
1783
1783
|
}
|
|
1784
1784
|
if (raw === "read_only_mode") {
|
|
1785
1785
|
return {
|
|
1786
|
-
summary: "Blocked by
|
|
1786
|
+
summary: "Blocked by Policy (automatic; not the user): this session is in read-only mode.",
|
|
1787
1787
|
nextSteps: [
|
|
1788
1788
|
"Switch permission mode to allow edits (disable read-only).",
|
|
1789
1789
|
"Then retry the action."
|
|
@@ -3179,11 +3179,9 @@ async function runCodex(opts) {
|
|
|
3179
3179
|
} else if (msg.type === "task_complete") {
|
|
3180
3180
|
messageBuffer.addMessage("Task completed", "status");
|
|
3181
3181
|
flushInflightExecCalls({ isError: false, reason: "task_complete" });
|
|
3182
|
-
sendReady();
|
|
3183
3182
|
} else if (msg.type === "turn_aborted") {
|
|
3184
3183
|
messageBuffer.addMessage("Turn aborted", "status");
|
|
3185
3184
|
flushInflightExecCalls({ isError: true, reason: "turn_aborted" });
|
|
3186
|
-
sendReady();
|
|
3187
3185
|
}
|
|
3188
3186
|
if (msg.type === "task_started") {
|
|
3189
3187
|
if (!thinking) {
|