@indexnetwork/protocol 14.1.0-rc.469.1 → 14.2.1-rc.471.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 (385) hide show
  1. package/CHANGELOG.md +97 -0
  2. package/dist/{participant-agents → agents}/application/agent.tools.d.ts +2 -2
  3. package/dist/{participant-agents → agents}/application/agent.tools.js +2 -2
  4. package/dist/{participant-agents → agents}/application/index.d.ts +2 -2
  5. package/dist/{participant-agents → agents}/application/index.js +2 -2
  6. package/dist/{participant-agents → agents}/domain/agent.types.d.ts +1 -1
  7. package/dist/{participant-agents → agents}/domain/agent.types.js +1 -1
  8. package/dist/{participant-agents → agents}/domain/index.d.ts +4 -4
  9. package/dist/agents/index.d.ts +22 -0
  10. package/dist/agents/index.js +12 -0
  11. package/dist/{participant-agents → agents}/ports/agent.dispatcher.port.d.ts +3 -3
  12. package/dist/{participant-agents → agents}/ports/agent.repository.port.d.ts +1 -1
  13. package/dist/{participant-agents → agents}/ports/agent.repository.port.js +1 -1
  14. package/dist/{participant-agents → agents}/ports/agent.tools.port.d.ts +1 -1
  15. package/dist/{participant-agents → agents}/ports/agent.tools.port.js +1 -1
  16. package/dist/{participant-agents → agents}/ports/index.d.ts +1 -1
  17. package/dist/{participant-agents → agents}/ports/index.js +1 -1
  18. package/dist/chat/chat-streaming.types.d.ts +1 -1
  19. package/dist/chat/chat.agent.d.ts +1 -1
  20. package/dist/chat/chat.state.d.ts +1 -1
  21. package/dist/chat/chat.state.js +1 -1
  22. package/dist/chat/negotiator.prompt.d.ts +1 -1
  23. package/dist/chat/negotiator.prompt.js +1 -1
  24. package/dist/contacts/application/contact.inviter.js +1 -1
  25. package/dist/contacts/index.d.ts +9 -0
  26. package/dist/contacts/index.js +8 -0
  27. package/dist/{participant-context → contexts}/application/index.d.ts +10 -10
  28. package/dist/{participant-context → contexts}/application/index.js +10 -10
  29. package/dist/{participant-context → contexts}/domain/index.d.ts +5 -5
  30. package/dist/{participant-context → contexts}/domain/index.js +4 -4
  31. package/dist/contexts/index.d.ts +13 -0
  32. package/dist/contexts/index.js +14 -0
  33. package/dist/{participant-context → contexts}/ports/index.d.ts +1 -1
  34. package/dist/{participant-context → contexts}/ports/index.js +1 -1
  35. package/dist/{capabilities → contexts/ports}/participant-context.tools.port.d.ts +1 -1
  36. package/dist/enrichment/enrichment.graph.d.ts +1 -1
  37. package/dist/enrichment/enrichment.graph.js +1 -1
  38. package/dist/enrichment/enrichment.state.d.ts +1 -1
  39. package/dist/enrichment/enrichment.tools.d.ts +1 -1
  40. package/dist/index.d.ts +125 -125
  41. package/dist/index.js +85 -85
  42. package/dist/integrations/index.d.ts +10 -0
  43. package/dist/integrations/index.js +8 -0
  44. package/dist/{signals → intents}/application/index.d.ts +2 -2
  45. package/dist/{signals → intents}/application/index.js +2 -2
  46. package/dist/{signals → intents}/application/intent.clarifier.js +1 -1
  47. package/dist/{signals → intents}/application/intent.graph.d.ts +2 -2
  48. package/dist/{signals → intents}/application/intent.tools.d.ts +1 -1
  49. package/dist/{signals → intents}/domain/index.d.ts +1 -1
  50. package/dist/{signals → intents}/domain/index.js +1 -1
  51. package/dist/{signals → intents}/domain/intent.state.d.ts +1 -1
  52. package/dist/intents/index.d.ts +18 -0
  53. package/dist/intents/index.js +14 -0
  54. package/dist/{signals → intents}/ports/index.d.ts +1 -1
  55. package/dist/{signals → intents}/ports/index.js +1 -1
  56. package/dist/{capabilities → intents/ports}/signals.tools.port.d.ts +1 -1
  57. package/dist/maintenance/maintenance.graph.d.ts +6 -6
  58. package/dist/maintenance/maintenance.graph.js +4 -4
  59. package/dist/maintenance/maintenance.state.d.ts +1 -1
  60. package/dist/mcp/mcp.authorization-policy.d.ts +8 -8
  61. package/dist/mcp/mcp.server.js +2 -2
  62. package/dist/{negotiation → negotiations}/application/index.d.ts +2 -2
  63. package/dist/{negotiation → negotiations}/application/index.js +2 -2
  64. package/dist/{negotiation → negotiations}/application/negotiation.graph.d.ts +2 -2
  65. package/dist/{negotiation → negotiations}/domain/index.d.ts +9 -9
  66. package/dist/{negotiation → negotiations}/domain/index.js +9 -9
  67. package/dist/{negotiation → negotiations}/domain/negotiation.question-safety.js +1 -1
  68. package/dist/{negotiation → negotiations}/domain/negotiation.screen.contracts.d.ts +3 -3
  69. package/dist/{negotiation → negotiations}/domain/negotiation.screen.contracts.js +3 -3
  70. package/dist/{negotiation → negotiations}/domain/negotiation.stance.contracts.d.ts +1 -1
  71. package/dist/{negotiation → negotiations}/domain/negotiation.stance.contracts.js +1 -1
  72. package/dist/{negotiation → negotiations}/domain/negotiation.state.d.ts +1 -1
  73. package/dist/{negotiation → negotiations}/domain/negotiation.state.js +1 -1
  74. package/dist/negotiations/index.d.ts +12 -0
  75. package/dist/negotiations/index.js +9 -0
  76. package/dist/{negotiation → negotiations}/ports/index.d.ts +1 -1
  77. package/dist/{negotiation → negotiations}/ports/index.js +1 -1
  78. package/dist/{communities → networks}/application/index.d.ts +3 -3
  79. package/dist/{communities → networks}/application/index.js +3 -3
  80. package/dist/{communities → networks}/application/indexer.graph.d.ts +1 -1
  81. package/dist/{communities → networks}/application/indexer.state.d.ts +1 -1
  82. package/dist/{communities → networks}/application/network.tools.d.ts +1 -1
  83. package/dist/{communities → networks}/domain/index.d.ts +2 -2
  84. package/dist/{communities → networks}/domain/index.js +2 -2
  85. package/dist/networks/index.d.ts +9 -0
  86. package/dist/networks/index.js +8 -0
  87. package/dist/{capabilities → networks/ports}/communities.tools.port.d.ts +1 -1
  88. package/dist/{communities → networks}/ports/index.d.ts +3 -3
  89. package/dist/{communities → networks}/ports/index.js +2 -2
  90. package/dist/{opportunity → opportunities}/application/index.d.ts +1 -1
  91. package/dist/{opportunity → opportunities}/application/index.js +1 -1
  92. package/dist/{opportunity → opportunities}/application/negotiation-context.loader.d.ts +1 -1
  93. package/dist/{opportunity → opportunities}/application/opportunity.card-presentation.js +1 -1
  94. package/dist/{opportunity → opportunities}/application/opportunity.discovery-negotiation-summary.js +1 -1
  95. package/dist/{opportunity → opportunities}/application/opportunity.evaluator.js +1 -1
  96. package/dist/{opportunity → opportunities}/application/opportunity.graph.d.ts +3 -3
  97. package/dist/{opportunity → opportunities}/application/opportunity.graph.js +3 -3
  98. package/dist/{opportunity → opportunities}/application/opportunity.owner-approval.d.ts +1 -1
  99. package/dist/{opportunity → opportunities}/application/opportunity.owner-provenance.js +1 -1
  100. package/dist/{opportunity → opportunities}/application/opportunity.presenter.js +1 -1
  101. package/dist/{opportunity → opportunities}/application/opportunity.tools.js +1 -1
  102. package/dist/{opportunity → opportunities}/discriminator/discriminator.adjustments.d.ts +1 -1
  103. package/dist/{opportunity → opportunities}/discriminator/discriminator.push.d.ts +1 -1
  104. package/dist/{opportunity → opportunities}/discriminator/discriminator.question.d.ts +1 -1
  105. package/dist/{opportunity → opportunities}/domain/index.d.ts +2 -2
  106. package/dist/{opportunity → opportunities}/domain/index.js +2 -2
  107. package/dist/{opportunity → opportunities}/domain/negotiation-summary.builder.d.ts +1 -1
  108. package/dist/{opportunity → opportunities}/domain/opportunity.presentation.js +1 -1
  109. package/dist/{opportunity → opportunities}/domain/opportunity.safe-presentation.js +1 -1
  110. package/dist/{opportunity → opportunities}/domain/opportunity.state.d.ts +1 -1
  111. package/dist/opportunities/index.d.ts +54 -0
  112. package/dist/opportunities/index.js +39 -0
  113. package/dist/{opportunity → opportunities}/ports/index.d.ts +1 -1
  114. package/dist/{opportunity → opportunities}/ports/opportunity.tools.port.d.ts +1 -1
  115. package/dist/{opportunity → opportunities}/radar/radar.graph.d.ts +1 -1
  116. package/dist/{opportunity → opportunities}/radar/radar.state.d.ts +1 -1
  117. package/dist/{premise → premises}/premise.graph.d.ts +1 -1
  118. package/dist/{premise → premises}/premise.state.d.ts +1 -1
  119. package/dist/{premise → premises}/premise.tools.d.ts +1 -1
  120. package/dist/questions/application/question.input.d.ts +1 -1
  121. package/dist/questions/application/question.input.js +1 -1
  122. package/dist/questions/application/question.presets.js +2 -2
  123. package/dist/questions/domain/question.schema.d.ts +3 -3
  124. package/dist/questions/domain/question.schema.js +2 -6
  125. package/dist/questions/index.d.ts +13 -0
  126. package/dist/questions/index.js +2 -0
  127. package/dist/shared/agent/tool.factory.d.ts +1 -1
  128. package/dist/shared/agent/tool.factory.js +19 -16
  129. package/dist/shared/agent/tool.helpers.d.ts +5 -5
  130. package/dist/shared/agent/tool.registry.d.ts +1 -1
  131. package/dist/shared/agent/tool.registry.js +9 -9
  132. package/dist/shared/assignment/network-assignment.policy.d.ts +1 -1
  133. package/dist/shared/assignment/network-assignment.policy.js +1 -1
  134. package/dist/shared/interfaces/agent-dispatcher.interface.d.ts +3 -3
  135. package/dist/shared/interfaces/agent-dispatcher.interface.js +1 -1
  136. package/dist/shared/schemas/mcp-auth.schema.d.ts +4 -4
  137. package/dist/shared/schemas/negotiation-state.schema.d.ts +2 -2
  138. package/dist/shared/schemas/negotiation-state.schema.js +2 -2
  139. package/dist/shared/schemas/underspecification.schema.d.ts +13 -0
  140. package/dist/shared/schemas/underspecification.schema.js +16 -0
  141. package/package.json +1 -1
  142. package/dist/capabilities/communities.facade.d.ts +0 -13
  143. package/dist/capabilities/communities.facade.js +0 -12
  144. package/dist/capabilities/contacts.facade.d.ts +0 -9
  145. package/dist/capabilities/contacts.facade.js +0 -8
  146. package/dist/capabilities/integrations.facade.d.ts +0 -8
  147. package/dist/capabilities/integrations.facade.js +0 -7
  148. package/dist/capabilities/interaction-composition.facade.d.ts +0 -10
  149. package/dist/capabilities/interaction-composition.facade.js +0 -9
  150. package/dist/capabilities/negotiation.discovery.facade.d.ts +0 -9
  151. package/dist/capabilities/negotiation.discovery.facade.js +0 -7
  152. package/dist/capabilities/negotiation.facade.d.ts +0 -26
  153. package/dist/capabilities/negotiation.facade.js +0 -18
  154. package/dist/capabilities/negotiation.memory.facade.d.ts +0 -6
  155. package/dist/capabilities/negotiation.memory.facade.js +0 -5
  156. package/dist/capabilities/negotiation.questions.facade.d.ts +0 -6
  157. package/dist/capabilities/negotiation.questions.facade.js +0 -5
  158. package/dist/capabilities/negotiation.state.facade.d.ts +0 -5
  159. package/dist/capabilities/negotiation.state.facade.js +0 -1
  160. package/dist/capabilities/negotiation.summary.facade.d.ts +0 -5
  161. package/dist/capabilities/negotiation.summary.facade.js +0 -5
  162. package/dist/capabilities/opportunities.facade.d.ts +0 -56
  163. package/dist/capabilities/opportunities.facade.js +0 -55
  164. package/dist/capabilities/opportunities.safety.facade.d.ts +0 -2
  165. package/dist/capabilities/opportunities.safety.facade.js +0 -2
  166. package/dist/capabilities/participant-agents.debug.facade.d.ts +0 -2
  167. package/dist/capabilities/participant-agents.debug.facade.js +0 -1
  168. package/dist/capabilities/participant-agents.facade.d.ts +0 -34
  169. package/dist/capabilities/participant-agents.facade.js +0 -34
  170. package/dist/capabilities/participant-agents.tools.facade.d.ts +0 -8
  171. package/dist/capabilities/participant-agents.tools.facade.js +0 -8
  172. package/dist/capabilities/participant-context.facade.d.ts +0 -13
  173. package/dist/capabilities/participant-context.facade.js +0 -14
  174. package/dist/capabilities/questions.enqueue.facade.d.ts +0 -5
  175. package/dist/capabilities/questions.enqueue.facade.js +0 -1
  176. package/dist/capabilities/questions.facade.d.ts +0 -8
  177. package/dist/capabilities/questions.facade.js +0 -7
  178. package/dist/capabilities/questions.runtime.facade.d.ts +0 -5
  179. package/dist/capabilities/questions.runtime.facade.js +0 -5
  180. package/dist/capabilities/signals.facade.d.ts +0 -19
  181. package/dist/capabilities/signals.facade.js +0 -17
  182. package/dist/capabilities/signals.indexing.facade.d.ts +0 -12
  183. package/dist/capabilities/signals.indexing.facade.js +0 -11
  184. package/dist/communities/public/index.d.ts +0 -30
  185. package/dist/communities/public/index.js +0 -33
  186. package/dist/contacts/public/index.d.ts +0 -36
  187. package/dist/contacts/public/index.js +0 -33
  188. package/dist/integrations/public/index.d.ts +0 -37
  189. package/dist/integrations/public/index.js +0 -34
  190. package/dist/negotiation/public/index.d.ts +0 -63
  191. package/dist/negotiation/public/index.js +0 -64
  192. package/dist/opportunity/public/index.d.ts +0 -61
  193. package/dist/opportunity/public/index.js +0 -54
  194. package/dist/participant-agents/public/index.d.ts +0 -39
  195. package/dist/participant-agents/public/index.js +0 -36
  196. package/dist/participant-context/index.d.ts +0 -16
  197. package/dist/participant-context/index.js +0 -16
  198. package/dist/participant-context/public/index.d.ts +0 -48
  199. package/dist/participant-context/public/index.js +0 -55
  200. package/dist/questions/public/index.d.ts +0 -47
  201. package/dist/questions/public/index.js +0 -49
  202. package/dist/signals/public/index.d.ts +0 -15
  203. package/dist/signals/public/index.js +0 -16
  204. package/dist/{participant-agents → agents}/domain/index.js +0 -0
  205. package/dist/{participant-agents → agents}/ports/agent.dispatcher.port.js +0 -0
  206. package/dist/{context → contexts}/context.generator.d.ts +0 -0
  207. package/dist/{context → contexts}/context.generator.js +0 -0
  208. package/dist/{capabilities → contexts/ports}/participant-context.tools.port.js +0 -0
  209. package/dist/{signals → intents}/application/intake.orchestrator.d.ts +0 -0
  210. package/dist/{signals → intents}/application/intake.orchestrator.js +0 -0
  211. package/dist/{signals → intents}/application/intake.pack.generator.d.ts +0 -0
  212. package/dist/{signals → intents}/application/intake.pack.generator.js +0 -0
  213. package/dist/{signals → intents}/application/intent.clarifier.d.ts +0 -0
  214. package/dist/{signals → intents}/application/intent.graph.js +0 -0
  215. package/dist/{signals → intents}/application/intent.indexer.d.ts +0 -0
  216. package/dist/{signals → intents}/application/intent.indexer.js +0 -0
  217. package/dist/{signals → intents}/application/intent.inferrer.d.ts +0 -0
  218. package/dist/{signals → intents}/application/intent.inferrer.js +0 -0
  219. package/dist/{signals → intents}/application/intent.reconciler.d.ts +0 -0
  220. package/dist/{signals → intents}/application/intent.reconciler.js +0 -0
  221. package/dist/{signals → intents}/application/intent.tools.js +0 -0
  222. package/dist/{signals → intents}/application/intent.verifier.d.ts +0 -0
  223. package/dist/{signals → intents}/application/intent.verifier.js +0 -0
  224. package/dist/{signals → intents}/domain/intent.proposal.d.ts +0 -0
  225. package/dist/{signals → intents}/domain/intent.proposal.js +0 -0
  226. package/dist/{signals → intents}/domain/intent.state.js +0 -0
  227. package/dist/{signals → intents}/domain/signal.specificity.d.ts +0 -0
  228. package/dist/{signals → intents}/domain/signal.specificity.js +0 -0
  229. package/dist/{capabilities → intents/ports}/signals.tools.port.js +0 -0
  230. package/dist/{negotiation → negotiations}/application/insight.generator.d.ts +0 -0
  231. package/dist/{negotiation → negotiations}/application/insight.generator.js +0 -0
  232. package/dist/{negotiation → negotiations}/application/negotiation.agent.d.ts +0 -0
  233. package/dist/{negotiation → negotiations}/application/negotiation.agent.js +0 -0
  234. package/dist/{negotiation → negotiations}/application/negotiation.detail-reader.d.ts +0 -0
  235. package/dist/{negotiation → negotiations}/application/negotiation.detail-reader.js +0 -0
  236. package/dist/{negotiation → negotiations}/application/negotiation.graph.js +0 -0
  237. package/dist/{negotiation → negotiations}/application/negotiation.reflect.d.ts +0 -0
  238. package/dist/{negotiation → negotiations}/application/negotiation.reflect.js +0 -0
  239. package/dist/{negotiation → negotiations}/application/negotiation.screen.d.ts +0 -0
  240. package/dist/{negotiation → negotiations}/application/negotiation.screen.js +0 -0
  241. package/dist/{negotiation → negotiations}/application/negotiation.summarizer.d.ts +0 -0
  242. package/dist/{negotiation → negotiations}/application/negotiation.summarizer.js +0 -0
  243. package/dist/{negotiation → negotiations}/application/negotiation.tools.d.ts +0 -0
  244. package/dist/{negotiation → negotiations}/application/negotiation.tools.js +0 -0
  245. package/dist/{negotiation → negotiations}/domain/negotiation.consultation-policy.d.ts +0 -0
  246. package/dist/{negotiation → negotiations}/domain/negotiation.consultation-policy.js +0 -0
  247. package/dist/{negotiation → negotiations}/domain/negotiation.deadlock.contracts.d.ts +0 -0
  248. package/dist/{negotiation → negotiations}/domain/negotiation.deadlock.contracts.js +0 -0
  249. package/dist/{negotiation → negotiations}/domain/negotiation.deadlock.d.ts +0 -0
  250. package/dist/{negotiation → negotiations}/domain/negotiation.deadlock.js +0 -0
  251. package/dist/{negotiation → negotiations}/domain/negotiation.expected-speaker.d.ts +0 -0
  252. package/dist/{negotiation → negotiations}/domain/negotiation.expected-speaker.js +0 -0
  253. package/dist/{negotiation → negotiations}/domain/negotiation.hermes-contract.d.ts +0 -0
  254. package/dist/{negotiation → negotiations}/domain/negotiation.hermes-contract.js +0 -0
  255. package/dist/{negotiation → negotiations}/domain/negotiation.intent-snapshot-provenance.d.ts +0 -0
  256. package/dist/{negotiation → negotiations}/domain/negotiation.intent-snapshot-provenance.js +0 -0
  257. package/dist/{negotiation → negotiations}/domain/negotiation.lifecycle-narration.d.ts +0 -0
  258. package/dist/{negotiation → negotiations}/domain/negotiation.lifecycle-narration.js +0 -0
  259. package/dist/{negotiation → negotiations}/domain/negotiation.memory.d.ts +0 -0
  260. package/dist/{negotiation → negotiations}/domain/negotiation.memory.js +0 -0
  261. package/dist/{negotiation → negotiations}/domain/negotiation.protocol.d.ts +0 -0
  262. package/dist/{negotiation → negotiations}/domain/negotiation.protocol.js +0 -0
  263. package/dist/{negotiation → negotiations}/domain/negotiation.question-safety.d.ts +0 -0
  264. package/dist/{negotiation → negotiations}/domain/negotiation.task-lock-policy.d.ts +0 -0
  265. package/dist/{negotiation → negotiations}/domain/negotiation.task-lock-policy.js +0 -0
  266. package/dist/{negotiation → negotiations}/domain/negotiation.turn-cap.d.ts +0 -0
  267. package/dist/{negotiation → negotiations}/domain/negotiation.turn-cap.js +0 -0
  268. package/dist/{negotiation → negotiations}/negotiation.attribution.d.ts +0 -0
  269. package/dist/{negotiation → negotiations}/negotiation.attribution.js +0 -0
  270. package/dist/{negotiation → negotiations}/ports/negotiation.tools.port.d.ts +0 -0
  271. package/dist/{negotiation → negotiations}/ports/negotiation.tools.port.js +0 -0
  272. package/dist/{communities → networks}/application/indexer.graph.js +0 -0
  273. package/dist/{communities → networks}/application/indexer.state.js +0 -0
  274. package/dist/{communities → networks}/application/membership.graph.d.ts +0 -0
  275. package/dist/{communities → networks}/application/membership.graph.js +0 -0
  276. package/dist/{communities → networks}/application/network.graph.d.ts +0 -0
  277. package/dist/{communities → networks}/application/network.graph.js +0 -0
  278. package/dist/{communities → networks}/application/network.recommender.d.ts +0 -0
  279. package/dist/{communities → networks}/application/network.recommender.js +0 -0
  280. package/dist/{communities → networks}/application/network.tools.js +0 -0
  281. package/dist/{communities → networks}/domain/membership.state.d.ts +0 -0
  282. package/dist/{communities → networks}/domain/membership.state.js +0 -0
  283. package/dist/{communities → networks}/domain/network.state.d.ts +0 -0
  284. package/dist/{communities → networks}/domain/network.state.js +0 -0
  285. package/dist/{capabilities → networks/ports}/communities.tools.port.js +0 -0
  286. package/dist/{opportunity → opportunities}/application/delivery-card.cache.d.ts +0 -0
  287. package/dist/{opportunity → opportunities}/application/delivery-card.cache.js +0 -0
  288. package/dist/{opportunity → opportunities}/application/negotiation-context.loader.js +0 -0
  289. package/dist/{opportunity → opportunities}/application/opportunity.card-presentation.d.ts +0 -0
  290. package/dist/{opportunity → opportunities}/application/opportunity.discovery-negotiation-summary.d.ts +0 -0
  291. package/dist/{opportunity → opportunities}/application/opportunity.enricher.d.ts +0 -0
  292. package/dist/{opportunity → opportunities}/application/opportunity.enricher.js +0 -0
  293. package/dist/{opportunity → opportunities}/application/opportunity.evaluator.d.ts +0 -0
  294. package/dist/{opportunity → opportunities}/application/opportunity.existing-negotiation.d.ts +0 -0
  295. package/dist/{opportunity → opportunities}/application/opportunity.existing-negotiation.js +0 -0
  296. package/dist/{opportunity → opportunities}/application/opportunity.feed-selection.d.ts +0 -0
  297. package/dist/{opportunity → opportunities}/application/opportunity.feed-selection.js +0 -0
  298. package/dist/{opportunity → opportunities}/application/opportunity.introducer-feature.d.ts +0 -0
  299. package/dist/{opportunity → opportunities}/application/opportunity.introducer-feature.js +0 -0
  300. package/dist/{opportunity → opportunities}/application/opportunity.introducer.d.ts +0 -0
  301. package/dist/{opportunity → opportunities}/application/opportunity.introducer.js +0 -0
  302. package/dist/{opportunity → opportunities}/application/opportunity.lifecycle.d.ts +0 -0
  303. package/dist/{opportunity → opportunities}/application/opportunity.lifecycle.js +0 -0
  304. package/dist/{opportunity → opportunities}/application/opportunity.newborn-stamping.d.ts +0 -0
  305. package/dist/{opportunity → opportunities}/application/opportunity.newborn-stamping.js +0 -0
  306. package/dist/{opportunity → opportunities}/application/opportunity.owner-approval.js +0 -0
  307. package/dist/{opportunity → opportunities}/application/opportunity.owner-provenance.d.ts +0 -0
  308. package/dist/{opportunity → opportunities}/application/opportunity.pending-questions.d.ts +0 -0
  309. package/dist/{opportunity → opportunities}/application/opportunity.pending-questions.js +0 -0
  310. package/dist/{opportunity → opportunities}/application/opportunity.persist.d.ts +0 -0
  311. package/dist/{opportunity → opportunities}/application/opportunity.persist.js +0 -0
  312. package/dist/{opportunity → opportunities}/application/opportunity.persistence-admission.d.ts +0 -0
  313. package/dist/{opportunity → opportunities}/application/opportunity.persistence-admission.js +0 -0
  314. package/dist/{opportunity → opportunities}/application/opportunity.presenter.d.ts +6 -6
  315. /package/dist/{opportunity → opportunities}/application/opportunity.tools.d.ts +0 -0
  316. /package/dist/{opportunity → opportunities}/application/opportunity.update-admission.d.ts +0 -0
  317. /package/dist/{opportunity → opportunities}/application/opportunity.update-admission.js +0 -0
  318. /package/dist/{opportunity → opportunities}/discovery.env.d.ts +0 -0
  319. /package/dist/{opportunity → opportunities}/discovery.env.js +0 -0
  320. /package/dist/{opportunity → opportunities}/discriminator/discriminator.adjustments.js +0 -0
  321. /package/dist/{opportunity → opportunities}/discriminator/discriminator.assigner.d.ts +0 -0
  322. /package/dist/{opportunity → opportunities}/discriminator/discriminator.assigner.js +0 -0
  323. /package/dist/{opportunity → opportunities}/discriminator/discriminator.env.d.ts +0 -0
  324. /package/dist/{opportunity → opportunities}/discriminator/discriminator.env.js +0 -0
  325. /package/dist/{opportunity → opportunities}/discriminator/discriminator.miner.d.ts +0 -0
  326. /package/dist/{opportunity → opportunities}/discriminator/discriminator.miner.js +0 -0
  327. /package/dist/{opportunity → opportunities}/discriminator/discriminator.push.js +0 -0
  328. /package/dist/{opportunity → opportunities}/discriminator/discriminator.question.js +0 -0
  329. /package/dist/{opportunity → opportunities}/discriminator/discriminator.scorer.d.ts +0 -0
  330. /package/dist/{opportunity → opportunities}/discriminator/discriminator.scorer.js +0 -0
  331. /package/dist/{opportunity → opportunities}/discriminator/discriminator.shadow.d.ts +0 -0
  332. /package/dist/{opportunity → opportunities}/discriminator/discriminator.shadow.js +0 -0
  333. /package/dist/{opportunity → opportunities}/discriminator/discriminator.types.d.ts +0 -0
  334. /package/dist/{opportunity → opportunities}/discriminator/discriminator.types.js +0 -0
  335. /package/dist/{opportunity → opportunities}/domain/negotiation-summary.builder.js +0 -0
  336. /package/dist/{opportunity → opportunities}/domain/opportunity.actor.d.ts +0 -0
  337. /package/dist/{opportunity → opportunities}/domain/opportunity.actor.js +0 -0
  338. /package/dist/{opportunity → opportunities}/domain/opportunity.evidence.d.ts +0 -0
  339. /package/dist/{opportunity → opportunities}/domain/opportunity.evidence.js +0 -0
  340. /package/dist/{opportunity → opportunities}/domain/opportunity.labels.d.ts +0 -0
  341. /package/dist/{opportunity → opportunities}/domain/opportunity.labels.js +0 -0
  342. /package/dist/{opportunity → opportunities}/domain/opportunity.presentation-cache.d.ts +0 -0
  343. /package/dist/{opportunity → opportunities}/domain/opportunity.presentation-cache.js +0 -0
  344. /package/dist/{opportunity → opportunities}/domain/opportunity.presentation.d.ts +0 -0
  345. /package/dist/{opportunity → opportunities}/domain/opportunity.safe-presentation.d.ts +0 -0
  346. /package/dist/{opportunity → opportunities}/domain/opportunity.state.js +0 -0
  347. /package/dist/{opportunity → opportunities}/domain/opportunity.utils.d.ts +0 -0
  348. /package/dist/{opportunity → opportunities}/domain/opportunity.utils.js +0 -0
  349. /package/dist/{opportunity → opportunities}/negotiation-evidence/negotiation-evidence.env.d.ts +0 -0
  350. /package/dist/{opportunity → opportunities}/negotiation-evidence/negotiation-evidence.env.js +0 -0
  351. /package/dist/{opportunity → opportunities}/negotiation-evidence/negotiation-evidence.extractor.d.ts +0 -0
  352. /package/dist/{opportunity → opportunities}/negotiation-evidence/negotiation-evidence.extractor.js +0 -0
  353. /package/dist/{opportunity → opportunities}/negotiation-evidence/negotiation-evidence.miner.d.ts +0 -0
  354. /package/dist/{opportunity → opportunities}/negotiation-evidence/negotiation-evidence.miner.js +0 -0
  355. /package/dist/{opportunity → opportunities}/negotiation-evidence/negotiation-evidence.shadow.d.ts +0 -0
  356. /package/dist/{opportunity → opportunities}/negotiation-evidence/negotiation-evidence.shadow.js +0 -0
  357. /package/dist/{opportunity → opportunities}/negotiation-evidence/negotiation-evidence.types.d.ts +0 -0
  358. /package/dist/{opportunity → opportunities}/negotiation-evidence/negotiation-evidence.types.js +0 -0
  359. /package/dist/{opportunity → opportunities}/negotiation-evidence/negotiation-evidence.verifier.d.ts +0 -0
  360. /package/dist/{opportunity → opportunities}/negotiation-evidence/negotiation-evidence.verifier.js +0 -0
  361. /package/dist/{opportunity → opportunities}/outcome/outcome.env.d.ts +0 -0
  362. /package/dist/{opportunity → opportunities}/outcome/outcome.env.js +0 -0
  363. /package/dist/{opportunity → opportunities}/outcome/outcome.hypotheses.d.ts +0 -0
  364. /package/dist/{opportunity → opportunities}/outcome/outcome.hypotheses.js +0 -0
  365. /package/dist/{opportunity → opportunities}/outcome/outcome.shadow.d.ts +0 -0
  366. /package/dist/{opportunity → opportunities}/outcome/outcome.shadow.js +0 -0
  367. /package/dist/{opportunity → opportunities}/outcome/outcome.types.d.ts +0 -0
  368. /package/dist/{opportunity → opportunities}/outcome/outcome.types.js +0 -0
  369. /package/dist/{opportunity → opportunities}/ports/index.js +0 -0
  370. /package/dist/{opportunity → opportunities}/ports/opportunity.tools.port.js +0 -0
  371. /package/dist/{opportunity → opportunities}/radar/radar.graph.js +0 -0
  372. /package/dist/{opportunity → opportunities}/radar/radar.health.d.ts +0 -0
  373. /package/dist/{opportunity → opportunities}/radar/radar.health.js +0 -0
  374. /package/dist/{opportunity → opportunities}/radar/radar.state.js +0 -0
  375. /package/dist/{premise → premises}/premise.analyzer.d.ts +0 -0
  376. /package/dist/{premise → premises}/premise.analyzer.js +0 -0
  377. /package/dist/{premise → premises}/premise.decomposer.d.ts +0 -0
  378. /package/dist/{premise → premises}/premise.decomposer.js +0 -0
  379. /package/dist/{premise → premises}/premise.graph.js +0 -0
  380. /package/dist/{premise → premises}/premise.indexer.d.ts +0 -0
  381. /package/dist/{premise → premises}/premise.indexer.js +0 -0
  382. /package/dist/{premise → premises}/premise.state.js +0 -0
  383. /package/dist/{premise → premises}/premise.tools.js +0 -0
  384. /package/dist/{opportunity/domain/opportunity.claim-safety.d.ts → shared/utils/claim-safety.d.ts} +0 -0
  385. /package/dist/{opportunity/domain/opportunity.claim-safety.js → shared/utils/claim-safety.js} +0 -0
package/CHANGELOG.md CHANGED
@@ -20,6 +20,103 @@ 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
+ ## 14.2.1 - 2026-08-16
24
+
25
+ No public API change: all 443 exported symbols are byte-identical to 14.2.0.
26
+ Directory names only.
27
+
28
+ ### Changed
29
+
30
+ - Renamed capability directories so each one is named for what the code inside
31
+ it actually says. `Intent*` appears 2,624 times in `src/` against 494 for
32
+ `Signal*` — and roughly half of those are `AbortSignal` — while `Network*`
33
+ appears 1,988 times against 23 for `Communit*`. Every load-bearing surface
34
+ already used intent/network: MCP tool names (`create_intent`, `read_networks`),
35
+ database tables (`intents`, `networks`, `intent_networks`), and exported
36
+ symbols (`IntentGraphFactory`, `NetworkGraphDatabase`). The folders were the
37
+ outlier.
38
+
39
+ | before | after |
40
+ |---|---|
41
+ | `signals/` | `intents/` |
42
+ | `communities/` | `networks/` |
43
+ | `opportunity/` | `opportunities/` |
44
+ | `negotiation/` | `negotiations/` |
45
+ | `premise/` | `premises/` |
46
+ | `participant-agents/` | `agents/` |
47
+ | `participant-context/` + `context/` | `contexts/` |
48
+
49
+ Capability directories are now uniformly plural, and each one's file prefix
50
+ matches its folder (`intents/application/intent.graph.ts`).
51
+
52
+ - The capability identifiers in `scripts/architecture/capability-model.ts`
53
+ follow: the 25 named directions now read `intents → questions`,
54
+ `opportunities → negotiations`, and so on. Dead alias entries for directories
55
+ that no longer exist were removed.
56
+
57
+ ### Removed
58
+
59
+ - The six orphaned test directories, which held tests whose subjects had moved
60
+ away in earlier phases: `intent/` (13 files), `questioner/` (6), `network/`
61
+ (6), `contact/` (4), `agent/` (2), `integration/` (1). Each is absorbed into
62
+ its capability's own `tests/`, along with the redundant per-directory
63
+ `tsconfig.json` files that duplicated one already present.
64
+
65
+ ## 14.2.0 - 2026-08-16
66
+
67
+ No public API change: all 443 exported symbols are byte-identical to 14.1.0.
68
+ This is internal structure only.
69
+
70
+ ### Removed
71
+
72
+ - Removed `src/capabilities/` — 24 files. Twenty-one were `*.facade.ts`
73
+ re-export shims (several two lines long, one with a single caller) and three
74
+ were `*.tools.port.ts` port definitions misfiled into a facade directory. The
75
+ ports moved into their capability's `ports/`.
76
+ - Removed the nine per-capability `public/index.ts` barrels. Three of them
77
+ (`signals`, `communities`, `opportunity`) already had zero importers.
78
+
79
+ ### Changed
80
+
81
+ - **Each capability's `index.ts` is now its sole cross-capability surface.**
82
+ What used to be three hops — `capabilities/X.facade.ts` → `X/public/index.ts`
83
+ → `X/{domain,application,ports}` — is now one. The barrels carry the union of
84
+ the facades they replace, so the contract is unchanged.
85
+ - The boundary rule collapses to one sentence: *a capability may reach another
86
+ capability only through that capability's `index.ts`*. `capability-boundaries.ts`
87
+ checks it from the import path alone; `barrelCapabilityForSourcePath` replaces
88
+ `facadeCapabilityForSourcePath`, and `CAPABILITY_BARREL_DIRECTORIES` names the
89
+ one directory that owns each capability's barrel.
90
+ - Replaced `architecture/tests/capability-facades.spec.ts` with
91
+ `capability-barrels.spec.ts`, which asserts one barrel per capability, no
92
+ `export *`, and that the facade layer does not return.
93
+
94
+ ### Fixed
95
+
96
+ - Broke a runtime import cycle the barrels would otherwise have introduced.
97
+ `shared/agent/tool.factory.ts` reached `createAgentTools` through
98
+ `participant-agents/index.ts`, which re-exports the chat personas, which
99
+ import the tool factory back. The composition root is exempt from the barrel
100
+ rule precisely because it must reach everything, so it now imports the leaf
101
+ directly. Verified: zero runtime cycles, matching `dev`.
102
+ - Moved two leaf contracts out of the capabilities that happened to host them,
103
+ into the neutral layer both sides already depend on:
104
+ - `opportunity/domain/opportunity.claim-safety.ts` → `shared/utils/claim-safety.ts`
105
+ (three pure text predicates, no imports of its own). `negotiation` and
106
+ `contacts` needed it and were pulling the whole opportunity capability.
107
+ - `UnderspecificationTypeSchema` → `shared/schemas/underspecification.schema.ts`.
108
+ The signals clarifier was importing the entire questions capability — LLM
109
+ agents and tools included — to reach a three-value enum.
110
+
111
+ - `CAPABILITY_DIRECTORIES` mapped `questioner` but not `questions`, so every
112
+ file under `src/questions/` was skipped by the capability boundary checker
113
+ entirely. Adding the mapping surfaced six real violations that had been
114
+ invisible: five imports reaching `questions/domain/question.schema.js`
115
+ directly, and an undeclared `participant-agents → questions` dependency
116
+ (`chat/` uses the question schemas). The imports now go through
117
+ `questions/index.ts` and the direction is declared — 24 named directions
118
+ became 25.
119
+
23
120
  ## 14.1.0 - 2026-08-16
24
121
 
25
122
  ### Added
@@ -1,12 +1,12 @@
1
1
  /**
2
- * participant-agents/application — agent registration and permission tools.
2
+ * agents/application — agent registration and permission tools.
3
3
  *
4
4
  * Provides createAgentTools: the canonical factory for participant-agent
5
5
  * registration, listing, update, delete, and permission grant/revoke MCP tools.
6
6
  *
7
7
  * Dependencies:
8
8
  * - DefineTool / helpers from shared/agent (unclassified shared infrastructure)
9
- * - AgentToolDeps from participant-agents/ports (same capability)
9
+ * - AgentToolDeps from agents/ports (same capability)
10
10
  *
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.
@@ -1,12 +1,12 @@
1
1
  /**
2
- * participant-agents/application — agent registration and permission tools.
2
+ * agents/application — agent registration and permission tools.
3
3
  *
4
4
  * Provides createAgentTools: the canonical factory for participant-agent
5
5
  * registration, listing, update, delete, and permission grant/revoke MCP tools.
6
6
  *
7
7
  * Dependencies:
8
8
  * - DefineTool / helpers from shared/agent (unclassified shared infrastructure)
9
- * - AgentToolDeps from participant-agents/ports (same capability)
9
+ * - AgentToolDeps from agents/ports (same capability)
10
10
  *
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.
@@ -1,5 +1,5 @@
1
1
  /**
2
- * participant-agents/application — registration, permission, and dispatch tools.
2
+ * agents/application — registration, permission, and dispatch tools.
3
3
  *
4
4
  * Re-exports the application-tier entry points of the participant-agents
5
5
  * capability: the agent registration and permission management tool factory.
@@ -14,7 +14,7 @@
14
14
  *
15
15
  * ## Boundary
16
16
  *
17
- * Imports from participant-agents/domain, participant-agents/ports, and
17
+ * Imports from agents/domain, agents/ports, and
18
18
  * shared/ infrastructure — never from runtime/, host implementations, or
19
19
  * other capability internals.
20
20
  *
@@ -1,5 +1,5 @@
1
1
  /**
2
- * participant-agents/application — registration, permission, and dispatch tools.
2
+ * agents/application — registration, permission, and dispatch tools.
3
3
  *
4
4
  * Re-exports the application-tier entry points of the participant-agents
5
5
  * capability: the agent registration and permission management tool factory.
@@ -14,7 +14,7 @@
14
14
  *
15
15
  * ## Boundary
16
16
  *
17
- * Imports from participant-agents/domain, participant-agents/ports, and
17
+ * Imports from agents/domain, agents/ports, and
18
18
  * shared/ infrastructure — never from runtime/, host implementations, or
19
19
  * other capability internals.
20
20
  *
@@ -1,5 +1,5 @@
1
1
  /**
2
- * participant-agents/domain — pure agent entity types.
2
+ * agents/domain — pure agent entity types.
3
3
  *
4
4
  * These are the core value-objects for the participant-agents capability:
5
5
  * agent records, transport channels, permission grants, and the well-known
@@ -1,5 +1,5 @@
1
1
  /**
2
- * participant-agents/domain — pure agent entity types.
2
+ * agents/domain — pure agent entity types.
3
3
  *
4
4
  * These are the core value-objects for the participant-agents capability:
5
5
  * agent records, transport channels, permission grants, and the well-known
@@ -1,5 +1,5 @@
1
1
  /**
2
- * participant-agents/domain — pure agent entity value types and constants.
2
+ * agents/domain — pure agent entity value types and constants.
3
3
  *
4
4
  * Contains AgentRecord, AgentTransportRecord, AgentPermissionRecord,
5
5
  * AgentWithRelations, CreateAgentInput, CreateTransportInput,
@@ -9,9 +9,9 @@
9
9
  *
10
10
  * ## What does NOT live here
11
11
  *
12
- * - AgentDatabase: persistence port — lives in participant-agents/ports.
13
- * - AgentDispatcher: dispatch port — lives in participant-agents/ports.
14
- * - createAgentTools: application layer — lives in participant-agents/application.
12
+ * - AgentDatabase: persistence port — lives in agents/ports.
13
+ * - AgentDispatcher: dispatch port — lives in agents/ports.
14
+ * - createAgentTools: application layer — lives in agents/application.
15
15
  *
16
16
  * IND-548: canonical domain layer for the participant-agents capability.
17
17
  */
@@ -0,0 +1,22 @@
1
+ /**
2
+ * participant-agents — the capability's sole cross-capability surface.
3
+ *
4
+ * Anything outside this capability imports from here and nowhere else.
5
+ * Supersedes the capabilities/*.facade.ts + agents/public/ pair; the export
6
+ * list is the union of the facades it replaces, so the contract is unchanged.
7
+ */
8
+ export type { DebugMetaAgent, } from "../chat/chat-streaming.types.js";
9
+ export { ChatGraphFactory, } from "../chat/chat.graph.js";
10
+ export { ChatInterruptClassifier, } from "../chat/chat.interrupt.classifier.js";
11
+ export type { ChatPersonaConfig, } from "../chat/chat.persona.js";
12
+ export { SuggestionGenerator, } from "../chat/chat.suggester.js";
13
+ export { ChatSummarizer, } from "../chat/chat.summarizer.js";
14
+ export { ChatTitleGenerator, } from "../chat/chat.title.generator.js";
15
+ export { createChatTools, } from "../chat/chat.tools.js";
16
+ export { createNegotiatorPersona, NEGOTIATOR_PERSONA_ID, } from "../chat/negotiator.persona.js";
17
+ export { createOnboardingTools, filterOnboardingTools, narrowOnboardingTools, ONBOARDING_PERSONA, ONBOARDING_PERSONA_ID, ONBOARDING_PROFILE_KICKOFF, ONBOARDING_TOOL_NAMES, } from "../chat/onboarding.persona.js";
18
+ export { createReporterTools, filterReporterTools, narrowReporterTools, REPORTER_BRIEFING_KICKOFF, REPORTER_PERSONA, REPORTER_PERSONA_ID, REPORTER_TOOL_NAMES, } from "../chat/reporter.persona.js";
19
+ export { createSignalTools, filterSignalTools, narrowSignalTools, SIGNAL_NEW_SIGNAL_KICKOFF, SIGNAL_PERSONA, SIGNAL_PERSONA_ID, SIGNAL_TOOL_NAMES, } from "../chat/signal.persona.js";
20
+ export { createAgentTools, } from "./application/index.js";
21
+ export { SYSTEM_AGENT_IDS, } from "./domain/index.js";
22
+ export type { AgentToolDeps, } from "./ports/index.js";
@@ -0,0 +1,12 @@
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 { createReporterTools, filterReporterTools, narrowReporterTools, REPORTER_BRIEFING_KICKOFF, REPORTER_PERSONA, REPORTER_PERSONA_ID, REPORTER_TOOL_NAMES, } from "../chat/reporter.persona.js";
10
+ export { createSignalTools, filterSignalTools, narrowSignalTools, SIGNAL_NEW_SIGNAL_KICKOFF, SIGNAL_PERSONA, SIGNAL_PERSONA_ID, SIGNAL_TOOL_NAMES, } from "../chat/signal.persona.js";
11
+ export { createAgentTools, } from "./application/index.js";
12
+ export { SYSTEM_AGENT_IDS, } from "./domain/index.js";
@@ -1,5 +1,5 @@
1
1
  /**
2
- * participant-agents/ports — AgentDispatcher dispatch port.
2
+ * agents/ports — AgentDispatcher dispatch port.
3
3
  *
4
4
  * Re-exports the canonical agent dispatcher contract from shared/interfaces.
5
5
  *
@@ -13,13 +13,13 @@
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) → participant-agents/ports/index.ts → agent.dispatcher.port
16
+ * (shim) → agents/ports/index.ts → 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
20
20
  * ports boundary via re-export.
21
21
  *
22
- * IND-548: participant-agents/ports re-exports the dispatcher contract
22
+ * IND-548: agents/ports re-exports the dispatcher contract
23
23
  * established in shared/interfaces/agent-dispatcher.interface.ts.
24
24
  */
25
25
  export type { AgentDispatcher, AgentDispatchResult, NegotiationTurnPayload, } from '../../shared/interfaces/agent-dispatcher.interface.js';
@@ -1,5 +1,5 @@
1
1
  /**
2
- * participant-agents/ports — AgentDatabase persistence port.
2
+ * agents/ports — AgentDatabase persistence port.
3
3
  *
4
4
  * Injected boundary for agent registry persistence. Implemented by the
5
5
  * host application and passed into the protocol layer at the composition root.
@@ -1,5 +1,5 @@
1
1
  /**
2
- * participant-agents/ports — AgentDatabase persistence port.
2
+ * agents/ports — AgentDatabase persistence port.
3
3
  *
4
4
  * Injected boundary for agent registry persistence. Implemented by the
5
5
  * host application and passed into the protocol layer at the composition root.
@@ -1,5 +1,5 @@
1
1
  /**
2
- * participant-agents/ports — AgentToolDeps tool host port.
2
+ * agents/ports — AgentToolDeps tool host port.
3
3
  *
4
4
  * Narrow port type consumed by createAgentTools. The host provides an
5
5
  * optional AgentDatabase so agent registration tools are compiled only
@@ -1,5 +1,5 @@
1
1
  /**
2
- * participant-agents/ports — AgentToolDeps tool host port.
2
+ * agents/ports — AgentToolDeps tool host port.
3
3
  *
4
4
  * Narrow port type consumed by createAgentTools. The host provides an
5
5
  * optional AgentDatabase so agent registration tools are compiled only
@@ -1,5 +1,5 @@
1
1
  /**
2
- * participant-agents/ports — injected dependency contracts.
2
+ * agents/ports — injected dependency contracts.
3
3
  *
4
4
  * Re-exports the narrow port types that the participant-agents module
5
5
  * declares as explicit injected boundaries. Consumers import these to
@@ -1,5 +1,5 @@
1
1
  /**
2
- * participant-agents/ports — injected dependency contracts.
2
+ * agents/ports — injected dependency contracts.
3
3
  *
4
4
  * Re-exports the narrow port types that the participant-agents module
5
5
  * declares as explicit injected boundaries. Consumers import these to
@@ -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/domain/question.schema.js";
7
+ import type { Question } from "../questions/index.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/domain/question.schema.js";
5
+ import type { Question } from "../questions/index.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.
@@ -123,7 +123,7 @@ export declare const ChatGraphState: import("@langchain/langgraph").AnnotationRo
123
123
  } | undefined> | undefined, unknown>;
124
124
  /** Router output: target, operationType, extractedContext. */
125
125
  routingDecision: import("@langchain/langgraph").BaseChannel<RoutingDecision | undefined, RoutingDecision | import("@langchain/langgraph").OverwriteValue<RoutingDecision | undefined> | undefined, unknown>;
126
- /** Results from intent/profile/opportunity/scrape subgraphs. */
126
+ /** Results from intent/profile/opportunities/scrape subgraphs. */
127
127
  subgraphResults: import("@langchain/langgraph").BaseChannel<SubgraphResults | undefined, SubgraphResults | import("@langchain/langgraph").OverwriteValue<SubgraphResults | undefined> | undefined, unknown>;
128
128
  /** User profile context (e.g. for intent nodes). */
129
129
  userProfile: import("@langchain/langgraph").BaseChannel<unknown, unknown, unknown>;
@@ -107,7 +107,7 @@ export const ChatGraphState = Annotation.Root({
107
107
  reducer: (curr, next) => next,
108
108
  default: () => undefined,
109
109
  }),
110
- /** Results from intent/profile/opportunity/scrape subgraphs. */
110
+ /** Results from intent/profile/opportunities/scrape subgraphs. */
111
111
  subgraphResults: Annotation({
112
112
  reducer: (curr, next) => next,
113
113
  default: () => undefined,
@@ -1,5 +1,5 @@
1
1
  import type { ResolvedToolContext } from "../shared/agent/tool.factory.js";
2
- import { type NegotiatorMemoryEntry } from "../capabilities/negotiation.memory.facade.js";
2
+ import { type NegotiatorMemoryEntry } from "../negotiations/index.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 "../capabilities/negotiation.memory.facade.js";
2
+ import { renderNegotiatorChatMemorySection } from "../negotiations/index.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
@@ -11,7 +11,7 @@
11
11
  import { HumanMessage, SystemMessage } from "@langchain/core/messages";
12
12
  import { z } from "zod";
13
13
  import { createStructuredModel } from "../../shared/agent/model.config.js";
14
- import { stripUnsupportedOpportunityClaims } from "../../capabilities/opportunities.safety.facade.js";
14
+ import { stripUnsupportedOpportunityClaims } from "../../shared/utils/claim-safety.js";
15
15
  const InviteInputSchema = z.object({
16
16
  recipientName: z.string(),
17
17
  senderName: z.string(),
@@ -0,0 +1,9 @@
1
+ /**
2
+ * contacts — the capability's sole cross-capability surface.
3
+ *
4
+ * Anything outside this capability imports from here and nowhere else.
5
+ * Supersedes the capabilities/contacts.facade.ts + contacts/public/ pair; the
6
+ * export list is the union of the facades it replaces, so the contract is unchanged.
7
+ */
8
+ export { createContactTools, generateInviteMessage, } from "./application/index.js";
9
+ export type { ContactServiceAdapter, ContactToolDeps, } from "./ports/index.js";
@@ -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
+ * Supersedes the capabilities/contacts.facade.ts + contacts/public/ pair; the
6
+ * export list is the union of the facades it replaces, so the contract is unchanged.
7
+ */
8
+ export { createContactTools, generateInviteMessage, } from "./application/index.js";
@@ -1,13 +1,13 @@
1
1
  /**
2
- * participant-context/application — orchestrators, factories, and service classes.
2
+ * contexts/application — orchestrators, factories, and service classes.
3
3
  *
4
4
  * Re-exports the orchestration tier of the participant-context capability:
5
5
  * graph factories (LangGraph compilations), LLM service classes, and utility
6
6
  * helpers that belong to the application layer. These are the building blocks
7
7
  * that foreground and ambient adapters compose to implement use cases.
8
8
  *
9
- * Boundary: application-layer only. Imports from participant-context/domain,
10
- * participant-context/ports, and shared/ infrastructure — never from runtime/,
9
+ * Boundary: application-layer only. Imports from contexts/domain,
10
+ * contexts/ports, and shared/ infrastructure — never from runtime/,
11
11
  * host implementations, or capability facades.
12
12
  *
13
13
  * ## Foreground use cases (onboarding / explicit enrichment)
@@ -51,18 +51,18 @@
51
51
  * prompt-injection and out-of-scope risks.
52
52
  *
53
53
  * IND-545: canonical application home for participant-context orchestrators
54
- * previously spread across premise/, context/, enrichment/, and shared/hyde/.
54
+ * previously spread across premises/, contexts/, enrichment/, and shared/hyde/.
55
55
  */
56
- export { PremiseGraphFactory } from "../../premise/premise.graph.js";
57
- export { PremiseDecomposer, type PremiseDecomposerOutput, type DecomposedPremise, type ExistingPremiseRef, } from "../../premise/premise.decomposer.js";
58
- export { PremiseAnalyzer, type PremiseAnalyzerOutput, } from "../../premise/premise.analyzer.js";
59
- export { PremiseIndexer, type PremiseIndexerOutput, } from "../../premise/premise.indexer.js";
56
+ export { PremiseGraphFactory } from "../../premises/premise.graph.js";
57
+ export { PremiseDecomposer, type PremiseDecomposerOutput, type DecomposedPremise, type ExistingPremiseRef, } from "../../premises/premise.decomposer.js";
58
+ export { PremiseAnalyzer, type PremiseAnalyzerOutput, } from "../../premises/premise.analyzer.js";
59
+ export { PremiseIndexer, type PremiseIndexerOutput, } from "../../premises/premise.indexer.js";
60
60
  export { EnrichmentGraphFactory, type CompiledPremiseGraph, } from "../../enrichment/enrichment.graph.js";
61
61
  export { EnrichmentGenerator, type GeneratedProfile } from "../../enrichment/enrichment.generator.js";
62
62
  export { shouldEnrichGhostDisplayNameFromParallel, isEnrichedNameMeaningful, } from "../../enrichment/enrichment.enricher.js";
63
63
  export { createEnrichmentTools } from "../../enrichment/enrichment.tools.js";
64
- export { createPremiseTools } from "../../premise/premise.tools.js";
65
- export { UserContextGenerator } from "../../context/context.generator.js";
64
+ export { createPremiseTools } from "../../premises/premise.tools.js";
65
+ export { UserContextGenerator } from "../../contexts/context.generator.js";
66
66
  export { HydeGraphFactory, type HydeLensInferrerLike, type HydeGeneratorLike, type HydeValidatorLike, type HydeGraphOptions, } from "../../shared/hyde/hyde.graph.js";
67
67
  export { HydeGenerator, type HydeGeneratorOutput, type HydeGenerateInput, } from "../../shared/hyde/hyde.generator.js";
68
68
  export { LensInferrer, type LensInferenceInput, type LensInferenceOutput, FRAME_SYSTEM_PROMPT, FrameResponseSchema, } from "../../shared/hyde/lens.inferrer.js";
@@ -1,13 +1,13 @@
1
1
  /**
2
- * participant-context/application — orchestrators, factories, and service classes.
2
+ * contexts/application — orchestrators, factories, and service classes.
3
3
  *
4
4
  * Re-exports the orchestration tier of the participant-context capability:
5
5
  * graph factories (LangGraph compilations), LLM service classes, and utility
6
6
  * helpers that belong to the application layer. These are the building blocks
7
7
  * that foreground and ambient adapters compose to implement use cases.
8
8
  *
9
- * Boundary: application-layer only. Imports from participant-context/domain,
10
- * participant-context/ports, and shared/ infrastructure — never from runtime/,
9
+ * Boundary: application-layer only. Imports from contexts/domain,
10
+ * contexts/ports, and shared/ infrastructure — never from runtime/,
11
11
  * host implementations, or capability facades.
12
12
  *
13
13
  * ## Foreground use cases (onboarding / explicit enrichment)
@@ -51,14 +51,14 @@
51
51
  * prompt-injection and out-of-scope risks.
52
52
  *
53
53
  * IND-545: canonical application home for participant-context orchestrators
54
- * previously spread across premise/, context/, enrichment/, and shared/hyde/.
54
+ * previously spread across premises/, contexts/, enrichment/, and shared/hyde/.
55
55
  */
56
56
  // ── Premise graph ─────────────────────────────────────────────────────────────
57
- export { PremiseGraphFactory } from "../../premise/premise.graph.js";
57
+ export { PremiseGraphFactory } from "../../premises/premise.graph.js";
58
58
  // ── Premise service classes ───────────────────────────────────────────────────
59
- export { PremiseDecomposer, } from "../../premise/premise.decomposer.js";
60
- export { PremiseAnalyzer, } from "../../premise/premise.analyzer.js";
61
- export { PremiseIndexer, } from "../../premise/premise.indexer.js";
59
+ export { PremiseDecomposer, } from "../../premises/premise.decomposer.js";
60
+ export { PremiseAnalyzer, } from "../../premises/premise.analyzer.js";
61
+ export { PremiseIndexer, } from "../../premises/premise.indexer.js";
62
62
  // ── Enrichment graph + service classes ───────────────────────────────────────
63
63
  export { EnrichmentGraphFactory, } from "../../enrichment/enrichment.graph.js";
64
64
  export { EnrichmentGenerator } from "../../enrichment/enrichment.generator.js";
@@ -68,9 +68,9 @@ export { shouldEnrichGhostDisplayNameFromParallel, isEnrichedNameMeaningful, } f
68
68
  // composition. They accept compiled graphs and host deps through the tool-dep
69
69
  // ports and produce LangChain-compatible tool arrays.
70
70
  export { createEnrichmentTools } from "../../enrichment/enrichment.tools.js";
71
- export { createPremiseTools } from "../../premise/premise.tools.js";
71
+ export { createPremiseTools } from "../../premises/premise.tools.js";
72
72
  // ── Context synthesis ─────────────────────────────────────────────────────────
73
- export { UserContextGenerator } from "../../context/context.generator.js";
73
+ export { UserContextGenerator } from "../../contexts/context.generator.js";
74
74
  // ── HyDE graph + service classes ─────────────────────────────────────────────
75
75
  export { HydeGraphFactory, } from "../../shared/hyde/hyde.graph.js";
76
76
  export { HydeGenerator, } from "../../shared/hyde/hyde.generator.js";
@@ -1,5 +1,5 @@
1
1
  /**
2
- * participant-context/domain — pure participant-context contracts.
2
+ * contexts/domain — pure participant-context contracts.
3
3
  *
4
4
  * Value types, graph-state shapes, and domain model types that define the
5
5
  * participant-context capability's domain language.
@@ -53,15 +53,15 @@
53
53
  * refresh): managed by the background runtime shell. They are the consumers of
54
54
  * PremiseGraphFactory and EnrichmentGraphFactory in queue-worker mode.
55
55
  * - **Cache/enrichment/scraper/model/embedding integrations**: remain injected
56
- * ports (see participant-context/ports) or protocol-owned technology bindings
56
+ * ports (see contexts/ports) or protocol-owned technology bindings
57
57
  * in shared/agent and shared/hyde.
58
58
  *
59
59
  * IND-545: canonical home for participant-context domain contracts previously
60
- * spread across premise/, context/, enrichment/, and shared/hyde/.
60
+ * spread across premises/, contexts/, enrichment/, and shared/hyde/.
61
61
  * Legacy paths remain as compatibility re-exports pointing here.
62
62
  */
63
- export { PremiseGraphState } from "../../premise/premise.state.js";
63
+ export { PremiseGraphState } from "../../premises/premise.state.js";
64
64
  export { EnrichmentGraphState } from "../../enrichment/enrichment.state.js";
65
65
  export { HydeGraphState, type HydeDocumentState, type HydeDocumentOrigin, type HydeValidationStatus, } from "../../shared/hyde/hyde.state.js";
66
- export type { UserContextInput, IncrementalContextInput, GlobalContextInput, GlobalIncrementalContextInput, UserContextResult, } from "../../context/context.generator.js";
66
+ export type { UserContextInput, IncrementalContextInput, GlobalContextInput, GlobalIncrementalContextInput, UserContextResult, } from "../../contexts/context.generator.js";
67
67
  export type { PremiseAssertion, PremiseProvenance, PremiseAnalysis, PremiseValidity, PremiseRecord, } from "../../shared/interfaces/database.interface.js";
@@ -1,5 +1,5 @@
1
1
  /**
2
- * participant-context/domain — pure participant-context contracts.
2
+ * contexts/domain — pure participant-context contracts.
3
3
  *
4
4
  * Value types, graph-state shapes, and domain model types that define the
5
5
  * participant-context capability's domain language.
@@ -53,15 +53,15 @@
53
53
  * refresh): managed by the background runtime shell. They are the consumers of
54
54
  * PremiseGraphFactory and EnrichmentGraphFactory in queue-worker mode.
55
55
  * - **Cache/enrichment/scraper/model/embedding integrations**: remain injected
56
- * ports (see participant-context/ports) or protocol-owned technology bindings
56
+ * ports (see contexts/ports) or protocol-owned technology bindings
57
57
  * in shared/agent and shared/hyde.
58
58
  *
59
59
  * IND-545: canonical home for participant-context domain contracts previously
60
- * spread across premise/, context/, enrichment/, and shared/hyde/.
60
+ * spread across premises/, contexts/, enrichment/, and shared/hyde/.
61
61
  * Legacy paths remain as compatibility re-exports pointing here.
62
62
  */
63
63
  // ── Premise graph state ───────────────────────────────────────────────────────
64
- export { PremiseGraphState } from "../../premise/premise.state.js";
64
+ export { PremiseGraphState } from "../../premises/premise.state.js";
65
65
  // ── Enrichment graph state ────────────────────────────────────────────────────
66
66
  export { EnrichmentGraphState } from "../../enrichment/enrichment.state.js";
67
67
  // ── HyDE graph state and document types ──────────────────────────────────────
@@ -0,0 +1,13 @@
1
+ /**
2
+ * participant-context — 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
+ * Anything outside this capability imports from here and nowhere else.
9
+ * Supersedes the capabilities/participant-context.facade.ts + public/ pair; the
10
+ * export list is the union of the facades it replaces, so the contract is unchanged.
11
+ */
12
+ export { createEnrichmentTools, createPremiseTools, EnrichmentGraphFactory, PremiseGraphFactory, UserContextGenerator, HydeGraphFactory, HydeGenerator, LensInferrer, } from "./application/index.js";
13
+ export type { EnrichmentToolDeps, PremiseToolDeps, } from "./ports/participant-context.tools.port.js";
@@ -0,0 +1,14 @@
1
+ /**
2
+ * participant-context — 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
+ * Anything outside this capability imports from here and nowhere else.
9
+ * Supersedes the capabilities/participant-context.facade.ts + public/ pair; the
10
+ * export list is the union of the facades it replaces, so the contract is unchanged.
11
+ */
12
+ export { createEnrichmentTools, createPremiseTools, EnrichmentGraphFactory, PremiseGraphFactory, UserContextGenerator,
13
+ // HyDE — participant-context technology binding
14
+ HydeGraphFactory, HydeGenerator, LensInferrer, } from "./application/index.js";
@@ -1,5 +1,5 @@
1
1
  /**
2
- * participant-context/ports — narrow injected dependency contracts.
2
+ * contexts/ports — narrow injected dependency contracts.
3
3
  *
4
4
  * Re-exports the subset of shared/interfaces types that the participant-context
5
5
  * capability declares as explicit injected ports. Consumers of the
@@ -1,5 +1,5 @@
1
1
  /**
2
- * participant-context/ports — narrow injected dependency contracts.
2
+ * contexts/ports — narrow injected dependency contracts.
3
3
  *
4
4
  * Re-exports the subset of shared/interfaces types that the participant-context
5
5
  * capability declares as explicit injected ports. Consumers of the
@@ -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">;