@indexnetwork/protocol 14.2.0-rc.470.1 → 14.2.1-rc.472.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 (306) hide show
  1. package/CHANGELOG.md +42 -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/{participant-agents → agents}/index.d.ts +1 -1
  10. package/dist/{participant-agents → agents}/ports/agent.dispatcher.port.d.ts +3 -3
  11. package/dist/{participant-agents → agents}/ports/agent.repository.port.d.ts +1 -1
  12. package/dist/{participant-agents → agents}/ports/agent.repository.port.js +1 -1
  13. package/dist/{participant-agents → agents}/ports/agent.tools.port.d.ts +1 -1
  14. package/dist/{participant-agents → agents}/ports/agent.tools.port.js +1 -1
  15. package/dist/{participant-agents → agents}/ports/index.d.ts +1 -1
  16. package/dist/{participant-agents → agents}/ports/index.js +1 -1
  17. package/dist/chat/chat.state.d.ts +1 -1
  18. package/dist/chat/chat.state.js +1 -1
  19. package/dist/chat/negotiator.prompt.d.ts +1 -1
  20. package/dist/chat/negotiator.prompt.js +1 -1
  21. package/dist/{participant-context → contexts}/application/index.d.ts +10 -10
  22. package/dist/{participant-context → contexts}/application/index.js +10 -10
  23. package/dist/{participant-context → contexts}/domain/index.d.ts +5 -5
  24. package/dist/{participant-context → contexts}/domain/index.js +4 -4
  25. package/dist/{participant-context → contexts}/ports/index.d.ts +1 -1
  26. package/dist/{participant-context → contexts}/ports/index.js +1 -1
  27. package/dist/enrichment/enrichment.graph.d.ts +1 -1
  28. package/dist/enrichment/enrichment.graph.js +1 -1
  29. package/dist/enrichment/enrichment.state.d.ts +1 -1
  30. package/dist/enrichment/enrichment.tools.d.ts +1 -1
  31. package/dist/index.d.ts +107 -107
  32. package/dist/index.js +76 -76
  33. package/dist/{signals → intents}/application/index.d.ts +2 -2
  34. package/dist/{signals → intents}/application/index.js +2 -2
  35. package/dist/{signals → intents}/application/intent.graph.d.ts +1 -1
  36. package/dist/{signals → intents}/domain/index.d.ts +1 -1
  37. package/dist/{signals → intents}/domain/index.js +1 -1
  38. package/dist/{signals → intents}/domain/intent.state.d.ts +1 -1
  39. package/dist/{signals → intents}/index.d.ts +1 -1
  40. package/dist/{signals → intents}/index.js +1 -1
  41. package/dist/{signals → intents}/ports/index.d.ts +1 -1
  42. package/dist/{signals → intents}/ports/index.js +1 -1
  43. package/dist/maintenance/maintenance.graph.d.ts +6 -6
  44. package/dist/maintenance/maintenance.graph.js +4 -4
  45. package/dist/maintenance/maintenance.state.d.ts +1 -1
  46. package/dist/mcp/mcp.server.js +2 -2
  47. package/dist/{negotiation → negotiations}/application/index.d.ts +2 -2
  48. package/dist/{negotiation → negotiations}/application/index.js +2 -2
  49. package/dist/{negotiation → negotiations}/application/negotiation.graph.d.ts +1 -1
  50. package/dist/{negotiation → negotiations}/domain/index.d.ts +9 -9
  51. package/dist/{negotiation → negotiations}/domain/index.js +9 -9
  52. package/dist/{negotiation → negotiations}/domain/negotiation.screen.contracts.d.ts +3 -3
  53. package/dist/{negotiation → negotiations}/domain/negotiation.screen.contracts.js +3 -3
  54. package/dist/{negotiation → negotiations}/domain/negotiation.stance.contracts.d.ts +1 -1
  55. package/dist/{negotiation → negotiations}/domain/negotiation.stance.contracts.js +1 -1
  56. package/dist/{negotiation → negotiations}/domain/negotiation.state.d.ts +1 -1
  57. package/dist/{negotiation → negotiations}/domain/negotiation.state.js +1 -1
  58. package/dist/{negotiation → negotiations}/index.d.ts +1 -1
  59. package/dist/{negotiation → negotiations}/index.js +1 -1
  60. package/dist/{negotiation → negotiations}/ports/index.d.ts +1 -1
  61. package/dist/{negotiation → negotiations}/ports/index.js +1 -1
  62. package/dist/{communities → networks}/application/index.d.ts +3 -3
  63. package/dist/{communities → networks}/application/index.js +3 -3
  64. package/dist/{communities → networks}/application/indexer.graph.d.ts +1 -1
  65. package/dist/{communities → networks}/application/indexer.state.d.ts +1 -1
  66. package/dist/{communities → networks}/domain/index.d.ts +2 -2
  67. package/dist/{communities → networks}/domain/index.js +2 -2
  68. package/dist/{communities → networks}/index.d.ts +1 -1
  69. package/dist/{communities → networks}/index.js +1 -1
  70. package/dist/{communities → networks}/ports/index.d.ts +3 -3
  71. package/dist/{communities → networks}/ports/index.js +2 -2
  72. package/dist/{opportunity → opportunities}/application/index.d.ts +1 -1
  73. package/dist/{opportunity → opportunities}/application/index.js +1 -1
  74. package/dist/{opportunity → opportunities}/application/negotiation-context.loader.d.ts +1 -1
  75. package/dist/{opportunity → opportunities}/application/opportunity.discovery-negotiation-summary.js +1 -1
  76. package/dist/{opportunity → opportunities}/application/opportunity.graph.d.ts +2 -2
  77. package/dist/{opportunity → opportunities}/application/opportunity.graph.js +2 -2
  78. package/dist/{opportunity → opportunities}/application/opportunity.owner-approval.d.ts +1 -1
  79. package/dist/{opportunity → opportunities}/application/opportunity.owner-provenance.js +1 -1
  80. package/dist/{opportunity → opportunities}/domain/index.d.ts +1 -1
  81. package/dist/{opportunity → opportunities}/domain/index.js +1 -1
  82. package/dist/{opportunity → opportunities}/domain/negotiation-summary.builder.d.ts +1 -1
  83. package/dist/{opportunity → opportunities}/domain/opportunity.state.d.ts +1 -1
  84. package/dist/{opportunity → opportunities}/index.d.ts +1 -1
  85. package/dist/{opportunity → opportunities}/index.js +1 -1
  86. package/dist/{opportunity → opportunities}/ports/index.d.ts +1 -1
  87. package/dist/{opportunity → opportunities}/ports/opportunity.tools.port.d.ts +1 -1
  88. package/dist/{opportunity → opportunities}/radar/radar.graph.d.ts +1 -1
  89. package/dist/{opportunity → opportunities}/radar/radar.state.d.ts +1 -1
  90. package/dist/{premise → premises}/premise.graph.d.ts +1 -1
  91. package/dist/{premise → premises}/premise.state.d.ts +1 -1
  92. package/dist/{premise → premises}/premise.tools.d.ts +1 -1
  93. package/dist/questions/application/question.input.d.ts +1 -1
  94. package/dist/questions/application/question.input.js +1 -1
  95. package/dist/questions/application/question.presets.js +2 -2
  96. package/dist/shared/agent/tool.factory.d.ts +1 -1
  97. package/dist/shared/agent/tool.factory.js +14 -14
  98. package/dist/shared/agent/tool.helpers.d.ts +5 -5
  99. package/dist/shared/agent/tool.registry.d.ts +1 -1
  100. package/dist/shared/agent/tool.registry.js +6 -6
  101. package/dist/shared/assignment/network-assignment.policy.d.ts +1 -1
  102. package/dist/shared/assignment/network-assignment.policy.js +1 -1
  103. package/dist/shared/interfaces/agent-dispatcher.interface.d.ts +3 -3
  104. package/dist/shared/interfaces/agent-dispatcher.interface.js +1 -1
  105. package/dist/shared/schemas/negotiation-state.schema.d.ts +2 -2
  106. package/dist/shared/schemas/negotiation-state.schema.js +2 -2
  107. package/package.json +1 -1
  108. /package/dist/{participant-agents → agents}/domain/index.js +0 -0
  109. /package/dist/{participant-agents → agents}/index.js +0 -0
  110. /package/dist/{participant-agents → agents}/ports/agent.dispatcher.port.js +0 -0
  111. /package/dist/{context → contexts}/context.generator.d.ts +0 -0
  112. /package/dist/{context → contexts}/context.generator.js +0 -0
  113. /package/dist/{participant-context → contexts}/index.d.ts +0 -0
  114. /package/dist/{participant-context → contexts}/index.js +0 -0
  115. /package/dist/{participant-context → contexts}/ports/participant-context.tools.port.d.ts +0 -0
  116. /package/dist/{participant-context → contexts}/ports/participant-context.tools.port.js +0 -0
  117. /package/dist/{signals → intents}/application/intake.orchestrator.d.ts +0 -0
  118. /package/dist/{signals → intents}/application/intake.orchestrator.js +0 -0
  119. /package/dist/{signals → intents}/application/intake.pack.generator.d.ts +0 -0
  120. /package/dist/{signals → intents}/application/intake.pack.generator.js +0 -0
  121. /package/dist/{signals → intents}/application/intent.clarifier.d.ts +0 -0
  122. /package/dist/{signals → intents}/application/intent.clarifier.js +0 -0
  123. /package/dist/{signals → intents}/application/intent.graph.js +0 -0
  124. /package/dist/{signals → intents}/application/intent.indexer.d.ts +0 -0
  125. /package/dist/{signals → intents}/application/intent.indexer.js +0 -0
  126. /package/dist/{signals → intents}/application/intent.inferrer.d.ts +0 -0
  127. /package/dist/{signals → intents}/application/intent.inferrer.js +0 -0
  128. /package/dist/{signals → intents}/application/intent.reconciler.d.ts +0 -0
  129. /package/dist/{signals → intents}/application/intent.reconciler.js +0 -0
  130. /package/dist/{signals → intents}/application/intent.tools.d.ts +0 -0
  131. /package/dist/{signals → intents}/application/intent.tools.js +0 -0
  132. /package/dist/{signals → intents}/application/intent.verifier.d.ts +0 -0
  133. /package/dist/{signals → intents}/application/intent.verifier.js +0 -0
  134. /package/dist/{signals → intents}/domain/intent.proposal.d.ts +0 -0
  135. /package/dist/{signals → intents}/domain/intent.proposal.js +0 -0
  136. /package/dist/{signals → intents}/domain/intent.state.js +0 -0
  137. /package/dist/{signals → intents}/domain/signal.specificity.d.ts +0 -0
  138. /package/dist/{signals → intents}/domain/signal.specificity.js +0 -0
  139. /package/dist/{signals → intents}/ports/signals.tools.port.d.ts +0 -0
  140. /package/dist/{signals → intents}/ports/signals.tools.port.js +0 -0
  141. /package/dist/{negotiation → negotiations}/application/insight.generator.d.ts +0 -0
  142. /package/dist/{negotiation → negotiations}/application/insight.generator.js +0 -0
  143. /package/dist/{negotiation → negotiations}/application/negotiation.agent.d.ts +0 -0
  144. /package/dist/{negotiation → negotiations}/application/negotiation.agent.js +0 -0
  145. /package/dist/{negotiation → negotiations}/application/negotiation.detail-reader.d.ts +0 -0
  146. /package/dist/{negotiation → negotiations}/application/negotiation.detail-reader.js +0 -0
  147. /package/dist/{negotiation → negotiations}/application/negotiation.graph.js +0 -0
  148. /package/dist/{negotiation → negotiations}/application/negotiation.reflect.d.ts +0 -0
  149. /package/dist/{negotiation → negotiations}/application/negotiation.reflect.js +0 -0
  150. /package/dist/{negotiation → negotiations}/application/negotiation.screen.d.ts +0 -0
  151. /package/dist/{negotiation → negotiations}/application/negotiation.screen.js +0 -0
  152. /package/dist/{negotiation → negotiations}/application/negotiation.summarizer.d.ts +0 -0
  153. /package/dist/{negotiation → negotiations}/application/negotiation.summarizer.js +0 -0
  154. /package/dist/{negotiation → negotiations}/application/negotiation.tools.d.ts +0 -0
  155. /package/dist/{negotiation → negotiations}/application/negotiation.tools.js +0 -0
  156. /package/dist/{negotiation → negotiations}/domain/negotiation.consultation-policy.d.ts +0 -0
  157. /package/dist/{negotiation → negotiations}/domain/negotiation.consultation-policy.js +0 -0
  158. /package/dist/{negotiation → negotiations}/domain/negotiation.deadlock.contracts.d.ts +0 -0
  159. /package/dist/{negotiation → negotiations}/domain/negotiation.deadlock.contracts.js +0 -0
  160. /package/dist/{negotiation → negotiations}/domain/negotiation.deadlock.d.ts +0 -0
  161. /package/dist/{negotiation → negotiations}/domain/negotiation.deadlock.js +0 -0
  162. /package/dist/{negotiation → negotiations}/domain/negotiation.expected-speaker.d.ts +0 -0
  163. /package/dist/{negotiation → negotiations}/domain/negotiation.expected-speaker.js +0 -0
  164. /package/dist/{negotiation → negotiations}/domain/negotiation.hermes-contract.d.ts +0 -0
  165. /package/dist/{negotiation → negotiations}/domain/negotiation.hermes-contract.js +0 -0
  166. /package/dist/{negotiation → negotiations}/domain/negotiation.intent-snapshot-provenance.d.ts +0 -0
  167. /package/dist/{negotiation → negotiations}/domain/negotiation.intent-snapshot-provenance.js +0 -0
  168. /package/dist/{negotiation → negotiations}/domain/negotiation.lifecycle-narration.d.ts +0 -0
  169. /package/dist/{negotiation → negotiations}/domain/negotiation.lifecycle-narration.js +0 -0
  170. /package/dist/{negotiation → negotiations}/domain/negotiation.memory.d.ts +0 -0
  171. /package/dist/{negotiation → negotiations}/domain/negotiation.memory.js +0 -0
  172. /package/dist/{negotiation → negotiations}/domain/negotiation.protocol.d.ts +0 -0
  173. /package/dist/{negotiation → negotiations}/domain/negotiation.protocol.js +0 -0
  174. /package/dist/{negotiation → negotiations}/domain/negotiation.question-safety.d.ts +0 -0
  175. /package/dist/{negotiation → negotiations}/domain/negotiation.question-safety.js +0 -0
  176. /package/dist/{negotiation → negotiations}/domain/negotiation.task-lock-policy.d.ts +0 -0
  177. /package/dist/{negotiation → negotiations}/domain/negotiation.task-lock-policy.js +0 -0
  178. /package/dist/{negotiation → negotiations}/domain/negotiation.turn-cap.d.ts +0 -0
  179. /package/dist/{negotiation → negotiations}/domain/negotiation.turn-cap.js +0 -0
  180. /package/dist/{negotiation → negotiations}/negotiation.attribution.d.ts +0 -0
  181. /package/dist/{negotiation → negotiations}/negotiation.attribution.js +0 -0
  182. /package/dist/{negotiation → negotiations}/ports/negotiation.tools.port.d.ts +0 -0
  183. /package/dist/{negotiation → negotiations}/ports/negotiation.tools.port.js +0 -0
  184. /package/dist/{communities → networks}/application/indexer.graph.js +0 -0
  185. /package/dist/{communities → networks}/application/indexer.state.js +0 -0
  186. /package/dist/{communities → networks}/application/membership.graph.d.ts +0 -0
  187. /package/dist/{communities → networks}/application/membership.graph.js +0 -0
  188. /package/dist/{communities → networks}/application/network.graph.d.ts +0 -0
  189. /package/dist/{communities → networks}/application/network.graph.js +0 -0
  190. /package/dist/{communities → networks}/application/network.recommender.d.ts +0 -0
  191. /package/dist/{communities → networks}/application/network.recommender.js +0 -0
  192. /package/dist/{communities → networks}/application/network.tools.d.ts +0 -0
  193. /package/dist/{communities → networks}/application/network.tools.js +0 -0
  194. /package/dist/{communities → networks}/domain/membership.state.d.ts +0 -0
  195. /package/dist/{communities → networks}/domain/membership.state.js +0 -0
  196. /package/dist/{communities → networks}/domain/network.state.d.ts +0 -0
  197. /package/dist/{communities → networks}/domain/network.state.js +0 -0
  198. /package/dist/{communities → networks}/ports/communities.tools.port.d.ts +0 -0
  199. /package/dist/{communities → networks}/ports/communities.tools.port.js +0 -0
  200. /package/dist/{opportunity → opportunities}/application/delivery-card.cache.d.ts +0 -0
  201. /package/dist/{opportunity → opportunities}/application/delivery-card.cache.js +0 -0
  202. /package/dist/{opportunity → opportunities}/application/negotiation-context.loader.js +0 -0
  203. /package/dist/{opportunity → opportunities}/application/opportunity.card-presentation.d.ts +0 -0
  204. /package/dist/{opportunity → opportunities}/application/opportunity.card-presentation.js +0 -0
  205. /package/dist/{opportunity → opportunities}/application/opportunity.discovery-negotiation-summary.d.ts +0 -0
  206. /package/dist/{opportunity → opportunities}/application/opportunity.enricher.d.ts +0 -0
  207. /package/dist/{opportunity → opportunities}/application/opportunity.enricher.js +0 -0
  208. /package/dist/{opportunity → opportunities}/application/opportunity.evaluator.d.ts +0 -0
  209. /package/dist/{opportunity → opportunities}/application/opportunity.evaluator.js +0 -0
  210. /package/dist/{opportunity → opportunities}/application/opportunity.existing-negotiation.d.ts +0 -0
  211. /package/dist/{opportunity → opportunities}/application/opportunity.existing-negotiation.js +0 -0
  212. /package/dist/{opportunity → opportunities}/application/opportunity.feed-selection.d.ts +0 -0
  213. /package/dist/{opportunity → opportunities}/application/opportunity.feed-selection.js +0 -0
  214. /package/dist/{opportunity → opportunities}/application/opportunity.introducer-feature.d.ts +0 -0
  215. /package/dist/{opportunity → opportunities}/application/opportunity.introducer-feature.js +0 -0
  216. /package/dist/{opportunity → opportunities}/application/opportunity.introducer.d.ts +0 -0
  217. /package/dist/{opportunity → opportunities}/application/opportunity.introducer.js +0 -0
  218. /package/dist/{opportunity → opportunities}/application/opportunity.lifecycle.d.ts +0 -0
  219. /package/dist/{opportunity → opportunities}/application/opportunity.lifecycle.js +0 -0
  220. /package/dist/{opportunity → opportunities}/application/opportunity.newborn-stamping.d.ts +0 -0
  221. /package/dist/{opportunity → opportunities}/application/opportunity.newborn-stamping.js +0 -0
  222. /package/dist/{opportunity → opportunities}/application/opportunity.owner-approval.js +0 -0
  223. /package/dist/{opportunity → opportunities}/application/opportunity.owner-provenance.d.ts +0 -0
  224. /package/dist/{opportunity → opportunities}/application/opportunity.pending-questions.d.ts +0 -0
  225. /package/dist/{opportunity → opportunities}/application/opportunity.pending-questions.js +0 -0
  226. /package/dist/{opportunity → opportunities}/application/opportunity.persist.d.ts +0 -0
  227. /package/dist/{opportunity → opportunities}/application/opportunity.persist.js +0 -0
  228. /package/dist/{opportunity → opportunities}/application/opportunity.persistence-admission.d.ts +0 -0
  229. /package/dist/{opportunity → opportunities}/application/opportunity.persistence-admission.js +0 -0
  230. /package/dist/{opportunity → opportunities}/application/opportunity.presenter.d.ts +0 -0
  231. /package/dist/{opportunity → opportunities}/application/opportunity.presenter.js +0 -0
  232. /package/dist/{opportunity → opportunities}/application/opportunity.tools.d.ts +0 -0
  233. /package/dist/{opportunity → opportunities}/application/opportunity.tools.js +0 -0
  234. /package/dist/{opportunity → opportunities}/application/opportunity.update-admission.d.ts +0 -0
  235. /package/dist/{opportunity → opportunities}/application/opportunity.update-admission.js +0 -0
  236. /package/dist/{opportunity → opportunities}/discovery.env.d.ts +0 -0
  237. /package/dist/{opportunity → opportunities}/discovery.env.js +0 -0
  238. /package/dist/{opportunity → opportunities}/discriminator/discriminator.adjustments.d.ts +0 -0
  239. /package/dist/{opportunity → opportunities}/discriminator/discriminator.adjustments.js +0 -0
  240. /package/dist/{opportunity → opportunities}/discriminator/discriminator.assigner.d.ts +0 -0
  241. /package/dist/{opportunity → opportunities}/discriminator/discriminator.assigner.js +0 -0
  242. /package/dist/{opportunity → opportunities}/discriminator/discriminator.env.d.ts +0 -0
  243. /package/dist/{opportunity → opportunities}/discriminator/discriminator.env.js +0 -0
  244. /package/dist/{opportunity → opportunities}/discriminator/discriminator.miner.d.ts +0 -0
  245. /package/dist/{opportunity → opportunities}/discriminator/discriminator.miner.js +0 -0
  246. /package/dist/{opportunity → opportunities}/discriminator/discriminator.push.d.ts +0 -0
  247. /package/dist/{opportunity → opportunities}/discriminator/discriminator.push.js +0 -0
  248. /package/dist/{opportunity → opportunities}/discriminator/discriminator.question.d.ts +0 -0
  249. /package/dist/{opportunity → opportunities}/discriminator/discriminator.question.js +0 -0
  250. /package/dist/{opportunity → opportunities}/discriminator/discriminator.scorer.d.ts +0 -0
  251. /package/dist/{opportunity → opportunities}/discriminator/discriminator.scorer.js +0 -0
  252. /package/dist/{opportunity → opportunities}/discriminator/discriminator.shadow.d.ts +0 -0
  253. /package/dist/{opportunity → opportunities}/discriminator/discriminator.shadow.js +0 -0
  254. /package/dist/{opportunity → opportunities}/discriminator/discriminator.types.d.ts +0 -0
  255. /package/dist/{opportunity → opportunities}/discriminator/discriminator.types.js +0 -0
  256. /package/dist/{opportunity → opportunities}/domain/negotiation-summary.builder.js +0 -0
  257. /package/dist/{opportunity → opportunities}/domain/opportunity.actor.d.ts +0 -0
  258. /package/dist/{opportunity → opportunities}/domain/opportunity.actor.js +0 -0
  259. /package/dist/{opportunity → opportunities}/domain/opportunity.evidence.d.ts +0 -0
  260. /package/dist/{opportunity → opportunities}/domain/opportunity.evidence.js +0 -0
  261. /package/dist/{opportunity → opportunities}/domain/opportunity.labels.d.ts +0 -0
  262. /package/dist/{opportunity → opportunities}/domain/opportunity.labels.js +0 -0
  263. /package/dist/{opportunity → opportunities}/domain/opportunity.presentation-cache.d.ts +0 -0
  264. /package/dist/{opportunity → opportunities}/domain/opportunity.presentation-cache.js +0 -0
  265. /package/dist/{opportunity → opportunities}/domain/opportunity.presentation.d.ts +0 -0
  266. /package/dist/{opportunity → opportunities}/domain/opportunity.presentation.js +0 -0
  267. /package/dist/{opportunity → opportunities}/domain/opportunity.safe-presentation.d.ts +0 -0
  268. /package/dist/{opportunity → opportunities}/domain/opportunity.safe-presentation.js +0 -0
  269. /package/dist/{opportunity → opportunities}/domain/opportunity.state.js +0 -0
  270. /package/dist/{opportunity → opportunities}/domain/opportunity.utils.d.ts +0 -0
  271. /package/dist/{opportunity → opportunities}/domain/opportunity.utils.js +0 -0
  272. /package/dist/{opportunity → opportunities}/negotiation-evidence/negotiation-evidence.env.d.ts +0 -0
  273. /package/dist/{opportunity → opportunities}/negotiation-evidence/negotiation-evidence.env.js +0 -0
  274. /package/dist/{opportunity → opportunities}/negotiation-evidence/negotiation-evidence.extractor.d.ts +0 -0
  275. /package/dist/{opportunity → opportunities}/negotiation-evidence/negotiation-evidence.extractor.js +0 -0
  276. /package/dist/{opportunity → opportunities}/negotiation-evidence/negotiation-evidence.miner.d.ts +0 -0
  277. /package/dist/{opportunity → opportunities}/negotiation-evidence/negotiation-evidence.miner.js +0 -0
  278. /package/dist/{opportunity → opportunities}/negotiation-evidence/negotiation-evidence.shadow.d.ts +0 -0
  279. /package/dist/{opportunity → opportunities}/negotiation-evidence/negotiation-evidence.shadow.js +0 -0
  280. /package/dist/{opportunity → opportunities}/negotiation-evidence/negotiation-evidence.types.d.ts +0 -0
  281. /package/dist/{opportunity → opportunities}/negotiation-evidence/negotiation-evidence.types.js +0 -0
  282. /package/dist/{opportunity → opportunities}/negotiation-evidence/negotiation-evidence.verifier.d.ts +0 -0
  283. /package/dist/{opportunity → opportunities}/negotiation-evidence/negotiation-evidence.verifier.js +0 -0
  284. /package/dist/{opportunity → opportunities}/outcome/outcome.env.d.ts +0 -0
  285. /package/dist/{opportunity → opportunities}/outcome/outcome.env.js +0 -0
  286. /package/dist/{opportunity → opportunities}/outcome/outcome.hypotheses.d.ts +0 -0
  287. /package/dist/{opportunity → opportunities}/outcome/outcome.hypotheses.js +0 -0
  288. /package/dist/{opportunity → opportunities}/outcome/outcome.shadow.d.ts +0 -0
  289. /package/dist/{opportunity → opportunities}/outcome/outcome.shadow.js +0 -0
  290. /package/dist/{opportunity → opportunities}/outcome/outcome.types.d.ts +0 -0
  291. /package/dist/{opportunity → opportunities}/outcome/outcome.types.js +0 -0
  292. /package/dist/{opportunity → opportunities}/ports/index.js +0 -0
  293. /package/dist/{opportunity → opportunities}/ports/opportunity.tools.port.js +0 -0
  294. /package/dist/{opportunity → opportunities}/radar/radar.graph.js +0 -0
  295. /package/dist/{opportunity → opportunities}/radar/radar.health.d.ts +0 -0
  296. /package/dist/{opportunity → opportunities}/radar/radar.health.js +0 -0
  297. /package/dist/{opportunity → opportunities}/radar/radar.state.js +0 -0
  298. /package/dist/{premise → premises}/premise.analyzer.d.ts +0 -0
  299. /package/dist/{premise → premises}/premise.analyzer.js +0 -0
  300. /package/dist/{premise → premises}/premise.decomposer.d.ts +0 -0
  301. /package/dist/{premise → premises}/premise.decomposer.js +0 -0
  302. /package/dist/{premise → premises}/premise.graph.js +0 -0
  303. /package/dist/{premise → premises}/premise.indexer.d.ts +0 -0
  304. /package/dist/{premise → premises}/premise.indexer.js +0 -0
  305. /package/dist/{premise → premises}/premise.state.js +0 -0
  306. /package/dist/{premise → premises}/premise.tools.js +0 -0
@@ -62,7 +62,7 @@ export declare class MaintenanceGraphFactory {
62
62
  currentOpportunities: import("../index.js").Opportunity[];
63
63
  expiredCount: number;
64
64
  lastRediscoveryAt: number | null;
65
- healthResult: import("../opportunity/radar/radar.health.js").RadarHealthResult | null;
65
+ healthResult: import("../opportunities/radar/radar.health.js").RadarHealthResult | null;
66
66
  rediscoveryJobsEnqueued: number;
67
67
  connectorFlowCount: number;
68
68
  introducerDiscoveryJobsEnqueued: number;
@@ -79,7 +79,7 @@ export declare class MaintenanceGraphFactory {
79
79
  currentOpportunities?: import("../index.js").Opportunity[] | import("@langchain/langgraph").OverwriteValue<import("../index.js").Opportunity[]> | undefined;
80
80
  expiredCount?: number | import("@langchain/langgraph").OverwriteValue<number> | undefined;
81
81
  lastRediscoveryAt?: number | import("@langchain/langgraph").OverwriteValue<number | null> | null | undefined;
82
- healthResult?: import("../opportunity/radar/radar.health.js").RadarHealthResult | import("@langchain/langgraph").OverwriteValue<import("../opportunity/radar/radar.health.js").RadarHealthResult | null> | null | undefined;
82
+ healthResult?: import("../opportunities/radar/radar.health.js").RadarHealthResult | import("@langchain/langgraph").OverwriteValue<import("../opportunities/radar/radar.health.js").RadarHealthResult | null> | null | undefined;
83
83
  rediscoveryJobsEnqueued?: number | import("@langchain/langgraph").OverwriteValue<number> | undefined;
84
84
  connectorFlowCount?: number | import("@langchain/langgraph").OverwriteValue<number> | undefined;
85
85
  introducerDiscoveryJobsEnqueued?: number | import("@langchain/langgraph").OverwriteValue<number> | undefined;
@@ -99,7 +99,7 @@ export declare class MaintenanceGraphFactory {
99
99
  currentOpportunities: import("@langchain/langgraph").BaseChannel<import("../index.js").Opportunity[], import("../index.js").Opportunity[] | import("@langchain/langgraph").OverwriteValue<import("../index.js").Opportunity[]>, unknown>;
100
100
  expiredCount: import("@langchain/langgraph").BaseChannel<number, number | import("@langchain/langgraph").OverwriteValue<number>, unknown>;
101
101
  lastRediscoveryAt: import("@langchain/langgraph").BaseChannel<number | null, number | import("@langchain/langgraph").OverwriteValue<number | null> | null, unknown>;
102
- healthResult: import("@langchain/langgraph").BaseChannel<import("../opportunity/radar/radar.health.js").RadarHealthResult | null, import("../opportunity/radar/radar.health.js").RadarHealthResult | import("@langchain/langgraph").OverwriteValue<import("../opportunity/radar/radar.health.js").RadarHealthResult | null> | null, unknown>;
102
+ healthResult: import("@langchain/langgraph").BaseChannel<import("../opportunities/radar/radar.health.js").RadarHealthResult | null, import("../opportunities/radar/radar.health.js").RadarHealthResult | import("@langchain/langgraph").OverwriteValue<import("../opportunities/radar/radar.health.js").RadarHealthResult | null> | null, unknown>;
103
103
  rediscoveryJobsEnqueued: import("@langchain/langgraph").BaseChannel<number, number | import("@langchain/langgraph").OverwriteValue<number>, unknown>;
104
104
  connectorFlowCount: import("@langchain/langgraph").BaseChannel<number, number | import("@langchain/langgraph").OverwriteValue<number>, unknown>;
105
105
  introducerDiscoveryJobsEnqueued: import("@langchain/langgraph").BaseChannel<number, number | import("@langchain/langgraph").OverwriteValue<number>, unknown>;
@@ -119,7 +119,7 @@ export declare class MaintenanceGraphFactory {
119
119
  currentOpportunities: import("@langchain/langgraph").BaseChannel<import("../index.js").Opportunity[], import("../index.js").Opportunity[] | import("@langchain/langgraph").OverwriteValue<import("../index.js").Opportunity[]>, unknown>;
120
120
  expiredCount: import("@langchain/langgraph").BaseChannel<number, number | import("@langchain/langgraph").OverwriteValue<number>, unknown>;
121
121
  lastRediscoveryAt: import("@langchain/langgraph").BaseChannel<number | null, number | import("@langchain/langgraph").OverwriteValue<number | null> | null, unknown>;
122
- healthResult: import("@langchain/langgraph").BaseChannel<import("../opportunity/radar/radar.health.js").RadarHealthResult | null, import("../opportunity/radar/radar.health.js").RadarHealthResult | import("@langchain/langgraph").OverwriteValue<import("../opportunity/radar/radar.health.js").RadarHealthResult | null> | null, unknown>;
122
+ healthResult: import("@langchain/langgraph").BaseChannel<import("../opportunities/radar/radar.health.js").RadarHealthResult | null, import("../opportunities/radar/radar.health.js").RadarHealthResult | import("@langchain/langgraph").OverwriteValue<import("../opportunities/radar/radar.health.js").RadarHealthResult | null> | null, unknown>;
123
123
  rediscoveryJobsEnqueued: import("@langchain/langgraph").BaseChannel<number, number | import("@langchain/langgraph").OverwriteValue<number>, unknown>;
124
124
  connectorFlowCount: import("@langchain/langgraph").BaseChannel<number, number | import("@langchain/langgraph").OverwriteValue<number>, unknown>;
125
125
  introducerDiscoveryJobsEnqueued: import("@langchain/langgraph").BaseChannel<number, number | import("@langchain/langgraph").OverwriteValue<number>, unknown>;
@@ -140,7 +140,7 @@ export declare class MaintenanceGraphFactory {
140
140
  currentOpportunities: import("@langchain/langgraph").BaseChannel<import("../index.js").Opportunity[], import("../index.js").Opportunity[] | import("@langchain/langgraph").OverwriteValue<import("../index.js").Opportunity[]>, unknown>;
141
141
  expiredCount: import("@langchain/langgraph").BaseChannel<number, number | import("@langchain/langgraph").OverwriteValue<number>, unknown>;
142
142
  lastRediscoveryAt: import("@langchain/langgraph").BaseChannel<number | null, number | import("@langchain/langgraph").OverwriteValue<number | null> | null, unknown>;
143
- healthResult: import("@langchain/langgraph").BaseChannel<import("../opportunity/radar/radar.health.js").RadarHealthResult | null, import("../opportunity/radar/radar.health.js").RadarHealthResult | import("@langchain/langgraph").OverwriteValue<import("../opportunity/radar/radar.health.js").RadarHealthResult | null> | null, unknown>;
143
+ healthResult: import("@langchain/langgraph").BaseChannel<import("../opportunities/radar/radar.health.js").RadarHealthResult | null, import("../opportunities/radar/radar.health.js").RadarHealthResult | import("@langchain/langgraph").OverwriteValue<import("../opportunities/radar/radar.health.js").RadarHealthResult | null> | null, unknown>;
144
144
  rediscoveryJobsEnqueued: import("@langchain/langgraph").BaseChannel<number, number | import("@langchain/langgraph").OverwriteValue<number>, unknown>;
145
145
  connectorFlowCount: import("@langchain/langgraph").BaseChannel<number, number | import("@langchain/langgraph").OverwriteValue<number>, unknown>;
146
146
  introducerDiscoveryJobsEnqueued: import("@langchain/langgraph").BaseChannel<number, number | import("@langchain/langgraph").OverwriteValue<number>, unknown>;
@@ -151,7 +151,7 @@ export declare class MaintenanceGraphFactory {
151
151
  connectorFlowCount?: undefined;
152
152
  error?: undefined;
153
153
  } | {
154
- healthResult: import("../opportunity/radar/radar.health.js").RadarHealthResult;
154
+ healthResult: import("../opportunities/radar/radar.health.js").RadarHealthResult;
155
155
  connectorFlowCount: number;
156
156
  error?: undefined;
157
157
  } | {
@@ -8,10 +8,10 @@
8
8
  */
9
9
  import { StateGraph, START, END } from '@langchain/langgraph';
10
10
  import { MaintenanceGraphState } from './maintenance.state.js';
11
- import { computeRadarHealth } from '../opportunity/radar/radar.health.js';
12
- import { canUserSeeOpportunity, classifyOpportunity, isActionableForViewer, RADAR_SOFT_TARGETS } from '../opportunity/domain/opportunity.utils.js';
13
- import { shouldRunIntroducerDiscovery, runIntroducerDiscovery } from '../opportunity/application/opportunity.introducer.js';
14
- import { isIntroducerDiscoveryEnabled } from '../opportunity/application/opportunity.introducer-feature.js';
11
+ import { computeRadarHealth } from '../opportunities/radar/radar.health.js';
12
+ import { canUserSeeOpportunity, classifyOpportunity, isActionableForViewer, RADAR_SOFT_TARGETS } from '../opportunities/domain/opportunity.utils.js';
13
+ import { shouldRunIntroducerDiscovery, runIntroducerDiscovery } from '../opportunities/application/opportunity.introducer.js';
14
+ import { isIntroducerDiscoveryEnabled } from '../opportunities/application/opportunity.introducer-feature.js';
15
15
  import { protocolLogger } from '../shared/observability/protocol.logger.js';
16
16
  const logger = protocolLogger('MaintenanceGraph');
17
17
  const FRESHNESS_WINDOW_MS = 12 * 60 * 60 * 1000; // 12 hours
@@ -1,5 +1,5 @@
1
1
  import type { Opportunity } from '../shared/interfaces/database.interface.js';
2
- import type { RadarHealthResult } from '../opportunity/radar/radar.health.js';
2
+ import type { RadarHealthResult } from '../opportunities/radar/radar.health.js';
3
3
  /**
4
4
  * Maintenance Graph State (Annotation-based).
5
5
  * Flow: loadCurrentRadar → scoreRadarHealth → [conditional: rediscover | END] → logMaintenance → END
@@ -11,7 +11,7 @@ import { CANONICAL_GUIDANCE_SUMMARY } from '../shared/agent/canonical-guidance.j
11
11
  import { resolveChatContext } from '../shared/agent/tool.helpers.js';
12
12
  import { deriveAllowedNetworkIds, scopeFromNetworkId } from '../shared/agent/tool.scope.js';
13
13
  import { createToolRegistry } from '../shared/agent/tool.registry.js';
14
- import { bindOwnerApprovalProvenance } from '../opportunity/application/opportunity.owner-provenance.js';
14
+ import { bindOwnerApprovalProvenance } from '../opportunities/application/opportunity.owner-provenance.js';
15
15
  import { ToolRuntimeError, invokeToolRuntime, toolRuntimeErrorToResult } from '../shared/agent/tool.runtime.js';
16
16
  import { protocolLogger } from '../shared/observability/protocol.logger.js';
17
17
  import { buildMcpAuthorizationDenialEvent, McpCapabilityPolicy, ONBOARDING_ALLOWED, resolveMcpActivityCaller, resolveMcpCapabilitySubject } from './mcp.authorization-policy.js';
@@ -402,7 +402,7 @@ export function createMcpServer(deps, authResolver, scopedDepsFactory, policyOpt
402
402
  // identity — never a caller-supplied field — marks a direct MCP owner
403
403
  // interaction for the opportunity owner-approval boundary. The
404
404
  // capability-local extension deliberately keeps this field out of the
405
- // shared helper's negotiation/question cycle.
405
+ // shared helper's negotiations/question cycle.
406
406
  bindOwnerApprovalProvenance(context, {
407
407
  surface: 'mcp',
408
408
  sessionAuthenticated: authenticated.identity.isSessionAuth === true,
@@ -1,10 +1,10 @@
1
1
  /**
2
- * negotiation/application — LLM agents, graph factory, tool factory, and
2
+ * negotiations/application — LLM agents, graph factory, tool factory, and
3
3
  * application services for the negotiation capability.
4
4
  *
5
5
  * ## Boundary
6
6
  *
7
- * May import from negotiation/domain and negotiation/ports plus shared LangGraph
7
+ * May import from negotiations/domain and negotiations/ports plus shared LangGraph
8
8
  * / model-binding seams. Must not import host implementations or other capability
9
9
  * internals (use the capabilities/*.facade.ts contracts instead).
10
10
  *
@@ -1,10 +1,10 @@
1
1
  /**
2
- * negotiation/application — LLM agents, graph factory, tool factory, and
2
+ * negotiations/application — LLM agents, graph factory, tool factory, and
3
3
  * application services for the negotiation capability.
4
4
  *
5
5
  * ## Boundary
6
6
  *
7
- * May import from negotiation/domain and negotiation/ports plus shared LangGraph
7
+ * May import from negotiations/domain and negotiations/ports plus shared LangGraph
8
8
  * / model-binding seams. Must not import host implementations or other capability
9
9
  * internals (use the capabilities/*.facade.ts contracts instead).
10
10
  *
@@ -639,7 +639,7 @@ export declare function negotiateCandidates(negotiationGraph: NegotiationGraphLi
639
639
  /**
640
640
  * Initiator seat for every candidate session in this fan-out (v2 stamp).
641
641
  * Passed through to the negotiation graph, which may still override it by
642
- * inheriting from a prior task on the same opportunity/conversation.
642
+ * inheriting from a prior task on the same opportunities/conversation.
643
643
  */
644
644
  initiatorUserId?: string;
645
645
  /** Exact settled task to resume; only the durable run-existing path sets this. */
@@ -1,5 +1,5 @@
1
1
  /**
2
- * negotiation/domain — pure negotiation types, protocol rules, and deterministic
2
+ * negotiations/domain — pure negotiation types, protocol rules, and deterministic
3
3
  * policy functions.
4
4
  *
5
5
  * ## What lives here
@@ -18,14 +18,14 @@
18
18
  *
19
19
  * ## What does NOT live here
20
20
  *
21
- * - NegotiationScreener (LLM agent) → negotiation/application
22
- * - NegotiationGraphFactory, negotiateCandidates (LangGraph) → negotiation/application
23
- * - IndexNegotiator (LLM structured model) → negotiation/application
24
- * - NegotiationReflector (LLM memory write) → negotiation/application
25
- * - NegotiationSummarizer (LLM digest) → negotiation/application
26
- * - NegotiationInsightsGenerator (LLM narrative) → negotiation/application
27
- * - createNegotiationTools (MCP tool factory) → negotiation/application
28
- * - NegotiationToolDeps (host port) → negotiation/ports
21
+ * - NegotiationScreener (LLM agent) → negotiations/application
22
+ * - NegotiationGraphFactory, negotiateCandidates (LangGraph) → negotiations/application
23
+ * - IndexNegotiator (LLM structured model) → negotiations/application
24
+ * - NegotiationReflector (LLM memory write) → negotiations/application
25
+ * - NegotiationSummarizer (LLM digest) → negotiations/application
26
+ * - NegotiationInsightsGenerator (LLM narrative) → negotiations/application
27
+ * - createNegotiationTools (MCP tool factory) → negotiations/application
28
+ * - NegotiationToolDeps (host port) → negotiations/ports
29
29
  *
30
30
  * IND-550: canonical domain layer for the negotiation capability.
31
31
  */
@@ -1,5 +1,5 @@
1
1
  /**
2
- * negotiation/domain — pure negotiation types, protocol rules, and deterministic
2
+ * negotiations/domain — pure negotiation types, protocol rules, and deterministic
3
3
  * policy functions.
4
4
  *
5
5
  * ## What lives here
@@ -18,14 +18,14 @@
18
18
  *
19
19
  * ## What does NOT live here
20
20
  *
21
- * - NegotiationScreener (LLM agent) → negotiation/application
22
- * - NegotiationGraphFactory, negotiateCandidates (LangGraph) → negotiation/application
23
- * - IndexNegotiator (LLM structured model) → negotiation/application
24
- * - NegotiationReflector (LLM memory write) → negotiation/application
25
- * - NegotiationSummarizer (LLM digest) → negotiation/application
26
- * - NegotiationInsightsGenerator (LLM narrative) → negotiation/application
27
- * - createNegotiationTools (MCP tool factory) → negotiation/application
28
- * - NegotiationToolDeps (host port) → negotiation/ports
21
+ * - NegotiationScreener (LLM agent) → negotiations/application
22
+ * - NegotiationGraphFactory, negotiateCandidates (LangGraph) → negotiations/application
23
+ * - IndexNegotiator (LLM structured model) → negotiations/application
24
+ * - NegotiationReflector (LLM memory write) → negotiations/application
25
+ * - NegotiationSummarizer (LLM digest) → negotiations/application
26
+ * - NegotiationInsightsGenerator (LLM narrative) → negotiations/application
27
+ * - createNegotiationTools (MCP tool factory) → negotiations/application
28
+ * - NegotiationToolDeps (host port) → negotiations/ports
29
29
  *
30
30
  * IND-550: canonical domain layer for the negotiation capability.
31
31
  */
@@ -1,13 +1,13 @@
1
1
  import { z } from "zod";
2
2
  /**
3
- * negotiation/domain — screen-gate pure contracts (P2.1).
3
+ * negotiations/domain — screen-gate pure contracts (P2.1).
4
4
  *
5
5
  * Extracted from negotiation.screen.ts so that NegotiationGraphState and the
6
6
  * application-layer NegotiationScreener can share types without a domain →
7
7
  * application cycle.
8
8
  *
9
9
  * IND-550: canonical location for screen contract types.
10
- * Legacy path (negotiation/negotiation.screen.ts shim) re-exports from here
10
+ * Legacy path (negotiations/negotiation.screen.ts shim) re-exports from here
11
11
  * via the application layer.
12
12
  */
13
13
  export declare const NEGOTIATION_SCREEN_MODES: readonly ["off", "shadow", "enforce"];
@@ -31,7 +31,7 @@ export declare const ScreenDecisionSchema: z.ZodObject<{
31
31
  /** Suggested opening angle for the outreach turn (only when reaching out). */
32
32
  outreachAngle: z.ZodOptional<z.ZodNullable<z.ZodString>>;
33
33
  evidence: z.ZodObject<{
34
- /** How well the counterparty's context/premises fit the client's need. */
34
+ /** How well the counterparty's contexts/premises fit the client's need. */
35
35
  counterpartyPremiseFit: z.ZodString;
36
36
  /** How the client's intents align with what the counterparty seeks. */
37
37
  intentAlignment: z.ZodString;
@@ -1,13 +1,13 @@
1
1
  import { z } from "zod";
2
2
  /**
3
- * negotiation/domain — screen-gate pure contracts (P2.1).
3
+ * negotiations/domain — screen-gate pure contracts (P2.1).
4
4
  *
5
5
  * Extracted from negotiation.screen.ts so that NegotiationGraphState and the
6
6
  * application-layer NegotiationScreener can share types without a domain →
7
7
  * application cycle.
8
8
  *
9
9
  * IND-550: canonical location for screen contract types.
10
- * Legacy path (negotiation/negotiation.screen.ts shim) re-exports from here
10
+ * Legacy path (negotiations/negotiation.screen.ts shim) re-exports from here
11
11
  * via the application layer.
12
12
  */
13
13
  export const NEGOTIATION_SCREEN_MODES = ["off", "shadow", "enforce"];
@@ -35,7 +35,7 @@ export const ScreenDecisionSchema = z.object({
35
35
  /** Suggested opening angle for the outreach turn (only when reaching out). */
36
36
  outreachAngle: z.string().nullable().optional(),
37
37
  evidence: z.object({
38
- /** How well the counterparty's context/premises fit the client's need. */
38
+ /** How well the counterparty's contexts/premises fit the client's need. */
39
39
  counterpartyPremiseFit: z.string(),
40
40
  /** How the client's intents align with what the counterparty seeks. */
41
41
  intentAlignment: z.string(),
@@ -1,5 +1,5 @@
1
1
  /**
2
- * negotiation/domain — negotiator stance contracts (IND-611).
2
+ * negotiations/domain — negotiator stance contracts (IND-611).
3
3
  *
4
4
  * The acting negotiator prompt is structurally biased toward producing matches
5
5
  * rather than finding valuable ones: it frames the job as advocacy, treats a
@@ -1,5 +1,5 @@
1
1
  /**
2
- * negotiation/domain — negotiator stance contracts (IND-611).
2
+ * negotiations/domain — negotiator stance contracts (IND-611).
3
3
  *
4
4
  * The acting negotiator prompt is structurally biased toward producing matches
5
5
  * rather than finding valuable ones: it frames the job as advocacy, treats a
@@ -397,7 +397,7 @@ export declare const NegotiationGraphState: import("@langchain/langgraph").Annot
397
397
  /**
398
398
  * Park-window budget in milliseconds. The annotation default is a safety net
399
399
  * for any caller that omits the field — keep it aligned with
400
- * `AMBIENT_PARK_WINDOW_MS` in packages/protocol/src/negotiation/negotiation.tools.ts.
400
+ * `AMBIENT_PARK_WINDOW_MS` in packages/protocol/src/negotiations/negotiation.tools.ts.
401
401
  * Inlined rather than imported to avoid a state↔tools cycle.
402
402
  */
403
403
  timeoutMs: import("@langchain/langgraph").BaseChannel<number, number | import("@langchain/langgraph").OverwriteValue<number>, unknown>;
@@ -239,7 +239,7 @@ export const NegotiationGraphState = Annotation.Root({
239
239
  /**
240
240
  * Park-window budget in milliseconds. The annotation default is a safety net
241
241
  * for any caller that omits the field — keep it aligned with
242
- * `AMBIENT_PARK_WINDOW_MS` in packages/protocol/src/negotiation/negotiation.tools.ts.
242
+ * `AMBIENT_PARK_WINDOW_MS` in packages/protocol/src/negotiations/negotiation.tools.ts.
243
243
  * Inlined rather than imported to avoid a state↔tools cycle.
244
244
  */
245
245
  timeoutMs: Annotation({
@@ -2,7 +2,7 @@
2
2
  * negotiation — the capability's sole cross-capability surface.
3
3
  *
4
4
  * Anything outside this capability imports from here and nowhere else.
5
- * Supersedes the capabilities/*.facade.ts + negotiation/public/ pair; the export
5
+ * Supersedes the capabilities/*.facade.ts + negotiations/public/ pair; the export
6
6
  * list is the union of the facades it replaces, so the contract is unchanged.
7
7
  */
8
8
  export { AMBIENT_PARK_WINDOW_MS, buildFallbackDigest, createNegotiationTools, IndexNegotiator, negotiateCandidates, NegotiationGraphFactory, NegotiationInsightsGenerator, NegotiationReflector, NegotiationScreener, NegotiationSummarizer, } from "./application/index.js";
@@ -2,7 +2,7 @@
2
2
  * negotiation — the capability's sole cross-capability surface.
3
3
  *
4
4
  * Anything outside this capability imports from here and nowhere else.
5
- * Supersedes the capabilities/*.facade.ts + negotiation/public/ pair; the export
5
+ * Supersedes the capabilities/*.facade.ts + negotiations/public/ pair; the export
6
6
  * list is the union of the facades it replaces, so the contract is unchanged.
7
7
  */
8
8
  export { AMBIENT_PARK_WINDOW_MS, buildFallbackDigest, createNegotiationTools, IndexNegotiator, negotiateCandidates, NegotiationGraphFactory, NegotiationInsightsGenerator, NegotiationReflector, NegotiationScreener, NegotiationSummarizer, } from "./application/index.js";
@@ -1,5 +1,5 @@
1
1
  /**
2
- * negotiation/ports — injected dependency contracts for the negotiation capability.
2
+ * negotiations/ports — injected dependency contracts for the negotiation capability.
3
3
  *
4
4
  * Re-exports the narrow port types that the negotiation module declares as
5
5
  * explicit injected boundaries. Consumers import these to wire host
@@ -1,5 +1,5 @@
1
1
  /**
2
- * negotiation/ports — injected dependency contracts for the negotiation capability.
2
+ * negotiations/ports — injected dependency contracts for the negotiation capability.
3
3
  *
4
4
  * Re-exports the narrow port types that the negotiation module declares as
5
5
  * explicit injected boundaries. Consumers import these to wire host
@@ -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,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 "../../participant-agents/index.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 "../../participant-agents/index.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
  /**
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)
@@ -2,7 +2,7 @@
2
2
  * communities — the capability's sole cross-capability surface.
3
3
  *
4
4
  * Anything outside this capability imports from here and nowhere else.
5
- * Supersedes the capabilities/*.facade.ts + communities/public/ pair; the export
5
+ * Supersedes the capabilities/*.facade.ts + networks/public/ pair; the export
6
6
  * list is the union of the facades it replaces, so the contract is unchanged.
7
7
  */
8
8
  export { createNetworkTools, IntentNetworkGraphFactory, NetworkGraphFactory, NetworkMembershipGraphFactory, } from "./application/index.js";
@@ -2,7 +2,7 @@
2
2
  * communities — the capability's sole cross-capability surface.
3
3
  *
4
4
  * Anything outside this capability imports from here and nowhere else.
5
- * Supersedes the capabilities/*.facade.ts + communities/public/ pair; the export
5
+ * Supersedes the capabilities/*.facade.ts + networks/public/ pair; the export
6
6
  * list is the union of the facades it replaces, so the contract is unchanged.
7
7
  */
8
8
  export { createNetworkTools, IntentNetworkGraphFactory, NetworkGraphFactory, NetworkMembershipGraphFactory, } from "./application/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
@@ -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 "../../signals/index.js";
25
- export type { IntentIndexerOutput } from "../../signals/index.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 "../../signals/index.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 '../../negotiation/index.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 { buildFallbackDigest } from '../../negotiation/index.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');
@@ -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 '../../participant-agents/index.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 "../../negotiation/index.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';
@@ -14,7 +14,7 @@
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 '../../signals/index.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';
@@ -23,7 +23,7 @@ import { safeFallbackSummary } from '../domain/opportunity.safe-presentation.js'
23
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 "../../negotiation/index.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) {
@@ -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)
@@ -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)
@@ -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 "../../negotiation/index.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
@@ -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 '../../participant-agents/index.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
  /**
@@ -2,7 +2,7 @@
2
2
  * opportunity — the capability's sole cross-capability surface.
3
3
  *
4
4
  * Anything outside this capability imports from here and nowhere else.
5
- * Supersedes the capabilities/*.facade.ts + opportunity/public/ pair; the export
5
+ * Supersedes the capabilities/*.facade.ts + opportunities/public/ pair; the export
6
6
  * list is the union of the facades it replaces, so the contract is unchanged.
7
7
  */
8
8
  export { getOrCreateDeliveryCardBatch, } from "./application/delivery-card.cache.js";