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/agent-helpers.js
CHANGED
|
@@ -3244,6 +3244,11 @@ function refreshForumCatalogViews() {
|
|
|
3244
3244
|
function isReservedRuntimeMcpServerName(name) {
|
|
3245
3245
|
return Object.hasOwn(MCP_CATALOG, name) || nodeMcpEntries.some((entry) => entry.key === name);
|
|
3246
3246
|
}
|
|
3247
|
+
function withoutManagerOnlyHostMcpServers(hostMcpServers) {
|
|
3248
|
+
if (!hostMcpServers)
|
|
3249
|
+
return;
|
|
3250
|
+
return Object.fromEntries(Object.entries(hostMcpServers).filter(([name]) => !MANAGER_ONLY_HOST_MCP_NAMES.has(name)));
|
|
3251
|
+
}
|
|
3247
3252
|
function mergeHostMcpServers(base, hostMcpServers) {
|
|
3248
3253
|
if (!hostMcpServers)
|
|
3249
3254
|
return base;
|
|
@@ -3504,7 +3509,7 @@ function getMcpServersForQuery(opts) {
|
|
|
3504
3509
|
fileDeliveryTools: opts.fileDeliveryTools
|
|
3505
3510
|
}), opts.hostMcpServers), opts.topicId);
|
|
3506
3511
|
}
|
|
3507
|
-
return hideProviderIntrospectionForOtium(getForumMcpServers({
|
|
3512
|
+
return hideProviderIntrospectionForOtium(mergeHostMcpServers(getForumMcpServers({
|
|
3508
3513
|
userId: opts.userId || "local",
|
|
3509
3514
|
actorUserId: opts.actorUserId,
|
|
3510
3515
|
actorTopicScope: opts.actorTopicScope,
|
|
@@ -3531,7 +3536,7 @@ function getMcpServersForQuery(opts) {
|
|
|
3531
3536
|
extra: opts.mcpExtra,
|
|
3532
3537
|
silent: opts.silent,
|
|
3533
3538
|
peerBridge: opts.peerBridge
|
|
3534
|
-
}), opts.topicId);
|
|
3539
|
+
}), withoutManagerOnlyHostMcpServers(opts.hostMcpServers)), opts.topicId);
|
|
3535
3540
|
}
|
|
3536
3541
|
function hideProviderIntrospectionForOtium(servers, topicId) {
|
|
3537
3542
|
if (!topicId || getTopic(topicId)?.surface !== "otium")
|
|
@@ -3541,7 +3546,7 @@ function hideProviderIntrospectionForOtium(servers, topicId) {
|
|
|
3541
3546
|
delete filtered["token-stats"];
|
|
3542
3547
|
return filtered;
|
|
3543
3548
|
}
|
|
3544
|
-
var _playwrightUnavailableNotifier, _playwrightUnavailableLastNotifiedAt, _PLAYWRIGHT_UNAVAILABLE_COOLDOWN_MS, _playwrightUnavailableThisTurn, cuaRsMcpPort, cuaRsMcpToken, MCP_CATALOG, nodeMcpEntries, resolvedNodeMcpPorts, allForumMcpServerNames, requiredForumMcpServers, REQUIRED_FORUM_MCP_SERVERS, optionalForumMcpServers;
|
|
3549
|
+
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;
|
|
3545
3550
|
var init_mcp_config = __esm(async () => {
|
|
3546
3551
|
init_explicit_agent_switch();
|
|
3547
3552
|
init_canonical_bridge_config();
|
|
@@ -3797,6 +3802,7 @@ var init_mcp_config = __esm(async () => {
|
|
|
3797
3802
|
REQUIRED_FORUM_MCP_SERVERS = requiredForumMcpServers;
|
|
3798
3803
|
optionalForumMcpServers = [];
|
|
3799
3804
|
refreshForumCatalogViews();
|
|
3805
|
+
MANAGER_ONLY_HOST_MCP_NAMES = new Set(["topic-admin"]);
|
|
3800
3806
|
});
|
|
3801
3807
|
|
|
3802
3808
|
// ../../packages/core/src/storage/vault-crypto-core.ts
|
|
@@ -4491,7 +4497,7 @@ function loadClaudeAttachments() {
|
|
|
4491
4497
|
}
|
|
4492
4498
|
function encodeClaudeCwd(cwd) {
|
|
4493
4499
|
const realCwd = cwd.startsWith("/tmp/") ? cwd.replace(/^\/tmp\//, "/private/tmp/") : cwd;
|
|
4494
|
-
return
|
|
4500
|
+
return realCwd.replaceAll(/[^a-zA-Z0-9]/g, "-");
|
|
4495
4501
|
}
|
|
4496
4502
|
function writeClaudeRollout(opts) {
|
|
4497
4503
|
const sessionId = opts.sessionId ?? randomUUID2();
|
|
@@ -5230,7 +5236,7 @@ var init_codex = __esm(async () => {
|
|
|
5230
5236
|
});
|
|
5231
5237
|
|
|
5232
5238
|
// ../../packages/core/src/version.ts
|
|
5233
|
-
var NEGOTIUM_VERSION = "0.22.
|
|
5239
|
+
var NEGOTIUM_VERSION = "0.22.5";
|
|
5234
5240
|
|
|
5235
5241
|
// ../../packages/core/src/agents/codex-native-multi-agent.ts
|
|
5236
5242
|
import { spawn as spawn2 } from "child_process";
|
|
@@ -20344,8 +20350,10 @@ function resolveTurnToolCapabilities(topicId, params) {
|
|
|
20344
20350
|
};
|
|
20345
20351
|
}
|
|
20346
20352
|
function resolveTurnHostMcpServers(topic, sessionType) {
|
|
20347
|
-
|
|
20348
|
-
|
|
20353
|
+
if (topic.isSubagent)
|
|
20354
|
+
return;
|
|
20355
|
+
const ownScope = topic.kind === "manager" ? "manager" : "forum";
|
|
20356
|
+
if ((sessionType ?? ownScope) !== ownScope)
|
|
20349
20357
|
return;
|
|
20350
20358
|
return getTopicHostMcpGrant(topic.id) ?? undefined;
|
|
20351
20359
|
}
|
|
@@ -23414,4 +23422,4 @@ export {
|
|
|
23414
23422
|
DEFAULT_SELF_CONFIG_PRODUCT
|
|
23415
23423
|
};
|
|
23416
23424
|
|
|
23417
|
-
//# debugId=
|
|
23425
|
+
//# debugId=EC76F8098D97C2B164756E2164756E21
|