@otium-team/negotium 0.23.15 → 0.24.1
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 +969 -245
- package/dist/agent-helpers.js.map +13 -10
- package/dist/{chunk-ng13grfj.js → chunk-fzfzskjq.js} +18 -2
- package/dist/{chunk-ng13grfj.js.map → chunk-fzfzskjq.js.map} +4 -4
- package/dist/{chunk-m1ngkjdd.js → chunk-hn2cqdd0.js} +1 -1
- package/dist/{chunk-3hf8y6bd.js → chunk-kfckfff2.js} +3 -3
- package/dist/{chunk-3hf8y6bd.js.map → chunk-kfckfff2.js.map} +2 -2
- package/dist/hosted-agent.js +19 -3
- package/dist/hosted-agent.js.map +5 -5
- package/dist/main.js +3744 -2928
- package/dist/main.js.map +18 -15
- package/dist/mcp-factories.js +959 -229
- package/dist/mcp-factories.js.map +14 -11
- package/dist/prompts.js +221 -1
- package/dist/prompts.js.map +7 -5
- package/dist/registry.js +3 -3
- package/dist/rollout.js +2 -2
- package/dist/runtime/src/agents/mcp-tools/ask-user.ts +56 -1
- package/dist/runtime/src/application/submit-runtime-gateway-turn.ts +71 -0
- package/dist/runtime/src/application/turn-follow-ups.ts +7 -0
- package/dist/runtime/src/mcp/wiki-server.ts +8 -0
- package/dist/runtime/src/platform/mcp-config.ts +26 -0
- package/dist/runtime/src/prompts/builders.ts +5 -0
- package/dist/runtime/src/runtime/turn-runner.ts +65 -1
- package/dist/runtime/src/storage/api-topics.ts +29 -0
- package/dist/runtime/src/topics/agent-plugins/mcp.schema.json +120 -0
- package/dist/runtime/src/topics/agent-plugins/plugin.schema.json +65 -0
- package/dist/runtime/src/topics/plugin-server-instructions.ts +201 -0
- package/dist/runtime/src/topics/plugin-turn.ts +37 -0
- package/dist/runtime/src/topics/plugins.ts +445 -0
- package/dist/runtime/src/topics/update.ts +34 -0
- package/dist/runtime/src/types/api.ts +5 -0
- package/dist/runtime/src/version.ts +1 -1
- package/dist/storage.js +23 -2
- package/dist/storage.js.map +3 -3
- package/dist/types/packages/core/src/agents/mcp-tools/ask-user.d.ts +14 -0
- package/dist/types/packages/core/src/platform/mcp-config.d.ts +6 -0
- package/dist/types/packages/core/src/prompts/builders.d.ts +3 -0
- package/dist/types/packages/core/src/runtime/turn-runner.d.ts +14 -1
- package/dist/types/packages/core/src/storage/api-topics.d.ts +3 -0
- package/dist/types/packages/core/src/topics/plugin-server-instructions.d.ts +55 -0
- package/dist/types/packages/core/src/topics/plugin-turn.d.ts +17 -0
- package/dist/types/packages/core/src/topics/plugins.d.ts +66 -0
- package/dist/types/packages/core/src/types/api.d.ts +5 -0
- package/dist/types/packages/core/src/version.d.ts +1 -1
- package/package.json +1 -1
- /package/dist/{chunk-m1ngkjdd.js.map → chunk-hn2cqdd0.js.map} +0 -0
|
@@ -2187,6 +2187,7 @@ function initializeApiTopicsSchema() {
|
|
|
2187
2187
|
browser_profile TEXT NOT NULL DEFAULT 'default',
|
|
2188
2188
|
browser_profile_owner TEXT,
|
|
2189
2189
|
browser_connect_port INTEGER,
|
|
2190
|
+
plugins_json TEXT,
|
|
2190
2191
|
session_id TEXT,
|
|
2191
2192
|
CHECK (
|
|
2192
2193
|
(kind = 'channel' AND response_policy = 'off' AND agent IS NULL) OR
|
|
@@ -2307,6 +2308,10 @@ function initializeApiTopicsSchema() {
|
|
|
2307
2308
|
if (!tableColumns("api_topics").has("browser_connect_port")) {
|
|
2308
2309
|
db.exec("ALTER TABLE api_topics ADD COLUMN browser_connect_port INTEGER");
|
|
2309
2310
|
}
|
|
2311
|
+
if (!tableColumns("api_topics").has("plugins_json")) {
|
|
2312
|
+
db.exec("ALTER TABLE api_topics ADD COLUMN plugins_json TEXT");
|
|
2313
|
+
}
|
|
2314
|
+
db.exec("DROP TABLE IF EXISTS api_topic_plugin_variables");
|
|
2310
2315
|
if (!tableColumns("api_topics").has("subagent_report_mode")) {
|
|
2311
2316
|
db.exec("ALTER TABLE api_topics ADD COLUMN subagent_report_mode TEXT NOT NULL DEFAULT 'auto'");
|
|
2312
2317
|
}
|
|
@@ -2545,9 +2550,20 @@ function rowToDto(r, participants = getTopicParticipants(r.id), tellTargets) {
|
|
|
2545
2550
|
visibility: normalizeTopicVisibility(r.visibility),
|
|
2546
2551
|
surface: normalizeTopicSurface(r.surface),
|
|
2547
2552
|
surfaceScope: normalizeSurfaceScope(r.surface_scope),
|
|
2548
|
-
...r.browser_connect_port != null ? { browserConnectPort: r.browser_connect_port } : {}
|
|
2553
|
+
...r.browser_connect_port != null ? { browserConnectPort: r.browser_connect_port } : {},
|
|
2554
|
+
...pluginsField(r.plugins_json)
|
|
2549
2555
|
};
|
|
2550
2556
|
}
|
|
2557
|
+
function pluginsField(json) {
|
|
2558
|
+
if (!json)
|
|
2559
|
+
return {};
|
|
2560
|
+
try {
|
|
2561
|
+
const plugins = JSON.parse(json);
|
|
2562
|
+
return Array.isArray(plugins) && plugins.every((dir) => typeof dir === "string") ? { plugins } : {};
|
|
2563
|
+
} catch {
|
|
2564
|
+
return {};
|
|
2565
|
+
}
|
|
2566
|
+
}
|
|
2551
2567
|
function normalizeTopicVisibility(value) {
|
|
2552
2568
|
return value === "hidden" ? "hidden" : "visible";
|
|
2553
2569
|
}
|
|
@@ -3952,4 +3968,4 @@ function formatDateBucket(d) {
|
|
|
3952
3968
|
|
|
3953
3969
|
export { CLAUDE_EFFORT_VALUES, CODEX_EFFORT_VALUES, MAESTRO_EFFORT_VALUES, logger, MODEL_SONNET, MODEL_OPUS, MODEL_FABLE, MODEL_FABLE_5_2, configureRolloutHost2, FIXTURES_DIR, clone, assertUuidLike, ensureCwdExists, extractChatPairs2, parseJsonlText, writeJsonlFile, hostedCodexHomePath, extractLatestCodexPatchPreview2, extractCodexPatchCallIds2, readCodexPatchCallIds2, readLatestCodexPatchPreview2, extractLatestCodexContextUsage2, readLatestCodexContextUsage2, migrateCodexRolloutNativeMultiAgentMetadata2, latestCodexRolloutPath, writeCodexRollout2, decodeUuidV7Timestamp2 };
|
|
3954
3970
|
|
|
3955
|
-
//# debugId=
|
|
3971
|
+
//# debugId=CB41186BA4845D7464756E2164756E21
|