negotium 0.2.17 → 0.2.18

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 (34) hide show
  1. package/dist/agent-helpers.js +41 -32
  2. package/dist/agent-helpers.js.map +9 -9
  3. package/dist/{chunk-5cpdbbeh.js → chunk-fc58cqry.js} +3 -1
  4. package/dist/{chunk-5cpdbbeh.js.map → chunk-fc58cqry.js.map} +3 -3
  5. package/dist/hosted-agent.js +4 -2
  6. package/dist/hosted-agent.js.map +4 -4
  7. package/dist/main.js +662 -93
  8. package/dist/main.js.map +11 -11
  9. package/dist/mcp-factories.js +659 -91
  10. package/dist/mcp-factories.js.map +10 -10
  11. package/dist/prompts.js +8 -8
  12. package/dist/prompts.js.map +3 -3
  13. package/dist/registry.js +3 -3
  14. package/dist/registry.js.map +2 -2
  15. package/dist/rollout.js +1 -1
  16. package/dist/runtime/src/agents/idle-archiver.ts +3 -2
  17. package/dist/runtime/src/mcp/canonical-proxy-server.ts +18 -1
  18. package/dist/runtime/src/mcp/wiki-server.ts +801 -59
  19. package/dist/runtime/src/platform/mcp-config.ts +1 -0
  20. package/dist/runtime/src/prompts/agents/wiki-archiver.md +16 -6
  21. package/dist/runtime/src/prompts/builders.ts +17 -34
  22. package/dist/runtime/src/runtime/turn-runner.ts +14 -17
  23. package/dist/runtime/src/storage/api-topics.ts +13 -4
  24. package/dist/runtime/src/topics/lifecycle.ts +3 -2
  25. package/dist/runtime/src/types/api.ts +6 -0
  26. package/dist/runtime/src/version.ts +1 -1
  27. package/dist/storage.js +12 -6
  28. package/dist/storage.js.map +3 -3
  29. package/dist/types/packages/core/src/mcp/wiki-server.d.ts +4 -0
  30. package/dist/types/packages/core/src/prompts/builders.d.ts +2 -4
  31. package/dist/types/packages/core/src/storage/api-topics.d.ts +1 -0
  32. package/dist/types/packages/core/src/types/api.d.ts +6 -0
  33. package/dist/types/packages/core/src/version.d.ts +1 -1
  34. package/package.json +1 -1
@@ -91,10 +91,27 @@ const wikiTools: Tool[] = [
91
91
  description: "Search the canonical workspace wiki.",
92
92
  inputSchema: {
93
93
  type: "object",
94
- properties: { question: { type: "string" } },
94
+ properties: {
95
+ question: { type: "string" },
96
+ kind: { type: "string", enum: ["all", "topic", "article", "summary"] },
97
+ limit: { type: "number", minimum: 1, maximum: 20 },
98
+ },
95
99
  required: ["question"],
96
100
  },
97
101
  },
102
+ {
103
+ name: "wiki_read",
104
+ description: "Read a canonical wiki result and optionally adopt a topic memory.",
105
+ inputSchema: {
106
+ type: "object",
107
+ properties: {
108
+ kind: { type: "string", enum: ["topic", "article", "summary"] },
109
+ key: { type: "string" },
110
+ adopt: { type: "boolean" },
111
+ },
112
+ required: ["kind", "key"],
113
+ },
114
+ },
98
115
  {
99
116
  name: "wiki_topic_brief",
100
117
  description: "Read this canonical topic's brief.",