@indexnetwork/protocol 6.12.1-rc.404.1 → 6.13.22-rc.405.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 (1180) hide show
  1. package/CHANGELOG.md +240 -0
  2. package/IMPLEMENTATION.md +20 -0
  3. package/STABILITY.md +4 -0
  4. package/dist/agent/agent.tools.d.ts +11 -3
  5. package/dist/agent/agent.tools.js +11 -301
  6. package/dist/capabilities/communities.facade.d.ts +13 -0
  7. package/dist/capabilities/communities.facade.js +12 -0
  8. package/dist/capabilities/communities.tools.port.d.ts +5 -0
  9. package/dist/capabilities/communities.tools.port.js +1 -0
  10. package/dist/capabilities/contacts.facade.d.ts +9 -0
  11. package/dist/capabilities/contacts.facade.js +8 -0
  12. package/dist/capabilities/contacts.tools.port.d.ts +9 -0
  13. package/dist/capabilities/contacts.tools.port.js +1 -0
  14. package/dist/capabilities/integrations.facade.d.ts +8 -0
  15. package/dist/capabilities/integrations.facade.js +7 -0
  16. package/dist/capabilities/integrations.tools.port.d.ts +9 -0
  17. package/dist/capabilities/integrations.tools.port.js +1 -0
  18. package/dist/capabilities/interaction-composition.facade.d.ts +10 -0
  19. package/dist/capabilities/interaction-composition.facade.js +9 -0
  20. package/dist/capabilities/negotiation.discovery.facade.d.ts +9 -0
  21. package/dist/capabilities/negotiation.discovery.facade.js +7 -0
  22. package/dist/capabilities/negotiation.facade.d.ts +23 -0
  23. package/dist/capabilities/negotiation.facade.js +17 -0
  24. package/dist/capabilities/negotiation.memory.facade.d.ts +6 -0
  25. package/dist/capabilities/negotiation.memory.facade.js +5 -0
  26. package/dist/capabilities/negotiation.questions.facade.d.ts +6 -0
  27. package/dist/capabilities/negotiation.questions.facade.js +5 -0
  28. package/dist/capabilities/negotiation.state.facade.d.ts +5 -0
  29. package/dist/capabilities/negotiation.state.facade.js +1 -0
  30. package/dist/capabilities/negotiation.summary.facade.d.ts +5 -0
  31. package/dist/capabilities/negotiation.summary.facade.js +5 -0
  32. package/dist/capabilities/negotiation.tools.port.d.ts +5 -0
  33. package/dist/capabilities/negotiation.tools.port.js +1 -0
  34. package/dist/capabilities/opportunities.facade.d.ts +50 -0
  35. package/dist/capabilities/opportunities.facade.js +50 -0
  36. package/dist/capabilities/opportunities.safety.facade.d.ts +2 -0
  37. package/dist/capabilities/opportunities.safety.facade.js +2 -0
  38. package/dist/capabilities/opportunities.tools.port.d.ts +5 -0
  39. package/dist/capabilities/opportunities.tools.port.js +1 -0
  40. package/dist/capabilities/participant-agents.debug.facade.d.ts +2 -0
  41. package/dist/capabilities/participant-agents.debug.facade.js +1 -0
  42. package/dist/capabilities/participant-agents.facade.d.ts +35 -0
  43. package/dist/capabilities/participant-agents.facade.js +35 -0
  44. package/dist/capabilities/participant-agents.tools.facade.d.ts +8 -0
  45. package/dist/capabilities/participant-agents.tools.facade.js +8 -0
  46. package/dist/capabilities/participant-agents.tools.port.d.ts +9 -0
  47. package/dist/capabilities/participant-agents.tools.port.js +1 -0
  48. package/dist/capabilities/participant-context.facade.d.ts +13 -0
  49. package/dist/capabilities/participant-context.facade.js +14 -0
  50. package/dist/capabilities/participant-context.tools.port.d.ts +9 -0
  51. package/dist/capabilities/participant-context.tools.port.js +1 -0
  52. package/dist/capabilities/questions.enqueue.facade.d.ts +5 -0
  53. package/dist/capabilities/questions.enqueue.facade.js +1 -0
  54. package/dist/capabilities/questions.facade.d.ts +8 -0
  55. package/dist/capabilities/questions.facade.js +7 -0
  56. package/dist/capabilities/questions.runtime.facade.d.ts +5 -0
  57. package/dist/capabilities/questions.runtime.facade.js +5 -0
  58. package/dist/capabilities/questions.tools.port.d.ts +5 -0
  59. package/dist/capabilities/questions.tools.port.js +1 -0
  60. package/dist/capabilities/signals.facade.d.ts +16 -0
  61. package/dist/capabilities/signals.facade.js +14 -0
  62. package/dist/capabilities/signals.indexing.facade.d.ts +12 -0
  63. package/dist/capabilities/signals.indexing.facade.js +11 -0
  64. package/dist/capabilities/signals.tools.port.d.ts +5 -0
  65. package/dist/capabilities/signals.tools.port.js +1 -0
  66. package/dist/chat/chat-streaming.types.d.ts +0 -1
  67. package/dist/chat/chat-streaming.types.js +1 -2
  68. package/dist/chat/chat.agent.d.ts +0 -1
  69. package/dist/chat/chat.agent.js +0 -1
  70. package/dist/chat/chat.graph.d.ts +0 -1
  71. package/dist/chat/chat.graph.js +0 -1
  72. package/dist/chat/chat.interrupt.classifier.d.ts +0 -1
  73. package/dist/chat/chat.interrupt.classifier.js +0 -1
  74. package/dist/chat/chat.persona.d.ts +0 -1
  75. package/dist/chat/chat.persona.js +0 -1
  76. package/dist/chat/chat.prompt.d.ts +0 -1
  77. package/dist/chat/chat.prompt.js +0 -1
  78. package/dist/chat/chat.prompt.modules.d.ts +0 -1
  79. package/dist/chat/chat.prompt.modules.js +0 -1
  80. package/dist/chat/chat.question-dedup.d.ts +0 -1
  81. package/dist/chat/chat.question-dedup.js +0 -1
  82. package/dist/chat/chat.state.d.ts +0 -1
  83. package/dist/chat/chat.state.js +0 -1
  84. package/dist/chat/chat.streamer.d.ts +0 -1
  85. package/dist/chat/chat.streamer.js +0 -1
  86. package/dist/chat/chat.suggester.d.ts +0 -1
  87. package/dist/chat/chat.suggester.js +0 -1
  88. package/dist/chat/chat.summarizer.d.ts +0 -1
  89. package/dist/chat/chat.summarizer.js +0 -1
  90. package/dist/chat/chat.title.generator.d.ts +0 -1
  91. package/dist/chat/chat.title.generator.js +0 -1
  92. package/dist/chat/chat.tools.d.ts +0 -1
  93. package/dist/chat/chat.tools.js +0 -1
  94. package/dist/chat/chat.utils.d.ts +0 -1
  95. package/dist/chat/chat.utils.js +0 -1
  96. package/dist/chat/negotiator.persona.d.ts +0 -1
  97. package/dist/chat/negotiator.persona.js +0 -1
  98. package/dist/chat/negotiator.prompt.d.ts +1 -2
  99. package/dist/chat/negotiator.prompt.js +1 -2
  100. package/dist/chat/negotiator.tools.d.ts +0 -1
  101. package/dist/chat/negotiator.tools.js +0 -1
  102. package/dist/chat/onboarding.persona.d.ts +0 -1
  103. package/dist/chat/onboarding.persona.js +0 -1
  104. package/dist/chat/onboarding.prompt.d.ts +0 -1
  105. package/dist/chat/onboarding.prompt.js +0 -1
  106. package/dist/chat/reporter.action.contracts.d.ts +36 -0
  107. package/dist/chat/reporter.action.contracts.js +1 -0
  108. package/dist/chat/reporter.action.tools.d.ts +2 -37
  109. package/dist/chat/reporter.action.tools.js +0 -1
  110. package/dist/chat/reporter.persona.d.ts +0 -1
  111. package/dist/chat/reporter.persona.js +0 -1
  112. package/dist/chat/reporter.prompt.d.ts +0 -1
  113. package/dist/chat/reporter.prompt.js +0 -1
  114. package/dist/chat/signal.persona.d.ts +0 -1
  115. package/dist/chat/signal.persona.js +0 -1
  116. package/dist/chat/signal.prompt.d.ts +0 -1
  117. package/dist/chat/signal.prompt.js +0 -1
  118. package/dist/communities/application/index.d.ts +45 -0
  119. package/dist/communities/application/index.js +50 -0
  120. package/dist/communities/application/indexer.graph.d.ts +446 -0
  121. package/dist/communities/application/indexer.graph.js +420 -0
  122. package/dist/communities/application/indexer.state.d.ts +172 -0
  123. package/dist/communities/application/indexer.state.js +116 -0
  124. package/dist/communities/application/membership.graph.d.ts +270 -0
  125. package/dist/communities/application/membership.graph.js +229 -0
  126. package/dist/communities/application/network.graph.d.ts +648 -0
  127. package/dist/communities/application/network.graph.js +303 -0
  128. package/dist/communities/application/network.recommender.d.ts +44 -0
  129. package/dist/communities/application/network.recommender.js +113 -0
  130. package/dist/communities/application/network.tools.d.ts +35 -0
  131. package/dist/communities/application/network.tools.js +578 -0
  132. package/dist/communities/domain/index.d.ts +29 -0
  133. package/dist/communities/domain/index.js +31 -0
  134. package/dist/communities/domain/membership.state.d.ts +87 -0
  135. package/dist/communities/domain/membership.state.js +53 -0
  136. package/dist/communities/domain/network.state.d.ts +192 -0
  137. package/dist/communities/domain/network.state.js +66 -0
  138. package/dist/communities/index.d.ts +14 -0
  139. package/dist/communities/index.js +14 -0
  140. package/dist/communities/ports/index.d.ts +25 -0
  141. package/dist/communities/ports/index.js +27 -0
  142. package/dist/communities/public/index.d.ts +30 -0
  143. package/dist/communities/public/index.js +33 -0
  144. package/dist/contact/contact.inviter.d.ts +7 -44
  145. package/dist/contact/contact.inviter.js +6 -59
  146. package/dist/contact/contact.tools.d.ts +7 -5
  147. package/dist/contact/contact.tools.js +7 -177
  148. package/dist/contacts/application/contact.inviter.d.ts +49 -0
  149. package/dist/contacts/application/contact.inviter.js +64 -0
  150. package/dist/contacts/application/contact.tools.d.ts +20 -0
  151. package/dist/contacts/application/contact.tools.js +191 -0
  152. package/dist/contacts/application/index.d.ts +22 -0
  153. package/dist/contacts/application/index.js +21 -0
  154. package/dist/contacts/domain/contact.types.d.ts +51 -0
  155. package/dist/contacts/domain/contact.types.js +10 -0
  156. package/dist/contacts/domain/index.d.ts +18 -0
  157. package/dist/contacts/domain/index.js +1 -0
  158. package/dist/contacts/index.d.ts +24 -0
  159. package/dist/contacts/index.js +24 -0
  160. package/dist/contacts/ports/contact.repository.port.d.ts +28 -0
  161. package/dist/contacts/ports/contact.repository.port.js +14 -0
  162. package/dist/contacts/ports/contact.tools.port.d.ts +26 -0
  163. package/dist/contacts/ports/contact.tools.port.js +21 -0
  164. package/dist/contacts/ports/index.d.ts +22 -0
  165. package/dist/contacts/ports/index.js +21 -0
  166. package/dist/contacts/public/index.d.ts +36 -0
  167. package/dist/contacts/public/index.js +33 -0
  168. package/dist/context/context.generator.d.ts +0 -1
  169. package/dist/context/context.generator.js +0 -1
  170. package/dist/enrichment/enrichment.enricher.d.ts +0 -1
  171. package/dist/enrichment/enrichment.enricher.js +0 -1
  172. package/dist/enrichment/enrichment.generator.d.ts +0 -1
  173. package/dist/enrichment/enrichment.generator.js +0 -1
  174. package/dist/enrichment/enrichment.graph.d.ts +6 -7
  175. package/dist/enrichment/enrichment.graph.js +0 -1
  176. package/dist/enrichment/enrichment.state.d.ts +2 -3
  177. package/dist/enrichment/enrichment.state.js +0 -1
  178. package/dist/enrichment/enrichment.tools.d.ts +3 -3
  179. package/dist/enrichment/enrichment.tools.js +0 -1
  180. package/dist/index.d.ts +106 -91
  181. package/dist/index.js +79 -71
  182. package/dist/integration/integration.tools.d.ts +6 -10
  183. package/dist/integration/integration.tools.js +6 -82
  184. package/dist/integrations/application/index.d.ts +14 -0
  185. package/dist/integrations/application/index.js +14 -0
  186. package/dist/integrations/application/integration.tools.d.ts +27 -0
  187. package/dist/integrations/application/integration.tools.js +98 -0
  188. package/dist/integrations/domain/index.d.ts +18 -0
  189. package/dist/integrations/domain/index.js +1 -0
  190. package/dist/integrations/domain/integration.types.d.ts +53 -0
  191. package/dist/integrations/domain/integration.types.js +11 -0
  192. package/dist/integrations/index.d.ts +27 -0
  193. package/dist/integrations/index.js +27 -0
  194. package/dist/integrations/ports/index.d.ts +28 -0
  195. package/dist/integrations/ports/index.js +26 -0
  196. package/dist/integrations/ports/integration.adapter.port.d.ts +62 -0
  197. package/dist/integrations/ports/integration.adapter.port.js +15 -0
  198. package/dist/integrations/ports/integration.importer.port.d.ts +31 -0
  199. package/dist/integrations/ports/integration.importer.port.js +15 -0
  200. package/dist/integrations/ports/integration.tools.port.d.ts +28 -0
  201. package/dist/integrations/ports/integration.tools.port.js +21 -0
  202. package/dist/integrations/public/index.d.ts +37 -0
  203. package/dist/integrations/public/index.js +34 -0
  204. package/dist/intent/intent.clarifier.d.ts +3 -52
  205. package/dist/intent/intent.clarifier.js +2 -202
  206. package/dist/intent/intent.graph.d.ts +3 -551
  207. package/dist/intent/intent.graph.js +3 -937
  208. package/dist/intent/intent.indexer.d.ts +2 -83
  209. package/dist/intent/intent.indexer.js +2 -171
  210. package/dist/intent/intent.inferrer.d.ts +2 -95
  211. package/dist/intent/intent.inferrer.js +2 -234
  212. package/dist/intent/intent.reconciler.d.ts +2 -106
  213. package/dist/intent/intent.reconciler.js +2 -187
  214. package/dist/intent/intent.specificity.d.ts +2 -3
  215. package/dist/intent/intent.specificity.js +2 -3
  216. package/dist/intent/intent.state.d.ts +8 -229
  217. package/dist/intent/intent.state.js +8 -189
  218. package/dist/intent/intent.tools.d.ts +6 -24
  219. package/dist/intent/intent.tools.js +4 -788
  220. package/dist/intent/intent.verifier.d.ts +2 -116
  221. package/dist/intent/intent.verifier.js +2 -263
  222. package/dist/maintenance/maintenance.graph.d.ts +0 -1
  223. package/dist/maintenance/maintenance.graph.js +0 -1
  224. package/dist/maintenance/maintenance.state.d.ts +0 -1
  225. package/dist/maintenance/maintenance.state.js +0 -1
  226. package/dist/mcp/elicitation.builder.d.ts +0 -1
  227. package/dist/mcp/elicitation.builder.js +0 -1
  228. package/dist/mcp/elicitation.dispatcher.d.ts +0 -1
  229. package/dist/mcp/elicitation.dispatcher.js +0 -1
  230. package/dist/mcp/mcp.server.d.ts +0 -1
  231. package/dist/mcp/mcp.server.js +1 -2
  232. package/dist/negotiation/application/index.d.ts +48 -0
  233. package/dist/negotiation/application/index.js +49 -0
  234. package/dist/negotiation/application/insight.generator.d.ts +31 -0
  235. package/dist/negotiation/application/insight.generator.js +105 -0
  236. package/dist/negotiation/application/negotiation.agent.d.ts +110 -0
  237. package/dist/negotiation/application/negotiation.agent.js +244 -0
  238. package/dist/negotiation/application/negotiation.detail-reader.d.ts +94 -0
  239. package/dist/negotiation/application/negotiation.detail-reader.js +91 -0
  240. package/dist/negotiation/application/negotiation.graph.d.ts +664 -0
  241. package/dist/negotiation/application/negotiation.graph.js +1393 -0
  242. package/dist/negotiation/application/negotiation.reflect.d.ts +194 -0
  243. package/dist/negotiation/application/negotiation.reflect.js +145 -0
  244. package/dist/negotiation/application/negotiation.screen.d.ts +78 -0
  245. package/dist/negotiation/application/negotiation.screen.js +108 -0
  246. package/dist/negotiation/application/negotiation.summarizer.d.ts +25 -0
  247. package/dist/negotiation/application/negotiation.summarizer.js +101 -0
  248. package/dist/negotiation/application/negotiation.tools.d.ts +18 -0
  249. package/dist/negotiation/application/negotiation.tools.js +782 -0
  250. package/dist/negotiation/domain/index.d.ts +48 -0
  251. package/dist/negotiation/domain/index.js +50 -0
  252. package/dist/negotiation/domain/negotiation.consultation-policy.d.ts +39 -0
  253. package/dist/negotiation/domain/negotiation.consultation-policy.js +68 -0
  254. package/dist/negotiation/domain/negotiation.deadlock.contracts.d.ts +10 -0
  255. package/dist/negotiation/domain/negotiation.deadlock.contracts.js +1 -0
  256. package/dist/negotiation/domain/negotiation.deadlock.d.ts +81 -0
  257. package/dist/negotiation/domain/negotiation.deadlock.js +103 -0
  258. package/dist/negotiation/domain/negotiation.intent-snapshot-provenance.d.ts +21 -0
  259. package/dist/negotiation/domain/negotiation.intent-snapshot-provenance.js +28 -0
  260. package/dist/negotiation/domain/negotiation.lifecycle-narration.d.ts +18 -0
  261. package/dist/negotiation/domain/negotiation.lifecycle-narration.js +87 -0
  262. package/dist/negotiation/domain/negotiation.memory.d.ts +65 -0
  263. package/dist/negotiation/domain/negotiation.memory.js +83 -0
  264. package/dist/negotiation/domain/negotiation.protocol.d.ts +536 -0
  265. package/dist/negotiation/domain/negotiation.protocol.js +202 -0
  266. package/dist/negotiation/domain/negotiation.question-safety.d.ts +25 -0
  267. package/dist/negotiation/domain/negotiation.question-safety.js +55 -0
  268. package/dist/negotiation/domain/negotiation.screen.contracts.d.ts +88 -0
  269. package/dist/negotiation/domain/negotiation.screen.contracts.js +58 -0
  270. package/dist/negotiation/domain/negotiation.state.d.ts +497 -0
  271. package/dist/negotiation/domain/negotiation.state.js +288 -0
  272. package/dist/negotiation/domain/negotiation.task-lock-policy.d.ts +10 -0
  273. package/dist/negotiation/domain/negotiation.task-lock-policy.js +22 -0
  274. package/dist/negotiation/index.d.ts +49 -0
  275. package/dist/negotiation/index.js +49 -0
  276. package/dist/negotiation/insight.generator.d.ts +3 -30
  277. package/dist/negotiation/insight.generator.js +3 -104
  278. package/dist/negotiation/negotiation.agent.d.ts +3 -109
  279. package/dist/negotiation/negotiation.agent.js +3 -248
  280. package/dist/negotiation/negotiation.attribution.d.ts +0 -1
  281. package/dist/negotiation/negotiation.attribution.js +0 -1
  282. package/dist/negotiation/negotiation.consultation-policy.d.ts +3 -38
  283. package/dist/negotiation/negotiation.consultation-policy.js +3 -67
  284. package/dist/negotiation/negotiation.deadlock.contracts.d.ts +5 -0
  285. package/dist/negotiation/negotiation.deadlock.contracts.js +5 -0
  286. package/dist/negotiation/negotiation.deadlock.d.ts +3 -94
  287. package/dist/negotiation/negotiation.deadlock.js +3 -101
  288. package/dist/negotiation/negotiation.detail-reader.d.ts +5 -0
  289. package/dist/negotiation/negotiation.detail-reader.js +5 -0
  290. package/dist/negotiation/negotiation.graph.d.ts +3 -663
  291. package/dist/negotiation/negotiation.graph.js +3 -1459
  292. package/dist/negotiation/negotiation.intent-snapshot-provenance.d.ts +5 -0
  293. package/dist/negotiation/negotiation.intent-snapshot-provenance.js +5 -0
  294. package/dist/negotiation/negotiation.lifecycle-narration.d.ts +5 -0
  295. package/dist/negotiation/negotiation.lifecycle-narration.js +5 -0
  296. package/dist/negotiation/negotiation.memory.d.ts +5 -56
  297. package/dist/negotiation/negotiation.memory.js +5 -69
  298. package/dist/negotiation/negotiation.protocol.d.ts +3 -535
  299. package/dist/negotiation/negotiation.protocol.js +3 -201
  300. package/dist/negotiation/negotiation.question-safety.d.ts +3 -24
  301. package/dist/negotiation/negotiation.question-safety.js +3 -54
  302. package/dist/negotiation/negotiation.reflect.d.ts +4 -197
  303. package/dist/negotiation/negotiation.reflect.js +4 -151
  304. package/dist/negotiation/negotiation.screen.d.ts +6 -159
  305. package/dist/negotiation/negotiation.screen.js +6 -152
  306. package/dist/negotiation/negotiation.state.d.ts +3 -495
  307. package/dist/negotiation/negotiation.state.js +3 -284
  308. package/dist/negotiation/negotiation.summarizer.d.ts +3 -24
  309. package/dist/negotiation/negotiation.summarizer.js +3 -100
  310. package/dist/negotiation/negotiation.task-lock-policy.d.ts +5 -0
  311. package/dist/negotiation/negotiation.task-lock-policy.js +5 -0
  312. package/dist/negotiation/negotiation.tools.d.ts +3 -15
  313. package/dist/negotiation/negotiation.tools.js +3 -946
  314. package/dist/negotiation/ports/index.d.ts +18 -0
  315. package/dist/negotiation/ports/index.js +18 -0
  316. package/dist/negotiation/ports/negotiation.tools.port.d.ts +18 -0
  317. package/dist/negotiation/ports/negotiation.tools.port.js +1 -0
  318. package/dist/negotiation/public/index.d.ts +58 -0
  319. package/dist/negotiation/public/index.js +60 -0
  320. package/dist/network/indexer/indexer.graph.d.ts +3 -413
  321. package/dist/network/indexer/indexer.graph.js +3 -375
  322. package/dist/network/indexer/indexer.state.d.ts +3 -149
  323. package/dist/network/indexer/indexer.state.js +3 -98
  324. package/dist/network/membership/membership.graph.d.ts +3 -248
  325. package/dist/network/membership/membership.graph.js +3 -202
  326. package/dist/network/membership/membership.state.d.ts +3 -75
  327. package/dist/network/membership/membership.state.js +3 -41
  328. package/dist/network/network.graph.d.ts +3 -629
  329. package/dist/network/network.graph.js +3 -267
  330. package/dist/network/network.recommender.d.ts +3 -40
  331. package/dist/network/network.recommender.js +3 -109
  332. package/dist/network/network.state.d.ts +3 -180
  333. package/dist/network/network.state.js +3 -54
  334. package/dist/network/network.tools.d.ts +5 -3
  335. package/dist/network/network.tools.js +5 -566
  336. package/dist/opportunity/application/delivery-card.cache.d.ts +25 -0
  337. package/dist/opportunity/application/delivery-card.cache.js +43 -0
  338. package/dist/opportunity/application/index.d.ts +63 -0
  339. package/dist/opportunity/application/index.js +68 -0
  340. package/dist/opportunity/application/negotiation-context.loader.d.ts +59 -0
  341. package/dist/opportunity/application/negotiation-context.loader.js +88 -0
  342. package/dist/opportunity/application/opportunity.card-presentation.d.ts +44 -0
  343. package/dist/opportunity/application/opportunity.card-presentation.js +104 -0
  344. package/dist/opportunity/application/opportunity.discover.d.ts +215 -0
  345. package/dist/opportunity/application/opportunity.discover.js +793 -0
  346. package/dist/opportunity/application/opportunity.discovery-continuation-finalization.d.ts +34 -0
  347. package/dist/opportunity/application/opportunity.discovery-continuation-finalization.js +74 -0
  348. package/dist/opportunity/application/opportunity.discovery-mcp-lifecycle-finalization.d.ts +44 -0
  349. package/dist/opportunity/application/opportunity.discovery-mcp-lifecycle-finalization.js +92 -0
  350. package/dist/opportunity/application/opportunity.discovery-negotiation-summary.d.ts +14 -0
  351. package/dist/opportunity/application/opportunity.discovery-negotiation-summary.js +46 -0
  352. package/dist/opportunity/application/opportunity.enricher.d.ts +71 -0
  353. package/dist/opportunity/application/opportunity.enricher.js +280 -0
  354. package/dist/opportunity/application/opportunity.evaluator.d.ts +275 -0
  355. package/dist/opportunity/application/opportunity.evaluator.js +459 -0
  356. package/dist/opportunity/application/opportunity.existing-negotiation.d.ts +77 -0
  357. package/dist/opportunity/application/opportunity.existing-negotiation.js +109 -0
  358. package/dist/opportunity/application/opportunity.feed-selection.d.ts +30 -0
  359. package/dist/opportunity/application/opportunity.feed-selection.js +96 -0
  360. package/dist/opportunity/application/opportunity.graph.d.ts +1427 -0
  361. package/dist/opportunity/application/opportunity.graph.js +3693 -0
  362. package/dist/opportunity/application/opportunity.introducer.d.ts +77 -0
  363. package/dist/opportunity/application/opportunity.introducer.js +99 -0
  364. package/dist/opportunity/application/opportunity.lifecycle.d.ts +63 -0
  365. package/dist/opportunity/application/opportunity.lifecycle.js +181 -0
  366. package/dist/opportunity/application/opportunity.newborn-stamping.d.ts +41 -0
  367. package/dist/opportunity/application/opportunity.newborn-stamping.js +81 -0
  368. package/dist/opportunity/application/opportunity.pending-questions.d.ts +33 -0
  369. package/dist/opportunity/application/opportunity.pending-questions.js +42 -0
  370. package/dist/opportunity/application/opportunity.persist.d.ts +58 -0
  371. package/dist/opportunity/application/opportunity.persist.js +145 -0
  372. package/dist/opportunity/application/opportunity.persistence-admission.d.ts +39 -0
  373. package/dist/opportunity/application/opportunity.persistence-admission.js +59 -0
  374. package/dist/opportunity/application/opportunity.presenter.d.ts +156 -0
  375. package/dist/opportunity/application/opportunity.presenter.js +736 -0
  376. package/dist/opportunity/application/opportunity.tools.d.ts +131 -0
  377. package/dist/opportunity/application/opportunity.tools.js +1834 -0
  378. package/dist/opportunity/application/opportunity.update-admission.d.ts +24 -0
  379. package/dist/opportunity/application/opportunity.update-admission.js +38 -0
  380. package/dist/opportunity/delivery-card.cache.d.ts +5 -26
  381. package/dist/opportunity/delivery-card.cache.js +5 -44
  382. package/dist/opportunity/discovery-question.helper.d.ts +3 -17
  383. package/dist/opportunity/discovery-question.helper.js +3 -14
  384. package/dist/opportunity/discriminator/discriminator.adjustments.d.ts +0 -1
  385. package/dist/opportunity/discriminator/discriminator.adjustments.js +0 -1
  386. package/dist/opportunity/discriminator/discriminator.assigner.d.ts +4 -5
  387. package/dist/opportunity/discriminator/discriminator.assigner.js +0 -1
  388. package/dist/opportunity/discriminator/discriminator.env.d.ts +0 -1
  389. package/dist/opportunity/discriminator/discriminator.env.js +0 -1
  390. package/dist/opportunity/discriminator/discriminator.miner.d.ts +0 -1
  391. package/dist/opportunity/discriminator/discriminator.miner.js +0 -1
  392. package/dist/opportunity/discriminator/discriminator.push.d.ts +0 -1
  393. package/dist/opportunity/discriminator/discriminator.push.js +0 -1
  394. package/dist/opportunity/discriminator/discriminator.question.d.ts +0 -1
  395. package/dist/opportunity/discriminator/discriminator.question.js +0 -1
  396. package/dist/opportunity/discriminator/discriminator.scorer.d.ts +0 -1
  397. package/dist/opportunity/discriminator/discriminator.scorer.js +0 -1
  398. package/dist/opportunity/discriminator/discriminator.shadow.d.ts +0 -1
  399. package/dist/opportunity/discriminator/discriminator.shadow.js +0 -1
  400. package/dist/opportunity/discriminator/discriminator.types.d.ts +0 -1
  401. package/dist/opportunity/discriminator/discriminator.types.js +0 -1
  402. package/dist/opportunity/domain/discovery-question.helper.d.ts +18 -0
  403. package/dist/opportunity/domain/discovery-question.helper.js +15 -0
  404. package/dist/opportunity/domain/index.d.ts +55 -0
  405. package/dist/opportunity/domain/index.js +52 -0
  406. package/dist/opportunity/domain/negotiation-summary.builder.d.ts +37 -0
  407. package/dist/opportunity/domain/negotiation-summary.builder.js +66 -0
  408. package/dist/opportunity/domain/opportunity.actor.d.ts +15 -0
  409. package/dist/opportunity/domain/opportunity.actor.js +39 -0
  410. package/dist/opportunity/domain/opportunity.claim-safety.d.ts +24 -0
  411. package/dist/opportunity/domain/opportunity.claim-safety.js +88 -0
  412. package/dist/opportunity/domain/opportunity.discovery-run-coalescing.d.ts +33 -0
  413. package/dist/opportunity/domain/opportunity.discovery-run-coalescing.js +33 -0
  414. package/dist/opportunity/domain/opportunity.discovery.contracts.d.ts +45 -0
  415. package/dist/opportunity/domain/opportunity.discovery.contracts.js +1 -0
  416. package/dist/opportunity/domain/opportunity.evidence.d.ts +21 -0
  417. package/dist/opportunity/domain/opportunity.evidence.js +78 -0
  418. package/dist/opportunity/domain/opportunity.labels.d.ts +8 -0
  419. package/dist/opportunity/domain/opportunity.labels.js +10 -0
  420. package/dist/opportunity/domain/opportunity.presentation-cache.d.ts +6 -0
  421. package/dist/opportunity/domain/opportunity.presentation-cache.js +14 -0
  422. package/dist/opportunity/domain/opportunity.presentation.d.ts +76 -0
  423. package/dist/opportunity/domain/opportunity.presentation.js +516 -0
  424. package/dist/opportunity/domain/opportunity.safe-presentation.d.ts +104 -0
  425. package/dist/opportunity/domain/opportunity.safe-presentation.js +102 -0
  426. package/dist/opportunity/domain/opportunity.state.d.ts +519 -0
  427. package/dist/opportunity/domain/opportunity.state.js +309 -0
  428. package/dist/opportunity/domain/opportunity.utils.d.ts +217 -0
  429. package/dist/opportunity/domain/opportunity.utils.js +395 -0
  430. package/dist/opportunity/feed/feed.categorizer.d.ts +0 -1
  431. package/dist/opportunity/feed/feed.categorizer.js +0 -1
  432. package/dist/opportunity/feed/feed.graph.d.ts +1 -2
  433. package/dist/opportunity/feed/feed.graph.js +0 -1
  434. package/dist/opportunity/feed/feed.health.d.ts +0 -1
  435. package/dist/opportunity/feed/feed.health.js +0 -1
  436. package/dist/opportunity/feed/feed.state.d.ts +1 -2
  437. package/dist/opportunity/feed/feed.state.js +0 -1
  438. package/dist/opportunity/index.d.ts +37 -0
  439. package/dist/opportunity/index.js +37 -0
  440. package/dist/opportunity/negotiation-context.loader.d.ts +3 -58
  441. package/dist/opportunity/negotiation-context.loader.js +3 -87
  442. package/dist/opportunity/negotiation-evidence/negotiation-evidence.env.d.ts +0 -1
  443. package/dist/opportunity/negotiation-evidence/negotiation-evidence.env.js +0 -1
  444. package/dist/opportunity/negotiation-evidence/negotiation-evidence.extractor.d.ts +0 -1
  445. package/dist/opportunity/negotiation-evidence/negotiation-evidence.extractor.js +0 -1
  446. package/dist/opportunity/negotiation-evidence/negotiation-evidence.miner.d.ts +0 -1
  447. package/dist/opportunity/negotiation-evidence/negotiation-evidence.miner.js +0 -1
  448. package/dist/opportunity/negotiation-evidence/negotiation-evidence.shadow.d.ts +0 -1
  449. package/dist/opportunity/negotiation-evidence/negotiation-evidence.shadow.js +0 -1
  450. package/dist/opportunity/negotiation-evidence/negotiation-evidence.types.d.ts +0 -1
  451. package/dist/opportunity/negotiation-evidence/negotiation-evidence.types.js +0 -1
  452. package/dist/opportunity/negotiation-evidence/negotiation-evidence.verifier.d.ts +0 -1
  453. package/dist/opportunity/negotiation-evidence/negotiation-evidence.verifier.js +0 -1
  454. package/dist/opportunity/negotiation-summary.builder.d.ts +3 -36
  455. package/dist/opportunity/negotiation-summary.builder.js +3 -65
  456. package/dist/opportunity/opportunity.actor.d.ts +3 -14
  457. package/dist/opportunity/opportunity.actor.js +3 -38
  458. package/dist/opportunity/opportunity.card-presentation.d.ts +5 -0
  459. package/dist/opportunity/opportunity.card-presentation.js +5 -0
  460. package/dist/opportunity/opportunity.claim-safety.d.ts +3 -23
  461. package/dist/opportunity/opportunity.claim-safety.js +3 -87
  462. package/dist/opportunity/opportunity.discover.d.ts +3 -218
  463. package/dist/opportunity/opportunity.discover.js +3 -917
  464. package/dist/opportunity/opportunity.discovery-continuation-finalization.d.ts +5 -0
  465. package/dist/opportunity/opportunity.discovery-continuation-finalization.js +5 -0
  466. package/dist/opportunity/opportunity.discovery-mcp-lifecycle-finalization.d.ts +5 -0
  467. package/dist/opportunity/opportunity.discovery-mcp-lifecycle-finalization.js +5 -0
  468. package/dist/opportunity/opportunity.discovery-negotiation-summary.d.ts +5 -0
  469. package/dist/opportunity/opportunity.discovery-negotiation-summary.js +5 -0
  470. package/dist/opportunity/opportunity.discovery-run-coalescing.d.ts +5 -0
  471. package/dist/opportunity/opportunity.discovery-run-coalescing.js +5 -0
  472. package/dist/opportunity/opportunity.discovery.contracts.d.ts +5 -0
  473. package/dist/opportunity/opportunity.discovery.contracts.js +5 -0
  474. package/dist/opportunity/opportunity.enricher.d.ts +3 -70
  475. package/dist/opportunity/opportunity.enricher.js +3 -279
  476. package/dist/opportunity/opportunity.evaluator.d.ts +5 -276
  477. package/dist/opportunity/opportunity.evaluator.js +5 -460
  478. package/dist/opportunity/opportunity.evidence.d.ts +5 -22
  479. package/dist/opportunity/opportunity.evidence.js +5 -79
  480. package/dist/opportunity/opportunity.existing-negotiation.d.ts +5 -0
  481. package/dist/opportunity/opportunity.existing-negotiation.js +5 -0
  482. package/dist/opportunity/opportunity.feed-selection.d.ts +5 -0
  483. package/dist/opportunity/opportunity.feed-selection.js +5 -0
  484. package/dist/opportunity/opportunity.graph.d.ts +3 -1489
  485. package/dist/opportunity/opportunity.graph.js +3 -4071
  486. package/dist/opportunity/opportunity.introducer.d.ts +3 -76
  487. package/dist/opportunity/opportunity.introducer.js +3 -98
  488. package/dist/opportunity/opportunity.labels.d.ts +5 -9
  489. package/dist/opportunity/opportunity.labels.js +5 -11
  490. package/dist/opportunity/opportunity.lifecycle.d.ts +5 -0
  491. package/dist/opportunity/opportunity.lifecycle.js +5 -0
  492. package/dist/opportunity/opportunity.newborn-stamping.d.ts +5 -0
  493. package/dist/opportunity/opportunity.newborn-stamping.js +5 -0
  494. package/dist/opportunity/opportunity.pending-questions.d.ts +3 -32
  495. package/dist/opportunity/opportunity.pending-questions.js +3 -41
  496. package/dist/opportunity/opportunity.persist.d.ts +3 -57
  497. package/dist/opportunity/opportunity.persist.js +3 -144
  498. package/dist/opportunity/opportunity.persistence-admission.d.ts +5 -0
  499. package/dist/opportunity/opportunity.persistence-admission.js +5 -0
  500. package/dist/opportunity/opportunity.presentation-cache.d.ts +5 -7
  501. package/dist/opportunity/opportunity.presentation-cache.js +5 -15
  502. package/dist/opportunity/opportunity.presentation.d.ts +3 -75
  503. package/dist/opportunity/opportunity.presentation.js +3 -515
  504. package/dist/opportunity/opportunity.presenter.d.ts +10 -155
  505. package/dist/opportunity/opportunity.presenter.js +10 -735
  506. package/dist/opportunity/opportunity.safe-presentation.d.ts +3 -103
  507. package/dist/opportunity/opportunity.safe-presentation.js +3 -101
  508. package/dist/opportunity/opportunity.state.d.ts +3 -518
  509. package/dist/opportunity/opportunity.state.js +3 -308
  510. package/dist/opportunity/opportunity.tools.d.ts +3 -157
  511. package/dist/opportunity/opportunity.tools.js +3 -2238
  512. package/dist/opportunity/opportunity.update-admission.d.ts +5 -0
  513. package/dist/opportunity/opportunity.update-admission.js +5 -0
  514. package/dist/opportunity/opportunity.utils.d.ts +3 -216
  515. package/dist/opportunity/opportunity.utils.js +3 -394
  516. package/dist/opportunity/outcome/outcome.env.d.ts +0 -1
  517. package/dist/opportunity/outcome/outcome.env.js +0 -1
  518. package/dist/opportunity/outcome/outcome.hypotheses.d.ts +0 -1
  519. package/dist/opportunity/outcome/outcome.hypotheses.js +0 -1
  520. package/dist/opportunity/outcome/outcome.shadow.d.ts +0 -1
  521. package/dist/opportunity/outcome/outcome.shadow.js +0 -1
  522. package/dist/opportunity/outcome/outcome.types.d.ts +0 -1
  523. package/dist/opportunity/outcome/outcome.types.js +0 -1
  524. package/dist/opportunity/ports/index.d.ts +5 -0
  525. package/dist/opportunity/ports/index.js +1 -0
  526. package/dist/opportunity/ports/opportunity.tools.port.d.ts +5 -0
  527. package/dist/opportunity/ports/opportunity.tools.port.js +1 -0
  528. package/dist/opportunity/public/index.d.ts +58 -0
  529. package/dist/opportunity/public/index.js +51 -0
  530. package/dist/participant-agents/application/agent.tools.d.ts +16 -0
  531. package/dist/participant-agents/application/agent.tools.js +313 -0
  532. package/dist/participant-agents/application/index.d.ts +21 -0
  533. package/dist/participant-agents/application/index.js +22 -0
  534. package/dist/participant-agents/domain/agent.types.d.ts +76 -0
  535. package/dist/participant-agents/domain/agent.types.js +22 -0
  536. package/dist/participant-agents/domain/index.d.ts +20 -0
  537. package/dist/participant-agents/domain/index.js +1 -0
  538. package/dist/participant-agents/index.d.ts +24 -0
  539. package/dist/participant-agents/index.js +24 -0
  540. package/dist/participant-agents/ports/agent.dispatcher.port.d.ts +25 -0
  541. package/dist/participant-agents/ports/agent.dispatcher.port.js +1 -0
  542. package/dist/participant-agents/ports/agent.repository.port.d.ts +118 -0
  543. package/dist/participant-agents/ports/agent.repository.port.js +10 -0
  544. package/dist/participant-agents/ports/agent.tools.port.d.ts +24 -0
  545. package/dist/participant-agents/ports/agent.tools.port.js +20 -0
  546. package/dist/participant-agents/ports/index.d.ts +29 -0
  547. package/dist/participant-agents/ports/index.js +27 -0
  548. package/dist/participant-agents/public/index.d.ts +39 -0
  549. package/dist/participant-agents/public/index.js +36 -0
  550. package/dist/participant-context/application/index.d.ts +73 -0
  551. package/dist/participant-context/application/index.js +83 -0
  552. package/dist/participant-context/domain/index.d.ts +67 -0
  553. package/dist/participant-context/domain/index.js +68 -0
  554. package/dist/participant-context/index.d.ts +16 -0
  555. package/dist/participant-context/index.js +16 -0
  556. package/dist/participant-context/ports/index.d.ts +37 -0
  557. package/dist/participant-context/ports/index.js +34 -0
  558. package/dist/participant-context/public/index.d.ts +48 -0
  559. package/dist/participant-context/public/index.js +55 -0
  560. package/dist/platform/index.d.ts +19 -0
  561. package/dist/platform/index.js +23 -0
  562. package/dist/premise/premise.analyzer.d.ts +0 -1
  563. package/dist/premise/premise.analyzer.js +0 -2
  564. package/dist/premise/premise.decomposer.d.ts +0 -1
  565. package/dist/premise/premise.decomposer.js +0 -2
  566. package/dist/premise/premise.graph.d.ts +1 -2
  567. package/dist/premise/premise.graph.js +0 -2
  568. package/dist/premise/premise.indexer.d.ts +0 -1
  569. package/dist/premise/premise.indexer.js +0 -2
  570. package/dist/premise/premise.state.d.ts +1 -2
  571. package/dist/premise/premise.state.js +0 -1
  572. package/dist/premise/premise.tools.d.ts +3 -3
  573. package/dist/premise/premise.tools.js +0 -2
  574. package/dist/public/index.d.ts +17 -0
  575. package/dist/public/index.js +17 -0
  576. package/dist/questioner/questioner.agent.d.ts +4 -27
  577. package/dist/questioner/questioner.agent.js +3 -133
  578. package/dist/questioner/questioner.ask.tool.d.ts +3 -12
  579. package/dist/questioner/questioner.ask.tool.js +3 -299
  580. package/dist/questioner/questioner.discovery.prompt.d.ts +3 -7
  581. package/dist/questioner/questioner.discovery.prompt.js +3 -180
  582. package/dist/questioner/questioner.env.d.ts +3 -57
  583. package/dist/questioner/questioner.env.js +3 -93
  584. package/dist/questioner/questioner.presets.d.ts +4 -19
  585. package/dist/questioner/questioner.presets.js +3 -465
  586. package/dist/questioner/questioner.qud.d.ts +3 -6
  587. package/dist/questioner/questioner.qud.js +3 -10
  588. package/dist/questioner/questioner.tools.d.ts +3 -15
  589. package/dist/questioner/questioner.tools.js +3 -186
  590. package/dist/questioner/questioner.types.d.ts +4 -218
  591. package/dist/questioner/questioner.types.js +5 -62
  592. package/dist/questions/application/index.d.ts +39 -0
  593. package/dist/questions/application/index.js +41 -0
  594. package/dist/questions/application/question.agent.d.ts +28 -0
  595. package/dist/questions/application/question.agent.js +139 -0
  596. package/dist/questions/application/question.ask.tool.d.ts +12 -0
  597. package/dist/questions/application/question.ask.tool.js +300 -0
  598. package/dist/questions/application/question.discovery.prompt.d.ts +8 -0
  599. package/dist/questions/application/question.discovery.prompt.js +181 -0
  600. package/dist/questions/application/question.env.d.ts +61 -0
  601. package/dist/questions/application/question.env.js +97 -0
  602. package/dist/questions/application/question.input.d.ts +237 -0
  603. package/dist/questions/application/question.input.js +61 -0
  604. package/dist/questions/application/question.presets.d.ts +24 -0
  605. package/dist/questions/application/question.presets.js +445 -0
  606. package/dist/questions/application/question.qud.d.ts +12 -0
  607. package/dist/questions/application/question.qud.js +16 -0
  608. package/dist/questions/application/question.tools.d.ts +15 -0
  609. package/dist/questions/application/question.tools.js +190 -0
  610. package/dist/questions/domain/index.d.ts +25 -0
  611. package/dist/questions/domain/index.js +25 -0
  612. package/dist/questions/domain/question.schema.d.ts +1537 -0
  613. package/dist/questions/domain/question.schema.js +422 -0
  614. package/dist/questions/index.d.ts +22 -0
  615. package/dist/questions/index.js +22 -0
  616. package/dist/questions/ports/index.d.ts +29 -0
  617. package/dist/questions/ports/index.js +27 -0
  618. package/dist/questions/ports/question.generator.port.d.ts +34 -0
  619. package/dist/questions/ports/question.generator.port.js +1 -0
  620. package/dist/questions/ports/question.persistence.port.d.ts +87 -0
  621. package/dist/questions/ports/question.persistence.port.js +1 -0
  622. package/dist/questions/ports/question.tools.port.d.ts +15 -0
  623. package/dist/questions/ports/question.tools.port.js +1 -0
  624. package/dist/questions/public/index.d.ts +47 -0
  625. package/dist/questions/public/index.js +49 -0
  626. package/dist/runtime/background/index.d.ts +14 -0
  627. package/dist/runtime/background/index.js +14 -0
  628. package/dist/runtime/foreground/composition/tool.factory.d.ts +16 -0
  629. package/dist/runtime/foreground/composition/tool.factory.js +224 -0
  630. package/dist/runtime/foreground/composition/tool.registry.d.ts +11 -0
  631. package/dist/runtime/foreground/composition/tool.registry.js +106 -0
  632. package/dist/runtime/foreground/index.d.ts +13 -0
  633. package/dist/runtime/foreground/index.js +13 -0
  634. package/dist/runtime/foreground/signals/intent.tools.d.ts +13 -0
  635. package/dist/runtime/foreground/signals/intent.tools.js +13 -0
  636. package/dist/shared/agent/model-signal.d.ts +0 -1
  637. package/dist/shared/agent/model-signal.js +0 -1
  638. package/dist/shared/agent/model.config.d.ts +0 -1
  639. package/dist/shared/agent/model.config.js +0 -1
  640. package/dist/shared/agent/tool.factory.d.ts +4 -15
  641. package/dist/shared/agent/tool.factory.js +4 -226
  642. package/dist/shared/agent/tool.helpers.d.ts +51 -12
  643. package/dist/shared/agent/tool.helpers.js +0 -1
  644. package/dist/shared/agent/tool.registry.d.ts +9 -9
  645. package/dist/shared/agent/tool.registry.js +9 -104
  646. package/dist/shared/agent/tool.runtime.d.ts +0 -1
  647. package/dist/shared/agent/tool.runtime.js +0 -1
  648. package/dist/shared/agent/tool.scope.d.ts +0 -1
  649. package/dist/shared/agent/tool.scope.js +0 -1
  650. package/dist/shared/agent/utility.tools.d.ts +5 -3
  651. package/dist/shared/agent/utility.tools.js +0 -1
  652. package/dist/shared/assignment/network-assignment.policy.d.ts +0 -1
  653. package/dist/shared/assignment/network-assignment.policy.js +0 -1
  654. package/dist/shared/hyde/hyde.documents.d.ts +0 -1
  655. package/dist/shared/hyde/hyde.documents.js +0 -1
  656. package/dist/shared/hyde/hyde.env.d.ts +0 -1
  657. package/dist/shared/hyde/hyde.env.js +0 -1
  658. package/dist/shared/hyde/hyde.frame.d.ts +4 -5
  659. package/dist/shared/hyde/hyde.frame.js +0 -1
  660. package/dist/shared/hyde/hyde.generator.d.ts +0 -1
  661. package/dist/shared/hyde/hyde.generator.js +0 -1
  662. package/dist/shared/hyde/hyde.graph.d.ts +0 -1
  663. package/dist/shared/hyde/hyde.graph.js +0 -1
  664. package/dist/shared/hyde/hyde.state.d.ts +0 -1
  665. package/dist/shared/hyde/hyde.state.js +0 -1
  666. package/dist/shared/hyde/hyde.strategies.d.ts +0 -1
  667. package/dist/shared/hyde/hyde.strategies.js +0 -1
  668. package/dist/shared/hyde/hyde.validator.d.ts +0 -1
  669. package/dist/shared/hyde/hyde.validator.js +0 -1
  670. package/dist/shared/hyde/lens.inferrer.d.ts +6 -7
  671. package/dist/shared/hyde/lens.inferrer.js +0 -1
  672. package/dist/shared/interfaces/agent-dispatcher.interface.d.ts +4 -1
  673. package/dist/shared/interfaces/agent-dispatcher.interface.js +4 -1
  674. package/dist/shared/interfaces/agent.interface.d.ts +13 -173
  675. package/dist/shared/interfaces/agent.interface.js +12 -12
  676. package/dist/shared/interfaces/auth.interface.d.ts +0 -1
  677. package/dist/shared/interfaces/auth.interface.js +0 -1
  678. package/dist/shared/interfaces/cache.interface.d.ts +0 -1
  679. package/dist/shared/interfaces/cache.interface.js +0 -1
  680. package/dist/shared/interfaces/chat-message-writer.interface.d.ts +0 -1
  681. package/dist/shared/interfaces/chat-message-writer.interface.js +0 -1
  682. package/dist/shared/interfaces/chat-session.interface.d.ts +0 -1
  683. package/dist/shared/interfaces/chat-session.interface.js +0 -1
  684. package/dist/shared/interfaces/chat-summary.interface.d.ts +0 -1
  685. package/dist/shared/interfaces/chat-summary.interface.js +0 -1
  686. package/dist/shared/interfaces/connect-link.interface.d.ts +0 -1
  687. package/dist/shared/interfaces/connect-link.interface.js +0 -1
  688. package/dist/shared/interfaces/contact.interface.d.ts +7 -55
  689. package/dist/shared/interfaces/contact.interface.js +7 -1
  690. package/dist/shared/interfaces/database.interface.d.ts +0 -1
  691. package/dist/shared/interfaces/database.interface.js +0 -1
  692. package/dist/shared/interfaces/delivery-ledger.interface.d.ts +0 -1
  693. package/dist/shared/interfaces/delivery-ledger.interface.js +0 -1
  694. package/dist/shared/interfaces/discovery-run.interface.d.ts +2 -3
  695. package/dist/shared/interfaces/discovery-run.interface.js +0 -1
  696. package/dist/shared/interfaces/embedder.interface.d.ts +0 -1
  697. package/dist/shared/interfaces/embedder.interface.js +0 -1
  698. package/dist/shared/interfaces/enrichment-run.interface.d.ts +2 -3
  699. package/dist/shared/interfaces/enrichment-run.interface.js +0 -1
  700. package/dist/shared/interfaces/enrichment.interface.d.ts +0 -1
  701. package/dist/shared/interfaces/enrichment.interface.js +0 -1
  702. package/dist/shared/interfaces/integration.interface.d.ts +6 -88
  703. package/dist/shared/interfaces/integration.interface.js +7 -1
  704. package/dist/shared/interfaces/negotiation-events.interface.d.ts +0 -1
  705. package/dist/shared/interfaces/negotiation-events.interface.js +0 -1
  706. package/dist/shared/interfaces/negotiation-summary.interface.d.ts +0 -1
  707. package/dist/shared/interfaces/negotiation-summary.interface.js +0 -1
  708. package/dist/shared/interfaces/negotiator-memory.interface.d.ts +0 -1
  709. package/dist/shared/interfaces/negotiator-memory.interface.js +0 -1
  710. package/dist/shared/interfaces/question-generator.interface.d.ts +3 -28
  711. package/dist/shared/interfaces/question-generator.interface.js +0 -1
  712. package/dist/shared/interfaces/questioner.interface.d.ts +3 -77
  713. package/dist/shared/interfaces/questioner.interface.js +0 -1
  714. package/dist/shared/interfaces/queue.interface.d.ts +0 -1
  715. package/dist/shared/interfaces/queue.interface.js +0 -1
  716. package/dist/shared/interfaces/scraper.interface.d.ts +0 -1
  717. package/dist/shared/interfaces/scraper.interface.js +0 -1
  718. package/dist/shared/interfaces/tool-request-context.interface.d.ts +12 -0
  719. package/dist/shared/interfaces/tool-request-context.interface.js +1 -0
  720. package/dist/shared/network/metadata.renderer.d.ts +0 -1
  721. package/dist/shared/network/metadata.renderer.js +0 -1
  722. package/dist/shared/observability/debug-meta.sanitizer.d.ts +0 -1
  723. package/dist/shared/observability/debug-meta.sanitizer.js +0 -1
  724. package/dist/shared/observability/log.d.ts +0 -1
  725. package/dist/shared/observability/log.js +0 -1
  726. package/dist/shared/observability/performance.d.ts +0 -1
  727. package/dist/shared/observability/performance.js +0 -1
  728. package/dist/shared/observability/protocol.logger.d.ts +0 -1
  729. package/dist/shared/observability/protocol.logger.js +0 -1
  730. package/dist/shared/observability/request-context.d.ts +0 -1
  731. package/dist/shared/observability/request-context.js +0 -1
  732. package/dist/shared/observability/trace.d.ts +0 -1
  733. package/dist/shared/observability/trace.js +0 -1
  734. package/dist/shared/schemas/chat-context.schema.d.ts +0 -1
  735. package/dist/shared/schemas/chat-context.schema.js +0 -1
  736. package/dist/shared/schemas/discovery-question.schema.d.ts +17 -18
  737. package/dist/shared/schemas/discovery-question.schema.js +0 -1
  738. package/dist/shared/schemas/identity.schema.d.ts +0 -1
  739. package/dist/shared/schemas/identity.schema.js +0 -1
  740. package/dist/shared/schemas/mcp-auth.schema.d.ts +0 -1
  741. package/dist/shared/schemas/mcp-auth.schema.js +0 -1
  742. package/dist/shared/schemas/negotiation-digest.schema.d.ts +5 -6
  743. package/dist/shared/schemas/negotiation-digest.schema.js +0 -1
  744. package/dist/shared/schemas/negotiation-state.schema.d.ts +4 -5
  745. package/dist/shared/schemas/negotiation-state.schema.js +0 -1
  746. package/dist/shared/schemas/network-assignment.schema.d.ts +0 -1
  747. package/dist/shared/schemas/network-assignment.schema.js +0 -1
  748. package/dist/shared/schemas/pending-question.schema.d.ts +0 -1
  749. package/dist/shared/schemas/pending-question.schema.js +0 -1
  750. package/dist/shared/schemas/question.schema.d.ts +3 -1535
  751. package/dist/shared/schemas/question.schema.js +3 -420
  752. package/dist/shared/ui/lucide.icon-catalog.d.ts +0 -1
  753. package/dist/shared/ui/lucide.icon-catalog.js +0 -1
  754. package/dist/shared/utils/social-label.d.ts +0 -1
  755. package/dist/shared/utils/social-label.js +0 -1
  756. package/dist/shared/utils/telegram-handle.d.ts +0 -1
  757. package/dist/shared/utils/telegram-handle.js +0 -1
  758. package/dist/signals/application/index.d.ts +19 -0
  759. package/dist/signals/application/index.js +22 -0
  760. package/dist/signals/application/intent.clarifier.d.ts +51 -0
  761. package/dist/signals/application/intent.clarifier.js +201 -0
  762. package/dist/signals/application/intent.graph.d.ts +552 -0
  763. package/dist/signals/application/intent.graph.js +938 -0
  764. package/dist/signals/application/intent.indexer.d.ts +82 -0
  765. package/dist/signals/application/intent.indexer.js +170 -0
  766. package/dist/signals/application/intent.inferrer.d.ts +94 -0
  767. package/dist/signals/application/intent.inferrer.js +233 -0
  768. package/dist/signals/application/intent.reconciler.d.ts +105 -0
  769. package/dist/signals/application/intent.reconciler.js +186 -0
  770. package/dist/signals/application/intent.tools.d.ts +24 -0
  771. package/dist/signals/application/intent.tools.js +789 -0
  772. package/dist/signals/application/intent.verifier.d.ts +115 -0
  773. package/dist/signals/application/intent.verifier.js +262 -0
  774. package/dist/signals/domain/index.d.ts +9 -0
  775. package/dist/signals/domain/index.js +11 -0
  776. package/dist/signals/domain/intent.state.d.ts +230 -0
  777. package/dist/signals/domain/intent.state.js +190 -0
  778. package/dist/signals/domain/signal.specificity.d.ts +2 -0
  779. package/dist/signals/domain/signal.specificity.js +2 -0
  780. package/dist/signals/index.d.ts +13 -0
  781. package/dist/signals/index.js +13 -0
  782. package/dist/signals/ports/index.d.ts +15 -0
  783. package/dist/signals/ports/index.js +13 -0
  784. package/dist/signals/public/index.d.ts +15 -0
  785. package/dist/signals/public/index.js +16 -0
  786. package/package.json +14 -3
  787. package/dist/agent/agent.tools.d.ts.map +0 -1
  788. package/dist/agent/agent.tools.js.map +0 -1
  789. package/dist/agent/tests/fakes.d.ts +0 -25
  790. package/dist/agent/tests/fakes.d.ts.map +0 -1
  791. package/dist/agent/tests/fakes.js +0 -178
  792. package/dist/agent/tests/fakes.js.map +0 -1
  793. package/dist/chat/chat-streaming.types.d.ts.map +0 -1
  794. package/dist/chat/chat-streaming.types.js.map +0 -1
  795. package/dist/chat/chat.agent.d.ts.map +0 -1
  796. package/dist/chat/chat.agent.js.map +0 -1
  797. package/dist/chat/chat.graph.d.ts.map +0 -1
  798. package/dist/chat/chat.graph.js.map +0 -1
  799. package/dist/chat/chat.interrupt.classifier.d.ts.map +0 -1
  800. package/dist/chat/chat.interrupt.classifier.js.map +0 -1
  801. package/dist/chat/chat.persona.d.ts.map +0 -1
  802. package/dist/chat/chat.persona.js.map +0 -1
  803. package/dist/chat/chat.prompt.d.ts.map +0 -1
  804. package/dist/chat/chat.prompt.js.map +0 -1
  805. package/dist/chat/chat.prompt.modules.d.ts.map +0 -1
  806. package/dist/chat/chat.prompt.modules.js.map +0 -1
  807. package/dist/chat/chat.question-dedup.d.ts.map +0 -1
  808. package/dist/chat/chat.question-dedup.js.map +0 -1
  809. package/dist/chat/chat.state.d.ts.map +0 -1
  810. package/dist/chat/chat.state.js.map +0 -1
  811. package/dist/chat/chat.streamer.d.ts.map +0 -1
  812. package/dist/chat/chat.streamer.js.map +0 -1
  813. package/dist/chat/chat.suggester.d.ts.map +0 -1
  814. package/dist/chat/chat.suggester.js.map +0 -1
  815. package/dist/chat/chat.summarizer.d.ts.map +0 -1
  816. package/dist/chat/chat.summarizer.js.map +0 -1
  817. package/dist/chat/chat.title.generator.d.ts.map +0 -1
  818. package/dist/chat/chat.title.generator.js.map +0 -1
  819. package/dist/chat/chat.tools.d.ts.map +0 -1
  820. package/dist/chat/chat.tools.js.map +0 -1
  821. package/dist/chat/chat.utils.d.ts.map +0 -1
  822. package/dist/chat/chat.utils.js.map +0 -1
  823. package/dist/chat/negotiator.persona.d.ts.map +0 -1
  824. package/dist/chat/negotiator.persona.js.map +0 -1
  825. package/dist/chat/negotiator.prompt.d.ts.map +0 -1
  826. package/dist/chat/negotiator.prompt.js.map +0 -1
  827. package/dist/chat/negotiator.tools.d.ts.map +0 -1
  828. package/dist/chat/negotiator.tools.js.map +0 -1
  829. package/dist/chat/onboarding.persona.d.ts.map +0 -1
  830. package/dist/chat/onboarding.persona.js.map +0 -1
  831. package/dist/chat/onboarding.prompt.d.ts.map +0 -1
  832. package/dist/chat/onboarding.prompt.js.map +0 -1
  833. package/dist/chat/reporter.action.tools.d.ts.map +0 -1
  834. package/dist/chat/reporter.action.tools.js.map +0 -1
  835. package/dist/chat/reporter.persona.d.ts.map +0 -1
  836. package/dist/chat/reporter.persona.js.map +0 -1
  837. package/dist/chat/reporter.prompt.d.ts.map +0 -1
  838. package/dist/chat/reporter.prompt.js.map +0 -1
  839. package/dist/chat/signal.persona.d.ts.map +0 -1
  840. package/dist/chat/signal.persona.js.map +0 -1
  841. package/dist/chat/signal.prompt.d.ts.map +0 -1
  842. package/dist/chat/signal.prompt.js.map +0 -1
  843. package/dist/chat/tests/chat.graph.mocks.d.ts +0 -98
  844. package/dist/chat/tests/chat.graph.mocks.d.ts.map +0 -1
  845. package/dist/chat/tests/chat.graph.mocks.js +0 -225
  846. package/dist/chat/tests/chat.graph.mocks.js.map +0 -1
  847. package/dist/contact/contact.inviter.d.ts.map +0 -1
  848. package/dist/contact/contact.inviter.js.map +0 -1
  849. package/dist/contact/contact.tools.d.ts.map +0 -1
  850. package/dist/contact/contact.tools.js.map +0 -1
  851. package/dist/context/context.generator.d.ts.map +0 -1
  852. package/dist/context/context.generator.js.map +0 -1
  853. package/dist/enrichment/enrichment.enricher.d.ts.map +0 -1
  854. package/dist/enrichment/enrichment.enricher.js.map +0 -1
  855. package/dist/enrichment/enrichment.generator.d.ts.map +0 -1
  856. package/dist/enrichment/enrichment.generator.js.map +0 -1
  857. package/dist/enrichment/enrichment.graph.d.ts.map +0 -1
  858. package/dist/enrichment/enrichment.graph.js.map +0 -1
  859. package/dist/enrichment/enrichment.state.d.ts.map +0 -1
  860. package/dist/enrichment/enrichment.state.js.map +0 -1
  861. package/dist/enrichment/enrichment.tools.d.ts.map +0 -1
  862. package/dist/enrichment/enrichment.tools.js.map +0 -1
  863. package/dist/index.d.ts.map +0 -1
  864. package/dist/index.js.map +0 -1
  865. package/dist/integration/integration.tools.d.ts.map +0 -1
  866. package/dist/integration/integration.tools.js.map +0 -1
  867. package/dist/intent/intent.clarifier.d.ts.map +0 -1
  868. package/dist/intent/intent.clarifier.js.map +0 -1
  869. package/dist/intent/intent.graph.d.ts.map +0 -1
  870. package/dist/intent/intent.graph.js.map +0 -1
  871. package/dist/intent/intent.indexer.d.ts.map +0 -1
  872. package/dist/intent/intent.indexer.js.map +0 -1
  873. package/dist/intent/intent.inferrer.d.ts.map +0 -1
  874. package/dist/intent/intent.inferrer.js.map +0 -1
  875. package/dist/intent/intent.reconciler.d.ts.map +0 -1
  876. package/dist/intent/intent.reconciler.js.map +0 -1
  877. package/dist/intent/intent.specificity.d.ts.map +0 -1
  878. package/dist/intent/intent.specificity.js.map +0 -1
  879. package/dist/intent/intent.state.d.ts.map +0 -1
  880. package/dist/intent/intent.state.js.map +0 -1
  881. package/dist/intent/intent.tools.d.ts.map +0 -1
  882. package/dist/intent/intent.tools.js.map +0 -1
  883. package/dist/intent/intent.verifier.d.ts.map +0 -1
  884. package/dist/intent/intent.verifier.js.map +0 -1
  885. package/dist/maintenance/maintenance.graph.d.ts.map +0 -1
  886. package/dist/maintenance/maintenance.graph.js.map +0 -1
  887. package/dist/maintenance/maintenance.state.d.ts.map +0 -1
  888. package/dist/maintenance/maintenance.state.js.map +0 -1
  889. package/dist/mcp/elicitation.builder.d.ts.map +0 -1
  890. package/dist/mcp/elicitation.builder.js.map +0 -1
  891. package/dist/mcp/elicitation.dispatcher.d.ts.map +0 -1
  892. package/dist/mcp/elicitation.dispatcher.js.map +0 -1
  893. package/dist/mcp/mcp.server.d.ts.map +0 -1
  894. package/dist/mcp/mcp.server.js.map +0 -1
  895. package/dist/negotiation/insight.generator.d.ts.map +0 -1
  896. package/dist/negotiation/insight.generator.js.map +0 -1
  897. package/dist/negotiation/negotiation.agent.d.ts.map +0 -1
  898. package/dist/negotiation/negotiation.agent.js.map +0 -1
  899. package/dist/negotiation/negotiation.attribution.d.ts.map +0 -1
  900. package/dist/negotiation/negotiation.attribution.js.map +0 -1
  901. package/dist/negotiation/negotiation.consultation-policy.d.ts.map +0 -1
  902. package/dist/negotiation/negotiation.consultation-policy.js.map +0 -1
  903. package/dist/negotiation/negotiation.deadlock.d.ts.map +0 -1
  904. package/dist/negotiation/negotiation.deadlock.js.map +0 -1
  905. package/dist/negotiation/negotiation.graph.d.ts.map +0 -1
  906. package/dist/negotiation/negotiation.graph.js.map +0 -1
  907. package/dist/negotiation/negotiation.memory.d.ts.map +0 -1
  908. package/dist/negotiation/negotiation.memory.js.map +0 -1
  909. package/dist/negotiation/negotiation.protocol.d.ts.map +0 -1
  910. package/dist/negotiation/negotiation.protocol.js.map +0 -1
  911. package/dist/negotiation/negotiation.question-safety.d.ts.map +0 -1
  912. package/dist/negotiation/negotiation.question-safety.js.map +0 -1
  913. package/dist/negotiation/negotiation.reflect.d.ts.map +0 -1
  914. package/dist/negotiation/negotiation.reflect.js.map +0 -1
  915. package/dist/negotiation/negotiation.screen.d.ts.map +0 -1
  916. package/dist/negotiation/negotiation.screen.js.map +0 -1
  917. package/dist/negotiation/negotiation.state.d.ts.map +0 -1
  918. package/dist/negotiation/negotiation.state.js.map +0 -1
  919. package/dist/negotiation/negotiation.summarizer.d.ts.map +0 -1
  920. package/dist/negotiation/negotiation.summarizer.js.map +0 -1
  921. package/dist/negotiation/negotiation.tools.d.ts.map +0 -1
  922. package/dist/negotiation/negotiation.tools.js.map +0 -1
  923. package/dist/network/indexer/indexer.graph.d.ts.map +0 -1
  924. package/dist/network/indexer/indexer.graph.js.map +0 -1
  925. package/dist/network/indexer/indexer.state.d.ts.map +0 -1
  926. package/dist/network/indexer/indexer.state.js.map +0 -1
  927. package/dist/network/membership/membership.graph.d.ts.map +0 -1
  928. package/dist/network/membership/membership.graph.js.map +0 -1
  929. package/dist/network/membership/membership.state.d.ts.map +0 -1
  930. package/dist/network/membership/membership.state.js.map +0 -1
  931. package/dist/network/network.graph.d.ts.map +0 -1
  932. package/dist/network/network.graph.js.map +0 -1
  933. package/dist/network/network.recommender.d.ts.map +0 -1
  934. package/dist/network/network.recommender.js.map +0 -1
  935. package/dist/network/network.state.d.ts.map +0 -1
  936. package/dist/network/network.state.js.map +0 -1
  937. package/dist/network/network.tools.d.ts.map +0 -1
  938. package/dist/network/network.tools.js.map +0 -1
  939. package/dist/opportunity/delivery-card.cache.d.ts.map +0 -1
  940. package/dist/opportunity/delivery-card.cache.js.map +0 -1
  941. package/dist/opportunity/discovery-question.helper.d.ts.map +0 -1
  942. package/dist/opportunity/discovery-question.helper.js.map +0 -1
  943. package/dist/opportunity/discriminator/discriminator.adjustments.d.ts.map +0 -1
  944. package/dist/opportunity/discriminator/discriminator.adjustments.js.map +0 -1
  945. package/dist/opportunity/discriminator/discriminator.assigner.d.ts.map +0 -1
  946. package/dist/opportunity/discriminator/discriminator.assigner.js.map +0 -1
  947. package/dist/opportunity/discriminator/discriminator.env.d.ts.map +0 -1
  948. package/dist/opportunity/discriminator/discriminator.env.js.map +0 -1
  949. package/dist/opportunity/discriminator/discriminator.miner.d.ts.map +0 -1
  950. package/dist/opportunity/discriminator/discriminator.miner.js.map +0 -1
  951. package/dist/opportunity/discriminator/discriminator.push.d.ts.map +0 -1
  952. package/dist/opportunity/discriminator/discriminator.push.js.map +0 -1
  953. package/dist/opportunity/discriminator/discriminator.question.d.ts.map +0 -1
  954. package/dist/opportunity/discriminator/discriminator.question.js.map +0 -1
  955. package/dist/opportunity/discriminator/discriminator.scorer.d.ts.map +0 -1
  956. package/dist/opportunity/discriminator/discriminator.scorer.js.map +0 -1
  957. package/dist/opportunity/discriminator/discriminator.shadow.d.ts.map +0 -1
  958. package/dist/opportunity/discriminator/discriminator.shadow.js.map +0 -1
  959. package/dist/opportunity/discriminator/discriminator.types.d.ts.map +0 -1
  960. package/dist/opportunity/discriminator/discriminator.types.js.map +0 -1
  961. package/dist/opportunity/feed/feed.categorizer.d.ts.map +0 -1
  962. package/dist/opportunity/feed/feed.categorizer.js.map +0 -1
  963. package/dist/opportunity/feed/feed.graph.d.ts.map +0 -1
  964. package/dist/opportunity/feed/feed.graph.js.map +0 -1
  965. package/dist/opportunity/feed/feed.health.d.ts.map +0 -1
  966. package/dist/opportunity/feed/feed.health.js.map +0 -1
  967. package/dist/opportunity/feed/feed.state.d.ts.map +0 -1
  968. package/dist/opportunity/feed/feed.state.js.map +0 -1
  969. package/dist/opportunity/negotiation-context.loader.d.ts.map +0 -1
  970. package/dist/opportunity/negotiation-context.loader.js.map +0 -1
  971. package/dist/opportunity/negotiation-evidence/negotiation-evidence.env.d.ts.map +0 -1
  972. package/dist/opportunity/negotiation-evidence/negotiation-evidence.env.js.map +0 -1
  973. package/dist/opportunity/negotiation-evidence/negotiation-evidence.extractor.d.ts.map +0 -1
  974. package/dist/opportunity/negotiation-evidence/negotiation-evidence.extractor.js.map +0 -1
  975. package/dist/opportunity/negotiation-evidence/negotiation-evidence.miner.d.ts.map +0 -1
  976. package/dist/opportunity/negotiation-evidence/negotiation-evidence.miner.js.map +0 -1
  977. package/dist/opportunity/negotiation-evidence/negotiation-evidence.shadow.d.ts.map +0 -1
  978. package/dist/opportunity/negotiation-evidence/negotiation-evidence.shadow.js.map +0 -1
  979. package/dist/opportunity/negotiation-evidence/negotiation-evidence.types.d.ts.map +0 -1
  980. package/dist/opportunity/negotiation-evidence/negotiation-evidence.types.js.map +0 -1
  981. package/dist/opportunity/negotiation-evidence/negotiation-evidence.verifier.d.ts.map +0 -1
  982. package/dist/opportunity/negotiation-evidence/negotiation-evidence.verifier.js.map +0 -1
  983. package/dist/opportunity/negotiation-summary.builder.d.ts.map +0 -1
  984. package/dist/opportunity/negotiation-summary.builder.js.map +0 -1
  985. package/dist/opportunity/opportunity.actor.d.ts.map +0 -1
  986. package/dist/opportunity/opportunity.actor.js.map +0 -1
  987. package/dist/opportunity/opportunity.claim-safety.d.ts.map +0 -1
  988. package/dist/opportunity/opportunity.claim-safety.js.map +0 -1
  989. package/dist/opportunity/opportunity.discover.d.ts.map +0 -1
  990. package/dist/opportunity/opportunity.discover.js.map +0 -1
  991. package/dist/opportunity/opportunity.enricher.d.ts.map +0 -1
  992. package/dist/opportunity/opportunity.enricher.js.map +0 -1
  993. package/dist/opportunity/opportunity.evaluator.d.ts.map +0 -1
  994. package/dist/opportunity/opportunity.evaluator.js.map +0 -1
  995. package/dist/opportunity/opportunity.evidence.d.ts.map +0 -1
  996. package/dist/opportunity/opportunity.evidence.js.map +0 -1
  997. package/dist/opportunity/opportunity.graph.d.ts.map +0 -1
  998. package/dist/opportunity/opportunity.graph.js.map +0 -1
  999. package/dist/opportunity/opportunity.introducer.d.ts.map +0 -1
  1000. package/dist/opportunity/opportunity.introducer.js.map +0 -1
  1001. package/dist/opportunity/opportunity.labels.d.ts.map +0 -1
  1002. package/dist/opportunity/opportunity.labels.js.map +0 -1
  1003. package/dist/opportunity/opportunity.pending-questions.d.ts.map +0 -1
  1004. package/dist/opportunity/opportunity.pending-questions.js.map +0 -1
  1005. package/dist/opportunity/opportunity.persist.d.ts.map +0 -1
  1006. package/dist/opportunity/opportunity.persist.js.map +0 -1
  1007. package/dist/opportunity/opportunity.presentation-cache.d.ts.map +0 -1
  1008. package/dist/opportunity/opportunity.presentation-cache.js.map +0 -1
  1009. package/dist/opportunity/opportunity.presentation.d.ts.map +0 -1
  1010. package/dist/opportunity/opportunity.presentation.js.map +0 -1
  1011. package/dist/opportunity/opportunity.presenter.d.ts.map +0 -1
  1012. package/dist/opportunity/opportunity.presenter.js.map +0 -1
  1013. package/dist/opportunity/opportunity.safe-presentation.d.ts.map +0 -1
  1014. package/dist/opportunity/opportunity.safe-presentation.js.map +0 -1
  1015. package/dist/opportunity/opportunity.state.d.ts.map +0 -1
  1016. package/dist/opportunity/opportunity.state.js.map +0 -1
  1017. package/dist/opportunity/opportunity.tools.d.ts.map +0 -1
  1018. package/dist/opportunity/opportunity.tools.js.map +0 -1
  1019. package/dist/opportunity/opportunity.utils.d.ts.map +0 -1
  1020. package/dist/opportunity/opportunity.utils.js.map +0 -1
  1021. package/dist/opportunity/outcome/outcome.env.d.ts.map +0 -1
  1022. package/dist/opportunity/outcome/outcome.env.js.map +0 -1
  1023. package/dist/opportunity/outcome/outcome.hypotheses.d.ts.map +0 -1
  1024. package/dist/opportunity/outcome/outcome.hypotheses.js.map +0 -1
  1025. package/dist/opportunity/outcome/outcome.shadow.d.ts.map +0 -1
  1026. package/dist/opportunity/outcome/outcome.shadow.js.map +0 -1
  1027. package/dist/opportunity/outcome/outcome.types.d.ts.map +0 -1
  1028. package/dist/opportunity/outcome/outcome.types.js.map +0 -1
  1029. package/dist/premise/premise.analyzer.d.ts.map +0 -1
  1030. package/dist/premise/premise.analyzer.js.map +0 -1
  1031. package/dist/premise/premise.decomposer.d.ts.map +0 -1
  1032. package/dist/premise/premise.decomposer.js.map +0 -1
  1033. package/dist/premise/premise.graph.d.ts.map +0 -1
  1034. package/dist/premise/premise.graph.js.map +0 -1
  1035. package/dist/premise/premise.indexer.d.ts.map +0 -1
  1036. package/dist/premise/premise.indexer.js.map +0 -1
  1037. package/dist/premise/premise.state.d.ts.map +0 -1
  1038. package/dist/premise/premise.state.js.map +0 -1
  1039. package/dist/premise/premise.tools.d.ts.map +0 -1
  1040. package/dist/premise/premise.tools.js.map +0 -1
  1041. package/dist/questioner/questioner.agent.d.ts.map +0 -1
  1042. package/dist/questioner/questioner.agent.js.map +0 -1
  1043. package/dist/questioner/questioner.ask.tool.d.ts.map +0 -1
  1044. package/dist/questioner/questioner.ask.tool.js.map +0 -1
  1045. package/dist/questioner/questioner.discovery.prompt.d.ts.map +0 -1
  1046. package/dist/questioner/questioner.discovery.prompt.js.map +0 -1
  1047. package/dist/questioner/questioner.env.d.ts.map +0 -1
  1048. package/dist/questioner/questioner.env.js.map +0 -1
  1049. package/dist/questioner/questioner.presets.d.ts.map +0 -1
  1050. package/dist/questioner/questioner.presets.js.map +0 -1
  1051. package/dist/questioner/questioner.qud.d.ts.map +0 -1
  1052. package/dist/questioner/questioner.qud.js.map +0 -1
  1053. package/dist/questioner/questioner.tools.d.ts.map +0 -1
  1054. package/dist/questioner/questioner.tools.js.map +0 -1
  1055. package/dist/questioner/questioner.types.d.ts.map +0 -1
  1056. package/dist/questioner/questioner.types.js.map +0 -1
  1057. package/dist/shared/agent/model-signal.d.ts.map +0 -1
  1058. package/dist/shared/agent/model-signal.js.map +0 -1
  1059. package/dist/shared/agent/model.config.d.ts.map +0 -1
  1060. package/dist/shared/agent/model.config.js.map +0 -1
  1061. package/dist/shared/agent/tests/llm-assert.d.ts +0 -11
  1062. package/dist/shared/agent/tests/llm-assert.d.ts.map +0 -1
  1063. package/dist/shared/agent/tests/llm-assert.js +0 -43
  1064. package/dist/shared/agent/tests/llm-assert.js.map +0 -1
  1065. package/dist/shared/agent/tool.factory.d.ts.map +0 -1
  1066. package/dist/shared/agent/tool.factory.js.map +0 -1
  1067. package/dist/shared/agent/tool.helpers.d.ts.map +0 -1
  1068. package/dist/shared/agent/tool.helpers.js.map +0 -1
  1069. package/dist/shared/agent/tool.registry.d.ts.map +0 -1
  1070. package/dist/shared/agent/tool.registry.js.map +0 -1
  1071. package/dist/shared/agent/tool.runtime.d.ts.map +0 -1
  1072. package/dist/shared/agent/tool.runtime.js.map +0 -1
  1073. package/dist/shared/agent/tool.scope.d.ts.map +0 -1
  1074. package/dist/shared/agent/tool.scope.js.map +0 -1
  1075. package/dist/shared/agent/utility.tools.d.ts.map +0 -1
  1076. package/dist/shared/agent/utility.tools.js.map +0 -1
  1077. package/dist/shared/assignment/network-assignment.policy.d.ts.map +0 -1
  1078. package/dist/shared/assignment/network-assignment.policy.js.map +0 -1
  1079. package/dist/shared/hyde/hyde.documents.d.ts.map +0 -1
  1080. package/dist/shared/hyde/hyde.documents.js.map +0 -1
  1081. package/dist/shared/hyde/hyde.env.d.ts.map +0 -1
  1082. package/dist/shared/hyde/hyde.env.js.map +0 -1
  1083. package/dist/shared/hyde/hyde.frame.d.ts.map +0 -1
  1084. package/dist/shared/hyde/hyde.frame.js.map +0 -1
  1085. package/dist/shared/hyde/hyde.generator.d.ts.map +0 -1
  1086. package/dist/shared/hyde/hyde.generator.js.map +0 -1
  1087. package/dist/shared/hyde/hyde.graph.d.ts.map +0 -1
  1088. package/dist/shared/hyde/hyde.graph.js.map +0 -1
  1089. package/dist/shared/hyde/hyde.state.d.ts.map +0 -1
  1090. package/dist/shared/hyde/hyde.state.js.map +0 -1
  1091. package/dist/shared/hyde/hyde.strategies.d.ts.map +0 -1
  1092. package/dist/shared/hyde/hyde.strategies.js.map +0 -1
  1093. package/dist/shared/hyde/hyde.validator.d.ts.map +0 -1
  1094. package/dist/shared/hyde/hyde.validator.js.map +0 -1
  1095. package/dist/shared/hyde/lens.inferrer.d.ts.map +0 -1
  1096. package/dist/shared/hyde/lens.inferrer.js.map +0 -1
  1097. package/dist/shared/interfaces/agent-dispatcher.interface.d.ts.map +0 -1
  1098. package/dist/shared/interfaces/agent-dispatcher.interface.js.map +0 -1
  1099. package/dist/shared/interfaces/agent.interface.d.ts.map +0 -1
  1100. package/dist/shared/interfaces/agent.interface.js.map +0 -1
  1101. package/dist/shared/interfaces/auth.interface.d.ts.map +0 -1
  1102. package/dist/shared/interfaces/auth.interface.js.map +0 -1
  1103. package/dist/shared/interfaces/cache.interface.d.ts.map +0 -1
  1104. package/dist/shared/interfaces/cache.interface.js.map +0 -1
  1105. package/dist/shared/interfaces/chat-message-writer.interface.d.ts.map +0 -1
  1106. package/dist/shared/interfaces/chat-message-writer.interface.js.map +0 -1
  1107. package/dist/shared/interfaces/chat-session.interface.d.ts.map +0 -1
  1108. package/dist/shared/interfaces/chat-session.interface.js.map +0 -1
  1109. package/dist/shared/interfaces/chat-summary.interface.d.ts.map +0 -1
  1110. package/dist/shared/interfaces/chat-summary.interface.js.map +0 -1
  1111. package/dist/shared/interfaces/connect-link.interface.d.ts.map +0 -1
  1112. package/dist/shared/interfaces/connect-link.interface.js.map +0 -1
  1113. package/dist/shared/interfaces/contact.interface.d.ts.map +0 -1
  1114. package/dist/shared/interfaces/contact.interface.js.map +0 -1
  1115. package/dist/shared/interfaces/database.interface.d.ts.map +0 -1
  1116. package/dist/shared/interfaces/database.interface.js.map +0 -1
  1117. package/dist/shared/interfaces/delivery-ledger.interface.d.ts.map +0 -1
  1118. package/dist/shared/interfaces/delivery-ledger.interface.js.map +0 -1
  1119. package/dist/shared/interfaces/discovery-run.interface.d.ts.map +0 -1
  1120. package/dist/shared/interfaces/discovery-run.interface.js.map +0 -1
  1121. package/dist/shared/interfaces/embedder.interface.d.ts.map +0 -1
  1122. package/dist/shared/interfaces/embedder.interface.js.map +0 -1
  1123. package/dist/shared/interfaces/enrichment-run.interface.d.ts.map +0 -1
  1124. package/dist/shared/interfaces/enrichment-run.interface.js.map +0 -1
  1125. package/dist/shared/interfaces/enrichment.interface.d.ts.map +0 -1
  1126. package/dist/shared/interfaces/enrichment.interface.js.map +0 -1
  1127. package/dist/shared/interfaces/integration.interface.d.ts.map +0 -1
  1128. package/dist/shared/interfaces/integration.interface.js.map +0 -1
  1129. package/dist/shared/interfaces/negotiation-events.interface.d.ts.map +0 -1
  1130. package/dist/shared/interfaces/negotiation-events.interface.js.map +0 -1
  1131. package/dist/shared/interfaces/negotiation-summary.interface.d.ts.map +0 -1
  1132. package/dist/shared/interfaces/negotiation-summary.interface.js.map +0 -1
  1133. package/dist/shared/interfaces/negotiator-memory.interface.d.ts.map +0 -1
  1134. package/dist/shared/interfaces/negotiator-memory.interface.js.map +0 -1
  1135. package/dist/shared/interfaces/question-generator.interface.d.ts.map +0 -1
  1136. package/dist/shared/interfaces/question-generator.interface.js.map +0 -1
  1137. package/dist/shared/interfaces/questioner.interface.d.ts.map +0 -1
  1138. package/dist/shared/interfaces/questioner.interface.js.map +0 -1
  1139. package/dist/shared/interfaces/queue.interface.d.ts.map +0 -1
  1140. package/dist/shared/interfaces/queue.interface.js.map +0 -1
  1141. package/dist/shared/interfaces/scraper.interface.d.ts.map +0 -1
  1142. package/dist/shared/interfaces/scraper.interface.js.map +0 -1
  1143. package/dist/shared/network/metadata.renderer.d.ts.map +0 -1
  1144. package/dist/shared/network/metadata.renderer.js.map +0 -1
  1145. package/dist/shared/observability/debug-meta.sanitizer.d.ts.map +0 -1
  1146. package/dist/shared/observability/debug-meta.sanitizer.js.map +0 -1
  1147. package/dist/shared/observability/log.d.ts.map +0 -1
  1148. package/dist/shared/observability/log.js.map +0 -1
  1149. package/dist/shared/observability/performance.d.ts.map +0 -1
  1150. package/dist/shared/observability/performance.js.map +0 -1
  1151. package/dist/shared/observability/protocol.logger.d.ts.map +0 -1
  1152. package/dist/shared/observability/protocol.logger.js.map +0 -1
  1153. package/dist/shared/observability/request-context.d.ts.map +0 -1
  1154. package/dist/shared/observability/request-context.js.map +0 -1
  1155. package/dist/shared/observability/trace.d.ts.map +0 -1
  1156. package/dist/shared/observability/trace.js.map +0 -1
  1157. package/dist/shared/schemas/chat-context.schema.d.ts.map +0 -1
  1158. package/dist/shared/schemas/chat-context.schema.js.map +0 -1
  1159. package/dist/shared/schemas/discovery-question.schema.d.ts.map +0 -1
  1160. package/dist/shared/schemas/discovery-question.schema.js.map +0 -1
  1161. package/dist/shared/schemas/identity.schema.d.ts.map +0 -1
  1162. package/dist/shared/schemas/identity.schema.js.map +0 -1
  1163. package/dist/shared/schemas/mcp-auth.schema.d.ts.map +0 -1
  1164. package/dist/shared/schemas/mcp-auth.schema.js.map +0 -1
  1165. package/dist/shared/schemas/negotiation-digest.schema.d.ts.map +0 -1
  1166. package/dist/shared/schemas/negotiation-digest.schema.js.map +0 -1
  1167. package/dist/shared/schemas/negotiation-state.schema.d.ts.map +0 -1
  1168. package/dist/shared/schemas/negotiation-state.schema.js.map +0 -1
  1169. package/dist/shared/schemas/network-assignment.schema.d.ts.map +0 -1
  1170. package/dist/shared/schemas/network-assignment.schema.js.map +0 -1
  1171. package/dist/shared/schemas/pending-question.schema.d.ts.map +0 -1
  1172. package/dist/shared/schemas/pending-question.schema.js.map +0 -1
  1173. package/dist/shared/schemas/question.schema.d.ts.map +0 -1
  1174. package/dist/shared/schemas/question.schema.js.map +0 -1
  1175. package/dist/shared/ui/lucide.icon-catalog.d.ts.map +0 -1
  1176. package/dist/shared/ui/lucide.icon-catalog.js.map +0 -1
  1177. package/dist/shared/utils/social-label.d.ts.map +0 -1
  1178. package/dist/shared/utils/social-label.js.map +0 -1
  1179. package/dist/shared/utils/telegram-handle.d.ts.map +0 -1
  1180. package/dist/shared/utils/telegram-handle.js.map +0 -1
@@ -1,1537 +1,5 @@
1
1
  /**
2
- * Question public structured shape consumed by frontend renderers and MCP
3
- * elicitation dispatch. Mirrors the brainstorming AskUserQuestion skill so a
4
- * Question can be rendered identically across surfaces.
5
- *
6
- * `QuestionWithStrategy` extends the public shape with internal `strategy`
7
- * and QUD underspecification tags used by generator guardrails and persisted
8
- * metadata. Both tags are stripped before the public payload leaves the
9
- * generator — users never see them.
2
+ * @deprecated Canonical location: questions/domain/question.schema retained
3
+ * for backward compatibility (IND-547).
10
4
  */
11
- import { z } from "zod";
12
- export declare const QuestionOptionSchema: z.ZodObject<{
13
- /** Display text. Suffix " (Recommended)" on the safest path; list it first. */
14
- label: z.ZodString;
15
- /** Explains the consequence of choosing this option, not just its definition. */
16
- description: z.ZodString;
17
- }, "strip", z.ZodTypeAny, {
18
- label: string;
19
- description: string;
20
- }, {
21
- label: string;
22
- description: string;
23
- }>;
24
- export declare const QuestionSchema: z.ZodObject<{
25
- /** ≤12 chars. Noun of the decision domain — e.g. "Stage", "Timing", "Role". */
26
- title: z.ZodString;
27
- /** ≤2 sentences, ≤400 chars. Ends in a question mark. */
28
- prompt: z.ZodString;
29
- /** 2–4 options. No explicit "Other" — clients provide that automatically. */
30
- options: z.ZodArray<z.ZodObject<{
31
- /** Display text. Suffix " (Recommended)" on the safest path; list it first. */
32
- label: z.ZodString;
33
- /** Explains the consequence of choosing this option, not just its definition. */
34
- description: z.ZodString;
35
- }, "strip", z.ZodTypeAny, {
36
- label: string;
37
- description: string;
38
- }, {
39
- label: string;
40
- description: string;
41
- }>, "many">;
42
- /** True when options are not mutually exclusive (priorities, bundles). */
43
- multiSelect: z.ZodBoolean;
44
- /**
45
- * Optional provenance line rendered as a muted chip above the prompt
46
- * (e.g. "based on 18 people matching this intent"). Aggregate counts only —
47
- * never individual identities (pool_discovery k-anonymity invariant).
48
- *
49
- * Declared `.nullable().optional()` (not bare `.optional()`) so the schema
50
- * survives OpenAI/OpenRouter strict structured-output conversion, which
51
- * rejects optional-without-nullable fields (see createStructuredModel in the
52
- * questioner agent). The `.transform()` normalizes an LLM-returned `null`
53
- * back to `undefined` so a null is NEVER persisted or treated as
54
- * "evidence present": real string evidence flows through unchanged, while
55
- * both `null` and omitted read as absent everywhere downstream
56
- * (e.g. the intent-recovery `!question.evidence` selection filter and the
57
- * pool_discovery provenance chip).
58
- */
59
- evidence: z.ZodEffects<z.ZodOptional<z.ZodNullable<z.ZodString>>, string | undefined, string | null | undefined>;
60
- }, "strip", z.ZodTypeAny, {
61
- prompt: string;
62
- options: {
63
- label: string;
64
- description: string;
65
- }[];
66
- title: string;
67
- multiSelect: boolean;
68
- evidence?: string | undefined;
69
- }, {
70
- prompt: string;
71
- options: {
72
- label: string;
73
- description: string;
74
- }[];
75
- title: string;
76
- multiSelect: boolean;
77
- evidence?: string | null | undefined;
78
- }>;
79
- /** Canonical QUD repair categories for underspecified intents/questions. */
80
- export declare const UnderspecificationTypeSchema: z.ZodEnum<["missing_constituent", "missing_constraint", "open_alternative_set"]>;
81
- export declare const QuestionStrategySchema: z.ZodEnum<["refine_intent", "surface_missing_detail", "open_adjacent_thread", "reflective_summary", "surface_emergent_knowledge"]>;
82
- export declare const QuestionWithStrategySchema: z.ZodObject<{
83
- /** ≤12 chars. Noun of the decision domain — e.g. "Stage", "Timing", "Role". */
84
- title: z.ZodString;
85
- /** ≤2 sentences, ≤400 chars. Ends in a question mark. */
86
- prompt: z.ZodString;
87
- /** 2–4 options. No explicit "Other" — clients provide that automatically. */
88
- options: z.ZodArray<z.ZodObject<{
89
- /** Display text. Suffix " (Recommended)" on the safest path; list it first. */
90
- label: z.ZodString;
91
- /** Explains the consequence of choosing this option, not just its definition. */
92
- description: z.ZodString;
93
- }, "strip", z.ZodTypeAny, {
94
- label: string;
95
- description: string;
96
- }, {
97
- label: string;
98
- description: string;
99
- }>, "many">;
100
- /** True when options are not mutually exclusive (priorities, bundles). */
101
- multiSelect: z.ZodBoolean;
102
- /**
103
- * Optional provenance line rendered as a muted chip above the prompt
104
- * (e.g. "based on 18 people matching this intent"). Aggregate counts only —
105
- * never individual identities (pool_discovery k-anonymity invariant).
106
- *
107
- * Declared `.nullable().optional()` (not bare `.optional()`) so the schema
108
- * survives OpenAI/OpenRouter strict structured-output conversion, which
109
- * rejects optional-without-nullable fields (see createStructuredModel in the
110
- * questioner agent). The `.transform()` normalizes an LLM-returned `null`
111
- * back to `undefined` so a null is NEVER persisted or treated as
112
- * "evidence present": real string evidence flows through unchanged, while
113
- * both `null` and omitted read as absent everywhere downstream
114
- * (e.g. the intent-recovery `!question.evidence` selection filter and the
115
- * pool_discovery provenance chip).
116
- */
117
- evidence: z.ZodEffects<z.ZodOptional<z.ZodNullable<z.ZodString>>, string | undefined, string | null | undefined>;
118
- } & {
119
- strategy: z.ZodEnum<["refine_intent", "surface_missing_detail", "open_adjacent_thread", "reflective_summary", "surface_emergent_knowledge"]>;
120
- /** QUD repair category, or null when the question is not an underspecification repair. */
121
- underspecificationType: z.ZodNullable<z.ZodEnum<["missing_constituent", "missing_constraint", "open_alternative_set"]>>;
122
- }, "strip", z.ZodTypeAny, {
123
- prompt: string;
124
- options: {
125
- label: string;
126
- description: string;
127
- }[];
128
- title: string;
129
- multiSelect: boolean;
130
- strategy: "refine_intent" | "surface_missing_detail" | "open_adjacent_thread" | "reflective_summary" | "surface_emergent_knowledge";
131
- underspecificationType: "missing_constituent" | "missing_constraint" | "open_alternative_set" | null;
132
- evidence?: string | undefined;
133
- }, {
134
- prompt: string;
135
- options: {
136
- label: string;
137
- description: string;
138
- }[];
139
- title: string;
140
- multiSelect: boolean;
141
- strategy: "refine_intent" | "surface_missing_detail" | "open_adjacent_thread" | "reflective_summary" | "surface_emergent_knowledge";
142
- underspecificationType: "missing_constituent" | "missing_constraint" | "open_alternative_set" | null;
143
- evidence?: string | null | undefined;
144
- }>;
145
- export declare const QuestionGeneratorResponseSchema: z.ZodObject<{
146
- questions: z.ZodArray<z.ZodObject<{
147
- /** ≤12 chars. Noun of the decision domain — e.g. "Stage", "Timing", "Role". */
148
- title: z.ZodString;
149
- /** ≤2 sentences, ≤400 chars. Ends in a question mark. */
150
- prompt: z.ZodString;
151
- /** 2–4 options. No explicit "Other" — clients provide that automatically. */
152
- options: z.ZodArray<z.ZodObject<{
153
- /** Display text. Suffix " (Recommended)" on the safest path; list it first. */
154
- label: z.ZodString;
155
- /** Explains the consequence of choosing this option, not just its definition. */
156
- description: z.ZodString;
157
- }, "strip", z.ZodTypeAny, {
158
- label: string;
159
- description: string;
160
- }, {
161
- label: string;
162
- description: string;
163
- }>, "many">;
164
- /** True when options are not mutually exclusive (priorities, bundles). */
165
- multiSelect: z.ZodBoolean;
166
- /**
167
- * Optional provenance line rendered as a muted chip above the prompt
168
- * (e.g. "based on 18 people matching this intent"). Aggregate counts only —
169
- * never individual identities (pool_discovery k-anonymity invariant).
170
- *
171
- * Declared `.nullable().optional()` (not bare `.optional()`) so the schema
172
- * survives OpenAI/OpenRouter strict structured-output conversion, which
173
- * rejects optional-without-nullable fields (see createStructuredModel in the
174
- * questioner agent). The `.transform()` normalizes an LLM-returned `null`
175
- * back to `undefined` so a null is NEVER persisted or treated as
176
- * "evidence present": real string evidence flows through unchanged, while
177
- * both `null` and omitted read as absent everywhere downstream
178
- * (e.g. the intent-recovery `!question.evidence` selection filter and the
179
- * pool_discovery provenance chip).
180
- */
181
- evidence: z.ZodEffects<z.ZodOptional<z.ZodNullable<z.ZodString>>, string | undefined, string | null | undefined>;
182
- } & {
183
- strategy: z.ZodEnum<["refine_intent", "surface_missing_detail", "open_adjacent_thread", "reflective_summary", "surface_emergent_knowledge"]>;
184
- /** QUD repair category, or null when the question is not an underspecification repair. */
185
- underspecificationType: z.ZodNullable<z.ZodEnum<["missing_constituent", "missing_constraint", "open_alternative_set"]>>;
186
- }, "strip", z.ZodTypeAny, {
187
- prompt: string;
188
- options: {
189
- label: string;
190
- description: string;
191
- }[];
192
- title: string;
193
- multiSelect: boolean;
194
- strategy: "refine_intent" | "surface_missing_detail" | "open_adjacent_thread" | "reflective_summary" | "surface_emergent_knowledge";
195
- underspecificationType: "missing_constituent" | "missing_constraint" | "open_alternative_set" | null;
196
- evidence?: string | undefined;
197
- }, {
198
- prompt: string;
199
- options: {
200
- label: string;
201
- description: string;
202
- }[];
203
- title: string;
204
- multiSelect: boolean;
205
- strategy: "refine_intent" | "surface_missing_detail" | "open_adjacent_thread" | "reflective_summary" | "surface_emergent_knowledge";
206
- underspecificationType: "missing_constituent" | "missing_constraint" | "open_alternative_set" | null;
207
- evidence?: string | null | undefined;
208
- }>, "many">;
209
- }, "strip", z.ZodTypeAny, {
210
- questions: {
211
- prompt: string;
212
- options: {
213
- label: string;
214
- description: string;
215
- }[];
216
- title: string;
217
- multiSelect: boolean;
218
- strategy: "refine_intent" | "surface_missing_detail" | "open_adjacent_thread" | "reflective_summary" | "surface_emergent_knowledge";
219
- underspecificationType: "missing_constituent" | "missing_constraint" | "open_alternative_set" | null;
220
- evidence?: string | undefined;
221
- }[];
222
- }, {
223
- questions: {
224
- prompt: string;
225
- options: {
226
- label: string;
227
- description: string;
228
- }[];
229
- title: string;
230
- multiSelect: boolean;
231
- strategy: "refine_intent" | "surface_missing_detail" | "open_adjacent_thread" | "reflective_summary" | "surface_emergent_knowledge";
232
- underspecificationType: "missing_constituent" | "missing_constraint" | "open_alternative_set" | null;
233
- evidence?: string | null | undefined;
234
- }[];
235
- }>;
236
- export type QuestionOption = z.infer<typeof QuestionOptionSchema>;
237
- export type Question = z.infer<typeof QuestionSchema>;
238
- export type UnderspecificationType = z.infer<typeof UnderspecificationTypeSchema>;
239
- export type QuestionStrategy = z.infer<typeof QuestionStrategySchema>;
240
- export type QuestionWithStrategy = z.infer<typeof QuestionWithStrategySchema>;
241
- export type QuestionGeneratorResponse = z.infer<typeof QuestionGeneratorResponseSchema>;
242
- /**
243
- * Internal generator output: public questions plus parallel strategy and QUD
244
- * taxonomy arrays for metadata-only consumption. The generator emits this;
245
- * callers forward only `questions` to renderers.
246
- */
247
- export interface QuestionGenerationResult {
248
- questions: Question[];
249
- strategies: QuestionStrategy[];
250
- underspecificationTypes: Array<UnderspecificationType | null>;
251
- }
252
- /** Internal reason a question was generated, orthogonal to mode and QUD metadata. */
253
- export declare const NegotiationQuestionPurposeSchema: z.ZodEnum<["uptake", "stalled_followup", "inflight_consultation"]>;
254
- export declare const QuestionPurposeSchema: z.ZodEnum<["uptake", "recovery", "stalled_followup", "inflight_consultation"]>;
255
- /**
256
- * Producer-supplied candidate binding. The API re-resolves every field from
257
- * authoritative rows before generation; callers cannot mint provenance.
258
- */
259
- export declare const NegotiationQuestionCandidateSchema: z.ZodEffects<z.ZodObject<{
260
- purpose: z.ZodEnum<["uptake", "stalled_followup", "inflight_consultation"]>;
261
- recipientUserId: z.ZodString;
262
- recipientIntentId: z.ZodString;
263
- opportunityId: z.ZodString;
264
- taskId: z.ZodOptional<z.ZodString>;
265
- networkId: z.ZodString;
266
- /** Uptake only: exact low-authority counterparty eligibility binding. */
267
- counterpartyUserId: z.ZodOptional<z.ZodString>;
268
- counterpartyIntentId: z.ZodOptional<z.ZodString>;
269
- counterpartyFelicityAuthority: z.ZodOptional<z.ZodNumber>;
270
- }, "strip", z.ZodTypeAny, {
271
- networkId: string;
272
- purpose: "uptake" | "stalled_followup" | "inflight_consultation";
273
- recipientUserId: string;
274
- recipientIntentId: string;
275
- opportunityId: string;
276
- taskId?: string | undefined;
277
- counterpartyUserId?: string | undefined;
278
- counterpartyIntentId?: string | undefined;
279
- counterpartyFelicityAuthority?: number | undefined;
280
- }, {
281
- networkId: string;
282
- purpose: "uptake" | "stalled_followup" | "inflight_consultation";
283
- recipientUserId: string;
284
- recipientIntentId: string;
285
- opportunityId: string;
286
- taskId?: string | undefined;
287
- counterpartyUserId?: string | undefined;
288
- counterpartyIntentId?: string | undefined;
289
- counterpartyFelicityAuthority?: number | undefined;
290
- }>, {
291
- networkId: string;
292
- purpose: "uptake" | "stalled_followup" | "inflight_consultation";
293
- recipientUserId: string;
294
- recipientIntentId: string;
295
- opportunityId: string;
296
- taskId?: string | undefined;
297
- counterpartyUserId?: string | undefined;
298
- counterpartyIntentId?: string | undefined;
299
- counterpartyFelicityAuthority?: number | undefined;
300
- }, {
301
- networkId: string;
302
- purpose: "uptake" | "stalled_followup" | "inflight_consultation";
303
- recipientUserId: string;
304
- recipientIntentId: string;
305
- opportunityId: string;
306
- taskId?: string | undefined;
307
- counterpartyUserId?: string | undefined;
308
- counterpartyIntentId?: string | undefined;
309
- counterpartyFelicityAuthority?: number | undefined;
310
- }>;
311
- /**
312
- * Durable server-only routing and freshness envelope for negotiation-family
313
- * questions. This object is stripped from every REST/MCP projection.
314
- */
315
- export declare const NegotiationQuestionProvenanceSchema: z.ZodEffects<z.ZodObject<{
316
- version: z.ZodLiteral<1>;
317
- purpose: z.ZodEnum<["uptake", "stalled_followup", "inflight_consultation"]>;
318
- recipientUserId: z.ZodString;
319
- recipientIntentId: z.ZodString;
320
- opportunityId: z.ZodString;
321
- taskId: z.ZodOptional<z.ZodString>;
322
- networkId: z.ZodString;
323
- intentFingerprint: z.ZodString;
324
- opportunityStatus: z.ZodEnum<["latent", "draft", "negotiating", "pending", "stalled", "accepted", "rejected", "expired"]>;
325
- opportunityUpdatedAt: z.ZodString;
326
- taskState: z.ZodOptional<z.ZodEnum<["submitted", "working", "input_required", "completed", "canceled", "failed", "rejected", "auth_required", "waiting_for_agent", "claimed"]>>;
327
- taskUpdatedAt: z.ZodOptional<z.ZodString>;
328
- /** Uptake only: exact low-authority counterparty eligibility binding. */
329
- counterpartyUserId: z.ZodOptional<z.ZodString>;
330
- counterpartyIntentId: z.ZodOptional<z.ZodString>;
331
- counterpartyFelicityAuthority: z.ZodOptional<z.ZodNumber>;
332
- /** Stable per-generation position so retries dedupe without reducing cardinality. */
333
- questionOrdinal: z.ZodNumber;
334
- }, "strip", z.ZodTypeAny, {
335
- networkId: string;
336
- purpose: "uptake" | "stalled_followup" | "inflight_consultation";
337
- recipientUserId: string;
338
- recipientIntentId: string;
339
- opportunityId: string;
340
- version: 1;
341
- intentFingerprint: string;
342
- opportunityStatus: "latent" | "draft" | "negotiating" | "pending" | "stalled" | "accepted" | "rejected" | "expired";
343
- opportunityUpdatedAt: string;
344
- questionOrdinal: number;
345
- taskId?: string | undefined;
346
- counterpartyUserId?: string | undefined;
347
- counterpartyIntentId?: string | undefined;
348
- counterpartyFelicityAuthority?: number | undefined;
349
- taskState?: "rejected" | "waiting_for_agent" | "input_required" | "completed" | "failed" | "submitted" | "working" | "canceled" | "auth_required" | "claimed" | undefined;
350
- taskUpdatedAt?: string | undefined;
351
- }, {
352
- networkId: string;
353
- purpose: "uptake" | "stalled_followup" | "inflight_consultation";
354
- recipientUserId: string;
355
- recipientIntentId: string;
356
- opportunityId: string;
357
- version: 1;
358
- intentFingerprint: string;
359
- opportunityStatus: "latent" | "draft" | "negotiating" | "pending" | "stalled" | "accepted" | "rejected" | "expired";
360
- opportunityUpdatedAt: string;
361
- questionOrdinal: number;
362
- taskId?: string | undefined;
363
- counterpartyUserId?: string | undefined;
364
- counterpartyIntentId?: string | undefined;
365
- counterpartyFelicityAuthority?: number | undefined;
366
- taskState?: "rejected" | "waiting_for_agent" | "input_required" | "completed" | "failed" | "submitted" | "working" | "canceled" | "auth_required" | "claimed" | undefined;
367
- taskUpdatedAt?: string | undefined;
368
- }>, {
369
- networkId: string;
370
- purpose: "uptake" | "stalled_followup" | "inflight_consultation";
371
- recipientUserId: string;
372
- recipientIntentId: string;
373
- opportunityId: string;
374
- version: 1;
375
- intentFingerprint: string;
376
- opportunityStatus: "latent" | "draft" | "negotiating" | "pending" | "stalled" | "accepted" | "rejected" | "expired";
377
- opportunityUpdatedAt: string;
378
- questionOrdinal: number;
379
- taskId?: string | undefined;
380
- counterpartyUserId?: string | undefined;
381
- counterpartyIntentId?: string | undefined;
382
- counterpartyFelicityAuthority?: number | undefined;
383
- taskState?: "rejected" | "waiting_for_agent" | "input_required" | "completed" | "failed" | "submitted" | "working" | "canceled" | "auth_required" | "claimed" | undefined;
384
- taskUpdatedAt?: string | undefined;
385
- }, {
386
- networkId: string;
387
- purpose: "uptake" | "stalled_followup" | "inflight_consultation";
388
- recipientUserId: string;
389
- recipientIntentId: string;
390
- opportunityId: string;
391
- version: 1;
392
- intentFingerprint: string;
393
- opportunityStatus: "latent" | "draft" | "negotiating" | "pending" | "stalled" | "accepted" | "rejected" | "expired";
394
- opportunityUpdatedAt: string;
395
- questionOrdinal: number;
396
- taskId?: string | undefined;
397
- counterpartyUserId?: string | undefined;
398
- counterpartyIntentId?: string | undefined;
399
- counterpartyFelicityAuthority?: number | undefined;
400
- taskState?: "rejected" | "waiting_for_agent" | "input_required" | "completed" | "failed" | "submitted" | "working" | "canceled" | "auth_required" | "claimed" | undefined;
401
- taskUpdatedAt?: string | undefined;
402
- }>;
403
- export declare const QuestionModeSchema: z.ZodEnum<["discovery", "intent", "enrichment", "negotiation", "negotiation_inflight", "chat", "pool_discovery"]>;
404
- /** One server-side candidate→side assignment (never serialized to clients). */
405
- export declare const QuestionPoolAssignmentSchema: z.ZodObject<{
406
- opportunityId: z.ZodString;
407
- side: z.ZodString;
408
- }, "strip", z.ZodTypeAny, {
409
- opportunityId: string;
410
- side: string;
411
- }, {
412
- opportunityId: string;
413
- side: string;
414
- }>;
415
- /**
416
- * One mined discriminator carried inside a pool_discovery question's
417
- * detection (the asked one plus ranked alternates for interview-mode
418
- * chaining). INTERNAL — the read path strips `detection.pool` before any
419
- * payload leaves the server.
420
- */
421
- export declare const QuestionPoolDiscriminatorSchema: z.ZodObject<{
422
- label: z.ZodString;
423
- questionSeed: z.ZodString;
424
- sides: z.ZodArray<z.ZodString, "many">;
425
- /** Verified-assignment count per side label. */
426
- sideCounts: z.ZodRecord<z.ZodString, z.ZodNumber>;
427
- voi: z.ZodNumber;
428
- evidenceRate: z.ZodNumber;
429
- /** Discriminator embedding retained for durable semantic novelty checks. */
430
- embedding: z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>;
431
- /** Model that generated `embedding`; mismatches must fall back to text. */
432
- embeddingModel: z.ZodOptional<z.ZodString>;
433
- /** Verified assignments only — the P3 re-rank input. */
434
- assignments: z.ZodArray<z.ZodObject<{
435
- opportunityId: z.ZodString;
436
- side: z.ZodString;
437
- }, "strip", z.ZodTypeAny, {
438
- opportunityId: string;
439
- side: string;
440
- }, {
441
- opportunityId: string;
442
- side: string;
443
- }>, "many">;
444
- }, "strip", z.ZodTypeAny, {
445
- label: string;
446
- questionSeed: string;
447
- sides: string[];
448
- sideCounts: Record<string, number>;
449
- voi: number;
450
- evidenceRate: number;
451
- assignments: {
452
- opportunityId: string;
453
- side: string;
454
- }[];
455
- embedding?: number[] | undefined;
456
- embeddingModel?: string | undefined;
457
- }, {
458
- label: string;
459
- questionSeed: string;
460
- sides: string[];
461
- sideCounts: Record<string, number>;
462
- voi: number;
463
- evidenceRate: number;
464
- assignments: {
465
- opportunityId: string;
466
- side: string;
467
- }[];
468
- embedding?: number[] | undefined;
469
- embeddingModel?: string | undefined;
470
- }>;
471
- /** Pool snapshot stored on pool_discovery questions (server-side only). */
472
- export declare const QuestionPoolSnapshotSchema: z.ZodObject<{
473
- poolSize: z.ZodNumber;
474
- /** ISO-8601 timestamp of the mining pass. */
475
- minedAt: z.ZodString;
476
- /** Discovery run that produced the pool, when known. */
477
- runId: z.ZodOptional<z.ZodString>;
478
- /** Intent payload snippet (≤160 chars) — reused by chained questions' evidence chips. */
479
- intentText: z.ZodOptional<z.ZodString>;
480
- /** Stable hash of the full normalized payload + summary used for freshness. */
481
- intentFingerprint: z.ZodOptional<z.ZodString>;
482
- /** Exact bounded candidate pool. Optional for legacy rows/jobs created before IND-422. */
483
- opportunityIds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
484
- /** The discriminator this question asks about. */
485
- discriminator: z.ZodObject<{
486
- label: z.ZodString;
487
- questionSeed: z.ZodString;
488
- sides: z.ZodArray<z.ZodString, "many">;
489
- /** Verified-assignment count per side label. */
490
- sideCounts: z.ZodRecord<z.ZodString, z.ZodNumber>;
491
- voi: z.ZodNumber;
492
- evidenceRate: z.ZodNumber;
493
- /** Discriminator embedding retained for durable semantic novelty checks. */
494
- embedding: z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>;
495
- /** Model that generated `embedding`; mismatches must fall back to text. */
496
- embeddingModel: z.ZodOptional<z.ZodString>;
497
- /** Verified assignments only — the P3 re-rank input. */
498
- assignments: z.ZodArray<z.ZodObject<{
499
- opportunityId: z.ZodString;
500
- side: z.ZodString;
501
- }, "strip", z.ZodTypeAny, {
502
- opportunityId: string;
503
- side: string;
504
- }, {
505
- opportunityId: string;
506
- side: string;
507
- }>, "many">;
508
- }, "strip", z.ZodTypeAny, {
509
- label: string;
510
- questionSeed: string;
511
- sides: string[];
512
- sideCounts: Record<string, number>;
513
- voi: number;
514
- evidenceRate: number;
515
- assignments: {
516
- opportunityId: string;
517
- side: string;
518
- }[];
519
- embedding?: number[] | undefined;
520
- embeddingModel?: string | undefined;
521
- }, {
522
- label: string;
523
- questionSeed: string;
524
- sides: string[];
525
- sideCounts: Record<string, number>;
526
- voi: number;
527
- evidenceRate: number;
528
- assignments: {
529
- opportunityId: string;
530
- side: string;
531
- }[];
532
- embedding?: number[] | undefined;
533
- embeddingModel?: string | undefined;
534
- }>;
535
- /** Remaining ranked discriminators for interview-mode chaining. */
536
- alternates: z.ZodArray<z.ZodObject<{
537
- label: z.ZodString;
538
- questionSeed: z.ZodString;
539
- sides: z.ZodArray<z.ZodString, "many">;
540
- /** Verified-assignment count per side label. */
541
- sideCounts: z.ZodRecord<z.ZodString, z.ZodNumber>;
542
- voi: z.ZodNumber;
543
- evidenceRate: z.ZodNumber;
544
- /** Discriminator embedding retained for durable semantic novelty checks. */
545
- embedding: z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>;
546
- /** Model that generated `embedding`; mismatches must fall back to text. */
547
- embeddingModel: z.ZodOptional<z.ZodString>;
548
- /** Verified assignments only — the P3 re-rank input. */
549
- assignments: z.ZodArray<z.ZodObject<{
550
- opportunityId: z.ZodString;
551
- side: z.ZodString;
552
- }, "strip", z.ZodTypeAny, {
553
- opportunityId: string;
554
- side: string;
555
- }, {
556
- opportunityId: string;
557
- side: string;
558
- }>, "many">;
559
- }, "strip", z.ZodTypeAny, {
560
- label: string;
561
- questionSeed: string;
562
- sides: string[];
563
- sideCounts: Record<string, number>;
564
- voi: number;
565
- evidenceRate: number;
566
- assignments: {
567
- opportunityId: string;
568
- side: string;
569
- }[];
570
- embedding?: number[] | undefined;
571
- embeddingModel?: string | undefined;
572
- }, {
573
- label: string;
574
- questionSeed: string;
575
- sides: string[];
576
- sideCounts: Record<string, number>;
577
- voi: number;
578
- evidenceRate: number;
579
- assignments: {
580
- opportunityId: string;
581
- side: string;
582
- }[];
583
- embedding?: number[] | undefined;
584
- embeddingModel?: string | undefined;
585
- }>, "many">;
586
- }, "strip", z.ZodTypeAny, {
587
- poolSize: number;
588
- minedAt: string;
589
- discriminator: {
590
- label: string;
591
- questionSeed: string;
592
- sides: string[];
593
- sideCounts: Record<string, number>;
594
- voi: number;
595
- evidenceRate: number;
596
- assignments: {
597
- opportunityId: string;
598
- side: string;
599
- }[];
600
- embedding?: number[] | undefined;
601
- embeddingModel?: string | undefined;
602
- };
603
- alternates: {
604
- label: string;
605
- questionSeed: string;
606
- sides: string[];
607
- sideCounts: Record<string, number>;
608
- voi: number;
609
- evidenceRate: number;
610
- assignments: {
611
- opportunityId: string;
612
- side: string;
613
- }[];
614
- embedding?: number[] | undefined;
615
- embeddingModel?: string | undefined;
616
- }[];
617
- runId?: string | undefined;
618
- intentFingerprint?: string | undefined;
619
- intentText?: string | undefined;
620
- opportunityIds?: string[] | undefined;
621
- }, {
622
- poolSize: number;
623
- minedAt: string;
624
- discriminator: {
625
- label: string;
626
- questionSeed: string;
627
- sides: string[];
628
- sideCounts: Record<string, number>;
629
- voi: number;
630
- evidenceRate: number;
631
- assignments: {
632
- opportunityId: string;
633
- side: string;
634
- }[];
635
- embedding?: number[] | undefined;
636
- embeddingModel?: string | undefined;
637
- };
638
- alternates: {
639
- label: string;
640
- questionSeed: string;
641
- sides: string[];
642
- sideCounts: Record<string, number>;
643
- voi: number;
644
- evidenceRate: number;
645
- assignments: {
646
- opportunityId: string;
647
- side: string;
648
- }[];
649
- embedding?: number[] | undefined;
650
- embeddingModel?: string | undefined;
651
- }[];
652
- runId?: string | undefined;
653
- intentFingerprint?: string | undefined;
654
- intentText?: string | undefined;
655
- opportunityIds?: string[] | undefined;
656
- }>;
657
- /** Internal delivery ledger for proactive pool-question pushes (IND-421). */
658
- export declare const QuestionPoolPushSchema: z.ZodObject<{
659
- version: z.ZodLiteral<1>;
660
- source: z.ZodLiteral<"pool_discovery">;
661
- recipientId: z.ZodString;
662
- intentId: z.ZodString;
663
- cycleKey: z.ZodString;
664
- messageId: z.ZodString;
665
- surfaces: z.ZodTuple<[z.ZodLiteral<"personal_agent_badge">, z.ZodLiteral<"negotiator_dm">], null>;
666
- claimedAt: z.ZodString;
667
- deliveryStatus: z.ZodEnum<["claimed", "delivered", "suppressed", "failed"]>;
668
- conversationId: z.ZodOptional<z.ZodString>;
669
- deliveredAt: z.ZodOptional<z.ZodString>;
670
- suppressedAt: z.ZodOptional<z.ZodString>;
671
- failure: z.ZodOptional<z.ZodString>;
672
- }, "strip", z.ZodTypeAny, {
673
- source: "pool_discovery";
674
- intentId: string;
675
- version: 1;
676
- recipientId: string;
677
- cycleKey: string;
678
- messageId: string;
679
- surfaces: ["personal_agent_badge", "negotiator_dm"];
680
- claimedAt: string;
681
- deliveryStatus: "failed" | "claimed" | "delivered" | "suppressed";
682
- conversationId?: string | undefined;
683
- deliveredAt?: string | undefined;
684
- suppressedAt?: string | undefined;
685
- failure?: string | undefined;
686
- }, {
687
- source: "pool_discovery";
688
- intentId: string;
689
- version: 1;
690
- recipientId: string;
691
- cycleKey: string;
692
- messageId: string;
693
- surfaces: ["personal_agent_badge", "negotiator_dm"];
694
- claimedAt: string;
695
- deliveryStatus: "failed" | "claimed" | "delivered" | "suppressed";
696
- conversationId?: string | undefined;
697
- deliveredAt?: string | undefined;
698
- suppressedAt?: string | undefined;
699
- failure?: string | undefined;
700
- }>;
701
- /** Durable request state for proactive pool-question delivery. */
702
- export declare const QuestionPoolPushRequestStatusSchema: z.ZodEnum<["requested", "suppressed"]>;
703
- /** Private snapshot for a post-discovery recovery refinement question. */
704
- export declare const QuestionRecoverySnapshotSchema: z.ZodObject<{
705
- version: z.ZodLiteral<1>;
706
- intentFingerprint: z.ZodString;
707
- completionSource: z.ZodEnum<["intent_creation", "from_intent", "discovery_run"]>;
708
- /** Privacy-safe aggregate only; raw negotiation evidence is never persisted. */
709
- rejectedNegotiationCount: z.ZodOptional<z.ZodNumber>;
710
- /** Bounded internal correlation id for an asynchronous discovery run. */
711
- runId: z.ZodOptional<z.ZodString>;
712
- }, "strip", z.ZodTypeAny, {
713
- version: 1;
714
- intentFingerprint: string;
715
- completionSource: "intent_creation" | "from_intent" | "discovery_run";
716
- runId?: string | undefined;
717
- rejectedNegotiationCount?: number | undefined;
718
- }, {
719
- version: 1;
720
- intentFingerprint: string;
721
- completionSource: "intent_creation" | "from_intent" | "discovery_run";
722
- runId?: string | undefined;
723
- rejectedNegotiationCount?: number | undefined;
724
- }>;
725
- /** Internal reason a pending question was voided. */
726
- export declare const QuestionVoidedReasonSchema: z.ZodEnum<["pool_drift", "intent_edit", "recovery_drift", "negotiation_stale"]>;
727
- /** Permanent reasons that terminalize an unclaimed proactive push request. */
728
- export declare const QuestionPoolPushRequestReasonSchema: z.ZodEnum<["question_lifecycle", "intent_lifecycle", "malformed_source", "malformed_actor", "malformed_pool", "malformed_cycle", "visited", "pool_size", "voi", "cycle_budget"]>;
729
- export declare const QuestionDetectionSchema: z.ZodEffects<z.ZodObject<{
730
- /** Which preset mode generated this question. */
731
- mode: z.ZodEnum<["discovery", "intent", "enrichment", "negotiation", "negotiation_inflight", "chat", "pool_discovery"]>;
732
- /** Internal reason for generation; independent of mode and QUD repair metadata. */
733
- purpose: z.ZodOptional<z.ZodEnum<["uptake", "recovery", "stalled_followup", "inflight_consultation"]>>;
734
- /** Exact negotiation recipient/intent/task routing provenance. Internal only. */
735
- negotiation: z.ZodOptional<z.ZodEffects<z.ZodObject<{
736
- version: z.ZodLiteral<1>;
737
- purpose: z.ZodEnum<["uptake", "stalled_followup", "inflight_consultation"]>;
738
- recipientUserId: z.ZodString;
739
- recipientIntentId: z.ZodString;
740
- opportunityId: z.ZodString;
741
- taskId: z.ZodOptional<z.ZodString>;
742
- networkId: z.ZodString;
743
- intentFingerprint: z.ZodString;
744
- opportunityStatus: z.ZodEnum<["latent", "draft", "negotiating", "pending", "stalled", "accepted", "rejected", "expired"]>;
745
- opportunityUpdatedAt: z.ZodString;
746
- taskState: z.ZodOptional<z.ZodEnum<["submitted", "working", "input_required", "completed", "canceled", "failed", "rejected", "auth_required", "waiting_for_agent", "claimed"]>>;
747
- taskUpdatedAt: z.ZodOptional<z.ZodString>;
748
- /** Uptake only: exact low-authority counterparty eligibility binding. */
749
- counterpartyUserId: z.ZodOptional<z.ZodString>;
750
- counterpartyIntentId: z.ZodOptional<z.ZodString>;
751
- counterpartyFelicityAuthority: z.ZodOptional<z.ZodNumber>;
752
- /** Stable per-generation position so retries dedupe without reducing cardinality. */
753
- questionOrdinal: z.ZodNumber;
754
- }, "strip", z.ZodTypeAny, {
755
- networkId: string;
756
- purpose: "uptake" | "stalled_followup" | "inflight_consultation";
757
- recipientUserId: string;
758
- recipientIntentId: string;
759
- opportunityId: string;
760
- version: 1;
761
- intentFingerprint: string;
762
- opportunityStatus: "latent" | "draft" | "negotiating" | "pending" | "stalled" | "accepted" | "rejected" | "expired";
763
- opportunityUpdatedAt: string;
764
- questionOrdinal: number;
765
- taskId?: string | undefined;
766
- counterpartyUserId?: string | undefined;
767
- counterpartyIntentId?: string | undefined;
768
- counterpartyFelicityAuthority?: number | undefined;
769
- taskState?: "rejected" | "waiting_for_agent" | "input_required" | "completed" | "failed" | "submitted" | "working" | "canceled" | "auth_required" | "claimed" | undefined;
770
- taskUpdatedAt?: string | undefined;
771
- }, {
772
- networkId: string;
773
- purpose: "uptake" | "stalled_followup" | "inflight_consultation";
774
- recipientUserId: string;
775
- recipientIntentId: string;
776
- opportunityId: string;
777
- version: 1;
778
- intentFingerprint: string;
779
- opportunityStatus: "latent" | "draft" | "negotiating" | "pending" | "stalled" | "accepted" | "rejected" | "expired";
780
- opportunityUpdatedAt: string;
781
- questionOrdinal: number;
782
- taskId?: string | undefined;
783
- counterpartyUserId?: string | undefined;
784
- counterpartyIntentId?: string | undefined;
785
- counterpartyFelicityAuthority?: number | undefined;
786
- taskState?: "rejected" | "waiting_for_agent" | "input_required" | "completed" | "failed" | "submitted" | "working" | "canceled" | "auth_required" | "claimed" | undefined;
787
- taskUpdatedAt?: string | undefined;
788
- }>, {
789
- networkId: string;
790
- purpose: "uptake" | "stalled_followup" | "inflight_consultation";
791
- recipientUserId: string;
792
- recipientIntentId: string;
793
- opportunityId: string;
794
- version: 1;
795
- intentFingerprint: string;
796
- opportunityStatus: "latent" | "draft" | "negotiating" | "pending" | "stalled" | "accepted" | "rejected" | "expired";
797
- opportunityUpdatedAt: string;
798
- questionOrdinal: number;
799
- taskId?: string | undefined;
800
- counterpartyUserId?: string | undefined;
801
- counterpartyIntentId?: string | undefined;
802
- counterpartyFelicityAuthority?: number | undefined;
803
- taskState?: "rejected" | "waiting_for_agent" | "input_required" | "completed" | "failed" | "submitted" | "working" | "canceled" | "auth_required" | "claimed" | undefined;
804
- taskUpdatedAt?: string | undefined;
805
- }, {
806
- networkId: string;
807
- purpose: "uptake" | "stalled_followup" | "inflight_consultation";
808
- recipientUserId: string;
809
- recipientIntentId: string;
810
- opportunityId: string;
811
- version: 1;
812
- intentFingerprint: string;
813
- opportunityStatus: "latent" | "draft" | "negotiating" | "pending" | "stalled" | "accepted" | "rejected" | "expired";
814
- opportunityUpdatedAt: string;
815
- questionOrdinal: number;
816
- taskId?: string | undefined;
817
- counterpartyUserId?: string | undefined;
818
- counterpartyIntentId?: string | undefined;
819
- counterpartyFelicityAuthority?: number | undefined;
820
- taskState?: "rejected" | "waiting_for_agent" | "input_required" | "completed" | "failed" | "submitted" | "working" | "canceled" | "auth_required" | "claimed" | undefined;
821
- taskUpdatedAt?: string | undefined;
822
- }>>;
823
- /** Entity type that triggered generation (e.g. "opportunity", "intent", "profile"). */
824
- sourceType: z.ZodString;
825
- /** ID of the triggering entity. */
826
- sourceId: z.ZodString;
827
- /** Optional intent ID that was the root cause. */
828
- triggeredBy: z.ZodOptional<z.ZodString>;
829
- /** ISO-8601 timestamp of generation. */
830
- timestamp: z.ZodString;
831
- /** Generation strategy persisted as internal metadata. */
832
- strategy: z.ZodOptional<z.ZodEnum<["refine_intent", "surface_missing_detail", "open_adjacent_thread", "reflective_summary", "surface_emergent_knowledge"]>>;
833
- /** QUD repair category persisted as internal metadata. */
834
- underspecificationType: z.ZodOptional<z.ZodNullable<z.ZodEnum<["missing_constituent", "missing_constraint", "open_alternative_set"]>>>;
835
- /** ID of the assistant message that triggered this question. Used by the frontend to anchor the question card inline. */
836
- messageId: z.ZodOptional<z.ZodString>;
837
- /** Durable server-only conversation session binding used to validate messageId. */
838
- sessionId: z.ZodOptional<z.ZodString>;
839
- /**
840
- * pool_discovery only: the mined pool snapshot (assignments + alternates).
841
- * INTERNAL — stripped from every client-facing read (web + MCP).
842
- */
843
- pool: z.ZodOptional<z.ZodObject<{
844
- poolSize: z.ZodNumber;
845
- /** ISO-8601 timestamp of the mining pass. */
846
- minedAt: z.ZodString;
847
- /** Discovery run that produced the pool, when known. */
848
- runId: z.ZodOptional<z.ZodString>;
849
- /** Intent payload snippet (≤160 chars) — reused by chained questions' evidence chips. */
850
- intentText: z.ZodOptional<z.ZodString>;
851
- /** Stable hash of the full normalized payload + summary used for freshness. */
852
- intentFingerprint: z.ZodOptional<z.ZodString>;
853
- /** Exact bounded candidate pool. Optional for legacy rows/jobs created before IND-422. */
854
- opportunityIds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
855
- /** The discriminator this question asks about. */
856
- discriminator: z.ZodObject<{
857
- label: z.ZodString;
858
- questionSeed: z.ZodString;
859
- sides: z.ZodArray<z.ZodString, "many">;
860
- /** Verified-assignment count per side label. */
861
- sideCounts: z.ZodRecord<z.ZodString, z.ZodNumber>;
862
- voi: z.ZodNumber;
863
- evidenceRate: z.ZodNumber;
864
- /** Discriminator embedding retained for durable semantic novelty checks. */
865
- embedding: z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>;
866
- /** Model that generated `embedding`; mismatches must fall back to text. */
867
- embeddingModel: z.ZodOptional<z.ZodString>;
868
- /** Verified assignments only — the P3 re-rank input. */
869
- assignments: z.ZodArray<z.ZodObject<{
870
- opportunityId: z.ZodString;
871
- side: z.ZodString;
872
- }, "strip", z.ZodTypeAny, {
873
- opportunityId: string;
874
- side: string;
875
- }, {
876
- opportunityId: string;
877
- side: string;
878
- }>, "many">;
879
- }, "strip", z.ZodTypeAny, {
880
- label: string;
881
- questionSeed: string;
882
- sides: string[];
883
- sideCounts: Record<string, number>;
884
- voi: number;
885
- evidenceRate: number;
886
- assignments: {
887
- opportunityId: string;
888
- side: string;
889
- }[];
890
- embedding?: number[] | undefined;
891
- embeddingModel?: string | undefined;
892
- }, {
893
- label: string;
894
- questionSeed: string;
895
- sides: string[];
896
- sideCounts: Record<string, number>;
897
- voi: number;
898
- evidenceRate: number;
899
- assignments: {
900
- opportunityId: string;
901
- side: string;
902
- }[];
903
- embedding?: number[] | undefined;
904
- embeddingModel?: string | undefined;
905
- }>;
906
- /** Remaining ranked discriminators for interview-mode chaining. */
907
- alternates: z.ZodArray<z.ZodObject<{
908
- label: z.ZodString;
909
- questionSeed: z.ZodString;
910
- sides: z.ZodArray<z.ZodString, "many">;
911
- /** Verified-assignment count per side label. */
912
- sideCounts: z.ZodRecord<z.ZodString, z.ZodNumber>;
913
- voi: z.ZodNumber;
914
- evidenceRate: z.ZodNumber;
915
- /** Discriminator embedding retained for durable semantic novelty checks. */
916
- embedding: z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>;
917
- /** Model that generated `embedding`; mismatches must fall back to text. */
918
- embeddingModel: z.ZodOptional<z.ZodString>;
919
- /** Verified assignments only — the P3 re-rank input. */
920
- assignments: z.ZodArray<z.ZodObject<{
921
- opportunityId: z.ZodString;
922
- side: z.ZodString;
923
- }, "strip", z.ZodTypeAny, {
924
- opportunityId: string;
925
- side: string;
926
- }, {
927
- opportunityId: string;
928
- side: string;
929
- }>, "many">;
930
- }, "strip", z.ZodTypeAny, {
931
- label: string;
932
- questionSeed: string;
933
- sides: string[];
934
- sideCounts: Record<string, number>;
935
- voi: number;
936
- evidenceRate: number;
937
- assignments: {
938
- opportunityId: string;
939
- side: string;
940
- }[];
941
- embedding?: number[] | undefined;
942
- embeddingModel?: string | undefined;
943
- }, {
944
- label: string;
945
- questionSeed: string;
946
- sides: string[];
947
- sideCounts: Record<string, number>;
948
- voi: number;
949
- evidenceRate: number;
950
- assignments: {
951
- opportunityId: string;
952
- side: string;
953
- }[];
954
- embedding?: number[] | undefined;
955
- embeddingModel?: string | undefined;
956
- }>, "many">;
957
- }, "strip", z.ZodTypeAny, {
958
- poolSize: number;
959
- minedAt: string;
960
- discriminator: {
961
- label: string;
962
- questionSeed: string;
963
- sides: string[];
964
- sideCounts: Record<string, number>;
965
- voi: number;
966
- evidenceRate: number;
967
- assignments: {
968
- opportunityId: string;
969
- side: string;
970
- }[];
971
- embedding?: number[] | undefined;
972
- embeddingModel?: string | undefined;
973
- };
974
- alternates: {
975
- label: string;
976
- questionSeed: string;
977
- sides: string[];
978
- sideCounts: Record<string, number>;
979
- voi: number;
980
- evidenceRate: number;
981
- assignments: {
982
- opportunityId: string;
983
- side: string;
984
- }[];
985
- embedding?: number[] | undefined;
986
- embeddingModel?: string | undefined;
987
- }[];
988
- runId?: string | undefined;
989
- intentFingerprint?: string | undefined;
990
- intentText?: string | undefined;
991
- opportunityIds?: string[] | undefined;
992
- }, {
993
- poolSize: number;
994
- minedAt: string;
995
- discriminator: {
996
- label: string;
997
- questionSeed: string;
998
- sides: string[];
999
- sideCounts: Record<string, number>;
1000
- voi: number;
1001
- evidenceRate: number;
1002
- assignments: {
1003
- opportunityId: string;
1004
- side: string;
1005
- }[];
1006
- embedding?: number[] | undefined;
1007
- embeddingModel?: string | undefined;
1008
- };
1009
- alternates: {
1010
- label: string;
1011
- questionSeed: string;
1012
- sides: string[];
1013
- sideCounts: Record<string, number>;
1014
- voi: number;
1015
- evidenceRate: number;
1016
- assignments: {
1017
- opportunityId: string;
1018
- side: string;
1019
- }[];
1020
- embedding?: number[] | undefined;
1021
- embeddingModel?: string | undefined;
1022
- }[];
1023
- runId?: string | undefined;
1024
- intentFingerprint?: string | undefined;
1025
- intentText?: string | undefined;
1026
- opportunityIds?: string[] | undefined;
1027
- }>>;
1028
- /** Post-discovery intent recovery snapshot. Internal only. */
1029
- recovery: z.ZodOptional<z.ZodObject<{
1030
- version: z.ZodLiteral<1>;
1031
- intentFingerprint: z.ZodString;
1032
- completionSource: z.ZodEnum<["intent_creation", "from_intent", "discovery_run"]>;
1033
- /** Privacy-safe aggregate only; raw negotiation evidence is never persisted. */
1034
- rejectedNegotiationCount: z.ZodOptional<z.ZodNumber>;
1035
- /** Bounded internal correlation id for an asynchronous discovery run. */
1036
- runId: z.ZodOptional<z.ZodString>;
1037
- }, "strip", z.ZodTypeAny, {
1038
- version: 1;
1039
- intentFingerprint: string;
1040
- completionSource: "intent_creation" | "from_intent" | "discovery_run";
1041
- runId?: string | undefined;
1042
- rejectedNegotiationCount?: number | undefined;
1043
- }, {
1044
- version: 1;
1045
- intentFingerprint: string;
1046
- completionSource: "intent_creation" | "from_intent" | "discovery_run";
1047
- runId?: string | undefined;
1048
- rejectedNegotiationCount?: number | undefined;
1049
- }>>;
1050
- /** Durable request marker written before enqueueing proactive delivery. Internal only. */
1051
- pushRequestedAt: z.ZodOptional<z.ZodString>;
1052
- /** Last bounded recovery sweep that selected this request. Internal only. */
1053
- pushRecoveryAttemptedAt: z.ZodOptional<z.ZodString>;
1054
- /** Durable request outcome. Internal only. */
1055
- pushRequestStatus: z.ZodOptional<z.ZodEnum<["requested", "suppressed"]>>;
1056
- /** Permanent suppression reason for an unclaimed request. Internal only. */
1057
- pushRequestReason: z.ZodOptional<z.ZodEnum<["question_lifecycle", "intent_lifecycle", "malformed_source", "malformed_actor", "malformed_pool", "malformed_cycle", "visited", "pool_size", "voi", "cycle_budget"]>>;
1058
- /** ISO-8601 timestamp at which an unclaimed request was suppressed. Internal only. */
1059
- pushRequestSuppressedAt: z.ZodOptional<z.ZodString>;
1060
- /** Internal proactive delivery state. Never serialize to public clients. */
1061
- push: z.ZodOptional<z.ZodObject<{
1062
- version: z.ZodLiteral<1>;
1063
- source: z.ZodLiteral<"pool_discovery">;
1064
- recipientId: z.ZodString;
1065
- intentId: z.ZodString;
1066
- cycleKey: z.ZodString;
1067
- messageId: z.ZodString;
1068
- surfaces: z.ZodTuple<[z.ZodLiteral<"personal_agent_badge">, z.ZodLiteral<"negotiator_dm">], null>;
1069
- claimedAt: z.ZodString;
1070
- deliveryStatus: z.ZodEnum<["claimed", "delivered", "suppressed", "failed"]>;
1071
- conversationId: z.ZodOptional<z.ZodString>;
1072
- deliveredAt: z.ZodOptional<z.ZodString>;
1073
- suppressedAt: z.ZodOptional<z.ZodString>;
1074
- failure: z.ZodOptional<z.ZodString>;
1075
- }, "strip", z.ZodTypeAny, {
1076
- source: "pool_discovery";
1077
- intentId: string;
1078
- version: 1;
1079
- recipientId: string;
1080
- cycleKey: string;
1081
- messageId: string;
1082
- surfaces: ["personal_agent_badge", "negotiator_dm"];
1083
- claimedAt: string;
1084
- deliveryStatus: "failed" | "claimed" | "delivered" | "suppressed";
1085
- conversationId?: string | undefined;
1086
- deliveredAt?: string | undefined;
1087
- suppressedAt?: string | undefined;
1088
- failure?: string | undefined;
1089
- }, {
1090
- source: "pool_discovery";
1091
- intentId: string;
1092
- version: 1;
1093
- recipientId: string;
1094
- cycleKey: string;
1095
- messageId: string;
1096
- surfaces: ["personal_agent_badge", "negotiator_dm"];
1097
- claimedAt: string;
1098
- deliveryStatus: "failed" | "claimed" | "delivered" | "suppressed";
1099
- conversationId?: string | undefined;
1100
- deliveredAt?: string | undefined;
1101
- suppressedAt?: string | undefined;
1102
- failure?: string | undefined;
1103
- }>>;
1104
- /** Internal reason this question was voided after pool or intent drift. */
1105
- voidedReason: z.ZodOptional<z.ZodEnum<["pool_drift", "intent_edit", "recovery_drift", "negotiation_stale"]>>;
1106
- /** Authoritative successful-delivery ledger timestamp. Internal only. */
1107
- pushedAt: z.ZodOptional<z.ZodString>;
1108
- }, "strip", z.ZodTypeAny, {
1109
- mode: "chat" | "intent" | "enrichment" | "discovery" | "negotiation" | "negotiation_inflight" | "pool_discovery";
1110
- sourceType: string;
1111
- sourceId: string;
1112
- timestamp: string;
1113
- push?: {
1114
- source: "pool_discovery";
1115
- intentId: string;
1116
- version: 1;
1117
- recipientId: string;
1118
- cycleKey: string;
1119
- messageId: string;
1120
- surfaces: ["personal_agent_badge", "negotiator_dm"];
1121
- claimedAt: string;
1122
- deliveryStatus: "failed" | "claimed" | "delivered" | "suppressed";
1123
- conversationId?: string | undefined;
1124
- deliveredAt?: string | undefined;
1125
- suppressedAt?: string | undefined;
1126
- failure?: string | undefined;
1127
- } | undefined;
1128
- strategy?: "refine_intent" | "surface_missing_detail" | "open_adjacent_thread" | "reflective_summary" | "surface_emergent_knowledge" | undefined;
1129
- underspecificationType?: "missing_constituent" | "missing_constraint" | "open_alternative_set" | null | undefined;
1130
- recovery?: {
1131
- version: 1;
1132
- intentFingerprint: string;
1133
- completionSource: "intent_creation" | "from_intent" | "discovery_run";
1134
- runId?: string | undefined;
1135
- rejectedNegotiationCount?: number | undefined;
1136
- } | undefined;
1137
- purpose?: "uptake" | "stalled_followup" | "inflight_consultation" | "recovery" | undefined;
1138
- negotiation?: {
1139
- networkId: string;
1140
- purpose: "uptake" | "stalled_followup" | "inflight_consultation";
1141
- recipientUserId: string;
1142
- recipientIntentId: string;
1143
- opportunityId: string;
1144
- version: 1;
1145
- intentFingerprint: string;
1146
- opportunityStatus: "latent" | "draft" | "negotiating" | "pending" | "stalled" | "accepted" | "rejected" | "expired";
1147
- opportunityUpdatedAt: string;
1148
- questionOrdinal: number;
1149
- taskId?: string | undefined;
1150
- counterpartyUserId?: string | undefined;
1151
- counterpartyIntentId?: string | undefined;
1152
- counterpartyFelicityAuthority?: number | undefined;
1153
- taskState?: "rejected" | "waiting_for_agent" | "input_required" | "completed" | "failed" | "submitted" | "working" | "canceled" | "auth_required" | "claimed" | undefined;
1154
- taskUpdatedAt?: string | undefined;
1155
- } | undefined;
1156
- messageId?: string | undefined;
1157
- triggeredBy?: string | undefined;
1158
- sessionId?: string | undefined;
1159
- pool?: {
1160
- poolSize: number;
1161
- minedAt: string;
1162
- discriminator: {
1163
- label: string;
1164
- questionSeed: string;
1165
- sides: string[];
1166
- sideCounts: Record<string, number>;
1167
- voi: number;
1168
- evidenceRate: number;
1169
- assignments: {
1170
- opportunityId: string;
1171
- side: string;
1172
- }[];
1173
- embedding?: number[] | undefined;
1174
- embeddingModel?: string | undefined;
1175
- };
1176
- alternates: {
1177
- label: string;
1178
- questionSeed: string;
1179
- sides: string[];
1180
- sideCounts: Record<string, number>;
1181
- voi: number;
1182
- evidenceRate: number;
1183
- assignments: {
1184
- opportunityId: string;
1185
- side: string;
1186
- }[];
1187
- embedding?: number[] | undefined;
1188
- embeddingModel?: string | undefined;
1189
- }[];
1190
- runId?: string | undefined;
1191
- intentFingerprint?: string | undefined;
1192
- intentText?: string | undefined;
1193
- opportunityIds?: string[] | undefined;
1194
- } | undefined;
1195
- pushRequestedAt?: string | undefined;
1196
- pushRecoveryAttemptedAt?: string | undefined;
1197
- pushRequestStatus?: "suppressed" | "requested" | undefined;
1198
- pushRequestReason?: "voi" | "question_lifecycle" | "intent_lifecycle" | "malformed_source" | "malformed_actor" | "malformed_pool" | "malformed_cycle" | "visited" | "pool_size" | "cycle_budget" | undefined;
1199
- pushRequestSuppressedAt?: string | undefined;
1200
- voidedReason?: "pool_drift" | "intent_edit" | "recovery_drift" | "negotiation_stale" | undefined;
1201
- pushedAt?: string | undefined;
1202
- }, {
1203
- mode: "chat" | "intent" | "enrichment" | "discovery" | "negotiation" | "negotiation_inflight" | "pool_discovery";
1204
- sourceType: string;
1205
- sourceId: string;
1206
- timestamp: string;
1207
- push?: {
1208
- source: "pool_discovery";
1209
- intentId: string;
1210
- version: 1;
1211
- recipientId: string;
1212
- cycleKey: string;
1213
- messageId: string;
1214
- surfaces: ["personal_agent_badge", "negotiator_dm"];
1215
- claimedAt: string;
1216
- deliveryStatus: "failed" | "claimed" | "delivered" | "suppressed";
1217
- conversationId?: string | undefined;
1218
- deliveredAt?: string | undefined;
1219
- suppressedAt?: string | undefined;
1220
- failure?: string | undefined;
1221
- } | undefined;
1222
- strategy?: "refine_intent" | "surface_missing_detail" | "open_adjacent_thread" | "reflective_summary" | "surface_emergent_knowledge" | undefined;
1223
- underspecificationType?: "missing_constituent" | "missing_constraint" | "open_alternative_set" | null | undefined;
1224
- recovery?: {
1225
- version: 1;
1226
- intentFingerprint: string;
1227
- completionSource: "intent_creation" | "from_intent" | "discovery_run";
1228
- runId?: string | undefined;
1229
- rejectedNegotiationCount?: number | undefined;
1230
- } | undefined;
1231
- purpose?: "uptake" | "stalled_followup" | "inflight_consultation" | "recovery" | undefined;
1232
- negotiation?: {
1233
- networkId: string;
1234
- purpose: "uptake" | "stalled_followup" | "inflight_consultation";
1235
- recipientUserId: string;
1236
- recipientIntentId: string;
1237
- opportunityId: string;
1238
- version: 1;
1239
- intentFingerprint: string;
1240
- opportunityStatus: "latent" | "draft" | "negotiating" | "pending" | "stalled" | "accepted" | "rejected" | "expired";
1241
- opportunityUpdatedAt: string;
1242
- questionOrdinal: number;
1243
- taskId?: string | undefined;
1244
- counterpartyUserId?: string | undefined;
1245
- counterpartyIntentId?: string | undefined;
1246
- counterpartyFelicityAuthority?: number | undefined;
1247
- taskState?: "rejected" | "waiting_for_agent" | "input_required" | "completed" | "failed" | "submitted" | "working" | "canceled" | "auth_required" | "claimed" | undefined;
1248
- taskUpdatedAt?: string | undefined;
1249
- } | undefined;
1250
- messageId?: string | undefined;
1251
- triggeredBy?: string | undefined;
1252
- sessionId?: string | undefined;
1253
- pool?: {
1254
- poolSize: number;
1255
- minedAt: string;
1256
- discriminator: {
1257
- label: string;
1258
- questionSeed: string;
1259
- sides: string[];
1260
- sideCounts: Record<string, number>;
1261
- voi: number;
1262
- evidenceRate: number;
1263
- assignments: {
1264
- opportunityId: string;
1265
- side: string;
1266
- }[];
1267
- embedding?: number[] | undefined;
1268
- embeddingModel?: string | undefined;
1269
- };
1270
- alternates: {
1271
- label: string;
1272
- questionSeed: string;
1273
- sides: string[];
1274
- sideCounts: Record<string, number>;
1275
- voi: number;
1276
- evidenceRate: number;
1277
- assignments: {
1278
- opportunityId: string;
1279
- side: string;
1280
- }[];
1281
- embedding?: number[] | undefined;
1282
- embeddingModel?: string | undefined;
1283
- }[];
1284
- runId?: string | undefined;
1285
- intentFingerprint?: string | undefined;
1286
- intentText?: string | undefined;
1287
- opportunityIds?: string[] | undefined;
1288
- } | undefined;
1289
- pushRequestedAt?: string | undefined;
1290
- pushRecoveryAttemptedAt?: string | undefined;
1291
- pushRequestStatus?: "suppressed" | "requested" | undefined;
1292
- pushRequestReason?: "voi" | "question_lifecycle" | "intent_lifecycle" | "malformed_source" | "malformed_actor" | "malformed_pool" | "malformed_cycle" | "visited" | "pool_size" | "cycle_budget" | undefined;
1293
- pushRequestSuppressedAt?: string | undefined;
1294
- voidedReason?: "pool_drift" | "intent_edit" | "recovery_drift" | "negotiation_stale" | undefined;
1295
- pushedAt?: string | undefined;
1296
- }>, {
1297
- mode: "chat" | "intent" | "enrichment" | "discovery" | "negotiation" | "negotiation_inflight" | "pool_discovery";
1298
- sourceType: string;
1299
- sourceId: string;
1300
- timestamp: string;
1301
- push?: {
1302
- source: "pool_discovery";
1303
- intentId: string;
1304
- version: 1;
1305
- recipientId: string;
1306
- cycleKey: string;
1307
- messageId: string;
1308
- surfaces: ["personal_agent_badge", "negotiator_dm"];
1309
- claimedAt: string;
1310
- deliveryStatus: "failed" | "claimed" | "delivered" | "suppressed";
1311
- conversationId?: string | undefined;
1312
- deliveredAt?: string | undefined;
1313
- suppressedAt?: string | undefined;
1314
- failure?: string | undefined;
1315
- } | undefined;
1316
- strategy?: "refine_intent" | "surface_missing_detail" | "open_adjacent_thread" | "reflective_summary" | "surface_emergent_knowledge" | undefined;
1317
- underspecificationType?: "missing_constituent" | "missing_constraint" | "open_alternative_set" | null | undefined;
1318
- recovery?: {
1319
- version: 1;
1320
- intentFingerprint: string;
1321
- completionSource: "intent_creation" | "from_intent" | "discovery_run";
1322
- runId?: string | undefined;
1323
- rejectedNegotiationCount?: number | undefined;
1324
- } | undefined;
1325
- purpose?: "uptake" | "stalled_followup" | "inflight_consultation" | "recovery" | undefined;
1326
- negotiation?: {
1327
- networkId: string;
1328
- purpose: "uptake" | "stalled_followup" | "inflight_consultation";
1329
- recipientUserId: string;
1330
- recipientIntentId: string;
1331
- opportunityId: string;
1332
- version: 1;
1333
- intentFingerprint: string;
1334
- opportunityStatus: "latent" | "draft" | "negotiating" | "pending" | "stalled" | "accepted" | "rejected" | "expired";
1335
- opportunityUpdatedAt: string;
1336
- questionOrdinal: number;
1337
- taskId?: string | undefined;
1338
- counterpartyUserId?: string | undefined;
1339
- counterpartyIntentId?: string | undefined;
1340
- counterpartyFelicityAuthority?: number | undefined;
1341
- taskState?: "rejected" | "waiting_for_agent" | "input_required" | "completed" | "failed" | "submitted" | "working" | "canceled" | "auth_required" | "claimed" | undefined;
1342
- taskUpdatedAt?: string | undefined;
1343
- } | undefined;
1344
- messageId?: string | undefined;
1345
- triggeredBy?: string | undefined;
1346
- sessionId?: string | undefined;
1347
- pool?: {
1348
- poolSize: number;
1349
- minedAt: string;
1350
- discriminator: {
1351
- label: string;
1352
- questionSeed: string;
1353
- sides: string[];
1354
- sideCounts: Record<string, number>;
1355
- voi: number;
1356
- evidenceRate: number;
1357
- assignments: {
1358
- opportunityId: string;
1359
- side: string;
1360
- }[];
1361
- embedding?: number[] | undefined;
1362
- embeddingModel?: string | undefined;
1363
- };
1364
- alternates: {
1365
- label: string;
1366
- questionSeed: string;
1367
- sides: string[];
1368
- sideCounts: Record<string, number>;
1369
- voi: number;
1370
- evidenceRate: number;
1371
- assignments: {
1372
- opportunityId: string;
1373
- side: string;
1374
- }[];
1375
- embedding?: number[] | undefined;
1376
- embeddingModel?: string | undefined;
1377
- }[];
1378
- runId?: string | undefined;
1379
- intentFingerprint?: string | undefined;
1380
- intentText?: string | undefined;
1381
- opportunityIds?: string[] | undefined;
1382
- } | undefined;
1383
- pushRequestedAt?: string | undefined;
1384
- pushRecoveryAttemptedAt?: string | undefined;
1385
- pushRequestStatus?: "suppressed" | "requested" | undefined;
1386
- pushRequestReason?: "voi" | "question_lifecycle" | "intent_lifecycle" | "malformed_source" | "malformed_actor" | "malformed_pool" | "malformed_cycle" | "visited" | "pool_size" | "cycle_budget" | undefined;
1387
- pushRequestSuppressedAt?: string | undefined;
1388
- voidedReason?: "pool_drift" | "intent_edit" | "recovery_drift" | "negotiation_stale" | undefined;
1389
- pushedAt?: string | undefined;
1390
- }, {
1391
- mode: "chat" | "intent" | "enrichment" | "discovery" | "negotiation" | "negotiation_inflight" | "pool_discovery";
1392
- sourceType: string;
1393
- sourceId: string;
1394
- timestamp: string;
1395
- push?: {
1396
- source: "pool_discovery";
1397
- intentId: string;
1398
- version: 1;
1399
- recipientId: string;
1400
- cycleKey: string;
1401
- messageId: string;
1402
- surfaces: ["personal_agent_badge", "negotiator_dm"];
1403
- claimedAt: string;
1404
- deliveryStatus: "failed" | "claimed" | "delivered" | "suppressed";
1405
- conversationId?: string | undefined;
1406
- deliveredAt?: string | undefined;
1407
- suppressedAt?: string | undefined;
1408
- failure?: string | undefined;
1409
- } | undefined;
1410
- strategy?: "refine_intent" | "surface_missing_detail" | "open_adjacent_thread" | "reflective_summary" | "surface_emergent_knowledge" | undefined;
1411
- underspecificationType?: "missing_constituent" | "missing_constraint" | "open_alternative_set" | null | undefined;
1412
- recovery?: {
1413
- version: 1;
1414
- intentFingerprint: string;
1415
- completionSource: "intent_creation" | "from_intent" | "discovery_run";
1416
- runId?: string | undefined;
1417
- rejectedNegotiationCount?: number | undefined;
1418
- } | undefined;
1419
- purpose?: "uptake" | "stalled_followup" | "inflight_consultation" | "recovery" | undefined;
1420
- negotiation?: {
1421
- networkId: string;
1422
- purpose: "uptake" | "stalled_followup" | "inflight_consultation";
1423
- recipientUserId: string;
1424
- recipientIntentId: string;
1425
- opportunityId: string;
1426
- version: 1;
1427
- intentFingerprint: string;
1428
- opportunityStatus: "latent" | "draft" | "negotiating" | "pending" | "stalled" | "accepted" | "rejected" | "expired";
1429
- opportunityUpdatedAt: string;
1430
- questionOrdinal: number;
1431
- taskId?: string | undefined;
1432
- counterpartyUserId?: string | undefined;
1433
- counterpartyIntentId?: string | undefined;
1434
- counterpartyFelicityAuthority?: number | undefined;
1435
- taskState?: "rejected" | "waiting_for_agent" | "input_required" | "completed" | "failed" | "submitted" | "working" | "canceled" | "auth_required" | "claimed" | undefined;
1436
- taskUpdatedAt?: string | undefined;
1437
- } | undefined;
1438
- messageId?: string | undefined;
1439
- triggeredBy?: string | undefined;
1440
- sessionId?: string | undefined;
1441
- pool?: {
1442
- poolSize: number;
1443
- minedAt: string;
1444
- discriminator: {
1445
- label: string;
1446
- questionSeed: string;
1447
- sides: string[];
1448
- sideCounts: Record<string, number>;
1449
- voi: number;
1450
- evidenceRate: number;
1451
- assignments: {
1452
- opportunityId: string;
1453
- side: string;
1454
- }[];
1455
- embedding?: number[] | undefined;
1456
- embeddingModel?: string | undefined;
1457
- };
1458
- alternates: {
1459
- label: string;
1460
- questionSeed: string;
1461
- sides: string[];
1462
- sideCounts: Record<string, number>;
1463
- voi: number;
1464
- evidenceRate: number;
1465
- assignments: {
1466
- opportunityId: string;
1467
- side: string;
1468
- }[];
1469
- embedding?: number[] | undefined;
1470
- embeddingModel?: string | undefined;
1471
- }[];
1472
- runId?: string | undefined;
1473
- intentFingerprint?: string | undefined;
1474
- intentText?: string | undefined;
1475
- opportunityIds?: string[] | undefined;
1476
- } | undefined;
1477
- pushRequestedAt?: string | undefined;
1478
- pushRecoveryAttemptedAt?: string | undefined;
1479
- pushRequestStatus?: "suppressed" | "requested" | undefined;
1480
- pushRequestReason?: "voi" | "question_lifecycle" | "intent_lifecycle" | "malformed_source" | "malformed_actor" | "malformed_pool" | "malformed_cycle" | "visited" | "pool_size" | "cycle_budget" | undefined;
1481
- pushRequestSuppressedAt?: string | undefined;
1482
- voidedReason?: "pool_drift" | "intent_edit" | "recovery_drift" | "negotiation_stale" | undefined;
1483
- pushedAt?: string | undefined;
1484
- }>;
1485
- export declare const QuestionActorSchema: z.ZodObject<{
1486
- /** The user this question is for. */
1487
- userId: z.ZodString;
1488
- /** Optional network context. */
1489
- networkId: z.ZodOptional<z.ZodString>;
1490
- /** Actor's role in the question — currently always "subject". */
1491
- role: z.ZodLiteral<"subject">;
1492
- }, "strip", z.ZodTypeAny, {
1493
- userId: string;
1494
- role: "subject";
1495
- networkId?: string | undefined;
1496
- }, {
1497
- userId: string;
1498
- role: "subject";
1499
- networkId?: string | undefined;
1500
- }>;
1501
- export declare const QuestionAnswerSchema: z.ZodObject<{
1502
- /** Option labels the user selected. */
1503
- selectedOptions: z.ZodArray<z.ZodString, "many">;
1504
- /** Free-text input when the user chose "Other" or elaborated. */
1505
- freeText: z.ZodOptional<z.ZodString>;
1506
- /** User ID of the answerer. */
1507
- answeredBy: z.ZodString;
1508
- /** ISO-8601 timestamp of when the answer was submitted. */
1509
- answeredAt: z.ZodString;
1510
- }, "strip", z.ZodTypeAny, {
1511
- selectedOptions: string[];
1512
- answeredBy: string;
1513
- answeredAt: string;
1514
- freeText?: string | undefined;
1515
- }, {
1516
- selectedOptions: string[];
1517
- answeredBy: string;
1518
- answeredAt: string;
1519
- freeText?: string | undefined;
1520
- }>;
1521
- export type NegotiationQuestionPurpose = z.infer<typeof NegotiationQuestionPurposeSchema>;
1522
- export type NegotiationQuestionCandidate = z.infer<typeof NegotiationQuestionCandidateSchema>;
1523
- export type NegotiationQuestionProvenance = z.infer<typeof NegotiationQuestionProvenanceSchema>;
1524
- export type QuestionPurpose = z.infer<typeof QuestionPurposeSchema>;
1525
- export type QuestionMode = z.infer<typeof QuestionModeSchema>;
1526
- export type QuestionDetection = z.infer<typeof QuestionDetectionSchema>;
1527
- export type QuestionActor = z.infer<typeof QuestionActorSchema>;
1528
- export type QuestionAnswer = z.infer<typeof QuestionAnswerSchema>;
1529
- export type QuestionPoolAssignment = z.infer<typeof QuestionPoolAssignmentSchema>;
1530
- export type QuestionPoolDiscriminator = z.infer<typeof QuestionPoolDiscriminatorSchema>;
1531
- export type QuestionPoolSnapshot = z.infer<typeof QuestionPoolSnapshotSchema>;
1532
- export type QuestionRecoverySnapshot = z.infer<typeof QuestionRecoverySnapshotSchema>;
1533
- export type QuestionPoolPush = z.infer<typeof QuestionPoolPushSchema>;
1534
- export type QuestionVoidedReason = z.infer<typeof QuestionVoidedReasonSchema>;
1535
- export type QuestionPoolPushRequestStatus = z.infer<typeof QuestionPoolPushRequestStatusSchema>;
1536
- export type QuestionPoolPushRequestReason = z.infer<typeof QuestionPoolPushRequestReasonSchema>;
1537
- //# sourceMappingURL=question.schema.d.ts.map
5
+ export * from "../../questions/domain/question.schema.js";