@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.
- package/CHANGELOG.md +240 -0
- package/IMPLEMENTATION.md +20 -0
- package/STABILITY.md +4 -0
- package/dist/agent/agent.tools.d.ts +11 -3
- package/dist/agent/agent.tools.js +11 -301
- package/dist/capabilities/communities.facade.d.ts +13 -0
- package/dist/capabilities/communities.facade.js +12 -0
- package/dist/capabilities/communities.tools.port.d.ts +5 -0
- package/dist/capabilities/communities.tools.port.js +1 -0
- package/dist/capabilities/contacts.facade.d.ts +9 -0
- package/dist/capabilities/contacts.facade.js +8 -0
- package/dist/capabilities/contacts.tools.port.d.ts +9 -0
- package/dist/capabilities/contacts.tools.port.js +1 -0
- package/dist/capabilities/integrations.facade.d.ts +8 -0
- package/dist/capabilities/integrations.facade.js +7 -0
- package/dist/capabilities/integrations.tools.port.d.ts +9 -0
- package/dist/capabilities/integrations.tools.port.js +1 -0
- package/dist/capabilities/interaction-composition.facade.d.ts +10 -0
- package/dist/capabilities/interaction-composition.facade.js +9 -0
- package/dist/capabilities/negotiation.discovery.facade.d.ts +9 -0
- package/dist/capabilities/negotiation.discovery.facade.js +7 -0
- package/dist/capabilities/negotiation.facade.d.ts +23 -0
- package/dist/capabilities/negotiation.facade.js +17 -0
- package/dist/capabilities/negotiation.memory.facade.d.ts +6 -0
- package/dist/capabilities/negotiation.memory.facade.js +5 -0
- package/dist/capabilities/negotiation.questions.facade.d.ts +6 -0
- package/dist/capabilities/negotiation.questions.facade.js +5 -0
- package/dist/capabilities/negotiation.state.facade.d.ts +5 -0
- package/dist/capabilities/negotiation.state.facade.js +1 -0
- package/dist/capabilities/negotiation.summary.facade.d.ts +5 -0
- package/dist/capabilities/negotiation.summary.facade.js +5 -0
- package/dist/capabilities/negotiation.tools.port.d.ts +5 -0
- package/dist/capabilities/negotiation.tools.port.js +1 -0
- package/dist/capabilities/opportunities.facade.d.ts +50 -0
- package/dist/capabilities/opportunities.facade.js +50 -0
- package/dist/capabilities/opportunities.safety.facade.d.ts +2 -0
- package/dist/capabilities/opportunities.safety.facade.js +2 -0
- package/dist/capabilities/opportunities.tools.port.d.ts +5 -0
- package/dist/capabilities/opportunities.tools.port.js +1 -0
- package/dist/capabilities/participant-agents.debug.facade.d.ts +2 -0
- package/dist/capabilities/participant-agents.debug.facade.js +1 -0
- package/dist/capabilities/participant-agents.facade.d.ts +35 -0
- package/dist/capabilities/participant-agents.facade.js +35 -0
- package/dist/capabilities/participant-agents.tools.facade.d.ts +8 -0
- package/dist/capabilities/participant-agents.tools.facade.js +8 -0
- package/dist/capabilities/participant-agents.tools.port.d.ts +9 -0
- package/dist/capabilities/participant-agents.tools.port.js +1 -0
- package/dist/capabilities/participant-context.facade.d.ts +13 -0
- package/dist/capabilities/participant-context.facade.js +14 -0
- package/dist/capabilities/participant-context.tools.port.d.ts +9 -0
- package/dist/capabilities/participant-context.tools.port.js +1 -0
- package/dist/capabilities/questions.enqueue.facade.d.ts +5 -0
- package/dist/capabilities/questions.enqueue.facade.js +1 -0
- package/dist/capabilities/questions.facade.d.ts +8 -0
- package/dist/capabilities/questions.facade.js +7 -0
- package/dist/capabilities/questions.runtime.facade.d.ts +5 -0
- package/dist/capabilities/questions.runtime.facade.js +5 -0
- package/dist/capabilities/questions.tools.port.d.ts +5 -0
- package/dist/capabilities/questions.tools.port.js +1 -0
- package/dist/capabilities/signals.facade.d.ts +16 -0
- package/dist/capabilities/signals.facade.js +14 -0
- package/dist/capabilities/signals.indexing.facade.d.ts +12 -0
- package/dist/capabilities/signals.indexing.facade.js +11 -0
- package/dist/capabilities/signals.tools.port.d.ts +5 -0
- package/dist/capabilities/signals.tools.port.js +1 -0
- package/dist/chat/chat-streaming.types.d.ts +0 -1
- package/dist/chat/chat-streaming.types.js +1 -2
- package/dist/chat/chat.agent.d.ts +0 -1
- package/dist/chat/chat.agent.js +0 -1
- package/dist/chat/chat.graph.d.ts +0 -1
- package/dist/chat/chat.graph.js +0 -1
- package/dist/chat/chat.interrupt.classifier.d.ts +0 -1
- package/dist/chat/chat.interrupt.classifier.js +0 -1
- package/dist/chat/chat.persona.d.ts +0 -1
- package/dist/chat/chat.persona.js +0 -1
- package/dist/chat/chat.prompt.d.ts +0 -1
- package/dist/chat/chat.prompt.js +0 -1
- package/dist/chat/chat.prompt.modules.d.ts +0 -1
- package/dist/chat/chat.prompt.modules.js +0 -1
- package/dist/chat/chat.question-dedup.d.ts +0 -1
- package/dist/chat/chat.question-dedup.js +0 -1
- package/dist/chat/chat.state.d.ts +0 -1
- package/dist/chat/chat.state.js +0 -1
- package/dist/chat/chat.streamer.d.ts +0 -1
- package/dist/chat/chat.streamer.js +0 -1
- package/dist/chat/chat.suggester.d.ts +0 -1
- package/dist/chat/chat.suggester.js +0 -1
- package/dist/chat/chat.summarizer.d.ts +0 -1
- package/dist/chat/chat.summarizer.js +0 -1
- package/dist/chat/chat.title.generator.d.ts +0 -1
- package/dist/chat/chat.title.generator.js +0 -1
- package/dist/chat/chat.tools.d.ts +0 -1
- package/dist/chat/chat.tools.js +0 -1
- package/dist/chat/chat.utils.d.ts +0 -1
- package/dist/chat/chat.utils.js +0 -1
- package/dist/chat/negotiator.persona.d.ts +0 -1
- package/dist/chat/negotiator.persona.js +0 -1
- package/dist/chat/negotiator.prompt.d.ts +1 -2
- package/dist/chat/negotiator.prompt.js +1 -2
- package/dist/chat/negotiator.tools.d.ts +0 -1
- package/dist/chat/negotiator.tools.js +0 -1
- package/dist/chat/onboarding.persona.d.ts +0 -1
- package/dist/chat/onboarding.persona.js +0 -1
- package/dist/chat/onboarding.prompt.d.ts +0 -1
- package/dist/chat/onboarding.prompt.js +0 -1
- package/dist/chat/reporter.action.contracts.d.ts +36 -0
- package/dist/chat/reporter.action.contracts.js +1 -0
- package/dist/chat/reporter.action.tools.d.ts +2 -37
- package/dist/chat/reporter.action.tools.js +0 -1
- package/dist/chat/reporter.persona.d.ts +0 -1
- package/dist/chat/reporter.persona.js +0 -1
- package/dist/chat/reporter.prompt.d.ts +0 -1
- package/dist/chat/reporter.prompt.js +0 -1
- package/dist/chat/signal.persona.d.ts +0 -1
- package/dist/chat/signal.persona.js +0 -1
- package/dist/chat/signal.prompt.d.ts +0 -1
- package/dist/chat/signal.prompt.js +0 -1
- package/dist/communities/application/index.d.ts +45 -0
- package/dist/communities/application/index.js +50 -0
- package/dist/communities/application/indexer.graph.d.ts +446 -0
- package/dist/communities/application/indexer.graph.js +420 -0
- package/dist/communities/application/indexer.state.d.ts +172 -0
- package/dist/communities/application/indexer.state.js +116 -0
- package/dist/communities/application/membership.graph.d.ts +270 -0
- package/dist/communities/application/membership.graph.js +229 -0
- package/dist/communities/application/network.graph.d.ts +648 -0
- package/dist/communities/application/network.graph.js +303 -0
- package/dist/communities/application/network.recommender.d.ts +44 -0
- package/dist/communities/application/network.recommender.js +113 -0
- package/dist/communities/application/network.tools.d.ts +35 -0
- package/dist/communities/application/network.tools.js +578 -0
- package/dist/communities/domain/index.d.ts +29 -0
- package/dist/communities/domain/index.js +31 -0
- package/dist/communities/domain/membership.state.d.ts +87 -0
- package/dist/communities/domain/membership.state.js +53 -0
- package/dist/communities/domain/network.state.d.ts +192 -0
- package/dist/communities/domain/network.state.js +66 -0
- package/dist/communities/index.d.ts +14 -0
- package/dist/communities/index.js +14 -0
- package/dist/communities/ports/index.d.ts +25 -0
- package/dist/communities/ports/index.js +27 -0
- package/dist/communities/public/index.d.ts +30 -0
- package/dist/communities/public/index.js +33 -0
- package/dist/contact/contact.inviter.d.ts +7 -44
- package/dist/contact/contact.inviter.js +6 -59
- package/dist/contact/contact.tools.d.ts +7 -5
- package/dist/contact/contact.tools.js +7 -177
- package/dist/contacts/application/contact.inviter.d.ts +49 -0
- package/dist/contacts/application/contact.inviter.js +64 -0
- package/dist/contacts/application/contact.tools.d.ts +20 -0
- package/dist/contacts/application/contact.tools.js +191 -0
- package/dist/contacts/application/index.d.ts +22 -0
- package/dist/contacts/application/index.js +21 -0
- package/dist/contacts/domain/contact.types.d.ts +51 -0
- package/dist/contacts/domain/contact.types.js +10 -0
- package/dist/contacts/domain/index.d.ts +18 -0
- package/dist/contacts/domain/index.js +1 -0
- package/dist/contacts/index.d.ts +24 -0
- package/dist/contacts/index.js +24 -0
- package/dist/contacts/ports/contact.repository.port.d.ts +28 -0
- package/dist/contacts/ports/contact.repository.port.js +14 -0
- package/dist/contacts/ports/contact.tools.port.d.ts +26 -0
- package/dist/contacts/ports/contact.tools.port.js +21 -0
- package/dist/contacts/ports/index.d.ts +22 -0
- package/dist/contacts/ports/index.js +21 -0
- package/dist/contacts/public/index.d.ts +36 -0
- package/dist/contacts/public/index.js +33 -0
- package/dist/context/context.generator.d.ts +0 -1
- package/dist/context/context.generator.js +0 -1
- package/dist/enrichment/enrichment.enricher.d.ts +0 -1
- package/dist/enrichment/enrichment.enricher.js +0 -1
- package/dist/enrichment/enrichment.generator.d.ts +0 -1
- package/dist/enrichment/enrichment.generator.js +0 -1
- package/dist/enrichment/enrichment.graph.d.ts +6 -7
- package/dist/enrichment/enrichment.graph.js +0 -1
- package/dist/enrichment/enrichment.state.d.ts +2 -3
- package/dist/enrichment/enrichment.state.js +0 -1
- package/dist/enrichment/enrichment.tools.d.ts +3 -3
- package/dist/enrichment/enrichment.tools.js +0 -1
- package/dist/index.d.ts +106 -91
- package/dist/index.js +79 -71
- package/dist/integration/integration.tools.d.ts +6 -10
- package/dist/integration/integration.tools.js +6 -82
- package/dist/integrations/application/index.d.ts +14 -0
- package/dist/integrations/application/index.js +14 -0
- package/dist/integrations/application/integration.tools.d.ts +27 -0
- package/dist/integrations/application/integration.tools.js +98 -0
- package/dist/integrations/domain/index.d.ts +18 -0
- package/dist/integrations/domain/index.js +1 -0
- package/dist/integrations/domain/integration.types.d.ts +53 -0
- package/dist/integrations/domain/integration.types.js +11 -0
- package/dist/integrations/index.d.ts +27 -0
- package/dist/integrations/index.js +27 -0
- package/dist/integrations/ports/index.d.ts +28 -0
- package/dist/integrations/ports/index.js +26 -0
- package/dist/integrations/ports/integration.adapter.port.d.ts +62 -0
- package/dist/integrations/ports/integration.adapter.port.js +15 -0
- package/dist/integrations/ports/integration.importer.port.d.ts +31 -0
- package/dist/integrations/ports/integration.importer.port.js +15 -0
- package/dist/integrations/ports/integration.tools.port.d.ts +28 -0
- package/dist/integrations/ports/integration.tools.port.js +21 -0
- package/dist/integrations/public/index.d.ts +37 -0
- package/dist/integrations/public/index.js +34 -0
- package/dist/intent/intent.clarifier.d.ts +3 -52
- package/dist/intent/intent.clarifier.js +2 -202
- package/dist/intent/intent.graph.d.ts +3 -551
- package/dist/intent/intent.graph.js +3 -937
- package/dist/intent/intent.indexer.d.ts +2 -83
- package/dist/intent/intent.indexer.js +2 -171
- package/dist/intent/intent.inferrer.d.ts +2 -95
- package/dist/intent/intent.inferrer.js +2 -234
- package/dist/intent/intent.reconciler.d.ts +2 -106
- package/dist/intent/intent.reconciler.js +2 -187
- package/dist/intent/intent.specificity.d.ts +2 -3
- package/dist/intent/intent.specificity.js +2 -3
- package/dist/intent/intent.state.d.ts +8 -229
- package/dist/intent/intent.state.js +8 -189
- package/dist/intent/intent.tools.d.ts +6 -24
- package/dist/intent/intent.tools.js +4 -788
- package/dist/intent/intent.verifier.d.ts +2 -116
- package/dist/intent/intent.verifier.js +2 -263
- package/dist/maintenance/maintenance.graph.d.ts +0 -1
- package/dist/maintenance/maintenance.graph.js +0 -1
- package/dist/maintenance/maintenance.state.d.ts +0 -1
- package/dist/maintenance/maintenance.state.js +0 -1
- package/dist/mcp/elicitation.builder.d.ts +0 -1
- package/dist/mcp/elicitation.builder.js +0 -1
- package/dist/mcp/elicitation.dispatcher.d.ts +0 -1
- package/dist/mcp/elicitation.dispatcher.js +0 -1
- package/dist/mcp/mcp.server.d.ts +0 -1
- package/dist/mcp/mcp.server.js +1 -2
- package/dist/negotiation/application/index.d.ts +48 -0
- package/dist/negotiation/application/index.js +49 -0
- package/dist/negotiation/application/insight.generator.d.ts +31 -0
- package/dist/negotiation/application/insight.generator.js +105 -0
- package/dist/negotiation/application/negotiation.agent.d.ts +110 -0
- package/dist/negotiation/application/negotiation.agent.js +244 -0
- package/dist/negotiation/application/negotiation.detail-reader.d.ts +94 -0
- package/dist/negotiation/application/negotiation.detail-reader.js +91 -0
- package/dist/negotiation/application/negotiation.graph.d.ts +664 -0
- package/dist/negotiation/application/negotiation.graph.js +1393 -0
- package/dist/negotiation/application/negotiation.reflect.d.ts +194 -0
- package/dist/negotiation/application/negotiation.reflect.js +145 -0
- package/dist/negotiation/application/negotiation.screen.d.ts +78 -0
- package/dist/negotiation/application/negotiation.screen.js +108 -0
- package/dist/negotiation/application/negotiation.summarizer.d.ts +25 -0
- package/dist/negotiation/application/negotiation.summarizer.js +101 -0
- package/dist/negotiation/application/negotiation.tools.d.ts +18 -0
- package/dist/negotiation/application/negotiation.tools.js +782 -0
- package/dist/negotiation/domain/index.d.ts +48 -0
- package/dist/negotiation/domain/index.js +50 -0
- package/dist/negotiation/domain/negotiation.consultation-policy.d.ts +39 -0
- package/dist/negotiation/domain/negotiation.consultation-policy.js +68 -0
- package/dist/negotiation/domain/negotiation.deadlock.contracts.d.ts +10 -0
- package/dist/negotiation/domain/negotiation.deadlock.contracts.js +1 -0
- package/dist/negotiation/domain/negotiation.deadlock.d.ts +81 -0
- package/dist/negotiation/domain/negotiation.deadlock.js +103 -0
- package/dist/negotiation/domain/negotiation.intent-snapshot-provenance.d.ts +21 -0
- package/dist/negotiation/domain/negotiation.intent-snapshot-provenance.js +28 -0
- package/dist/negotiation/domain/negotiation.lifecycle-narration.d.ts +18 -0
- package/dist/negotiation/domain/negotiation.lifecycle-narration.js +87 -0
- package/dist/negotiation/domain/negotiation.memory.d.ts +65 -0
- package/dist/negotiation/domain/negotiation.memory.js +83 -0
- package/dist/negotiation/domain/negotiation.protocol.d.ts +536 -0
- package/dist/negotiation/domain/negotiation.protocol.js +202 -0
- package/dist/negotiation/domain/negotiation.question-safety.d.ts +25 -0
- package/dist/negotiation/domain/negotiation.question-safety.js +55 -0
- package/dist/negotiation/domain/negotiation.screen.contracts.d.ts +88 -0
- package/dist/negotiation/domain/negotiation.screen.contracts.js +58 -0
- package/dist/negotiation/domain/negotiation.state.d.ts +497 -0
- package/dist/negotiation/domain/negotiation.state.js +288 -0
- package/dist/negotiation/domain/negotiation.task-lock-policy.d.ts +10 -0
- package/dist/negotiation/domain/negotiation.task-lock-policy.js +22 -0
- package/dist/negotiation/index.d.ts +49 -0
- package/dist/negotiation/index.js +49 -0
- package/dist/negotiation/insight.generator.d.ts +3 -30
- package/dist/negotiation/insight.generator.js +3 -104
- package/dist/negotiation/negotiation.agent.d.ts +3 -109
- package/dist/negotiation/negotiation.agent.js +3 -248
- package/dist/negotiation/negotiation.attribution.d.ts +0 -1
- package/dist/negotiation/negotiation.attribution.js +0 -1
- package/dist/negotiation/negotiation.consultation-policy.d.ts +3 -38
- package/dist/negotiation/negotiation.consultation-policy.js +3 -67
- package/dist/negotiation/negotiation.deadlock.contracts.d.ts +5 -0
- package/dist/negotiation/negotiation.deadlock.contracts.js +5 -0
- package/dist/negotiation/negotiation.deadlock.d.ts +3 -94
- package/dist/negotiation/negotiation.deadlock.js +3 -101
- package/dist/negotiation/negotiation.detail-reader.d.ts +5 -0
- package/dist/negotiation/negotiation.detail-reader.js +5 -0
- package/dist/negotiation/negotiation.graph.d.ts +3 -663
- package/dist/negotiation/negotiation.graph.js +3 -1459
- package/dist/negotiation/negotiation.intent-snapshot-provenance.d.ts +5 -0
- package/dist/negotiation/negotiation.intent-snapshot-provenance.js +5 -0
- package/dist/negotiation/negotiation.lifecycle-narration.d.ts +5 -0
- package/dist/negotiation/negotiation.lifecycle-narration.js +5 -0
- package/dist/negotiation/negotiation.memory.d.ts +5 -56
- package/dist/negotiation/negotiation.memory.js +5 -69
- package/dist/negotiation/negotiation.protocol.d.ts +3 -535
- package/dist/negotiation/negotiation.protocol.js +3 -201
- package/dist/negotiation/negotiation.question-safety.d.ts +3 -24
- package/dist/negotiation/negotiation.question-safety.js +3 -54
- package/dist/negotiation/negotiation.reflect.d.ts +4 -197
- package/dist/negotiation/negotiation.reflect.js +4 -151
- package/dist/negotiation/negotiation.screen.d.ts +6 -159
- package/dist/negotiation/negotiation.screen.js +6 -152
- package/dist/negotiation/negotiation.state.d.ts +3 -495
- package/dist/negotiation/negotiation.state.js +3 -284
- package/dist/negotiation/negotiation.summarizer.d.ts +3 -24
- package/dist/negotiation/negotiation.summarizer.js +3 -100
- package/dist/negotiation/negotiation.task-lock-policy.d.ts +5 -0
- package/dist/negotiation/negotiation.task-lock-policy.js +5 -0
- package/dist/negotiation/negotiation.tools.d.ts +3 -15
- package/dist/negotiation/negotiation.tools.js +3 -946
- package/dist/negotiation/ports/index.d.ts +18 -0
- package/dist/negotiation/ports/index.js +18 -0
- package/dist/negotiation/ports/negotiation.tools.port.d.ts +18 -0
- package/dist/negotiation/ports/negotiation.tools.port.js +1 -0
- package/dist/negotiation/public/index.d.ts +58 -0
- package/dist/negotiation/public/index.js +60 -0
- package/dist/network/indexer/indexer.graph.d.ts +3 -413
- package/dist/network/indexer/indexer.graph.js +3 -375
- package/dist/network/indexer/indexer.state.d.ts +3 -149
- package/dist/network/indexer/indexer.state.js +3 -98
- package/dist/network/membership/membership.graph.d.ts +3 -248
- package/dist/network/membership/membership.graph.js +3 -202
- package/dist/network/membership/membership.state.d.ts +3 -75
- package/dist/network/membership/membership.state.js +3 -41
- package/dist/network/network.graph.d.ts +3 -629
- package/dist/network/network.graph.js +3 -267
- package/dist/network/network.recommender.d.ts +3 -40
- package/dist/network/network.recommender.js +3 -109
- package/dist/network/network.state.d.ts +3 -180
- package/dist/network/network.state.js +3 -54
- package/dist/network/network.tools.d.ts +5 -3
- package/dist/network/network.tools.js +5 -566
- package/dist/opportunity/application/delivery-card.cache.d.ts +25 -0
- package/dist/opportunity/application/delivery-card.cache.js +43 -0
- package/dist/opportunity/application/index.d.ts +63 -0
- package/dist/opportunity/application/index.js +68 -0
- package/dist/opportunity/application/negotiation-context.loader.d.ts +59 -0
- package/dist/opportunity/application/negotiation-context.loader.js +88 -0
- package/dist/opportunity/application/opportunity.card-presentation.d.ts +44 -0
- package/dist/opportunity/application/opportunity.card-presentation.js +104 -0
- package/dist/opportunity/application/opportunity.discover.d.ts +215 -0
- package/dist/opportunity/application/opportunity.discover.js +793 -0
- package/dist/opportunity/application/opportunity.discovery-continuation-finalization.d.ts +34 -0
- package/dist/opportunity/application/opportunity.discovery-continuation-finalization.js +74 -0
- package/dist/opportunity/application/opportunity.discovery-mcp-lifecycle-finalization.d.ts +44 -0
- package/dist/opportunity/application/opportunity.discovery-mcp-lifecycle-finalization.js +92 -0
- package/dist/opportunity/application/opportunity.discovery-negotiation-summary.d.ts +14 -0
- package/dist/opportunity/application/opportunity.discovery-negotiation-summary.js +46 -0
- package/dist/opportunity/application/opportunity.enricher.d.ts +71 -0
- package/dist/opportunity/application/opportunity.enricher.js +280 -0
- package/dist/opportunity/application/opportunity.evaluator.d.ts +275 -0
- package/dist/opportunity/application/opportunity.evaluator.js +459 -0
- package/dist/opportunity/application/opportunity.existing-negotiation.d.ts +77 -0
- package/dist/opportunity/application/opportunity.existing-negotiation.js +109 -0
- package/dist/opportunity/application/opportunity.feed-selection.d.ts +30 -0
- package/dist/opportunity/application/opportunity.feed-selection.js +96 -0
- package/dist/opportunity/application/opportunity.graph.d.ts +1427 -0
- package/dist/opportunity/application/opportunity.graph.js +3693 -0
- package/dist/opportunity/application/opportunity.introducer.d.ts +77 -0
- package/dist/opportunity/application/opportunity.introducer.js +99 -0
- package/dist/opportunity/application/opportunity.lifecycle.d.ts +63 -0
- package/dist/opportunity/application/opportunity.lifecycle.js +181 -0
- package/dist/opportunity/application/opportunity.newborn-stamping.d.ts +41 -0
- package/dist/opportunity/application/opportunity.newborn-stamping.js +81 -0
- package/dist/opportunity/application/opportunity.pending-questions.d.ts +33 -0
- package/dist/opportunity/application/opportunity.pending-questions.js +42 -0
- package/dist/opportunity/application/opportunity.persist.d.ts +58 -0
- package/dist/opportunity/application/opportunity.persist.js +145 -0
- package/dist/opportunity/application/opportunity.persistence-admission.d.ts +39 -0
- package/dist/opportunity/application/opportunity.persistence-admission.js +59 -0
- package/dist/opportunity/application/opportunity.presenter.d.ts +156 -0
- package/dist/opportunity/application/opportunity.presenter.js +736 -0
- package/dist/opportunity/application/opportunity.tools.d.ts +131 -0
- package/dist/opportunity/application/opportunity.tools.js +1834 -0
- package/dist/opportunity/application/opportunity.update-admission.d.ts +24 -0
- package/dist/opportunity/application/opportunity.update-admission.js +38 -0
- package/dist/opportunity/delivery-card.cache.d.ts +5 -26
- package/dist/opportunity/delivery-card.cache.js +5 -44
- package/dist/opportunity/discovery-question.helper.d.ts +3 -17
- package/dist/opportunity/discovery-question.helper.js +3 -14
- package/dist/opportunity/discriminator/discriminator.adjustments.d.ts +0 -1
- package/dist/opportunity/discriminator/discriminator.adjustments.js +0 -1
- package/dist/opportunity/discriminator/discriminator.assigner.d.ts +4 -5
- package/dist/opportunity/discriminator/discriminator.assigner.js +0 -1
- package/dist/opportunity/discriminator/discriminator.env.d.ts +0 -1
- package/dist/opportunity/discriminator/discriminator.env.js +0 -1
- package/dist/opportunity/discriminator/discriminator.miner.d.ts +0 -1
- package/dist/opportunity/discriminator/discriminator.miner.js +0 -1
- package/dist/opportunity/discriminator/discriminator.push.d.ts +0 -1
- package/dist/opportunity/discriminator/discriminator.push.js +0 -1
- package/dist/opportunity/discriminator/discriminator.question.d.ts +0 -1
- package/dist/opportunity/discriminator/discriminator.question.js +0 -1
- package/dist/opportunity/discriminator/discriminator.scorer.d.ts +0 -1
- package/dist/opportunity/discriminator/discriminator.scorer.js +0 -1
- package/dist/opportunity/discriminator/discriminator.shadow.d.ts +0 -1
- package/dist/opportunity/discriminator/discriminator.shadow.js +0 -1
- package/dist/opportunity/discriminator/discriminator.types.d.ts +0 -1
- package/dist/opportunity/discriminator/discriminator.types.js +0 -1
- package/dist/opportunity/domain/discovery-question.helper.d.ts +18 -0
- package/dist/opportunity/domain/discovery-question.helper.js +15 -0
- package/dist/opportunity/domain/index.d.ts +55 -0
- package/dist/opportunity/domain/index.js +52 -0
- package/dist/opportunity/domain/negotiation-summary.builder.d.ts +37 -0
- package/dist/opportunity/domain/negotiation-summary.builder.js +66 -0
- package/dist/opportunity/domain/opportunity.actor.d.ts +15 -0
- package/dist/opportunity/domain/opportunity.actor.js +39 -0
- package/dist/opportunity/domain/opportunity.claim-safety.d.ts +24 -0
- package/dist/opportunity/domain/opportunity.claim-safety.js +88 -0
- package/dist/opportunity/domain/opportunity.discovery-run-coalescing.d.ts +33 -0
- package/dist/opportunity/domain/opportunity.discovery-run-coalescing.js +33 -0
- package/dist/opportunity/domain/opportunity.discovery.contracts.d.ts +45 -0
- package/dist/opportunity/domain/opportunity.discovery.contracts.js +1 -0
- package/dist/opportunity/domain/opportunity.evidence.d.ts +21 -0
- package/dist/opportunity/domain/opportunity.evidence.js +78 -0
- package/dist/opportunity/domain/opportunity.labels.d.ts +8 -0
- package/dist/opportunity/domain/opportunity.labels.js +10 -0
- package/dist/opportunity/domain/opportunity.presentation-cache.d.ts +6 -0
- package/dist/opportunity/domain/opportunity.presentation-cache.js +14 -0
- package/dist/opportunity/domain/opportunity.presentation.d.ts +76 -0
- package/dist/opportunity/domain/opportunity.presentation.js +516 -0
- package/dist/opportunity/domain/opportunity.safe-presentation.d.ts +104 -0
- package/dist/opportunity/domain/opportunity.safe-presentation.js +102 -0
- package/dist/opportunity/domain/opportunity.state.d.ts +519 -0
- package/dist/opportunity/domain/opportunity.state.js +309 -0
- package/dist/opportunity/domain/opportunity.utils.d.ts +217 -0
- package/dist/opportunity/domain/opportunity.utils.js +395 -0
- package/dist/opportunity/feed/feed.categorizer.d.ts +0 -1
- package/dist/opportunity/feed/feed.categorizer.js +0 -1
- package/dist/opportunity/feed/feed.graph.d.ts +1 -2
- package/dist/opportunity/feed/feed.graph.js +0 -1
- package/dist/opportunity/feed/feed.health.d.ts +0 -1
- package/dist/opportunity/feed/feed.health.js +0 -1
- package/dist/opportunity/feed/feed.state.d.ts +1 -2
- package/dist/opportunity/feed/feed.state.js +0 -1
- package/dist/opportunity/index.d.ts +37 -0
- package/dist/opportunity/index.js +37 -0
- package/dist/opportunity/negotiation-context.loader.d.ts +3 -58
- package/dist/opportunity/negotiation-context.loader.js +3 -87
- package/dist/opportunity/negotiation-evidence/negotiation-evidence.env.d.ts +0 -1
- package/dist/opportunity/negotiation-evidence/negotiation-evidence.env.js +0 -1
- package/dist/opportunity/negotiation-evidence/negotiation-evidence.extractor.d.ts +0 -1
- package/dist/opportunity/negotiation-evidence/negotiation-evidence.extractor.js +0 -1
- package/dist/opportunity/negotiation-evidence/negotiation-evidence.miner.d.ts +0 -1
- package/dist/opportunity/negotiation-evidence/negotiation-evidence.miner.js +0 -1
- package/dist/opportunity/negotiation-evidence/negotiation-evidence.shadow.d.ts +0 -1
- package/dist/opportunity/negotiation-evidence/negotiation-evidence.shadow.js +0 -1
- package/dist/opportunity/negotiation-evidence/negotiation-evidence.types.d.ts +0 -1
- package/dist/opportunity/negotiation-evidence/negotiation-evidence.types.js +0 -1
- package/dist/opportunity/negotiation-evidence/negotiation-evidence.verifier.d.ts +0 -1
- package/dist/opportunity/negotiation-evidence/negotiation-evidence.verifier.js +0 -1
- package/dist/opportunity/negotiation-summary.builder.d.ts +3 -36
- package/dist/opportunity/negotiation-summary.builder.js +3 -65
- package/dist/opportunity/opportunity.actor.d.ts +3 -14
- package/dist/opportunity/opportunity.actor.js +3 -38
- package/dist/opportunity/opportunity.card-presentation.d.ts +5 -0
- package/dist/opportunity/opportunity.card-presentation.js +5 -0
- package/dist/opportunity/opportunity.claim-safety.d.ts +3 -23
- package/dist/opportunity/opportunity.claim-safety.js +3 -87
- package/dist/opportunity/opportunity.discover.d.ts +3 -218
- package/dist/opportunity/opportunity.discover.js +3 -917
- package/dist/opportunity/opportunity.discovery-continuation-finalization.d.ts +5 -0
- package/dist/opportunity/opportunity.discovery-continuation-finalization.js +5 -0
- package/dist/opportunity/opportunity.discovery-mcp-lifecycle-finalization.d.ts +5 -0
- package/dist/opportunity/opportunity.discovery-mcp-lifecycle-finalization.js +5 -0
- package/dist/opportunity/opportunity.discovery-negotiation-summary.d.ts +5 -0
- package/dist/opportunity/opportunity.discovery-negotiation-summary.js +5 -0
- package/dist/opportunity/opportunity.discovery-run-coalescing.d.ts +5 -0
- package/dist/opportunity/opportunity.discovery-run-coalescing.js +5 -0
- package/dist/opportunity/opportunity.discovery.contracts.d.ts +5 -0
- package/dist/opportunity/opportunity.discovery.contracts.js +5 -0
- package/dist/opportunity/opportunity.enricher.d.ts +3 -70
- package/dist/opportunity/opportunity.enricher.js +3 -279
- package/dist/opportunity/opportunity.evaluator.d.ts +5 -276
- package/dist/opportunity/opportunity.evaluator.js +5 -460
- package/dist/opportunity/opportunity.evidence.d.ts +5 -22
- package/dist/opportunity/opportunity.evidence.js +5 -79
- package/dist/opportunity/opportunity.existing-negotiation.d.ts +5 -0
- package/dist/opportunity/opportunity.existing-negotiation.js +5 -0
- package/dist/opportunity/opportunity.feed-selection.d.ts +5 -0
- package/dist/opportunity/opportunity.feed-selection.js +5 -0
- package/dist/opportunity/opportunity.graph.d.ts +3 -1489
- package/dist/opportunity/opportunity.graph.js +3 -4071
- package/dist/opportunity/opportunity.introducer.d.ts +3 -76
- package/dist/opportunity/opportunity.introducer.js +3 -98
- package/dist/opportunity/opportunity.labels.d.ts +5 -9
- package/dist/opportunity/opportunity.labels.js +5 -11
- package/dist/opportunity/opportunity.lifecycle.d.ts +5 -0
- package/dist/opportunity/opportunity.lifecycle.js +5 -0
- package/dist/opportunity/opportunity.newborn-stamping.d.ts +5 -0
- package/dist/opportunity/opportunity.newborn-stamping.js +5 -0
- package/dist/opportunity/opportunity.pending-questions.d.ts +3 -32
- package/dist/opportunity/opportunity.pending-questions.js +3 -41
- package/dist/opportunity/opportunity.persist.d.ts +3 -57
- package/dist/opportunity/opportunity.persist.js +3 -144
- package/dist/opportunity/opportunity.persistence-admission.d.ts +5 -0
- package/dist/opportunity/opportunity.persistence-admission.js +5 -0
- package/dist/opportunity/opportunity.presentation-cache.d.ts +5 -7
- package/dist/opportunity/opportunity.presentation-cache.js +5 -15
- package/dist/opportunity/opportunity.presentation.d.ts +3 -75
- package/dist/opportunity/opportunity.presentation.js +3 -515
- package/dist/opportunity/opportunity.presenter.d.ts +10 -155
- package/dist/opportunity/opportunity.presenter.js +10 -735
- package/dist/opportunity/opportunity.safe-presentation.d.ts +3 -103
- package/dist/opportunity/opportunity.safe-presentation.js +3 -101
- package/dist/opportunity/opportunity.state.d.ts +3 -518
- package/dist/opportunity/opportunity.state.js +3 -308
- package/dist/opportunity/opportunity.tools.d.ts +3 -157
- package/dist/opportunity/opportunity.tools.js +3 -2238
- package/dist/opportunity/opportunity.update-admission.d.ts +5 -0
- package/dist/opportunity/opportunity.update-admission.js +5 -0
- package/dist/opportunity/opportunity.utils.d.ts +3 -216
- package/dist/opportunity/opportunity.utils.js +3 -394
- package/dist/opportunity/outcome/outcome.env.d.ts +0 -1
- package/dist/opportunity/outcome/outcome.env.js +0 -1
- package/dist/opportunity/outcome/outcome.hypotheses.d.ts +0 -1
- package/dist/opportunity/outcome/outcome.hypotheses.js +0 -1
- package/dist/opportunity/outcome/outcome.shadow.d.ts +0 -1
- package/dist/opportunity/outcome/outcome.shadow.js +0 -1
- package/dist/opportunity/outcome/outcome.types.d.ts +0 -1
- package/dist/opportunity/outcome/outcome.types.js +0 -1
- package/dist/opportunity/ports/index.d.ts +5 -0
- package/dist/opportunity/ports/index.js +1 -0
- package/dist/opportunity/ports/opportunity.tools.port.d.ts +5 -0
- package/dist/opportunity/ports/opportunity.tools.port.js +1 -0
- package/dist/opportunity/public/index.d.ts +58 -0
- package/dist/opportunity/public/index.js +51 -0
- package/dist/participant-agents/application/agent.tools.d.ts +16 -0
- package/dist/participant-agents/application/agent.tools.js +313 -0
- package/dist/participant-agents/application/index.d.ts +21 -0
- package/dist/participant-agents/application/index.js +22 -0
- package/dist/participant-agents/domain/agent.types.d.ts +76 -0
- package/dist/participant-agents/domain/agent.types.js +22 -0
- package/dist/participant-agents/domain/index.d.ts +20 -0
- package/dist/participant-agents/domain/index.js +1 -0
- package/dist/participant-agents/index.d.ts +24 -0
- package/dist/participant-agents/index.js +24 -0
- package/dist/participant-agents/ports/agent.dispatcher.port.d.ts +25 -0
- package/dist/participant-agents/ports/agent.dispatcher.port.js +1 -0
- package/dist/participant-agents/ports/agent.repository.port.d.ts +118 -0
- package/dist/participant-agents/ports/agent.repository.port.js +10 -0
- package/dist/participant-agents/ports/agent.tools.port.d.ts +24 -0
- package/dist/participant-agents/ports/agent.tools.port.js +20 -0
- package/dist/participant-agents/ports/index.d.ts +29 -0
- package/dist/participant-agents/ports/index.js +27 -0
- package/dist/participant-agents/public/index.d.ts +39 -0
- package/dist/participant-agents/public/index.js +36 -0
- package/dist/participant-context/application/index.d.ts +73 -0
- package/dist/participant-context/application/index.js +83 -0
- package/dist/participant-context/domain/index.d.ts +67 -0
- package/dist/participant-context/domain/index.js +68 -0
- package/dist/participant-context/index.d.ts +16 -0
- package/dist/participant-context/index.js +16 -0
- package/dist/participant-context/ports/index.d.ts +37 -0
- package/dist/participant-context/ports/index.js +34 -0
- package/dist/participant-context/public/index.d.ts +48 -0
- package/dist/participant-context/public/index.js +55 -0
- package/dist/platform/index.d.ts +19 -0
- package/dist/platform/index.js +23 -0
- package/dist/premise/premise.analyzer.d.ts +0 -1
- package/dist/premise/premise.analyzer.js +0 -2
- package/dist/premise/premise.decomposer.d.ts +0 -1
- package/dist/premise/premise.decomposer.js +0 -2
- package/dist/premise/premise.graph.d.ts +1 -2
- package/dist/premise/premise.graph.js +0 -2
- package/dist/premise/premise.indexer.d.ts +0 -1
- package/dist/premise/premise.indexer.js +0 -2
- package/dist/premise/premise.state.d.ts +1 -2
- package/dist/premise/premise.state.js +0 -1
- package/dist/premise/premise.tools.d.ts +3 -3
- package/dist/premise/premise.tools.js +0 -2
- package/dist/public/index.d.ts +17 -0
- package/dist/public/index.js +17 -0
- package/dist/questioner/questioner.agent.d.ts +4 -27
- package/dist/questioner/questioner.agent.js +3 -133
- package/dist/questioner/questioner.ask.tool.d.ts +3 -12
- package/dist/questioner/questioner.ask.tool.js +3 -299
- package/dist/questioner/questioner.discovery.prompt.d.ts +3 -7
- package/dist/questioner/questioner.discovery.prompt.js +3 -180
- package/dist/questioner/questioner.env.d.ts +3 -57
- package/dist/questioner/questioner.env.js +3 -93
- package/dist/questioner/questioner.presets.d.ts +4 -19
- package/dist/questioner/questioner.presets.js +3 -465
- package/dist/questioner/questioner.qud.d.ts +3 -6
- package/dist/questioner/questioner.qud.js +3 -10
- package/dist/questioner/questioner.tools.d.ts +3 -15
- package/dist/questioner/questioner.tools.js +3 -186
- package/dist/questioner/questioner.types.d.ts +4 -218
- package/dist/questioner/questioner.types.js +5 -62
- package/dist/questions/application/index.d.ts +39 -0
- package/dist/questions/application/index.js +41 -0
- package/dist/questions/application/question.agent.d.ts +28 -0
- package/dist/questions/application/question.agent.js +139 -0
- package/dist/questions/application/question.ask.tool.d.ts +12 -0
- package/dist/questions/application/question.ask.tool.js +300 -0
- package/dist/questions/application/question.discovery.prompt.d.ts +8 -0
- package/dist/questions/application/question.discovery.prompt.js +181 -0
- package/dist/questions/application/question.env.d.ts +61 -0
- package/dist/questions/application/question.env.js +97 -0
- package/dist/questions/application/question.input.d.ts +237 -0
- package/dist/questions/application/question.input.js +61 -0
- package/dist/questions/application/question.presets.d.ts +24 -0
- package/dist/questions/application/question.presets.js +445 -0
- package/dist/questions/application/question.qud.d.ts +12 -0
- package/dist/questions/application/question.qud.js +16 -0
- package/dist/questions/application/question.tools.d.ts +15 -0
- package/dist/questions/application/question.tools.js +190 -0
- package/dist/questions/domain/index.d.ts +25 -0
- package/dist/questions/domain/index.js +25 -0
- package/dist/questions/domain/question.schema.d.ts +1537 -0
- package/dist/questions/domain/question.schema.js +422 -0
- package/dist/questions/index.d.ts +22 -0
- package/dist/questions/index.js +22 -0
- package/dist/questions/ports/index.d.ts +29 -0
- package/dist/questions/ports/index.js +27 -0
- package/dist/questions/ports/question.generator.port.d.ts +34 -0
- package/dist/questions/ports/question.generator.port.js +1 -0
- package/dist/questions/ports/question.persistence.port.d.ts +87 -0
- package/dist/questions/ports/question.persistence.port.js +1 -0
- package/dist/questions/ports/question.tools.port.d.ts +15 -0
- package/dist/questions/ports/question.tools.port.js +1 -0
- package/dist/questions/public/index.d.ts +47 -0
- package/dist/questions/public/index.js +49 -0
- package/dist/runtime/background/index.d.ts +14 -0
- package/dist/runtime/background/index.js +14 -0
- package/dist/runtime/foreground/composition/tool.factory.d.ts +16 -0
- package/dist/runtime/foreground/composition/tool.factory.js +224 -0
- package/dist/runtime/foreground/composition/tool.registry.d.ts +11 -0
- package/dist/runtime/foreground/composition/tool.registry.js +106 -0
- package/dist/runtime/foreground/index.d.ts +13 -0
- package/dist/runtime/foreground/index.js +13 -0
- package/dist/runtime/foreground/signals/intent.tools.d.ts +13 -0
- package/dist/runtime/foreground/signals/intent.tools.js +13 -0
- package/dist/shared/agent/model-signal.d.ts +0 -1
- package/dist/shared/agent/model-signal.js +0 -1
- package/dist/shared/agent/model.config.d.ts +0 -1
- package/dist/shared/agent/model.config.js +0 -1
- package/dist/shared/agent/tool.factory.d.ts +4 -15
- package/dist/shared/agent/tool.factory.js +4 -226
- package/dist/shared/agent/tool.helpers.d.ts +51 -12
- package/dist/shared/agent/tool.helpers.js +0 -1
- package/dist/shared/agent/tool.registry.d.ts +9 -9
- package/dist/shared/agent/tool.registry.js +9 -104
- package/dist/shared/agent/tool.runtime.d.ts +0 -1
- package/dist/shared/agent/tool.runtime.js +0 -1
- package/dist/shared/agent/tool.scope.d.ts +0 -1
- package/dist/shared/agent/tool.scope.js +0 -1
- package/dist/shared/agent/utility.tools.d.ts +5 -3
- package/dist/shared/agent/utility.tools.js +0 -1
- package/dist/shared/assignment/network-assignment.policy.d.ts +0 -1
- package/dist/shared/assignment/network-assignment.policy.js +0 -1
- package/dist/shared/hyde/hyde.documents.d.ts +0 -1
- package/dist/shared/hyde/hyde.documents.js +0 -1
- package/dist/shared/hyde/hyde.env.d.ts +0 -1
- package/dist/shared/hyde/hyde.env.js +0 -1
- package/dist/shared/hyde/hyde.frame.d.ts +4 -5
- package/dist/shared/hyde/hyde.frame.js +0 -1
- package/dist/shared/hyde/hyde.generator.d.ts +0 -1
- package/dist/shared/hyde/hyde.generator.js +0 -1
- package/dist/shared/hyde/hyde.graph.d.ts +0 -1
- package/dist/shared/hyde/hyde.graph.js +0 -1
- package/dist/shared/hyde/hyde.state.d.ts +0 -1
- package/dist/shared/hyde/hyde.state.js +0 -1
- package/dist/shared/hyde/hyde.strategies.d.ts +0 -1
- package/dist/shared/hyde/hyde.strategies.js +0 -1
- package/dist/shared/hyde/hyde.validator.d.ts +0 -1
- package/dist/shared/hyde/hyde.validator.js +0 -1
- package/dist/shared/hyde/lens.inferrer.d.ts +6 -7
- package/dist/shared/hyde/lens.inferrer.js +0 -1
- package/dist/shared/interfaces/agent-dispatcher.interface.d.ts +4 -1
- package/dist/shared/interfaces/agent-dispatcher.interface.js +4 -1
- package/dist/shared/interfaces/agent.interface.d.ts +13 -173
- package/dist/shared/interfaces/agent.interface.js +12 -12
- package/dist/shared/interfaces/auth.interface.d.ts +0 -1
- package/dist/shared/interfaces/auth.interface.js +0 -1
- package/dist/shared/interfaces/cache.interface.d.ts +0 -1
- package/dist/shared/interfaces/cache.interface.js +0 -1
- package/dist/shared/interfaces/chat-message-writer.interface.d.ts +0 -1
- package/dist/shared/interfaces/chat-message-writer.interface.js +0 -1
- package/dist/shared/interfaces/chat-session.interface.d.ts +0 -1
- package/dist/shared/interfaces/chat-session.interface.js +0 -1
- package/dist/shared/interfaces/chat-summary.interface.d.ts +0 -1
- package/dist/shared/interfaces/chat-summary.interface.js +0 -1
- package/dist/shared/interfaces/connect-link.interface.d.ts +0 -1
- package/dist/shared/interfaces/connect-link.interface.js +0 -1
- package/dist/shared/interfaces/contact.interface.d.ts +7 -55
- package/dist/shared/interfaces/contact.interface.js +7 -1
- package/dist/shared/interfaces/database.interface.d.ts +0 -1
- package/dist/shared/interfaces/database.interface.js +0 -1
- package/dist/shared/interfaces/delivery-ledger.interface.d.ts +0 -1
- package/dist/shared/interfaces/delivery-ledger.interface.js +0 -1
- package/dist/shared/interfaces/discovery-run.interface.d.ts +2 -3
- package/dist/shared/interfaces/discovery-run.interface.js +0 -1
- package/dist/shared/interfaces/embedder.interface.d.ts +0 -1
- package/dist/shared/interfaces/embedder.interface.js +0 -1
- package/dist/shared/interfaces/enrichment-run.interface.d.ts +2 -3
- package/dist/shared/interfaces/enrichment-run.interface.js +0 -1
- package/dist/shared/interfaces/enrichment.interface.d.ts +0 -1
- package/dist/shared/interfaces/enrichment.interface.js +0 -1
- package/dist/shared/interfaces/integration.interface.d.ts +6 -88
- package/dist/shared/interfaces/integration.interface.js +7 -1
- package/dist/shared/interfaces/negotiation-events.interface.d.ts +0 -1
- package/dist/shared/interfaces/negotiation-events.interface.js +0 -1
- package/dist/shared/interfaces/negotiation-summary.interface.d.ts +0 -1
- package/dist/shared/interfaces/negotiation-summary.interface.js +0 -1
- package/dist/shared/interfaces/negotiator-memory.interface.d.ts +0 -1
- package/dist/shared/interfaces/negotiator-memory.interface.js +0 -1
- package/dist/shared/interfaces/question-generator.interface.d.ts +3 -28
- package/dist/shared/interfaces/question-generator.interface.js +0 -1
- package/dist/shared/interfaces/questioner.interface.d.ts +3 -77
- package/dist/shared/interfaces/questioner.interface.js +0 -1
- package/dist/shared/interfaces/queue.interface.d.ts +0 -1
- package/dist/shared/interfaces/queue.interface.js +0 -1
- package/dist/shared/interfaces/scraper.interface.d.ts +0 -1
- package/dist/shared/interfaces/scraper.interface.js +0 -1
- package/dist/shared/interfaces/tool-request-context.interface.d.ts +12 -0
- package/dist/shared/interfaces/tool-request-context.interface.js +1 -0
- package/dist/shared/network/metadata.renderer.d.ts +0 -1
- package/dist/shared/network/metadata.renderer.js +0 -1
- package/dist/shared/observability/debug-meta.sanitizer.d.ts +0 -1
- package/dist/shared/observability/debug-meta.sanitizer.js +0 -1
- package/dist/shared/observability/log.d.ts +0 -1
- package/dist/shared/observability/log.js +0 -1
- package/dist/shared/observability/performance.d.ts +0 -1
- package/dist/shared/observability/performance.js +0 -1
- package/dist/shared/observability/protocol.logger.d.ts +0 -1
- package/dist/shared/observability/protocol.logger.js +0 -1
- package/dist/shared/observability/request-context.d.ts +0 -1
- package/dist/shared/observability/request-context.js +0 -1
- package/dist/shared/observability/trace.d.ts +0 -1
- package/dist/shared/observability/trace.js +0 -1
- package/dist/shared/schemas/chat-context.schema.d.ts +0 -1
- package/dist/shared/schemas/chat-context.schema.js +0 -1
- package/dist/shared/schemas/discovery-question.schema.d.ts +17 -18
- package/dist/shared/schemas/discovery-question.schema.js +0 -1
- package/dist/shared/schemas/identity.schema.d.ts +0 -1
- package/dist/shared/schemas/identity.schema.js +0 -1
- package/dist/shared/schemas/mcp-auth.schema.d.ts +0 -1
- package/dist/shared/schemas/mcp-auth.schema.js +0 -1
- package/dist/shared/schemas/negotiation-digest.schema.d.ts +5 -6
- package/dist/shared/schemas/negotiation-digest.schema.js +0 -1
- package/dist/shared/schemas/negotiation-state.schema.d.ts +4 -5
- package/dist/shared/schemas/negotiation-state.schema.js +0 -1
- package/dist/shared/schemas/network-assignment.schema.d.ts +0 -1
- package/dist/shared/schemas/network-assignment.schema.js +0 -1
- package/dist/shared/schemas/pending-question.schema.d.ts +0 -1
- package/dist/shared/schemas/pending-question.schema.js +0 -1
- package/dist/shared/schemas/question.schema.d.ts +3 -1535
- package/dist/shared/schemas/question.schema.js +3 -420
- package/dist/shared/ui/lucide.icon-catalog.d.ts +0 -1
- package/dist/shared/ui/lucide.icon-catalog.js +0 -1
- package/dist/shared/utils/social-label.d.ts +0 -1
- package/dist/shared/utils/social-label.js +0 -1
- package/dist/shared/utils/telegram-handle.d.ts +0 -1
- package/dist/shared/utils/telegram-handle.js +0 -1
- package/dist/signals/application/index.d.ts +19 -0
- package/dist/signals/application/index.js +22 -0
- package/dist/signals/application/intent.clarifier.d.ts +51 -0
- package/dist/signals/application/intent.clarifier.js +201 -0
- package/dist/signals/application/intent.graph.d.ts +552 -0
- package/dist/signals/application/intent.graph.js +938 -0
- package/dist/signals/application/intent.indexer.d.ts +82 -0
- package/dist/signals/application/intent.indexer.js +170 -0
- package/dist/signals/application/intent.inferrer.d.ts +94 -0
- package/dist/signals/application/intent.inferrer.js +233 -0
- package/dist/signals/application/intent.reconciler.d.ts +105 -0
- package/dist/signals/application/intent.reconciler.js +186 -0
- package/dist/signals/application/intent.tools.d.ts +24 -0
- package/dist/signals/application/intent.tools.js +789 -0
- package/dist/signals/application/intent.verifier.d.ts +115 -0
- package/dist/signals/application/intent.verifier.js +262 -0
- package/dist/signals/domain/index.d.ts +9 -0
- package/dist/signals/domain/index.js +11 -0
- package/dist/signals/domain/intent.state.d.ts +230 -0
- package/dist/signals/domain/intent.state.js +190 -0
- package/dist/signals/domain/signal.specificity.d.ts +2 -0
- package/dist/signals/domain/signal.specificity.js +2 -0
- package/dist/signals/index.d.ts +13 -0
- package/dist/signals/index.js +13 -0
- package/dist/signals/ports/index.d.ts +15 -0
- package/dist/signals/ports/index.js +13 -0
- package/dist/signals/public/index.d.ts +15 -0
- package/dist/signals/public/index.js +16 -0
- package/package.json +14 -3
- package/dist/agent/agent.tools.d.ts.map +0 -1
- package/dist/agent/agent.tools.js.map +0 -1
- package/dist/agent/tests/fakes.d.ts +0 -25
- package/dist/agent/tests/fakes.d.ts.map +0 -1
- package/dist/agent/tests/fakes.js +0 -178
- package/dist/agent/tests/fakes.js.map +0 -1
- package/dist/chat/chat-streaming.types.d.ts.map +0 -1
- package/dist/chat/chat-streaming.types.js.map +0 -1
- package/dist/chat/chat.agent.d.ts.map +0 -1
- package/dist/chat/chat.agent.js.map +0 -1
- package/dist/chat/chat.graph.d.ts.map +0 -1
- package/dist/chat/chat.graph.js.map +0 -1
- package/dist/chat/chat.interrupt.classifier.d.ts.map +0 -1
- package/dist/chat/chat.interrupt.classifier.js.map +0 -1
- package/dist/chat/chat.persona.d.ts.map +0 -1
- package/dist/chat/chat.persona.js.map +0 -1
- package/dist/chat/chat.prompt.d.ts.map +0 -1
- package/dist/chat/chat.prompt.js.map +0 -1
- package/dist/chat/chat.prompt.modules.d.ts.map +0 -1
- package/dist/chat/chat.prompt.modules.js.map +0 -1
- package/dist/chat/chat.question-dedup.d.ts.map +0 -1
- package/dist/chat/chat.question-dedup.js.map +0 -1
- package/dist/chat/chat.state.d.ts.map +0 -1
- package/dist/chat/chat.state.js.map +0 -1
- package/dist/chat/chat.streamer.d.ts.map +0 -1
- package/dist/chat/chat.streamer.js.map +0 -1
- package/dist/chat/chat.suggester.d.ts.map +0 -1
- package/dist/chat/chat.suggester.js.map +0 -1
- package/dist/chat/chat.summarizer.d.ts.map +0 -1
- package/dist/chat/chat.summarizer.js.map +0 -1
- package/dist/chat/chat.title.generator.d.ts.map +0 -1
- package/dist/chat/chat.title.generator.js.map +0 -1
- package/dist/chat/chat.tools.d.ts.map +0 -1
- package/dist/chat/chat.tools.js.map +0 -1
- package/dist/chat/chat.utils.d.ts.map +0 -1
- package/dist/chat/chat.utils.js.map +0 -1
- package/dist/chat/negotiator.persona.d.ts.map +0 -1
- package/dist/chat/negotiator.persona.js.map +0 -1
- package/dist/chat/negotiator.prompt.d.ts.map +0 -1
- package/dist/chat/negotiator.prompt.js.map +0 -1
- package/dist/chat/negotiator.tools.d.ts.map +0 -1
- package/dist/chat/negotiator.tools.js.map +0 -1
- package/dist/chat/onboarding.persona.d.ts.map +0 -1
- package/dist/chat/onboarding.persona.js.map +0 -1
- package/dist/chat/onboarding.prompt.d.ts.map +0 -1
- package/dist/chat/onboarding.prompt.js.map +0 -1
- package/dist/chat/reporter.action.tools.d.ts.map +0 -1
- package/dist/chat/reporter.action.tools.js.map +0 -1
- package/dist/chat/reporter.persona.d.ts.map +0 -1
- package/dist/chat/reporter.persona.js.map +0 -1
- package/dist/chat/reporter.prompt.d.ts.map +0 -1
- package/dist/chat/reporter.prompt.js.map +0 -1
- package/dist/chat/signal.persona.d.ts.map +0 -1
- package/dist/chat/signal.persona.js.map +0 -1
- package/dist/chat/signal.prompt.d.ts.map +0 -1
- package/dist/chat/signal.prompt.js.map +0 -1
- package/dist/chat/tests/chat.graph.mocks.d.ts +0 -98
- package/dist/chat/tests/chat.graph.mocks.d.ts.map +0 -1
- package/dist/chat/tests/chat.graph.mocks.js +0 -225
- package/dist/chat/tests/chat.graph.mocks.js.map +0 -1
- package/dist/contact/contact.inviter.d.ts.map +0 -1
- package/dist/contact/contact.inviter.js.map +0 -1
- package/dist/contact/contact.tools.d.ts.map +0 -1
- package/dist/contact/contact.tools.js.map +0 -1
- package/dist/context/context.generator.d.ts.map +0 -1
- package/dist/context/context.generator.js.map +0 -1
- package/dist/enrichment/enrichment.enricher.d.ts.map +0 -1
- package/dist/enrichment/enrichment.enricher.js.map +0 -1
- package/dist/enrichment/enrichment.generator.d.ts.map +0 -1
- package/dist/enrichment/enrichment.generator.js.map +0 -1
- package/dist/enrichment/enrichment.graph.d.ts.map +0 -1
- package/dist/enrichment/enrichment.graph.js.map +0 -1
- package/dist/enrichment/enrichment.state.d.ts.map +0 -1
- package/dist/enrichment/enrichment.state.js.map +0 -1
- package/dist/enrichment/enrichment.tools.d.ts.map +0 -1
- package/dist/enrichment/enrichment.tools.js.map +0 -1
- package/dist/index.d.ts.map +0 -1
- package/dist/index.js.map +0 -1
- package/dist/integration/integration.tools.d.ts.map +0 -1
- package/dist/integration/integration.tools.js.map +0 -1
- package/dist/intent/intent.clarifier.d.ts.map +0 -1
- package/dist/intent/intent.clarifier.js.map +0 -1
- package/dist/intent/intent.graph.d.ts.map +0 -1
- package/dist/intent/intent.graph.js.map +0 -1
- package/dist/intent/intent.indexer.d.ts.map +0 -1
- package/dist/intent/intent.indexer.js.map +0 -1
- package/dist/intent/intent.inferrer.d.ts.map +0 -1
- package/dist/intent/intent.inferrer.js.map +0 -1
- package/dist/intent/intent.reconciler.d.ts.map +0 -1
- package/dist/intent/intent.reconciler.js.map +0 -1
- package/dist/intent/intent.specificity.d.ts.map +0 -1
- package/dist/intent/intent.specificity.js.map +0 -1
- package/dist/intent/intent.state.d.ts.map +0 -1
- package/dist/intent/intent.state.js.map +0 -1
- package/dist/intent/intent.tools.d.ts.map +0 -1
- package/dist/intent/intent.tools.js.map +0 -1
- package/dist/intent/intent.verifier.d.ts.map +0 -1
- package/dist/intent/intent.verifier.js.map +0 -1
- package/dist/maintenance/maintenance.graph.d.ts.map +0 -1
- package/dist/maintenance/maintenance.graph.js.map +0 -1
- package/dist/maintenance/maintenance.state.d.ts.map +0 -1
- package/dist/maintenance/maintenance.state.js.map +0 -1
- package/dist/mcp/elicitation.builder.d.ts.map +0 -1
- package/dist/mcp/elicitation.builder.js.map +0 -1
- package/dist/mcp/elicitation.dispatcher.d.ts.map +0 -1
- package/dist/mcp/elicitation.dispatcher.js.map +0 -1
- package/dist/mcp/mcp.server.d.ts.map +0 -1
- package/dist/mcp/mcp.server.js.map +0 -1
- package/dist/negotiation/insight.generator.d.ts.map +0 -1
- package/dist/negotiation/insight.generator.js.map +0 -1
- package/dist/negotiation/negotiation.agent.d.ts.map +0 -1
- package/dist/negotiation/negotiation.agent.js.map +0 -1
- package/dist/negotiation/negotiation.attribution.d.ts.map +0 -1
- package/dist/negotiation/negotiation.attribution.js.map +0 -1
- package/dist/negotiation/negotiation.consultation-policy.d.ts.map +0 -1
- package/dist/negotiation/negotiation.consultation-policy.js.map +0 -1
- package/dist/negotiation/negotiation.deadlock.d.ts.map +0 -1
- package/dist/negotiation/negotiation.deadlock.js.map +0 -1
- package/dist/negotiation/negotiation.graph.d.ts.map +0 -1
- package/dist/negotiation/negotiation.graph.js.map +0 -1
- package/dist/negotiation/negotiation.memory.d.ts.map +0 -1
- package/dist/negotiation/negotiation.memory.js.map +0 -1
- package/dist/negotiation/negotiation.protocol.d.ts.map +0 -1
- package/dist/negotiation/negotiation.protocol.js.map +0 -1
- package/dist/negotiation/negotiation.question-safety.d.ts.map +0 -1
- package/dist/negotiation/negotiation.question-safety.js.map +0 -1
- package/dist/negotiation/negotiation.reflect.d.ts.map +0 -1
- package/dist/negotiation/negotiation.reflect.js.map +0 -1
- package/dist/negotiation/negotiation.screen.d.ts.map +0 -1
- package/dist/negotiation/negotiation.screen.js.map +0 -1
- package/dist/negotiation/negotiation.state.d.ts.map +0 -1
- package/dist/negotiation/negotiation.state.js.map +0 -1
- package/dist/negotiation/negotiation.summarizer.d.ts.map +0 -1
- package/dist/negotiation/negotiation.summarizer.js.map +0 -1
- package/dist/negotiation/negotiation.tools.d.ts.map +0 -1
- package/dist/negotiation/negotiation.tools.js.map +0 -1
- package/dist/network/indexer/indexer.graph.d.ts.map +0 -1
- package/dist/network/indexer/indexer.graph.js.map +0 -1
- package/dist/network/indexer/indexer.state.d.ts.map +0 -1
- package/dist/network/indexer/indexer.state.js.map +0 -1
- package/dist/network/membership/membership.graph.d.ts.map +0 -1
- package/dist/network/membership/membership.graph.js.map +0 -1
- package/dist/network/membership/membership.state.d.ts.map +0 -1
- package/dist/network/membership/membership.state.js.map +0 -1
- package/dist/network/network.graph.d.ts.map +0 -1
- package/dist/network/network.graph.js.map +0 -1
- package/dist/network/network.recommender.d.ts.map +0 -1
- package/dist/network/network.recommender.js.map +0 -1
- package/dist/network/network.state.d.ts.map +0 -1
- package/dist/network/network.state.js.map +0 -1
- package/dist/network/network.tools.d.ts.map +0 -1
- package/dist/network/network.tools.js.map +0 -1
- package/dist/opportunity/delivery-card.cache.d.ts.map +0 -1
- package/dist/opportunity/delivery-card.cache.js.map +0 -1
- package/dist/opportunity/discovery-question.helper.d.ts.map +0 -1
- package/dist/opportunity/discovery-question.helper.js.map +0 -1
- package/dist/opportunity/discriminator/discriminator.adjustments.d.ts.map +0 -1
- package/dist/opportunity/discriminator/discriminator.adjustments.js.map +0 -1
- package/dist/opportunity/discriminator/discriminator.assigner.d.ts.map +0 -1
- package/dist/opportunity/discriminator/discriminator.assigner.js.map +0 -1
- package/dist/opportunity/discriminator/discriminator.env.d.ts.map +0 -1
- package/dist/opportunity/discriminator/discriminator.env.js.map +0 -1
- package/dist/opportunity/discriminator/discriminator.miner.d.ts.map +0 -1
- package/dist/opportunity/discriminator/discriminator.miner.js.map +0 -1
- package/dist/opportunity/discriminator/discriminator.push.d.ts.map +0 -1
- package/dist/opportunity/discriminator/discriminator.push.js.map +0 -1
- package/dist/opportunity/discriminator/discriminator.question.d.ts.map +0 -1
- package/dist/opportunity/discriminator/discriminator.question.js.map +0 -1
- package/dist/opportunity/discriminator/discriminator.scorer.d.ts.map +0 -1
- package/dist/opportunity/discriminator/discriminator.scorer.js.map +0 -1
- package/dist/opportunity/discriminator/discriminator.shadow.d.ts.map +0 -1
- package/dist/opportunity/discriminator/discriminator.shadow.js.map +0 -1
- package/dist/opportunity/discriminator/discriminator.types.d.ts.map +0 -1
- package/dist/opportunity/discriminator/discriminator.types.js.map +0 -1
- package/dist/opportunity/feed/feed.categorizer.d.ts.map +0 -1
- package/dist/opportunity/feed/feed.categorizer.js.map +0 -1
- package/dist/opportunity/feed/feed.graph.d.ts.map +0 -1
- package/dist/opportunity/feed/feed.graph.js.map +0 -1
- package/dist/opportunity/feed/feed.health.d.ts.map +0 -1
- package/dist/opportunity/feed/feed.health.js.map +0 -1
- package/dist/opportunity/feed/feed.state.d.ts.map +0 -1
- package/dist/opportunity/feed/feed.state.js.map +0 -1
- package/dist/opportunity/negotiation-context.loader.d.ts.map +0 -1
- package/dist/opportunity/negotiation-context.loader.js.map +0 -1
- package/dist/opportunity/negotiation-evidence/negotiation-evidence.env.d.ts.map +0 -1
- package/dist/opportunity/negotiation-evidence/negotiation-evidence.env.js.map +0 -1
- package/dist/opportunity/negotiation-evidence/negotiation-evidence.extractor.d.ts.map +0 -1
- package/dist/opportunity/negotiation-evidence/negotiation-evidence.extractor.js.map +0 -1
- package/dist/opportunity/negotiation-evidence/negotiation-evidence.miner.d.ts.map +0 -1
- package/dist/opportunity/negotiation-evidence/negotiation-evidence.miner.js.map +0 -1
- package/dist/opportunity/negotiation-evidence/negotiation-evidence.shadow.d.ts.map +0 -1
- package/dist/opportunity/negotiation-evidence/negotiation-evidence.shadow.js.map +0 -1
- package/dist/opportunity/negotiation-evidence/negotiation-evidence.types.d.ts.map +0 -1
- package/dist/opportunity/negotiation-evidence/negotiation-evidence.types.js.map +0 -1
- package/dist/opportunity/negotiation-evidence/negotiation-evidence.verifier.d.ts.map +0 -1
- package/dist/opportunity/negotiation-evidence/negotiation-evidence.verifier.js.map +0 -1
- package/dist/opportunity/negotiation-summary.builder.d.ts.map +0 -1
- package/dist/opportunity/negotiation-summary.builder.js.map +0 -1
- package/dist/opportunity/opportunity.actor.d.ts.map +0 -1
- package/dist/opportunity/opportunity.actor.js.map +0 -1
- package/dist/opportunity/opportunity.claim-safety.d.ts.map +0 -1
- package/dist/opportunity/opportunity.claim-safety.js.map +0 -1
- package/dist/opportunity/opportunity.discover.d.ts.map +0 -1
- package/dist/opportunity/opportunity.discover.js.map +0 -1
- package/dist/opportunity/opportunity.enricher.d.ts.map +0 -1
- package/dist/opportunity/opportunity.enricher.js.map +0 -1
- package/dist/opportunity/opportunity.evaluator.d.ts.map +0 -1
- package/dist/opportunity/opportunity.evaluator.js.map +0 -1
- package/dist/opportunity/opportunity.evidence.d.ts.map +0 -1
- package/dist/opportunity/opportunity.evidence.js.map +0 -1
- package/dist/opportunity/opportunity.graph.d.ts.map +0 -1
- package/dist/opportunity/opportunity.graph.js.map +0 -1
- package/dist/opportunity/opportunity.introducer.d.ts.map +0 -1
- package/dist/opportunity/opportunity.introducer.js.map +0 -1
- package/dist/opportunity/opportunity.labels.d.ts.map +0 -1
- package/dist/opportunity/opportunity.labels.js.map +0 -1
- package/dist/opportunity/opportunity.pending-questions.d.ts.map +0 -1
- package/dist/opportunity/opportunity.pending-questions.js.map +0 -1
- package/dist/opportunity/opportunity.persist.d.ts.map +0 -1
- package/dist/opportunity/opportunity.persist.js.map +0 -1
- package/dist/opportunity/opportunity.presentation-cache.d.ts.map +0 -1
- package/dist/opportunity/opportunity.presentation-cache.js.map +0 -1
- package/dist/opportunity/opportunity.presentation.d.ts.map +0 -1
- package/dist/opportunity/opportunity.presentation.js.map +0 -1
- package/dist/opportunity/opportunity.presenter.d.ts.map +0 -1
- package/dist/opportunity/opportunity.presenter.js.map +0 -1
- package/dist/opportunity/opportunity.safe-presentation.d.ts.map +0 -1
- package/dist/opportunity/opportunity.safe-presentation.js.map +0 -1
- package/dist/opportunity/opportunity.state.d.ts.map +0 -1
- package/dist/opportunity/opportunity.state.js.map +0 -1
- package/dist/opportunity/opportunity.tools.d.ts.map +0 -1
- package/dist/opportunity/opportunity.tools.js.map +0 -1
- package/dist/opportunity/opportunity.utils.d.ts.map +0 -1
- package/dist/opportunity/opportunity.utils.js.map +0 -1
- package/dist/opportunity/outcome/outcome.env.d.ts.map +0 -1
- package/dist/opportunity/outcome/outcome.env.js.map +0 -1
- package/dist/opportunity/outcome/outcome.hypotheses.d.ts.map +0 -1
- package/dist/opportunity/outcome/outcome.hypotheses.js.map +0 -1
- package/dist/opportunity/outcome/outcome.shadow.d.ts.map +0 -1
- package/dist/opportunity/outcome/outcome.shadow.js.map +0 -1
- package/dist/opportunity/outcome/outcome.types.d.ts.map +0 -1
- package/dist/opportunity/outcome/outcome.types.js.map +0 -1
- package/dist/premise/premise.analyzer.d.ts.map +0 -1
- package/dist/premise/premise.analyzer.js.map +0 -1
- package/dist/premise/premise.decomposer.d.ts.map +0 -1
- package/dist/premise/premise.decomposer.js.map +0 -1
- package/dist/premise/premise.graph.d.ts.map +0 -1
- package/dist/premise/premise.graph.js.map +0 -1
- package/dist/premise/premise.indexer.d.ts.map +0 -1
- package/dist/premise/premise.indexer.js.map +0 -1
- package/dist/premise/premise.state.d.ts.map +0 -1
- package/dist/premise/premise.state.js.map +0 -1
- package/dist/premise/premise.tools.d.ts.map +0 -1
- package/dist/premise/premise.tools.js.map +0 -1
- package/dist/questioner/questioner.agent.d.ts.map +0 -1
- package/dist/questioner/questioner.agent.js.map +0 -1
- package/dist/questioner/questioner.ask.tool.d.ts.map +0 -1
- package/dist/questioner/questioner.ask.tool.js.map +0 -1
- package/dist/questioner/questioner.discovery.prompt.d.ts.map +0 -1
- package/dist/questioner/questioner.discovery.prompt.js.map +0 -1
- package/dist/questioner/questioner.env.d.ts.map +0 -1
- package/dist/questioner/questioner.env.js.map +0 -1
- package/dist/questioner/questioner.presets.d.ts.map +0 -1
- package/dist/questioner/questioner.presets.js.map +0 -1
- package/dist/questioner/questioner.qud.d.ts.map +0 -1
- package/dist/questioner/questioner.qud.js.map +0 -1
- package/dist/questioner/questioner.tools.d.ts.map +0 -1
- package/dist/questioner/questioner.tools.js.map +0 -1
- package/dist/questioner/questioner.types.d.ts.map +0 -1
- package/dist/questioner/questioner.types.js.map +0 -1
- package/dist/shared/agent/model-signal.d.ts.map +0 -1
- package/dist/shared/agent/model-signal.js.map +0 -1
- package/dist/shared/agent/model.config.d.ts.map +0 -1
- package/dist/shared/agent/model.config.js.map +0 -1
- package/dist/shared/agent/tests/llm-assert.d.ts +0 -11
- package/dist/shared/agent/tests/llm-assert.d.ts.map +0 -1
- package/dist/shared/agent/tests/llm-assert.js +0 -43
- package/dist/shared/agent/tests/llm-assert.js.map +0 -1
- package/dist/shared/agent/tool.factory.d.ts.map +0 -1
- package/dist/shared/agent/tool.factory.js.map +0 -1
- package/dist/shared/agent/tool.helpers.d.ts.map +0 -1
- package/dist/shared/agent/tool.helpers.js.map +0 -1
- package/dist/shared/agent/tool.registry.d.ts.map +0 -1
- package/dist/shared/agent/tool.registry.js.map +0 -1
- package/dist/shared/agent/tool.runtime.d.ts.map +0 -1
- package/dist/shared/agent/tool.runtime.js.map +0 -1
- package/dist/shared/agent/tool.scope.d.ts.map +0 -1
- package/dist/shared/agent/tool.scope.js.map +0 -1
- package/dist/shared/agent/utility.tools.d.ts.map +0 -1
- package/dist/shared/agent/utility.tools.js.map +0 -1
- package/dist/shared/assignment/network-assignment.policy.d.ts.map +0 -1
- package/dist/shared/assignment/network-assignment.policy.js.map +0 -1
- package/dist/shared/hyde/hyde.documents.d.ts.map +0 -1
- package/dist/shared/hyde/hyde.documents.js.map +0 -1
- package/dist/shared/hyde/hyde.env.d.ts.map +0 -1
- package/dist/shared/hyde/hyde.env.js.map +0 -1
- package/dist/shared/hyde/hyde.frame.d.ts.map +0 -1
- package/dist/shared/hyde/hyde.frame.js.map +0 -1
- package/dist/shared/hyde/hyde.generator.d.ts.map +0 -1
- package/dist/shared/hyde/hyde.generator.js.map +0 -1
- package/dist/shared/hyde/hyde.graph.d.ts.map +0 -1
- package/dist/shared/hyde/hyde.graph.js.map +0 -1
- package/dist/shared/hyde/hyde.state.d.ts.map +0 -1
- package/dist/shared/hyde/hyde.state.js.map +0 -1
- package/dist/shared/hyde/hyde.strategies.d.ts.map +0 -1
- package/dist/shared/hyde/hyde.strategies.js.map +0 -1
- package/dist/shared/hyde/hyde.validator.d.ts.map +0 -1
- package/dist/shared/hyde/hyde.validator.js.map +0 -1
- package/dist/shared/hyde/lens.inferrer.d.ts.map +0 -1
- package/dist/shared/hyde/lens.inferrer.js.map +0 -1
- package/dist/shared/interfaces/agent-dispatcher.interface.d.ts.map +0 -1
- package/dist/shared/interfaces/agent-dispatcher.interface.js.map +0 -1
- package/dist/shared/interfaces/agent.interface.d.ts.map +0 -1
- package/dist/shared/interfaces/agent.interface.js.map +0 -1
- package/dist/shared/interfaces/auth.interface.d.ts.map +0 -1
- package/dist/shared/interfaces/auth.interface.js.map +0 -1
- package/dist/shared/interfaces/cache.interface.d.ts.map +0 -1
- package/dist/shared/interfaces/cache.interface.js.map +0 -1
- package/dist/shared/interfaces/chat-message-writer.interface.d.ts.map +0 -1
- package/dist/shared/interfaces/chat-message-writer.interface.js.map +0 -1
- package/dist/shared/interfaces/chat-session.interface.d.ts.map +0 -1
- package/dist/shared/interfaces/chat-session.interface.js.map +0 -1
- package/dist/shared/interfaces/chat-summary.interface.d.ts.map +0 -1
- package/dist/shared/interfaces/chat-summary.interface.js.map +0 -1
- package/dist/shared/interfaces/connect-link.interface.d.ts.map +0 -1
- package/dist/shared/interfaces/connect-link.interface.js.map +0 -1
- package/dist/shared/interfaces/contact.interface.d.ts.map +0 -1
- package/dist/shared/interfaces/contact.interface.js.map +0 -1
- package/dist/shared/interfaces/database.interface.d.ts.map +0 -1
- package/dist/shared/interfaces/database.interface.js.map +0 -1
- package/dist/shared/interfaces/delivery-ledger.interface.d.ts.map +0 -1
- package/dist/shared/interfaces/delivery-ledger.interface.js.map +0 -1
- package/dist/shared/interfaces/discovery-run.interface.d.ts.map +0 -1
- package/dist/shared/interfaces/discovery-run.interface.js.map +0 -1
- package/dist/shared/interfaces/embedder.interface.d.ts.map +0 -1
- package/dist/shared/interfaces/embedder.interface.js.map +0 -1
- package/dist/shared/interfaces/enrichment-run.interface.d.ts.map +0 -1
- package/dist/shared/interfaces/enrichment-run.interface.js.map +0 -1
- package/dist/shared/interfaces/enrichment.interface.d.ts.map +0 -1
- package/dist/shared/interfaces/enrichment.interface.js.map +0 -1
- package/dist/shared/interfaces/integration.interface.d.ts.map +0 -1
- package/dist/shared/interfaces/integration.interface.js.map +0 -1
- package/dist/shared/interfaces/negotiation-events.interface.d.ts.map +0 -1
- package/dist/shared/interfaces/negotiation-events.interface.js.map +0 -1
- package/dist/shared/interfaces/negotiation-summary.interface.d.ts.map +0 -1
- package/dist/shared/interfaces/negotiation-summary.interface.js.map +0 -1
- package/dist/shared/interfaces/negotiator-memory.interface.d.ts.map +0 -1
- package/dist/shared/interfaces/negotiator-memory.interface.js.map +0 -1
- package/dist/shared/interfaces/question-generator.interface.d.ts.map +0 -1
- package/dist/shared/interfaces/question-generator.interface.js.map +0 -1
- package/dist/shared/interfaces/questioner.interface.d.ts.map +0 -1
- package/dist/shared/interfaces/questioner.interface.js.map +0 -1
- package/dist/shared/interfaces/queue.interface.d.ts.map +0 -1
- package/dist/shared/interfaces/queue.interface.js.map +0 -1
- package/dist/shared/interfaces/scraper.interface.d.ts.map +0 -1
- package/dist/shared/interfaces/scraper.interface.js.map +0 -1
- package/dist/shared/network/metadata.renderer.d.ts.map +0 -1
- package/dist/shared/network/metadata.renderer.js.map +0 -1
- package/dist/shared/observability/debug-meta.sanitizer.d.ts.map +0 -1
- package/dist/shared/observability/debug-meta.sanitizer.js.map +0 -1
- package/dist/shared/observability/log.d.ts.map +0 -1
- package/dist/shared/observability/log.js.map +0 -1
- package/dist/shared/observability/performance.d.ts.map +0 -1
- package/dist/shared/observability/performance.js.map +0 -1
- package/dist/shared/observability/protocol.logger.d.ts.map +0 -1
- package/dist/shared/observability/protocol.logger.js.map +0 -1
- package/dist/shared/observability/request-context.d.ts.map +0 -1
- package/dist/shared/observability/request-context.js.map +0 -1
- package/dist/shared/observability/trace.d.ts.map +0 -1
- package/dist/shared/observability/trace.js.map +0 -1
- package/dist/shared/schemas/chat-context.schema.d.ts.map +0 -1
- package/dist/shared/schemas/chat-context.schema.js.map +0 -1
- package/dist/shared/schemas/discovery-question.schema.d.ts.map +0 -1
- package/dist/shared/schemas/discovery-question.schema.js.map +0 -1
- package/dist/shared/schemas/identity.schema.d.ts.map +0 -1
- package/dist/shared/schemas/identity.schema.js.map +0 -1
- package/dist/shared/schemas/mcp-auth.schema.d.ts.map +0 -1
- package/dist/shared/schemas/mcp-auth.schema.js.map +0 -1
- package/dist/shared/schemas/negotiation-digest.schema.d.ts.map +0 -1
- package/dist/shared/schemas/negotiation-digest.schema.js.map +0 -1
- package/dist/shared/schemas/negotiation-state.schema.d.ts.map +0 -1
- package/dist/shared/schemas/negotiation-state.schema.js.map +0 -1
- package/dist/shared/schemas/network-assignment.schema.d.ts.map +0 -1
- package/dist/shared/schemas/network-assignment.schema.js.map +0 -1
- package/dist/shared/schemas/pending-question.schema.d.ts.map +0 -1
- package/dist/shared/schemas/pending-question.schema.js.map +0 -1
- package/dist/shared/schemas/question.schema.d.ts.map +0 -1
- package/dist/shared/schemas/question.schema.js.map +0 -1
- package/dist/shared/ui/lucide.icon-catalog.d.ts.map +0 -1
- package/dist/shared/ui/lucide.icon-catalog.js.map +0 -1
- package/dist/shared/utils/social-label.d.ts.map +0 -1
- package/dist/shared/utils/social-label.js.map +0 -1
- package/dist/shared/utils/telegram-handle.d.ts.map +0 -1
- package/dist/shared/utils/telegram-handle.js.map +0 -1
|
@@ -1,218 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
*
|
|
3
|
-
*
|
|
4
|
-
*
|
|
5
|
-
* With lens-based HyDE, strategy selection is handled automatically by the
|
|
6
|
-
* LensInferrer agent. This file provides corpus-to-role mapping for opportunity actors.
|
|
2
|
+
* Thin backward-compat shim — IND-551.
|
|
3
|
+
* Canonical location: opportunity/domain/opportunity.utils.ts
|
|
7
4
|
*/
|
|
8
|
-
|
|
9
|
-
/** Actor roles in the opportunity model (agent / patient / peer). */
|
|
10
|
-
export type OpportunityActorRole = 'agent' | 'patient' | 'peer';
|
|
11
|
-
/** Result of mapping a corpus to source and candidate roles. */
|
|
12
|
-
export interface DerivedRoles {
|
|
13
|
-
sourceRole: OpportunityActorRole;
|
|
14
|
-
candidateRole: OpportunityActorRole;
|
|
15
|
-
}
|
|
16
|
-
/**
|
|
17
|
-
* Derive actor roles from the corpus type of a lens match.
|
|
18
|
-
*
|
|
19
|
-
* When a candidate is found via:
|
|
20
|
-
* - "profiles" corpus → found by who they are → candidate can help → agent
|
|
21
|
-
* - "intents" corpus → found by what they need → candidate needs something → patient
|
|
22
|
-
*
|
|
23
|
-
* @param corpus - The target corpus that produced the match ('profiles' | 'intents')
|
|
24
|
-
* @returns Roles for the source (intent owner) and the candidate (matched user/intent)
|
|
25
|
-
*/
|
|
26
|
-
export declare function deriveRolesFromCorpus(corpus: HydeTargetCorpus): DerivedRoles;
|
|
27
|
-
/**
|
|
28
|
-
* Validates opportunity actors: if an opportunity has an introducer, it must have
|
|
29
|
-
* one or two non-introducer actors (1 = 1:1 intro e.g. "I want to connect with X";
|
|
30
|
-
* 2 = introducer connecting two others).
|
|
31
|
-
*
|
|
32
|
-
* Also rejects self-matches — the same person occupying both sides of a
|
|
33
|
-
* connection. The discovery/persist pipeline trusts the LLM evaluator's actor
|
|
34
|
-
* list, which can collapse onto a single user; downstream readers then garble
|
|
35
|
-
* identity (e.g. a connect link/greeting rendered in one party's voice while the
|
|
36
|
-
* card shows the viewer "matched with themselves"). Two degenerate shapes are
|
|
37
|
-
* blocked here, at the single persist chokepoint:
|
|
38
|
-
* - every userId-bearing non-introducer actor collapses to the same user,
|
|
39
|
-
* e.g. `[X(agent), X(patient)]`
|
|
40
|
-
* - an introducer who is also a participant ("Amina introduced you to Amina")
|
|
41
|
-
* Only `userId`-bearing actors are checked; role-only actors (legacy/tests) pass.
|
|
42
|
-
* Duplicate rows for one participant are allowed when at least one other distinct
|
|
43
|
-
* participant is present (some callers model multiple intents as multiple actor rows).
|
|
44
|
-
*
|
|
45
|
-
* @param actors - Array of actors with at least a role and optional userId
|
|
46
|
-
* @throws Error when the actor set is invalid
|
|
47
|
-
*/
|
|
48
|
-
export declare function validateOpportunityActors(actors: Array<{
|
|
49
|
-
userId?: string;
|
|
50
|
-
role: string;
|
|
51
|
-
}>): void;
|
|
52
|
-
/**
|
|
53
|
-
* Read-level ACL: whether a user is an actor on the opportunity and may fetch
|
|
54
|
-
* its details. Intentionally broader than `isActionableForViewer` — a user can
|
|
55
|
-
* read an opportunity they are not currently expected to act on (e.g. an agent
|
|
56
|
-
* viewing an accepted opportunity).
|
|
57
|
-
*
|
|
58
|
-
* The feed graph and debug controller chain both predicates: an opportunity only
|
|
59
|
-
* reaches the home feed if it passes `canUserSeeOpportunity` first, then
|
|
60
|
-
* `isActionableForViewer`. For `agent with introducer at pending`,
|
|
61
|
-
* `canUserSeeOpportunity` returns false (read gate blocks it), so the opportunity
|
|
62
|
-
* never surfaces even though `isActionableForViewer` Rule 4 would return true in
|
|
63
|
-
* isolation. This is by design — the agent is not granted read access through the
|
|
64
|
-
* home path until the introducer path completes (negotiation → accepted).
|
|
65
|
-
*
|
|
66
|
-
* Compact Visibility Rule (from lifecycle doc):
|
|
67
|
-
* - Introducer or peer: always see.
|
|
68
|
-
* - Patient or party: see if (status is not latent, or there is no introducer).
|
|
69
|
-
* - Agent: see if (status is accepted/rejected/expired, or (status is not latent and there is no introducer)).
|
|
70
|
-
*/
|
|
71
|
-
export declare function canUserSeeOpportunity(actors: Array<{
|
|
72
|
-
userId: string;
|
|
73
|
-
role: string;
|
|
74
|
-
}>, status: string, userId: string): boolean;
|
|
75
|
-
/**
|
|
76
|
-
* Whether an opportunity should appear on the viewer's home feed (actionable =
|
|
77
|
-
* has a pending action for this user).
|
|
78
|
-
*
|
|
79
|
-
* Rules (see `docs/Latent Opportunity Lifecycle.md` — Role-Visibility Matrix):
|
|
80
|
-
*
|
|
81
|
-
* (1) `latent`, no introducer → all actors actionable
|
|
82
|
-
* (2) `latent`, introducer `approved !== true` → introducer only
|
|
83
|
-
* (3) `latent`, introducer `approved === true` → all non-introducer actors
|
|
84
|
-
* (4) `pending` (any introducer config) → non-introducer actors who have not acted.
|
|
85
|
-
* Acting is per-user, not per-actor-row: re-detection can append duplicate
|
|
86
|
-
* actor rows for the same user without `actedAt`, so any viewer row with
|
|
87
|
-
* `actedAt` means the viewer has already acted.
|
|
88
|
-
* (5) `accepted`/`rejected`/`expired`/`stalled`/`draft`/`negotiating`
|
|
89
|
-
* → never actionable
|
|
90
|
-
*
|
|
91
|
-
* The introducer approval signal is stored on the `introducer`-roled actor's
|
|
92
|
-
* `approved: boolean` field within the opportunity's `actors` JSONB. It flips
|
|
93
|
-
* from `false` to `true` when the introducer approves; status stays `latent`
|
|
94
|
-
* across the flip while a background negotiation runs.
|
|
95
|
-
*/
|
|
96
|
-
export declare function isActionableForViewer(actors: Array<{
|
|
97
|
-
userId: string;
|
|
98
|
-
role: string;
|
|
99
|
-
approved?: boolean;
|
|
100
|
-
actedAt?: string | null;
|
|
101
|
-
}>, status: string, viewerId: string): boolean;
|
|
102
|
-
/** Feed category for home composition. */
|
|
103
|
-
export type FeedCategory = 'connection' | 'connector-flow' | 'expired';
|
|
104
|
-
/** Soft targets for home feed composition. */
|
|
105
|
-
export declare const FEED_SOFT_TARGETS: {
|
|
106
|
-
readonly connection: 3;
|
|
107
|
-
readonly connectorFlow: 2;
|
|
108
|
-
readonly expired: 2;
|
|
109
|
-
};
|
|
110
|
-
/**
|
|
111
|
-
* Classify an actionable opportunity into a feed category.
|
|
112
|
-
* Assumes the opportunity already passed isActionableForViewer or is expired.
|
|
113
|
-
*
|
|
114
|
-
* @param opp - Opportunity with actors and status
|
|
115
|
-
* @param viewerId - The viewing user's ID
|
|
116
|
-
* @returns Feed category
|
|
117
|
-
*/
|
|
118
|
-
export declare function classifyOpportunity(opp: {
|
|
119
|
-
actors: Array<{
|
|
120
|
-
userId: string;
|
|
121
|
-
role: string;
|
|
122
|
-
}>;
|
|
123
|
-
status: string;
|
|
124
|
-
}, viewerId: string): FeedCategory;
|
|
125
|
-
/**
|
|
126
|
-
* Select opportunities for the home feed using soft composition targets.
|
|
127
|
-
* Fills each category up to its target, then redistributes unused slots
|
|
128
|
-
* to categories that have more items available. Preserves input order.
|
|
129
|
-
*
|
|
130
|
-
* @param opportunities - Pre-sorted opportunities (by confidence/recency)
|
|
131
|
-
* @param viewerId - The viewing user's ID
|
|
132
|
-
* @returns Composition-balanced subset
|
|
133
|
-
*/
|
|
134
|
-
export declare function selectByComposition<T extends {
|
|
135
|
-
actors: Array<{
|
|
136
|
-
userId: string;
|
|
137
|
-
role: string;
|
|
138
|
-
}>;
|
|
139
|
-
status: string;
|
|
140
|
-
}>(opportunities: T[], viewerId: string): T[];
|
|
141
|
-
/**
|
|
142
|
-
* Deduplicate opportunities so each counterpart appears at most once.
|
|
143
|
-
* Keeps the opportunity with the highest interpretation.confidence per
|
|
144
|
-
* counterpart userId. On ties, the first encountered wins (stable).
|
|
145
|
-
*
|
|
146
|
-
* Counterpart = first actor whose userId !== viewerId and role !== 'introducer'.
|
|
147
|
-
* Opportunities without a derivable counterpart pass through undeduped.
|
|
148
|
-
*
|
|
149
|
-
* @param opportunities - Pre-sorted opportunities (e.g. by confidence/recency)
|
|
150
|
-
* @param viewerId - The viewing user's ID
|
|
151
|
-
* @returns Deduped subset preserving original input order among winners
|
|
152
|
-
*/
|
|
153
|
-
export declare function deduplicateByPerson<T extends {
|
|
154
|
-
actors: Array<{
|
|
155
|
-
userId: string;
|
|
156
|
-
role: string;
|
|
157
|
-
}>;
|
|
158
|
-
interpretation?: {
|
|
159
|
-
confidence?: number;
|
|
160
|
-
} | null;
|
|
161
|
-
}>(opportunities: T[], viewerId: string): T[];
|
|
162
|
-
/**
|
|
163
|
-
* Days a digest-delivered opportunity stays suppressed before it becomes
|
|
164
|
-
* eligible for a "still open" reminder re-show (when nothing fresh exists).
|
|
165
|
-
*/
|
|
166
|
-
export declare const DIGEST_REDELIVERY_COOLDOWN_DAYS = 5;
|
|
167
|
-
/** Committed delivery row shape consumed by {@link selectDigestCandidates}. */
|
|
168
|
-
export interface DigestDeliveredRow {
|
|
169
|
-
opportunityId: string;
|
|
170
|
-
deliveredAtStatus: string;
|
|
171
|
-
deliveredAt: Date;
|
|
172
|
-
}
|
|
173
|
-
/**
|
|
174
|
-
* Cross-day digest suppression for scheduled-brief candidates.
|
|
175
|
-
*
|
|
176
|
-
* Three rules, applied in order:
|
|
177
|
-
* 1. **Accepted-counterpart suppression** — a direct-connection candidate whose
|
|
178
|
-
* counterpart the viewer has already connected with (an `accepted`
|
|
179
|
-
* opportunity exists with that person) is dropped permanently. A new
|
|
180
|
-
* discovery run re-minting the same person must not resurface them.
|
|
181
|
-
* Connector-flow candidates (viewer is the introducer) are exempt: being
|
|
182
|
-
* connected with someone doesn't make an intro ask on their behalf stale.
|
|
183
|
-
* 2. **Delivery-ledger dedup** — candidates with a committed delivery row at
|
|
184
|
-
* the same `(opportunityId, status)` key have already been shown. While any
|
|
185
|
-
* fresh (never-shown) candidate exists, shown ones are dropped entirely.
|
|
186
|
-
* 3. **Cooldown re-show** — when *no* fresh candidate survives, already-shown
|
|
187
|
-
* candidates whose latest delivery is at least `cooldownDays` old are
|
|
188
|
-
* returned instead, least-recently-shown first, flagged via
|
|
189
|
-
* `redeliveryIds` so the digest can frame them as reminders.
|
|
190
|
-
*
|
|
191
|
-
* Pure function — callers fetch accepted counterparts and ledger rows.
|
|
192
|
-
*
|
|
193
|
-
* @param candidates - Deduped, confidence-ordered digest candidates.
|
|
194
|
-
* @param opts.viewerId - The digest recipient.
|
|
195
|
-
* @param opts.acceptedCounterpartIds - userIds the viewer already connected with.
|
|
196
|
-
* @param opts.deliveredRows - Committed ledger rows for the candidate ids.
|
|
197
|
-
* @param opts.now - Clock override for tests.
|
|
198
|
-
* @param opts.cooldownDays - Cooldown override (default {@link DIGEST_REDELIVERY_COOLDOWN_DAYS}).
|
|
199
|
-
* @returns Surviving pool plus the set of candidate ids that are cooldown re-shows.
|
|
200
|
-
*/
|
|
201
|
-
export declare function selectDigestCandidates<T extends {
|
|
202
|
-
id: string;
|
|
203
|
-
status: string;
|
|
204
|
-
actors: Array<{
|
|
205
|
-
userId: string;
|
|
206
|
-
role: string;
|
|
207
|
-
}>;
|
|
208
|
-
}>(candidates: T[], opts: {
|
|
209
|
-
viewerId: string;
|
|
210
|
-
acceptedCounterpartIds: ReadonlySet<string>;
|
|
211
|
-
deliveredRows: DigestDeliveredRow[];
|
|
212
|
-
now?: Date;
|
|
213
|
-
cooldownDays?: number;
|
|
214
|
-
}): {
|
|
215
|
-
pool: T[];
|
|
216
|
-
redeliveryIds: Set<string>;
|
|
217
|
-
};
|
|
218
|
-
//# sourceMappingURL=opportunity.utils.d.ts.map
|
|
5
|
+
export * from "./domain/opportunity.utils.js";
|
|
@@ -1,396 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
*
|
|
3
|
-
*
|
|
4
|
-
*
|
|
5
|
-
* With lens-based HyDE, strategy selection is handled automatically by the
|
|
6
|
-
* LensInferrer agent. This file provides corpus-to-role mapping for opportunity actors.
|
|
2
|
+
* Thin backward-compat shim — IND-551.
|
|
3
|
+
* Canonical location: opportunity/domain/opportunity.utils.ts
|
|
7
4
|
*/
|
|
8
|
-
|
|
9
|
-
const logger = log.graph.from('SelectByComposition');
|
|
10
|
-
const dedupeByPersonLog = log.graph.from('DeduplicateByPerson');
|
|
11
|
-
const digestCandidatesLog = log.graph.from('SelectDigestCandidates');
|
|
12
|
-
/**
|
|
13
|
-
* Derive actor roles from the corpus type of a lens match.
|
|
14
|
-
*
|
|
15
|
-
* When a candidate is found via:
|
|
16
|
-
* - "profiles" corpus → found by who they are → candidate can help → agent
|
|
17
|
-
* - "intents" corpus → found by what they need → candidate needs something → patient
|
|
18
|
-
*
|
|
19
|
-
* @param corpus - The target corpus that produced the match ('profiles' | 'intents')
|
|
20
|
-
* @returns Roles for the source (intent owner) and the candidate (matched user/intent)
|
|
21
|
-
*/
|
|
22
|
-
export function deriveRolesFromCorpus(corpus) {
|
|
23
|
-
switch (corpus) {
|
|
24
|
-
case 'profiles':
|
|
25
|
-
// Source seeks someone who can help → source is patient, candidate can help → agent
|
|
26
|
-
return { sourceRole: 'patient', candidateRole: 'agent' };
|
|
27
|
-
case 'intents':
|
|
28
|
-
// Source offers or needs; candidate has complementary goal → source is agent, candidate is patient
|
|
29
|
-
return { sourceRole: 'agent', candidateRole: 'patient' };
|
|
30
|
-
case 'premises':
|
|
31
|
-
// Premise matches are symmetric: two people whose self-descriptions align.
|
|
32
|
-
// Unlike intents (directional roles), premises express stable identity truths.
|
|
33
|
-
return { sourceRole: 'peer', candidateRole: 'peer' };
|
|
34
|
-
default:
|
|
35
|
-
return { sourceRole: 'peer', candidateRole: 'peer' };
|
|
36
|
-
}
|
|
37
|
-
}
|
|
38
|
-
/**
|
|
39
|
-
* Validates opportunity actors: if an opportunity has an introducer, it must have
|
|
40
|
-
* one or two non-introducer actors (1 = 1:1 intro e.g. "I want to connect with X";
|
|
41
|
-
* 2 = introducer connecting two others).
|
|
42
|
-
*
|
|
43
|
-
* Also rejects self-matches — the same person occupying both sides of a
|
|
44
|
-
* connection. The discovery/persist pipeline trusts the LLM evaluator's actor
|
|
45
|
-
* list, which can collapse onto a single user; downstream readers then garble
|
|
46
|
-
* identity (e.g. a connect link/greeting rendered in one party's voice while the
|
|
47
|
-
* card shows the viewer "matched with themselves"). Two degenerate shapes are
|
|
48
|
-
* blocked here, at the single persist chokepoint:
|
|
49
|
-
* - every userId-bearing non-introducer actor collapses to the same user,
|
|
50
|
-
* e.g. `[X(agent), X(patient)]`
|
|
51
|
-
* - an introducer who is also a participant ("Amina introduced you to Amina")
|
|
52
|
-
* Only `userId`-bearing actors are checked; role-only actors (legacy/tests) pass.
|
|
53
|
-
* Duplicate rows for one participant are allowed when at least one other distinct
|
|
54
|
-
* participant is present (some callers model multiple intents as multiple actor rows).
|
|
55
|
-
*
|
|
56
|
-
* @param actors - Array of actors with at least a role and optional userId
|
|
57
|
-
* @throws Error when the actor set is invalid
|
|
58
|
-
*/
|
|
59
|
-
export function validateOpportunityActors(actors) {
|
|
60
|
-
const introducerCount = actors.filter((a) => a.role === 'introducer').length;
|
|
61
|
-
const nonIntroducerCount = actors.filter((a) => a.role !== 'introducer').length;
|
|
62
|
-
if (introducerCount > 0 && (nonIntroducerCount < 1 || nonIntroducerCount > 2)) {
|
|
63
|
-
throw new Error('An opportunity with an introducer must have one or two other actors.');
|
|
64
|
-
}
|
|
65
|
-
// Self-match guard. Compare only actors that carry a userId so role-only
|
|
66
|
-
// shapes (used by some callers/tests) are unaffected.
|
|
67
|
-
const introducerUserIds = new Set(actors.filter((a) => a.role === 'introducer' && a.userId).map((a) => a.userId));
|
|
68
|
-
const nonIntroducerUserIds = actors
|
|
69
|
-
.filter((a) => a.role !== 'introducer' && a.userId)
|
|
70
|
-
.map((a) => a.userId);
|
|
71
|
-
for (const userId of nonIntroducerUserIds) {
|
|
72
|
-
if (introducerUserIds.has(userId)) {
|
|
73
|
-
throw new Error('An opportunity actor cannot be both the introducer and a participant (self-match).');
|
|
74
|
-
}
|
|
75
|
-
}
|
|
76
|
-
const uniqueNonIntroducerUserIds = new Set(nonIntroducerUserIds);
|
|
77
|
-
if (nonIntroducerUserIds.length > 1 && uniqueNonIntroducerUserIds.size === 1) {
|
|
78
|
-
throw new Error('An opportunity cannot match a user with themselves (duplicate participant).');
|
|
79
|
-
}
|
|
80
|
-
}
|
|
81
|
-
/**
|
|
82
|
-
* Read-level ACL: whether a user is an actor on the opportunity and may fetch
|
|
83
|
-
* its details. Intentionally broader than `isActionableForViewer` — a user can
|
|
84
|
-
* read an opportunity they are not currently expected to act on (e.g. an agent
|
|
85
|
-
* viewing an accepted opportunity).
|
|
86
|
-
*
|
|
87
|
-
* The feed graph and debug controller chain both predicates: an opportunity only
|
|
88
|
-
* reaches the home feed if it passes `canUserSeeOpportunity` first, then
|
|
89
|
-
* `isActionableForViewer`. For `agent with introducer at pending`,
|
|
90
|
-
* `canUserSeeOpportunity` returns false (read gate blocks it), so the opportunity
|
|
91
|
-
* never surfaces even though `isActionableForViewer` Rule 4 would return true in
|
|
92
|
-
* isolation. This is by design — the agent is not granted read access through the
|
|
93
|
-
* home path until the introducer path completes (negotiation → accepted).
|
|
94
|
-
*
|
|
95
|
-
* Compact Visibility Rule (from lifecycle doc):
|
|
96
|
-
* - Introducer or peer: always see.
|
|
97
|
-
* - Patient or party: see if (status is not latent, or there is no introducer).
|
|
98
|
-
* - Agent: see if (status is accepted/rejected/expired, or (status is not latent and there is no introducer)).
|
|
99
|
-
*/
|
|
100
|
-
export function canUserSeeOpportunity(actors, status, userId) {
|
|
101
|
-
const hasIntroducer = actors.some((a) => a.role === 'introducer');
|
|
102
|
-
const userRoles = actors.filter((a) => a.userId === userId).map((a) => a.role);
|
|
103
|
-
if (userRoles.length === 0)
|
|
104
|
-
return false;
|
|
105
|
-
return userRoles.some((role) => {
|
|
106
|
-
if (role === 'introducer')
|
|
107
|
-
return true;
|
|
108
|
-
if (role === 'peer')
|
|
109
|
-
return true;
|
|
110
|
-
if (role === 'patient' || role === 'party')
|
|
111
|
-
return status !== 'latent' || !hasIntroducer;
|
|
112
|
-
if (role === 'agent')
|
|
113
|
-
return (['accepted', 'rejected', 'expired'].includes(status) ||
|
|
114
|
-
(status !== 'latent' && !hasIntroducer));
|
|
115
|
-
return false;
|
|
116
|
-
});
|
|
117
|
-
}
|
|
118
|
-
/**
|
|
119
|
-
* Whether an opportunity should appear on the viewer's home feed (actionable =
|
|
120
|
-
* has a pending action for this user).
|
|
121
|
-
*
|
|
122
|
-
* Rules (see `docs/Latent Opportunity Lifecycle.md` — Role-Visibility Matrix):
|
|
123
|
-
*
|
|
124
|
-
* (1) `latent`, no introducer → all actors actionable
|
|
125
|
-
* (2) `latent`, introducer `approved !== true` → introducer only
|
|
126
|
-
* (3) `latent`, introducer `approved === true` → all non-introducer actors
|
|
127
|
-
* (4) `pending` (any introducer config) → non-introducer actors who have not acted.
|
|
128
|
-
* Acting is per-user, not per-actor-row: re-detection can append duplicate
|
|
129
|
-
* actor rows for the same user without `actedAt`, so any viewer row with
|
|
130
|
-
* `actedAt` means the viewer has already acted.
|
|
131
|
-
* (5) `accepted`/`rejected`/`expired`/`stalled`/`draft`/`negotiating`
|
|
132
|
-
* → never actionable
|
|
133
|
-
*
|
|
134
|
-
* The introducer approval signal is stored on the `introducer`-roled actor's
|
|
135
|
-
* `approved: boolean` field within the opportunity's `actors` JSONB. It flips
|
|
136
|
-
* from `false` to `true` when the introducer approves; status stays `latent`
|
|
137
|
-
* across the flip while a background negotiation runs.
|
|
138
|
-
*/
|
|
139
|
-
export function isActionableForViewer(actors, status, viewerId) {
|
|
140
|
-
const viewerActors = actors.filter((a) => a.userId === viewerId);
|
|
141
|
-
if (viewerActors.length === 0)
|
|
142
|
-
return false;
|
|
143
|
-
// Per-user acted signal: duplicate actor rows appended by re-detection may
|
|
144
|
-
// lack `actedAt` even though the viewer already accepted/rejected — a single
|
|
145
|
-
// stamped row means the viewer has acted on this opportunity.
|
|
146
|
-
const viewerActed = viewerActors.some((a) => !!a.actedAt);
|
|
147
|
-
const introducer = actors.find((a) => a.role === 'introducer');
|
|
148
|
-
const hasIntroducer = !!introducer;
|
|
149
|
-
const introducerApproved = introducer?.approved === true;
|
|
150
|
-
return viewerActors.some(({ role }) => {
|
|
151
|
-
if (role === 'introducer') {
|
|
152
|
-
// Rule 2: introducer sees own latent opp only while not yet approved.
|
|
153
|
-
return status === 'latent' && !introducerApproved;
|
|
154
|
-
}
|
|
155
|
-
// Non-introducer actors: patient / party / agent / peer.
|
|
156
|
-
if (status === 'latent') {
|
|
157
|
-
// Rule 1: no introducer → visible.
|
|
158
|
-
// Rule 3: introducer approved → visible.
|
|
159
|
-
return !hasIntroducer || introducerApproved;
|
|
160
|
-
}
|
|
161
|
-
if (status === 'pending') {
|
|
162
|
-
// Rule 4: pending is actionable only while the viewer has not acted.
|
|
163
|
-
// Once any of the viewer's actor rows has `actedAt`, the opportunity is
|
|
164
|
-
// waiting on the counterparty and should not appear in the viewer's feed.
|
|
165
|
-
return !viewerActed;
|
|
166
|
-
}
|
|
167
|
-
// Rule 5: never actionable at terminal or internal statuses.
|
|
168
|
-
return false;
|
|
169
|
-
});
|
|
170
|
-
}
|
|
171
|
-
/** Soft targets for home feed composition. */
|
|
172
|
-
export const FEED_SOFT_TARGETS = {
|
|
173
|
-
connection: 3,
|
|
174
|
-
connectorFlow: 2,
|
|
175
|
-
expired: 2,
|
|
176
|
-
};
|
|
177
|
-
/**
|
|
178
|
-
* Classify an actionable opportunity into a feed category.
|
|
179
|
-
* Assumes the opportunity already passed isActionableForViewer or is expired.
|
|
180
|
-
*
|
|
181
|
-
* @param opp - Opportunity with actors and status
|
|
182
|
-
* @param viewerId - The viewing user's ID
|
|
183
|
-
* @returns Feed category
|
|
184
|
-
*/
|
|
185
|
-
export function classifyOpportunity(opp, viewerId) {
|
|
186
|
-
if (opp.status === 'expired')
|
|
187
|
-
return 'expired';
|
|
188
|
-
const viewerIsIntroducer = opp.actors.some((a) => a.userId === viewerId && a.role === 'introducer');
|
|
189
|
-
if (viewerIsIntroducer)
|
|
190
|
-
return 'connector-flow';
|
|
191
|
-
return 'connection';
|
|
192
|
-
}
|
|
193
|
-
/**
|
|
194
|
-
* Select opportunities for the home feed using soft composition targets.
|
|
195
|
-
* Fills each category up to its target, then redistributes unused slots
|
|
196
|
-
* to categories that have more items available. Preserves input order.
|
|
197
|
-
*
|
|
198
|
-
* @param opportunities - Pre-sorted opportunities (by confidence/recency)
|
|
199
|
-
* @param viewerId - The viewing user's ID
|
|
200
|
-
* @returns Composition-balanced subset
|
|
201
|
-
*/
|
|
202
|
-
export function selectByComposition(opportunities, viewerId) {
|
|
203
|
-
const buckets = {
|
|
204
|
-
connection: [],
|
|
205
|
-
'connector-flow': [],
|
|
206
|
-
expired: [],
|
|
207
|
-
};
|
|
208
|
-
for (const opp of opportunities) {
|
|
209
|
-
const category = classifyOpportunity(opp, viewerId);
|
|
210
|
-
buckets[category].push(opp);
|
|
211
|
-
}
|
|
212
|
-
const targets = {
|
|
213
|
-
connection: FEED_SOFT_TARGETS.connection,
|
|
214
|
-
'connector-flow': FEED_SOFT_TARGETS.connectorFlow,
|
|
215
|
-
expired: FEED_SOFT_TARGETS.expired,
|
|
216
|
-
};
|
|
217
|
-
// First pass: fill each category up to its target
|
|
218
|
-
const selected = {
|
|
219
|
-
connection: buckets.connection.slice(0, targets.connection),
|
|
220
|
-
'connector-flow': buckets['connector-flow'].slice(0, targets['connector-flow']),
|
|
221
|
-
expired: buckets.expired.slice(0, targets.expired),
|
|
222
|
-
};
|
|
223
|
-
// Calculate unused slots and remaining items
|
|
224
|
-
const totalTarget = targets.connection + targets['connector-flow'] + targets.expired;
|
|
225
|
-
const usedSlots = selected.connection.length + selected['connector-flow'].length + selected.expired.length;
|
|
226
|
-
let unusedSlots = totalTarget - usedSlots;
|
|
227
|
-
// Second pass: redistribute unused slots to categories with remaining items
|
|
228
|
-
// Priority: connection > connector-flow > expired
|
|
229
|
-
const redistOrder = ['connection', 'connector-flow', 'expired'];
|
|
230
|
-
for (const category of redistOrder) {
|
|
231
|
-
if (unusedSlots <= 0)
|
|
232
|
-
break;
|
|
233
|
-
const remaining = buckets[category].slice(selected[category].length);
|
|
234
|
-
const take = Math.min(remaining.length, unusedSlots);
|
|
235
|
-
selected[category].push(...remaining.slice(0, take));
|
|
236
|
-
unusedSlots -= take;
|
|
237
|
-
}
|
|
238
|
-
// Merge in category priority order: connection > connector-flow > expired
|
|
239
|
-
// Within each category, preserve original input order
|
|
240
|
-
const indexMap = new Map(opportunities.map((opp, i) => [opp, i]));
|
|
241
|
-
const sortByOriginal = (a, b) => (indexMap.get(a) ?? 0) - (indexMap.get(b) ?? 0);
|
|
242
|
-
selected.connection.sort(sortByOriginal);
|
|
243
|
-
selected['connector-flow'].sort(sortByOriginal);
|
|
244
|
-
selected.expired.sort(sortByOriginal);
|
|
245
|
-
logger.info('Selected opportunities by composition', {
|
|
246
|
-
input: opportunities.length,
|
|
247
|
-
buckets: {
|
|
248
|
-
connection: buckets.connection.length,
|
|
249
|
-
connectorFlow: buckets['connector-flow'].length,
|
|
250
|
-
expired: buckets.expired.length,
|
|
251
|
-
},
|
|
252
|
-
selected: {
|
|
253
|
-
connection: selected.connection.length,
|
|
254
|
-
connectorFlow: selected['connector-flow'].length,
|
|
255
|
-
expired: selected.expired.length,
|
|
256
|
-
},
|
|
257
|
-
});
|
|
258
|
-
return [
|
|
259
|
-
...selected.connection,
|
|
260
|
-
...selected['connector-flow'],
|
|
261
|
-
...selected.expired,
|
|
262
|
-
];
|
|
263
|
-
}
|
|
264
|
-
/**
|
|
265
|
-
* Deduplicate opportunities so each counterpart appears at most once.
|
|
266
|
-
* Keeps the opportunity with the highest interpretation.confidence per
|
|
267
|
-
* counterpart userId. On ties, the first encountered wins (stable).
|
|
268
|
-
*
|
|
269
|
-
* Counterpart = first actor whose userId !== viewerId and role !== 'introducer'.
|
|
270
|
-
* Opportunities without a derivable counterpart pass through undeduped.
|
|
271
|
-
*
|
|
272
|
-
* @param opportunities - Pre-sorted opportunities (e.g. by confidence/recency)
|
|
273
|
-
* @param viewerId - The viewing user's ID
|
|
274
|
-
* @returns Deduped subset preserving original input order among winners
|
|
275
|
-
*/
|
|
276
|
-
export function deduplicateByPerson(opportunities, viewerId) {
|
|
277
|
-
const bestByCounterpart = new Map();
|
|
278
|
-
const noCounterpart = [];
|
|
279
|
-
for (let i = 0; i < opportunities.length; i++) {
|
|
280
|
-
const opp = opportunities[i];
|
|
281
|
-
const counterpart = opp.actors.find((a) => a.userId !== viewerId && a.role !== 'introducer');
|
|
282
|
-
if (!counterpart) {
|
|
283
|
-
noCounterpart.push({ opp, index: i });
|
|
284
|
-
continue;
|
|
285
|
-
}
|
|
286
|
-
const key = counterpart.userId;
|
|
287
|
-
const existing = bestByCounterpart.get(key);
|
|
288
|
-
if (!existing) {
|
|
289
|
-
bestByCounterpart.set(key, { opp, index: i });
|
|
290
|
-
continue;
|
|
291
|
-
}
|
|
292
|
-
const newConf = opp.interpretation?.confidence ?? -1;
|
|
293
|
-
const oldConf = existing.opp.interpretation?.confidence ?? -1;
|
|
294
|
-
if (newConf > oldConf) {
|
|
295
|
-
bestByCounterpart.set(key, { opp, index: i });
|
|
296
|
-
}
|
|
297
|
-
}
|
|
298
|
-
const all = [...bestByCounterpart.values(), ...noCounterpart];
|
|
299
|
-
all.sort((a, b) => a.index - b.index);
|
|
300
|
-
const result = all.map((entry) => entry.opp);
|
|
301
|
-
if (result.length < opportunities.length) {
|
|
302
|
-
dedupeByPersonLog.info('Deduped opportunities by person', {
|
|
303
|
-
input: opportunities.length,
|
|
304
|
-
output: result.length,
|
|
305
|
-
});
|
|
306
|
-
}
|
|
307
|
-
return result;
|
|
308
|
-
}
|
|
309
|
-
/**
|
|
310
|
-
* Days a digest-delivered opportunity stays suppressed before it becomes
|
|
311
|
-
* eligible for a "still open" reminder re-show (when nothing fresh exists).
|
|
312
|
-
*/
|
|
313
|
-
export const DIGEST_REDELIVERY_COOLDOWN_DAYS = 5;
|
|
314
|
-
/**
|
|
315
|
-
* Cross-day digest suppression for scheduled-brief candidates.
|
|
316
|
-
*
|
|
317
|
-
* Three rules, applied in order:
|
|
318
|
-
* 1. **Accepted-counterpart suppression** — a direct-connection candidate whose
|
|
319
|
-
* counterpart the viewer has already connected with (an `accepted`
|
|
320
|
-
* opportunity exists with that person) is dropped permanently. A new
|
|
321
|
-
* discovery run re-minting the same person must not resurface them.
|
|
322
|
-
* Connector-flow candidates (viewer is the introducer) are exempt: being
|
|
323
|
-
* connected with someone doesn't make an intro ask on their behalf stale.
|
|
324
|
-
* 2. **Delivery-ledger dedup** — candidates with a committed delivery row at
|
|
325
|
-
* the same `(opportunityId, status)` key have already been shown. While any
|
|
326
|
-
* fresh (never-shown) candidate exists, shown ones are dropped entirely.
|
|
327
|
-
* 3. **Cooldown re-show** — when *no* fresh candidate survives, already-shown
|
|
328
|
-
* candidates whose latest delivery is at least `cooldownDays` old are
|
|
329
|
-
* returned instead, least-recently-shown first, flagged via
|
|
330
|
-
* `redeliveryIds` so the digest can frame them as reminders.
|
|
331
|
-
*
|
|
332
|
-
* Pure function — callers fetch accepted counterparts and ledger rows.
|
|
333
|
-
*
|
|
334
|
-
* @param candidates - Deduped, confidence-ordered digest candidates.
|
|
335
|
-
* @param opts.viewerId - The digest recipient.
|
|
336
|
-
* @param opts.acceptedCounterpartIds - userIds the viewer already connected with.
|
|
337
|
-
* @param opts.deliveredRows - Committed ledger rows for the candidate ids.
|
|
338
|
-
* @param opts.now - Clock override for tests.
|
|
339
|
-
* @param opts.cooldownDays - Cooldown override (default {@link DIGEST_REDELIVERY_COOLDOWN_DAYS}).
|
|
340
|
-
* @returns Surviving pool plus the set of candidate ids that are cooldown re-shows.
|
|
341
|
-
*/
|
|
342
|
-
export function selectDigestCandidates(candidates, opts) {
|
|
343
|
-
const { viewerId, acceptedCounterpartIds } = opts;
|
|
344
|
-
// Rule 1: accepted-counterpart suppression (direct connections only).
|
|
345
|
-
const afterAccepted = candidates.filter((opp) => {
|
|
346
|
-
const viewerIsIntroducer = opp.actors.some((a) => a.role === 'introducer' && a.userId === viewerId);
|
|
347
|
-
if (viewerIsIntroducer)
|
|
348
|
-
return true;
|
|
349
|
-
const counterpart = opp.actors.find((a) => a.userId !== viewerId && a.role !== 'introducer');
|
|
350
|
-
return !counterpart || !acceptedCounterpartIds.has(counterpart.userId);
|
|
351
|
-
});
|
|
352
|
-
if (afterAccepted.length < candidates.length) {
|
|
353
|
-
digestCandidatesLog.info('Accepted-counterpart suppression dropped candidates', {
|
|
354
|
-
dropped: candidates.length - afterAccepted.length,
|
|
355
|
-
total: candidates.length,
|
|
356
|
-
});
|
|
357
|
-
}
|
|
358
|
-
// Rule 2: delivery-ledger dedup keyed (opportunityId, deliveredAtStatus).
|
|
359
|
-
// Keep the LATEST committed delivery per key — cooldown measures time since
|
|
360
|
-
// the user last saw the card, not since they first saw it.
|
|
361
|
-
const lastDeliveredByKey = new Map();
|
|
362
|
-
for (const row of opts.deliveredRows) {
|
|
363
|
-
if (!(row.deliveredAt instanceof Date) || Number.isNaN(row.deliveredAt.getTime()))
|
|
364
|
-
continue;
|
|
365
|
-
const key = `${row.opportunityId}:${row.deliveredAtStatus}`;
|
|
366
|
-
const existing = lastDeliveredByKey.get(key);
|
|
367
|
-
if (!existing || row.deliveredAt > existing)
|
|
368
|
-
lastDeliveredByKey.set(key, row.deliveredAt);
|
|
369
|
-
}
|
|
370
|
-
const fresh = afterAccepted.filter((opp) => !lastDeliveredByKey.has(`${opp.id}:${opp.status}`));
|
|
371
|
-
if (fresh.length > 0) {
|
|
372
|
-
if (fresh.length < afterAccepted.length) {
|
|
373
|
-
digestCandidatesLog.info('Ledger dedup dropped already-shown candidates', {
|
|
374
|
-
dropped: afterAccepted.length - fresh.length,
|
|
375
|
-
});
|
|
376
|
-
}
|
|
377
|
-
return { pool: fresh, redeliveryIds: new Set() };
|
|
378
|
-
}
|
|
379
|
-
// Rule 3: nothing fresh — re-show the least-recently-shown candidates past cooldown.
|
|
380
|
-
const cooldownMs = (opts.cooldownDays ?? DIGEST_REDELIVERY_COOLDOWN_DAYS) * 86400000;
|
|
381
|
-
const now = opts.now ?? new Date();
|
|
382
|
-
const cooled = afterAccepted
|
|
383
|
-
.map((opp) => ({ opp, at: lastDeliveredByKey.get(`${opp.id}:${opp.status}`) }))
|
|
384
|
-
.filter((entry) => entry.at instanceof Date && now.getTime() - entry.at.getTime() >= cooldownMs)
|
|
385
|
-
.sort((a, b) => a.at.getTime() - b.at.getTime());
|
|
386
|
-
if (cooled.length > 0) {
|
|
387
|
-
digestCandidatesLog.info('No fresh candidates — re-showing past-cooldown candidates', {
|
|
388
|
-
count: cooled.length,
|
|
389
|
-
});
|
|
390
|
-
}
|
|
391
|
-
return {
|
|
392
|
-
pool: cooled.map((entry) => entry.opp),
|
|
393
|
-
redeliveryIds: new Set(cooled.map((entry) => entry.opp.id)),
|
|
394
|
-
};
|
|
395
|
-
}
|
|
396
|
-
//# sourceMappingURL=opportunity.utils.js.map
|
|
5
|
+
export * from "./domain/opportunity.utils.js";
|
|
@@ -58,4 +58,3 @@ export declare const OUTCOME_MIN_INDEPENDENT_EXAMPLES: number;
|
|
|
58
58
|
export declare const OUTCOME_MAX_CANDIDATES = 48;
|
|
59
59
|
/** Max chars of presentation-safe candidate snapshot stored/sent per example. */
|
|
60
60
|
export declare const OUTCOME_MAX_PUBLIC_CONTEXT_CHARS = 400;
|
|
61
|
-
//# sourceMappingURL=outcome.env.d.ts.map
|
|
@@ -61,4 +61,3 @@ export const OUTCOME_MIN_INDEPENDENT_EXAMPLES = OUTCOME_MIN_INDEPENDENT_SUPPORT
|
|
|
61
61
|
export const OUTCOME_MAX_CANDIDATES = 48;
|
|
62
62
|
/** Max chars of presentation-safe candidate snapshot stored/sent per example. */
|
|
63
63
|
export const OUTCOME_MAX_PUBLIC_CONTEXT_CHARS = 400;
|
|
64
|
-
//# sourceMappingURL=outcome.env.js.map
|
|
@@ -27,4 +27,3 @@ import type { JoinOutcomeHypothesesInput, OutcomeShadowResult } from "./outcome.
|
|
|
27
27
|
* label asc) for deterministic ordering, each carrying only qualified sides.
|
|
28
28
|
*/
|
|
29
29
|
export declare function joinOutcomeHypotheses(input: JoinOutcomeHypothesesInput): OutcomeShadowResult;
|
|
30
|
-
//# sourceMappingURL=outcome.hypotheses.d.ts.map
|
|
@@ -115,4 +115,3 @@ export function joinOutcomeHypotheses(input) {
|
|
|
115
115
|
hypotheses.sort((a, b) => b.minIndependentSupport - a.minIndependentSupport || a.label.localeCompare(b.label));
|
|
116
116
|
return { poolSize, eligibleCount: hypotheses.length, hypotheses };
|
|
117
117
|
}
|
|
118
|
-
//# sourceMappingURL=outcome.hypotheses.js.map
|