@otium-team/negotium 0.23.15 → 0.24.0
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 +951 -243
- package/dist/agent-helpers.js.map +12 -9
- package/dist/{chunk-3hf8y6bd.js → chunk-3r4xfhkx.js} +3 -3
- package/dist/{chunk-3hf8y6bd.js.map → chunk-3r4xfhkx.js.map} +2 -2
- 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/hosted-agent.js +19 -3
- package/dist/hosted-agent.js.map +5 -5
- package/dist/main.js +3701 -2961
- package/dist/main.js.map +15 -12
- package/dist/mcp-factories.js +941 -227
- package/dist/mcp-factories.js.map +13 -10
- 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/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/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
package/dist/hosted-agent.js
CHANGED
|
@@ -1799,6 +1799,7 @@ function initializeApiTopicsSchema() {
|
|
|
1799
1799
|
browser_profile TEXT NOT NULL DEFAULT 'default',
|
|
1800
1800
|
browser_profile_owner TEXT,
|
|
1801
1801
|
browser_connect_port INTEGER,
|
|
1802
|
+
plugins_json TEXT,
|
|
1802
1803
|
session_id TEXT,
|
|
1803
1804
|
CHECK (
|
|
1804
1805
|
(kind = 'channel' AND response_policy = 'off' AND agent IS NULL) OR
|
|
@@ -1919,6 +1920,10 @@ function initializeApiTopicsSchema() {
|
|
|
1919
1920
|
if (!tableColumns("api_topics").has("browser_connect_port")) {
|
|
1920
1921
|
db.exec("ALTER TABLE api_topics ADD COLUMN browser_connect_port INTEGER");
|
|
1921
1922
|
}
|
|
1923
|
+
if (!tableColumns("api_topics").has("plugins_json")) {
|
|
1924
|
+
db.exec("ALTER TABLE api_topics ADD COLUMN plugins_json TEXT");
|
|
1925
|
+
}
|
|
1926
|
+
db.exec("DROP TABLE IF EXISTS api_topic_plugin_variables");
|
|
1922
1927
|
if (!tableColumns("api_topics").has("subagent_report_mode")) {
|
|
1923
1928
|
db.exec("ALTER TABLE api_topics ADD COLUMN subagent_report_mode TEXT NOT NULL DEFAULT 'auto'");
|
|
1924
1929
|
}
|
|
@@ -2157,9 +2162,20 @@ function rowToDto(r, participants = getTopicParticipants(r.id), tellTargets) {
|
|
|
2157
2162
|
visibility: normalizeTopicVisibility(r.visibility),
|
|
2158
2163
|
surface: normalizeTopicSurface(r.surface),
|
|
2159
2164
|
surfaceScope: normalizeSurfaceScope(r.surface_scope),
|
|
2160
|
-
...r.browser_connect_port != null ? { browserConnectPort: r.browser_connect_port } : {}
|
|
2165
|
+
...r.browser_connect_port != null ? { browserConnectPort: r.browser_connect_port } : {},
|
|
2166
|
+
...pluginsField(r.plugins_json)
|
|
2161
2167
|
};
|
|
2162
2168
|
}
|
|
2169
|
+
function pluginsField(json) {
|
|
2170
|
+
if (!json)
|
|
2171
|
+
return {};
|
|
2172
|
+
try {
|
|
2173
|
+
const plugins = JSON.parse(json);
|
|
2174
|
+
return Array.isArray(plugins) && plugins.every((dir) => typeof dir === "string") ? { plugins } : {};
|
|
2175
|
+
} catch {
|
|
2176
|
+
return {};
|
|
2177
|
+
}
|
|
2178
|
+
}
|
|
2163
2179
|
function normalizeTopicVisibility(value) {
|
|
2164
2180
|
return value === "hidden" ? "hidden" : "visible";
|
|
2165
2181
|
}
|
|
@@ -3781,7 +3797,7 @@ import { dirname as dirname5, join as join3 } from "path";
|
|
|
3781
3797
|
import { fileURLToPath } from "url";
|
|
3782
3798
|
|
|
3783
3799
|
// ../../packages/core/src/version.ts
|
|
3784
|
-
var NEGOTIUM_VERSION = "0.
|
|
3800
|
+
var NEGOTIUM_VERSION = "0.24.0";
|
|
3785
3801
|
|
|
3786
3802
|
// ../../packages/core/src/agents/codex-native-multi-agent.ts
|
|
3787
3803
|
function findPackageJson(specifier, searchFromDir) {
|
|
@@ -5984,4 +6000,4 @@ export {
|
|
|
5984
6000
|
toCodexMcpServers
|
|
5985
6001
|
};
|
|
5986
6002
|
|
|
5987
|
-
//# debugId=
|
|
6003
|
+
//# debugId=C41844C16FC5FFB364756E2164756E21
|