@otium-team/negotium 0.23.14 → 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.
Files changed (43) hide show
  1. package/dist/agent-helpers.js +956 -243
  2. package/dist/agent-helpers.js.map +12 -9
  3. package/dist/{chunk-3v58ejrk.js → chunk-3r4xfhkx.js} +3 -3
  4. package/dist/{chunk-3v58ejrk.js.map → chunk-3r4xfhkx.js.map} +2 -2
  5. package/dist/{chunk-ng13grfj.js → chunk-fzfzskjq.js} +18 -2
  6. package/dist/{chunk-ng13grfj.js.map → chunk-fzfzskjq.js.map} +4 -4
  7. package/dist/{chunk-m1ngkjdd.js → chunk-hn2cqdd0.js} +1 -1
  8. package/dist/hosted-agent.js +19 -3
  9. package/dist/hosted-agent.js.map +5 -5
  10. package/dist/main.js +38697 -37819
  11. package/dist/main.js.map +89 -85
  12. package/dist/mcp-factories.js +946 -227
  13. package/dist/mcp-factories.js.map +13 -10
  14. package/dist/prompts.js +221 -1
  15. package/dist/prompts.js.map +7 -5
  16. package/dist/registry.js +3 -3
  17. package/dist/rollout.js +2 -2
  18. package/dist/runtime/src/mcp/wiki-server.ts +8 -0
  19. package/dist/runtime/src/platform/mcp-config.ts +26 -0
  20. package/dist/runtime/src/prompts/builders.ts +5 -0
  21. package/dist/runtime/src/runtime/turn-runner.ts +104 -1
  22. package/dist/runtime/src/storage/api-topics.ts +29 -0
  23. package/dist/runtime/src/topics/agent-plugins/mcp.schema.json +120 -0
  24. package/dist/runtime/src/topics/agent-plugins/plugin.schema.json +65 -0
  25. package/dist/runtime/src/topics/plugin-server-instructions.ts +201 -0
  26. package/dist/runtime/src/topics/plugin-turn.ts +37 -0
  27. package/dist/runtime/src/topics/plugins.ts +445 -0
  28. package/dist/runtime/src/topics/update.ts +34 -0
  29. package/dist/runtime/src/types/api.ts +5 -0
  30. package/dist/runtime/src/version.ts +1 -1
  31. package/dist/storage.js +23 -2
  32. package/dist/storage.js.map +3 -3
  33. package/dist/types/packages/core/src/platform/mcp-config.d.ts +6 -0
  34. package/dist/types/packages/core/src/prompts/builders.d.ts +3 -0
  35. package/dist/types/packages/core/src/runtime/turn-runner.d.ts +14 -1
  36. package/dist/types/packages/core/src/storage/api-topics.d.ts +3 -0
  37. package/dist/types/packages/core/src/topics/plugin-server-instructions.d.ts +55 -0
  38. package/dist/types/packages/core/src/topics/plugin-turn.d.ts +17 -0
  39. package/dist/types/packages/core/src/topics/plugins.d.ts +66 -0
  40. package/dist/types/packages/core/src/types/api.d.ts +5 -0
  41. package/dist/types/packages/core/src/version.d.ts +1 -1
  42. package/package.json +1 -1
  43. /package/dist/{chunk-m1ngkjdd.js.map → chunk-hn2cqdd0.js.map} +0 -0
@@ -8,7 +8,7 @@ import {
8
8
  extractChatPairs2,
9
9
  parseJsonlText,
10
10
  writeJsonlFile
11
- } from "./chunk-ng13grfj.js";
11
+ } from "./chunk-fzfzskjq.js";
12
12
 
13
13
  // ../../packages/core/src/agents/rollout/claude.ts
14
14
  import { randomUUID } from "crypto";
@@ -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.23.14";
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=46992D8061A9877264756E2164756E21
6003
+ //# debugId=C41844C16FC5FFB364756E2164756E21