@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.
Files changed (47) hide show
  1. package/dist/agent-helpers.js +969 -245
  2. package/dist/agent-helpers.js.map +13 -10
  3. package/dist/{chunk-ng13grfj.js → chunk-fzfzskjq.js} +18 -2
  4. package/dist/{chunk-ng13grfj.js.map → chunk-fzfzskjq.js.map} +4 -4
  5. package/dist/{chunk-m1ngkjdd.js → chunk-hn2cqdd0.js} +1 -1
  6. package/dist/{chunk-3hf8y6bd.js → chunk-kfckfff2.js} +3 -3
  7. package/dist/{chunk-3hf8y6bd.js.map → chunk-kfckfff2.js.map} +2 -2
  8. package/dist/hosted-agent.js +19 -3
  9. package/dist/hosted-agent.js.map +5 -5
  10. package/dist/main.js +3744 -2928
  11. package/dist/main.js.map +18 -15
  12. package/dist/mcp-factories.js +959 -229
  13. package/dist/mcp-factories.js.map +14 -11
  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/agents/mcp-tools/ask-user.ts +56 -1
  19. package/dist/runtime/src/application/submit-runtime-gateway-turn.ts +71 -0
  20. package/dist/runtime/src/application/turn-follow-ups.ts +7 -0
  21. package/dist/runtime/src/mcp/wiki-server.ts +8 -0
  22. package/dist/runtime/src/platform/mcp-config.ts +26 -0
  23. package/dist/runtime/src/prompts/builders.ts +5 -0
  24. package/dist/runtime/src/runtime/turn-runner.ts +65 -1
  25. package/dist/runtime/src/storage/api-topics.ts +29 -0
  26. package/dist/runtime/src/topics/agent-plugins/mcp.schema.json +120 -0
  27. package/dist/runtime/src/topics/agent-plugins/plugin.schema.json +65 -0
  28. package/dist/runtime/src/topics/plugin-server-instructions.ts +201 -0
  29. package/dist/runtime/src/topics/plugin-turn.ts +37 -0
  30. package/dist/runtime/src/topics/plugins.ts +445 -0
  31. package/dist/runtime/src/topics/update.ts +34 -0
  32. package/dist/runtime/src/types/api.ts +5 -0
  33. package/dist/runtime/src/version.ts +1 -1
  34. package/dist/storage.js +23 -2
  35. package/dist/storage.js.map +3 -3
  36. package/dist/types/packages/core/src/agents/mcp-tools/ask-user.d.ts +14 -0
  37. package/dist/types/packages/core/src/platform/mcp-config.d.ts +6 -0
  38. package/dist/types/packages/core/src/prompts/builders.d.ts +3 -0
  39. package/dist/types/packages/core/src/runtime/turn-runner.d.ts +14 -1
  40. package/dist/types/packages/core/src/storage/api-topics.d.ts +3 -0
  41. package/dist/types/packages/core/src/topics/plugin-server-instructions.d.ts +55 -0
  42. package/dist/types/packages/core/src/topics/plugin-turn.d.ts +17 -0
  43. package/dist/types/packages/core/src/topics/plugins.d.ts +66 -0
  44. package/dist/types/packages/core/src/types/api.d.ts +5 -0
  45. package/dist/types/packages/core/src/version.d.ts +1 -1
  46. package/package.json +1 -1
  47. /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=D1C688B1C671E0A464756E2164756E21
3971
+ //# debugId=CB41186BA4845D7464756E2164756E21