@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
@@ -1,11 +1,11 @@
1
1
  /**
2
- * communities/application — orchestrators, factories, tools, and agents.
2
+ * networks/application — orchestrators, factories, tools, and agents.
3
3
  *
4
4
  * Re-exports the orchestration tier of the communities capability: graph
5
5
  * factories (LangGraph compilations), tool factories, and agent classes.
6
6
  *
7
- * Boundary: application-layer only. Imports from communities/domain,
8
- * communities/ports, and shared/ infrastructure — never from runtime/,
7
+ * Boundary: application-layer only. Imports from networks/domain,
8
+ * networks/ports, and shared/ infrastructure — never from runtime/,
9
9
  * host implementations, or capability facades (except as injected ports).
10
10
  *
11
11
  * ## Foreground use cases (participant-directed)
@@ -1,5 +1,5 @@
1
1
  import type { IntentNetworkGraphDatabase } from "../ports/index.js";
2
- import type { DebugMetaAgent } from "../../capabilities/participant-agents.debug.facade.js";
2
+ import type { DebugMetaAgent } from "../../agents/index.js";
3
3
  import type { IntentIndexer } from "../ports/index.js";
4
4
  import { type AssignmentResult } from "./indexer.state.js";
5
5
  /**
@@ -1,4 +1,4 @@
1
- import type { DebugMetaAgent } from "../../capabilities/participant-agents.debug.facade.js";
1
+ import type { DebugMetaAgent } from "../../agents/index.js";
2
2
  /**
3
3
  * Intent payload and metadata loaded for network evaluation.
4
4
  * Loaded from the database before LLM-based assignment scoring.
@@ -1,5 +1,5 @@
1
1
  import type { DefineTool } from "../../shared/agent/tool.helpers.js";
2
- import type { NetworkToolDeps } from "../../capabilities/communities.tools.port.js";
2
+ import type { NetworkToolDeps } from "../ports/communities.tools.port.js";
3
3
  /**
4
4
  * Creates all community (network) lifecycle and membership tools.
5
5
  *
@@ -1,5 +1,5 @@
1
1
  /**
2
- * communities/domain — pure community contracts.
2
+ * networks/domain — pure community contracts.
3
3
  *
4
4
  * Value types and graph-state shapes that define the communities capability's
5
5
  * domain language. No LLM calls, no LangGraph edges, no cross-capability
@@ -19,7 +19,7 @@
19
19
  *
20
20
  * - IntentNetworkGraphState: it carries `IntentIndexerOutput` (a signals type)
21
21
  * and `DebugMetaAgent` (a participant-agents type), so it belongs in the
22
- * application layer (communities/application/indexer.state.ts).
22
+ * application layer (networks/application/indexer.state.ts).
23
23
  *
24
24
  * IND-546: canonical home for pure community state types.
25
25
  * Legacy paths (network/network.state.ts, network/membership/membership.state.ts)
@@ -1,5 +1,5 @@
1
1
  /**
2
- * communities/domain — pure community contracts.
2
+ * networks/domain — pure community contracts.
3
3
  *
4
4
  * Value types and graph-state shapes that define the communities capability's
5
5
  * domain language. No LLM calls, no LangGraph edges, no cross-capability
@@ -19,7 +19,7 @@
19
19
  *
20
20
  * - IntentNetworkGraphState: it carries `IntentIndexerOutput` (a signals type)
21
21
  * and `DebugMetaAgent` (a participant-agents type), so it belongs in the
22
- * application layer (communities/application/indexer.state.ts).
22
+ * application layer (networks/application/indexer.state.ts).
23
23
  *
24
24
  * IND-546: canonical home for pure community state types.
25
25
  * Legacy paths (network/network.state.ts, network/membership/membership.state.ts)
@@ -0,0 +1,9 @@
1
+ /**
2
+ * communities — 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 + networks/public/ pair; the export
6
+ * list is the union of the facades it replaces, so the contract is unchanged.
7
+ */
8
+ export { createNetworkTools, IntentNetworkGraphFactory, NetworkGraphFactory, NetworkMembershipGraphFactory, } from "./application/index.js";
9
+ export type { NetworkToolDeps, } from "./ports/communities.tools.port.js";
@@ -0,0 +1,8 @@
1
+ /**
2
+ * communities — 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 + networks/public/ pair; the export
6
+ * list is the union of the facades it replaces, so the contract is unchanged.
7
+ */
8
+ export { createNetworkTools, IntentNetworkGraphFactory, NetworkGraphFactory, NetworkMembershipGraphFactory, } from "./application/index.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 community discovery and membership tools. */
3
3
  export type NetworkToolDeps = Pick<ToolRegistryCompositionDeps, "userDb" | "systemDb" | "getUserContextText" | "networkRanker" | "reportToolError"> & {
4
4
  graphs: Pick<ToolRegistryCompositionDeps["graphs"], "index" | "networkMembership">;
@@ -1,5 +1,5 @@
1
1
  /**
2
- * communities/ports — narrow injected dependency contracts.
2
+ * networks/ports — narrow injected dependency contracts.
3
3
  *
4
4
  * Re-exports the subset of types that the communities capability declares as
5
5
  * explicit injected ports. Consumers of the communities module should import
@@ -21,5 +21,5 @@
21
21
  * IND-546: explicit port layer for communities; signals consumed via capabilities/signals.facade.ts.
22
22
  */
23
23
  export type { NetworkGraphDatabase, NetworkMembershipGraphDatabase, IntentNetworkGraphDatabase, } from "../../shared/interfaces/database.interface.js";
24
- export { IntentIndexer } from "../../capabilities/signals.facade.js";
25
- export type { IntentIndexerOutput } from "../../capabilities/signals.facade.js";
24
+ export { IntentIndexer } from "../../intents/index.js";
25
+ export type { IntentIndexerOutput } from "../../intents/index.js";
@@ -1,5 +1,5 @@
1
1
  /**
2
- * communities/ports — narrow injected dependency contracts.
2
+ * networks/ports — narrow injected dependency contracts.
3
3
  *
4
4
  * Re-exports the subset of types that the communities capability declares as
5
5
  * explicit injected ports. Consumers of the communities module should import
@@ -24,4 +24,4 @@
24
24
  // Re-exported from the signals capability facade so that application-layer code
25
25
  // (indexer.graph.ts, indexer.state.ts) imports from the communities port, not
26
26
  // directly from the signals facade or its implementation.
27
- export { IntentIndexer } from "../../capabilities/signals.facade.js";
27
+ export { IntentIndexer } from "../../intents/index.js";
@@ -1,5 +1,5 @@
1
1
  /**
2
- * opportunity/application — LLM agents, LangGraph graphs, effectful orchestration.
2
+ * opportunities/application — LLM agents, LangGraph graphs, effectful orchestration.
3
3
  *
4
4
  * ## What lives here (flat files)
5
5
  * - Opportunity lifecycle transitions (opportunity.lifecycle.ts)
@@ -1,5 +1,5 @@
1
1
  /**
2
- * opportunity/application — LLM agents, LangGraph graphs, effectful orchestration.
2
+ * opportunities/application — LLM agents, LangGraph graphs, effectful orchestration.
3
3
  *
4
4
  * ## What lives here (flat files)
5
5
  * - Opportunity lifecycle transitions (opportunity.lifecycle.ts)
@@ -19,7 +19,7 @@
19
19
  * private gate decision as a "counterparty declined" event.
20
20
  */
21
21
  import type { NegotiationGraphDatabase, OpportunityStatus } from '../../shared/interfaces/database.interface.js';
22
- import type { NegotiationOutcome, NegotiationTurn } from '../../capabilities/negotiation.state.facade.js';
22
+ import type { NegotiationOutcome, NegotiationTurn } from '../../negotiations/index.js';
23
23
  /**
24
24
  * Narrow slice of {@link NegotiationGraphDatabase} required by the loader. Kept
25
25
  * minimal so call sites can opt into a smaller surface.
@@ -1,4 +1,4 @@
1
- import { stripUnsupportedOpportunityClaims } from '../domain/opportunity.claim-safety.js';
1
+ import { stripUnsupportedOpportunityClaims } from '../../shared/utils/claim-safety.js';
2
2
  import { stripUuids } from '../domain/opportunity.presentation.js';
3
3
  const CODE_FENCE = String.fromCharCode(96, 96, 96);
4
4
  function sanitizeJsonForCodeFence(json) {
@@ -1,4 +1,4 @@
1
- import { buildFallbackDigest } from '../../capabilities/negotiation.summary.facade.js';
1
+ import { buildFallbackDigest } from '../../negotiations/index.js';
2
2
  import { protocolLogger } from '../../shared/observability/protocol.logger.js';
3
3
  import { traceAgent } from '../../shared/observability/trace.js';
4
4
  const logger = protocolLogger('OpportunityDiscoveryNegotiationSummary');
@@ -16,7 +16,7 @@ import { stripUuids } from "../domain/opportunity.presentation.js";
16
16
  import { createStructuredModel } from "../../shared/agent/model.config.js";
17
17
  import { invokeWithAbortSignal } from "../../shared/agent/model-signal.js";
18
18
  import { renderOpportunityEvidenceForPrompt } from '../domain/opportunity.evidence.js';
19
- import { hasUnsupportedOpportunityClaim } from '../domain/opportunity.claim-safety.js';
19
+ import { hasUnsupportedOpportunityClaim } from '../../shared/utils/claim-safety.js';
20
20
  import { normalizeOpportunityActorIntent } from '../domain/opportunity.actor.js';
21
21
  const logger = protocolLogger("OpportunityEvaluator");
22
22
  const invokeLog = protocolLogger("OpportunityEvaluator:invoke");
@@ -12,7 +12,7 @@
12
12
  * Constructor injects Database, Embedder, and compiled HyDE graph.
13
13
  */
14
14
  import type { Id, NegotiationContinuationReceipt } from '../../shared/interfaces/database.interface.js';
15
- import type { DebugMetaAgent } from '../../capabilities/participant-agents.debug.facade.js';
15
+ import type { DebugMetaAgent } from '../../agents/index.js';
16
16
  import { type IndexedIntent, type SourceProfileData, type TargetNetwork, type CandidateMatch, type EvaluatedOpportunity, type EvaluatedOpportunityActor } from '../domain/opportunity.state.js';
17
17
  import { type CandidateProfile, type EvaluatorEntity, type EvaluatorInput } from './opportunity.evaluator.js';
18
18
  import type { OpportunityGraphDatabase } from '../../shared/interfaces/database.interface.js';
@@ -44,7 +44,7 @@ export type OpportunityEvaluatorLike = {
44
44
  };
45
45
  import type { Embedder } from '../../shared/interfaces/embedder.interface.js';
46
46
  import type { Opportunity, OpportunityStatus } from '../../shared/interfaces/database.interface.js';
47
- import type { NegotiationGraphLike } from "../../capabilities/negotiation.discovery.facade.js";
47
+ import type { NegotiationGraphLike } from "../../negotiations/index.js";
48
48
  import type { AgentDispatcher } from "../../shared/interfaces/agent-dispatcher.interface.js";
49
49
  import { type QueueOpportunityNotificationFn } from './opportunity.lifecycle.js';
50
50
  import { type StampNewbornOpportunitiesFn } from './opportunity.newborn-stamping.js';
@@ -414,7 +414,7 @@ export declare class OpportunityGraphFactory {
414
414
  seedAssessmentScore?: number | undefined;
415
415
  }[]> | undefined;
416
416
  discoverySummary?: import("../../index.js").DiscoverySummary | import("@langchain/langgraph").OverwriteValue<import("../../index.js").DiscoverySummary | null> | null | undefined;
417
- }, "scope" | "send" | "update" | "__start__" | "discovery" | "read" | "prep" | "negotiate_existing" | "approve_introduction" | "persist" | "resolve" | "evaluation" | "ranking" | "intro_validation" | "intro_evaluation" | "delete_opp" | "negotiate", {
417
+ }, "scope" | "send" | "update" | "discovery" | "__start__" | "read" | "prep" | "negotiate_existing" | "approve_introduction" | "persist" | "resolve" | "evaluation" | "ranking" | "intro_validation" | "intro_evaluation" | "delete_opp" | "negotiate", {
418
418
  userId: import("@langchain/langgraph").BaseChannel<Id<"users">, Id<"users"> | import("@langchain/langgraph").OverwriteValue<Id<"users">>, unknown>;
419
419
  searchQuery: import("@langchain/langgraph").BaseChannel<string | undefined, string | import("@langchain/langgraph").OverwriteValue<string | undefined> | undefined, unknown>;
420
420
  networkId: import("@langchain/langgraph").BaseChannel<Id<"networks"> | undefined, Id<"networks"> | import("@langchain/langgraph").OverwriteValue<Id<"networks"> | undefined> | undefined, unknown>;
@@ -14,16 +14,16 @@
14
14
  import { StateGraph, START, END } from '@langchain/langgraph';
15
15
  import { OpportunityGraphState } from '../domain/opportunity.state.js';
16
16
  import { OpportunityEvaluator } from './opportunity.evaluator.js';
17
- import { IntentIndexer } from '../../capabilities/signals.indexing.facade.js';
17
+ import { IntentIndexer } from '../../intents/index.js';
18
18
  import { getModelName } from '../../shared/agent/model.config.js';
19
19
  import { selectHydeDocumentsForGeneration } from '../../shared/hyde/hyde.documents.js';
20
20
  import { getHydeGenerationMode } from '../../shared/hyde/hyde.env.js';
21
21
  import { validateOpportunityActors } from '../domain/opportunity.utils.js';
22
22
  import { safeFallbackSummary } from '../domain/opportunity.safe-presentation.js';
23
- import { hasUnsupportedOpportunityClaim } from '../domain/opportunity.claim-safety.js';
23
+ import { hasUnsupportedOpportunityClaim } from '../../shared/utils/claim-safety.js';
24
24
  import { persistOpportunities } from './opportunity.persist.js';
25
25
  import { INTRODUCER_DISCOVERY_SOURCE } from './opportunity.introducer.js';
26
- import { negotiateCandidates, ASK_USER_LOCK_SLACK_MS, askUserAnswerWindowMs, AMBIENT_PARK_WINDOW_MS } from "../../capabilities/negotiation.discovery.facade.js";
26
+ import { negotiateCandidates, ASK_USER_LOCK_SLACK_MS, askUserAnswerWindowMs, AMBIENT_PARK_WINDOW_MS } from "../../negotiations/index.js";
27
27
  import { buildDiscoverySummary, toDiscoveryNegotiation } from "../domain/negotiation-summary.builder.js";
28
28
  import { protocolLogger, withCallLogging } from '../../shared/observability/protocol.logger.js';
29
29
  import { timed } from '../../shared/observability/performance.js';
@@ -63,7 +63,7 @@ export type OpportunityOwnerApprovalDenialReason =
63
63
  | 'forged'
64
64
  /** Proof or underlying challenge has expired. */
65
65
  | 'stale'
66
- /** Proof is not bound to an exact opportunity/action/owner/agent/interaction. */
66
+ /** Proof is not bound to an exact opportunities/action/owner/agent/interaction. */
67
67
  | 'generic'
68
68
  /** Proof binding mismatches the current server-derived binding. */
69
69
  | 'wrong_owner' | 'wrong_agent' | 'wrong_action' | 'wrong_opportunity'
@@ -5,7 +5,7 @@
5
5
  * before the registry invokes a tool. Tool input schemas never contain this
6
6
  * field, so a caller cannot forge a direct-owner interaction through args or
7
7
  * generic context data. Keeping this extension here avoids changing the shared
8
- * helper that is part of the negotiation/question architecture cycle.
8
+ * helper that is part of the negotiations/question architecture cycle.
9
9
  */
10
10
  const OWNER_APPROVAL_PROVENANCE = Symbol("ownerApprovalProvenance");
11
11
  function hasOwnerApprovalProvenance(context) {
@@ -22,7 +22,7 @@ import { protocolLogger } from "../../shared/observability/protocol.logger.js";
22
22
  import { createStructuredModel } from "../../shared/agent/model.config.js";
23
23
  import { viewerCentricCardSummary } from "../domain/opportunity.presentation.js";
24
24
  import { stripUuids, stripIntroducerMentions } from "../domain/opportunity.presentation.js";
25
- import { stripUnsupportedOpportunityClaims } from "../domain/opportunity.claim-safety.js";
25
+ import { stripUnsupportedOpportunityClaims } from "../../shared/utils/claim-safety.js";
26
26
  import { DEFAULT_EMPTY_FALLBACK_TEXT, DEFAULT_FALLBACK_ACTION, DEFAULT_FALLBACK_HEADLINE, safeFallbackSummary } from "../domain/opportunity.safe-presentation.js";
27
27
  const presentLog = protocolLogger("OpportunityPresenter:present");
28
28
  const presentCardLog = protocolLogger("OpportunityPresenter:presentCard");
@@ -6,7 +6,7 @@ import { MINIMAL_MAIN_TEXT_MAX_CHARS, getPrimaryActionLabel, SECONDARY_ACTION_LA
6
6
  import { narratorRemarkFromReasoning, stripUuids } from "../domain/opportunity.presentation.js";
7
7
  import { safeFallbackSummary } from "../domain/opportunity.safe-presentation.js";
8
8
  import { buildOpportunityPresentation } from "./opportunity.card-presentation.js";
9
- import { isUptakeGuardEnabled } from "../../capabilities/questions.runtime.facade.js";
9
+ import { isUptakeGuardEnabled } from "../../questions/index.js";
10
10
  import { OpportunityPresenter, gatherPresenterContext } from "./opportunity.presenter.js";
11
11
  import { loadNegotiationContext } from "./negotiation-context.loader.js";
12
12
  import { admitOpportunityUpdate } from './opportunity.update-admission.js';
@@ -1,4 +1,4 @@
1
- import type { QuestionPoolDiscriminator } from "../../questions/domain/question.schema.js";
1
+ import type { QuestionPoolDiscriminator } from "../../questions/index.js";
2
2
  /** Recipient and intent provenance that scopes one pool preference. */
3
3
  export interface PoolAdjustmentProvenance {
4
4
  recipientUserId: string;
@@ -1,4 +1,4 @@
1
- import type { QuestionPoolSnapshot } from "../../questions/domain/question.schema.js";
1
+ import type { QuestionPoolSnapshot } from "../../questions/index.js";
2
2
  /** Maximum raw intent-title characters included in a proactive DM line. */
3
3
  export declare const POOL_QUESTION_PUSH_TITLE_MAX_CHARS = 80;
4
4
  /** Stable identity for one pool refresh cycle. Chained alternates retain it. */
@@ -8,7 +8,7 @@
8
8
  * produced (and evidence-verified) at mining time, so synthesis is pure,
9
9
  * auditable, and cheap to re-run for interview-mode chaining.
10
10
  */
11
- import type { Question, QuestionPoolDiscriminator, QuestionPoolSnapshot } from "../../questions/domain/question.schema.js";
11
+ import type { Question, QuestionPoolDiscriminator, QuestionPoolSnapshot } from "../../questions/index.js";
12
12
  import type { ScoredDiscriminator } from "./discriminator.types.js";
13
13
  /** Fixed option appended to every pool question — the no-preference escape. */
14
14
  export declare const BOTH_MATTER_LABEL = "Both matter";
@@ -1,5 +1,5 @@
1
1
  /**
2
- * opportunity/domain — pure types, predicates, policy, and domain contracts.
2
+ * opportunities/domain — pure types, predicates, policy, and domain contracts.
3
3
  *
4
4
  * ## What lives here (flat files)
5
5
  * - Graph state schema and interfaces (opportunity.state.ts)
@@ -28,7 +28,7 @@ export * from "./opportunity.labels.js";
28
28
  export * from "./opportunity.utils.js";
29
29
  export * from "./opportunity.actor.js";
30
30
  export * from "./opportunity.evidence.js";
31
- export * from "./opportunity.claim-safety.js";
31
+ export * from "../../shared/utils/claim-safety.js";
32
32
  export * from "./opportunity.presentation.js";
33
33
  export * from "./opportunity.safe-presentation.js";
34
34
  export * from "./opportunity.presentation-cache.js";
@@ -1,5 +1,5 @@
1
1
  /**
2
- * opportunity/domain — pure types, predicates, policy, and domain contracts.
2
+ * opportunities/domain — pure types, predicates, policy, and domain contracts.
3
3
  *
4
4
  * ## What lives here (flat files)
5
5
  * - Graph state schema and interfaces (opportunity.state.ts)
@@ -29,7 +29,7 @@ export * from "./opportunity.labels.js";
29
29
  export * from "./opportunity.utils.js";
30
30
  export * from "./opportunity.actor.js";
31
31
  export * from "./opportunity.evidence.js";
32
- export * from "./opportunity.claim-safety.js";
32
+ export * from "../../shared/utils/claim-safety.js";
33
33
  export * from "./opportunity.presentation.js";
34
34
  export * from "./opportunity.safe-presentation.js";
35
35
  export * from "./opportunity.presentation-cache.js";
@@ -3,7 +3,7 @@
3
3
  * `DiscoveryNegotiation` / `DiscoverySummary` shapes consumed by the question
4
4
  * generator. No DB access, no LLM — safe to import from anywhere.
5
5
  */
6
- import type { NegotiationTurn, NegotiationOutcome } from "../../capabilities/negotiation.state.facade.js";
6
+ import type { NegotiationTurn, NegotiationOutcome } from "../../negotiations/index.js";
7
7
  import type { DiscoveryNegotiation, DiscoverySummary } from "../../shared/schemas/discovery-question.schema.js";
8
8
  /**
9
9
  * The input shape collected by the opportunity graph's negotiate node for
@@ -3,7 +3,7 @@
3
3
  * Generates title, description, and CTA based on viewer context — no DB access.
4
4
  */
5
5
  import { MINIMAL_MAIN_TEXT_MAX_CHARS } from "./opportunity.labels.js";
6
- import { stripUnsupportedOpportunityClaims } from "./opportunity.claim-safety.js";
6
+ import { stripUnsupportedOpportunityClaims } from "../../shared/utils/claim-safety.js";
7
7
  /**
8
8
  * Generate presentation copy for an opportunity based on viewer context.
9
9
  * Pure function — no side effects, no database access.
@@ -20,7 +20,7 @@
20
20
  * checklist this module exists to satisfy.
21
21
  */
22
22
  import { truncateAtBoundary, viewerCentricCardSummary } from "./opportunity.presentation.js";
23
- import { stripUnsupportedOpportunityClaims } from "./opportunity.claim-safety.js";
23
+ import { stripUnsupportedOpportunityClaims } from "../../shared/utils/claim-safety.js";
24
24
  /** Default max length for fallback summaries (matches presenter internal fallback). */
25
25
  export const SAFE_FALLBACK_MAX_CHARS = 300;
26
26
  /** Default copy when no reasoning text is available at all. */
@@ -1,7 +1,7 @@
1
1
  import type { Id, NegotiationContinuationExecution, NegotiationContinuationReceipt, OpportunityStatus, Opportunity } from '../../shared/interfaces/database.interface.js';
2
2
  import type { Lens } from '../../shared/interfaces/embedder.interface.js';
3
3
  import type { EvaluatorEntity } from '../application/opportunity.evaluator.js';
4
- import type { DebugMetaAgent } from '../../capabilities/participant-agents.debug.facade.js';
4
+ import type { DebugMetaAgent } from '../../agents/index.js';
5
5
  import type { OpportunityEvidence } from '../../shared/schemas/network-assignment.schema.js';
6
6
  import type { DiscoverySummary } from "../../shared/schemas/discovery-question.schema.js";
7
7
  /**
@@ -0,0 +1,54 @@
1
+ /**
2
+ * opportunity — 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 + opportunities/public/ pair; the export
6
+ * list is the union of the facades it replaces, so the contract is unchanged.
7
+ */
8
+ export { getOrCreateDeliveryCardBatch, } from "./application/delivery-card.cache.js";
9
+ export { OpportunityEvaluator, } from "./application/opportunity.evaluator.js";
10
+ export type { EvaluatorInput, } from "./application/opportunity.evaluator.js";
11
+ export { OpportunityGraphFactory, } from "./application/opportunity.graph.js";
12
+ export type { OpportunityGraphThresholdOverrides, } from "./application/opportunity.graph.js";
13
+ export { isIntroducerDiscoveryEnabled, } from "./application/opportunity.introducer-feature.js";
14
+ export { INTRODUCER_DISCOVERY_SOURCE, MAX_CANDIDATES_PER_CONTACT, MAX_CONTACTS_PER_CYCLE, runIntroducerDiscovery, selectContactsForDiscovery, shouldRunIntroducerDiscovery, } from "./application/opportunity.introducer.js";
15
+ export type { ContactWithIntents, IntroducerDiscoveryDatabase, IntroducerDiscoveryQueue, } from "./application/opportunity.introducer.js";
16
+ export type { StampNewbornOpportunitiesFn, StampNewbornOpportunitiesInput, } from "./application/opportunity.newborn-stamping.js";
17
+ export { opportunityOwnerActionForStatus, } from "./application/opportunity.owner-approval.js";
18
+ export type { OpportunityOwnerAction, OpportunityOwnerApprovalAttestation, OpportunityOwnerApprovalAuthority, OpportunityOwnerApprovalBinding, OpportunityOwnerApprovalChallenge, OpportunityOwnerApprovalDenialReason, OpportunityOwnerApprovalVerdict, OpportunityOwnerInteractionProvenance, OpportunityOwnerInteractionSurface, } from "./application/opportunity.owner-approval.js";
19
+ export { bindOwnerApprovalProvenance, } from "./application/opportunity.owner-provenance.js";
20
+ export { persistOpportunities, } from "./application/opportunity.persist.js";
21
+ export { gatherPresenterContext, OpportunityPresenter, } from "./application/opportunity.presenter.js";
22
+ export type { PresenterDatabase, } from "./application/opportunity.presenter.js";
23
+ export { createOpportunityTools, } from "./application/opportunity.tools.js";
24
+ export { DISCOVERY_EVALUATOR_MIN_SCORE_DEFAULT, DISCOVERY_MIN_SIMILARITY_DEFAULT, discoveryAllowedTypes, discoveryEvaluatorMinScore, discoveryIntentMatchingEnabled, discoveryMinSimilarity, discoveryProfileMatchingEnabled, discoveryProfileSource, resetDiscoveryEnvWarningsForTests, validateDiscoveryEvaluatorMinScore, validateDiscoveryMinSimilarity, } from "./discovery.env.js";
25
+ export type { DiscoveryMatchType, DiscoveryProfileSource, } from "./discovery.env.js";
26
+ export { buildPoolAdjustment, mergePoolAdjustment, planPoolAdjustments, } from "./discriminator/discriminator.adjustments.js";
27
+ export type { PoolAdjustment, PoolAdjustmentSignal, } from "./discriminator/discriminator.adjustments.js";
28
+ export { PoolDiscriminatorAssigner, } from "./discriminator/discriminator.assigner.js";
29
+ export type { PoolDiscriminatorAssignedAxis, PoolDiscriminatorAssignmentInput, } from "./discriminator/discriminator.assigner.js";
30
+ export { POOL_DISCRIMINATOR_MAX_CANDIDATES, POOL_DISCRIMINATOR_MAX_PUBLIC_CONTEXT_CHARS, POOL_DISCRIMINATOR_MIN_POOL_SIZE, POOL_QUESTION_MAX_PENDING_PER_INTENT, POOL_QUESTION_MIN_VOI, POOL_RERUN_DEBOUNCE_MS, POOL_VISIT_MINING_DEBOUNCE_MS, poolQuestionsMiningMode, poolQuestionsMode, poolQuestionsPushMode, poolQuestionsRanking, poolQuestionsStampNewborn, poolQuestionsVisitTrigger, } from "./discriminator/discriminator.env.js";
31
+ export { PoolDiscriminatorMiner, } from "./discriminator/discriminator.miner.js";
32
+ export { buildPoolQuestionPushMessage, poolQuestionCycleKey, } from "./discriminator/discriminator.push.js";
33
+ export { BOTH_MATTER_LABEL, selectQuestionDiscriminators, synthesizePoolQuestion, toQuestionDiscriminator, } from "./discriminator/discriminator.question.js";
34
+ export { runPoolDiscriminatorShadow, } from "./discriminator/discriminator.shadow.js";
35
+ export type { DiscriminatorMiningInput, MinedDiscriminator, PoolCandidate, } from "./discriminator/discriminator.types.js";
36
+ export { hasUnsupportedOpportunityClaim, stripUnsupportedOpportunityClaims, stripUnsupportedOpportunityClaims as stripUnsupportedOpportunityClaimsText, } from "../shared/utils/claim-safety.js";
37
+ export { buildCandidateEvidence, } from "./domain/opportunity.evidence.js";
38
+ export { getPrimaryActionLabel, } from "./domain/opportunity.labels.js";
39
+ export { buildApiChatCardPresentationCacheKey, buildDeliveryCardPresentationCacheKey, buildRadarCardPresentationCacheKey, } from "./domain/opportunity.presentation-cache.js";
40
+ export { presentOpportunity, stripUuids, truncateAtBoundary, } from "./domain/opportunity.presentation.js";
41
+ export type { UserInfo, } from "./domain/opportunity.presentation.js";
42
+ export { DEFAULT_FALLBACK_HEADLINE, safeFallbackSummary, } from "./domain/opportunity.safe-presentation.js";
43
+ export { canUserSeeOpportunity, classifyOpportunity, isActionableForViewer, RADAR_SOFT_TARGETS, selectByComposition, validateOpportunityActors, } from "./domain/opportunity.utils.js";
44
+ export { NEGOTIATION_EVIDENCE_MAX_OPPORTUNITIES, negotiationEvidenceQuestionsMode, } from "./negotiation-evidence/negotiation-evidence.env.js";
45
+ export { NegotiationEvidenceMiner, } from "./negotiation-evidence/negotiation-evidence.miner.js";
46
+ export { runNegotiationEvidenceShadow, } from "./negotiation-evidence/negotiation-evidence.shadow.js";
47
+ export type { RawEvidenceOutcome, RawEvidenceOwnerAnswer, RawEvidenceSegment, RawEvidenceTurn, } from "./negotiation-evidence/negotiation-evidence.types.js";
48
+ export { isOutcomeQuestionsActivated, OUTCOME_MAX_CANDIDATES, OUTCOME_MAX_PUBLIC_CONTEXT_CHARS, OUTCOME_MIN_INDEPENDENT_EXAMPLES, } from "./outcome/outcome.env.js";
49
+ export { runOutcomeShadow, } from "./outcome/outcome.shadow.js";
50
+ export type { OutcomeExample, OutcomeLabel, OutcomeShadowResult, } from "./outcome/outcome.types.js";
51
+ export type { OpportunityToolDeps, } from "./ports/index.js";
52
+ export { RadarGraphFactory, } from "./radar/radar.graph.js";
53
+ export { computeRadarHealth, } from "./radar/radar.health.js";
54
+ export type { RadarHealthInput, } from "./radar/radar.health.js";
@@ -0,0 +1,39 @@
1
+ /**
2
+ * opportunity — 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 + opportunities/public/ pair; the export
6
+ * list is the union of the facades it replaces, so the contract is unchanged.
7
+ */
8
+ export { getOrCreateDeliveryCardBatch, } from "./application/delivery-card.cache.js";
9
+ export { OpportunityEvaluator, } from "./application/opportunity.evaluator.js";
10
+ export { OpportunityGraphFactory, } from "./application/opportunity.graph.js";
11
+ export { isIntroducerDiscoveryEnabled, } from "./application/opportunity.introducer-feature.js";
12
+ export { INTRODUCER_DISCOVERY_SOURCE, MAX_CANDIDATES_PER_CONTACT, MAX_CONTACTS_PER_CYCLE, runIntroducerDiscovery, selectContactsForDiscovery, shouldRunIntroducerDiscovery, } from "./application/opportunity.introducer.js";
13
+ export { opportunityOwnerActionForStatus, } from "./application/opportunity.owner-approval.js";
14
+ export { bindOwnerApprovalProvenance, } from "./application/opportunity.owner-provenance.js";
15
+ export { persistOpportunities, } from "./application/opportunity.persist.js";
16
+ export { gatherPresenterContext, OpportunityPresenter, } from "./application/opportunity.presenter.js";
17
+ export { createOpportunityTools, } from "./application/opportunity.tools.js";
18
+ export { DISCOVERY_EVALUATOR_MIN_SCORE_DEFAULT, DISCOVERY_MIN_SIMILARITY_DEFAULT, discoveryAllowedTypes, discoveryEvaluatorMinScore, discoveryIntentMatchingEnabled, discoveryMinSimilarity, discoveryProfileMatchingEnabled, discoveryProfileSource, resetDiscoveryEnvWarningsForTests, validateDiscoveryEvaluatorMinScore, validateDiscoveryMinSimilarity, } from "./discovery.env.js";
19
+ export { buildPoolAdjustment, mergePoolAdjustment, planPoolAdjustments, } from "./discriminator/discriminator.adjustments.js";
20
+ export { PoolDiscriminatorAssigner, } from "./discriminator/discriminator.assigner.js";
21
+ export { POOL_DISCRIMINATOR_MAX_CANDIDATES, POOL_DISCRIMINATOR_MAX_PUBLIC_CONTEXT_CHARS, POOL_DISCRIMINATOR_MIN_POOL_SIZE, POOL_QUESTION_MAX_PENDING_PER_INTENT, POOL_QUESTION_MIN_VOI, POOL_RERUN_DEBOUNCE_MS, POOL_VISIT_MINING_DEBOUNCE_MS, poolQuestionsMiningMode, poolQuestionsMode, poolQuestionsPushMode, poolQuestionsRanking, poolQuestionsStampNewborn, poolQuestionsVisitTrigger, } from "./discriminator/discriminator.env.js";
22
+ export { PoolDiscriminatorMiner, } from "./discriminator/discriminator.miner.js";
23
+ export { buildPoolQuestionPushMessage, poolQuestionCycleKey, } from "./discriminator/discriminator.push.js";
24
+ export { BOTH_MATTER_LABEL, selectQuestionDiscriminators, synthesizePoolQuestion, toQuestionDiscriminator, } from "./discriminator/discriminator.question.js";
25
+ export { runPoolDiscriminatorShadow, } from "./discriminator/discriminator.shadow.js";
26
+ export { hasUnsupportedOpportunityClaim, stripUnsupportedOpportunityClaims, stripUnsupportedOpportunityClaims as stripUnsupportedOpportunityClaimsText, } from "../shared/utils/claim-safety.js";
27
+ export { buildCandidateEvidence, } from "./domain/opportunity.evidence.js";
28
+ export { getPrimaryActionLabel, } from "./domain/opportunity.labels.js";
29
+ export { buildApiChatCardPresentationCacheKey, buildDeliveryCardPresentationCacheKey, buildRadarCardPresentationCacheKey, } from "./domain/opportunity.presentation-cache.js";
30
+ export { presentOpportunity, stripUuids, truncateAtBoundary, } from "./domain/opportunity.presentation.js";
31
+ export { DEFAULT_FALLBACK_HEADLINE, safeFallbackSummary, } from "./domain/opportunity.safe-presentation.js";
32
+ export { canUserSeeOpportunity, classifyOpportunity, isActionableForViewer, RADAR_SOFT_TARGETS, selectByComposition, validateOpportunityActors, } from "./domain/opportunity.utils.js";
33
+ export { NEGOTIATION_EVIDENCE_MAX_OPPORTUNITIES, negotiationEvidenceQuestionsMode, } from "./negotiation-evidence/negotiation-evidence.env.js";
34
+ export { NegotiationEvidenceMiner, } from "./negotiation-evidence/negotiation-evidence.miner.js";
35
+ export { runNegotiationEvidenceShadow, } from "./negotiation-evidence/negotiation-evidence.shadow.js";
36
+ export { isOutcomeQuestionsActivated, OUTCOME_MAX_CANDIDATES, OUTCOME_MAX_PUBLIC_CONTEXT_CHARS, OUTCOME_MIN_INDEPENDENT_EXAMPLES, } from "./outcome/outcome.env.js";
37
+ export { runOutcomeShadow, } from "./outcome/outcome.shadow.js";
38
+ export { RadarGraphFactory, } from "./radar/radar.graph.js";
39
+ export { computeRadarHealth, } from "./radar/radar.health.js";
@@ -1,5 +1,5 @@
1
1
  /**
2
- * opportunity/ports — injected dependency contracts for the opportunities capability.
2
+ * opportunities/ports — injected dependency contracts for the opportunities capability.
3
3
  * IND-551: canonical port definitions.
4
4
  */
5
5
  export type { OpportunityToolDeps } from "./opportunity.tools.port.js";
@@ -4,7 +4,7 @@ import type { OpportunityOwnerApprovalAuthority } from "../application/opportuni
4
4
  * IND-593 host authority consumed only by the opportunity mutation boundary.
5
5
  *
6
6
  * This stays capability-local rather than extending the shared registry shape:
7
- * the shared helper participates in the negotiation/question architecture
7
+ * the shared helper participates in the negotiations/question architecture
8
8
  * cycle, while owner approval belongs to the opportunity composition seam.
9
9
  */
10
10
  export interface OpportunityOwnerApprovalDeps {
@@ -13,7 +13,7 @@
13
13
  import type { RadarGraphDatabase, OpportunityStatus } from '../../shared/interfaces/database.interface.js';
14
14
  import type { OpportunityCache } from '../../shared/interfaces/cache.interface.js';
15
15
  import { type RadarCardItem, type RadarResponseItem } from './radar.state.js';
16
- import type { DebugMetaAgent } from '../../capabilities/participant-agents.debug.facade.js';
16
+ import type { DebugMetaAgent } from '../../agents/index.js';
17
17
  /** Database must satisfy both RadarGraphDatabase and presenter context (getProfile, getActiveIntents, getNetwork, getUser). */
18
18
  type RadarGraphDb = RadarGraphDatabase;
19
19
  export type RadarGraphInvokeInput = {
@@ -1,5 +1,5 @@
1
1
  import type { Opportunity, OpportunityStatus } from '../../shared/interfaces/database.interface.js';
2
- import type { DebugMetaAgent } from '../../capabilities/participant-agents.debug.facade.js';
2
+ import type { DebugMetaAgent } from '../../agents/index.js';
3
3
  /**
4
4
  * Radar card item: one opportunity with full presenter-driven display contract.
5
5
  */
@@ -2,7 +2,7 @@ import type { PremiseAnalyzerOutput } from "./premise.analyzer.js";
2
2
  import { PremiseIndexer } from "./premise.indexer.js";
3
3
  import type { PremiseGraphDatabase, PremiseAnalysis } from "../shared/interfaces/database.interface.js";
4
4
  import type { Embedder } from "../shared/interfaces/embedder.interface.js";
5
- import type { DebugMetaAgent } from "../capabilities/participant-agents.debug.facade.js";
5
+ import type { DebugMetaAgent } from "../agents/index.js";
6
6
  /**
7
7
  * Graph factory for premise lifecycle: create, update, and query modes.
8
8
  */
@@ -1,5 +1,5 @@
1
1
  import type { PremiseAnalysis, PremiseRecord } from "../shared/interfaces/database.interface.js";
2
- import type { DebugMetaAgent } from '../capabilities/participant-agents.debug.facade.js';
2
+ import type { DebugMetaAgent } from '../agents/index.js';
3
3
  import type { ToolScopeType } from '../shared/agent/tool.scope.js';
4
4
  export declare const PremiseGraphState: import("@langchain/langgraph").AnnotationRoot<{
5
5
  userId: {
@@ -1,3 +1,3 @@
1
1
  import type { DefineTool } from "../shared/agent/tool.helpers.js";
2
- import type { PremiseToolDeps } from "../capabilities/participant-context.tools.port.js";
2
+ import type { PremiseToolDeps } from "../contexts/ports/participant-context.tools.port.js";
3
3
  export declare function createPremiseTools(defineTool: DefineTool, deps: PremiseToolDeps): any[];
@@ -19,7 +19,7 @@
19
19
  */
20
20
  import type { ToolScopeType } from "../../shared/agent/tool.scope.js";
21
21
  import type { NegotiationQuestionCandidate, QuestionMode, QuestionPoolDiscriminator } from "../domain/question.schema.js";
22
- import type { NegotiationConsultationReason } from "../../capabilities/negotiation.questions.facade.js";
22
+ import type { NegotiationConsultationReason } from "../../negotiations/index.js";
23
23
  /** Intent context — data needed to generate questions about an intent. */
24
24
  export interface IntentContext {
25
25
  intentId: string;
@@ -1,4 +1,4 @@
1
- import { NEGOTIATION_QUESTION_GENERIC_COUNTERPARTY, NEGOTIATION_QUESTION_GENERIC_NETWORK, NEGOTIATION_QUESTION_GENERIC_UPTAKE_ACTIVITY } from "../../capabilities/negotiation.questions.facade.js";
1
+ import { NEGOTIATION_QUESTION_GENERIC_COUNTERPARTY, NEGOTIATION_QUESTION_GENERIC_NETWORK, NEGOTIATION_QUESTION_GENERIC_UPTAKE_ACTIVITY } from "../../negotiations/index.js";
2
2
  /** Runtime mirror of the mode/purpose/context discriminant used at queue boundaries. */
3
3
  export function isValidQuestionerInputContract(input) {
4
4
  if (input.purpose === 'recovery') {
@@ -1,5 +1,5 @@
1
1
  import { QUD_UNDERSPECIFICATION_RULES } from "./question.qud.js";
2
- import { consultationPromptFor } from "../../capabilities/negotiation.questions.facade.js";
2
+ import { consultationPromptFor } from "../../negotiations/index.js";
3
3
  /**
4
4
  * Shared rule block appended to every questioner system prompt. Enforces that
5
5
  * the generated `prompt` resolves on its own — no demonstratives/anaphora that
@@ -331,7 +331,7 @@ function buildChatPrompt(ctx) {
331
331
  /**
332
332
  * pool_discovery has NO preset by design: those questions are synthesized
333
333
  * deterministically from mined discriminators (see
334
- * `opportunity/discriminator/discriminator.question.ts`) and never reach the
334
+ * `opportunities/discriminator/discriminator.question.ts`) and never reach the
335
335
  * QuestionerAgent. `getPreset("pool_discovery")` therefore throws — the
336
336
  * QuestionerQueue branches on the mode before invoking the agent.
337
337
  */