@indexnetwork/protocol 20.0.1-rc.485.1 → 21.0.0-rc.487.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 (264) hide show
  1. package/CHANGELOG.md +24 -0
  2. package/IMPLEMENTATION.md +1 -1
  3. package/dist/agents/{ports/agent.dispatcher.port.d.ts → agent.dispatcher.port.d.ts} +2 -2
  4. package/dist/agents/agent.module.d.ts +19 -0
  5. package/dist/agents/agent.module.js +11 -0
  6. package/dist/agents/{ports/agent.repository.port.d.ts → agent.repository.port.d.ts} +1 -1
  7. package/dist/agents/{application/agent.tools.d.ts → agent.tools.d.ts} +2 -2
  8. package/dist/agents/{application/agent.tools.js → agent.tools.js} +2 -2
  9. package/dist/chat/chat-streaming.types.d.ts +1 -1
  10. package/dist/chat/chat.agent.d.ts +1 -7
  11. package/dist/chat/chat.agent.js +0 -94
  12. package/dist/chat/chat.persona.d.ts +1 -2
  13. package/dist/chat/chat.prompt.js +1 -1
  14. package/dist/chat/chat.prompt.modules.d.ts +0 -2
  15. package/dist/chat/negotiator.prompt.d.ts +1 -1
  16. package/dist/chat/negotiator.prompt.js +1 -1
  17. package/dist/contacts/contact.module.d.ts +8 -0
  18. package/dist/contacts/contact.module.js +6 -0
  19. package/dist/contacts/{ports/contact.repository.port.d.ts → contact.repository.port.d.ts} +1 -1
  20. package/dist/contacts/{application/contact.tools.d.ts → contact.tools.d.ts} +2 -2
  21. package/dist/contacts/{application/contact.tools.js → contact.tools.js} +2 -2
  22. package/dist/contexts/context.module.d.ts +13 -0
  23. package/dist/contexts/context.module.js +12 -0
  24. package/dist/contexts/{ports/participant-context.tools.port.d.ts → context.tools.port.d.ts} +1 -1
  25. package/dist/discovery/hyde.graph.d.ts +1 -1
  26. package/dist/discovery/hyde.state.d.ts +1 -1
  27. package/dist/enrichment/enrichment.graph.d.ts +1 -1
  28. package/dist/enrichment/enrichment.state.d.ts +1 -1
  29. package/dist/enrichment/enrichment.tools.context-read.d.ts +1 -1
  30. package/dist/enrichment/enrichment.tools.context-write.d.ts +1 -1
  31. package/dist/enrichment/enrichment.tools.d.ts +1 -1
  32. package/dist/enrichment/enrichment.tools.helpers.d.ts +1 -1
  33. package/dist/index.d.ts +86 -87
  34. package/dist/index.js +61 -62
  35. package/dist/intents/graph/intent.graph.d.ts +1 -1
  36. package/dist/intents/graph/intent.graph.infer.d.ts +1 -1
  37. package/dist/intents/graph/intent.graph.reconcile.d.ts +1 -1
  38. package/dist/intents/graph/intent.graph.shared.d.ts +1 -1
  39. package/dist/intents/graph/intent.graph.state.d.ts +1 -1
  40. package/dist/intents/intent.module.d.ts +1 -1
  41. package/dist/maintenance/maintenance.graph.js +3 -3
  42. package/dist/mcp/mcp.server.js +1 -1
  43. package/dist/negotiations/{application/insight.generator.js → insight.generator.js} +4 -4
  44. package/dist/negotiations/{application/negotiation.agent.d.ts → negotiation.agent.d.ts} +6 -6
  45. package/dist/negotiations/{application/negotiation.agent.js → negotiation.agent.js} +9 -9
  46. package/dist/negotiations/negotiation.attribution.d.ts +1 -1
  47. package/dist/negotiations/{application/negotiation.candidates.d.ts → negotiation.candidates.d.ts} +5 -5
  48. package/dist/negotiations/{application/negotiation.candidates.js → negotiation.candidates.js} +1 -1
  49. package/dist/negotiations/{domain/negotiation.consultation-policy.d.ts → negotiation.consultation-policy.d.ts} +2 -2
  50. package/dist/negotiations/{application/negotiation.detail-reader.d.ts → negotiation.detail-reader.d.ts} +5 -5
  51. package/dist/negotiations/{application/negotiation.detail-reader.js → negotiation.detail-reader.js} +3 -3
  52. package/dist/negotiations/{application/negotiation.graph.d.ts → negotiation.graph.d.ts} +81 -81
  53. package/dist/negotiations/{application/negotiation.graph.finalize.js → negotiation.graph.finalize.js} +4 -4
  54. package/dist/negotiations/{application/negotiation.graph.init.d.ts → negotiation.graph.init.d.ts} +8 -8
  55. package/dist/negotiations/{application/negotiation.graph.init.js → negotiation.graph.init.js} +5 -5
  56. package/dist/negotiations/{application/negotiation.graph.js → negotiation.graph.js} +4 -4
  57. package/dist/negotiations/{application/negotiation.graph.screen.d.ts → negotiation.graph.screen.d.ts} +1 -1
  58. package/dist/negotiations/{application/negotiation.graph.screen.js → negotiation.graph.screen.js} +2 -2
  59. package/dist/negotiations/{application/negotiation.graph.shared.d.ts → negotiation.graph.shared.d.ts} +13 -13
  60. package/dist/negotiations/{application/negotiation.graph.shared.js → negotiation.graph.shared.js} +2 -2
  61. package/dist/negotiations/{application/negotiation.graph.turn.d.ts → negotiation.graph.turn.d.ts} +2 -2
  62. package/dist/negotiations/{application/negotiation.graph.turn.js → negotiation.graph.turn.js} +6 -6
  63. package/dist/negotiations/{domain/negotiation.hermes-contract.d.ts → negotiation.hermes-contract.d.ts} +1 -1
  64. package/dist/negotiations/{domain/negotiation.lifecycle-narration.d.ts → negotiation.lifecycle-narration.d.ts} +1 -1
  65. package/dist/negotiations/negotiation.module.d.ts +28 -0
  66. package/dist/negotiations/negotiation.module.js +19 -0
  67. package/dist/negotiations/{domain/negotiation.protocol.d.ts → negotiation.protocol.d.ts} +1 -1
  68. package/dist/negotiations/{domain/negotiation.protocol.js → negotiation.protocol.js} +1 -1
  69. package/dist/negotiations/{domain/negotiation.question-safety.js → negotiation.question-safety.js} +1 -1
  70. package/dist/negotiations/{application/negotiation.reflect.d.ts → negotiation.reflect.d.ts} +3 -3
  71. package/dist/negotiations/{application/negotiation.reflect.js → negotiation.reflect.js} +5 -5
  72. package/dist/negotiations/{application/negotiation.screen.d.ts → negotiation.screen.d.ts} +8 -8
  73. package/dist/negotiations/{application/negotiation.screen.js → negotiation.screen.js} +7 -7
  74. package/dist/negotiations/{domain/negotiation.state.d.ts → negotiation.state.d.ts} +2 -2
  75. package/dist/negotiations/{domain/negotiation.state.js → negotiation.state.js} +1 -1
  76. package/dist/negotiations/{application/negotiation.summarizer.d.ts → negotiation.summarizer.d.ts} +2 -2
  77. package/dist/negotiations/{application/negotiation.summarizer.js → negotiation.summarizer.js} +4 -4
  78. package/dist/negotiations/{application/negotiation.tools.d.ts → negotiation.tools.d.ts} +3 -3
  79. package/dist/negotiations/{application/negotiation.tools.js → negotiation.tools.js} +9 -9
  80. package/dist/negotiations/{ports/negotiation.tools.port.d.ts → negotiation.tools.port.d.ts} +4 -4
  81. package/dist/networks/indexer.graph.d.ts +1 -1
  82. package/dist/networks/indexer.state.d.ts +1 -1
  83. package/dist/opportunities/{application/delivery-card.cache.d.ts → delivery-card.cache.d.ts} +2 -2
  84. package/dist/opportunities/{application/delivery-card.cache.js → delivery-card.cache.js} +2 -2
  85. package/dist/opportunities/discriminator/discriminator.adjustments.d.ts +1 -1
  86. package/dist/opportunities/discriminator/discriminator.push.d.ts +1 -1
  87. package/dist/opportunities/discriminator/discriminator.question.d.ts +1 -1
  88. package/dist/opportunities/{application/negotiation-context.loader.d.ts → negotiation-context.loader.d.ts} +2 -2
  89. package/dist/opportunities/{application/negotiation-context.loader.js → negotiation-context.loader.js} +1 -1
  90. package/dist/opportunities/{domain/negotiation-summary.builder.d.ts → negotiation-summary.builder.d.ts} +2 -2
  91. package/dist/opportunities/{domain/opportunity.actor.d.ts → opportunity.actor.d.ts} +1 -1
  92. package/dist/opportunities/{application/opportunity.discovery-negotiation-summary.d.ts → opportunity.discovery-negotiation-summary.d.ts} +3 -3
  93. package/dist/opportunities/{application/opportunity.discovery-negotiation-summary.js → opportunity.discovery-negotiation-summary.js} +3 -3
  94. package/dist/opportunities/{application/opportunity.enricher.d.ts → opportunity.enricher.d.ts} +2 -2
  95. package/dist/opportunities/{application/opportunity.enricher.js → opportunity.enricher.js} +2 -2
  96. package/dist/opportunities/{application/opportunity.evaluator.d.ts → opportunity.evaluator.d.ts} +3 -3
  97. package/dist/opportunities/{application/opportunity.evaluator.js → opportunity.evaluator.js} +7 -7
  98. package/dist/opportunities/{domain/opportunity.evidence.d.ts → opportunity.evidence.d.ts} +1 -1
  99. package/dist/opportunities/{application/opportunity.existing-negotiation.d.ts → opportunity.existing-negotiation.d.ts} +2 -2
  100. package/dist/opportunities/{application/opportunity.existing-negotiation.js → opportunity.existing-negotiation.js} +1 -1
  101. package/dist/opportunities/{application/opportunity.feed-selection.d.ts → opportunity.feed-selection.d.ts} +2 -2
  102. package/dist/opportunities/{application/opportunity.feed-selection.js → opportunity.feed-selection.js} +1 -1
  103. package/dist/opportunities/{application/opportunity.graph.d.ts → opportunity.graph.d.ts} +130 -130
  104. package/dist/opportunities/{application/opportunity.graph.discovery-strategies.d.ts → opportunity.graph.discovery-strategies.d.ts} +5 -5
  105. package/dist/opportunities/{application/opportunity.graph.discovery-strategies.js → opportunity.graph.discovery-strategies.js} +5 -5
  106. package/dist/opportunities/{application/opportunity.graph.discovery.d.ts → opportunity.graph.discovery.d.ts} +3 -3
  107. package/dist/opportunities/{application/opportunity.graph.discovery.js → opportunity.graph.discovery.js} +6 -6
  108. package/dist/opportunities/{application/opportunity.graph.evaluation.d.ts → opportunity.graph.evaluation.d.ts} +3 -3
  109. package/dist/opportunities/{application/opportunity.graph.evaluation.js → opportunity.graph.evaluation.js} +8 -8
  110. package/dist/opportunities/{application/opportunity.graph.js → opportunity.graph.js} +13 -13
  111. package/dist/opportunities/{application/opportunity.graph.modes.d.ts → opportunity.graph.modes.d.ts} +37 -37
  112. package/dist/opportunities/{application/opportunity.graph.modes.js → opportunity.graph.modes.js} +9 -9
  113. package/dist/opportunities/{application/opportunity.graph.negotiate.d.ts → opportunity.graph.negotiate.d.ts} +4 -4
  114. package/dist/opportunities/{application/opportunity.graph.negotiate.js → opportunity.graph.negotiate.js} +6 -6
  115. package/dist/opportunities/{application/opportunity.graph.persist-node.d.ts → opportunity.graph.persist-node.d.ts} +2 -2
  116. package/dist/opportunities/{application/opportunity.graph.persist-node.js → opportunity.graph.persist-node.js} +9 -9
  117. package/dist/opportunities/{application/opportunity.graph.prep.d.ts → opportunity.graph.prep.d.ts} +4 -4
  118. package/dist/opportunities/{application/opportunity.graph.prep.js → opportunity.graph.prep.js} +6 -6
  119. package/dist/opportunities/{application/opportunity.graph.shared.d.ts → opportunity.graph.shared.d.ts} +28 -28
  120. package/dist/opportunities/{application/opportunity.graph.shared.js → opportunity.graph.shared.js} +4 -4
  121. package/dist/opportunities/{application/opportunity.introducer.js → opportunity.introducer.js} +1 -1
  122. package/dist/opportunities/{application/opportunity.lifecycle.d.ts → opportunity.lifecycle.d.ts} +1 -1
  123. package/dist/opportunities/{index.d.ts → opportunity.module.d.ts} +24 -24
  124. package/dist/opportunities/{index.js → opportunity.module.js} +16 -16
  125. package/dist/opportunities/{application/opportunity.newborn-stamping.d.ts → opportunity.newborn-stamping.d.ts} +1 -1
  126. package/dist/opportunities/{application/opportunity.owner-provenance.d.ts → opportunity.owner-provenance.d.ts} +1 -1
  127. package/dist/opportunities/{application/opportunity.pending-questions.d.ts → opportunity.pending-questions.d.ts} +1 -1
  128. package/dist/opportunities/{application/opportunity.pending-questions.js → opportunity.pending-questions.js} +1 -1
  129. package/dist/opportunities/{application/opportunity.persist.d.ts → opportunity.persist.d.ts} +3 -3
  130. package/dist/opportunities/{application/opportunity.persist.js → opportunity.persist.js} +3 -3
  131. package/dist/opportunities/{application/opportunity.persistence-admission.d.ts → opportunity.persistence-admission.d.ts} +1 -1
  132. package/dist/opportunities/{application/opportunity.presentation.d.ts → opportunity.presentation.d.ts} +3 -3
  133. package/dist/opportunities/{application/opportunity.presentation.js → opportunity.presentation.js} +6 -6
  134. package/dist/opportunities/{domain/opportunity.state.d.ts → opportunity.state.d.ts} +6 -6
  135. package/dist/opportunities/{application/opportunity.tools.cards.d.ts → opportunity.tools.cards.d.ts} +4 -4
  136. package/dist/opportunities/{application/opportunity.tools.cards.js → opportunity.tools.cards.js} +2 -2
  137. package/dist/opportunities/{application/opportunity.tools.d.ts → opportunity.tools.d.ts} +2 -2
  138. package/dist/opportunities/{application/opportunity.tools.js → opportunity.tools.js} +7 -7
  139. package/dist/opportunities/{application/opportunity.tools.list.d.ts → opportunity.tools.list.d.ts} +2 -2
  140. package/dist/opportunities/{application/opportunity.tools.list.js → opportunity.tools.list.js} +4 -4
  141. package/dist/opportunities/{ports/opportunity.tools.port.d.ts → opportunity.tools.port.d.ts} +2 -2
  142. package/dist/opportunities/{application/opportunity.update-admission.d.ts → opportunity.update-admission.d.ts} +1 -1
  143. package/dist/opportunities/{domain/opportunity.utils.d.ts → opportunity.utils.d.ts} +3 -3
  144. package/dist/opportunities/{domain/opportunity.utils.js → opportunity.utils.js} +3 -3
  145. package/dist/opportunities/radar/radar.graph.d.ts +2 -2
  146. package/dist/opportunities/radar/radar.graph.js +6 -6
  147. package/dist/opportunities/radar/radar.health.js +1 -1
  148. package/dist/opportunities/radar/radar.state.d.ts +1 -1
  149. package/dist/premises/premise.graph.d.ts +1 -1
  150. package/dist/premises/premise.state.d.ts +1 -1
  151. package/dist/premises/premise.tools.d.ts +1 -1
  152. package/dist/questions/question.input.d.ts +1 -1
  153. package/dist/questions/question.input.js +1 -1
  154. package/dist/questions/question.presets.js +1 -1
  155. package/dist/shared/agent/tool.factory.d.ts +1 -1
  156. package/dist/shared/agent/tool.factory.js +9 -10
  157. package/dist/shared/agent/tool.helpers.d.ts +4 -12
  158. package/dist/shared/agent/tool.helpers.js +1 -2
  159. package/dist/shared/agent/tool.registry.d.ts +1 -1
  160. package/dist/shared/agent/tool.registry.js +5 -5
  161. package/dist/shared/interfaces/agent-dispatcher.interface.d.ts +1 -1
  162. package/package.json +1 -1
  163. package/dist/agents/application/index.d.ts +0 -23
  164. package/dist/agents/application/index.js +0 -24
  165. package/dist/agents/domain/index.d.ts +0 -19
  166. package/dist/agents/domain/index.js +0 -1
  167. package/dist/agents/index.d.ts +0 -22
  168. package/dist/agents/index.js +0 -12
  169. package/dist/agents/ports/index.d.ts +0 -27
  170. package/dist/agents/ports/index.js +0 -25
  171. package/dist/chat/reporter.action.contracts.d.ts +0 -36
  172. package/dist/chat/reporter.action.tools.d.ts +0 -17
  173. package/dist/chat/reporter.action.tools.js +0 -145
  174. package/dist/chat/reporter.persona.d.ts +0 -31
  175. package/dist/chat/reporter.persona.js +0 -207
  176. package/dist/chat/reporter.prompt.d.ts +0 -24
  177. package/dist/chat/reporter.prompt.js +0 -149
  178. package/dist/contacts/application/index.d.ts +0 -10
  179. package/dist/contacts/application/index.js +0 -10
  180. package/dist/contacts/domain/index.d.ts +0 -12
  181. package/dist/contacts/domain/index.js +0 -1
  182. package/dist/contacts/index.d.ts +0 -9
  183. package/dist/contacts/index.js +0 -8
  184. package/dist/contacts/ports/index.d.ts +0 -19
  185. package/dist/contacts/ports/index.js +0 -18
  186. package/dist/contexts/application/index.d.ts +0 -72
  187. package/dist/contexts/application/index.js +0 -82
  188. package/dist/contexts/domain/index.d.ts +0 -67
  189. package/dist/contexts/domain/index.js +0 -68
  190. package/dist/contexts/index.d.ts +0 -13
  191. package/dist/contexts/index.js +0 -12
  192. package/dist/contexts/ports/index.d.ts +0 -37
  193. package/dist/contexts/ports/index.js +0 -34
  194. package/dist/contexts/ports/participant-context.tools.port.js +0 -1
  195. package/dist/negotiations/application/index.d.ts +0 -48
  196. package/dist/negotiations/application/index.js +0 -49
  197. package/dist/negotiations/domain/index.d.ts +0 -56
  198. package/dist/negotiations/domain/index.js +0 -57
  199. package/dist/negotiations/index.d.ts +0 -12
  200. package/dist/negotiations/index.js +0 -9
  201. package/dist/negotiations/ports/index.d.ts +0 -16
  202. package/dist/negotiations/ports/index.js +0 -16
  203. package/dist/opportunities/application/index.d.ts +0 -59
  204. package/dist/opportunities/application/index.js +0 -64
  205. package/dist/opportunities/domain/index.d.ts +0 -51
  206. package/dist/opportunities/domain/index.js +0 -48
  207. package/dist/opportunities/ports/index.d.ts +0 -5
  208. package/dist/opportunities/ports/index.js +0 -1
  209. /package/dist/agents/{ports/agent.dispatcher.port.js → agent.dispatcher.port.js} +0 -0
  210. /package/dist/agents/{ports/agent.repository.port.js → agent.repository.port.js} +0 -0
  211. /package/dist/agents/{ports/agent.tools.port.d.ts → agent.tools.port.d.ts} +0 -0
  212. /package/dist/agents/{ports/agent.tools.port.js → agent.tools.port.js} +0 -0
  213. /package/dist/agents/{domain/agent.types.d.ts → agent.types.d.ts} +0 -0
  214. /package/dist/agents/{domain/agent.types.js → agent.types.js} +0 -0
  215. /package/dist/contacts/{ports/contact.repository.port.js → contact.repository.port.js} +0 -0
  216. /package/dist/contacts/{ports/contact.tools.port.d.ts → contact.tools.port.d.ts} +0 -0
  217. /package/dist/contacts/{ports/contact.tools.port.js → contact.tools.port.js} +0 -0
  218. /package/dist/contacts/{domain/contact.types.d.ts → contact.types.d.ts} +0 -0
  219. /package/dist/contacts/{domain/contact.types.js → contact.types.js} +0 -0
  220. /package/dist/{chat/reporter.action.contracts.js → contexts/context.tools.port.js} +0 -0
  221. /package/dist/negotiations/{application/insight.generator.d.ts → insight.generator.d.ts} +0 -0
  222. /package/dist/negotiations/{domain/negotiation.consultation-policy.js → negotiation.consultation-policy.js} +0 -0
  223. /package/dist/negotiations/{domain/negotiation.deadlock.contracts.d.ts → negotiation.deadlock.contracts.d.ts} +0 -0
  224. /package/dist/negotiations/{domain/negotiation.deadlock.contracts.js → negotiation.deadlock.contracts.js} +0 -0
  225. /package/dist/negotiations/{domain/negotiation.deadlock.d.ts → negotiation.deadlock.d.ts} +0 -0
  226. /package/dist/negotiations/{domain/negotiation.deadlock.js → negotiation.deadlock.js} +0 -0
  227. /package/dist/negotiations/{domain/negotiation.expected-speaker.d.ts → negotiation.expected-speaker.d.ts} +0 -0
  228. /package/dist/negotiations/{domain/negotiation.expected-speaker.js → negotiation.expected-speaker.js} +0 -0
  229. /package/dist/negotiations/{application/negotiation.graph.finalize.d.ts → negotiation.graph.finalize.d.ts} +0 -0
  230. /package/dist/negotiations/{domain/negotiation.hermes-contract.js → negotiation.hermes-contract.js} +0 -0
  231. /package/dist/negotiations/{domain/negotiation.intent-snapshot-provenance.d.ts → negotiation.intent-snapshot-provenance.d.ts} +0 -0
  232. /package/dist/negotiations/{domain/negotiation.intent-snapshot-provenance.js → negotiation.intent-snapshot-provenance.js} +0 -0
  233. /package/dist/negotiations/{domain/negotiation.lifecycle-narration.js → negotiation.lifecycle-narration.js} +0 -0
  234. /package/dist/negotiations/{domain/negotiation.memory.d.ts → negotiation.memory.d.ts} +0 -0
  235. /package/dist/negotiations/{domain/negotiation.memory.js → negotiation.memory.js} +0 -0
  236. /package/dist/negotiations/{domain/negotiation.question-safety.d.ts → negotiation.question-safety.d.ts} +0 -0
  237. /package/dist/negotiations/{domain/negotiation.screen.contracts.d.ts → negotiation.screen.contracts.d.ts} +0 -0
  238. /package/dist/negotiations/{domain/negotiation.screen.contracts.js → negotiation.screen.contracts.js} +0 -0
  239. /package/dist/negotiations/{domain/negotiation.stance.contracts.d.ts → negotiation.stance.contracts.d.ts} +0 -0
  240. /package/dist/negotiations/{domain/negotiation.stance.contracts.js → negotiation.stance.contracts.js} +0 -0
  241. /package/dist/negotiations/{domain/negotiation.task-lock-policy.d.ts → negotiation.task-lock-policy.d.ts} +0 -0
  242. /package/dist/negotiations/{domain/negotiation.task-lock-policy.js → negotiation.task-lock-policy.js} +0 -0
  243. /package/dist/negotiations/{ports/negotiation.tools.port.js → negotiation.tools.port.js} +0 -0
  244. /package/dist/negotiations/{domain/negotiation.turn-cap.d.ts → negotiation.turn-cap.d.ts} +0 -0
  245. /package/dist/negotiations/{domain/negotiation.turn-cap.js → negotiation.turn-cap.js} +0 -0
  246. /package/dist/opportunities/{domain/negotiation-summary.builder.js → negotiation-summary.builder.js} +0 -0
  247. /package/dist/opportunities/{domain/opportunity.actor.js → opportunity.actor.js} +0 -0
  248. /package/dist/opportunities/{domain/opportunity.evidence.js → opportunity.evidence.js} +0 -0
  249. /package/dist/opportunities/{application/opportunity.introducer-feature.d.ts → opportunity.introducer-feature.d.ts} +0 -0
  250. /package/dist/opportunities/{application/opportunity.introducer-feature.js → opportunity.introducer-feature.js} +0 -0
  251. /package/dist/opportunities/{application/opportunity.introducer.d.ts → opportunity.introducer.d.ts} +0 -0
  252. /package/dist/opportunities/{domain/opportunity.labels.d.ts → opportunity.labels.d.ts} +0 -0
  253. /package/dist/opportunities/{domain/opportunity.labels.js → opportunity.labels.js} +0 -0
  254. /package/dist/opportunities/{application/opportunity.lifecycle.js → opportunity.lifecycle.js} +0 -0
  255. /package/dist/opportunities/{application/opportunity.newborn-stamping.js → opportunity.newborn-stamping.js} +0 -0
  256. /package/dist/opportunities/{application/opportunity.owner-approval.d.ts → opportunity.owner-approval.d.ts} +0 -0
  257. /package/dist/opportunities/{application/opportunity.owner-approval.js → opportunity.owner-approval.js} +0 -0
  258. /package/dist/opportunities/{application/opportunity.owner-provenance.js → opportunity.owner-provenance.js} +0 -0
  259. /package/dist/opportunities/{application/opportunity.persistence-admission.js → opportunity.persistence-admission.js} +0 -0
  260. /package/dist/opportunities/{domain/opportunity.state.js → opportunity.state.js} +0 -0
  261. /package/dist/opportunities/{ports/opportunity.tools.port.js → opportunity.tools.port.js} +0 -0
  262. /package/dist/opportunities/{application/opportunity.update-admission.js → opportunity.update-admission.js} +0 -0
  263. /package/dist/questions/{index.d.ts → question.module.d.ts} +0 -0
  264. /package/dist/questions/{index.js → question.module.js} +0 -0
package/CHANGELOG.md CHANGED
@@ -20,6 +20,30 @@ went 6.7.1 → 8.0.2 with no 7.x in between because the whole 7.x line shipped a
20
20
  prereleases between the two promotions. To track every change, read `rc`; to
21
21
  pin a supported release, use `latest`.
22
22
 
23
+ ## 21.0.0 - 2026-08-17
24
+
25
+ ### Removed
26
+
27
+ - **Breaking:** remove the Agent reporter persona. `REPORTER_PERSONA`,
28
+ `REPORTER_PERSONA_ID`, `REPORTER_BRIEFING_KICKOFF`, `REPORTER_TOOL_NAMES`,
29
+ `createReporterTools`, `filterReporterTools` and `narrowReporterTools` are
30
+ gone from the package entry point, along with `reporter.persona.ts`,
31
+ `reporter.prompt.ts` and the `propose_cleanup_actions` tool
32
+ (`reporter.action.tools.ts`, `reporter.action.contracts.ts`). Hosts that named
33
+ the `reporter` persona must pick another; unknown personas already fail closed.
34
+ - **Breaking:** drop `actionToolsEnabled` from `ToolContext`/`ToolDeps`/
35
+ `ResolvedToolContext` and `actionProposalStore` from `ToolDeps`. Both existed
36
+ solely to gate the reporter's cleanup-action tool. `resolveChatContext()` no
37
+ longer accepts or returns `actionToolsEnabled`.
38
+ - Remove `ChatAgent.hasPriorAgentActionProposal()`, the
39
+ ```agent_action_proposal``` fence parser behind it, and
40
+ `IterationContext.hasPriorAgentActionProposal`. The reporter prompt was the
41
+ only consumer, so all of it became dead with the persona.
42
+
43
+ `read_activity_summary` and the whole `activity-projection` module are
44
+ **unchanged** — they are shared utility tools registered for every persona and
45
+ exposed on the MCP server, not reporter-specific.
46
+
23
47
  ## 20.0.1 - 2026-08-17
24
48
 
25
49
  ### Changed
package/IMPLEMENTATION.md CHANGED
@@ -173,7 +173,7 @@ The intent and community graphs are the exceptions: they are reached through the
173
173
 
174
174
  ### Persisted chat personas
175
175
 
176
- `ChatGraphFactory.withPersona()` keeps the runtime neutral while selecting an exported persona configuration. `SIGNAL_PERSONA`, `REPORTER_PERSONA`, and `ONBOARDING_PERSONA` each own an exact positive tool allowlist; shared tools added later remain unavailable until reviewed. `ONBOARDING_PERSONA` reuses Signal's proposal-only, live-membership-narrowed `create_intent` contract and otherwise exposes only privacy consent, approved self-context preview/confirmation, guided questions, and validated completion. Hosts must persist the exported persona ID on session creation and treat it as authoritative on follow-ups.
176
+ `ChatGraphFactory.withPersona()` keeps the runtime neutral while selecting an exported persona configuration. `SIGNAL_PERSONA` and `ONBOARDING_PERSONA` each own an exact positive tool allowlist; shared tools added later remain unavailable until reviewed. `ONBOARDING_PERSONA` reuses Signal's proposal-only, live-membership-narrowed `create_intent` contract and otherwise exposes only privacy consent, approved self-context preview/confirmation, guided questions, and validated completion. Hosts must persist the exported persona ID on session creation and treat it as authoritative on follow-ups.
177
177
 
178
178
  ## Intents
179
179
 
@@ -13,7 +13,7 @@
13
13
  * agent.dispatcher.port (participant-agents) → capabilities/negotiation.facade
14
14
  * (the facade represents the negotiation implementation boundary) →
15
15
  * negotiation.graph.ts → shared/interfaces/agent-dispatcher.interface.ts
16
- * (shim) → agents/ports/index.ts → agent.dispatcher.port
16
+ * (shim) → agents/agent.dispatcher.port
17
17
  *
18
18
  * The solution is to leave shared/interfaces/agent-dispatcher.interface.ts as
19
19
  * the authoritative file and surface its types through the participant-agents
@@ -22,4 +22,4 @@
22
22
  * IND-548: agents/ports re-exports the dispatcher contract
23
23
  * established in shared/interfaces/agent-dispatcher.interface.ts.
24
24
  */
25
- export type { AgentDispatcher, AgentDispatchResult, NegotiationTurnPayload, } from '../../shared/interfaces/agent-dispatcher.interface.js';
25
+ export type { AgentDispatcher, AgentDispatchResult, NegotiationTurnPayload, } from '../shared/interfaces/agent-dispatcher.interface.js';
@@ -0,0 +1,19 @@
1
+ /**
2
+ * participant-agents — the capability's sole cross-capability surface.
3
+ *
4
+ * Anything outside this capability imports from here and nowhere else.
5
+ */
6
+ export type { DebugMetaAgent } from "../chat/chat-streaming.types.js";
7
+ export { ChatGraphFactory } from "../chat/chat.graph.js";
8
+ export { ChatInterruptClassifier } from "../chat/chat.interrupt.classifier.js";
9
+ export type { ChatPersonaConfig } from "../chat/chat.persona.js";
10
+ export { SuggestionGenerator } from "../chat/chat.suggester.js";
11
+ export { ChatSummarizer } from "../chat/chat.summarizer.js";
12
+ export { ChatTitleGenerator } from "../chat/chat.title.generator.js";
13
+ export { createChatTools } from "../chat/chat.tools.js";
14
+ export { createNegotiatorPersona, NEGOTIATOR_PERSONA_ID } from "../chat/negotiator.persona.js";
15
+ export { createOnboardingTools, filterOnboardingTools, narrowOnboardingTools, ONBOARDING_PERSONA, ONBOARDING_PERSONA_ID, ONBOARDING_PROFILE_KICKOFF, ONBOARDING_TOOL_NAMES, } from "../chat/onboarding.persona.js";
16
+ export { createSignalTools, filterSignalTools, narrowSignalTools, SIGNAL_NEW_SIGNAL_KICKOFF, SIGNAL_PERSONA, SIGNAL_PERSONA_ID, SIGNAL_TOOL_NAMES, } from "../chat/signal.persona.js";
17
+ export { createAgentTools } from "./agent.tools.js";
18
+ export { SYSTEM_AGENT_IDS } from "./agent.types.js";
19
+ export type { AgentToolDeps } from "./agent.tools.port.js";
@@ -0,0 +1,11 @@
1
+ export { ChatGraphFactory } from "../chat/chat.graph.js";
2
+ export { ChatInterruptClassifier } from "../chat/chat.interrupt.classifier.js";
3
+ export { SuggestionGenerator } from "../chat/chat.suggester.js";
4
+ export { ChatSummarizer } from "../chat/chat.summarizer.js";
5
+ export { ChatTitleGenerator } from "../chat/chat.title.generator.js";
6
+ export { createChatTools } from "../chat/chat.tools.js";
7
+ export { createNegotiatorPersona, NEGOTIATOR_PERSONA_ID } from "../chat/negotiator.persona.js";
8
+ export { createOnboardingTools, filterOnboardingTools, narrowOnboardingTools, ONBOARDING_PERSONA, ONBOARDING_PERSONA_ID, ONBOARDING_PROFILE_KICKOFF, ONBOARDING_TOOL_NAMES, } from "../chat/onboarding.persona.js";
9
+ export { createSignalTools, filterSignalTools, narrowSignalTools, SIGNAL_NEW_SIGNAL_KICKOFF, SIGNAL_PERSONA, SIGNAL_PERSONA_ID, SIGNAL_TOOL_NAMES, } from "../chat/signal.persona.js";
10
+ export { createAgentTools } from "./agent.tools.js";
11
+ export { SYSTEM_AGENT_IDS } from "./agent.types.js";
@@ -7,7 +7,7 @@
7
7
  * IND-548: extracted from shared/interfaces/agent.interface.ts into the
8
8
  * participant-agents capability's dedicated ports layer.
9
9
  */
10
- import type { AgentRecord, AgentTransportRecord, AgentPermissionRecord, AgentWithRelations, CreateAgentInput, CreateTransportInput, GrantPermissionInput } from "../domain/index.js";
10
+ import type { AgentRecord, AgentTransportRecord, AgentPermissionRecord, AgentWithRelations, CreateAgentInput, CreateTransportInput, GrantPermissionInput } from "./agent.types.js";
11
11
  /**
12
12
  * Database adapter interface for agent registry operations.
13
13
  *
@@ -11,6 +11,6 @@
11
11
  * IND-548: migrated from src/agent/agent.tools.ts.
12
12
  * Legacy path (src/agent/agent.tools.ts) is a thin compatibility shim.
13
13
  */
14
- import type { DefineTool } from '../../shared/agent/tool.helpers.js';
15
- import type { AgentToolDeps } from '../ports/index.js';
14
+ import type { DefineTool } from '../shared/agent/tool.helpers.js';
15
+ import type { AgentToolDeps } from './agent.tools.port.js';
16
16
  export declare function createAgentTools(defineTool: DefineTool, deps: AgentToolDeps): never[] | readonly [any, any, any, any, any, any, any];
@@ -12,8 +12,8 @@
12
12
  * Legacy path (src/agent/agent.tools.ts) is a thin compatibility shim.
13
13
  */
14
14
  import { z } from 'zod';
15
- import { error, success } from '../../shared/agent/tool.helpers.js';
16
- import { protocolLogger } from '../../shared/observability/protocol.logger.js';
15
+ import { error, success } from '../shared/agent/tool.helpers.js';
16
+ import { protocolLogger } from '../shared/observability/protocol.logger.js';
17
17
  const logger = protocolLogger('ChatTools:Agent');
18
18
  const AGENT_ACTIONS = [
19
19
  'manage:identity',
@@ -4,7 +4,7 @@
4
4
  * These types define the structure of events sent during streaming chat responses.
5
5
  * Events are sent as Server-Sent Events (SSE) with JSON payloads.
6
6
  */
7
- import type { Question } from "../questions/index.js";
7
+ import type { Question } from "../questions/question.module.js";
8
8
  export type ChatStreamEventType = "status" | "routing" | "thinking" | "subgraph_start" | "subgraph_result" | "token" | "done" | "error" | "tool_start" | "tool_end" | "agent_thinking" | "tool_activity" | "iteration_start" | "llm_start" | "llm_end" | "response_complete" | "response_reset" | "debug_meta" | "graph_start" | "graph_end" | "phase_start" | "phase_end" | "agent_start" | "agent_end" | "hallucination_detected" | "negotiation_session_start" | "negotiation_session_end" | "negotiation_turn" | "negotiation_outcome" | "chat_summarizer_start" | "chat_summarizer_end" | "decision_questions" | "user_question" | "steer_or_queue";
9
9
  /**
10
10
  * Base interface for all chat stream events.
@@ -2,7 +2,7 @@ import { BaseMessage } from "@langchain/core/messages";
2
2
  import type { ToolContext } from "../shared/agent/tool.factory.js";
3
3
  import type { ChatPersonaConfig } from "./chat.persona.js";
4
4
  import type { DebugMetaToolCall, DebugMetaLlm, DebugMetaOrchestratorNegotiations } from "./chat-streaming.types.js";
5
- import type { Question } from "../questions/index.js";
5
+ import type { Question } from "../questions/question.module.js";
6
6
  export { ITERATION_NUDGE } from "./chat.prompt.js";
7
7
  /**
8
8
  * Writer callback for streaming custom data out of the graph node.
@@ -195,12 +195,6 @@ export declare class ChatAgent {
195
195
  * Extracts the text content of the most recent HumanMessage.
196
196
  */
197
197
  private static getCurrentUserMessage;
198
- /**
199
- * Detects a prior visible action proposal without considering current-turn
200
- * tool calls. The reporter uses this only to make typed confirmation
201
- * language contextual rather than executable on its own.
202
- */
203
- static hasPriorAgentActionProposal(messages: BaseMessage[]): boolean;
204
198
  /**
205
199
  * Async factory: creates a ChatAgent with resolved user/index context.
206
200
  * Resolves user/network identity from DB during tool initialization.
@@ -19,55 +19,6 @@ import { sanitizeForDebugMeta } from "../shared/observability/debug-meta.sanitiz
19
19
  import { Timed } from "../shared/observability/performance.js";
20
20
  import { requestContext } from "../shared/observability/request-context.js";
21
21
  import { deduplicateQuestions } from "./chat.question-dedup.js";
22
- const AGENT_ACTION_PROPOSAL_FENCE_PATTERN = /```agent_action_proposal\s*\n([\s\S]*?)\n```/g;
23
- const AGENT_ACTION_PROPOSAL_KEYS = new Set(["proposalId", "actions"]);
24
- const AGENT_ACTION_KEYS = new Set([
25
- "type",
26
- "entityId",
27
- "currentState",
28
- "proposedOperation",
29
- "skipped",
30
- "reason",
31
- "description",
32
- "evidence",
33
- ]);
34
- const AGENT_ACTION_OPERATIONS = {
35
- retract_premise: "RETRACT_PREMISE",
36
- narrow_signal: "NARROW_SIGNAL",
37
- pause_signal: "PAUSE_SIGNAL",
38
- };
39
- function isVisibleAgentActionProposal(payload) {
40
- if (!payload || typeof payload !== "object" || Array.isArray(payload))
41
- return false;
42
- const proposal = payload;
43
- if (Object.keys(proposal).some((key) => !AGENT_ACTION_PROPOSAL_KEYS.has(key)))
44
- return false;
45
- if (typeof proposal.proposalId !== "string"
46
- || !/^[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/i.test(proposal.proposalId)
47
- || !Array.isArray(proposal.actions)
48
- || proposal.actions.length < 1
49
- || proposal.actions.length > 5)
50
- return false;
51
- return proposal.actions.every((rawAction) => {
52
- if (!rawAction || typeof rawAction !== "object" || Array.isArray(rawAction))
53
- return false;
54
- const action = rawAction;
55
- if (Object.keys(action).some((key) => !AGENT_ACTION_KEYS.has(key)))
56
- return false;
57
- if (typeof action.type !== "string" || !(action.type in AGENT_ACTION_OPERATIONS))
58
- return false;
59
- const type = action.type;
60
- if (action.proposedOperation !== AGENT_ACTION_OPERATIONS[type])
61
- return false;
62
- if (typeof action.entityId !== "string" || !action.entityId.trim())
63
- return false;
64
- if (typeof action.currentState !== "string" || !action.currentState.trim())
65
- return false;
66
- if (action.skipped !== undefined && typeof action.skipped !== "boolean")
67
- return false;
68
- return ["reason", "description", "evidence"].every((key) => action[key] === undefined || typeof action[key] === "string");
69
- });
70
- }
71
22
  const logger = protocolLogger("ChatAgent");
72
23
  // Re-export for external consumers
73
24
  export { ITERATION_NUDGE } from "./chat.prompt.js";
@@ -143,48 +94,6 @@ export class ChatAgent {
143
94
  }
144
95
  return undefined;
145
96
  }
146
- /**
147
- * Detects a prior visible action proposal without considering current-turn
148
- * tool calls. The reporter uses this only to make typed confirmation
149
- * language contextual rather than executable on its own.
150
- */
151
- static hasPriorAgentActionProposal(messages) {
152
- let currentHumanIndex = -1;
153
- let previousHumanIndex = -1;
154
- for (let index = messages.length - 1; index >= 0; index -= 1) {
155
- if (messages[index]._getType() !== "human")
156
- continue;
157
- if (currentHumanIndex < 0) {
158
- currentHumanIndex = index;
159
- }
160
- else {
161
- previousHumanIndex = index;
162
- break;
163
- }
164
- }
165
- if (currentHumanIndex < 0 || previousHumanIndex < 0)
166
- return false;
167
- let latestAssistant;
168
- for (let index = currentHumanIndex - 1; index > previousHumanIndex; index -= 1) {
169
- if (messages[index]._getType() === "ai") {
170
- latestAssistant = messages[index];
171
- break;
172
- }
173
- }
174
- if (!latestAssistant || typeof latestAssistant.content !== "string")
175
- return false;
176
- AGENT_ACTION_PROPOSAL_FENCE_PATTERN.lastIndex = 0;
177
- for (const match of latestAssistant.content.matchAll(AGENT_ACTION_PROPOSAL_FENCE_PATTERN)) {
178
- try {
179
- if (isVisibleAgentActionProposal(JSON.parse(match[1])))
180
- return true;
181
- }
182
- catch {
183
- // An invalid prior fence is not visible proposal context.
184
- }
185
- }
186
- return false;
187
- }
188
97
  /**
189
98
  * Async factory: creates a ChatAgent with resolved user/index context.
190
99
  * Resolves user/network identity from DB during tool initialization.
@@ -204,7 +113,6 @@ export class ChatAgent {
204
113
  userId: context.userId,
205
114
  networkId: scopedNetworkId,
206
115
  sessionId: context.sessionId,
207
- actionToolsEnabled: context.actionToolsEnabled,
208
116
  });
209
117
  if (explicitScope.scopeType && explicitScope.scopeId) {
210
118
  resolved.scopeType = explicitScope.scopeType;
@@ -224,7 +132,6 @@ export class ChatAgent {
224
132
  const iterCtx = {
225
133
  recentTools: extractRecentToolCalls(messages),
226
134
  currentMessage: ChatAgent.getCurrentUserMessage(messages),
227
- hasPriorAgentActionProposal: ChatAgent.hasPriorAgentActionProposal(messages),
228
135
  ctx: this.resolvedContext,
229
136
  };
230
137
  const deterministicResponse = this.persona.resolveDeterministicResponse?.(this.resolvedContext, iterCtx);
@@ -583,7 +490,6 @@ export class ChatAgent {
583
490
  const iterCtx = {
584
491
  recentTools: extractRecentToolCalls(messages),
585
492
  currentMessage: ChatAgent.getCurrentUserMessage(messages),
586
- hasPriorAgentActionProposal: ChatAgent.hasPriorAgentActionProposal(messages),
587
493
  ctx: this.resolvedContext,
588
494
  };
589
495
  const deterministicResponse = this.persona.resolveDeterministicResponse?.(this.resolvedContext, iterCtx);
@@ -9,8 +9,7 @@ export interface ChatPersonaLoopBehaviors {
9
9
  * Detect hallucinated ```opportunity / ```intent_proposal code blocks in model
10
10
  * text, auto-invoke the corresponding tool, and strip unbacked blocks from the
11
11
  * final response. Only meaningful for personas whose toolset can legitimately
12
- * produce those blocks — enabled for onboarding, signal and negotiator, off
13
- * for reporter.
12
+ * produce those blocks — enabled for onboarding, signal and negotiator.
14
13
  */
15
14
  hallucinationRecovery: boolean;
16
15
  }
@@ -4,7 +4,7 @@
4
4
  //
5
5
  // Persona-neutral prompt text owned by the agent loop rather than by any one
6
6
  // persona. Each persona builds its own system prompt (see signal.prompt.ts,
7
- // negotiator.prompt.ts, reporter.prompt.ts, onboarding.prompt.ts); what remains
7
+ // negotiator.prompt.ts, onboarding.prompt.ts); what remains
8
8
  // here is only what the loop itself injects regardless of persona.
9
9
  /**
10
10
  * Nudge message injected after SOFT_ITERATION_LIMIT iterations.
@@ -11,8 +11,6 @@ export interface IterationContext {
11
11
  }>;
12
12
  /** Text of the latest user message (for regex matching). */
13
13
  currentMessage?: string;
14
- /** Whether an earlier assistant turn visibly contained a valid action proposal. */
15
- hasPriorAgentActionProposal?: boolean;
16
14
  /** Resolved tool context (user, profile, indexes, etc.). */
17
15
  ctx: ResolvedToolContext;
18
16
  }
@@ -1,5 +1,5 @@
1
1
  import type { ResolvedToolContext } from "../shared/agent/tool.factory.js";
2
- import { type NegotiatorMemoryEntry } from "../negotiations/index.js";
2
+ import { type NegotiatorMemoryEntry } from "../negotiations/negotiation.module.js";
3
3
  import type { IterationContext } from "./chat.prompt.modules.js";
4
4
  /** Identity options resolved from the user's personal negotiator agent row. */
5
5
  export interface NegotiatorPromptOptions {
@@ -1,5 +1,5 @@
1
1
  import { focusedIntentId } from "../shared/agent/tool.scope.js";
2
- import { renderNegotiatorChatMemorySection } from "../negotiations/index.js";
2
+ import { renderNegotiatorChatMemorySection } from "../negotiations/negotiation.module.js";
3
3
  /**
4
4
  * Renders the pinned-signal section for intent-scoped sessions (P4.2).
5
5
  * Awareness, not a sandbox: the conversation orbits this signal, but the
@@ -0,0 +1,8 @@
1
+ /**
2
+ * contacts — the capability's sole cross-capability surface.
3
+ *
4
+ * Anything outside this capability imports from here and nowhere else.
5
+ */
6
+ export { createContactTools } from "./contact.tools.js";
7
+ export type { ContactServiceAdapter } from "./contact.repository.port.js";
8
+ export type { ContactToolDeps } from "./contact.tools.port.js";
@@ -0,0 +1,6 @@
1
+ /**
2
+ * contacts — the capability's sole cross-capability surface.
3
+ *
4
+ * Anything outside this capability imports from here and nowhere else.
5
+ */
6
+ export { createContactTools } from "./contact.tools.js";
@@ -9,7 +9,7 @@
9
9
  * network. Contact rows are created by the opportunity accept / start-chat
10
10
  * flow, not through this port.
11
11
  */
12
- import type { ContactEntry, ContactSearchResult } from "../domain/index.js";
12
+ import type { ContactEntry, ContactSearchResult } from "./contact.types.js";
13
13
  /**
14
14
  * Contact management operations used by chat tools.
15
15
  * Consumers must provide a concrete implementation (e.g. backed by ContactService).
@@ -8,8 +8,8 @@
8
8
  * and start-chat write the mutual `contact` memberships. There is no import or
9
9
  * manual-add path, and no ghost users: every contact is a real account.
10
10
  */
11
- import type { DefineTool } from '../../shared/agent/tool.helpers.js';
12
- import type { ContactToolDeps } from '../ports/index.js';
11
+ import type { DefineTool } from '../shared/agent/tool.helpers.js';
12
+ import type { ContactToolDeps } from './contact.tools.port.js';
13
13
  /**
14
14
  * Creates contact management tools for the chat agent.
15
15
  * Enables listing, searching, and removing entries in the user's network.
@@ -9,8 +9,8 @@
9
9
  * manual-add path, and no ghost users: every contact is a real account.
10
10
  */
11
11
  import { z } from 'zod';
12
- import { success, error } from '../../shared/agent/tool.helpers.js';
13
- import { protocolLogger } from '../../shared/observability/protocol.logger.js';
12
+ import { success, error } from '../shared/agent/tool.helpers.js';
13
+ import { protocolLogger } from '../shared/observability/protocol.logger.js';
14
14
  const logger = protocolLogger('ChatTools:Contact');
15
15
  /**
16
16
  * Creates contact management tools for the chat agent.
@@ -0,0 +1,13 @@
1
+ /**
2
+ * contexts — the capability's sole cross-capability surface.
3
+ *
4
+ * Enrichment, premises, generated participant context, and HyDE representations
5
+ * are one capability; only orchestration entry points and the read-model
6
+ * generator cross its edge.
7
+ */
8
+ export { createEnrichmentTools } from "../enrichment/enrichment.tools.js";
9
+ export { createPremiseTools } from "../premises/premise.tools.js";
10
+ export { EnrichmentGraphFactory } from "../enrichment/enrichment.graph.js";
11
+ export { PremiseGraphFactory } from "../premises/premise.graph.js";
12
+ export { UserContextGenerator } from "./context.generator.js";
13
+ export type { EnrichmentToolDeps, PremiseToolDeps } from "./context.tools.port.js";
@@ -0,0 +1,12 @@
1
+ /**
2
+ * contexts — the capability's sole cross-capability surface.
3
+ *
4
+ * Enrichment, premises, generated participant context, and HyDE representations
5
+ * are one capability; only orchestration entry points and the read-model
6
+ * generator cross its edge.
7
+ */
8
+ export { createEnrichmentTools } from "../enrichment/enrichment.tools.js";
9
+ export { createPremiseTools } from "../premises/premise.tools.js";
10
+ export { EnrichmentGraphFactory } from "../enrichment/enrichment.graph.js";
11
+ export { PremiseGraphFactory } from "../premises/premise.graph.js";
12
+ export { UserContextGenerator } from "./context.generator.js";
@@ -1,4 +1,4 @@
1
- import type { ToolRegistryCompositionDeps } from "../../shared/agent/tool.helpers.js";
1
+ import type { ToolRegistryCompositionDeps } from "../shared/agent/tool.helpers.js";
2
2
  /** Host capabilities consumed by enrichment and premise-derived identity tools. */
3
3
  export type EnrichmentToolDeps = Pick<ToolRegistryCompositionDeps, "userDb" | "systemDb" | "enricher" | "grantDefaultSystemPermissions" | "reportToolError" | "getUserContextText" | "enrichmentRuns" | "enrichmentRunQueue"> & {
4
4
  graphs: Pick<ToolRegistryCompositionDeps["graphs"], "profile">;
@@ -1,4 +1,4 @@
1
- import type { DebugMetaAgent } from '../agents/index.js';
1
+ import type { DebugMetaAgent } from '../agents/agent.module.js';
2
2
  import type { HydeCache } from '../shared/interfaces/cache.interface.js';
3
3
  import type { HydeGraphDatabase } from '../shared/interfaces/database.interface.js';
4
4
  import type { EmbeddingGenerator } from '../shared/interfaces/embedder.interface.js';
@@ -5,7 +5,7 @@
5
5
  import type { Id } from '../shared/interfaces/database.interface.js';
6
6
  import type { Lens, HydeTargetCorpus } from './lens.inferrer.js';
7
7
  import type { HydeSourceFrame } from './hyde.frame.js';
8
- import type { DebugMetaAgent } from '../agents/index.js';
8
+ import type { DebugMetaAgent } from '../agents/agent.module.js';
9
9
  export type HydeDocumentOrigin = 'cache' | 'db' | 'generated';
10
10
  export type HydeValidationStatus = 'valid' | 'invalid' | 'failed_open';
11
11
  /** Single HyDE document (text + embedding) for one lens. */
@@ -2,7 +2,7 @@ import { EnrichmentGraphState } from "./enrichment.state.js";
2
2
  import { EnrichmentGraphDatabase, PremiseProvenance } from "../shared/interfaces/database.interface.js";
3
3
  import { Scraper } from "../shared/interfaces/scraper.interface.js";
4
4
  import type { ProfileEnricher } from "../shared/interfaces/enrichment.interface.js";
5
- import type { DebugMetaAgent } from "../agents/index.js";
5
+ import type { DebugMetaAgent } from "../agents/agent.module.js";
6
6
  import { PremiseDecomposer } from "../premises/premise.decomposer.js";
7
7
  /**
8
8
  * Compiled premise graph interface. Matches the invoke signature of a compiled LangGraph.
@@ -1,4 +1,4 @@
1
- import type { DebugMetaAgent } from '../agents/index.js';
1
+ import type { DebugMetaAgent } from '../agents/agent.module.js';
2
2
  /**
3
3
  * The Graph State for Profile Generation.
4
4
  */
@@ -2,7 +2,7 @@
2
2
  * Enrichment tools that read or preview a user context.
3
3
  */
4
4
  import type { DefineTool } from "../shared/agent/tool.helpers.js";
5
- import type { EnrichmentToolDeps } from "../contexts/ports/participant-context.tools.port.js";
5
+ import type { EnrichmentToolDeps } from "../contexts/context.tools.port.js";
6
6
  export declare function createUserContextReadTools(defineTool: DefineTool, deps: EnrichmentToolDeps): {
7
7
  readUserContexts: any;
8
8
  previewUserContext: any;
@@ -2,7 +2,7 @@
2
2
  * Enrichment tools that create or update a user context.
3
3
  */
4
4
  import type { DefineTool } from "../shared/agent/tool.helpers.js";
5
- import type { EnrichmentToolDeps } from "../contexts/ports/participant-context.tools.port.js";
5
+ import type { EnrichmentToolDeps } from "../contexts/context.tools.port.js";
6
6
  export declare function createUserContextWriteTools(defineTool: DefineTool, deps: EnrichmentToolDeps): {
7
7
  createUserContext: any;
8
8
  updateUserContext: any;
@@ -6,7 +6,7 @@
6
6
  * and onboarding tools and assembles the registry.
7
7
  */
8
8
  import type { DefineTool } from "../shared/agent/tool.helpers.js";
9
- import type { EnrichmentToolDeps } from "../contexts/ports/participant-context.tools.port.js";
9
+ import type { EnrichmentToolDeps } from "../contexts/context.tools.port.js";
10
10
  import type { ToolSurface } from "../shared/agent/utility.tools.js";
11
11
  export declare function createEnrichmentTools(defineTool: DefineTool, deps: EnrichmentToolDeps, options?: {
12
12
  surface?: ToolSurface;
@@ -7,7 +7,7 @@
7
7
  */
8
8
  import { z } from "zod";
9
9
  import type { ResolvedToolContext } from "../shared/agent/tool.helpers.js";
10
- import type { EnrichmentToolDeps } from "../contexts/ports/participant-context.tools.port.js";
10
+ import type { EnrichmentToolDeps } from "../contexts/context.tools.port.js";
11
11
  import type { EnrichmentResult } from "../shared/interfaces/enrichment.interface.js";
12
12
  import type { OnboardingProfileSeed, OnboardingState, UserRecord } from "../shared/interfaces/database.interface.js";
13
13
  import type { EnrichmentRunInput, EnrichmentRunOperation } from "../shared/interfaces/enrichment-run.interface.js";