negotium 0.22.3 → 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/bin/negotium.mjs +0 -0
- package/dist/agent-helpers.js +615 -48
- package/dist/agent-helpers.js.map +11 -9
- package/dist/{chunk-6c637pwe.js → chunk-7rpbcn1j.js} +3 -3
- package/dist/{chunk-6c637pwe.js.map → chunk-7rpbcn1j.js.map} +2 -2
- package/dist/{chunk-bn1tt2qw.js → chunk-a3me2mje.js} +3 -3
- package/dist/chunk-a3me2mje.js.map +10 -0
- package/dist/{chunk-kn8y5scr.js → chunk-vh8px000.js} +12 -3
- package/dist/{chunk-kn8y5scr.js.map → chunk-vh8px000.js.map} +4 -4
- package/dist/hosted-agent.js +13 -4
- package/dist/hosted-agent.js.map +5 -5
- package/dist/main.js +1168 -264
- package/dist/main.js.map +25 -23
- package/dist/mcp-factories.js +634 -67
- package/dist/mcp-factories.js.map +11 -9
- package/dist/registry.js +3 -3
- package/dist/rollout.js +2 -2
- package/dist/runtime/src/agents/mcp-tools/request-vault.ts +616 -0
- 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/application/topic-service.ts +7 -0
- package/dist/runtime/src/index.ts +9 -0
- package/dist/runtime/src/mcp-runtime-host.ts +1 -0
- package/dist/runtime/src/node-host.ts +6 -0
- package/dist/runtime/src/platform/mcp-config.ts +60 -28
- package/dist/runtime/src/runtime/turn-event-stream.ts +2 -0
- package/dist/runtime/src/runtime/turn-runner.ts +9 -4
- package/dist/runtime/src/storage/api-messages.ts +8 -2
- package/dist/runtime/src/storage/vault-request-gates.ts +359 -0
- package/dist/runtime/src/types/api.ts +23 -1
- package/dist/runtime/src/version.ts +1 -1
- package/dist/runtime-helpers.js +4 -1
- package/dist/runtime-helpers.js.map +3 -3
- package/dist/storage.js +8 -4
- package/dist/storage.js.map +3 -3
- package/dist/types/packages/core/src/agents/mcp-tools/request-vault.d.ts +120 -0
- 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/storage/api-messages.d.ts +1 -0
- package/dist/types/packages/core/src/storage/vault-request-gates.d.ts +69 -0
- package/dist/types/packages/core/src/types/api.d.ts +15 -1
- package/dist/types/packages/core/src/version.d.ts +1 -1
- package/package.json +1 -1
- package/dist/chunk-bn1tt2qw.js.map +0 -10
package/dist/hosted-agent.js
CHANGED
|
@@ -1220,6 +1220,9 @@ function initializeApiMessagesSchema() {
|
|
|
1220
1220
|
try {
|
|
1221
1221
|
db.exec("ALTER TABLE api_messages ADD COLUMN subagent_card TEXT");
|
|
1222
1222
|
} catch {}
|
|
1223
|
+
try {
|
|
1224
|
+
db.exec("ALTER TABLE api_messages ADD COLUMN vault_secret_request TEXT");
|
|
1225
|
+
} catch {}
|
|
1223
1226
|
db.exec("CREATE INDEX IF NOT EXISTS idx_api_messages_topic ON api_messages(topic_id)");
|
|
1224
1227
|
db.exec("CREATE INDEX IF NOT EXISTS idx_api_messages_thread_root ON api_messages(thread_root_id)");
|
|
1225
1228
|
}
|
|
@@ -2452,6 +2455,12 @@ refreshForumCatalogViews();
|
|
|
2452
2455
|
function isReservedRuntimeMcpServerName(name) {
|
|
2453
2456
|
return Object.hasOwn(MCP_CATALOG, name) || nodeMcpEntries.some((entry) => entry.key === name);
|
|
2454
2457
|
}
|
|
2458
|
+
var MANAGER_ONLY_HOST_MCP_NAMES = new Set(["topic-admin"]);
|
|
2459
|
+
function withoutManagerOnlyHostMcpServers(hostMcpServers) {
|
|
2460
|
+
if (!hostMcpServers)
|
|
2461
|
+
return;
|
|
2462
|
+
return Object.fromEntries(Object.entries(hostMcpServers).filter(([name]) => !MANAGER_ONLY_HOST_MCP_NAMES.has(name)));
|
|
2463
|
+
}
|
|
2455
2464
|
function mergeHostMcpServers(base, hostMcpServers) {
|
|
2456
2465
|
if (!hostMcpServers)
|
|
2457
2466
|
return base;
|
|
@@ -2679,7 +2688,7 @@ function getMcpServersForQuery(opts) {
|
|
|
2679
2688
|
fileDeliveryTools: opts.fileDeliveryTools
|
|
2680
2689
|
}), opts.hostMcpServers), opts.topicId);
|
|
2681
2690
|
}
|
|
2682
|
-
return hideProviderIntrospectionForOtium(getForumMcpServers({
|
|
2691
|
+
return hideProviderIntrospectionForOtium(mergeHostMcpServers(getForumMcpServers({
|
|
2683
2692
|
userId: opts.userId || "local",
|
|
2684
2693
|
actorUserId: opts.actorUserId,
|
|
2685
2694
|
actorTopicScope: opts.actorTopicScope,
|
|
@@ -2706,7 +2715,7 @@ function getMcpServersForQuery(opts) {
|
|
|
2706
2715
|
extra: opts.mcpExtra,
|
|
2707
2716
|
silent: opts.silent,
|
|
2708
2717
|
peerBridge: opts.peerBridge
|
|
2709
|
-
}), opts.topicId);
|
|
2718
|
+
}), withoutManagerOnlyHostMcpServers(opts.hostMcpServers)), opts.topicId);
|
|
2710
2719
|
}
|
|
2711
2720
|
function hideProviderIntrospectionForOtium(servers, topicId) {
|
|
2712
2721
|
if (!topicId || getTopic(topicId)?.surface !== "otium")
|
|
@@ -3581,7 +3590,7 @@ import { tmpdir } from "os";
|
|
|
3581
3590
|
import { dirname as dirname5, join as join3 } from "path";
|
|
3582
3591
|
|
|
3583
3592
|
// ../../packages/core/src/version.ts
|
|
3584
|
-
var NEGOTIUM_VERSION = "0.22.
|
|
3593
|
+
var NEGOTIUM_VERSION = "0.22.5";
|
|
3585
3594
|
|
|
3586
3595
|
// ../../packages/core/src/agents/codex-native-multi-agent.ts
|
|
3587
3596
|
var moduleRequire = createRequire(import.meta.url);
|
|
@@ -5640,4 +5649,4 @@ export {
|
|
|
5640
5649
|
buildClaudeDisallowedTools
|
|
5641
5650
|
};
|
|
5642
5651
|
|
|
5643
|
-
//# debugId=
|
|
5652
|
+
//# debugId=408BB69E04535D8664756E2164756E21
|