negotium 0.22.4 → 0.22.5
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/agent-helpers.js +16 -8
- package/dist/agent-helpers.js.map +6 -6
- package/dist/{chunk-0jtan6fd.js → chunk-7rpbcn1j.js} +3 -3
- package/dist/{chunk-0jtan6fd.js.map → chunk-7rpbcn1j.js.map} +2 -2
- package/dist/{chunk-y4tyc603.js → chunk-a3me2mje.js} +3 -3
- package/dist/chunk-a3me2mje.js.map +10 -0
- package/dist/{chunk-rwj7x5pg.js → chunk-vh8px000.js} +9 -3
- package/dist/{chunk-rwj7x5pg.js.map → chunk-vh8px000.js.map} +3 -3
- package/dist/hosted-agent.js +10 -4
- package/dist/hosted-agent.js.map +4 -4
- package/dist/main.js +32 -14
- package/dist/main.js.map +9 -9
- package/dist/mcp-factories.js +16 -8
- package/dist/mcp-factories.js.map +6 -6
- package/dist/registry.js +3 -3
- package/dist/rollout.js +2 -2
- package/dist/runtime/src/agents/rollout/claude.ts +6 -1
- package/dist/runtime/src/application/submit-runtime-gateway-turn.ts +6 -4
- package/dist/runtime/src/node-host.ts +1 -0
- package/dist/runtime/src/platform/mcp-config.ts +60 -28
- package/dist/runtime/src/runtime/turn-runner.ts +9 -4
- package/dist/runtime/src/version.ts +1 -1
- package/dist/types/packages/core/src/agents/rollout/claude.d.ts +5 -0
- package/dist/types/packages/core/src/platform/mcp-config.d.ts +8 -0
- package/dist/types/packages/core/src/runtime/turn-runner.d.ts +6 -2
- package/dist/types/packages/core/src/version.d.ts +1 -1
- package/package.json +1 -1
- package/dist/chunk-y4tyc603.js.map +0 -10
package/dist/mcp-factories.js
CHANGED
|
@@ -1311,7 +1311,7 @@ function loadClaudeAttachments() {
|
|
|
1311
1311
|
}
|
|
1312
1312
|
function encodeClaudeCwd(cwd) {
|
|
1313
1313
|
const realCwd = cwd.startsWith("/tmp/") ? cwd.replace(/^\/tmp\//, "/private/tmp/") : cwd;
|
|
1314
|
-
return
|
|
1314
|
+
return realCwd.replaceAll(/[^a-zA-Z0-9]/g, "-");
|
|
1315
1315
|
}
|
|
1316
1316
|
function writeClaudeRollout(opts) {
|
|
1317
1317
|
const sessionId = opts.sessionId ?? randomUUID2();
|
|
@@ -3891,6 +3891,11 @@ function refreshForumCatalogViews() {
|
|
|
3891
3891
|
function isReservedRuntimeMcpServerName(name) {
|
|
3892
3892
|
return Object.hasOwn(MCP_CATALOG, name) || nodeMcpEntries.some((entry) => entry.key === name);
|
|
3893
3893
|
}
|
|
3894
|
+
function withoutManagerOnlyHostMcpServers(hostMcpServers) {
|
|
3895
|
+
if (!hostMcpServers)
|
|
3896
|
+
return;
|
|
3897
|
+
return Object.fromEntries(Object.entries(hostMcpServers).filter(([name]) => !MANAGER_ONLY_HOST_MCP_NAMES.has(name)));
|
|
3898
|
+
}
|
|
3894
3899
|
function mergeHostMcpServers(base, hostMcpServers) {
|
|
3895
3900
|
if (!hostMcpServers)
|
|
3896
3901
|
return base;
|
|
@@ -4151,7 +4156,7 @@ function getMcpServersForQuery(opts) {
|
|
|
4151
4156
|
fileDeliveryTools: opts.fileDeliveryTools
|
|
4152
4157
|
}), opts.hostMcpServers), opts.topicId);
|
|
4153
4158
|
}
|
|
4154
|
-
return hideProviderIntrospectionForOtium(getForumMcpServers({
|
|
4159
|
+
return hideProviderIntrospectionForOtium(mergeHostMcpServers(getForumMcpServers({
|
|
4155
4160
|
userId: opts.userId || "local",
|
|
4156
4161
|
actorUserId: opts.actorUserId,
|
|
4157
4162
|
actorTopicScope: opts.actorTopicScope,
|
|
@@ -4178,7 +4183,7 @@ function getMcpServersForQuery(opts) {
|
|
|
4178
4183
|
extra: opts.mcpExtra,
|
|
4179
4184
|
silent: opts.silent,
|
|
4180
4185
|
peerBridge: opts.peerBridge
|
|
4181
|
-
}), opts.topicId);
|
|
4186
|
+
}), withoutManagerOnlyHostMcpServers(opts.hostMcpServers)), opts.topicId);
|
|
4182
4187
|
}
|
|
4183
4188
|
function hideProviderIntrospectionForOtium(servers, topicId) {
|
|
4184
4189
|
if (!topicId || getTopic(topicId)?.surface !== "otium")
|
|
@@ -4188,7 +4193,7 @@ function hideProviderIntrospectionForOtium(servers, topicId) {
|
|
|
4188
4193
|
delete filtered["token-stats"];
|
|
4189
4194
|
return filtered;
|
|
4190
4195
|
}
|
|
4191
|
-
var _playwrightUnavailableNotifier, _playwrightUnavailableLastNotifiedAt, _PLAYWRIGHT_UNAVAILABLE_COOLDOWN_MS, _playwrightUnavailableThisTurn, cuaRsMcpPort, cuaRsMcpToken, MCP_CATALOG, nodeMcpEntries, resolvedNodeMcpPorts, allForumMcpServerNames, requiredForumMcpServers, REQUIRED_FORUM_MCP_SERVERS, optionalForumMcpServers;
|
|
4196
|
+
var _playwrightUnavailableNotifier, _playwrightUnavailableLastNotifiedAt, _PLAYWRIGHT_UNAVAILABLE_COOLDOWN_MS, _playwrightUnavailableThisTurn, cuaRsMcpPort, cuaRsMcpToken, MCP_CATALOG, nodeMcpEntries, resolvedNodeMcpPorts, allForumMcpServerNames, requiredForumMcpServers, REQUIRED_FORUM_MCP_SERVERS, optionalForumMcpServers, MANAGER_ONLY_HOST_MCP_NAMES;
|
|
4192
4197
|
var init_mcp_config = __esm(async () => {
|
|
4193
4198
|
init_explicit_agent_switch();
|
|
4194
4199
|
init_canonical_bridge_config();
|
|
@@ -4444,6 +4449,7 @@ var init_mcp_config = __esm(async () => {
|
|
|
4444
4449
|
REQUIRED_FORUM_MCP_SERVERS = requiredForumMcpServers;
|
|
4445
4450
|
optionalForumMcpServers = [];
|
|
4446
4451
|
refreshForumCatalogViews();
|
|
4452
|
+
MANAGER_ONLY_HOST_MCP_NAMES = new Set(["topic-admin"]);
|
|
4447
4453
|
});
|
|
4448
4454
|
|
|
4449
4455
|
// ../../packages/core/src/storage/vault-crypto-core.ts
|
|
@@ -5268,7 +5274,7 @@ var init_codex = __esm(async () => {
|
|
|
5268
5274
|
});
|
|
5269
5275
|
|
|
5270
5276
|
// ../../packages/core/src/version.ts
|
|
5271
|
-
var NEGOTIUM_VERSION = "0.22.
|
|
5277
|
+
var NEGOTIUM_VERSION = "0.22.5";
|
|
5272
5278
|
|
|
5273
5279
|
// ../../packages/core/src/agents/codex-native-multi-agent.ts
|
|
5274
5280
|
import { spawn as spawn2 } from "child_process";
|
|
@@ -20334,8 +20340,10 @@ function resolveTurnToolCapabilities(topicId, params) {
|
|
|
20334
20340
|
};
|
|
20335
20341
|
}
|
|
20336
20342
|
function resolveTurnHostMcpServers(topic, sessionType) {
|
|
20337
|
-
|
|
20338
|
-
|
|
20343
|
+
if (topic.isSubagent)
|
|
20344
|
+
return;
|
|
20345
|
+
const ownScope = topic.kind === "manager" ? "manager" : "forum";
|
|
20346
|
+
if ((sessionType ?? ownScope) !== ownScope)
|
|
20339
20347
|
return;
|
|
20340
20348
|
return getTopicHostMcpGrant(topic.id) ?? undefined;
|
|
20341
20349
|
}
|
|
@@ -25729,4 +25737,4 @@ export {
|
|
|
25729
25737
|
createAgentHealthMcpServer
|
|
25730
25738
|
};
|
|
25731
25739
|
|
|
25732
|
-
//# debugId=
|
|
25740
|
+
//# debugId=D144996A31C3EFAE64756E2164756E21
|