@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,1491 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
*
|
|
3
|
-
*
|
|
4
|
-
* Architecture: Follows intent graph pattern with Annotation-based state.
|
|
5
|
-
* Flow: Prep → Scope → Discovery → Evaluation → Ranking → Persist → END
|
|
6
|
-
*
|
|
7
|
-
* Key Constraints:
|
|
8
|
-
* - Opportunities only between intents sharing the same index
|
|
9
|
-
* - Both intents must have hyde documents for semantic matching
|
|
10
|
-
* - Non-indexed intents cannot participate in discovery
|
|
11
|
-
*
|
|
12
|
-
* Constructor injects Database, Embedder, and compiled HyDE graph.
|
|
2
|
+
* Thin backward-compat shim — IND-551.
|
|
3
|
+
* Canonical location: opportunity/application/opportunity.graph.ts
|
|
13
4
|
*/
|
|
14
|
-
|
|
15
|
-
import type { DebugMetaAgent } from '../chat/chat-streaming.types.js';
|
|
16
|
-
import { type IndexedIntent, type SourceProfileData, type TargetNetwork, type CandidateMatch, type EvaluatedCandidate, type EvaluatedOpportunity, type EvaluatedOpportunityActor } from './opportunity.state.js';
|
|
17
|
-
import { type CandidateProfile, type EvaluatorEntity, type EvaluatorInput } from './opportunity.evaluator.js';
|
|
18
|
-
import type { OpportunityGraphDatabase } from '../shared/interfaces/database.interface.js';
|
|
19
|
-
/** Optional evaluator for testing (avoids LLM calls). */
|
|
20
|
-
export type OpportunityEvaluatorLike = {
|
|
21
|
-
invoke?: (sourceProfileContext: string, candidates: CandidateProfile[], options: {
|
|
22
|
-
minScore?: number;
|
|
23
|
-
}) => Promise<Array<{
|
|
24
|
-
sourceId: string;
|
|
25
|
-
candidateId: string;
|
|
26
|
-
score: number;
|
|
27
|
-
reasoning: string;
|
|
28
|
-
valencyRole: 'Agent' | 'Patient' | 'Peer';
|
|
29
|
-
}>>;
|
|
30
|
-
invokeEntityBundle?: (input: EvaluatorInput, options: {
|
|
31
|
-
minScore?: number;
|
|
32
|
-
}) => Promise<Array<{
|
|
33
|
-
reasoning: string;
|
|
34
|
-
score: number;
|
|
35
|
-
actors: Array<{
|
|
36
|
-
userId: string;
|
|
37
|
-
role: 'agent' | 'patient' | 'peer';
|
|
38
|
-
intentId?: string | null;
|
|
39
|
-
evidenceKey?: string | null;
|
|
40
|
-
}>;
|
|
41
|
-
}>>;
|
|
42
|
-
};
|
|
43
|
-
import type { Embedder } from '../shared/interfaces/embedder.interface.js';
|
|
44
|
-
import type { CreateOpportunityData, Opportunity, OpportunityStatus } from '../shared/interfaces/database.interface.js';
|
|
45
|
-
import type { NegotiationGraphLike, UserNegotiationContext } from "../negotiation/negotiation.state.js";
|
|
46
|
-
import type { AgentDispatcher } from "../shared/interfaces/agent-dispatcher.interface.js";
|
|
47
|
-
interface NegotiationIntentSource {
|
|
48
|
-
id?: string | null;
|
|
49
|
-
summary?: string | null;
|
|
50
|
-
payload?: string | null;
|
|
51
|
-
}
|
|
52
|
-
/** Put an opportunity actor's exact intent first, then fill the bounded context without duplicates. */
|
|
53
|
-
export declare function buildPrioritizedNegotiationIntents(activeIntents: readonly NegotiationIntentSource[], exactIntentId?: string | null, fallbackIntent?: NegotiationIntentSource | null): UserNegotiationContext['intents'];
|
|
54
|
-
/** Input shape for the HyDE graph invoke call (query-based embedding). */
|
|
55
|
-
export interface HydeGeneratorInvokeInput {
|
|
56
|
-
sourceType: 'query';
|
|
57
|
-
sourceText: string;
|
|
58
|
-
forceRegenerate?: boolean;
|
|
59
|
-
profileContext?: string;
|
|
60
|
-
}
|
|
61
|
-
/** Optional notifier for opportunity send; when omitted, the real queue is used via dynamic import. */
|
|
62
|
-
export type QueueOpportunityNotificationFn = (opportunityId: string, recipientId: string, priority: 'immediate' | 'high' | 'low') => Promise<unknown>;
|
|
63
|
-
/** Input for the host-side newborn pool-preference stamper (IND-420 P4b). */
|
|
64
|
-
export interface StampNewbornOpportunitiesInput {
|
|
65
|
-
ownerUserId: string;
|
|
66
|
-
intentId: string;
|
|
67
|
-
items: CreateOpportunityData[];
|
|
68
|
-
}
|
|
69
|
-
/**
|
|
70
|
-
* Optional host callback that stamps call-local create items before INSERT.
|
|
71
|
-
* It must preserve array length/order and may only enrich metadata/signals.
|
|
72
|
-
*/
|
|
73
|
-
export type StampNewbornOpportunitiesFn = (input: StampNewbornOpportunitiesInput) => Promise<CreateOpportunityData[]>;
|
|
74
|
-
/**
|
|
75
|
-
* Builds a compact text summary of the discoverer's profile and active intents
|
|
76
|
-
* for use as profileContext in HyDE generation.
|
|
77
|
-
* @param profile - The discoverer's profile data (identity, attributes)
|
|
78
|
-
* @param intents - The discoverer's indexed intents (capped at 5)
|
|
79
|
-
* @returns A context string, or undefined if no meaningful data is available
|
|
80
|
-
*/
|
|
81
|
-
export declare function buildDiscovererContext(profile: SourceProfileData | null | undefined, intents: IndexedIntent[] | undefined): string | undefined;
|
|
82
|
-
/**
|
|
83
|
-
* Factory class to build and compile the Opportunity Graph.
|
|
84
|
-
* Uses dependency injection for testability.
|
|
85
|
-
*/
|
|
86
|
-
export declare class OpportunityGraphFactory {
|
|
87
|
-
private database;
|
|
88
|
-
private embedder;
|
|
89
|
-
private hydeGenerator;
|
|
90
|
-
private optionalEvaluator?;
|
|
91
|
-
private queueNotification?;
|
|
92
|
-
private negotiationGraph?;
|
|
93
|
-
/**
|
|
94
|
-
* Used on the chat path to decide whether to wait for the user's personal
|
|
95
|
-
* agent (long timeout) or fall back to the system agent immediately
|
|
96
|
-
* (short timeout). Without it, the chat path always uses a short timeout.
|
|
97
|
-
*/
|
|
98
|
-
private agentDispatcher?;
|
|
99
|
-
/**
|
|
100
|
-
* Callback to enqueue a negotiate_existing job for an opportunity.
|
|
101
|
-
* When provided, negotiate_existing mode uses this to queue follow-up
|
|
102
|
-
* negotiations after introducer approval.
|
|
103
|
-
*/
|
|
104
|
-
private queueNegotiateExisting?;
|
|
105
|
-
/** Host-side P4b stamper. Omitted by manual/introducer/enrichment roots. */
|
|
106
|
-
private stampNewbornOpportunities?;
|
|
107
|
-
constructor(database: OpportunityGraphDatabase, embedder: Embedder, hydeGenerator: {
|
|
108
|
-
invoke: (input: HydeGeneratorInvokeInput) => Promise<{
|
|
109
|
-
hydeEmbeddings: Record<string, number[]>;
|
|
110
|
-
lenses?: Array<{
|
|
111
|
-
label: string;
|
|
112
|
-
corpus: 'profiles' | 'intents' | 'premises';
|
|
113
|
-
}>;
|
|
114
|
-
hydeDocuments?: Record<string, {
|
|
115
|
-
hydeText?: string;
|
|
116
|
-
lens?: string;
|
|
117
|
-
}>;
|
|
118
|
-
}>;
|
|
119
|
-
}, optionalEvaluator?: OpportunityEvaluatorLike | undefined, queueNotification?: QueueOpportunityNotificationFn | undefined, negotiationGraph?: NegotiationGraphLike | undefined,
|
|
120
|
-
/**
|
|
121
|
-
* Used on the chat path to decide whether to wait for the user's personal
|
|
122
|
-
* agent (long timeout) or fall back to the system agent immediately
|
|
123
|
-
* (short timeout). Without it, the chat path always uses a short timeout.
|
|
124
|
-
*/
|
|
125
|
-
agentDispatcher?: Pick<AgentDispatcher, "hasExternalAgent"> | undefined,
|
|
126
|
-
/**
|
|
127
|
-
* Callback to enqueue a negotiate_existing job for an opportunity.
|
|
128
|
-
* When provided, negotiate_existing mode uses this to queue follow-up
|
|
129
|
-
* negotiations after introducer approval.
|
|
130
|
-
*/
|
|
131
|
-
queueNegotiateExisting?: ((opportunityId: string, userId: string) => Promise<void>) | undefined,
|
|
132
|
-
/** Host-side P4b stamper. Omitted by manual/introducer/enrichment roots. */
|
|
133
|
-
stampNewbornOpportunities?: StampNewbornOpportunitiesFn | undefined);
|
|
134
|
-
createGraph(): import("@langchain/langgraph").CompiledStateGraph<{
|
|
135
|
-
userId: Id<"users">;
|
|
136
|
-
searchQuery: string | undefined;
|
|
137
|
-
networkId: Id<"networks"> | undefined;
|
|
138
|
-
indexScope: Id<"networks">[] | undefined;
|
|
139
|
-
triggerIntentId: Id<"intents"> | undefined;
|
|
140
|
-
targetUserId: Id<"users"> | undefined;
|
|
141
|
-
onBehalfOfUserId: Id<"users"> | undefined;
|
|
142
|
-
options: import("./opportunity.state.js").OpportunityGraphOptions;
|
|
143
|
-
trigger: import("./opportunity.state.js").OpportunityTrigger;
|
|
144
|
-
dedupAlreadyAccepted: {
|
|
145
|
-
opportunityId: string;
|
|
146
|
-
counterpartyUserId: string;
|
|
147
|
-
}[];
|
|
148
|
-
operationMode: "delete" | "send" | "update" | "create" | "create_introduction" | "continue_discovery" | "read" | "negotiate_existing" | "approve_introduction";
|
|
149
|
-
introductionEntities: EvaluatorEntity[];
|
|
150
|
-
introductionHint: string | undefined;
|
|
151
|
-
requiredNetworkId: Id<"networks"> | undefined;
|
|
152
|
-
introductionContext: {
|
|
153
|
-
createdByName?: string;
|
|
154
|
-
} | undefined;
|
|
155
|
-
opportunityId: string | undefined;
|
|
156
|
-
newStatus: string | undefined;
|
|
157
|
-
indexedIntents: IndexedIntent[];
|
|
158
|
-
userNetworks: Id<"networks">[];
|
|
159
|
-
targetNetworks: TargetNetwork[];
|
|
160
|
-
indexRelevancyScores: Record<string, number>;
|
|
161
|
-
discoverySource: "intent" | "context";
|
|
162
|
-
resolvedTriggerIntentId: Id<"intents"> | undefined;
|
|
163
|
-
sourceProfile: SourceProfileData | null;
|
|
164
|
-
sourcePremises: {
|
|
165
|
-
premiseId: Id<"premises">;
|
|
166
|
-
embedding: number[];
|
|
167
|
-
}[];
|
|
168
|
-
sourceContexts: {
|
|
169
|
-
contextId: string;
|
|
170
|
-
networkId: Id<"networks">;
|
|
171
|
-
text: string;
|
|
172
|
-
embedding: number[];
|
|
173
|
-
}[];
|
|
174
|
-
resolvedIntentInIndex: boolean;
|
|
175
|
-
createIntentSuggested: boolean;
|
|
176
|
-
suggestedIntentDescription: string | undefined;
|
|
177
|
-
hydeEmbeddings: Record<string, number[]>;
|
|
178
|
-
candidates: CandidateMatch[];
|
|
179
|
-
remainingCandidates: CandidateMatch[];
|
|
180
|
-
discoveryId: string | null;
|
|
181
|
-
evaluatedCandidates: EvaluatedCandidate[];
|
|
182
|
-
evaluatedOpportunities: EvaluatedOpportunity[];
|
|
183
|
-
opportunities: Opportunity[];
|
|
184
|
-
existingBetweenActors: {
|
|
185
|
-
candidateUserId: Id<"users">;
|
|
186
|
-
networkId: Id<"networks">;
|
|
187
|
-
existingOpportunityId?: Id<"opportunities">;
|
|
188
|
-
existingStatus?: OpportunityStatus;
|
|
189
|
-
reason?: "same_trigger_recent_duplicate" | "pair_active_negotiation" | "final_atomic_conflict";
|
|
190
|
-
existingTriggerIntentId?: string;
|
|
191
|
-
}[];
|
|
192
|
-
persistenceOutcome: import("./opportunity.state.js").OpportunityPersistenceOutcome | undefined;
|
|
193
|
-
negotiationContinuationReceipt: NegotiationContinuationReceipt | undefined;
|
|
194
|
-
error: string | undefined;
|
|
195
|
-
readResult: {
|
|
196
|
-
count: number;
|
|
197
|
-
message?: string;
|
|
198
|
-
opportunities: Array<{
|
|
199
|
-
id: string;
|
|
200
|
-
indexName: string;
|
|
201
|
-
connectedWith: string[];
|
|
202
|
-
suggestedBy: string | null;
|
|
203
|
-
reasoning: string;
|
|
204
|
-
status: string;
|
|
205
|
-
category: string;
|
|
206
|
-
confidence: number | null;
|
|
207
|
-
source: string | null;
|
|
208
|
-
}>;
|
|
209
|
-
} | undefined;
|
|
210
|
-
mutationResult: {
|
|
211
|
-
success: boolean;
|
|
212
|
-
message?: string;
|
|
213
|
-
opportunityId?: string;
|
|
214
|
-
notified?: string[];
|
|
215
|
-
conversationId?: string;
|
|
216
|
-
error?: string;
|
|
217
|
-
} | undefined;
|
|
218
|
-
trace: {
|
|
219
|
-
node: string;
|
|
220
|
-
detail?: string;
|
|
221
|
-
data?: Record<string, unknown>;
|
|
222
|
-
}[];
|
|
223
|
-
agentTimings: DebugMetaAgent[];
|
|
224
|
-
discoveryNegotiations: {
|
|
225
|
-
outcome: {
|
|
226
|
-
reasoning: string;
|
|
227
|
-
hasOpportunity: boolean;
|
|
228
|
-
reason?: "timeout" | "turn_cap" | "screened_out" | undefined;
|
|
229
|
-
agreedRoles?: {
|
|
230
|
-
userId: string;
|
|
231
|
-
role: "agent" | "patient" | "peer";
|
|
232
|
-
}[] | undefined;
|
|
233
|
-
};
|
|
234
|
-
counterpartyHint: string;
|
|
235
|
-
indexContext: string;
|
|
236
|
-
counterpartyId: string;
|
|
237
|
-
turns: {
|
|
238
|
-
reasoning: string;
|
|
239
|
-
action: "propose" | "accept" | "reject" | "counter" | "question" | "outreach" | "withdraw" | "decline" | "ask_user";
|
|
240
|
-
suggestedRoles: {
|
|
241
|
-
ownUser: "agent" | "patient" | "peer";
|
|
242
|
-
otherUser: "agent" | "patient" | "peer";
|
|
243
|
-
};
|
|
244
|
-
}[];
|
|
245
|
-
seedAssessmentScore?: number | undefined;
|
|
246
|
-
}[];
|
|
247
|
-
discoverySummary: import("../index.js").DiscoverySummary | null;
|
|
248
|
-
}, {
|
|
249
|
-
userId?: Id<"users"> | import("@langchain/langgraph").OverwriteValue<Id<"users">> | undefined;
|
|
250
|
-
searchQuery?: string | import("@langchain/langgraph").OverwriteValue<string | undefined> | undefined;
|
|
251
|
-
networkId?: Id<"networks"> | import("@langchain/langgraph").OverwriteValue<Id<"networks"> | undefined> | undefined;
|
|
252
|
-
indexScope?: Id<"networks">[] | import("@langchain/langgraph").OverwriteValue<Id<"networks">[] | undefined> | undefined;
|
|
253
|
-
triggerIntentId?: Id<"intents"> | import("@langchain/langgraph").OverwriteValue<Id<"intents"> | undefined> | undefined;
|
|
254
|
-
targetUserId?: Id<"users"> | import("@langchain/langgraph").OverwriteValue<Id<"users"> | undefined> | undefined;
|
|
255
|
-
onBehalfOfUserId?: Id<"users"> | import("@langchain/langgraph").OverwriteValue<Id<"users"> | undefined> | undefined;
|
|
256
|
-
options?: import("./opportunity.state.js").OpportunityGraphOptions | import("@langchain/langgraph").OverwriteValue<import("./opportunity.state.js").OpportunityGraphOptions> | undefined;
|
|
257
|
-
trigger?: import("./opportunity.state.js").OpportunityTrigger | import("@langchain/langgraph").OverwriteValue<import("./opportunity.state.js").OpportunityTrigger> | undefined;
|
|
258
|
-
dedupAlreadyAccepted?: {
|
|
259
|
-
opportunityId: string;
|
|
260
|
-
counterpartyUserId: string;
|
|
261
|
-
}[] | import("@langchain/langgraph").OverwriteValue<{
|
|
262
|
-
opportunityId: string;
|
|
263
|
-
counterpartyUserId: string;
|
|
264
|
-
}[]> | undefined;
|
|
265
|
-
operationMode?: "delete" | "send" | "update" | "create" | "create_introduction" | "continue_discovery" | "read" | "negotiate_existing" | "approve_introduction" | import("@langchain/langgraph").OverwriteValue<"delete" | "send" | "update" | "create" | "create_introduction" | "continue_discovery" | "read" | "negotiate_existing" | "approve_introduction"> | undefined;
|
|
266
|
-
introductionEntities?: EvaluatorEntity[] | import("@langchain/langgraph").OverwriteValue<EvaluatorEntity[]> | undefined;
|
|
267
|
-
introductionHint?: string | import("@langchain/langgraph").OverwriteValue<string | undefined> | undefined;
|
|
268
|
-
requiredNetworkId?: Id<"networks"> | import("@langchain/langgraph").OverwriteValue<Id<"networks"> | undefined> | undefined;
|
|
269
|
-
introductionContext?: {
|
|
270
|
-
createdByName?: string;
|
|
271
|
-
} | import("@langchain/langgraph").OverwriteValue<{
|
|
272
|
-
createdByName?: string;
|
|
273
|
-
} | undefined> | undefined;
|
|
274
|
-
opportunityId?: string | import("@langchain/langgraph").OverwriteValue<string | undefined> | undefined;
|
|
275
|
-
newStatus?: string | import("@langchain/langgraph").OverwriteValue<string | undefined> | undefined;
|
|
276
|
-
indexedIntents?: IndexedIntent[] | import("@langchain/langgraph").OverwriteValue<IndexedIntent[]> | undefined;
|
|
277
|
-
userNetworks?: Id<"networks">[] | import("@langchain/langgraph").OverwriteValue<Id<"networks">[]> | undefined;
|
|
278
|
-
targetNetworks?: TargetNetwork[] | import("@langchain/langgraph").OverwriteValue<TargetNetwork[]> | undefined;
|
|
279
|
-
indexRelevancyScores?: Record<string, number> | import("@langchain/langgraph").OverwriteValue<Record<string, number>> | undefined;
|
|
280
|
-
discoverySource?: "intent" | "context" | import("@langchain/langgraph").OverwriteValue<"intent" | "context"> | undefined;
|
|
281
|
-
resolvedTriggerIntentId?: Id<"intents"> | import("@langchain/langgraph").OverwriteValue<Id<"intents"> | undefined> | undefined;
|
|
282
|
-
sourceProfile?: SourceProfileData | import("@langchain/langgraph").OverwriteValue<SourceProfileData | null> | null | undefined;
|
|
283
|
-
sourcePremises?: {
|
|
284
|
-
premiseId: Id<"premises">;
|
|
285
|
-
embedding: number[];
|
|
286
|
-
}[] | import("@langchain/langgraph").OverwriteValue<{
|
|
287
|
-
premiseId: Id<"premises">;
|
|
288
|
-
embedding: number[];
|
|
289
|
-
}[]> | undefined;
|
|
290
|
-
sourceContexts?: {
|
|
291
|
-
contextId: string;
|
|
292
|
-
networkId: Id<"networks">;
|
|
293
|
-
text: string;
|
|
294
|
-
embedding: number[];
|
|
295
|
-
}[] | import("@langchain/langgraph").OverwriteValue<{
|
|
296
|
-
contextId: string;
|
|
297
|
-
networkId: Id<"networks">;
|
|
298
|
-
text: string;
|
|
299
|
-
embedding: number[];
|
|
300
|
-
}[]> | undefined;
|
|
301
|
-
resolvedIntentInIndex?: boolean | import("@langchain/langgraph").OverwriteValue<boolean> | undefined;
|
|
302
|
-
createIntentSuggested?: boolean | import("@langchain/langgraph").OverwriteValue<boolean> | undefined;
|
|
303
|
-
suggestedIntentDescription?: string | import("@langchain/langgraph").OverwriteValue<string | undefined> | undefined;
|
|
304
|
-
hydeEmbeddings?: Record<string, number[]> | import("@langchain/langgraph").OverwriteValue<Record<string, number[]>> | undefined;
|
|
305
|
-
candidates?: CandidateMatch[] | import("@langchain/langgraph").OverwriteValue<CandidateMatch[]> | undefined;
|
|
306
|
-
remainingCandidates?: CandidateMatch[] | import("@langchain/langgraph").OverwriteValue<CandidateMatch[]> | undefined;
|
|
307
|
-
discoveryId?: string | import("@langchain/langgraph").OverwriteValue<string | null> | null | undefined;
|
|
308
|
-
evaluatedCandidates?: EvaluatedCandidate[] | import("@langchain/langgraph").OverwriteValue<EvaluatedCandidate[]> | undefined;
|
|
309
|
-
evaluatedOpportunities?: EvaluatedOpportunity[] | import("@langchain/langgraph").OverwriteValue<EvaluatedOpportunity[]> | undefined;
|
|
310
|
-
opportunities?: Opportunity[] | import("@langchain/langgraph").OverwriteValue<Opportunity[]> | undefined;
|
|
311
|
-
existingBetweenActors?: {
|
|
312
|
-
candidateUserId: Id<"users">;
|
|
313
|
-
networkId: Id<"networks">;
|
|
314
|
-
existingOpportunityId?: Id<"opportunities">;
|
|
315
|
-
existingStatus?: OpportunityStatus;
|
|
316
|
-
reason?: "same_trigger_recent_duplicate" | "pair_active_negotiation" | "final_atomic_conflict";
|
|
317
|
-
existingTriggerIntentId?: string;
|
|
318
|
-
}[] | import("@langchain/langgraph").OverwriteValue<{
|
|
319
|
-
candidateUserId: Id<"users">;
|
|
320
|
-
networkId: Id<"networks">;
|
|
321
|
-
existingOpportunityId?: Id<"opportunities">;
|
|
322
|
-
existingStatus?: OpportunityStatus;
|
|
323
|
-
reason?: "same_trigger_recent_duplicate" | "pair_active_negotiation" | "final_atomic_conflict";
|
|
324
|
-
existingTriggerIntentId?: string;
|
|
325
|
-
}[]> | undefined;
|
|
326
|
-
persistenceOutcome?: import("./opportunity.state.js").OpportunityPersistenceOutcome | import("@langchain/langgraph").OverwriteValue<import("./opportunity.state.js").OpportunityPersistenceOutcome | undefined> | undefined;
|
|
327
|
-
negotiationContinuationReceipt?: NegotiationContinuationReceipt | import("@langchain/langgraph").OverwriteValue<NegotiationContinuationReceipt | undefined> | undefined;
|
|
328
|
-
error?: string | import("@langchain/langgraph").OverwriteValue<string | undefined> | undefined;
|
|
329
|
-
readResult?: {
|
|
330
|
-
count: number;
|
|
331
|
-
message?: string;
|
|
332
|
-
opportunities: Array<{
|
|
333
|
-
id: string;
|
|
334
|
-
indexName: string;
|
|
335
|
-
connectedWith: string[];
|
|
336
|
-
suggestedBy: string | null;
|
|
337
|
-
reasoning: string;
|
|
338
|
-
status: string;
|
|
339
|
-
category: string;
|
|
340
|
-
confidence: number | null;
|
|
341
|
-
source: string | null;
|
|
342
|
-
}>;
|
|
343
|
-
} | import("@langchain/langgraph").OverwriteValue<{
|
|
344
|
-
count: number;
|
|
345
|
-
message?: string;
|
|
346
|
-
opportunities: Array<{
|
|
347
|
-
id: string;
|
|
348
|
-
indexName: string;
|
|
349
|
-
connectedWith: string[];
|
|
350
|
-
suggestedBy: string | null;
|
|
351
|
-
reasoning: string;
|
|
352
|
-
status: string;
|
|
353
|
-
category: string;
|
|
354
|
-
confidence: number | null;
|
|
355
|
-
source: string | null;
|
|
356
|
-
}>;
|
|
357
|
-
} | undefined> | undefined;
|
|
358
|
-
mutationResult?: {
|
|
359
|
-
success: boolean;
|
|
360
|
-
message?: string;
|
|
361
|
-
opportunityId?: string;
|
|
362
|
-
notified?: string[];
|
|
363
|
-
conversationId?: string;
|
|
364
|
-
error?: string;
|
|
365
|
-
} | import("@langchain/langgraph").OverwriteValue<{
|
|
366
|
-
success: boolean;
|
|
367
|
-
message?: string;
|
|
368
|
-
opportunityId?: string;
|
|
369
|
-
notified?: string[];
|
|
370
|
-
conversationId?: string;
|
|
371
|
-
error?: string;
|
|
372
|
-
} | undefined> | undefined;
|
|
373
|
-
trace?: {
|
|
374
|
-
node: string;
|
|
375
|
-
detail?: string;
|
|
376
|
-
data?: Record<string, unknown>;
|
|
377
|
-
}[] | import("@langchain/langgraph").OverwriteValue<{
|
|
378
|
-
node: string;
|
|
379
|
-
detail?: string;
|
|
380
|
-
data?: Record<string, unknown>;
|
|
381
|
-
}[]> | undefined;
|
|
382
|
-
agentTimings?: DebugMetaAgent[] | import("@langchain/langgraph").OverwriteValue<DebugMetaAgent[]> | undefined;
|
|
383
|
-
discoveryNegotiations?: {
|
|
384
|
-
outcome: {
|
|
385
|
-
reasoning: string;
|
|
386
|
-
hasOpportunity: boolean;
|
|
387
|
-
reason?: "timeout" | "turn_cap" | "screened_out" | undefined;
|
|
388
|
-
agreedRoles?: {
|
|
389
|
-
userId: string;
|
|
390
|
-
role: "agent" | "patient" | "peer";
|
|
391
|
-
}[] | undefined;
|
|
392
|
-
};
|
|
393
|
-
counterpartyHint: string;
|
|
394
|
-
indexContext: string;
|
|
395
|
-
counterpartyId: string;
|
|
396
|
-
turns: {
|
|
397
|
-
reasoning: string;
|
|
398
|
-
action: "propose" | "accept" | "reject" | "counter" | "question" | "outreach" | "withdraw" | "decline" | "ask_user";
|
|
399
|
-
suggestedRoles: {
|
|
400
|
-
ownUser: "agent" | "patient" | "peer";
|
|
401
|
-
otherUser: "agent" | "patient" | "peer";
|
|
402
|
-
};
|
|
403
|
-
}[];
|
|
404
|
-
seedAssessmentScore?: number | undefined;
|
|
405
|
-
}[] | import("@langchain/langgraph").OverwriteValue<{
|
|
406
|
-
outcome: {
|
|
407
|
-
reasoning: string;
|
|
408
|
-
hasOpportunity: boolean;
|
|
409
|
-
reason?: "timeout" | "turn_cap" | "screened_out" | undefined;
|
|
410
|
-
agreedRoles?: {
|
|
411
|
-
userId: string;
|
|
412
|
-
role: "agent" | "patient" | "peer";
|
|
413
|
-
}[] | undefined;
|
|
414
|
-
};
|
|
415
|
-
counterpartyHint: string;
|
|
416
|
-
indexContext: string;
|
|
417
|
-
counterpartyId: string;
|
|
418
|
-
turns: {
|
|
419
|
-
reasoning: string;
|
|
420
|
-
action: "propose" | "accept" | "reject" | "counter" | "question" | "outreach" | "withdraw" | "decline" | "ask_user";
|
|
421
|
-
suggestedRoles: {
|
|
422
|
-
ownUser: "agent" | "patient" | "peer";
|
|
423
|
-
otherUser: "agent" | "patient" | "peer";
|
|
424
|
-
};
|
|
425
|
-
}[];
|
|
426
|
-
seedAssessmentScore?: number | undefined;
|
|
427
|
-
}[]> | undefined;
|
|
428
|
-
discoverySummary?: import("../index.js").DiscoverySummary | import("@langchain/langgraph").OverwriteValue<import("../index.js").DiscoverySummary | null> | null | undefined;
|
|
429
|
-
}, "scope" | "send" | "update" | "discovery" | "read" | "negotiate_existing" | "approve_introduction" | "__start__" | "prep" | "persist" | "resolve" | "evaluation" | "ranking" | "intro_validation" | "intro_evaluation" | "delete_opp" | "negotiate", {
|
|
430
|
-
userId: import("@langchain/langgraph").BaseChannel<Id<"users">, Id<"users"> | import("@langchain/langgraph").OverwriteValue<Id<"users">>, unknown>;
|
|
431
|
-
searchQuery: import("@langchain/langgraph").BaseChannel<string | undefined, string | import("@langchain/langgraph").OverwriteValue<string | undefined> | undefined, unknown>;
|
|
432
|
-
networkId: import("@langchain/langgraph").BaseChannel<Id<"networks"> | undefined, Id<"networks"> | import("@langchain/langgraph").OverwriteValue<Id<"networks"> | undefined> | undefined, unknown>;
|
|
433
|
-
indexScope: import("@langchain/langgraph").BaseChannel<Id<"networks">[] | undefined, Id<"networks">[] | import("@langchain/langgraph").OverwriteValue<Id<"networks">[] | undefined> | undefined, unknown>;
|
|
434
|
-
triggerIntentId: import("@langchain/langgraph").BaseChannel<Id<"intents"> | undefined, Id<"intents"> | import("@langchain/langgraph").OverwriteValue<Id<"intents"> | undefined> | undefined, unknown>;
|
|
435
|
-
targetUserId: import("@langchain/langgraph").BaseChannel<Id<"users"> | undefined, Id<"users"> | import("@langchain/langgraph").OverwriteValue<Id<"users"> | undefined> | undefined, unknown>;
|
|
436
|
-
onBehalfOfUserId: import("@langchain/langgraph").BaseChannel<Id<"users"> | undefined, Id<"users"> | import("@langchain/langgraph").OverwriteValue<Id<"users"> | undefined> | undefined, unknown>;
|
|
437
|
-
options: import("@langchain/langgraph").BaseChannel<import("./opportunity.state.js").OpportunityGraphOptions, import("./opportunity.state.js").OpportunityGraphOptions | import("@langchain/langgraph").OverwriteValue<import("./opportunity.state.js").OpportunityGraphOptions>, unknown>;
|
|
438
|
-
trigger: import("@langchain/langgraph").BaseChannel<import("./opportunity.state.js").OpportunityTrigger, import("./opportunity.state.js").OpportunityTrigger | import("@langchain/langgraph").OverwriteValue<import("./opportunity.state.js").OpportunityTrigger>, unknown>;
|
|
439
|
-
dedupAlreadyAccepted: import("@langchain/langgraph").BaseChannel<{
|
|
440
|
-
opportunityId: string;
|
|
441
|
-
counterpartyUserId: string;
|
|
442
|
-
}[], {
|
|
443
|
-
opportunityId: string;
|
|
444
|
-
counterpartyUserId: string;
|
|
445
|
-
}[] | import("@langchain/langgraph").OverwriteValue<{
|
|
446
|
-
opportunityId: string;
|
|
447
|
-
counterpartyUserId: string;
|
|
448
|
-
}[]>, unknown>;
|
|
449
|
-
operationMode: import("@langchain/langgraph").BaseChannel<"delete" | "send" | "update" | "create" | "create_introduction" | "continue_discovery" | "read" | "negotiate_existing" | "approve_introduction", "delete" | "send" | "update" | "create" | "create_introduction" | "continue_discovery" | "read" | "negotiate_existing" | "approve_introduction" | import("@langchain/langgraph").OverwriteValue<"delete" | "send" | "update" | "create" | "create_introduction" | "continue_discovery" | "read" | "negotiate_existing" | "approve_introduction">, unknown>;
|
|
450
|
-
introductionEntities: import("@langchain/langgraph").BaseChannel<EvaluatorEntity[], EvaluatorEntity[] | import("@langchain/langgraph").OverwriteValue<EvaluatorEntity[]>, unknown>;
|
|
451
|
-
introductionHint: import("@langchain/langgraph").BaseChannel<string | undefined, string | import("@langchain/langgraph").OverwriteValue<string | undefined> | undefined, unknown>;
|
|
452
|
-
requiredNetworkId: import("@langchain/langgraph").BaseChannel<Id<"networks"> | undefined, Id<"networks"> | import("@langchain/langgraph").OverwriteValue<Id<"networks"> | undefined> | undefined, unknown>;
|
|
453
|
-
introductionContext: import("@langchain/langgraph").BaseChannel<{
|
|
454
|
-
createdByName?: string;
|
|
455
|
-
} | undefined, {
|
|
456
|
-
createdByName?: string;
|
|
457
|
-
} | import("@langchain/langgraph").OverwriteValue<{
|
|
458
|
-
createdByName?: string;
|
|
459
|
-
} | undefined> | undefined, unknown>;
|
|
460
|
-
opportunityId: import("@langchain/langgraph").BaseChannel<string | undefined, string | import("@langchain/langgraph").OverwriteValue<string | undefined> | undefined, unknown>;
|
|
461
|
-
newStatus: import("@langchain/langgraph").BaseChannel<string | undefined, string | import("@langchain/langgraph").OverwriteValue<string | undefined> | undefined, unknown>;
|
|
462
|
-
indexedIntents: import("@langchain/langgraph").BaseChannel<IndexedIntent[], IndexedIntent[] | import("@langchain/langgraph").OverwriteValue<IndexedIntent[]>, unknown>;
|
|
463
|
-
userNetworks: import("@langchain/langgraph").BaseChannel<Id<"networks">[], Id<"networks">[] | import("@langchain/langgraph").OverwriteValue<Id<"networks">[]>, unknown>;
|
|
464
|
-
targetNetworks: import("@langchain/langgraph").BaseChannel<TargetNetwork[], TargetNetwork[] | import("@langchain/langgraph").OverwriteValue<TargetNetwork[]>, unknown>;
|
|
465
|
-
indexRelevancyScores: import("@langchain/langgraph").BaseChannel<Record<string, number>, Record<string, number> | import("@langchain/langgraph").OverwriteValue<Record<string, number>>, unknown>;
|
|
466
|
-
discoverySource: import("@langchain/langgraph").BaseChannel<"intent" | "context", "intent" | "context" | import("@langchain/langgraph").OverwriteValue<"intent" | "context">, unknown>;
|
|
467
|
-
resolvedTriggerIntentId: import("@langchain/langgraph").BaseChannel<Id<"intents"> | undefined, Id<"intents"> | import("@langchain/langgraph").OverwriteValue<Id<"intents"> | undefined> | undefined, unknown>;
|
|
468
|
-
sourceProfile: import("@langchain/langgraph").BaseChannel<SourceProfileData | null, SourceProfileData | import("@langchain/langgraph").OverwriteValue<SourceProfileData | null> | null, unknown>;
|
|
469
|
-
sourcePremises: import("@langchain/langgraph").BaseChannel<{
|
|
470
|
-
premiseId: Id<"premises">;
|
|
471
|
-
embedding: number[];
|
|
472
|
-
}[], {
|
|
473
|
-
premiseId: Id<"premises">;
|
|
474
|
-
embedding: number[];
|
|
475
|
-
}[] | import("@langchain/langgraph").OverwriteValue<{
|
|
476
|
-
premiseId: Id<"premises">;
|
|
477
|
-
embedding: number[];
|
|
478
|
-
}[]>, unknown>;
|
|
479
|
-
sourceContexts: import("@langchain/langgraph").BaseChannel<{
|
|
480
|
-
contextId: string;
|
|
481
|
-
networkId: Id<"networks">;
|
|
482
|
-
text: string;
|
|
483
|
-
embedding: number[];
|
|
484
|
-
}[], {
|
|
485
|
-
contextId: string;
|
|
486
|
-
networkId: Id<"networks">;
|
|
487
|
-
text: string;
|
|
488
|
-
embedding: number[];
|
|
489
|
-
}[] | import("@langchain/langgraph").OverwriteValue<{
|
|
490
|
-
contextId: string;
|
|
491
|
-
networkId: Id<"networks">;
|
|
492
|
-
text: string;
|
|
493
|
-
embedding: number[];
|
|
494
|
-
}[]>, unknown>;
|
|
495
|
-
resolvedIntentInIndex: import("@langchain/langgraph").BaseChannel<boolean, boolean | import("@langchain/langgraph").OverwriteValue<boolean>, unknown>;
|
|
496
|
-
createIntentSuggested: import("@langchain/langgraph").BaseChannel<boolean, boolean | import("@langchain/langgraph").OverwriteValue<boolean>, unknown>;
|
|
497
|
-
suggestedIntentDescription: import("@langchain/langgraph").BaseChannel<string | undefined, string | import("@langchain/langgraph").OverwriteValue<string | undefined> | undefined, unknown>;
|
|
498
|
-
hydeEmbeddings: import("@langchain/langgraph").BaseChannel<Record<string, number[]>, Record<string, number[]> | import("@langchain/langgraph").OverwriteValue<Record<string, number[]>>, unknown>;
|
|
499
|
-
candidates: import("@langchain/langgraph").BaseChannel<CandidateMatch[], CandidateMatch[] | import("@langchain/langgraph").OverwriteValue<CandidateMatch[]>, unknown>;
|
|
500
|
-
remainingCandidates: import("@langchain/langgraph").BaseChannel<CandidateMatch[], CandidateMatch[] | import("@langchain/langgraph").OverwriteValue<CandidateMatch[]>, unknown>;
|
|
501
|
-
discoveryId: import("@langchain/langgraph").BaseChannel<string | null, string | import("@langchain/langgraph").OverwriteValue<string | null> | null, unknown>;
|
|
502
|
-
evaluatedCandidates: import("@langchain/langgraph").BaseChannel<EvaluatedCandidate[], EvaluatedCandidate[] | import("@langchain/langgraph").OverwriteValue<EvaluatedCandidate[]>, unknown>;
|
|
503
|
-
evaluatedOpportunities: import("@langchain/langgraph").BaseChannel<EvaluatedOpportunity[], EvaluatedOpportunity[] | import("@langchain/langgraph").OverwriteValue<EvaluatedOpportunity[]>, unknown>;
|
|
504
|
-
opportunities: import("@langchain/langgraph").BaseChannel<Opportunity[], Opportunity[] | import("@langchain/langgraph").OverwriteValue<Opportunity[]>, unknown>;
|
|
505
|
-
existingBetweenActors: import("@langchain/langgraph").BaseChannel<{
|
|
506
|
-
candidateUserId: Id<"users">;
|
|
507
|
-
networkId: Id<"networks">;
|
|
508
|
-
existingOpportunityId?: Id<"opportunities">;
|
|
509
|
-
existingStatus?: OpportunityStatus;
|
|
510
|
-
reason?: "same_trigger_recent_duplicate" | "pair_active_negotiation" | "final_atomic_conflict";
|
|
511
|
-
existingTriggerIntentId?: string;
|
|
512
|
-
}[], {
|
|
513
|
-
candidateUserId: Id<"users">;
|
|
514
|
-
networkId: Id<"networks">;
|
|
515
|
-
existingOpportunityId?: Id<"opportunities">;
|
|
516
|
-
existingStatus?: OpportunityStatus;
|
|
517
|
-
reason?: "same_trigger_recent_duplicate" | "pair_active_negotiation" | "final_atomic_conflict";
|
|
518
|
-
existingTriggerIntentId?: string;
|
|
519
|
-
}[] | import("@langchain/langgraph").OverwriteValue<{
|
|
520
|
-
candidateUserId: Id<"users">;
|
|
521
|
-
networkId: Id<"networks">;
|
|
522
|
-
existingOpportunityId?: Id<"opportunities">;
|
|
523
|
-
existingStatus?: OpportunityStatus;
|
|
524
|
-
reason?: "same_trigger_recent_duplicate" | "pair_active_negotiation" | "final_atomic_conflict";
|
|
525
|
-
existingTriggerIntentId?: string;
|
|
526
|
-
}[]>, unknown>;
|
|
527
|
-
persistenceOutcome: import("@langchain/langgraph").BaseChannel<import("./opportunity.state.js").OpportunityPersistenceOutcome | undefined, import("./opportunity.state.js").OpportunityPersistenceOutcome | import("@langchain/langgraph").OverwriteValue<import("./opportunity.state.js").OpportunityPersistenceOutcome | undefined> | undefined, unknown>;
|
|
528
|
-
negotiationContinuationReceipt: import("@langchain/langgraph").BaseChannel<NegotiationContinuationReceipt | undefined, NegotiationContinuationReceipt | import("@langchain/langgraph").OverwriteValue<NegotiationContinuationReceipt | undefined> | undefined, unknown>;
|
|
529
|
-
error: import("@langchain/langgraph").BaseChannel<string | undefined, string | import("@langchain/langgraph").OverwriteValue<string | undefined> | undefined, unknown>;
|
|
530
|
-
readResult: import("@langchain/langgraph").BaseChannel<{
|
|
531
|
-
count: number;
|
|
532
|
-
message?: string;
|
|
533
|
-
opportunities: Array<{
|
|
534
|
-
id: string;
|
|
535
|
-
indexName: string;
|
|
536
|
-
connectedWith: string[];
|
|
537
|
-
suggestedBy: string | null;
|
|
538
|
-
reasoning: string;
|
|
539
|
-
status: string;
|
|
540
|
-
category: string;
|
|
541
|
-
confidence: number | null;
|
|
542
|
-
source: string | null;
|
|
543
|
-
}>;
|
|
544
|
-
} | undefined, {
|
|
545
|
-
count: number;
|
|
546
|
-
message?: string;
|
|
547
|
-
opportunities: Array<{
|
|
548
|
-
id: string;
|
|
549
|
-
indexName: string;
|
|
550
|
-
connectedWith: string[];
|
|
551
|
-
suggestedBy: string | null;
|
|
552
|
-
reasoning: string;
|
|
553
|
-
status: string;
|
|
554
|
-
category: string;
|
|
555
|
-
confidence: number | null;
|
|
556
|
-
source: string | null;
|
|
557
|
-
}>;
|
|
558
|
-
} | import("@langchain/langgraph").OverwriteValue<{
|
|
559
|
-
count: number;
|
|
560
|
-
message?: string;
|
|
561
|
-
opportunities: Array<{
|
|
562
|
-
id: string;
|
|
563
|
-
indexName: string;
|
|
564
|
-
connectedWith: string[];
|
|
565
|
-
suggestedBy: string | null;
|
|
566
|
-
reasoning: string;
|
|
567
|
-
status: string;
|
|
568
|
-
category: string;
|
|
569
|
-
confidence: number | null;
|
|
570
|
-
source: string | null;
|
|
571
|
-
}>;
|
|
572
|
-
} | undefined> | undefined, unknown>;
|
|
573
|
-
mutationResult: import("@langchain/langgraph").BaseChannel<{
|
|
574
|
-
success: boolean;
|
|
575
|
-
message?: string;
|
|
576
|
-
opportunityId?: string;
|
|
577
|
-
notified?: string[];
|
|
578
|
-
conversationId?: string;
|
|
579
|
-
error?: string;
|
|
580
|
-
} | undefined, {
|
|
581
|
-
success: boolean;
|
|
582
|
-
message?: string;
|
|
583
|
-
opportunityId?: string;
|
|
584
|
-
notified?: string[];
|
|
585
|
-
conversationId?: string;
|
|
586
|
-
error?: string;
|
|
587
|
-
} | import("@langchain/langgraph").OverwriteValue<{
|
|
588
|
-
success: boolean;
|
|
589
|
-
message?: string;
|
|
590
|
-
opportunityId?: string;
|
|
591
|
-
notified?: string[];
|
|
592
|
-
conversationId?: string;
|
|
593
|
-
error?: string;
|
|
594
|
-
} | undefined> | undefined, unknown>;
|
|
595
|
-
trace: import("@langchain/langgraph").BaseChannel<{
|
|
596
|
-
node: string;
|
|
597
|
-
detail?: string;
|
|
598
|
-
data?: Record<string, unknown>;
|
|
599
|
-
}[], {
|
|
600
|
-
node: string;
|
|
601
|
-
detail?: string;
|
|
602
|
-
data?: Record<string, unknown>;
|
|
603
|
-
}[] | import("@langchain/langgraph").OverwriteValue<{
|
|
604
|
-
node: string;
|
|
605
|
-
detail?: string;
|
|
606
|
-
data?: Record<string, unknown>;
|
|
607
|
-
}[]>, unknown>;
|
|
608
|
-
agentTimings: import("@langchain/langgraph").BaseChannel<DebugMetaAgent[], DebugMetaAgent[] | import("@langchain/langgraph").OverwriteValue<DebugMetaAgent[]>, unknown>;
|
|
609
|
-
discoveryNegotiations: import("@langchain/langgraph").BaseChannel<{
|
|
610
|
-
outcome: {
|
|
611
|
-
reasoning: string;
|
|
612
|
-
hasOpportunity: boolean;
|
|
613
|
-
reason?: "timeout" | "turn_cap" | "screened_out" | undefined;
|
|
614
|
-
agreedRoles?: {
|
|
615
|
-
userId: string;
|
|
616
|
-
role: "agent" | "patient" | "peer";
|
|
617
|
-
}[] | undefined;
|
|
618
|
-
};
|
|
619
|
-
counterpartyHint: string;
|
|
620
|
-
indexContext: string;
|
|
621
|
-
counterpartyId: string;
|
|
622
|
-
turns: {
|
|
623
|
-
reasoning: string;
|
|
624
|
-
action: "propose" | "accept" | "reject" | "counter" | "question" | "outreach" | "withdraw" | "decline" | "ask_user";
|
|
625
|
-
suggestedRoles: {
|
|
626
|
-
ownUser: "agent" | "patient" | "peer";
|
|
627
|
-
otherUser: "agent" | "patient" | "peer";
|
|
628
|
-
};
|
|
629
|
-
}[];
|
|
630
|
-
seedAssessmentScore?: number | undefined;
|
|
631
|
-
}[], {
|
|
632
|
-
outcome: {
|
|
633
|
-
reasoning: string;
|
|
634
|
-
hasOpportunity: boolean;
|
|
635
|
-
reason?: "timeout" | "turn_cap" | "screened_out" | undefined;
|
|
636
|
-
agreedRoles?: {
|
|
637
|
-
userId: string;
|
|
638
|
-
role: "agent" | "patient" | "peer";
|
|
639
|
-
}[] | undefined;
|
|
640
|
-
};
|
|
641
|
-
counterpartyHint: string;
|
|
642
|
-
indexContext: string;
|
|
643
|
-
counterpartyId: string;
|
|
644
|
-
turns: {
|
|
645
|
-
reasoning: string;
|
|
646
|
-
action: "propose" | "accept" | "reject" | "counter" | "question" | "outreach" | "withdraw" | "decline" | "ask_user";
|
|
647
|
-
suggestedRoles: {
|
|
648
|
-
ownUser: "agent" | "patient" | "peer";
|
|
649
|
-
otherUser: "agent" | "patient" | "peer";
|
|
650
|
-
};
|
|
651
|
-
}[];
|
|
652
|
-
seedAssessmentScore?: number | undefined;
|
|
653
|
-
}[] | import("@langchain/langgraph").OverwriteValue<{
|
|
654
|
-
outcome: {
|
|
655
|
-
reasoning: string;
|
|
656
|
-
hasOpportunity: boolean;
|
|
657
|
-
reason?: "timeout" | "turn_cap" | "screened_out" | undefined;
|
|
658
|
-
agreedRoles?: {
|
|
659
|
-
userId: string;
|
|
660
|
-
role: "agent" | "patient" | "peer";
|
|
661
|
-
}[] | undefined;
|
|
662
|
-
};
|
|
663
|
-
counterpartyHint: string;
|
|
664
|
-
indexContext: string;
|
|
665
|
-
counterpartyId: string;
|
|
666
|
-
turns: {
|
|
667
|
-
reasoning: string;
|
|
668
|
-
action: "propose" | "accept" | "reject" | "counter" | "question" | "outreach" | "withdraw" | "decline" | "ask_user";
|
|
669
|
-
suggestedRoles: {
|
|
670
|
-
ownUser: "agent" | "patient" | "peer";
|
|
671
|
-
otherUser: "agent" | "patient" | "peer";
|
|
672
|
-
};
|
|
673
|
-
}[];
|
|
674
|
-
seedAssessmentScore?: number | undefined;
|
|
675
|
-
}[]>, unknown>;
|
|
676
|
-
discoverySummary: import("@langchain/langgraph").BaseChannel<import("../index.js").DiscoverySummary | null, import("../index.js").DiscoverySummary | import("@langchain/langgraph").OverwriteValue<import("../index.js").DiscoverySummary | null> | null, unknown>;
|
|
677
|
-
}, {
|
|
678
|
-
userId: import("@langchain/langgraph").BaseChannel<Id<"users">, Id<"users"> | import("@langchain/langgraph").OverwriteValue<Id<"users">>, unknown>;
|
|
679
|
-
searchQuery: import("@langchain/langgraph").BaseChannel<string | undefined, string | import("@langchain/langgraph").OverwriteValue<string | undefined> | undefined, unknown>;
|
|
680
|
-
networkId: import("@langchain/langgraph").BaseChannel<Id<"networks"> | undefined, Id<"networks"> | import("@langchain/langgraph").OverwriteValue<Id<"networks"> | undefined> | undefined, unknown>;
|
|
681
|
-
indexScope: import("@langchain/langgraph").BaseChannel<Id<"networks">[] | undefined, Id<"networks">[] | import("@langchain/langgraph").OverwriteValue<Id<"networks">[] | undefined> | undefined, unknown>;
|
|
682
|
-
triggerIntentId: import("@langchain/langgraph").BaseChannel<Id<"intents"> | undefined, Id<"intents"> | import("@langchain/langgraph").OverwriteValue<Id<"intents"> | undefined> | undefined, unknown>;
|
|
683
|
-
targetUserId: import("@langchain/langgraph").BaseChannel<Id<"users"> | undefined, Id<"users"> | import("@langchain/langgraph").OverwriteValue<Id<"users"> | undefined> | undefined, unknown>;
|
|
684
|
-
onBehalfOfUserId: import("@langchain/langgraph").BaseChannel<Id<"users"> | undefined, Id<"users"> | import("@langchain/langgraph").OverwriteValue<Id<"users"> | undefined> | undefined, unknown>;
|
|
685
|
-
options: import("@langchain/langgraph").BaseChannel<import("./opportunity.state.js").OpportunityGraphOptions, import("./opportunity.state.js").OpportunityGraphOptions | import("@langchain/langgraph").OverwriteValue<import("./opportunity.state.js").OpportunityGraphOptions>, unknown>;
|
|
686
|
-
trigger: import("@langchain/langgraph").BaseChannel<import("./opportunity.state.js").OpportunityTrigger, import("./opportunity.state.js").OpportunityTrigger | import("@langchain/langgraph").OverwriteValue<import("./opportunity.state.js").OpportunityTrigger>, unknown>;
|
|
687
|
-
dedupAlreadyAccepted: import("@langchain/langgraph").BaseChannel<{
|
|
688
|
-
opportunityId: string;
|
|
689
|
-
counterpartyUserId: string;
|
|
690
|
-
}[], {
|
|
691
|
-
opportunityId: string;
|
|
692
|
-
counterpartyUserId: string;
|
|
693
|
-
}[] | import("@langchain/langgraph").OverwriteValue<{
|
|
694
|
-
opportunityId: string;
|
|
695
|
-
counterpartyUserId: string;
|
|
696
|
-
}[]>, unknown>;
|
|
697
|
-
operationMode: import("@langchain/langgraph").BaseChannel<"delete" | "send" | "update" | "create" | "create_introduction" | "continue_discovery" | "read" | "negotiate_existing" | "approve_introduction", "delete" | "send" | "update" | "create" | "create_introduction" | "continue_discovery" | "read" | "negotiate_existing" | "approve_introduction" | import("@langchain/langgraph").OverwriteValue<"delete" | "send" | "update" | "create" | "create_introduction" | "continue_discovery" | "read" | "negotiate_existing" | "approve_introduction">, unknown>;
|
|
698
|
-
introductionEntities: import("@langchain/langgraph").BaseChannel<EvaluatorEntity[], EvaluatorEntity[] | import("@langchain/langgraph").OverwriteValue<EvaluatorEntity[]>, unknown>;
|
|
699
|
-
introductionHint: import("@langchain/langgraph").BaseChannel<string | undefined, string | import("@langchain/langgraph").OverwriteValue<string | undefined> | undefined, unknown>;
|
|
700
|
-
requiredNetworkId: import("@langchain/langgraph").BaseChannel<Id<"networks"> | undefined, Id<"networks"> | import("@langchain/langgraph").OverwriteValue<Id<"networks"> | undefined> | undefined, unknown>;
|
|
701
|
-
introductionContext: import("@langchain/langgraph").BaseChannel<{
|
|
702
|
-
createdByName?: string;
|
|
703
|
-
} | undefined, {
|
|
704
|
-
createdByName?: string;
|
|
705
|
-
} | import("@langchain/langgraph").OverwriteValue<{
|
|
706
|
-
createdByName?: string;
|
|
707
|
-
} | undefined> | undefined, unknown>;
|
|
708
|
-
opportunityId: import("@langchain/langgraph").BaseChannel<string | undefined, string | import("@langchain/langgraph").OverwriteValue<string | undefined> | undefined, unknown>;
|
|
709
|
-
newStatus: import("@langchain/langgraph").BaseChannel<string | undefined, string | import("@langchain/langgraph").OverwriteValue<string | undefined> | undefined, unknown>;
|
|
710
|
-
indexedIntents: import("@langchain/langgraph").BaseChannel<IndexedIntent[], IndexedIntent[] | import("@langchain/langgraph").OverwriteValue<IndexedIntent[]>, unknown>;
|
|
711
|
-
userNetworks: import("@langchain/langgraph").BaseChannel<Id<"networks">[], Id<"networks">[] | import("@langchain/langgraph").OverwriteValue<Id<"networks">[]>, unknown>;
|
|
712
|
-
targetNetworks: import("@langchain/langgraph").BaseChannel<TargetNetwork[], TargetNetwork[] | import("@langchain/langgraph").OverwriteValue<TargetNetwork[]>, unknown>;
|
|
713
|
-
indexRelevancyScores: import("@langchain/langgraph").BaseChannel<Record<string, number>, Record<string, number> | import("@langchain/langgraph").OverwriteValue<Record<string, number>>, unknown>;
|
|
714
|
-
discoverySource: import("@langchain/langgraph").BaseChannel<"intent" | "context", "intent" | "context" | import("@langchain/langgraph").OverwriteValue<"intent" | "context">, unknown>;
|
|
715
|
-
resolvedTriggerIntentId: import("@langchain/langgraph").BaseChannel<Id<"intents"> | undefined, Id<"intents"> | import("@langchain/langgraph").OverwriteValue<Id<"intents"> | undefined> | undefined, unknown>;
|
|
716
|
-
sourceProfile: import("@langchain/langgraph").BaseChannel<SourceProfileData | null, SourceProfileData | import("@langchain/langgraph").OverwriteValue<SourceProfileData | null> | null, unknown>;
|
|
717
|
-
sourcePremises: import("@langchain/langgraph").BaseChannel<{
|
|
718
|
-
premiseId: Id<"premises">;
|
|
719
|
-
embedding: number[];
|
|
720
|
-
}[], {
|
|
721
|
-
premiseId: Id<"premises">;
|
|
722
|
-
embedding: number[];
|
|
723
|
-
}[] | import("@langchain/langgraph").OverwriteValue<{
|
|
724
|
-
premiseId: Id<"premises">;
|
|
725
|
-
embedding: number[];
|
|
726
|
-
}[]>, unknown>;
|
|
727
|
-
sourceContexts: import("@langchain/langgraph").BaseChannel<{
|
|
728
|
-
contextId: string;
|
|
729
|
-
networkId: Id<"networks">;
|
|
730
|
-
text: string;
|
|
731
|
-
embedding: number[];
|
|
732
|
-
}[], {
|
|
733
|
-
contextId: string;
|
|
734
|
-
networkId: Id<"networks">;
|
|
735
|
-
text: string;
|
|
736
|
-
embedding: number[];
|
|
737
|
-
}[] | import("@langchain/langgraph").OverwriteValue<{
|
|
738
|
-
contextId: string;
|
|
739
|
-
networkId: Id<"networks">;
|
|
740
|
-
text: string;
|
|
741
|
-
embedding: number[];
|
|
742
|
-
}[]>, unknown>;
|
|
743
|
-
resolvedIntentInIndex: import("@langchain/langgraph").BaseChannel<boolean, boolean | import("@langchain/langgraph").OverwriteValue<boolean>, unknown>;
|
|
744
|
-
createIntentSuggested: import("@langchain/langgraph").BaseChannel<boolean, boolean | import("@langchain/langgraph").OverwriteValue<boolean>, unknown>;
|
|
745
|
-
suggestedIntentDescription: import("@langchain/langgraph").BaseChannel<string | undefined, string | import("@langchain/langgraph").OverwriteValue<string | undefined> | undefined, unknown>;
|
|
746
|
-
hydeEmbeddings: import("@langchain/langgraph").BaseChannel<Record<string, number[]>, Record<string, number[]> | import("@langchain/langgraph").OverwriteValue<Record<string, number[]>>, unknown>;
|
|
747
|
-
candidates: import("@langchain/langgraph").BaseChannel<CandidateMatch[], CandidateMatch[] | import("@langchain/langgraph").OverwriteValue<CandidateMatch[]>, unknown>;
|
|
748
|
-
remainingCandidates: import("@langchain/langgraph").BaseChannel<CandidateMatch[], CandidateMatch[] | import("@langchain/langgraph").OverwriteValue<CandidateMatch[]>, unknown>;
|
|
749
|
-
discoveryId: import("@langchain/langgraph").BaseChannel<string | null, string | import("@langchain/langgraph").OverwriteValue<string | null> | null, unknown>;
|
|
750
|
-
evaluatedCandidates: import("@langchain/langgraph").BaseChannel<EvaluatedCandidate[], EvaluatedCandidate[] | import("@langchain/langgraph").OverwriteValue<EvaluatedCandidate[]>, unknown>;
|
|
751
|
-
evaluatedOpportunities: import("@langchain/langgraph").BaseChannel<EvaluatedOpportunity[], EvaluatedOpportunity[] | import("@langchain/langgraph").OverwriteValue<EvaluatedOpportunity[]>, unknown>;
|
|
752
|
-
opportunities: import("@langchain/langgraph").BaseChannel<Opportunity[], Opportunity[] | import("@langchain/langgraph").OverwriteValue<Opportunity[]>, unknown>;
|
|
753
|
-
existingBetweenActors: import("@langchain/langgraph").BaseChannel<{
|
|
754
|
-
candidateUserId: Id<"users">;
|
|
755
|
-
networkId: Id<"networks">;
|
|
756
|
-
existingOpportunityId?: Id<"opportunities">;
|
|
757
|
-
existingStatus?: OpportunityStatus;
|
|
758
|
-
reason?: "same_trigger_recent_duplicate" | "pair_active_negotiation" | "final_atomic_conflict";
|
|
759
|
-
existingTriggerIntentId?: string;
|
|
760
|
-
}[], {
|
|
761
|
-
candidateUserId: Id<"users">;
|
|
762
|
-
networkId: Id<"networks">;
|
|
763
|
-
existingOpportunityId?: Id<"opportunities">;
|
|
764
|
-
existingStatus?: OpportunityStatus;
|
|
765
|
-
reason?: "same_trigger_recent_duplicate" | "pair_active_negotiation" | "final_atomic_conflict";
|
|
766
|
-
existingTriggerIntentId?: string;
|
|
767
|
-
}[] | import("@langchain/langgraph").OverwriteValue<{
|
|
768
|
-
candidateUserId: Id<"users">;
|
|
769
|
-
networkId: Id<"networks">;
|
|
770
|
-
existingOpportunityId?: Id<"opportunities">;
|
|
771
|
-
existingStatus?: OpportunityStatus;
|
|
772
|
-
reason?: "same_trigger_recent_duplicate" | "pair_active_negotiation" | "final_atomic_conflict";
|
|
773
|
-
existingTriggerIntentId?: string;
|
|
774
|
-
}[]>, unknown>;
|
|
775
|
-
persistenceOutcome: import("@langchain/langgraph").BaseChannel<import("./opportunity.state.js").OpportunityPersistenceOutcome | undefined, import("./opportunity.state.js").OpportunityPersistenceOutcome | import("@langchain/langgraph").OverwriteValue<import("./opportunity.state.js").OpportunityPersistenceOutcome | undefined> | undefined, unknown>;
|
|
776
|
-
negotiationContinuationReceipt: import("@langchain/langgraph").BaseChannel<NegotiationContinuationReceipt | undefined, NegotiationContinuationReceipt | import("@langchain/langgraph").OverwriteValue<NegotiationContinuationReceipt | undefined> | undefined, unknown>;
|
|
777
|
-
error: import("@langchain/langgraph").BaseChannel<string | undefined, string | import("@langchain/langgraph").OverwriteValue<string | undefined> | undefined, unknown>;
|
|
778
|
-
readResult: import("@langchain/langgraph").BaseChannel<{
|
|
779
|
-
count: number;
|
|
780
|
-
message?: string;
|
|
781
|
-
opportunities: Array<{
|
|
782
|
-
id: string;
|
|
783
|
-
indexName: string;
|
|
784
|
-
connectedWith: string[];
|
|
785
|
-
suggestedBy: string | null;
|
|
786
|
-
reasoning: string;
|
|
787
|
-
status: string;
|
|
788
|
-
category: string;
|
|
789
|
-
confidence: number | null;
|
|
790
|
-
source: string | null;
|
|
791
|
-
}>;
|
|
792
|
-
} | undefined, {
|
|
793
|
-
count: number;
|
|
794
|
-
message?: string;
|
|
795
|
-
opportunities: Array<{
|
|
796
|
-
id: string;
|
|
797
|
-
indexName: string;
|
|
798
|
-
connectedWith: string[];
|
|
799
|
-
suggestedBy: string | null;
|
|
800
|
-
reasoning: string;
|
|
801
|
-
status: string;
|
|
802
|
-
category: string;
|
|
803
|
-
confidence: number | null;
|
|
804
|
-
source: string | null;
|
|
805
|
-
}>;
|
|
806
|
-
} | import("@langchain/langgraph").OverwriteValue<{
|
|
807
|
-
count: number;
|
|
808
|
-
message?: string;
|
|
809
|
-
opportunities: Array<{
|
|
810
|
-
id: string;
|
|
811
|
-
indexName: string;
|
|
812
|
-
connectedWith: string[];
|
|
813
|
-
suggestedBy: string | null;
|
|
814
|
-
reasoning: string;
|
|
815
|
-
status: string;
|
|
816
|
-
category: string;
|
|
817
|
-
confidence: number | null;
|
|
818
|
-
source: string | null;
|
|
819
|
-
}>;
|
|
820
|
-
} | undefined> | undefined, unknown>;
|
|
821
|
-
mutationResult: import("@langchain/langgraph").BaseChannel<{
|
|
822
|
-
success: boolean;
|
|
823
|
-
message?: string;
|
|
824
|
-
opportunityId?: string;
|
|
825
|
-
notified?: string[];
|
|
826
|
-
conversationId?: string;
|
|
827
|
-
error?: string;
|
|
828
|
-
} | undefined, {
|
|
829
|
-
success: boolean;
|
|
830
|
-
message?: string;
|
|
831
|
-
opportunityId?: string;
|
|
832
|
-
notified?: string[];
|
|
833
|
-
conversationId?: string;
|
|
834
|
-
error?: string;
|
|
835
|
-
} | import("@langchain/langgraph").OverwriteValue<{
|
|
836
|
-
success: boolean;
|
|
837
|
-
message?: string;
|
|
838
|
-
opportunityId?: string;
|
|
839
|
-
notified?: string[];
|
|
840
|
-
conversationId?: string;
|
|
841
|
-
error?: string;
|
|
842
|
-
} | undefined> | undefined, unknown>;
|
|
843
|
-
trace: import("@langchain/langgraph").BaseChannel<{
|
|
844
|
-
node: string;
|
|
845
|
-
detail?: string;
|
|
846
|
-
data?: Record<string, unknown>;
|
|
847
|
-
}[], {
|
|
848
|
-
node: string;
|
|
849
|
-
detail?: string;
|
|
850
|
-
data?: Record<string, unknown>;
|
|
851
|
-
}[] | import("@langchain/langgraph").OverwriteValue<{
|
|
852
|
-
node: string;
|
|
853
|
-
detail?: string;
|
|
854
|
-
data?: Record<string, unknown>;
|
|
855
|
-
}[]>, unknown>;
|
|
856
|
-
agentTimings: import("@langchain/langgraph").BaseChannel<DebugMetaAgent[], DebugMetaAgent[] | import("@langchain/langgraph").OverwriteValue<DebugMetaAgent[]>, unknown>;
|
|
857
|
-
discoveryNegotiations: import("@langchain/langgraph").BaseChannel<{
|
|
858
|
-
outcome: {
|
|
859
|
-
reasoning: string;
|
|
860
|
-
hasOpportunity: boolean;
|
|
861
|
-
reason?: "timeout" | "turn_cap" | "screened_out" | undefined;
|
|
862
|
-
agreedRoles?: {
|
|
863
|
-
userId: string;
|
|
864
|
-
role: "agent" | "patient" | "peer";
|
|
865
|
-
}[] | undefined;
|
|
866
|
-
};
|
|
867
|
-
counterpartyHint: string;
|
|
868
|
-
indexContext: string;
|
|
869
|
-
counterpartyId: string;
|
|
870
|
-
turns: {
|
|
871
|
-
reasoning: string;
|
|
872
|
-
action: "propose" | "accept" | "reject" | "counter" | "question" | "outreach" | "withdraw" | "decline" | "ask_user";
|
|
873
|
-
suggestedRoles: {
|
|
874
|
-
ownUser: "agent" | "patient" | "peer";
|
|
875
|
-
otherUser: "agent" | "patient" | "peer";
|
|
876
|
-
};
|
|
877
|
-
}[];
|
|
878
|
-
seedAssessmentScore?: number | undefined;
|
|
879
|
-
}[], {
|
|
880
|
-
outcome: {
|
|
881
|
-
reasoning: string;
|
|
882
|
-
hasOpportunity: boolean;
|
|
883
|
-
reason?: "timeout" | "turn_cap" | "screened_out" | undefined;
|
|
884
|
-
agreedRoles?: {
|
|
885
|
-
userId: string;
|
|
886
|
-
role: "agent" | "patient" | "peer";
|
|
887
|
-
}[] | undefined;
|
|
888
|
-
};
|
|
889
|
-
counterpartyHint: string;
|
|
890
|
-
indexContext: string;
|
|
891
|
-
counterpartyId: string;
|
|
892
|
-
turns: {
|
|
893
|
-
reasoning: string;
|
|
894
|
-
action: "propose" | "accept" | "reject" | "counter" | "question" | "outreach" | "withdraw" | "decline" | "ask_user";
|
|
895
|
-
suggestedRoles: {
|
|
896
|
-
ownUser: "agent" | "patient" | "peer";
|
|
897
|
-
otherUser: "agent" | "patient" | "peer";
|
|
898
|
-
};
|
|
899
|
-
}[];
|
|
900
|
-
seedAssessmentScore?: number | undefined;
|
|
901
|
-
}[] | import("@langchain/langgraph").OverwriteValue<{
|
|
902
|
-
outcome: {
|
|
903
|
-
reasoning: string;
|
|
904
|
-
hasOpportunity: boolean;
|
|
905
|
-
reason?: "timeout" | "turn_cap" | "screened_out" | undefined;
|
|
906
|
-
agreedRoles?: {
|
|
907
|
-
userId: string;
|
|
908
|
-
role: "agent" | "patient" | "peer";
|
|
909
|
-
}[] | undefined;
|
|
910
|
-
};
|
|
911
|
-
counterpartyHint: string;
|
|
912
|
-
indexContext: string;
|
|
913
|
-
counterpartyId: string;
|
|
914
|
-
turns: {
|
|
915
|
-
reasoning: string;
|
|
916
|
-
action: "propose" | "accept" | "reject" | "counter" | "question" | "outreach" | "withdraw" | "decline" | "ask_user";
|
|
917
|
-
suggestedRoles: {
|
|
918
|
-
ownUser: "agent" | "patient" | "peer";
|
|
919
|
-
otherUser: "agent" | "patient" | "peer";
|
|
920
|
-
};
|
|
921
|
-
}[];
|
|
922
|
-
seedAssessmentScore?: number | undefined;
|
|
923
|
-
}[]>, unknown>;
|
|
924
|
-
discoverySummary: import("@langchain/langgraph").BaseChannel<import("../index.js").DiscoverySummary | null, import("../index.js").DiscoverySummary | import("@langchain/langgraph").OverwriteValue<import("../index.js").DiscoverySummary | null> | null, unknown>;
|
|
925
|
-
}, import("@langchain/langgraph").StateDefinition, {
|
|
926
|
-
prep: {
|
|
927
|
-
userNetworks: Id<"networks">[];
|
|
928
|
-
sourceProfile: null;
|
|
929
|
-
error: string;
|
|
930
|
-
indexedIntents?: undefined;
|
|
931
|
-
sourcePremises?: undefined;
|
|
932
|
-
sourceContexts?: undefined;
|
|
933
|
-
trace?: undefined;
|
|
934
|
-
} | {
|
|
935
|
-
userNetworks: Id<"networks">[];
|
|
936
|
-
indexedIntents: IndexedIntent[];
|
|
937
|
-
sourceProfile: {
|
|
938
|
-
identity: {
|
|
939
|
-
name: string;
|
|
940
|
-
bio: string;
|
|
941
|
-
location: string;
|
|
942
|
-
};
|
|
943
|
-
context: string;
|
|
944
|
-
} | null;
|
|
945
|
-
sourcePremises: {
|
|
946
|
-
premiseId: Id<"premises">;
|
|
947
|
-
embedding: number[];
|
|
948
|
-
}[];
|
|
949
|
-
sourceContexts: {
|
|
950
|
-
contextId: string;
|
|
951
|
-
networkId: Id<"networks">;
|
|
952
|
-
text: string;
|
|
953
|
-
embedding: number[];
|
|
954
|
-
}[];
|
|
955
|
-
trace: {
|
|
956
|
-
node: string;
|
|
957
|
-
detail: string;
|
|
958
|
-
}[];
|
|
959
|
-
error?: undefined;
|
|
960
|
-
} | {
|
|
961
|
-
error: string;
|
|
962
|
-
trace: {
|
|
963
|
-
node: string;
|
|
964
|
-
detail: string;
|
|
965
|
-
data: {
|
|
966
|
-
error: string;
|
|
967
|
-
};
|
|
968
|
-
}[];
|
|
969
|
-
};
|
|
970
|
-
scope: {
|
|
971
|
-
targetNetworks: never[];
|
|
972
|
-
error: string;
|
|
973
|
-
indexRelevancyScores?: undefined;
|
|
974
|
-
agentTimings?: undefined;
|
|
975
|
-
trace?: undefined;
|
|
976
|
-
} | {
|
|
977
|
-
targetNetworks: TargetNetwork[];
|
|
978
|
-
indexRelevancyScores: Record<string, number>;
|
|
979
|
-
agentTimings: DebugMetaAgent[];
|
|
980
|
-
trace: {
|
|
981
|
-
node: string;
|
|
982
|
-
detail: string;
|
|
983
|
-
data: {
|
|
984
|
-
totalMembers: number;
|
|
985
|
-
};
|
|
986
|
-
}[];
|
|
987
|
-
error?: undefined;
|
|
988
|
-
} | {
|
|
989
|
-
targetNetworks: TargetNetwork[];
|
|
990
|
-
indexRelevancyScores: Record<string, number>;
|
|
991
|
-
trace: {
|
|
992
|
-
node: string;
|
|
993
|
-
detail: string;
|
|
994
|
-
data: {
|
|
995
|
-
totalMembers: number;
|
|
996
|
-
};
|
|
997
|
-
}[];
|
|
998
|
-
error?: undefined;
|
|
999
|
-
agentTimings?: undefined;
|
|
1000
|
-
} | {
|
|
1001
|
-
targetNetworks: never[];
|
|
1002
|
-
error: string;
|
|
1003
|
-
trace: {
|
|
1004
|
-
node: string;
|
|
1005
|
-
detail: string;
|
|
1006
|
-
data: {
|
|
1007
|
-
error: string;
|
|
1008
|
-
};
|
|
1009
|
-
}[];
|
|
1010
|
-
indexRelevancyScores?: undefined;
|
|
1011
|
-
agentTimings?: undefined;
|
|
1012
|
-
};
|
|
1013
|
-
resolve: {
|
|
1014
|
-
resolvedTriggerIntentId: undefined;
|
|
1015
|
-
resolvedIntentInIndex: boolean;
|
|
1016
|
-
discoverySource: "context";
|
|
1017
|
-
error: string;
|
|
1018
|
-
trace?: undefined;
|
|
1019
|
-
} | {
|
|
1020
|
-
resolvedTriggerIntentId: Id<"intents">;
|
|
1021
|
-
resolvedIntentInIndex: boolean;
|
|
1022
|
-
discoverySource: "intent" | "context";
|
|
1023
|
-
error?: undefined;
|
|
1024
|
-
trace?: undefined;
|
|
1025
|
-
} | {
|
|
1026
|
-
resolvedTriggerIntentId: undefined;
|
|
1027
|
-
resolvedIntentInIndex: boolean;
|
|
1028
|
-
discoverySource: "context";
|
|
1029
|
-
error?: undefined;
|
|
1030
|
-
trace?: undefined;
|
|
1031
|
-
} | {
|
|
1032
|
-
resolvedTriggerIntentId: undefined;
|
|
1033
|
-
resolvedIntentInIndex: boolean;
|
|
1034
|
-
discoverySource: "context";
|
|
1035
|
-
error: string;
|
|
1036
|
-
trace: {
|
|
1037
|
-
node: string;
|
|
1038
|
-
detail: string;
|
|
1039
|
-
data: {
|
|
1040
|
-
error: string;
|
|
1041
|
-
};
|
|
1042
|
-
}[];
|
|
1043
|
-
};
|
|
1044
|
-
discovery: {
|
|
1045
|
-
candidates: never[];
|
|
1046
|
-
trace?: undefined;
|
|
1047
|
-
hydeEmbeddings?: undefined;
|
|
1048
|
-
error?: undefined;
|
|
1049
|
-
} | {
|
|
1050
|
-
candidates: CandidateMatch[];
|
|
1051
|
-
trace: {
|
|
1052
|
-
node: string;
|
|
1053
|
-
detail?: string;
|
|
1054
|
-
data?: Record<string, unknown>;
|
|
1055
|
-
}[];
|
|
1056
|
-
hydeEmbeddings?: undefined;
|
|
1057
|
-
error?: undefined;
|
|
1058
|
-
} | {
|
|
1059
|
-
hydeEmbeddings: Record<string, number[]>;
|
|
1060
|
-
candidates: never[];
|
|
1061
|
-
trace?: undefined;
|
|
1062
|
-
error?: undefined;
|
|
1063
|
-
} | {
|
|
1064
|
-
hydeEmbeddings: Record<string, number[]>;
|
|
1065
|
-
candidates: CandidateMatch[];
|
|
1066
|
-
trace: {
|
|
1067
|
-
node: string;
|
|
1068
|
-
detail?: string;
|
|
1069
|
-
data?: Record<string, unknown>;
|
|
1070
|
-
}[];
|
|
1071
|
-
error?: undefined;
|
|
1072
|
-
} | {
|
|
1073
|
-
candidates: never[];
|
|
1074
|
-
error: string;
|
|
1075
|
-
trace: {
|
|
1076
|
-
node: string;
|
|
1077
|
-
detail: string;
|
|
1078
|
-
data: {
|
|
1079
|
-
error: string;
|
|
1080
|
-
};
|
|
1081
|
-
}[];
|
|
1082
|
-
hydeEmbeddings?: undefined;
|
|
1083
|
-
};
|
|
1084
|
-
evaluation: {
|
|
1085
|
-
evaluatedOpportunities: never[];
|
|
1086
|
-
agentTimings: never[];
|
|
1087
|
-
candidates?: undefined;
|
|
1088
|
-
remainingCandidates?: undefined;
|
|
1089
|
-
error?: undefined;
|
|
1090
|
-
trace?: undefined;
|
|
1091
|
-
} | {
|
|
1092
|
-
candidates: never[];
|
|
1093
|
-
evaluatedOpportunities: never[];
|
|
1094
|
-
remainingCandidates: never[];
|
|
1095
|
-
error: string;
|
|
1096
|
-
agentTimings: never[];
|
|
1097
|
-
trace?: undefined;
|
|
1098
|
-
} | {
|
|
1099
|
-
candidates: never[];
|
|
1100
|
-
evaluatedOpportunities: never[];
|
|
1101
|
-
remainingCandidates: never[];
|
|
1102
|
-
agentTimings: never[];
|
|
1103
|
-
error?: undefined;
|
|
1104
|
-
trace?: undefined;
|
|
1105
|
-
} | {
|
|
1106
|
-
candidates: CandidateMatch[];
|
|
1107
|
-
evaluatedOpportunities: EvaluatedOpportunity[];
|
|
1108
|
-
remainingCandidates: CandidateMatch[];
|
|
1109
|
-
trace: {
|
|
1110
|
-
node: string;
|
|
1111
|
-
detail?: string;
|
|
1112
|
-
data?: Record<string, unknown>;
|
|
1113
|
-
}[];
|
|
1114
|
-
agentTimings: DebugMetaAgent[];
|
|
1115
|
-
error?: undefined;
|
|
1116
|
-
} | {
|
|
1117
|
-
evaluatedOpportunities: never[];
|
|
1118
|
-
error: string;
|
|
1119
|
-
trace: {
|
|
1120
|
-
node: string;
|
|
1121
|
-
detail: string;
|
|
1122
|
-
data: {
|
|
1123
|
-
error: string;
|
|
1124
|
-
candidateCount: number;
|
|
1125
|
-
durationMs: number;
|
|
1126
|
-
};
|
|
1127
|
-
}[];
|
|
1128
|
-
agentTimings: DebugMetaAgent[];
|
|
1129
|
-
candidates?: undefined;
|
|
1130
|
-
remainingCandidates?: undefined;
|
|
1131
|
-
};
|
|
1132
|
-
ranking: {
|
|
1133
|
-
evaluatedOpportunities: EvaluatedOpportunity[];
|
|
1134
|
-
error?: undefined;
|
|
1135
|
-
trace?: undefined;
|
|
1136
|
-
} | {
|
|
1137
|
-
evaluatedOpportunities: never[];
|
|
1138
|
-
error: string;
|
|
1139
|
-
trace: {
|
|
1140
|
-
node: string;
|
|
1141
|
-
detail: string;
|
|
1142
|
-
data: {
|
|
1143
|
-
error: string;
|
|
1144
|
-
};
|
|
1145
|
-
}[];
|
|
1146
|
-
};
|
|
1147
|
-
intro_validation: {
|
|
1148
|
-
error: string;
|
|
1149
|
-
trace?: undefined;
|
|
1150
|
-
} | {
|
|
1151
|
-
error?: undefined;
|
|
1152
|
-
trace?: undefined;
|
|
1153
|
-
} | {
|
|
1154
|
-
error: string;
|
|
1155
|
-
trace: {
|
|
1156
|
-
node: string;
|
|
1157
|
-
detail: string;
|
|
1158
|
-
data: {
|
|
1159
|
-
error: string;
|
|
1160
|
-
};
|
|
1161
|
-
}[];
|
|
1162
|
-
};
|
|
1163
|
-
intro_evaluation: {
|
|
1164
|
-
evaluatedOpportunities: never[];
|
|
1165
|
-
agentTimings: never[];
|
|
1166
|
-
error?: undefined;
|
|
1167
|
-
introductionContext?: undefined;
|
|
1168
|
-
options?: undefined;
|
|
1169
|
-
trace?: undefined;
|
|
1170
|
-
} | {
|
|
1171
|
-
evaluatedOpportunities: never[];
|
|
1172
|
-
error: string;
|
|
1173
|
-
agentTimings: never[];
|
|
1174
|
-
introductionContext?: undefined;
|
|
1175
|
-
options?: undefined;
|
|
1176
|
-
trace?: undefined;
|
|
1177
|
-
} | {
|
|
1178
|
-
evaluatedOpportunities: {
|
|
1179
|
-
actors: EvaluatedOpportunityActor[];
|
|
1180
|
-
score: number;
|
|
1181
|
-
reasoning: string;
|
|
1182
|
-
}[];
|
|
1183
|
-
introductionContext: {
|
|
1184
|
-
createdByName: string | undefined;
|
|
1185
|
-
};
|
|
1186
|
-
options: {
|
|
1187
|
-
initialStatus: OpportunityStatus;
|
|
1188
|
-
negotiationContinuation?: import("../shared/interfaces/database.interface.js").NegotiationContinuationExecution;
|
|
1189
|
-
minScore?: number;
|
|
1190
|
-
limit?: number;
|
|
1191
|
-
lenses?: import("../shared/hyde/lens.inferrer.js").Lens[];
|
|
1192
|
-
hydeDescription?: string;
|
|
1193
|
-
existingOpportunities?: string;
|
|
1194
|
-
conversationId?: string;
|
|
1195
|
-
negotiateTimeoutMs?: number;
|
|
1196
|
-
};
|
|
1197
|
-
agentTimings: DebugMetaAgent[];
|
|
1198
|
-
trace: {
|
|
1199
|
-
node: string;
|
|
1200
|
-
detail: string;
|
|
1201
|
-
data: {
|
|
1202
|
-
error: string;
|
|
1203
|
-
};
|
|
1204
|
-
}[];
|
|
1205
|
-
error?: undefined;
|
|
1206
|
-
} | {
|
|
1207
|
-
evaluatedOpportunities: EvaluatedOpportunity[];
|
|
1208
|
-
introductionContext: {
|
|
1209
|
-
createdByName: string | undefined;
|
|
1210
|
-
};
|
|
1211
|
-
options: {
|
|
1212
|
-
initialStatus: OpportunityStatus;
|
|
1213
|
-
negotiationContinuation?: import("../shared/interfaces/database.interface.js").NegotiationContinuationExecution;
|
|
1214
|
-
minScore?: number;
|
|
1215
|
-
limit?: number;
|
|
1216
|
-
lenses?: import("../shared/hyde/lens.inferrer.js").Lens[];
|
|
1217
|
-
hydeDescription?: string;
|
|
1218
|
-
existingOpportunities?: string;
|
|
1219
|
-
conversationId?: string;
|
|
1220
|
-
negotiateTimeoutMs?: number;
|
|
1221
|
-
};
|
|
1222
|
-
agentTimings: DebugMetaAgent[];
|
|
1223
|
-
error?: undefined;
|
|
1224
|
-
trace?: undefined;
|
|
1225
|
-
};
|
|
1226
|
-
persist: {
|
|
1227
|
-
opportunities: never[];
|
|
1228
|
-
persistenceOutcome: {
|
|
1229
|
-
evaluatedCount: number;
|
|
1230
|
-
createdCount: number;
|
|
1231
|
-
reactivatedCount: number;
|
|
1232
|
-
sameTriggerDuplicateSuppressions: number;
|
|
1233
|
-
pairActiveNegotiationSuppressions: number;
|
|
1234
|
-
crossTriggerAllowedCount: number;
|
|
1235
|
-
finalAtomicConflictCount: number;
|
|
1236
|
-
};
|
|
1237
|
-
existingBetweenActors?: undefined;
|
|
1238
|
-
dedupAlreadyAccepted?: undefined;
|
|
1239
|
-
trace?: undefined;
|
|
1240
|
-
error?: undefined;
|
|
1241
|
-
} | {
|
|
1242
|
-
opportunities: never[];
|
|
1243
|
-
persistenceOutcome?: undefined;
|
|
1244
|
-
existingBetweenActors?: undefined;
|
|
1245
|
-
dedupAlreadyAccepted?: undefined;
|
|
1246
|
-
trace?: undefined;
|
|
1247
|
-
error?: undefined;
|
|
1248
|
-
} | {
|
|
1249
|
-
opportunities: Opportunity[];
|
|
1250
|
-
existingBetweenActors: {
|
|
1251
|
-
candidateUserId: Id<"users">;
|
|
1252
|
-
networkId: Id<"networks">;
|
|
1253
|
-
existingOpportunityId?: Id<"opportunities">;
|
|
1254
|
-
existingStatus?: OpportunityStatus;
|
|
1255
|
-
reason?: "same_trigger_recent_duplicate" | "pair_active_negotiation" | "final_atomic_conflict";
|
|
1256
|
-
existingTriggerIntentId?: string;
|
|
1257
|
-
}[];
|
|
1258
|
-
dedupAlreadyAccepted: {
|
|
1259
|
-
opportunityId: string;
|
|
1260
|
-
counterpartyUserId: string;
|
|
1261
|
-
}[];
|
|
1262
|
-
persistenceOutcome: {
|
|
1263
|
-
evaluatedCount: number;
|
|
1264
|
-
createdCount: number;
|
|
1265
|
-
reactivatedCount: number;
|
|
1266
|
-
sameTriggerDuplicateSuppressions: number;
|
|
1267
|
-
pairActiveNegotiationSuppressions: number;
|
|
1268
|
-
crossTriggerAllowedCount: number;
|
|
1269
|
-
finalAtomicConflictCount: number;
|
|
1270
|
-
};
|
|
1271
|
-
trace: {
|
|
1272
|
-
node: string;
|
|
1273
|
-
detail: string;
|
|
1274
|
-
data: {
|
|
1275
|
-
created: number;
|
|
1276
|
-
reactivated: number;
|
|
1277
|
-
existingSkipped: number;
|
|
1278
|
-
alreadyAccepted: number;
|
|
1279
|
-
totalOutput: number;
|
|
1280
|
-
persistenceOutcome: {
|
|
1281
|
-
evaluatedCount: number;
|
|
1282
|
-
createdCount: number;
|
|
1283
|
-
reactivatedCount: number;
|
|
1284
|
-
sameTriggerDuplicateSuppressions: number;
|
|
1285
|
-
pairActiveNegotiationSuppressions: number;
|
|
1286
|
-
crossTriggerAllowedCount: number;
|
|
1287
|
-
finalAtomicConflictCount: number;
|
|
1288
|
-
};
|
|
1289
|
-
durationMs: number;
|
|
1290
|
-
};
|
|
1291
|
-
}[];
|
|
1292
|
-
error?: undefined;
|
|
1293
|
-
} | {
|
|
1294
|
-
opportunities: never[];
|
|
1295
|
-
existingBetweenActors: never[];
|
|
1296
|
-
error: string;
|
|
1297
|
-
trace: {
|
|
1298
|
-
node: string;
|
|
1299
|
-
detail: string;
|
|
1300
|
-
data: {
|
|
1301
|
-
error: string;
|
|
1302
|
-
};
|
|
1303
|
-
}[];
|
|
1304
|
-
persistenceOutcome?: undefined;
|
|
1305
|
-
dedupAlreadyAccepted?: undefined;
|
|
1306
|
-
};
|
|
1307
|
-
read: {
|
|
1308
|
-
readResult: {
|
|
1309
|
-
count: number;
|
|
1310
|
-
message: string;
|
|
1311
|
-
opportunities: {
|
|
1312
|
-
id: string;
|
|
1313
|
-
indexName: string;
|
|
1314
|
-
connectedWith: string[];
|
|
1315
|
-
suggestedBy: string | null;
|
|
1316
|
-
reasoning: string;
|
|
1317
|
-
status: OpportunityStatus;
|
|
1318
|
-
category: string;
|
|
1319
|
-
confidence: number | null;
|
|
1320
|
-
source: string | null;
|
|
1321
|
-
}[];
|
|
1322
|
-
};
|
|
1323
|
-
};
|
|
1324
|
-
update: {
|
|
1325
|
-
mutationResult: {
|
|
1326
|
-
success: boolean;
|
|
1327
|
-
error: string;
|
|
1328
|
-
};
|
|
1329
|
-
} | {
|
|
1330
|
-
mutationResult: {
|
|
1331
|
-
conversationId?: string | undefined;
|
|
1332
|
-
success: boolean;
|
|
1333
|
-
opportunityId: string;
|
|
1334
|
-
message: string;
|
|
1335
|
-
error?: undefined;
|
|
1336
|
-
};
|
|
1337
|
-
};
|
|
1338
|
-
delete_opp: {
|
|
1339
|
-
mutationResult: {
|
|
1340
|
-
success: boolean;
|
|
1341
|
-
error: string;
|
|
1342
|
-
opportunityId?: undefined;
|
|
1343
|
-
message?: undefined;
|
|
1344
|
-
};
|
|
1345
|
-
} | {
|
|
1346
|
-
mutationResult: {
|
|
1347
|
-
success: boolean;
|
|
1348
|
-
opportunityId: string;
|
|
1349
|
-
message: string;
|
|
1350
|
-
error?: undefined;
|
|
1351
|
-
};
|
|
1352
|
-
};
|
|
1353
|
-
send: {
|
|
1354
|
-
mutationResult: {
|
|
1355
|
-
success: boolean;
|
|
1356
|
-
error: string;
|
|
1357
|
-
opportunityId?: undefined;
|
|
1358
|
-
notified?: undefined;
|
|
1359
|
-
message?: undefined;
|
|
1360
|
-
};
|
|
1361
|
-
} | {
|
|
1362
|
-
mutationResult: {
|
|
1363
|
-
success: boolean;
|
|
1364
|
-
opportunityId: string;
|
|
1365
|
-
notified: Id<"users">[];
|
|
1366
|
-
message: string;
|
|
1367
|
-
error?: undefined;
|
|
1368
|
-
};
|
|
1369
|
-
};
|
|
1370
|
-
negotiate_existing: {
|
|
1371
|
-
negotiationContinuationReceipt?: undefined;
|
|
1372
|
-
error?: undefined;
|
|
1373
|
-
} | {
|
|
1374
|
-
negotiationContinuationReceipt: NegotiationContinuationReceipt;
|
|
1375
|
-
error?: undefined;
|
|
1376
|
-
} | {
|
|
1377
|
-
error: string;
|
|
1378
|
-
negotiationContinuationReceipt?: undefined;
|
|
1379
|
-
};
|
|
1380
|
-
approve_introduction: {
|
|
1381
|
-
mutationResult: {
|
|
1382
|
-
success: boolean;
|
|
1383
|
-
error: string;
|
|
1384
|
-
opportunityId?: undefined;
|
|
1385
|
-
};
|
|
1386
|
-
} | {
|
|
1387
|
-
mutationResult: {
|
|
1388
|
-
success: boolean;
|
|
1389
|
-
opportunityId: string;
|
|
1390
|
-
error?: undefined;
|
|
1391
|
-
};
|
|
1392
|
-
};
|
|
1393
|
-
negotiate: {
|
|
1394
|
-
trace?: undefined;
|
|
1395
|
-
discoveryNegotiations?: undefined;
|
|
1396
|
-
discoverySummary?: undefined;
|
|
1397
|
-
} | {
|
|
1398
|
-
trace: {
|
|
1399
|
-
node: string;
|
|
1400
|
-
detail: string;
|
|
1401
|
-
data: {
|
|
1402
|
-
negotiateTimeoutMs: number;
|
|
1403
|
-
candidateCount: number;
|
|
1404
|
-
durationMs: number;
|
|
1405
|
-
};
|
|
1406
|
-
}[];
|
|
1407
|
-
discoveryNegotiations: {
|
|
1408
|
-
outcome: {
|
|
1409
|
-
reasoning: string;
|
|
1410
|
-
hasOpportunity: boolean;
|
|
1411
|
-
reason?: "timeout" | "turn_cap" | "screened_out" | undefined;
|
|
1412
|
-
agreedRoles?: {
|
|
1413
|
-
userId: string;
|
|
1414
|
-
role: "agent" | "patient" | "peer";
|
|
1415
|
-
}[] | undefined;
|
|
1416
|
-
};
|
|
1417
|
-
counterpartyHint: string;
|
|
1418
|
-
indexContext: string;
|
|
1419
|
-
counterpartyId: string;
|
|
1420
|
-
turns: {
|
|
1421
|
-
reasoning: string;
|
|
1422
|
-
action: "propose" | "accept" | "reject" | "counter" | "question" | "outreach" | "withdraw" | "decline" | "ask_user";
|
|
1423
|
-
suggestedRoles: {
|
|
1424
|
-
ownUser: "agent" | "patient" | "peer";
|
|
1425
|
-
otherUser: "agent" | "patient" | "peer";
|
|
1426
|
-
};
|
|
1427
|
-
}[];
|
|
1428
|
-
seedAssessmentScore?: number | undefined;
|
|
1429
|
-
}[];
|
|
1430
|
-
discoverySummary: import("../index.js").DiscoverySummary;
|
|
1431
|
-
} | {
|
|
1432
|
-
trace: ({
|
|
1433
|
-
node: string;
|
|
1434
|
-
detail: string;
|
|
1435
|
-
data: {
|
|
1436
|
-
userId: string;
|
|
1437
|
-
opportunityId: string | undefined;
|
|
1438
|
-
name: string;
|
|
1439
|
-
outcome: string;
|
|
1440
|
-
turns: number;
|
|
1441
|
-
};
|
|
1442
|
-
} | {
|
|
1443
|
-
node: string;
|
|
1444
|
-
detail: string;
|
|
1445
|
-
data: {
|
|
1446
|
-
durationMs: number;
|
|
1447
|
-
candidateCount: number;
|
|
1448
|
-
acceptedCount: number;
|
|
1449
|
-
otherCount: number;
|
|
1450
|
-
};
|
|
1451
|
-
})[];
|
|
1452
|
-
discoveryNegotiations: {
|
|
1453
|
-
outcome: {
|
|
1454
|
-
reasoning: string;
|
|
1455
|
-
hasOpportunity: boolean;
|
|
1456
|
-
reason?: "timeout" | "turn_cap" | "screened_out" | undefined;
|
|
1457
|
-
agreedRoles?: {
|
|
1458
|
-
userId: string;
|
|
1459
|
-
role: "agent" | "patient" | "peer";
|
|
1460
|
-
}[] | undefined;
|
|
1461
|
-
};
|
|
1462
|
-
counterpartyHint: string;
|
|
1463
|
-
indexContext: string;
|
|
1464
|
-
counterpartyId: string;
|
|
1465
|
-
turns: {
|
|
1466
|
-
reasoning: string;
|
|
1467
|
-
action: "propose" | "accept" | "reject" | "counter" | "question" | "outreach" | "withdraw" | "decline" | "ask_user";
|
|
1468
|
-
suggestedRoles: {
|
|
1469
|
-
ownUser: "agent" | "patient" | "peer";
|
|
1470
|
-
otherUser: "agent" | "patient" | "peer";
|
|
1471
|
-
};
|
|
1472
|
-
}[];
|
|
1473
|
-
seedAssessmentScore?: number | undefined;
|
|
1474
|
-
}[];
|
|
1475
|
-
discoverySummary: import("../index.js").DiscoverySummary;
|
|
1476
|
-
} | {
|
|
1477
|
-
trace: {
|
|
1478
|
-
node: string;
|
|
1479
|
-
detail: string;
|
|
1480
|
-
data: {
|
|
1481
|
-
durationMs: number;
|
|
1482
|
-
error: boolean;
|
|
1483
|
-
};
|
|
1484
|
-
}[];
|
|
1485
|
-
discoveryNegotiations: never[];
|
|
1486
|
-
discoverySummary: import("../index.js").DiscoverySummary;
|
|
1487
|
-
};
|
|
1488
|
-
}, unknown, unknown, []>;
|
|
1489
|
-
}
|
|
1490
|
-
export {};
|
|
1491
|
-
//# sourceMappingURL=opportunity.graph.d.ts.map
|
|
5
|
+
export * from "./application/opportunity.graph.js";
|