@indexnetwork/protocol 22.0.0-rc.498.1 → 64.0.0-rc.604.2
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 +1841 -0
- package/IMPLEMENTATION.md +140 -181
- package/README.md +16 -20
- package/STABILITY.md +16 -11
- package/dist/{intents/intent.module.d.ts → capabilities/intents.d.ts} +182 -192
- package/dist/capabilities/intents.js +88 -0
- package/dist/capabilities/negotiations.d.ts +17 -0
- package/dist/capabilities/negotiations.js +16 -0
- package/dist/{networks/network.module.d.ts → capabilities/networks.d.ts} +33 -169
- package/dist/{networks/network.module.js → capabilities/networks.js} +6 -17
- package/dist/index.d.ts +57 -132
- package/dist/index.js +41 -100
- package/dist/internal/agents/agent.repository.port.d.ts +59 -0
- package/dist/internal/agents/agent.repository.port.js +7 -0
- package/dist/internal/agents/agent.types.d.ts +35 -0
- package/dist/{agents → internal/agents}/agent.types.js +1 -6
- package/dist/{intents → internal/intents}/graph/intent.graph.d.ts +142 -151
- package/dist/{intents → internal/intents}/graph/intent.graph.execute.d.ts +5 -1
- package/dist/{intents → internal/intents}/graph/intent.graph.execute.js +165 -46
- package/dist/internal/intents/graph/intent.graph.infer.d.ts +78 -0
- package/dist/internal/intents/graph/intent.graph.infer.js +122 -0
- package/dist/internal/intents/graph/intent.graph.js +108 -0
- package/dist/{intents → internal/intents}/graph/intent.graph.reconcile.d.ts +18 -9
- package/dist/internal/intents/graph/intent.graph.reconcile.js +173 -0
- package/dist/internal/intents/graph/intent.graph.shared.d.ts +55 -0
- package/dist/{intents → internal/intents}/graph/intent.graph.shared.js +25 -70
- package/dist/{intents → internal/intents}/graph/intent.graph.state.d.ts +96 -32
- package/dist/{intents → internal/intents}/graph/intent.graph.state.js +42 -31
- package/dist/internal/intents/intent.admission.d.ts +16 -0
- package/dist/internal/intents/intent.admission.js +30 -0
- package/dist/{intents → internal/intents}/intent.inferrer.d.ts +1 -40
- package/dist/{intents → internal/intents}/intent.inferrer.js +13 -49
- package/dist/internal/intents/intent.preparer.d.ts +52 -0
- package/dist/internal/intents/intent.preparer.js +87 -0
- package/dist/{intents → internal/intents}/intent.verifier.d.ts +3 -36
- package/dist/{intents → internal/intents}/intent.verifier.js +0 -17
- package/dist/{networks → internal/networks}/indexer.graph.d.ts +15 -200
- package/dist/{networks → internal/networks}/indexer.graph.js +19 -128
- package/dist/{networks → internal/networks}/indexer.state.d.ts +8 -63
- package/dist/internal/networks/indexer.state.js +70 -0
- package/dist/{networks → internal/networks}/membership.graph.d.ts +6 -6
- package/dist/{networks → internal/networks}/membership.graph.js +3 -3
- package/dist/{networks → internal/networks}/membership.state.d.ts +2 -2
- package/dist/{networks → internal/networks}/membership.state.js +2 -2
- package/dist/{networks → internal/networks}/network.graph.d.ts +9 -22
- package/dist/{networks → internal/networks}/network.graph.js +13 -27
- package/dist/{networks → internal/networks}/network.recommender.d.ts +2 -2
- package/dist/{networks → internal/networks}/network.recommender.js +2 -2
- package/dist/{networks → internal/networks}/network.state.d.ts +4 -7
- package/dist/{networks → internal/networks}/network.state.js +4 -4
- package/dist/internal/opportunities/negotiation-context.loader.d.ts +26 -0
- package/dist/internal/opportunities/negotiation-context.loader.js +36 -0
- package/dist/{opportunities → internal/opportunities}/opportunity.actor.d.ts +1 -1
- package/dist/{opportunities → internal/opportunities}/opportunity.actor.js +7 -1
- package/dist/internal/opportunities/opportunity.counterparties.d.ts +17 -0
- package/dist/internal/opportunities/opportunity.counterparties.js +19 -0
- package/dist/internal/opportunities/opportunity.events.d.ts +38 -0
- package/dist/internal/opportunities/opportunity.events.js +94 -0
- package/dist/{opportunities → internal/opportunities}/opportunity.feed-selection.d.ts +3 -9
- package/dist/internal/opportunities/opportunity.feed-selection.js +40 -0
- package/dist/internal/opportunities/opportunity.graph.modes.d.ts +39 -0
- package/dist/internal/opportunities/opportunity.graph.modes.js +138 -0
- package/dist/{opportunities → internal/opportunities}/opportunity.labels.d.ts +2 -3
- package/dist/internal/opportunities/opportunity.labels.js +9 -0
- package/dist/{opportunities → internal/opportunities}/opportunity.presentation.d.ts +17 -86
- package/dist/{opportunities → internal/opportunities}/opportunity.presentation.js +54 -447
- package/dist/{opportunities → internal/opportunities}/opportunity.update-admission.d.ts +2 -2
- package/dist/internal/opportunities/opportunity.utils.d.ts +105 -0
- package/dist/internal/opportunities/opportunity.utils.js +165 -0
- package/dist/{opportunities → internal/opportunities}/radar/radar.graph.d.ts +17 -17
- package/dist/{opportunities → internal/opportunities}/radar/radar.graph.js +41 -161
- package/dist/{opportunities → internal/opportunities}/radar/radar.state.d.ts +4 -11
- package/dist/{shared → internal/shared}/agent/model-signal.d.ts +1 -1
- package/dist/{shared → internal/shared}/agent/model-signal.js +1 -1
- package/dist/{shared → internal/shared}/agent/model.config.d.ts +28 -86
- package/dist/{shared → internal/shared}/agent/model.config.js +58 -69
- package/dist/internal/shared/agent/model.resolver.d.ts +33 -0
- package/dist/{shared → internal/shared}/agent/model.resolver.js +18 -33
- package/dist/internal/shared/agent/scope.d.ts +20 -0
- package/dist/internal/shared/agent/scope.js +24 -0
- package/dist/internal/shared/assignment/network-assignment.policy.d.ts +23 -0
- package/dist/internal/shared/assignment/network-assignment.policy.js +28 -0
- package/dist/{shared → internal/shared}/observability/log.d.ts +3 -6
- package/dist/{shared → internal/shared}/observability/log.js +9 -18
- package/dist/{shared → internal/shared}/observability/protocol.logger.d.ts +1 -1
- package/dist/{shared → internal/shared}/observability/protocol.logger.js +1 -1
- package/dist/internal/shared/observability/request-context.d.ts +29 -0
- package/dist/internal/shared/observability/request-context.js +17 -0
- package/dist/{shared → internal/shared}/utils/social-label.d.ts +2 -2
- package/dist/{shared → internal/shared}/utils/social-label.js +1 -1
- package/dist/platform/database/capabilities.d.ts +59 -0
- package/dist/{shared/interfaces/database.entities.d.ts → platform/database/entities.d.ts} +81 -121
- package/dist/{shared/interfaces/database.identity-queries.d.ts → platform/database/identity-queries.d.ts} +55 -20
- package/dist/platform/database/member-queries.d.ts +55 -0
- package/dist/platform/database/member-queries.js +4 -0
- package/dist/platform/database/negotiation.d.ts +38 -0
- package/dist/{shared/interfaces/database.network-queries.d.ts → platform/database/network-queries.d.ts} +66 -67
- package/dist/platform/database/network-queries.js +4 -0
- package/dist/{shared/interfaces/database.opportunity-queries.d.ts → platform/database/opportunity-queries.d.ts} +25 -109
- package/dist/{shared/interfaces/database.port.d.ts → platform/database/port.d.ts} +52 -117
- package/dist/{shared/interfaces/database.port.js → platform/database/port.js} +3 -5
- package/dist/platform/database.d.ts +23 -0
- package/dist/{shared/interfaces/database.interface.js → platform/database.js} +1 -1
- package/dist/{shared/interfaces/cache.interface.d.ts → platform/discovery/cache.d.ts} +2 -4
- package/dist/{shared/interfaces/cache.interface.js → platform/discovery/cache.js} +1 -1
- package/dist/platform/discovery/embedder.d.ts +31 -0
- package/dist/platform/runtime/errors.d.ts +6 -0
- package/dist/platform/runtime/errors.js +9 -0
- package/dist/platform/runtime/follow-up.d.ts +36 -0
- package/dist/platform/runtime/follow-up.js +4 -0
- package/dist/platform/runtime/observability.d.ts +34 -0
- package/dist/protocol/core.d.ts +11 -0
- package/dist/protocol/discovery.rules.d.ts +21 -0
- package/dist/protocol/discovery.rules.js +29 -0
- package/dist/protocol/negotiation.constants.d.ts +3 -0
- package/dist/protocol/negotiation.constants.js +3 -0
- package/dist/protocol/negotiation.rules.d.ts +73 -0
- package/dist/protocol/negotiation.rules.js +68 -0
- package/dist/protocol/protocol.prompt.d.ts +13 -0
- package/dist/protocol/protocol.prompt.js +190 -0
- package/dist/{shared → protocol}/schemas/discovery-question.schema.d.ts +13 -13
- package/dist/{shared → protocol}/schemas/discovery-question.schema.js +2 -2
- package/dist/{shared → protocol}/schemas/identity.schema.d.ts +4 -4
- package/dist/{shared → protocol}/schemas/identity.schema.js +4 -4
- package/dist/{shared → protocol}/schemas/network-assignment.schema.d.ts +11 -20
- package/dist/{shared → protocol}/schemas/network-assignment.schema.js +2 -9
- package/dist/protocol/schemas/underspecification.schema.d.ts +9 -0
- package/dist/protocol/schemas/underspecification.schema.js +12 -0
- package/package.json +7 -15
- package/dist/agents/agent.dispatcher.port.d.ts +0 -25
- package/dist/agents/agent.module.d.ts +0 -19
- package/dist/agents/agent.module.js +0 -11
- package/dist/agents/agent.repository.port.d.ts +0 -118
- package/dist/agents/agent.repository.port.js +0 -10
- package/dist/agents/agent.tools.d.ts +0 -16
- package/dist/agents/agent.tools.js +0 -351
- package/dist/agents/agent.tools.port.d.ts +0 -22
- package/dist/agents/agent.tools.port.js +0 -18
- package/dist/agents/agent.types.d.ts +0 -76
- package/dist/chat/chat-streaming.types.d.ts +0 -618
- package/dist/chat/chat-streaming.types.js +0 -297
- package/dist/chat/chat.agent.d.ts +0 -292
- package/dist/chat/chat.agent.js +0 -1010
- package/dist/chat/chat.graph.d.ts +0 -424
- package/dist/chat/chat.graph.js +0 -257
- package/dist/chat/chat.interrupt.classifier.d.ts +0 -25
- package/dist/chat/chat.interrupt.classifier.js +0 -64
- package/dist/chat/chat.persona.d.ts +0 -39
- package/dist/chat/chat.prompt.d.ts +0 -4
- package/dist/chat/chat.prompt.js +0 -12
- package/dist/chat/chat.prompt.modules.d.ts +0 -30
- package/dist/chat/chat.prompt.modules.js +0 -40
- package/dist/chat/chat.question-dedup.d.ts +0 -14
- package/dist/chat/chat.question-dedup.js +0 -17
- package/dist/chat/chat.state.d.ts +0 -135
- package/dist/chat/chat.state.js +0 -120
- package/dist/chat/chat.streamer.d.ts +0 -64
- package/dist/chat/chat.streamer.js +0 -217
- package/dist/chat/chat.suggester.d.ts +0 -23
- package/dist/chat/chat.suggester.js +0 -95
- package/dist/chat/chat.summarizer.d.ts +0 -20
- package/dist/chat/chat.summarizer.js +0 -97
- package/dist/chat/chat.title.generator.d.ts +0 -19
- package/dist/chat/chat.title.generator.js +0 -66
- package/dist/chat/chat.tools.d.ts +0 -5
- package/dist/chat/chat.tools.js +0 -62
- package/dist/chat/chat.utils.d.ts +0 -41
- package/dist/chat/chat.utils.js +0 -88
- package/dist/chat/negotiator.persona.d.ts +0 -74
- package/dist/chat/negotiator.persona.js +0 -154
- package/dist/chat/negotiator.prompt.d.ts +0 -45
- package/dist/chat/negotiator.prompt.js +0 -160
- package/dist/chat/negotiator.tools.d.ts +0 -42
- package/dist/chat/negotiator.tools.js +0 -134
- package/dist/chat/onboarding.persona.d.ts +0 -28
- package/dist/chat/onboarding.persona.js +0 -86
- package/dist/chat/onboarding.prompt.d.ts +0 -6
- package/dist/chat/onboarding.prompt.js +0 -63
- package/dist/chat/signal.persona.d.ts +0 -47
- package/dist/chat/signal.persona.js +0 -319
- package/dist/chat/signal.prompt.d.ts +0 -39
- package/dist/chat/signal.prompt.js +0 -136
- package/dist/contacts/contact.module.d.ts +0 -8
- package/dist/contacts/contact.module.js +0 -6
- package/dist/contacts/contact.repository.port.d.ts +0 -21
- package/dist/contacts/contact.repository.port.js +0 -12
- package/dist/contacts/contact.tools.d.ts +0 -17
- package/dist/contacts/contact.tools.js +0 -108
- package/dist/contacts/contact.tools.port.d.ts +0 -20
- package/dist/contacts/contact.tools.port.js +0 -16
- package/dist/contacts/contact.types.d.ts +0 -24
- package/dist/contacts/contact.types.js +0 -8
- package/dist/contexts/context.generator.d.ts +0 -95
- package/dist/contexts/context.generator.js +0 -127
- package/dist/contexts/context.module.d.ts +0 -13
- package/dist/contexts/context.module.js +0 -12
- package/dist/contexts/context.tools.port.d.ts +0 -9
- package/dist/discovery/hyde.documents.d.ts +0 -9
- package/dist/discovery/hyde.documents.js +0 -49
- package/dist/discovery/hyde.env.d.ts +0 -8
- package/dist/discovery/hyde.env.js +0 -9
- package/dist/discovery/hyde.frame.d.ts +0 -150
- package/dist/discovery/hyde.frame.js +0 -107
- package/dist/discovery/hyde.generator.d.ts +0 -38
- package/dist/discovery/hyde.generator.js +0 -103
- package/dist/discovery/hyde.graph.d.ts +0 -209
- package/dist/discovery/hyde.graph.js +0 -482
- package/dist/discovery/hyde.state.d.ts +0 -70
- package/dist/discovery/hyde.state.js +0 -85
- package/dist/discovery/hyde.strategies.d.ts +0 -17
- package/dist/discovery/hyde.strategies.js +0 -34
- package/dist/discovery/hyde.validator.d.ts +0 -78
- package/dist/discovery/hyde.validator.js +0 -48
- package/dist/discovery/index.d.ts +0 -26
- package/dist/discovery/index.js +0 -19
- package/dist/discovery/lens.inferrer.d.ts +0 -214
- package/dist/discovery/lens.inferrer.js +0 -152
- package/dist/enrichment/enrichment.generator.d.ts +0 -68
- package/dist/enrichment/enrichment.generator.js +0 -95
- package/dist/enrichment/enrichment.graph.d.ts +0 -544
- package/dist/enrichment/enrichment.graph.js +0 -695
- package/dist/enrichment/enrichment.state.d.ts +0 -141
- package/dist/enrichment/enrichment.state.js +0 -115
- package/dist/enrichment/enrichment.tools.context-read.d.ts +0 -10
- package/dist/enrichment/enrichment.tools.context-read.js +0 -353
- package/dist/enrichment/enrichment.tools.context-write.d.ts +0 -9
- package/dist/enrichment/enrichment.tools.context-write.js +0 -417
- package/dist/enrichment/enrichment.tools.d.ts +0 -13
- package/dist/enrichment/enrichment.tools.helpers.d.ts +0 -139
- package/dist/enrichment/enrichment.tools.helpers.js +0 -234
- package/dist/enrichment/enrichment.tools.js +0 -153
- package/dist/intents/graph/intent.graph.infer.d.ts +0 -44
- package/dist/intents/graph/intent.graph.infer.js +0 -97
- package/dist/intents/graph/intent.graph.js +0 -134
- package/dist/intents/graph/intent.graph.reconcile.js +0 -274
- package/dist/intents/graph/intent.graph.shared.d.ts +0 -68
- package/dist/intents/intake/intake.orchestrator.d.ts +0 -203
- package/dist/intents/intake/intake.orchestrator.js +0 -255
- package/dist/intents/intake/intake.pack.generator.d.ts +0 -57
- package/dist/intents/intake/intake.pack.generator.js +0 -90
- package/dist/intents/intent.clarifier.d.ts +0 -51
- package/dist/intents/intent.clarifier.js +0 -201
- package/dist/intents/intent.indexer.d.ts +0 -82
- package/dist/intents/intent.indexer.js +0 -170
- package/dist/intents/intent.module.js +0 -103
- package/dist/intents/intent.proposal.d.ts +0 -37
- package/dist/intents/intent.proposal.js +0 -14
- package/dist/intents/intent.reconciler.d.ts +0 -105
- package/dist/intents/intent.reconciler.js +0 -186
- package/dist/intents/intent.tools.d.ts +0 -27
- package/dist/intents/intent.tools.js +0 -808
- package/dist/maintenance/maintenance.graph.d.ts +0 -239
- package/dist/maintenance/maintenance.graph.js +0 -199
- package/dist/maintenance/maintenance.state.d.ts +0 -35
- package/dist/maintenance/maintenance.state.js +0 -55
- package/dist/mcp/elicitation.builder.d.ts +0 -53
- package/dist/mcp/elicitation.builder.js +0 -74
- package/dist/mcp/elicitation.dispatcher.d.ts +0 -36
- package/dist/mcp/elicitation.dispatcher.js +0 -86
- package/dist/mcp/mcp.authorization-policy.d.ts +0 -252
- package/dist/mcp/mcp.authorization-policy.js +0 -535
- package/dist/mcp/mcp.server.d.ts +0 -90
- package/dist/mcp/mcp.server.js +0 -631
- package/dist/negotiations/insight.generator.d.ts +0 -31
- package/dist/negotiations/insight.generator.js +0 -105
- package/dist/negotiations/negotiation.agent.d.ts +0 -130
- package/dist/negotiations/negotiation.agent.js +0 -396
- package/dist/negotiations/negotiation.answer-consumption.d.ts +0 -223
- package/dist/negotiations/negotiation.answer-consumption.js +0 -275
- package/dist/negotiations/negotiation.attribution.d.ts +0 -91
- package/dist/negotiations/negotiation.attribution.js +0 -109
- package/dist/negotiations/negotiation.candidates.d.ts +0 -83
- package/dist/negotiations/negotiation.candidates.js +0 -162
- package/dist/negotiations/negotiation.client-dm.d.ts +0 -50
- package/dist/negotiations/negotiation.client-dm.js +0 -66
- package/dist/negotiations/negotiation.consultation-policy.d.ts +0 -95
- package/dist/negotiations/negotiation.consultation-policy.js +0 -159
- package/dist/negotiations/negotiation.deadlock.contracts.d.ts +0 -10
- package/dist/negotiations/negotiation.deadlock.d.ts +0 -87
- package/dist/negotiations/negotiation.deadlock.js +0 -150
- package/dist/negotiations/negotiation.detail-reader.d.ts +0 -94
- package/dist/negotiations/negotiation.detail-reader.js +0 -91
- package/dist/negotiations/negotiation.expected-speaker.d.ts +0 -33
- package/dist/negotiations/negotiation.expected-speaker.js +0 -59
- package/dist/negotiations/negotiation.graph.d.ts +0 -694
- package/dist/negotiations/negotiation.graph.finalize.d.ts +0 -5
- package/dist/negotiations/negotiation.graph.finalize.js +0 -403
- package/dist/negotiations/negotiation.graph.init.d.ts +0 -54
- package/dist/negotiations/negotiation.graph.init.js +0 -256
- package/dist/negotiations/negotiation.graph.js +0 -94
- package/dist/negotiations/negotiation.graph.screen.d.ts +0 -23
- package/dist/negotiations/negotiation.graph.screen.js +0 -108
- package/dist/negotiations/negotiation.graph.shared.d.ts +0 -111
- package/dist/negotiations/negotiation.graph.shared.js +0 -168
- package/dist/negotiations/negotiation.graph.turn.d.ts +0 -134
- package/dist/negotiations/negotiation.graph.turn.js +0 -662
- package/dist/negotiations/negotiation.hermes-contract.d.ts +0 -31
- package/dist/negotiations/negotiation.hermes-contract.js +0 -72
- package/dist/negotiations/negotiation.intent-snapshot-provenance.d.ts +0 -21
- package/dist/negotiations/negotiation.intent-snapshot-provenance.js +0 -28
- package/dist/negotiations/negotiation.lifecycle-narration.d.ts +0 -18
- package/dist/negotiations/negotiation.lifecycle-narration.js +0 -87
- package/dist/negotiations/negotiation.memory.d.ts +0 -65
- package/dist/negotiations/negotiation.memory.js +0 -83
- package/dist/negotiations/negotiation.module.d.ts +0 -36
- package/dist/negotiations/negotiation.module.js +0 -23
- package/dist/negotiations/negotiation.protocol.d.ts +0 -1018
- package/dist/negotiations/negotiation.protocol.js +0 -224
- package/dist/negotiations/negotiation.question-safety.d.ts +0 -52
- package/dist/negotiations/negotiation.question-safety.js +0 -119
- package/dist/negotiations/negotiation.reflect.d.ts +0 -194
- package/dist/negotiations/negotiation.reflect.js +0 -145
- package/dist/negotiations/negotiation.scope.d.ts +0 -41
- package/dist/negotiations/negotiation.scope.js +0 -39
- package/dist/negotiations/negotiation.screen.contracts.d.ts +0 -88
- package/dist/negotiations/negotiation.screen.contracts.js +0 -58
- package/dist/negotiations/negotiation.screen.d.ts +0 -78
- package/dist/negotiations/negotiation.screen.js +0 -112
- package/dist/negotiations/negotiation.stall-gap.d.ts +0 -83
- package/dist/negotiations/negotiation.stall-gap.js +0 -152
- package/dist/negotiations/negotiation.stance.contracts.d.ts +0 -123
- package/dist/negotiations/negotiation.stance.contracts.js +0 -317
- package/dist/negotiations/negotiation.state.d.ts +0 -597
- package/dist/negotiations/negotiation.state.js +0 -286
- package/dist/negotiations/negotiation.summarizer.d.ts +0 -25
- package/dist/negotiations/negotiation.summarizer.js +0 -101
- package/dist/negotiations/negotiation.task-lock-policy.d.ts +0 -10
- package/dist/negotiations/negotiation.task-lock-policy.js +0 -22
- package/dist/negotiations/negotiation.tools.d.ts +0 -18
- package/dist/negotiations/negotiation.tools.js +0 -842
- package/dist/negotiations/negotiation.tools.port.d.ts +0 -17
- package/dist/negotiations/negotiation.turn-cap.d.ts +0 -9
- package/dist/negotiations/negotiation.turn-cap.js +0 -12
- package/dist/networks/indexer.state.js +0 -112
- package/dist/networks/network.tools.d.ts +0 -36
- package/dist/networks/network.tools.js +0 -594
- package/dist/opportunities/delivery-card.cache.d.ts +0 -25
- package/dist/opportunities/delivery-card.cache.js +0 -43
- package/dist/opportunities/discovery.env.d.ts +0 -20
- package/dist/opportunities/discovery.env.js +0 -109
- package/dist/opportunities/discriminator/discriminator.adjustments.d.ts +0 -90
- package/dist/opportunities/discriminator/discriminator.adjustments.js +0 -141
- package/dist/opportunities/discriminator/discriminator.assigner.d.ts +0 -78
- package/dist/opportunities/discriminator/discriminator.assigner.js +0 -153
- package/dist/opportunities/discriminator/discriminator.env.d.ts +0 -103
- package/dist/opportunities/discriminator/discriminator.env.js +0 -103
- package/dist/opportunities/discriminator/discriminator.miner.d.ts +0 -114
- package/dist/opportunities/discriminator/discriminator.miner.js +0 -228
- package/dist/opportunities/discriminator/discriminator.push.d.ts +0 -13
- package/dist/opportunities/discriminator/discriminator.push.js +0 -19
- package/dist/opportunities/discriminator/discriminator.question.d.ts +0 -58
- package/dist/opportunities/discriminator/discriminator.question.js +0 -155
- package/dist/opportunities/discriminator/discriminator.scorer.d.ts +0 -32
- package/dist/opportunities/discriminator/discriminator.scorer.js +0 -105
- package/dist/opportunities/discriminator/discriminator.shadow.d.ts +0 -32
- package/dist/opportunities/discriminator/discriminator.shadow.js +0 -90
- package/dist/opportunities/discriminator/discriminator.types.d.ts +0 -93
- package/dist/opportunities/discriminator/discriminator.types.js +0 -18
- package/dist/opportunities/negotiation-context.loader.d.ts +0 -59
- package/dist/opportunities/negotiation-context.loader.js +0 -90
- package/dist/opportunities/negotiation-evidence/negotiation-evidence.env.d.ts +0 -43
- package/dist/opportunities/negotiation-evidence/negotiation-evidence.env.js +0 -44
- package/dist/opportunities/negotiation-evidence/negotiation-evidence.extractor.d.ts +0 -24
- package/dist/opportunities/negotiation-evidence/negotiation-evidence.extractor.js +0 -188
- package/dist/opportunities/negotiation-evidence/negotiation-evidence.miner.d.ts +0 -26
- package/dist/opportunities/negotiation-evidence/negotiation-evidence.miner.js +0 -112
- package/dist/opportunities/negotiation-evidence/negotiation-evidence.shadow.d.ts +0 -19
- package/dist/opportunities/negotiation-evidence/negotiation-evidence.shadow.js +0 -61
- package/dist/opportunities/negotiation-evidence/negotiation-evidence.types.d.ts +0 -191
- package/dist/opportunities/negotiation-evidence/negotiation-evidence.types.js +0 -18
- package/dist/opportunities/negotiation-evidence/negotiation-evidence.verifier.d.ts +0 -34
- package/dist/opportunities/negotiation-evidence/negotiation-evidence.verifier.js +0 -91
- package/dist/opportunities/negotiation-summary.builder.d.ts +0 -37
- package/dist/opportunities/negotiation-summary.builder.js +0 -66
- package/dist/opportunities/opportunity.discovery-negotiation-summary.d.ts +0 -14
- package/dist/opportunities/opportunity.discovery-negotiation-summary.js +0 -46
- package/dist/opportunities/opportunity.enricher.d.ts +0 -71
- package/dist/opportunities/opportunity.enricher.js +0 -280
- package/dist/opportunities/opportunity.evaluator.d.ts +0 -289
- package/dist/opportunities/opportunity.evaluator.js +0 -516
- package/dist/opportunities/opportunity.evidence.d.ts +0 -22
- package/dist/opportunities/opportunity.evidence.js +0 -87
- package/dist/opportunities/opportunity.existing-negotiation.d.ts +0 -79
- package/dist/opportunities/opportunity.existing-negotiation.js +0 -118
- package/dist/opportunities/opportunity.feed-selection.js +0 -96
- package/dist/opportunities/opportunity.graph.d.ts +0 -1611
- package/dist/opportunities/opportunity.graph.discovery-strategies.d.ts +0 -109
- package/dist/opportunities/opportunity.graph.discovery-strategies.js +0 -451
- package/dist/opportunities/opportunity.graph.discovery.d.ts +0 -69
- package/dist/opportunities/opportunity.graph.discovery.js +0 -397
- package/dist/opportunities/opportunity.graph.evaluation.d.ts +0 -82
- package/dist/opportunities/opportunity.graph.evaluation.js +0 -608
- package/dist/opportunities/opportunity.graph.js +0 -193
- package/dist/opportunities/opportunity.graph.modes.d.ts +0 -538
- package/dist/opportunities/opportunity.graph.modes.js +0 -538
- package/dist/opportunities/opportunity.graph.negotiate.d.ts +0 -109
- package/dist/opportunities/opportunity.graph.negotiate.js +0 -392
- package/dist/opportunities/opportunity.graph.persist-node.d.ts +0 -93
- package/dist/opportunities/opportunity.graph.persist-node.js +0 -765
- package/dist/opportunities/opportunity.graph.prep.d.ts +0 -150
- package/dist/opportunities/opportunity.graph.prep.js +0 -381
- package/dist/opportunities/opportunity.graph.shared.d.ts +0 -173
- package/dist/opportunities/opportunity.graph.shared.js +0 -199
- package/dist/opportunities/opportunity.introducer-feature.d.ts +0 -2
- package/dist/opportunities/opportunity.introducer-feature.js +0 -4
- package/dist/opportunities/opportunity.introducer.d.ts +0 -77
- package/dist/opportunities/opportunity.introducer.js +0 -99
- package/dist/opportunities/opportunity.labels.js +0 -10
- package/dist/opportunities/opportunity.lifecycle.d.ts +0 -63
- package/dist/opportunities/opportunity.lifecycle.js +0 -181
- package/dist/opportunities/opportunity.module.d.ts +0 -54
- package/dist/opportunities/opportunity.module.js +0 -39
- package/dist/opportunities/opportunity.newborn-stamping.d.ts +0 -41
- package/dist/opportunities/opportunity.newborn-stamping.js +0 -81
- package/dist/opportunities/opportunity.owner-approval.d.ts +0 -118
- package/dist/opportunities/opportunity.owner-approval.js +0 -34
- package/dist/opportunities/opportunity.owner-provenance.d.ts +0 -6
- package/dist/opportunities/opportunity.owner-provenance.js +0 -28
- package/dist/opportunities/opportunity.persist.d.ts +0 -58
- package/dist/opportunities/opportunity.persist.js +0 -145
- package/dist/opportunities/opportunity.persistence-admission.d.ts +0 -39
- package/dist/opportunities/opportunity.persistence-admission.js +0 -59
- package/dist/opportunities/opportunity.state.d.ts +0 -451
- package/dist/opportunities/opportunity.state.js +0 -256
- package/dist/opportunities/opportunity.tools.cards.d.ts +0 -138
- package/dist/opportunities/opportunity.tools.cards.js +0 -212
- package/dist/opportunities/opportunity.tools.d.ts +0 -12
- package/dist/opportunities/opportunity.tools.js +0 -236
- package/dist/opportunities/opportunity.tools.list.d.ts +0 -10
- package/dist/opportunities/opportunity.tools.list.js +0 -489
- package/dist/opportunities/opportunity.tools.port.d.ts +0 -16
- package/dist/opportunities/opportunity.utils.d.ts +0 -217
- package/dist/opportunities/opportunity.utils.js +0 -395
- package/dist/opportunities/outcome/outcome.env.d.ts +0 -60
- package/dist/opportunities/outcome/outcome.env.js +0 -63
- package/dist/opportunities/outcome/outcome.hypotheses.d.ts +0 -29
- package/dist/opportunities/outcome/outcome.hypotheses.js +0 -117
- package/dist/opportunities/outcome/outcome.shadow.d.ts +0 -56
- package/dist/opportunities/outcome/outcome.shadow.js +0 -87
- package/dist/opportunities/outcome/outcome.types.d.ts +0 -110
- package/dist/opportunities/outcome/outcome.types.js +0 -26
- package/dist/opportunities/radar/radar.health.d.ts +0 -31
- package/dist/opportunities/radar/radar.health.js +0 -75
- package/dist/premises/premise.analyzer.d.ts +0 -35
- package/dist/premises/premise.analyzer.js +0 -115
- package/dist/premises/premise.decomposer.d.ts +0 -69
- package/dist/premises/premise.decomposer.js +0 -213
- package/dist/premises/premise.graph.d.ts +0 -345
- package/dist/premises/premise.graph.js +0 -278
- package/dist/premises/premise.indexer.d.ts +0 -35
- package/dist/premises/premise.indexer.js +0 -86
- package/dist/premises/premise.state.d.ts +0 -67
- package/dist/premises/premise.state.js +0 -94
- package/dist/premises/premise.tools.d.ts +0 -3
- package/dist/premises/premise.tools.js +0 -248
- package/dist/questions/question.env.d.ts +0 -27
- package/dist/questions/question.env.js +0 -27
- package/dist/questions/question.input.d.ts +0 -107
- package/dist/questions/question.module.d.ts +0 -30
- package/dist/questions/question.module.js +0 -28
- package/dist/questions/question.schema.d.ts +0 -1529
- package/dist/questions/question.schema.js +0 -420
- package/dist/shared/agent/activity-projection.d.ts +0 -271
- package/dist/shared/agent/activity-projection.js +0 -254
- package/dist/shared/agent/canonical-guidance.d.ts +0 -30
- package/dist/shared/agent/canonical-guidance.js +0 -246
- package/dist/shared/agent/model.resolver.d.ts +0 -48
- package/dist/shared/agent/tool.factory.d.ts +0 -17
- package/dist/shared/agent/tool.factory.js +0 -221
- package/dist/shared/agent/tool.helpers.d.ts +0 -482
- package/dist/shared/agent/tool.helpers.js +0 -232
- package/dist/shared/agent/tool.registry.d.ts +0 -25
- package/dist/shared/agent/tool.registry.js +0 -76
- package/dist/shared/agent/tool.runtime.d.ts +0 -28
- package/dist/shared/agent/tool.runtime.js +0 -194
- package/dist/shared/agent/tool.scope.d.ts +0 -44
- package/dist/shared/agent/tool.scope.js +0 -50
- package/dist/shared/agent/utility.tools.d.ts +0 -15
- package/dist/shared/agent/utility.tools.js +0 -322
- package/dist/shared/assignment/network-assignment.policy.d.ts +0 -61
- package/dist/shared/assignment/network-assignment.policy.js +0 -105
- package/dist/shared/interfaces/agent-dispatcher.interface.d.ts +0 -100
- package/dist/shared/interfaces/agent-dispatcher.interface.js +0 -12
- package/dist/shared/interfaces/auth.interface.d.ts +0 -37
- package/dist/shared/interfaces/auth.interface.js +0 -1
- package/dist/shared/interfaces/chat-message-writer.interface.d.ts +0 -18
- package/dist/shared/interfaces/chat-message-writer.interface.js +0 -1
- package/dist/shared/interfaces/chat-session.interface.d.ts +0 -23
- package/dist/shared/interfaces/chat-session.interface.js +0 -18
- package/dist/shared/interfaces/chat-summary.interface.d.ts +0 -16
- package/dist/shared/interfaces/chat-summary.interface.js +0 -1
- package/dist/shared/interfaces/database.capabilities.d.ts +0 -100
- package/dist/shared/interfaces/database.interface.d.ts +0 -16
- package/dist/shared/interfaces/database.member-queries.d.ts +0 -219
- package/dist/shared/interfaces/database.member-queries.js +0 -4
- package/dist/shared/interfaces/database.negotiation.d.ts +0 -329
- package/dist/shared/interfaces/database.negotiation.js +0 -26
- package/dist/shared/interfaces/database.network-queries.js +0 -4
- package/dist/shared/interfaces/database.opportunity-queries.js +0 -4
- package/dist/shared/interfaces/delivery-ledger.interface.d.ts +0 -40
- package/dist/shared/interfaces/delivery-ledger.interface.js +0 -5
- package/dist/shared/interfaces/embedder.interface.d.ts +0 -92
- package/dist/shared/interfaces/embedder.interface.js +0 -4
- package/dist/shared/interfaces/enrichment-run.interface.d.ts +0 -62
- package/dist/shared/interfaces/enrichment-run.interface.js +0 -1
- package/dist/shared/interfaces/enrichment.interface.js +0 -1
- package/dist/shared/interfaces/negotiation-events.interface.d.ts +0 -77
- package/dist/shared/interfaces/negotiation-events.interface.js +0 -6
- package/dist/shared/interfaces/negotiation-summary.interface.d.ts +0 -25
- package/dist/shared/interfaces/negotiation-summary.interface.js +0 -1
- package/dist/shared/interfaces/negotiator-memory.interface.d.ts +0 -58
- package/dist/shared/interfaces/negotiator-memory.interface.js +0 -11
- package/dist/shared/interfaces/queue.interface.d.ts +0 -23
- package/dist/shared/interfaces/queue.interface.js +0 -4
- package/dist/shared/interfaces/scraper.interface.js +0 -1
- package/dist/shared/interfaces/tool-request-context.interface.d.ts +0 -11
- package/dist/shared/interfaces/tool-request-context.interface.js +0 -1
- package/dist/shared/observability/request-context.d.ts +0 -27
- package/dist/shared/observability/request-context.js +0 -6
- package/dist/shared/schemas/mcp-auth.schema.d.ts +0 -87
- package/dist/shared/schemas/mcp-auth.schema.js +0 -56
- package/dist/shared/schemas/negotiation-digest.schema.d.ts +0 -58
- package/dist/shared/schemas/negotiation-digest.schema.js +0 -38
- package/dist/shared/schemas/negotiation-state.schema.d.ts +0 -343
- package/dist/shared/schemas/negotiation-state.schema.js +0 -81
- package/dist/shared/schemas/question-block.fixture.d.ts +0 -12
- package/dist/shared/schemas/question-block.fixture.js +0 -39
- package/dist/shared/schemas/question-block.schema.d.ts +0 -111
- package/dist/shared/schemas/question-block.schema.js +0 -124
- package/dist/shared/schemas/structured-question.schema.d.ts +0 -66
- package/dist/shared/schemas/structured-question.schema.js +0 -31
- package/dist/shared/schemas/underspecification.schema.d.ts +0 -13
- package/dist/shared/schemas/underspecification.schema.js +0 -16
- /package/dist/{opportunities → internal/opportunities}/opportunity.update-admission.js +0 -0
- /package/dist/{opportunities → internal/opportunities}/radar/radar.state.js +0 -0
- /package/dist/{shared → internal/shared}/network/metadata.renderer.d.ts +0 -0
- /package/dist/{shared → internal/shared}/network/metadata.renderer.js +0 -0
- /package/dist/{shared → internal/shared}/observability/debug-meta.sanitizer.d.ts +0 -0
- /package/dist/{shared → internal/shared}/observability/debug-meta.sanitizer.js +0 -0
- /package/dist/{shared → internal/shared}/observability/performance.d.ts +0 -0
- /package/dist/{shared → internal/shared}/observability/performance.js +0 -0
- /package/dist/{shared → internal/shared}/observability/trace.d.ts +0 -0
- /package/dist/{shared → internal/shared}/observability/trace.js +0 -0
- /package/dist/{shared → internal/shared}/utils/claim-safety.d.ts +0 -0
- /package/dist/{shared → internal/shared}/utils/claim-safety.js +0 -0
- /package/dist/{shared → internal/shared}/utils/telegram-handle.d.ts +0 -0
- /package/dist/{shared → internal/shared}/utils/telegram-handle.js +0 -0
- /package/dist/{shared/interfaces/database.capabilities.js → platform/database/capabilities.js} +0 -0
- /package/dist/{shared/interfaces/database.entities.js → platform/database/entities.js} +0 -0
- /package/dist/{shared/interfaces/database.identity-queries.js → platform/database/identity-queries.js} +0 -0
- /package/dist/{agents/agent.dispatcher.port.js → platform/database/negotiation.js} +0 -0
- /package/dist/{chat/chat.persona.js → platform/database/opportunity-queries.js} +0 -0
- /package/dist/{contexts/context.tools.port.js → platform/discovery/embedder.js} +0 -0
- /package/dist/{shared/interfaces/scraper.interface.d.ts → platform/discovery/scraper.d.ts} +0 -0
- /package/dist/{negotiations/negotiation.deadlock.contracts.js → platform/discovery/scraper.js} +0 -0
- /package/dist/{shared/interfaces/enrichment.interface.d.ts → platform/enrichment/ports.d.ts} +0 -0
- /package/dist/{negotiations/negotiation.tools.port.js → platform/enrichment/ports.js} +0 -0
- /package/dist/{opportunities/opportunity.tools.port.js → platform/runtime/observability.js} +0 -0
- /package/dist/{questions/question.input.js → protocol/core.js} +0 -0
- /package/dist/{shared → protocol}/schemas/chat-context.schema.d.ts +0 -0
- /package/dist/{shared → protocol}/schemas/chat-context.schema.js +0 -0
|
@@ -1,1611 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Opportunity Graph: Linear Multi-Step Workflow for Opportunity Discovery
|
|
3
|
-
*
|
|
4
|
-
* Architecture: Follows intent graph pattern with Annotation-based state.
|
|
5
|
-
* Flow: Prep → Scope → Resolve → Discovery → Evaluation → Ranking → Persist → Negotiate → 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
|
-
* The graph is the discovery pipeline and nothing else. Read, update, delete,
|
|
13
|
-
* send, negotiate_existing, approve_introduction and the introduction path are
|
|
14
|
-
* plain functions in `opportunity.graph.modes.ts` — they never needed a state
|
|
15
|
-
* machine, and routing them through one hid nine single-node paths behind a
|
|
16
|
-
* conditional edge. Every node below is a top-level function taking the state
|
|
17
|
-
* and an explicit {@link OpportunityGraphDeps}.
|
|
18
|
-
*
|
|
19
|
-
* Constructor injects Database, Embedder, and compiled HyDE graph.
|
|
20
|
-
*/
|
|
21
|
-
import type { OpportunityGraphDatabase } from '../shared/interfaces/database.interface.js';
|
|
22
|
-
import type { Embedder } from '../shared/interfaces/embedder.interface.js';
|
|
23
|
-
import type { NegotiationGraphLike } from '../negotiations/negotiation.module.js';
|
|
24
|
-
import type { AgentDispatcher } from '../shared/interfaces/agent-dispatcher.interface.js';
|
|
25
|
-
import type { QueueOpportunityNotificationFn } from "./opportunity.lifecycle.js";
|
|
26
|
-
import type { StampNewbornOpportunitiesFn } from "./opportunity.newborn-stamping.js";
|
|
27
|
-
import { type OpportunityGraphDeps, type OpportunityGraphThresholdOverrides, type OpportunityHydeGenerator, type OpportunityEvaluatorLike } from "./opportunity.graph.shared.js";
|
|
28
|
-
export type { QueueOpportunityNotificationFn } from "./opportunity.lifecycle.js";
|
|
29
|
-
export type { StampNewbornOpportunitiesFn, StampNewbornOpportunitiesInput } from "./opportunity.newborn-stamping.js";
|
|
30
|
-
export { buildPrioritizedNegotiationIntents } from "./opportunity.existing-negotiation.js";
|
|
31
|
-
export { buildDiscovererContext, safeOpportunityGraphError, type HydeGeneratorInvokeInput, type OpportunityEvaluatorLike, type OpportunityGraphDeps, type OpportunityGraphThresholdOverrides, } from "./opportunity.graph.shared.js";
|
|
32
|
-
import { approveIntroduction, createIntroduction, deleteOpportunity, negotiateExisting, readOpportunities, sendOpportunity, updateOpportunityStatus } from "./opportunity.graph.modes.js";
|
|
33
|
-
export { approveIntroduction, createIntroduction, deleteOpportunity, evaluateIntroduction, negotiateExisting, readOpportunities, sendOpportunity, updateOpportunityStatus, validateIntroduction, type IntroductionRequest, type OpportunityMutationOutcome, type OpportunityMutationRequest, } from "./opportunity.graph.modes.js";
|
|
34
|
-
/**
|
|
35
|
-
* Factory class to build and compile the Opportunity Graph.
|
|
36
|
-
* Uses dependency injection for testability.
|
|
37
|
-
*
|
|
38
|
-
* `deps` is public so callers can invoke the non-discovery modes
|
|
39
|
-
* (`readOpportunities`, `sendOpportunity`, …) against the same wiring.
|
|
40
|
-
*/
|
|
41
|
-
export declare class OpportunityGraphFactory {
|
|
42
|
-
/** Resolved dependency bag shared by the graph nodes and the standalone modes. */
|
|
43
|
-
readonly deps: OpportunityGraphDeps;
|
|
44
|
-
constructor(database: OpportunityGraphDatabase, embedder: Embedder, hydeGenerator: OpportunityHydeGenerator, optionalEvaluator?: OpportunityEvaluatorLike, queueNotification?: QueueOpportunityNotificationFn, negotiationGraph?: NegotiationGraphLike,
|
|
45
|
-
/**
|
|
46
|
-
* Used on the chat path to decide whether to wait for the user's personal
|
|
47
|
-
* agent (long timeout) or fall back to the system agent immediately
|
|
48
|
-
* (short timeout). Without it, the chat path always uses a short timeout.
|
|
49
|
-
*/
|
|
50
|
-
agentDispatcher?: Pick<AgentDispatcher, 'hasExternalAgent'>,
|
|
51
|
-
/**
|
|
52
|
-
* Callback to enqueue a negotiate_existing job for an opportunity.
|
|
53
|
-
* When provided, negotiate_existing mode uses this to queue follow-up
|
|
54
|
-
* negotiations after introducer approval.
|
|
55
|
-
*/
|
|
56
|
-
queueNegotiateExisting?: (opportunityId: string, userId: string) => Promise<void>,
|
|
57
|
-
/** Host-side P4b stamper. Omitted by manual/introducer/enrichment roots. */
|
|
58
|
-
stampNewbornOpportunities?: StampNewbornOpportunitiesFn,
|
|
59
|
-
/** Eval/test-only overrides; production composition resolves from environment. */
|
|
60
|
-
thresholdOverrides?: OpportunityGraphThresholdOverrides);
|
|
61
|
-
/** List the caller's opportunities. Delegates to {@link readOpportunities}. */
|
|
62
|
-
readOpportunities(request: Parameters<typeof readOpportunities>[1]): Promise<{
|
|
63
|
-
readResult: {
|
|
64
|
-
count: number;
|
|
65
|
-
message: string;
|
|
66
|
-
opportunities: {
|
|
67
|
-
id: string;
|
|
68
|
-
indexName: string;
|
|
69
|
-
connectedWith: string[];
|
|
70
|
-
suggestedBy: string | null;
|
|
71
|
-
reasoning: string;
|
|
72
|
-
status: import("../shared/interfaces/database.entities.js").OpportunityStatus;
|
|
73
|
-
category: string;
|
|
74
|
-
confidence: number | null;
|
|
75
|
-
source: string | null;
|
|
76
|
-
}[];
|
|
77
|
-
};
|
|
78
|
-
}>;
|
|
79
|
-
/** Change an opportunity's status. Delegates to {@link updateOpportunityStatus}. */
|
|
80
|
-
updateOpportunityStatus(request: Parameters<typeof updateOpportunityStatus>[1]): Promise<import("./opportunity.graph.modes.js").OpportunityMutationOutcome>;
|
|
81
|
-
/** Expire an opportunity. Delegates to {@link deleteOpportunity}. */
|
|
82
|
-
deleteOpportunity(request: Parameters<typeof deleteOpportunity>[1]): Promise<import("./opportunity.graph.modes.js").OpportunityMutationOutcome>;
|
|
83
|
-
/** Promote a latent or draft opportunity to pending. Delegates to {@link sendOpportunity}. */
|
|
84
|
-
sendOpportunity(request: Parameters<typeof sendOpportunity>[1]): Promise<import("./opportunity.graph.modes.js").OpportunityMutationOutcome>;
|
|
85
|
-
/** Approve an introducer-pattern opportunity. Delegates to {@link approveIntroduction}. */
|
|
86
|
-
approveIntroduction(request: Parameters<typeof approveIntroduction>[1]): Promise<import("./opportunity.graph.modes.js").OpportunityMutationOutcome>;
|
|
87
|
-
/** Negotiate an existing opportunity. Delegates to {@link negotiateExisting}. */
|
|
88
|
-
negotiateExisting(request: Parameters<typeof negotiateExisting>[1]): Promise<{
|
|
89
|
-
negotiationContinuationReceipt?: import("../shared/interfaces/database.negotiation.js").NegotiationContinuationReceipt;
|
|
90
|
-
error?: string;
|
|
91
|
-
}>;
|
|
92
|
-
/** Validate → evaluate → persist an introduction. Delegates to {@link createIntroduction}. */
|
|
93
|
-
createIntroduction(request: Parameters<typeof createIntroduction>[1]): Promise<{
|
|
94
|
-
error?: string;
|
|
95
|
-
trace?: Array<{
|
|
96
|
-
node: string;
|
|
97
|
-
detail?: string;
|
|
98
|
-
data?: Record<string, unknown>;
|
|
99
|
-
}>;
|
|
100
|
-
opportunities: never[];
|
|
101
|
-
evaluatedOpportunities: never[];
|
|
102
|
-
agentTimings: never[];
|
|
103
|
-
} | {
|
|
104
|
-
opportunities: never[];
|
|
105
|
-
persistenceOutcome: {
|
|
106
|
-
evaluatedCount: number;
|
|
107
|
-
createdCount: number;
|
|
108
|
-
reactivatedCount: number;
|
|
109
|
-
sameTriggerDuplicateSuppressions: number;
|
|
110
|
-
pairActiveNegotiationSuppressions: number;
|
|
111
|
-
crossTriggerAllowedCount: number;
|
|
112
|
-
finalAtomicConflictCount: number;
|
|
113
|
-
};
|
|
114
|
-
existingBetweenActors?: undefined;
|
|
115
|
-
trace?: undefined;
|
|
116
|
-
error?: undefined;
|
|
117
|
-
evaluatedOpportunities: never[];
|
|
118
|
-
agentTimings: never[];
|
|
119
|
-
introductionContext?: undefined;
|
|
120
|
-
options?: undefined;
|
|
121
|
-
} | {
|
|
122
|
-
opportunities: import("../shared/interfaces/database.entities.js").Opportunity[];
|
|
123
|
-
existingBetweenActors: {
|
|
124
|
-
candidateUserId: import("./opportunity.graph.shared.js").Id<"users">;
|
|
125
|
-
networkId: import("./opportunity.graph.shared.js").Id<"networks">;
|
|
126
|
-
existingOpportunityId?: import("./opportunity.graph.shared.js").Id<"opportunities">;
|
|
127
|
-
existingStatus?: import("../shared/interfaces/database.entities.js").OpportunityStatus;
|
|
128
|
-
reason?: "same_trigger_recent_duplicate" | "pair_active_negotiation" | "final_atomic_conflict";
|
|
129
|
-
existingTriggerIntentId?: string;
|
|
130
|
-
}[];
|
|
131
|
-
persistenceOutcome: {
|
|
132
|
-
evaluatedCount: number;
|
|
133
|
-
createdCount: number;
|
|
134
|
-
reactivatedCount: number;
|
|
135
|
-
sameTriggerDuplicateSuppressions: number;
|
|
136
|
-
pairActiveNegotiationSuppressions: number;
|
|
137
|
-
crossTriggerAllowedCount: number;
|
|
138
|
-
finalAtomicConflictCount: number;
|
|
139
|
-
};
|
|
140
|
-
trace: {
|
|
141
|
-
node: string;
|
|
142
|
-
detail: string;
|
|
143
|
-
data: {
|
|
144
|
-
created: number;
|
|
145
|
-
reactivated: number;
|
|
146
|
-
existingSkipped: number;
|
|
147
|
-
totalOutput: number;
|
|
148
|
-
persistenceOutcome: {
|
|
149
|
-
evaluatedCount: number;
|
|
150
|
-
createdCount: number;
|
|
151
|
-
reactivatedCount: number;
|
|
152
|
-
sameTriggerDuplicateSuppressions: number;
|
|
153
|
-
pairActiveNegotiationSuppressions: number;
|
|
154
|
-
crossTriggerAllowedCount: number;
|
|
155
|
-
finalAtomicConflictCount: number;
|
|
156
|
-
};
|
|
157
|
-
durationMs: number;
|
|
158
|
-
};
|
|
159
|
-
}[];
|
|
160
|
-
error?: undefined;
|
|
161
|
-
evaluatedOpportunities: never[];
|
|
162
|
-
agentTimings: never[];
|
|
163
|
-
introductionContext?: undefined;
|
|
164
|
-
options?: undefined;
|
|
165
|
-
} | {
|
|
166
|
-
opportunities: never[];
|
|
167
|
-
existingBetweenActors: never[];
|
|
168
|
-
error: string;
|
|
169
|
-
trace: {
|
|
170
|
-
node: string;
|
|
171
|
-
detail: string;
|
|
172
|
-
data: {
|
|
173
|
-
error: string;
|
|
174
|
-
};
|
|
175
|
-
}[];
|
|
176
|
-
persistenceOutcome?: undefined;
|
|
177
|
-
evaluatedOpportunities: never[];
|
|
178
|
-
agentTimings: never[];
|
|
179
|
-
introductionContext?: undefined;
|
|
180
|
-
options?: undefined;
|
|
181
|
-
} | {
|
|
182
|
-
opportunities: never[];
|
|
183
|
-
persistenceOutcome: {
|
|
184
|
-
evaluatedCount: number;
|
|
185
|
-
createdCount: number;
|
|
186
|
-
reactivatedCount: number;
|
|
187
|
-
sameTriggerDuplicateSuppressions: number;
|
|
188
|
-
pairActiveNegotiationSuppressions: number;
|
|
189
|
-
crossTriggerAllowedCount: number;
|
|
190
|
-
finalAtomicConflictCount: number;
|
|
191
|
-
};
|
|
192
|
-
existingBetweenActors?: undefined;
|
|
193
|
-
trace?: undefined;
|
|
194
|
-
error: string;
|
|
195
|
-
evaluatedOpportunities: never[];
|
|
196
|
-
agentTimings: never[];
|
|
197
|
-
introductionContext?: undefined;
|
|
198
|
-
options?: undefined;
|
|
199
|
-
} | {
|
|
200
|
-
opportunities: import("../shared/interfaces/database.entities.js").Opportunity[];
|
|
201
|
-
existingBetweenActors: {
|
|
202
|
-
candidateUserId: import("./opportunity.graph.shared.js").Id<"users">;
|
|
203
|
-
networkId: import("./opportunity.graph.shared.js").Id<"networks">;
|
|
204
|
-
existingOpportunityId?: import("./opportunity.graph.shared.js").Id<"opportunities">;
|
|
205
|
-
existingStatus?: import("../shared/interfaces/database.entities.js").OpportunityStatus;
|
|
206
|
-
reason?: "same_trigger_recent_duplicate" | "pair_active_negotiation" | "final_atomic_conflict";
|
|
207
|
-
existingTriggerIntentId?: string;
|
|
208
|
-
}[];
|
|
209
|
-
persistenceOutcome: {
|
|
210
|
-
evaluatedCount: number;
|
|
211
|
-
createdCount: number;
|
|
212
|
-
reactivatedCount: number;
|
|
213
|
-
sameTriggerDuplicateSuppressions: number;
|
|
214
|
-
pairActiveNegotiationSuppressions: number;
|
|
215
|
-
crossTriggerAllowedCount: number;
|
|
216
|
-
finalAtomicConflictCount: number;
|
|
217
|
-
};
|
|
218
|
-
trace: {
|
|
219
|
-
node: string;
|
|
220
|
-
detail: string;
|
|
221
|
-
data: {
|
|
222
|
-
created: number;
|
|
223
|
-
reactivated: number;
|
|
224
|
-
existingSkipped: number;
|
|
225
|
-
totalOutput: number;
|
|
226
|
-
persistenceOutcome: {
|
|
227
|
-
evaluatedCount: number;
|
|
228
|
-
createdCount: number;
|
|
229
|
-
reactivatedCount: number;
|
|
230
|
-
sameTriggerDuplicateSuppressions: number;
|
|
231
|
-
pairActiveNegotiationSuppressions: number;
|
|
232
|
-
crossTriggerAllowedCount: number;
|
|
233
|
-
finalAtomicConflictCount: number;
|
|
234
|
-
};
|
|
235
|
-
durationMs: number;
|
|
236
|
-
};
|
|
237
|
-
}[];
|
|
238
|
-
error: string;
|
|
239
|
-
evaluatedOpportunities: never[];
|
|
240
|
-
agentTimings: never[];
|
|
241
|
-
introductionContext?: undefined;
|
|
242
|
-
options?: undefined;
|
|
243
|
-
} | {
|
|
244
|
-
opportunities: never[];
|
|
245
|
-
persistenceOutcome: {
|
|
246
|
-
evaluatedCount: number;
|
|
247
|
-
createdCount: number;
|
|
248
|
-
reactivatedCount: number;
|
|
249
|
-
sameTriggerDuplicateSuppressions: number;
|
|
250
|
-
pairActiveNegotiationSuppressions: number;
|
|
251
|
-
crossTriggerAllowedCount: number;
|
|
252
|
-
finalAtomicConflictCount: number;
|
|
253
|
-
};
|
|
254
|
-
existingBetweenActors?: undefined;
|
|
255
|
-
trace: {
|
|
256
|
-
node: string;
|
|
257
|
-
detail: string;
|
|
258
|
-
data: {
|
|
259
|
-
error: string;
|
|
260
|
-
};
|
|
261
|
-
}[];
|
|
262
|
-
error?: undefined;
|
|
263
|
-
evaluatedOpportunities: {
|
|
264
|
-
actors: import("./opportunity.state.js").EvaluatedOpportunityActor[];
|
|
265
|
-
score: number;
|
|
266
|
-
reasoning: string;
|
|
267
|
-
}[];
|
|
268
|
-
introductionContext: {
|
|
269
|
-
createdByName: string | undefined;
|
|
270
|
-
};
|
|
271
|
-
options: {
|
|
272
|
-
initialStatus: import("../shared/interfaces/database.entities.js").OpportunityStatus;
|
|
273
|
-
negotiationContinuation?: import("../shared/interfaces/database.negotiation.js").NegotiationContinuationExecution;
|
|
274
|
-
limit?: number;
|
|
275
|
-
lenses?: import("../discovery/lens.inferrer.js").Lens[];
|
|
276
|
-
hydeDescription?: string;
|
|
277
|
-
existingOpportunities?: string;
|
|
278
|
-
conversationId?: string;
|
|
279
|
-
negotiateTimeoutMs?: number;
|
|
280
|
-
};
|
|
281
|
-
agentTimings: import("../chat/chat-streaming.types.js").DebugMetaAgent[];
|
|
282
|
-
} | {
|
|
283
|
-
opportunities: never[];
|
|
284
|
-
persistenceOutcome?: undefined;
|
|
285
|
-
existingBetweenActors?: undefined;
|
|
286
|
-
trace: {
|
|
287
|
-
node: string;
|
|
288
|
-
detail: string;
|
|
289
|
-
data: {
|
|
290
|
-
error: string;
|
|
291
|
-
};
|
|
292
|
-
}[];
|
|
293
|
-
error?: undefined;
|
|
294
|
-
evaluatedOpportunities: {
|
|
295
|
-
actors: import("./opportunity.state.js").EvaluatedOpportunityActor[];
|
|
296
|
-
score: number;
|
|
297
|
-
reasoning: string;
|
|
298
|
-
}[];
|
|
299
|
-
introductionContext: {
|
|
300
|
-
createdByName: string | undefined;
|
|
301
|
-
};
|
|
302
|
-
options: {
|
|
303
|
-
initialStatus: import("../shared/interfaces/database.entities.js").OpportunityStatus;
|
|
304
|
-
negotiationContinuation?: import("../shared/interfaces/database.negotiation.js").NegotiationContinuationExecution;
|
|
305
|
-
limit?: number;
|
|
306
|
-
lenses?: import("../discovery/lens.inferrer.js").Lens[];
|
|
307
|
-
hydeDescription?: string;
|
|
308
|
-
existingOpportunities?: string;
|
|
309
|
-
conversationId?: string;
|
|
310
|
-
negotiateTimeoutMs?: number;
|
|
311
|
-
};
|
|
312
|
-
agentTimings: import("../chat/chat-streaming.types.js").DebugMetaAgent[];
|
|
313
|
-
} | {
|
|
314
|
-
opportunities: import("../shared/interfaces/database.entities.js").Opportunity[];
|
|
315
|
-
existingBetweenActors: {
|
|
316
|
-
candidateUserId: import("./opportunity.graph.shared.js").Id<"users">;
|
|
317
|
-
networkId: import("./opportunity.graph.shared.js").Id<"networks">;
|
|
318
|
-
existingOpportunityId?: import("./opportunity.graph.shared.js").Id<"opportunities">;
|
|
319
|
-
existingStatus?: import("../shared/interfaces/database.entities.js").OpportunityStatus;
|
|
320
|
-
reason?: "same_trigger_recent_duplicate" | "pair_active_negotiation" | "final_atomic_conflict";
|
|
321
|
-
existingTriggerIntentId?: string;
|
|
322
|
-
}[];
|
|
323
|
-
persistenceOutcome: {
|
|
324
|
-
evaluatedCount: number;
|
|
325
|
-
createdCount: number;
|
|
326
|
-
reactivatedCount: number;
|
|
327
|
-
sameTriggerDuplicateSuppressions: number;
|
|
328
|
-
pairActiveNegotiationSuppressions: number;
|
|
329
|
-
crossTriggerAllowedCount: number;
|
|
330
|
-
finalAtomicConflictCount: number;
|
|
331
|
-
};
|
|
332
|
-
trace: {
|
|
333
|
-
node: string;
|
|
334
|
-
detail: string;
|
|
335
|
-
data: {
|
|
336
|
-
created: number;
|
|
337
|
-
reactivated: number;
|
|
338
|
-
existingSkipped: number;
|
|
339
|
-
totalOutput: number;
|
|
340
|
-
persistenceOutcome: {
|
|
341
|
-
evaluatedCount: number;
|
|
342
|
-
createdCount: number;
|
|
343
|
-
reactivatedCount: number;
|
|
344
|
-
sameTriggerDuplicateSuppressions: number;
|
|
345
|
-
pairActiveNegotiationSuppressions: number;
|
|
346
|
-
crossTriggerAllowedCount: number;
|
|
347
|
-
finalAtomicConflictCount: number;
|
|
348
|
-
};
|
|
349
|
-
durationMs: number;
|
|
350
|
-
};
|
|
351
|
-
}[];
|
|
352
|
-
error?: undefined;
|
|
353
|
-
evaluatedOpportunities: {
|
|
354
|
-
actors: import("./opportunity.state.js").EvaluatedOpportunityActor[];
|
|
355
|
-
score: number;
|
|
356
|
-
reasoning: string;
|
|
357
|
-
}[];
|
|
358
|
-
introductionContext: {
|
|
359
|
-
createdByName: string | undefined;
|
|
360
|
-
};
|
|
361
|
-
options: {
|
|
362
|
-
initialStatus: import("../shared/interfaces/database.entities.js").OpportunityStatus;
|
|
363
|
-
negotiationContinuation?: import("../shared/interfaces/database.negotiation.js").NegotiationContinuationExecution;
|
|
364
|
-
limit?: number;
|
|
365
|
-
lenses?: import("../discovery/lens.inferrer.js").Lens[];
|
|
366
|
-
hydeDescription?: string;
|
|
367
|
-
existingOpportunities?: string;
|
|
368
|
-
conversationId?: string;
|
|
369
|
-
negotiateTimeoutMs?: number;
|
|
370
|
-
};
|
|
371
|
-
agentTimings: import("../chat/chat-streaming.types.js").DebugMetaAgent[];
|
|
372
|
-
} | {
|
|
373
|
-
opportunities: never[];
|
|
374
|
-
existingBetweenActors: never[];
|
|
375
|
-
error: string;
|
|
376
|
-
trace: {
|
|
377
|
-
node: string;
|
|
378
|
-
detail: string;
|
|
379
|
-
data: {
|
|
380
|
-
error: string;
|
|
381
|
-
};
|
|
382
|
-
}[];
|
|
383
|
-
persistenceOutcome?: undefined;
|
|
384
|
-
evaluatedOpportunities: {
|
|
385
|
-
actors: import("./opportunity.state.js").EvaluatedOpportunityActor[];
|
|
386
|
-
score: number;
|
|
387
|
-
reasoning: string;
|
|
388
|
-
}[];
|
|
389
|
-
introductionContext: {
|
|
390
|
-
createdByName: string | undefined;
|
|
391
|
-
};
|
|
392
|
-
options: {
|
|
393
|
-
initialStatus: import("../shared/interfaces/database.entities.js").OpportunityStatus;
|
|
394
|
-
negotiationContinuation?: import("../shared/interfaces/database.negotiation.js").NegotiationContinuationExecution;
|
|
395
|
-
limit?: number;
|
|
396
|
-
lenses?: import("../discovery/lens.inferrer.js").Lens[];
|
|
397
|
-
hydeDescription?: string;
|
|
398
|
-
existingOpportunities?: string;
|
|
399
|
-
conversationId?: string;
|
|
400
|
-
negotiateTimeoutMs?: number;
|
|
401
|
-
};
|
|
402
|
-
agentTimings: import("../chat/chat-streaming.types.js").DebugMetaAgent[];
|
|
403
|
-
} | {
|
|
404
|
-
opportunities: never[];
|
|
405
|
-
persistenceOutcome: {
|
|
406
|
-
evaluatedCount: number;
|
|
407
|
-
createdCount: number;
|
|
408
|
-
reactivatedCount: number;
|
|
409
|
-
sameTriggerDuplicateSuppressions: number;
|
|
410
|
-
pairActiveNegotiationSuppressions: number;
|
|
411
|
-
crossTriggerAllowedCount: number;
|
|
412
|
-
finalAtomicConflictCount: number;
|
|
413
|
-
};
|
|
414
|
-
existingBetweenActors?: undefined;
|
|
415
|
-
trace?: undefined;
|
|
416
|
-
error?: undefined;
|
|
417
|
-
evaluatedOpportunities: import("./opportunity.state.js").EvaluatedOpportunity[];
|
|
418
|
-
introductionContext: {
|
|
419
|
-
createdByName: string | undefined;
|
|
420
|
-
};
|
|
421
|
-
options: {
|
|
422
|
-
initialStatus: import("../shared/interfaces/database.entities.js").OpportunityStatus;
|
|
423
|
-
negotiationContinuation?: import("../shared/interfaces/database.negotiation.js").NegotiationContinuationExecution;
|
|
424
|
-
limit?: number;
|
|
425
|
-
lenses?: import("../discovery/lens.inferrer.js").Lens[];
|
|
426
|
-
hydeDescription?: string;
|
|
427
|
-
existingOpportunities?: string;
|
|
428
|
-
conversationId?: string;
|
|
429
|
-
negotiateTimeoutMs?: number;
|
|
430
|
-
};
|
|
431
|
-
agentTimings: import("../chat/chat-streaming.types.js").DebugMetaAgent[];
|
|
432
|
-
} | {
|
|
433
|
-
opportunities: never[];
|
|
434
|
-
persistenceOutcome?: undefined;
|
|
435
|
-
existingBetweenActors?: undefined;
|
|
436
|
-
trace?: undefined;
|
|
437
|
-
error?: undefined;
|
|
438
|
-
evaluatedOpportunities: import("./opportunity.state.js").EvaluatedOpportunity[];
|
|
439
|
-
introductionContext: {
|
|
440
|
-
createdByName: string | undefined;
|
|
441
|
-
};
|
|
442
|
-
options: {
|
|
443
|
-
initialStatus: import("../shared/interfaces/database.entities.js").OpportunityStatus;
|
|
444
|
-
negotiationContinuation?: import("../shared/interfaces/database.negotiation.js").NegotiationContinuationExecution;
|
|
445
|
-
limit?: number;
|
|
446
|
-
lenses?: import("../discovery/lens.inferrer.js").Lens[];
|
|
447
|
-
hydeDescription?: string;
|
|
448
|
-
existingOpportunities?: string;
|
|
449
|
-
conversationId?: string;
|
|
450
|
-
negotiateTimeoutMs?: number;
|
|
451
|
-
};
|
|
452
|
-
agentTimings: import("../chat/chat-streaming.types.js").DebugMetaAgent[];
|
|
453
|
-
}>;
|
|
454
|
-
createGraph(): import("@langchain/langgraph").CompiledStateGraph<{
|
|
455
|
-
userId: import("./opportunity.graph.shared.js").Id<"users">;
|
|
456
|
-
searchQuery: string | undefined;
|
|
457
|
-
networkId: import("./opportunity.graph.shared.js").Id<"networks"> | undefined;
|
|
458
|
-
indexScope: import("./opportunity.graph.shared.js").Id<"networks">[] | undefined;
|
|
459
|
-
triggerIntentId: import("./opportunity.graph.shared.js").Id<"intents"> | undefined;
|
|
460
|
-
targetUserId: import("./opportunity.graph.shared.js").Id<"users"> | undefined;
|
|
461
|
-
onBehalfOfUserId: import("./opportunity.graph.shared.js").Id<"users"> | undefined;
|
|
462
|
-
options: import("./opportunity.state.js").OpportunityGraphOptions;
|
|
463
|
-
operationMode: "send" | "update" | "create" | "delete" | "read" | "create_introduction" | "continue_discovery" | "negotiate_existing" | "approve_introduction";
|
|
464
|
-
introductionEntities: import("./opportunity.evaluator.js").EvaluatorEntity[];
|
|
465
|
-
introductionHint: string | undefined;
|
|
466
|
-
requiredNetworkId: import("./opportunity.graph.shared.js").Id<"networks"> | undefined;
|
|
467
|
-
introductionContext: {
|
|
468
|
-
createdByName?: string;
|
|
469
|
-
} | undefined;
|
|
470
|
-
opportunityId: string | undefined;
|
|
471
|
-
newStatus: string | undefined;
|
|
472
|
-
indexedIntents: import("./opportunity.state.js").IndexedIntent[];
|
|
473
|
-
userNetworks: import("./opportunity.graph.shared.js").Id<"networks">[];
|
|
474
|
-
targetNetworks: import("./opportunity.state.js").TargetNetwork[];
|
|
475
|
-
indexRelevancyScores: Record<string, number>;
|
|
476
|
-
discoverySource: "intent" | "context";
|
|
477
|
-
resolvedTriggerIntentId: import("./opportunity.graph.shared.js").Id<"intents"> | undefined;
|
|
478
|
-
sourceProfile: import("./opportunity.state.js").SourceProfileData | null;
|
|
479
|
-
sourcePremises: {
|
|
480
|
-
premiseId: import("./opportunity.graph.shared.js").Id<"premises">;
|
|
481
|
-
embedding: number[];
|
|
482
|
-
}[];
|
|
483
|
-
sourceContexts: {
|
|
484
|
-
contextId: string;
|
|
485
|
-
networkId: import("./opportunity.graph.shared.js").Id<"networks">;
|
|
486
|
-
text: string;
|
|
487
|
-
embedding: number[];
|
|
488
|
-
}[];
|
|
489
|
-
resolvedIntentInIndex: boolean;
|
|
490
|
-
createIntentSuggested: boolean;
|
|
491
|
-
suggestedIntentDescription: string | undefined;
|
|
492
|
-
hydeEmbeddings: Record<string, number[]>;
|
|
493
|
-
candidates: import("./opportunity.state.js").CandidateMatch[];
|
|
494
|
-
remainingCandidates: import("./opportunity.state.js").CandidateMatch[];
|
|
495
|
-
discoveryId: string | null;
|
|
496
|
-
evaluatedCandidates: import("./opportunity.state.js").EvaluatedCandidate[];
|
|
497
|
-
evaluatedOpportunities: import("./opportunity.state.js").EvaluatedOpportunity[];
|
|
498
|
-
opportunities: import("../shared/interfaces/database.entities.js").Opportunity[];
|
|
499
|
-
existingBetweenActors: {
|
|
500
|
-
candidateUserId: import("./opportunity.graph.shared.js").Id<"users">;
|
|
501
|
-
networkId: import("./opportunity.graph.shared.js").Id<"networks">;
|
|
502
|
-
existingOpportunityId?: import("./opportunity.graph.shared.js").Id<"opportunities">;
|
|
503
|
-
existingStatus?: import("../shared/interfaces/database.entities.js").OpportunityStatus;
|
|
504
|
-
reason?: "same_trigger_recent_duplicate" | "pair_active_negotiation" | "final_atomic_conflict";
|
|
505
|
-
existingTriggerIntentId?: string;
|
|
506
|
-
}[];
|
|
507
|
-
persistenceOutcome: import("./opportunity.state.js").OpportunityPersistenceOutcome | undefined;
|
|
508
|
-
negotiationContinuationReceipt: import("../shared/interfaces/database.negotiation.js").NegotiationContinuationReceipt | undefined;
|
|
509
|
-
error: string | undefined;
|
|
510
|
-
readResult: {
|
|
511
|
-
count: number;
|
|
512
|
-
message?: string;
|
|
513
|
-
opportunities: Array<{
|
|
514
|
-
id: string;
|
|
515
|
-
indexName: string;
|
|
516
|
-
connectedWith: string[];
|
|
517
|
-
suggestedBy: string | null;
|
|
518
|
-
reasoning: string;
|
|
519
|
-
status: string;
|
|
520
|
-
category: string;
|
|
521
|
-
confidence: number | null;
|
|
522
|
-
source: string | null;
|
|
523
|
-
}>;
|
|
524
|
-
} | undefined;
|
|
525
|
-
mutationResult: {
|
|
526
|
-
success: boolean;
|
|
527
|
-
message?: string;
|
|
528
|
-
opportunityId?: string;
|
|
529
|
-
notified?: string[];
|
|
530
|
-
conversationId?: string;
|
|
531
|
-
error?: string;
|
|
532
|
-
} | undefined;
|
|
533
|
-
trace: {
|
|
534
|
-
node: string;
|
|
535
|
-
detail?: string;
|
|
536
|
-
data?: Record<string, unknown>;
|
|
537
|
-
}[];
|
|
538
|
-
agentTimings: import("../chat/chat-streaming.types.js").DebugMetaAgent[];
|
|
539
|
-
discoveryNegotiations: {
|
|
540
|
-
indexContext: string;
|
|
541
|
-
outcome: {
|
|
542
|
-
reasoning: string;
|
|
543
|
-
hasOpportunity: boolean;
|
|
544
|
-
reason?: "timeout" | "turn_cap" | "screened_out" | undefined;
|
|
545
|
-
agreedRoles?: {
|
|
546
|
-
userId: string;
|
|
547
|
-
role: "agent" | "patient" | "peer";
|
|
548
|
-
}[] | undefined;
|
|
549
|
-
};
|
|
550
|
-
counterpartyHint: string;
|
|
551
|
-
counterpartyId: string;
|
|
552
|
-
turns: {
|
|
553
|
-
reasoning: string;
|
|
554
|
-
action: "propose" | "accept" | "reject" | "counter" | "question" | "outreach" | "withdraw" | "decline" | "ask_user";
|
|
555
|
-
suggestedRoles: {
|
|
556
|
-
ownUser: "agent" | "patient" | "peer";
|
|
557
|
-
otherUser: "agent" | "patient" | "peer";
|
|
558
|
-
};
|
|
559
|
-
}[];
|
|
560
|
-
seedAssessmentScore?: number | undefined;
|
|
561
|
-
}[];
|
|
562
|
-
discoverySummary: import("../shared/schemas/discovery-question.schema.js").DiscoverySummary | null;
|
|
563
|
-
}, {
|
|
564
|
-
userId?: import("./opportunity.graph.shared.js").Id<"users"> | import("@langchain/langgraph").OverwriteValue<import("./opportunity.graph.shared.js").Id<"users">> | undefined;
|
|
565
|
-
searchQuery?: string | import("@langchain/langgraph").OverwriteValue<string | undefined> | undefined;
|
|
566
|
-
networkId?: import("./opportunity.graph.shared.js").Id<"networks"> | import("@langchain/langgraph").OverwriteValue<import("./opportunity.graph.shared.js").Id<"networks"> | undefined> | undefined;
|
|
567
|
-
indexScope?: import("./opportunity.graph.shared.js").Id<"networks">[] | import("@langchain/langgraph").OverwriteValue<import("./opportunity.graph.shared.js").Id<"networks">[] | undefined> | undefined;
|
|
568
|
-
triggerIntentId?: import("./opportunity.graph.shared.js").Id<"intents"> | import("@langchain/langgraph").OverwriteValue<import("./opportunity.graph.shared.js").Id<"intents"> | undefined> | undefined;
|
|
569
|
-
targetUserId?: import("./opportunity.graph.shared.js").Id<"users"> | import("@langchain/langgraph").OverwriteValue<import("./opportunity.graph.shared.js").Id<"users"> | undefined> | undefined;
|
|
570
|
-
onBehalfOfUserId?: import("./opportunity.graph.shared.js").Id<"users"> | import("@langchain/langgraph").OverwriteValue<import("./opportunity.graph.shared.js").Id<"users"> | undefined> | undefined;
|
|
571
|
-
options?: import("./opportunity.state.js").OpportunityGraphOptions | import("@langchain/langgraph").OverwriteValue<import("./opportunity.state.js").OpportunityGraphOptions> | undefined;
|
|
572
|
-
operationMode?: "send" | "update" | "create" | "delete" | "read" | "create_introduction" | "continue_discovery" | "negotiate_existing" | "approve_introduction" | import("@langchain/langgraph").OverwriteValue<"send" | "update" | "create" | "delete" | "read" | "create_introduction" | "continue_discovery" | "negotiate_existing" | "approve_introduction"> | undefined;
|
|
573
|
-
introductionEntities?: import("./opportunity.evaluator.js").EvaluatorEntity[] | import("@langchain/langgraph").OverwriteValue<import("./opportunity.evaluator.js").EvaluatorEntity[]> | undefined;
|
|
574
|
-
introductionHint?: string | import("@langchain/langgraph").OverwriteValue<string | undefined> | undefined;
|
|
575
|
-
requiredNetworkId?: import("./opportunity.graph.shared.js").Id<"networks"> | import("@langchain/langgraph").OverwriteValue<import("./opportunity.graph.shared.js").Id<"networks"> | undefined> | undefined;
|
|
576
|
-
introductionContext?: {
|
|
577
|
-
createdByName?: string;
|
|
578
|
-
} | import("@langchain/langgraph").OverwriteValue<{
|
|
579
|
-
createdByName?: string;
|
|
580
|
-
} | undefined> | undefined;
|
|
581
|
-
opportunityId?: string | import("@langchain/langgraph").OverwriteValue<string | undefined> | undefined;
|
|
582
|
-
newStatus?: string | import("@langchain/langgraph").OverwriteValue<string | undefined> | undefined;
|
|
583
|
-
indexedIntents?: import("./opportunity.state.js").IndexedIntent[] | import("@langchain/langgraph").OverwriteValue<import("./opportunity.state.js").IndexedIntent[]> | undefined;
|
|
584
|
-
userNetworks?: import("./opportunity.graph.shared.js").Id<"networks">[] | import("@langchain/langgraph").OverwriteValue<import("./opportunity.graph.shared.js").Id<"networks">[]> | undefined;
|
|
585
|
-
targetNetworks?: import("./opportunity.state.js").TargetNetwork[] | import("@langchain/langgraph").OverwriteValue<import("./opportunity.state.js").TargetNetwork[]> | undefined;
|
|
586
|
-
indexRelevancyScores?: Record<string, number> | import("@langchain/langgraph").OverwriteValue<Record<string, number>> | undefined;
|
|
587
|
-
discoverySource?: "intent" | "context" | import("@langchain/langgraph").OverwriteValue<"intent" | "context"> | undefined;
|
|
588
|
-
resolvedTriggerIntentId?: import("./opportunity.graph.shared.js").Id<"intents"> | import("@langchain/langgraph").OverwriteValue<import("./opportunity.graph.shared.js").Id<"intents"> | undefined> | undefined;
|
|
589
|
-
sourceProfile?: import("./opportunity.state.js").SourceProfileData | import("@langchain/langgraph").OverwriteValue<import("./opportunity.state.js").SourceProfileData | null> | null | undefined;
|
|
590
|
-
sourcePremises?: {
|
|
591
|
-
premiseId: import("./opportunity.graph.shared.js").Id<"premises">;
|
|
592
|
-
embedding: number[];
|
|
593
|
-
}[] | import("@langchain/langgraph").OverwriteValue<{
|
|
594
|
-
premiseId: import("./opportunity.graph.shared.js").Id<"premises">;
|
|
595
|
-
embedding: number[];
|
|
596
|
-
}[]> | undefined;
|
|
597
|
-
sourceContexts?: {
|
|
598
|
-
contextId: string;
|
|
599
|
-
networkId: import("./opportunity.graph.shared.js").Id<"networks">;
|
|
600
|
-
text: string;
|
|
601
|
-
embedding: number[];
|
|
602
|
-
}[] | import("@langchain/langgraph").OverwriteValue<{
|
|
603
|
-
contextId: string;
|
|
604
|
-
networkId: import("./opportunity.graph.shared.js").Id<"networks">;
|
|
605
|
-
text: string;
|
|
606
|
-
embedding: number[];
|
|
607
|
-
}[]> | undefined;
|
|
608
|
-
resolvedIntentInIndex?: boolean | import("@langchain/langgraph").OverwriteValue<boolean> | undefined;
|
|
609
|
-
createIntentSuggested?: boolean | import("@langchain/langgraph").OverwriteValue<boolean> | undefined;
|
|
610
|
-
suggestedIntentDescription?: string | import("@langchain/langgraph").OverwriteValue<string | undefined> | undefined;
|
|
611
|
-
hydeEmbeddings?: Record<string, number[]> | import("@langchain/langgraph").OverwriteValue<Record<string, number[]>> | undefined;
|
|
612
|
-
candidates?: import("./opportunity.state.js").CandidateMatch[] | import("@langchain/langgraph").OverwriteValue<import("./opportunity.state.js").CandidateMatch[]> | undefined;
|
|
613
|
-
remainingCandidates?: import("./opportunity.state.js").CandidateMatch[] | import("@langchain/langgraph").OverwriteValue<import("./opportunity.state.js").CandidateMatch[]> | undefined;
|
|
614
|
-
discoveryId?: string | import("@langchain/langgraph").OverwriteValue<string | null> | null | undefined;
|
|
615
|
-
evaluatedCandidates?: import("./opportunity.state.js").EvaluatedCandidate[] | import("@langchain/langgraph").OverwriteValue<import("./opportunity.state.js").EvaluatedCandidate[]> | undefined;
|
|
616
|
-
evaluatedOpportunities?: import("./opportunity.state.js").EvaluatedOpportunity[] | import("@langchain/langgraph").OverwriteValue<import("./opportunity.state.js").EvaluatedOpportunity[]> | undefined;
|
|
617
|
-
opportunities?: import("../shared/interfaces/database.entities.js").Opportunity[] | import("@langchain/langgraph").OverwriteValue<import("../shared/interfaces/database.entities.js").Opportunity[]> | undefined;
|
|
618
|
-
existingBetweenActors?: {
|
|
619
|
-
candidateUserId: import("./opportunity.graph.shared.js").Id<"users">;
|
|
620
|
-
networkId: import("./opportunity.graph.shared.js").Id<"networks">;
|
|
621
|
-
existingOpportunityId?: import("./opportunity.graph.shared.js").Id<"opportunities">;
|
|
622
|
-
existingStatus?: import("../shared/interfaces/database.entities.js").OpportunityStatus;
|
|
623
|
-
reason?: "same_trigger_recent_duplicate" | "pair_active_negotiation" | "final_atomic_conflict";
|
|
624
|
-
existingTriggerIntentId?: string;
|
|
625
|
-
}[] | import("@langchain/langgraph").OverwriteValue<{
|
|
626
|
-
candidateUserId: import("./opportunity.graph.shared.js").Id<"users">;
|
|
627
|
-
networkId: import("./opportunity.graph.shared.js").Id<"networks">;
|
|
628
|
-
existingOpportunityId?: import("./opportunity.graph.shared.js").Id<"opportunities">;
|
|
629
|
-
existingStatus?: import("../shared/interfaces/database.entities.js").OpportunityStatus;
|
|
630
|
-
reason?: "same_trigger_recent_duplicate" | "pair_active_negotiation" | "final_atomic_conflict";
|
|
631
|
-
existingTriggerIntentId?: string;
|
|
632
|
-
}[]> | undefined;
|
|
633
|
-
persistenceOutcome?: import("./opportunity.state.js").OpportunityPersistenceOutcome | import("@langchain/langgraph").OverwriteValue<import("./opportunity.state.js").OpportunityPersistenceOutcome | undefined> | undefined;
|
|
634
|
-
negotiationContinuationReceipt?: import("../shared/interfaces/database.negotiation.js").NegotiationContinuationReceipt | import("@langchain/langgraph").OverwriteValue<import("../shared/interfaces/database.negotiation.js").NegotiationContinuationReceipt | undefined> | undefined;
|
|
635
|
-
error?: string | import("@langchain/langgraph").OverwriteValue<string | undefined> | undefined;
|
|
636
|
-
readResult?: {
|
|
637
|
-
count: number;
|
|
638
|
-
message?: string;
|
|
639
|
-
opportunities: Array<{
|
|
640
|
-
id: string;
|
|
641
|
-
indexName: string;
|
|
642
|
-
connectedWith: string[];
|
|
643
|
-
suggestedBy: string | null;
|
|
644
|
-
reasoning: string;
|
|
645
|
-
status: string;
|
|
646
|
-
category: string;
|
|
647
|
-
confidence: number | null;
|
|
648
|
-
source: string | null;
|
|
649
|
-
}>;
|
|
650
|
-
} | import("@langchain/langgraph").OverwriteValue<{
|
|
651
|
-
count: number;
|
|
652
|
-
message?: string;
|
|
653
|
-
opportunities: Array<{
|
|
654
|
-
id: string;
|
|
655
|
-
indexName: string;
|
|
656
|
-
connectedWith: string[];
|
|
657
|
-
suggestedBy: string | null;
|
|
658
|
-
reasoning: string;
|
|
659
|
-
status: string;
|
|
660
|
-
category: string;
|
|
661
|
-
confidence: number | null;
|
|
662
|
-
source: string | null;
|
|
663
|
-
}>;
|
|
664
|
-
} | undefined> | undefined;
|
|
665
|
-
mutationResult?: {
|
|
666
|
-
success: boolean;
|
|
667
|
-
message?: string;
|
|
668
|
-
opportunityId?: string;
|
|
669
|
-
notified?: string[];
|
|
670
|
-
conversationId?: string;
|
|
671
|
-
error?: string;
|
|
672
|
-
} | import("@langchain/langgraph").OverwriteValue<{
|
|
673
|
-
success: boolean;
|
|
674
|
-
message?: string;
|
|
675
|
-
opportunityId?: string;
|
|
676
|
-
notified?: string[];
|
|
677
|
-
conversationId?: string;
|
|
678
|
-
error?: string;
|
|
679
|
-
} | undefined> | undefined;
|
|
680
|
-
trace?: {
|
|
681
|
-
node: string;
|
|
682
|
-
detail?: string;
|
|
683
|
-
data?: Record<string, unknown>;
|
|
684
|
-
}[] | import("@langchain/langgraph").OverwriteValue<{
|
|
685
|
-
node: string;
|
|
686
|
-
detail?: string;
|
|
687
|
-
data?: Record<string, unknown>;
|
|
688
|
-
}[]> | undefined;
|
|
689
|
-
agentTimings?: import("../chat/chat-streaming.types.js").DebugMetaAgent[] | import("@langchain/langgraph").OverwriteValue<import("../chat/chat-streaming.types.js").DebugMetaAgent[]> | undefined;
|
|
690
|
-
discoveryNegotiations?: {
|
|
691
|
-
indexContext: string;
|
|
692
|
-
outcome: {
|
|
693
|
-
reasoning: string;
|
|
694
|
-
hasOpportunity: boolean;
|
|
695
|
-
reason?: "timeout" | "turn_cap" | "screened_out" | undefined;
|
|
696
|
-
agreedRoles?: {
|
|
697
|
-
userId: string;
|
|
698
|
-
role: "agent" | "patient" | "peer";
|
|
699
|
-
}[] | undefined;
|
|
700
|
-
};
|
|
701
|
-
counterpartyHint: string;
|
|
702
|
-
counterpartyId: string;
|
|
703
|
-
turns: {
|
|
704
|
-
reasoning: string;
|
|
705
|
-
action: "propose" | "accept" | "reject" | "counter" | "question" | "outreach" | "withdraw" | "decline" | "ask_user";
|
|
706
|
-
suggestedRoles: {
|
|
707
|
-
ownUser: "agent" | "patient" | "peer";
|
|
708
|
-
otherUser: "agent" | "patient" | "peer";
|
|
709
|
-
};
|
|
710
|
-
}[];
|
|
711
|
-
seedAssessmentScore?: number | undefined;
|
|
712
|
-
}[] | import("@langchain/langgraph").OverwriteValue<{
|
|
713
|
-
indexContext: string;
|
|
714
|
-
outcome: {
|
|
715
|
-
reasoning: string;
|
|
716
|
-
hasOpportunity: boolean;
|
|
717
|
-
reason?: "timeout" | "turn_cap" | "screened_out" | undefined;
|
|
718
|
-
agreedRoles?: {
|
|
719
|
-
userId: string;
|
|
720
|
-
role: "agent" | "patient" | "peer";
|
|
721
|
-
}[] | undefined;
|
|
722
|
-
};
|
|
723
|
-
counterpartyHint: string;
|
|
724
|
-
counterpartyId: string;
|
|
725
|
-
turns: {
|
|
726
|
-
reasoning: string;
|
|
727
|
-
action: "propose" | "accept" | "reject" | "counter" | "question" | "outreach" | "withdraw" | "decline" | "ask_user";
|
|
728
|
-
suggestedRoles: {
|
|
729
|
-
ownUser: "agent" | "patient" | "peer";
|
|
730
|
-
otherUser: "agent" | "patient" | "peer";
|
|
731
|
-
};
|
|
732
|
-
}[];
|
|
733
|
-
seedAssessmentScore?: number | undefined;
|
|
734
|
-
}[]> | undefined;
|
|
735
|
-
discoverySummary?: import("../shared/schemas/discovery-question.schema.js").DiscoverySummary | import("@langchain/langgraph").OverwriteValue<import("../shared/schemas/discovery-question.schema.js").DiscoverySummary | null> | null | undefined;
|
|
736
|
-
}, "scope" | "__start__" | "prep" | "discovery" | "evaluation" | "persist" | "negotiate" | "resolve" | "ranking", {
|
|
737
|
-
userId: import("@langchain/langgraph").BaseChannel<import("./opportunity.graph.shared.js").Id<"users">, import("./opportunity.graph.shared.js").Id<"users"> | import("@langchain/langgraph").OverwriteValue<import("./opportunity.graph.shared.js").Id<"users">>, unknown>;
|
|
738
|
-
searchQuery: import("@langchain/langgraph").BaseChannel<string | undefined, string | import("@langchain/langgraph").OverwriteValue<string | undefined> | undefined, unknown>;
|
|
739
|
-
networkId: import("@langchain/langgraph").BaseChannel<import("./opportunity.graph.shared.js").Id<"networks"> | undefined, import("./opportunity.graph.shared.js").Id<"networks"> | import("@langchain/langgraph").OverwriteValue<import("./opportunity.graph.shared.js").Id<"networks"> | undefined> | undefined, unknown>;
|
|
740
|
-
indexScope: import("@langchain/langgraph").BaseChannel<import("./opportunity.graph.shared.js").Id<"networks">[] | undefined, import("./opportunity.graph.shared.js").Id<"networks">[] | import("@langchain/langgraph").OverwriteValue<import("./opportunity.graph.shared.js").Id<"networks">[] | undefined> | undefined, unknown>;
|
|
741
|
-
triggerIntentId: import("@langchain/langgraph").BaseChannel<import("./opportunity.graph.shared.js").Id<"intents"> | undefined, import("./opportunity.graph.shared.js").Id<"intents"> | import("@langchain/langgraph").OverwriteValue<import("./opportunity.graph.shared.js").Id<"intents"> | undefined> | undefined, unknown>;
|
|
742
|
-
targetUserId: import("@langchain/langgraph").BaseChannel<import("./opportunity.graph.shared.js").Id<"users"> | undefined, import("./opportunity.graph.shared.js").Id<"users"> | import("@langchain/langgraph").OverwriteValue<import("./opportunity.graph.shared.js").Id<"users"> | undefined> | undefined, unknown>;
|
|
743
|
-
onBehalfOfUserId: import("@langchain/langgraph").BaseChannel<import("./opportunity.graph.shared.js").Id<"users"> | undefined, import("./opportunity.graph.shared.js").Id<"users"> | import("@langchain/langgraph").OverwriteValue<import("./opportunity.graph.shared.js").Id<"users"> | undefined> | undefined, unknown>;
|
|
744
|
-
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>;
|
|
745
|
-
operationMode: import("@langchain/langgraph").BaseChannel<"send" | "update" | "create" | "delete" | "read" | "create_introduction" | "continue_discovery" | "negotiate_existing" | "approve_introduction", "send" | "update" | "create" | "delete" | "read" | "create_introduction" | "continue_discovery" | "negotiate_existing" | "approve_introduction" | import("@langchain/langgraph").OverwriteValue<"send" | "update" | "create" | "delete" | "read" | "create_introduction" | "continue_discovery" | "negotiate_existing" | "approve_introduction">, unknown>;
|
|
746
|
-
introductionEntities: import("@langchain/langgraph").BaseChannel<import("./opportunity.evaluator.js").EvaluatorEntity[], import("./opportunity.evaluator.js").EvaluatorEntity[] | import("@langchain/langgraph").OverwriteValue<import("./opportunity.evaluator.js").EvaluatorEntity[]>, unknown>;
|
|
747
|
-
introductionHint: import("@langchain/langgraph").BaseChannel<string | undefined, string | import("@langchain/langgraph").OverwriteValue<string | undefined> | undefined, unknown>;
|
|
748
|
-
requiredNetworkId: import("@langchain/langgraph").BaseChannel<import("./opportunity.graph.shared.js").Id<"networks"> | undefined, import("./opportunity.graph.shared.js").Id<"networks"> | import("@langchain/langgraph").OverwriteValue<import("./opportunity.graph.shared.js").Id<"networks"> | undefined> | undefined, unknown>;
|
|
749
|
-
introductionContext: import("@langchain/langgraph").BaseChannel<{
|
|
750
|
-
createdByName?: string;
|
|
751
|
-
} | undefined, {
|
|
752
|
-
createdByName?: string;
|
|
753
|
-
} | import("@langchain/langgraph").OverwriteValue<{
|
|
754
|
-
createdByName?: string;
|
|
755
|
-
} | undefined> | undefined, unknown>;
|
|
756
|
-
opportunityId: import("@langchain/langgraph").BaseChannel<string | undefined, string | import("@langchain/langgraph").OverwriteValue<string | undefined> | undefined, unknown>;
|
|
757
|
-
newStatus: import("@langchain/langgraph").BaseChannel<string | undefined, string | import("@langchain/langgraph").OverwriteValue<string | undefined> | undefined, unknown>;
|
|
758
|
-
indexedIntents: import("@langchain/langgraph").BaseChannel<import("./opportunity.state.js").IndexedIntent[], import("./opportunity.state.js").IndexedIntent[] | import("@langchain/langgraph").OverwriteValue<import("./opportunity.state.js").IndexedIntent[]>, unknown>;
|
|
759
|
-
userNetworks: import("@langchain/langgraph").BaseChannel<import("./opportunity.graph.shared.js").Id<"networks">[], import("./opportunity.graph.shared.js").Id<"networks">[] | import("@langchain/langgraph").OverwriteValue<import("./opportunity.graph.shared.js").Id<"networks">[]>, unknown>;
|
|
760
|
-
targetNetworks: import("@langchain/langgraph").BaseChannel<import("./opportunity.state.js").TargetNetwork[], import("./opportunity.state.js").TargetNetwork[] | import("@langchain/langgraph").OverwriteValue<import("./opportunity.state.js").TargetNetwork[]>, unknown>;
|
|
761
|
-
indexRelevancyScores: import("@langchain/langgraph").BaseChannel<Record<string, number>, Record<string, number> | import("@langchain/langgraph").OverwriteValue<Record<string, number>>, unknown>;
|
|
762
|
-
discoverySource: import("@langchain/langgraph").BaseChannel<"intent" | "context", "intent" | "context" | import("@langchain/langgraph").OverwriteValue<"intent" | "context">, unknown>;
|
|
763
|
-
resolvedTriggerIntentId: import("@langchain/langgraph").BaseChannel<import("./opportunity.graph.shared.js").Id<"intents"> | undefined, import("./opportunity.graph.shared.js").Id<"intents"> | import("@langchain/langgraph").OverwriteValue<import("./opportunity.graph.shared.js").Id<"intents"> | undefined> | undefined, unknown>;
|
|
764
|
-
sourceProfile: import("@langchain/langgraph").BaseChannel<import("./opportunity.state.js").SourceProfileData | null, import("./opportunity.state.js").SourceProfileData | import("@langchain/langgraph").OverwriteValue<import("./opportunity.state.js").SourceProfileData | null> | null, unknown>;
|
|
765
|
-
sourcePremises: import("@langchain/langgraph").BaseChannel<{
|
|
766
|
-
premiseId: import("./opportunity.graph.shared.js").Id<"premises">;
|
|
767
|
-
embedding: number[];
|
|
768
|
-
}[], {
|
|
769
|
-
premiseId: import("./opportunity.graph.shared.js").Id<"premises">;
|
|
770
|
-
embedding: number[];
|
|
771
|
-
}[] | import("@langchain/langgraph").OverwriteValue<{
|
|
772
|
-
premiseId: import("./opportunity.graph.shared.js").Id<"premises">;
|
|
773
|
-
embedding: number[];
|
|
774
|
-
}[]>, unknown>;
|
|
775
|
-
sourceContexts: import("@langchain/langgraph").BaseChannel<{
|
|
776
|
-
contextId: string;
|
|
777
|
-
networkId: import("./opportunity.graph.shared.js").Id<"networks">;
|
|
778
|
-
text: string;
|
|
779
|
-
embedding: number[];
|
|
780
|
-
}[], {
|
|
781
|
-
contextId: string;
|
|
782
|
-
networkId: import("./opportunity.graph.shared.js").Id<"networks">;
|
|
783
|
-
text: string;
|
|
784
|
-
embedding: number[];
|
|
785
|
-
}[] | import("@langchain/langgraph").OverwriteValue<{
|
|
786
|
-
contextId: string;
|
|
787
|
-
networkId: import("./opportunity.graph.shared.js").Id<"networks">;
|
|
788
|
-
text: string;
|
|
789
|
-
embedding: number[];
|
|
790
|
-
}[]>, unknown>;
|
|
791
|
-
resolvedIntentInIndex: import("@langchain/langgraph").BaseChannel<boolean, boolean | import("@langchain/langgraph").OverwriteValue<boolean>, unknown>;
|
|
792
|
-
createIntentSuggested: import("@langchain/langgraph").BaseChannel<boolean, boolean | import("@langchain/langgraph").OverwriteValue<boolean>, unknown>;
|
|
793
|
-
suggestedIntentDescription: import("@langchain/langgraph").BaseChannel<string | undefined, string | import("@langchain/langgraph").OverwriteValue<string | undefined> | undefined, unknown>;
|
|
794
|
-
hydeEmbeddings: import("@langchain/langgraph").BaseChannel<Record<string, number[]>, Record<string, number[]> | import("@langchain/langgraph").OverwriteValue<Record<string, number[]>>, unknown>;
|
|
795
|
-
candidates: import("@langchain/langgraph").BaseChannel<import("./opportunity.state.js").CandidateMatch[], import("./opportunity.state.js").CandidateMatch[] | import("@langchain/langgraph").OverwriteValue<import("./opportunity.state.js").CandidateMatch[]>, unknown>;
|
|
796
|
-
remainingCandidates: import("@langchain/langgraph").BaseChannel<import("./opportunity.state.js").CandidateMatch[], import("./opportunity.state.js").CandidateMatch[] | import("@langchain/langgraph").OverwriteValue<import("./opportunity.state.js").CandidateMatch[]>, unknown>;
|
|
797
|
-
discoveryId: import("@langchain/langgraph").BaseChannel<string | null, string | import("@langchain/langgraph").OverwriteValue<string | null> | null, unknown>;
|
|
798
|
-
evaluatedCandidates: import("@langchain/langgraph").BaseChannel<import("./opportunity.state.js").EvaluatedCandidate[], import("./opportunity.state.js").EvaluatedCandidate[] | import("@langchain/langgraph").OverwriteValue<import("./opportunity.state.js").EvaluatedCandidate[]>, unknown>;
|
|
799
|
-
evaluatedOpportunities: import("@langchain/langgraph").BaseChannel<import("./opportunity.state.js").EvaluatedOpportunity[], import("./opportunity.state.js").EvaluatedOpportunity[] | import("@langchain/langgraph").OverwriteValue<import("./opportunity.state.js").EvaluatedOpportunity[]>, unknown>;
|
|
800
|
-
opportunities: import("@langchain/langgraph").BaseChannel<import("../shared/interfaces/database.entities.js").Opportunity[], import("../shared/interfaces/database.entities.js").Opportunity[] | import("@langchain/langgraph").OverwriteValue<import("../shared/interfaces/database.entities.js").Opportunity[]>, unknown>;
|
|
801
|
-
existingBetweenActors: import("@langchain/langgraph").BaseChannel<{
|
|
802
|
-
candidateUserId: import("./opportunity.graph.shared.js").Id<"users">;
|
|
803
|
-
networkId: import("./opportunity.graph.shared.js").Id<"networks">;
|
|
804
|
-
existingOpportunityId?: import("./opportunity.graph.shared.js").Id<"opportunities">;
|
|
805
|
-
existingStatus?: import("../shared/interfaces/database.entities.js").OpportunityStatus;
|
|
806
|
-
reason?: "same_trigger_recent_duplicate" | "pair_active_negotiation" | "final_atomic_conflict";
|
|
807
|
-
existingTriggerIntentId?: string;
|
|
808
|
-
}[], {
|
|
809
|
-
candidateUserId: import("./opportunity.graph.shared.js").Id<"users">;
|
|
810
|
-
networkId: import("./opportunity.graph.shared.js").Id<"networks">;
|
|
811
|
-
existingOpportunityId?: import("./opportunity.graph.shared.js").Id<"opportunities">;
|
|
812
|
-
existingStatus?: import("../shared/interfaces/database.entities.js").OpportunityStatus;
|
|
813
|
-
reason?: "same_trigger_recent_duplicate" | "pair_active_negotiation" | "final_atomic_conflict";
|
|
814
|
-
existingTriggerIntentId?: string;
|
|
815
|
-
}[] | import("@langchain/langgraph").OverwriteValue<{
|
|
816
|
-
candidateUserId: import("./opportunity.graph.shared.js").Id<"users">;
|
|
817
|
-
networkId: import("./opportunity.graph.shared.js").Id<"networks">;
|
|
818
|
-
existingOpportunityId?: import("./opportunity.graph.shared.js").Id<"opportunities">;
|
|
819
|
-
existingStatus?: import("../shared/interfaces/database.entities.js").OpportunityStatus;
|
|
820
|
-
reason?: "same_trigger_recent_duplicate" | "pair_active_negotiation" | "final_atomic_conflict";
|
|
821
|
-
existingTriggerIntentId?: string;
|
|
822
|
-
}[]>, unknown>;
|
|
823
|
-
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>;
|
|
824
|
-
negotiationContinuationReceipt: import("@langchain/langgraph").BaseChannel<import("../shared/interfaces/database.negotiation.js").NegotiationContinuationReceipt | undefined, import("../shared/interfaces/database.negotiation.js").NegotiationContinuationReceipt | import("@langchain/langgraph").OverwriteValue<import("../shared/interfaces/database.negotiation.js").NegotiationContinuationReceipt | undefined> | undefined, unknown>;
|
|
825
|
-
error: import("@langchain/langgraph").BaseChannel<string | undefined, string | import("@langchain/langgraph").OverwriteValue<string | undefined> | undefined, unknown>;
|
|
826
|
-
readResult: import("@langchain/langgraph").BaseChannel<{
|
|
827
|
-
count: number;
|
|
828
|
-
message?: string;
|
|
829
|
-
opportunities: Array<{
|
|
830
|
-
id: string;
|
|
831
|
-
indexName: string;
|
|
832
|
-
connectedWith: string[];
|
|
833
|
-
suggestedBy: string | null;
|
|
834
|
-
reasoning: string;
|
|
835
|
-
status: string;
|
|
836
|
-
category: string;
|
|
837
|
-
confidence: number | null;
|
|
838
|
-
source: string | null;
|
|
839
|
-
}>;
|
|
840
|
-
} | undefined, {
|
|
841
|
-
count: number;
|
|
842
|
-
message?: string;
|
|
843
|
-
opportunities: Array<{
|
|
844
|
-
id: string;
|
|
845
|
-
indexName: string;
|
|
846
|
-
connectedWith: string[];
|
|
847
|
-
suggestedBy: string | null;
|
|
848
|
-
reasoning: string;
|
|
849
|
-
status: string;
|
|
850
|
-
category: string;
|
|
851
|
-
confidence: number | null;
|
|
852
|
-
source: string | null;
|
|
853
|
-
}>;
|
|
854
|
-
} | import("@langchain/langgraph").OverwriteValue<{
|
|
855
|
-
count: number;
|
|
856
|
-
message?: string;
|
|
857
|
-
opportunities: Array<{
|
|
858
|
-
id: string;
|
|
859
|
-
indexName: string;
|
|
860
|
-
connectedWith: string[];
|
|
861
|
-
suggestedBy: string | null;
|
|
862
|
-
reasoning: string;
|
|
863
|
-
status: string;
|
|
864
|
-
category: string;
|
|
865
|
-
confidence: number | null;
|
|
866
|
-
source: string | null;
|
|
867
|
-
}>;
|
|
868
|
-
} | undefined> | undefined, unknown>;
|
|
869
|
-
mutationResult: import("@langchain/langgraph").BaseChannel<{
|
|
870
|
-
success: boolean;
|
|
871
|
-
message?: string;
|
|
872
|
-
opportunityId?: string;
|
|
873
|
-
notified?: string[];
|
|
874
|
-
conversationId?: string;
|
|
875
|
-
error?: string;
|
|
876
|
-
} | undefined, {
|
|
877
|
-
success: boolean;
|
|
878
|
-
message?: string;
|
|
879
|
-
opportunityId?: string;
|
|
880
|
-
notified?: string[];
|
|
881
|
-
conversationId?: string;
|
|
882
|
-
error?: string;
|
|
883
|
-
} | import("@langchain/langgraph").OverwriteValue<{
|
|
884
|
-
success: boolean;
|
|
885
|
-
message?: string;
|
|
886
|
-
opportunityId?: string;
|
|
887
|
-
notified?: string[];
|
|
888
|
-
conversationId?: string;
|
|
889
|
-
error?: string;
|
|
890
|
-
} | undefined> | undefined, unknown>;
|
|
891
|
-
trace: import("@langchain/langgraph").BaseChannel<{
|
|
892
|
-
node: string;
|
|
893
|
-
detail?: string;
|
|
894
|
-
data?: Record<string, unknown>;
|
|
895
|
-
}[], {
|
|
896
|
-
node: string;
|
|
897
|
-
detail?: string;
|
|
898
|
-
data?: Record<string, unknown>;
|
|
899
|
-
}[] | import("@langchain/langgraph").OverwriteValue<{
|
|
900
|
-
node: string;
|
|
901
|
-
detail?: string;
|
|
902
|
-
data?: Record<string, unknown>;
|
|
903
|
-
}[]>, unknown>;
|
|
904
|
-
agentTimings: import("@langchain/langgraph").BaseChannel<import("../chat/chat-streaming.types.js").DebugMetaAgent[], import("../chat/chat-streaming.types.js").DebugMetaAgent[] | import("@langchain/langgraph").OverwriteValue<import("../chat/chat-streaming.types.js").DebugMetaAgent[]>, unknown>;
|
|
905
|
-
discoveryNegotiations: import("@langchain/langgraph").BaseChannel<{
|
|
906
|
-
indexContext: string;
|
|
907
|
-
outcome: {
|
|
908
|
-
reasoning: string;
|
|
909
|
-
hasOpportunity: boolean;
|
|
910
|
-
reason?: "timeout" | "turn_cap" | "screened_out" | undefined;
|
|
911
|
-
agreedRoles?: {
|
|
912
|
-
userId: string;
|
|
913
|
-
role: "agent" | "patient" | "peer";
|
|
914
|
-
}[] | undefined;
|
|
915
|
-
};
|
|
916
|
-
counterpartyHint: string;
|
|
917
|
-
counterpartyId: string;
|
|
918
|
-
turns: {
|
|
919
|
-
reasoning: string;
|
|
920
|
-
action: "propose" | "accept" | "reject" | "counter" | "question" | "outreach" | "withdraw" | "decline" | "ask_user";
|
|
921
|
-
suggestedRoles: {
|
|
922
|
-
ownUser: "agent" | "patient" | "peer";
|
|
923
|
-
otherUser: "agent" | "patient" | "peer";
|
|
924
|
-
};
|
|
925
|
-
}[];
|
|
926
|
-
seedAssessmentScore?: number | undefined;
|
|
927
|
-
}[], {
|
|
928
|
-
indexContext: string;
|
|
929
|
-
outcome: {
|
|
930
|
-
reasoning: string;
|
|
931
|
-
hasOpportunity: boolean;
|
|
932
|
-
reason?: "timeout" | "turn_cap" | "screened_out" | undefined;
|
|
933
|
-
agreedRoles?: {
|
|
934
|
-
userId: string;
|
|
935
|
-
role: "agent" | "patient" | "peer";
|
|
936
|
-
}[] | undefined;
|
|
937
|
-
};
|
|
938
|
-
counterpartyHint: string;
|
|
939
|
-
counterpartyId: string;
|
|
940
|
-
turns: {
|
|
941
|
-
reasoning: string;
|
|
942
|
-
action: "propose" | "accept" | "reject" | "counter" | "question" | "outreach" | "withdraw" | "decline" | "ask_user";
|
|
943
|
-
suggestedRoles: {
|
|
944
|
-
ownUser: "agent" | "patient" | "peer";
|
|
945
|
-
otherUser: "agent" | "patient" | "peer";
|
|
946
|
-
};
|
|
947
|
-
}[];
|
|
948
|
-
seedAssessmentScore?: number | undefined;
|
|
949
|
-
}[] | import("@langchain/langgraph").OverwriteValue<{
|
|
950
|
-
indexContext: string;
|
|
951
|
-
outcome: {
|
|
952
|
-
reasoning: string;
|
|
953
|
-
hasOpportunity: boolean;
|
|
954
|
-
reason?: "timeout" | "turn_cap" | "screened_out" | undefined;
|
|
955
|
-
agreedRoles?: {
|
|
956
|
-
userId: string;
|
|
957
|
-
role: "agent" | "patient" | "peer";
|
|
958
|
-
}[] | undefined;
|
|
959
|
-
};
|
|
960
|
-
counterpartyHint: string;
|
|
961
|
-
counterpartyId: string;
|
|
962
|
-
turns: {
|
|
963
|
-
reasoning: string;
|
|
964
|
-
action: "propose" | "accept" | "reject" | "counter" | "question" | "outreach" | "withdraw" | "decline" | "ask_user";
|
|
965
|
-
suggestedRoles: {
|
|
966
|
-
ownUser: "agent" | "patient" | "peer";
|
|
967
|
-
otherUser: "agent" | "patient" | "peer";
|
|
968
|
-
};
|
|
969
|
-
}[];
|
|
970
|
-
seedAssessmentScore?: number | undefined;
|
|
971
|
-
}[]>, unknown>;
|
|
972
|
-
discoverySummary: import("@langchain/langgraph").BaseChannel<import("../shared/schemas/discovery-question.schema.js").DiscoverySummary | null, import("../shared/schemas/discovery-question.schema.js").DiscoverySummary | import("@langchain/langgraph").OverwriteValue<import("../shared/schemas/discovery-question.schema.js").DiscoverySummary | null> | null, unknown>;
|
|
973
|
-
}, {
|
|
974
|
-
userId: import("@langchain/langgraph").BaseChannel<import("./opportunity.graph.shared.js").Id<"users">, import("./opportunity.graph.shared.js").Id<"users"> | import("@langchain/langgraph").OverwriteValue<import("./opportunity.graph.shared.js").Id<"users">>, unknown>;
|
|
975
|
-
searchQuery: import("@langchain/langgraph").BaseChannel<string | undefined, string | import("@langchain/langgraph").OverwriteValue<string | undefined> | undefined, unknown>;
|
|
976
|
-
networkId: import("@langchain/langgraph").BaseChannel<import("./opportunity.graph.shared.js").Id<"networks"> | undefined, import("./opportunity.graph.shared.js").Id<"networks"> | import("@langchain/langgraph").OverwriteValue<import("./opportunity.graph.shared.js").Id<"networks"> | undefined> | undefined, unknown>;
|
|
977
|
-
indexScope: import("@langchain/langgraph").BaseChannel<import("./opportunity.graph.shared.js").Id<"networks">[] | undefined, import("./opportunity.graph.shared.js").Id<"networks">[] | import("@langchain/langgraph").OverwriteValue<import("./opportunity.graph.shared.js").Id<"networks">[] | undefined> | undefined, unknown>;
|
|
978
|
-
triggerIntentId: import("@langchain/langgraph").BaseChannel<import("./opportunity.graph.shared.js").Id<"intents"> | undefined, import("./opportunity.graph.shared.js").Id<"intents"> | import("@langchain/langgraph").OverwriteValue<import("./opportunity.graph.shared.js").Id<"intents"> | undefined> | undefined, unknown>;
|
|
979
|
-
targetUserId: import("@langchain/langgraph").BaseChannel<import("./opportunity.graph.shared.js").Id<"users"> | undefined, import("./opportunity.graph.shared.js").Id<"users"> | import("@langchain/langgraph").OverwriteValue<import("./opportunity.graph.shared.js").Id<"users"> | undefined> | undefined, unknown>;
|
|
980
|
-
onBehalfOfUserId: import("@langchain/langgraph").BaseChannel<import("./opportunity.graph.shared.js").Id<"users"> | undefined, import("./opportunity.graph.shared.js").Id<"users"> | import("@langchain/langgraph").OverwriteValue<import("./opportunity.graph.shared.js").Id<"users"> | undefined> | undefined, unknown>;
|
|
981
|
-
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>;
|
|
982
|
-
operationMode: import("@langchain/langgraph").BaseChannel<"send" | "update" | "create" | "delete" | "read" | "create_introduction" | "continue_discovery" | "negotiate_existing" | "approve_introduction", "send" | "update" | "create" | "delete" | "read" | "create_introduction" | "continue_discovery" | "negotiate_existing" | "approve_introduction" | import("@langchain/langgraph").OverwriteValue<"send" | "update" | "create" | "delete" | "read" | "create_introduction" | "continue_discovery" | "negotiate_existing" | "approve_introduction">, unknown>;
|
|
983
|
-
introductionEntities: import("@langchain/langgraph").BaseChannel<import("./opportunity.evaluator.js").EvaluatorEntity[], import("./opportunity.evaluator.js").EvaluatorEntity[] | import("@langchain/langgraph").OverwriteValue<import("./opportunity.evaluator.js").EvaluatorEntity[]>, unknown>;
|
|
984
|
-
introductionHint: import("@langchain/langgraph").BaseChannel<string | undefined, string | import("@langchain/langgraph").OverwriteValue<string | undefined> | undefined, unknown>;
|
|
985
|
-
requiredNetworkId: import("@langchain/langgraph").BaseChannel<import("./opportunity.graph.shared.js").Id<"networks"> | undefined, import("./opportunity.graph.shared.js").Id<"networks"> | import("@langchain/langgraph").OverwriteValue<import("./opportunity.graph.shared.js").Id<"networks"> | undefined> | undefined, unknown>;
|
|
986
|
-
introductionContext: import("@langchain/langgraph").BaseChannel<{
|
|
987
|
-
createdByName?: string;
|
|
988
|
-
} | undefined, {
|
|
989
|
-
createdByName?: string;
|
|
990
|
-
} | import("@langchain/langgraph").OverwriteValue<{
|
|
991
|
-
createdByName?: string;
|
|
992
|
-
} | undefined> | undefined, unknown>;
|
|
993
|
-
opportunityId: import("@langchain/langgraph").BaseChannel<string | undefined, string | import("@langchain/langgraph").OverwriteValue<string | undefined> | undefined, unknown>;
|
|
994
|
-
newStatus: import("@langchain/langgraph").BaseChannel<string | undefined, string | import("@langchain/langgraph").OverwriteValue<string | undefined> | undefined, unknown>;
|
|
995
|
-
indexedIntents: import("@langchain/langgraph").BaseChannel<import("./opportunity.state.js").IndexedIntent[], import("./opportunity.state.js").IndexedIntent[] | import("@langchain/langgraph").OverwriteValue<import("./opportunity.state.js").IndexedIntent[]>, unknown>;
|
|
996
|
-
userNetworks: import("@langchain/langgraph").BaseChannel<import("./opportunity.graph.shared.js").Id<"networks">[], import("./opportunity.graph.shared.js").Id<"networks">[] | import("@langchain/langgraph").OverwriteValue<import("./opportunity.graph.shared.js").Id<"networks">[]>, unknown>;
|
|
997
|
-
targetNetworks: import("@langchain/langgraph").BaseChannel<import("./opportunity.state.js").TargetNetwork[], import("./opportunity.state.js").TargetNetwork[] | import("@langchain/langgraph").OverwriteValue<import("./opportunity.state.js").TargetNetwork[]>, unknown>;
|
|
998
|
-
indexRelevancyScores: import("@langchain/langgraph").BaseChannel<Record<string, number>, Record<string, number> | import("@langchain/langgraph").OverwriteValue<Record<string, number>>, unknown>;
|
|
999
|
-
discoverySource: import("@langchain/langgraph").BaseChannel<"intent" | "context", "intent" | "context" | import("@langchain/langgraph").OverwriteValue<"intent" | "context">, unknown>;
|
|
1000
|
-
resolvedTriggerIntentId: import("@langchain/langgraph").BaseChannel<import("./opportunity.graph.shared.js").Id<"intents"> | undefined, import("./opportunity.graph.shared.js").Id<"intents"> | import("@langchain/langgraph").OverwriteValue<import("./opportunity.graph.shared.js").Id<"intents"> | undefined> | undefined, unknown>;
|
|
1001
|
-
sourceProfile: import("@langchain/langgraph").BaseChannel<import("./opportunity.state.js").SourceProfileData | null, import("./opportunity.state.js").SourceProfileData | import("@langchain/langgraph").OverwriteValue<import("./opportunity.state.js").SourceProfileData | null> | null, unknown>;
|
|
1002
|
-
sourcePremises: import("@langchain/langgraph").BaseChannel<{
|
|
1003
|
-
premiseId: import("./opportunity.graph.shared.js").Id<"premises">;
|
|
1004
|
-
embedding: number[];
|
|
1005
|
-
}[], {
|
|
1006
|
-
premiseId: import("./opportunity.graph.shared.js").Id<"premises">;
|
|
1007
|
-
embedding: number[];
|
|
1008
|
-
}[] | import("@langchain/langgraph").OverwriteValue<{
|
|
1009
|
-
premiseId: import("./opportunity.graph.shared.js").Id<"premises">;
|
|
1010
|
-
embedding: number[];
|
|
1011
|
-
}[]>, unknown>;
|
|
1012
|
-
sourceContexts: import("@langchain/langgraph").BaseChannel<{
|
|
1013
|
-
contextId: string;
|
|
1014
|
-
networkId: import("./opportunity.graph.shared.js").Id<"networks">;
|
|
1015
|
-
text: string;
|
|
1016
|
-
embedding: number[];
|
|
1017
|
-
}[], {
|
|
1018
|
-
contextId: string;
|
|
1019
|
-
networkId: import("./opportunity.graph.shared.js").Id<"networks">;
|
|
1020
|
-
text: string;
|
|
1021
|
-
embedding: number[];
|
|
1022
|
-
}[] | import("@langchain/langgraph").OverwriteValue<{
|
|
1023
|
-
contextId: string;
|
|
1024
|
-
networkId: import("./opportunity.graph.shared.js").Id<"networks">;
|
|
1025
|
-
text: string;
|
|
1026
|
-
embedding: number[];
|
|
1027
|
-
}[]>, unknown>;
|
|
1028
|
-
resolvedIntentInIndex: import("@langchain/langgraph").BaseChannel<boolean, boolean | import("@langchain/langgraph").OverwriteValue<boolean>, unknown>;
|
|
1029
|
-
createIntentSuggested: import("@langchain/langgraph").BaseChannel<boolean, boolean | import("@langchain/langgraph").OverwriteValue<boolean>, unknown>;
|
|
1030
|
-
suggestedIntentDescription: import("@langchain/langgraph").BaseChannel<string | undefined, string | import("@langchain/langgraph").OverwriteValue<string | undefined> | undefined, unknown>;
|
|
1031
|
-
hydeEmbeddings: import("@langchain/langgraph").BaseChannel<Record<string, number[]>, Record<string, number[]> | import("@langchain/langgraph").OverwriteValue<Record<string, number[]>>, unknown>;
|
|
1032
|
-
candidates: import("@langchain/langgraph").BaseChannel<import("./opportunity.state.js").CandidateMatch[], import("./opportunity.state.js").CandidateMatch[] | import("@langchain/langgraph").OverwriteValue<import("./opportunity.state.js").CandidateMatch[]>, unknown>;
|
|
1033
|
-
remainingCandidates: import("@langchain/langgraph").BaseChannel<import("./opportunity.state.js").CandidateMatch[], import("./opportunity.state.js").CandidateMatch[] | import("@langchain/langgraph").OverwriteValue<import("./opportunity.state.js").CandidateMatch[]>, unknown>;
|
|
1034
|
-
discoveryId: import("@langchain/langgraph").BaseChannel<string | null, string | import("@langchain/langgraph").OverwriteValue<string | null> | null, unknown>;
|
|
1035
|
-
evaluatedCandidates: import("@langchain/langgraph").BaseChannel<import("./opportunity.state.js").EvaluatedCandidate[], import("./opportunity.state.js").EvaluatedCandidate[] | import("@langchain/langgraph").OverwriteValue<import("./opportunity.state.js").EvaluatedCandidate[]>, unknown>;
|
|
1036
|
-
evaluatedOpportunities: import("@langchain/langgraph").BaseChannel<import("./opportunity.state.js").EvaluatedOpportunity[], import("./opportunity.state.js").EvaluatedOpportunity[] | import("@langchain/langgraph").OverwriteValue<import("./opportunity.state.js").EvaluatedOpportunity[]>, unknown>;
|
|
1037
|
-
opportunities: import("@langchain/langgraph").BaseChannel<import("../shared/interfaces/database.entities.js").Opportunity[], import("../shared/interfaces/database.entities.js").Opportunity[] | import("@langchain/langgraph").OverwriteValue<import("../shared/interfaces/database.entities.js").Opportunity[]>, unknown>;
|
|
1038
|
-
existingBetweenActors: import("@langchain/langgraph").BaseChannel<{
|
|
1039
|
-
candidateUserId: import("./opportunity.graph.shared.js").Id<"users">;
|
|
1040
|
-
networkId: import("./opportunity.graph.shared.js").Id<"networks">;
|
|
1041
|
-
existingOpportunityId?: import("./opportunity.graph.shared.js").Id<"opportunities">;
|
|
1042
|
-
existingStatus?: import("../shared/interfaces/database.entities.js").OpportunityStatus;
|
|
1043
|
-
reason?: "same_trigger_recent_duplicate" | "pair_active_negotiation" | "final_atomic_conflict";
|
|
1044
|
-
existingTriggerIntentId?: string;
|
|
1045
|
-
}[], {
|
|
1046
|
-
candidateUserId: import("./opportunity.graph.shared.js").Id<"users">;
|
|
1047
|
-
networkId: import("./opportunity.graph.shared.js").Id<"networks">;
|
|
1048
|
-
existingOpportunityId?: import("./opportunity.graph.shared.js").Id<"opportunities">;
|
|
1049
|
-
existingStatus?: import("../shared/interfaces/database.entities.js").OpportunityStatus;
|
|
1050
|
-
reason?: "same_trigger_recent_duplicate" | "pair_active_negotiation" | "final_atomic_conflict";
|
|
1051
|
-
existingTriggerIntentId?: string;
|
|
1052
|
-
}[] | import("@langchain/langgraph").OverwriteValue<{
|
|
1053
|
-
candidateUserId: import("./opportunity.graph.shared.js").Id<"users">;
|
|
1054
|
-
networkId: import("./opportunity.graph.shared.js").Id<"networks">;
|
|
1055
|
-
existingOpportunityId?: import("./opportunity.graph.shared.js").Id<"opportunities">;
|
|
1056
|
-
existingStatus?: import("../shared/interfaces/database.entities.js").OpportunityStatus;
|
|
1057
|
-
reason?: "same_trigger_recent_duplicate" | "pair_active_negotiation" | "final_atomic_conflict";
|
|
1058
|
-
existingTriggerIntentId?: string;
|
|
1059
|
-
}[]>, unknown>;
|
|
1060
|
-
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>;
|
|
1061
|
-
negotiationContinuationReceipt: import("@langchain/langgraph").BaseChannel<import("../shared/interfaces/database.negotiation.js").NegotiationContinuationReceipt | undefined, import("../shared/interfaces/database.negotiation.js").NegotiationContinuationReceipt | import("@langchain/langgraph").OverwriteValue<import("../shared/interfaces/database.negotiation.js").NegotiationContinuationReceipt | undefined> | undefined, unknown>;
|
|
1062
|
-
error: import("@langchain/langgraph").BaseChannel<string | undefined, string | import("@langchain/langgraph").OverwriteValue<string | undefined> | undefined, unknown>;
|
|
1063
|
-
readResult: import("@langchain/langgraph").BaseChannel<{
|
|
1064
|
-
count: number;
|
|
1065
|
-
message?: string;
|
|
1066
|
-
opportunities: Array<{
|
|
1067
|
-
id: string;
|
|
1068
|
-
indexName: string;
|
|
1069
|
-
connectedWith: string[];
|
|
1070
|
-
suggestedBy: string | null;
|
|
1071
|
-
reasoning: string;
|
|
1072
|
-
status: string;
|
|
1073
|
-
category: string;
|
|
1074
|
-
confidence: number | null;
|
|
1075
|
-
source: string | null;
|
|
1076
|
-
}>;
|
|
1077
|
-
} | undefined, {
|
|
1078
|
-
count: number;
|
|
1079
|
-
message?: string;
|
|
1080
|
-
opportunities: Array<{
|
|
1081
|
-
id: string;
|
|
1082
|
-
indexName: string;
|
|
1083
|
-
connectedWith: string[];
|
|
1084
|
-
suggestedBy: string | null;
|
|
1085
|
-
reasoning: string;
|
|
1086
|
-
status: string;
|
|
1087
|
-
category: string;
|
|
1088
|
-
confidence: number | null;
|
|
1089
|
-
source: string | null;
|
|
1090
|
-
}>;
|
|
1091
|
-
} | import("@langchain/langgraph").OverwriteValue<{
|
|
1092
|
-
count: number;
|
|
1093
|
-
message?: string;
|
|
1094
|
-
opportunities: Array<{
|
|
1095
|
-
id: string;
|
|
1096
|
-
indexName: string;
|
|
1097
|
-
connectedWith: string[];
|
|
1098
|
-
suggestedBy: string | null;
|
|
1099
|
-
reasoning: string;
|
|
1100
|
-
status: string;
|
|
1101
|
-
category: string;
|
|
1102
|
-
confidence: number | null;
|
|
1103
|
-
source: string | null;
|
|
1104
|
-
}>;
|
|
1105
|
-
} | undefined> | undefined, unknown>;
|
|
1106
|
-
mutationResult: import("@langchain/langgraph").BaseChannel<{
|
|
1107
|
-
success: boolean;
|
|
1108
|
-
message?: string;
|
|
1109
|
-
opportunityId?: string;
|
|
1110
|
-
notified?: string[];
|
|
1111
|
-
conversationId?: string;
|
|
1112
|
-
error?: string;
|
|
1113
|
-
} | undefined, {
|
|
1114
|
-
success: boolean;
|
|
1115
|
-
message?: string;
|
|
1116
|
-
opportunityId?: string;
|
|
1117
|
-
notified?: string[];
|
|
1118
|
-
conversationId?: string;
|
|
1119
|
-
error?: string;
|
|
1120
|
-
} | import("@langchain/langgraph").OverwriteValue<{
|
|
1121
|
-
success: boolean;
|
|
1122
|
-
message?: string;
|
|
1123
|
-
opportunityId?: string;
|
|
1124
|
-
notified?: string[];
|
|
1125
|
-
conversationId?: string;
|
|
1126
|
-
error?: string;
|
|
1127
|
-
} | undefined> | undefined, unknown>;
|
|
1128
|
-
trace: import("@langchain/langgraph").BaseChannel<{
|
|
1129
|
-
node: string;
|
|
1130
|
-
detail?: string;
|
|
1131
|
-
data?: Record<string, unknown>;
|
|
1132
|
-
}[], {
|
|
1133
|
-
node: string;
|
|
1134
|
-
detail?: string;
|
|
1135
|
-
data?: Record<string, unknown>;
|
|
1136
|
-
}[] | import("@langchain/langgraph").OverwriteValue<{
|
|
1137
|
-
node: string;
|
|
1138
|
-
detail?: string;
|
|
1139
|
-
data?: Record<string, unknown>;
|
|
1140
|
-
}[]>, unknown>;
|
|
1141
|
-
agentTimings: import("@langchain/langgraph").BaseChannel<import("../chat/chat-streaming.types.js").DebugMetaAgent[], import("../chat/chat-streaming.types.js").DebugMetaAgent[] | import("@langchain/langgraph").OverwriteValue<import("../chat/chat-streaming.types.js").DebugMetaAgent[]>, unknown>;
|
|
1142
|
-
discoveryNegotiations: import("@langchain/langgraph").BaseChannel<{
|
|
1143
|
-
indexContext: string;
|
|
1144
|
-
outcome: {
|
|
1145
|
-
reasoning: string;
|
|
1146
|
-
hasOpportunity: boolean;
|
|
1147
|
-
reason?: "timeout" | "turn_cap" | "screened_out" | undefined;
|
|
1148
|
-
agreedRoles?: {
|
|
1149
|
-
userId: string;
|
|
1150
|
-
role: "agent" | "patient" | "peer";
|
|
1151
|
-
}[] | undefined;
|
|
1152
|
-
};
|
|
1153
|
-
counterpartyHint: string;
|
|
1154
|
-
counterpartyId: string;
|
|
1155
|
-
turns: {
|
|
1156
|
-
reasoning: string;
|
|
1157
|
-
action: "propose" | "accept" | "reject" | "counter" | "question" | "outreach" | "withdraw" | "decline" | "ask_user";
|
|
1158
|
-
suggestedRoles: {
|
|
1159
|
-
ownUser: "agent" | "patient" | "peer";
|
|
1160
|
-
otherUser: "agent" | "patient" | "peer";
|
|
1161
|
-
};
|
|
1162
|
-
}[];
|
|
1163
|
-
seedAssessmentScore?: number | undefined;
|
|
1164
|
-
}[], {
|
|
1165
|
-
indexContext: string;
|
|
1166
|
-
outcome: {
|
|
1167
|
-
reasoning: string;
|
|
1168
|
-
hasOpportunity: boolean;
|
|
1169
|
-
reason?: "timeout" | "turn_cap" | "screened_out" | undefined;
|
|
1170
|
-
agreedRoles?: {
|
|
1171
|
-
userId: string;
|
|
1172
|
-
role: "agent" | "patient" | "peer";
|
|
1173
|
-
}[] | undefined;
|
|
1174
|
-
};
|
|
1175
|
-
counterpartyHint: string;
|
|
1176
|
-
counterpartyId: string;
|
|
1177
|
-
turns: {
|
|
1178
|
-
reasoning: string;
|
|
1179
|
-
action: "propose" | "accept" | "reject" | "counter" | "question" | "outreach" | "withdraw" | "decline" | "ask_user";
|
|
1180
|
-
suggestedRoles: {
|
|
1181
|
-
ownUser: "agent" | "patient" | "peer";
|
|
1182
|
-
otherUser: "agent" | "patient" | "peer";
|
|
1183
|
-
};
|
|
1184
|
-
}[];
|
|
1185
|
-
seedAssessmentScore?: number | undefined;
|
|
1186
|
-
}[] | import("@langchain/langgraph").OverwriteValue<{
|
|
1187
|
-
indexContext: string;
|
|
1188
|
-
outcome: {
|
|
1189
|
-
reasoning: string;
|
|
1190
|
-
hasOpportunity: boolean;
|
|
1191
|
-
reason?: "timeout" | "turn_cap" | "screened_out" | undefined;
|
|
1192
|
-
agreedRoles?: {
|
|
1193
|
-
userId: string;
|
|
1194
|
-
role: "agent" | "patient" | "peer";
|
|
1195
|
-
}[] | undefined;
|
|
1196
|
-
};
|
|
1197
|
-
counterpartyHint: string;
|
|
1198
|
-
counterpartyId: string;
|
|
1199
|
-
turns: {
|
|
1200
|
-
reasoning: string;
|
|
1201
|
-
action: "propose" | "accept" | "reject" | "counter" | "question" | "outreach" | "withdraw" | "decline" | "ask_user";
|
|
1202
|
-
suggestedRoles: {
|
|
1203
|
-
ownUser: "agent" | "patient" | "peer";
|
|
1204
|
-
otherUser: "agent" | "patient" | "peer";
|
|
1205
|
-
};
|
|
1206
|
-
}[];
|
|
1207
|
-
seedAssessmentScore?: number | undefined;
|
|
1208
|
-
}[]>, unknown>;
|
|
1209
|
-
discoverySummary: import("@langchain/langgraph").BaseChannel<import("../shared/schemas/discovery-question.schema.js").DiscoverySummary | null, import("../shared/schemas/discovery-question.schema.js").DiscoverySummary | import("@langchain/langgraph").OverwriteValue<import("../shared/schemas/discovery-question.schema.js").DiscoverySummary | null> | null, unknown>;
|
|
1210
|
-
}, import("@langchain/langgraph").StateDefinition, {
|
|
1211
|
-
prep: {
|
|
1212
|
-
userNetworks: import("./opportunity.graph.shared.js").Id<"networks">[];
|
|
1213
|
-
sourceProfile: null;
|
|
1214
|
-
error: string;
|
|
1215
|
-
indexedIntents?: undefined;
|
|
1216
|
-
sourcePremises?: undefined;
|
|
1217
|
-
sourceContexts?: undefined;
|
|
1218
|
-
trace?: undefined;
|
|
1219
|
-
} | {
|
|
1220
|
-
userNetworks: import("./opportunity.graph.shared.js").Id<"networks">[];
|
|
1221
|
-
indexedIntents: import("./opportunity.state.js").IndexedIntent[];
|
|
1222
|
-
sourceProfile: {
|
|
1223
|
-
identity: {
|
|
1224
|
-
name: string;
|
|
1225
|
-
bio: string;
|
|
1226
|
-
location: string;
|
|
1227
|
-
};
|
|
1228
|
-
context: string;
|
|
1229
|
-
} | null;
|
|
1230
|
-
sourcePremises: {
|
|
1231
|
-
premiseId: import("./opportunity.graph.shared.js").Id<"premises">;
|
|
1232
|
-
embedding: number[];
|
|
1233
|
-
}[];
|
|
1234
|
-
sourceContexts: {
|
|
1235
|
-
contextId: string;
|
|
1236
|
-
networkId: import("./opportunity.graph.shared.js").Id<"networks">;
|
|
1237
|
-
text: string;
|
|
1238
|
-
embedding: number[];
|
|
1239
|
-
}[];
|
|
1240
|
-
trace: {
|
|
1241
|
-
node: string;
|
|
1242
|
-
detail: string;
|
|
1243
|
-
}[];
|
|
1244
|
-
error?: undefined;
|
|
1245
|
-
} | {
|
|
1246
|
-
error: string;
|
|
1247
|
-
trace: {
|
|
1248
|
-
node: string;
|
|
1249
|
-
detail: string;
|
|
1250
|
-
data: {
|
|
1251
|
-
error: string;
|
|
1252
|
-
};
|
|
1253
|
-
}[];
|
|
1254
|
-
};
|
|
1255
|
-
scope: {
|
|
1256
|
-
targetNetworks: never[];
|
|
1257
|
-
error: string;
|
|
1258
|
-
indexRelevancyScores?: undefined;
|
|
1259
|
-
agentTimings?: undefined;
|
|
1260
|
-
trace?: undefined;
|
|
1261
|
-
} | {
|
|
1262
|
-
targetNetworks: import("./opportunity.state.js").TargetNetwork[];
|
|
1263
|
-
indexRelevancyScores: Record<string, number>;
|
|
1264
|
-
agentTimings: import("../chat/chat-streaming.types.js").DebugMetaAgent[];
|
|
1265
|
-
trace: {
|
|
1266
|
-
node: string;
|
|
1267
|
-
detail: string;
|
|
1268
|
-
data: {
|
|
1269
|
-
totalMembers: number;
|
|
1270
|
-
};
|
|
1271
|
-
}[];
|
|
1272
|
-
error?: undefined;
|
|
1273
|
-
} | {
|
|
1274
|
-
targetNetworks: import("./opportunity.state.js").TargetNetwork[];
|
|
1275
|
-
indexRelevancyScores: Record<string, number>;
|
|
1276
|
-
trace: {
|
|
1277
|
-
node: string;
|
|
1278
|
-
detail: string;
|
|
1279
|
-
data: {
|
|
1280
|
-
totalMembers: number;
|
|
1281
|
-
};
|
|
1282
|
-
}[];
|
|
1283
|
-
error?: undefined;
|
|
1284
|
-
agentTimings?: undefined;
|
|
1285
|
-
} | {
|
|
1286
|
-
targetNetworks: never[];
|
|
1287
|
-
error: string;
|
|
1288
|
-
trace: {
|
|
1289
|
-
node: string;
|
|
1290
|
-
detail: string;
|
|
1291
|
-
data: {
|
|
1292
|
-
error: string;
|
|
1293
|
-
};
|
|
1294
|
-
}[];
|
|
1295
|
-
indexRelevancyScores?: undefined;
|
|
1296
|
-
agentTimings?: undefined;
|
|
1297
|
-
};
|
|
1298
|
-
resolve: {
|
|
1299
|
-
resolvedTriggerIntentId: undefined;
|
|
1300
|
-
resolvedIntentInIndex: boolean;
|
|
1301
|
-
discoverySource: "context";
|
|
1302
|
-
error: string;
|
|
1303
|
-
trace?: undefined;
|
|
1304
|
-
} | {
|
|
1305
|
-
resolvedTriggerIntentId: import("./opportunity.graph.shared.js").Id<"intents">;
|
|
1306
|
-
resolvedIntentInIndex: boolean;
|
|
1307
|
-
discoverySource: "intent" | "context";
|
|
1308
|
-
error?: undefined;
|
|
1309
|
-
trace?: undefined;
|
|
1310
|
-
} | {
|
|
1311
|
-
resolvedTriggerIntentId: undefined;
|
|
1312
|
-
resolvedIntentInIndex: boolean;
|
|
1313
|
-
discoverySource: "context";
|
|
1314
|
-
error?: undefined;
|
|
1315
|
-
trace?: undefined;
|
|
1316
|
-
} | {
|
|
1317
|
-
resolvedTriggerIntentId: undefined;
|
|
1318
|
-
resolvedIntentInIndex: boolean;
|
|
1319
|
-
discoverySource: "context";
|
|
1320
|
-
error: string;
|
|
1321
|
-
trace: {
|
|
1322
|
-
node: string;
|
|
1323
|
-
detail: string;
|
|
1324
|
-
data: {
|
|
1325
|
-
error: string;
|
|
1326
|
-
};
|
|
1327
|
-
}[];
|
|
1328
|
-
};
|
|
1329
|
-
discovery: {
|
|
1330
|
-
candidates: never[];
|
|
1331
|
-
trace: {
|
|
1332
|
-
node: string;
|
|
1333
|
-
detail: string;
|
|
1334
|
-
data: {
|
|
1335
|
-
targetUserId: import("./opportunity.graph.shared.js").Id<"users">;
|
|
1336
|
-
};
|
|
1337
|
-
}[];
|
|
1338
|
-
} | {
|
|
1339
|
-
candidates: import("./opportunity.state.js").CandidateMatch[];
|
|
1340
|
-
trace: {
|
|
1341
|
-
node: string;
|
|
1342
|
-
detail: string;
|
|
1343
|
-
data: {
|
|
1344
|
-
targetUserId: import("./opportunity.graph.shared.js").Id<"users">;
|
|
1345
|
-
candidateCount: number;
|
|
1346
|
-
sharedIndexes: number;
|
|
1347
|
-
durationMs: number;
|
|
1348
|
-
};
|
|
1349
|
-
}[];
|
|
1350
|
-
} | {
|
|
1351
|
-
candidates: import("./opportunity.state.js").CandidateMatch[];
|
|
1352
|
-
trace: {
|
|
1353
|
-
node: string;
|
|
1354
|
-
detail?: string;
|
|
1355
|
-
data?: Record<string, unknown>;
|
|
1356
|
-
}[];
|
|
1357
|
-
} | {
|
|
1358
|
-
candidates: import("./opportunity.state.js").CandidateMatch[];
|
|
1359
|
-
trace: {
|
|
1360
|
-
node: string;
|
|
1361
|
-
detail: string;
|
|
1362
|
-
}[];
|
|
1363
|
-
hydeEmbeddings?: undefined;
|
|
1364
|
-
} | {
|
|
1365
|
-
candidates: never[];
|
|
1366
|
-
error?: undefined;
|
|
1367
|
-
trace?: undefined;
|
|
1368
|
-
} | {
|
|
1369
|
-
candidates: never[];
|
|
1370
|
-
error: string;
|
|
1371
|
-
trace: {
|
|
1372
|
-
node: string;
|
|
1373
|
-
detail: string;
|
|
1374
|
-
data: {
|
|
1375
|
-
error: string;
|
|
1376
|
-
};
|
|
1377
|
-
}[];
|
|
1378
|
-
};
|
|
1379
|
-
evaluation: {
|
|
1380
|
-
evaluatedOpportunities: never[];
|
|
1381
|
-
agentTimings: never[];
|
|
1382
|
-
candidates?: undefined;
|
|
1383
|
-
remainingCandidates?: undefined;
|
|
1384
|
-
error?: undefined;
|
|
1385
|
-
trace?: undefined;
|
|
1386
|
-
} | {
|
|
1387
|
-
candidates: never[];
|
|
1388
|
-
evaluatedOpportunities: never[];
|
|
1389
|
-
remainingCandidates: never[];
|
|
1390
|
-
error: string;
|
|
1391
|
-
agentTimings: never[];
|
|
1392
|
-
trace?: undefined;
|
|
1393
|
-
} | {
|
|
1394
|
-
candidates: never[];
|
|
1395
|
-
evaluatedOpportunities: never[];
|
|
1396
|
-
remainingCandidates: never[];
|
|
1397
|
-
agentTimings: never[];
|
|
1398
|
-
error?: undefined;
|
|
1399
|
-
trace?: undefined;
|
|
1400
|
-
} | {
|
|
1401
|
-
candidates: import("./opportunity.state.js").CandidateMatch[];
|
|
1402
|
-
evaluatedOpportunities: import("./opportunity.state.js").EvaluatedOpportunity[];
|
|
1403
|
-
remainingCandidates: import("./opportunity.state.js").CandidateMatch[];
|
|
1404
|
-
trace: {
|
|
1405
|
-
node: string;
|
|
1406
|
-
detail?: string;
|
|
1407
|
-
data?: Record<string, unknown>;
|
|
1408
|
-
}[];
|
|
1409
|
-
agentTimings: import("../chat/chat-streaming.types.js").DebugMetaAgent[];
|
|
1410
|
-
error?: undefined;
|
|
1411
|
-
} | {
|
|
1412
|
-
evaluatedOpportunities: never[];
|
|
1413
|
-
error: string;
|
|
1414
|
-
trace: {
|
|
1415
|
-
node: string;
|
|
1416
|
-
detail: string;
|
|
1417
|
-
data: {
|
|
1418
|
-
error: string;
|
|
1419
|
-
candidateCount: number;
|
|
1420
|
-
durationMs: number;
|
|
1421
|
-
};
|
|
1422
|
-
}[];
|
|
1423
|
-
agentTimings: import("../chat/chat-streaming.types.js").DebugMetaAgent[];
|
|
1424
|
-
candidates?: undefined;
|
|
1425
|
-
remainingCandidates?: undefined;
|
|
1426
|
-
};
|
|
1427
|
-
ranking: {
|
|
1428
|
-
evaluatedOpportunities: import("./opportunity.state.js").EvaluatedOpportunity[];
|
|
1429
|
-
error?: undefined;
|
|
1430
|
-
trace?: undefined;
|
|
1431
|
-
} | {
|
|
1432
|
-
evaluatedOpportunities: never[];
|
|
1433
|
-
error: string;
|
|
1434
|
-
trace: {
|
|
1435
|
-
node: string;
|
|
1436
|
-
detail: string;
|
|
1437
|
-
data: {
|
|
1438
|
-
error: string;
|
|
1439
|
-
};
|
|
1440
|
-
}[];
|
|
1441
|
-
};
|
|
1442
|
-
persist: {
|
|
1443
|
-
opportunities: never[];
|
|
1444
|
-
persistenceOutcome: {
|
|
1445
|
-
evaluatedCount: number;
|
|
1446
|
-
createdCount: number;
|
|
1447
|
-
reactivatedCount: number;
|
|
1448
|
-
sameTriggerDuplicateSuppressions: number;
|
|
1449
|
-
pairActiveNegotiationSuppressions: number;
|
|
1450
|
-
crossTriggerAllowedCount: number;
|
|
1451
|
-
finalAtomicConflictCount: number;
|
|
1452
|
-
};
|
|
1453
|
-
existingBetweenActors?: undefined;
|
|
1454
|
-
trace?: undefined;
|
|
1455
|
-
error?: undefined;
|
|
1456
|
-
} | {
|
|
1457
|
-
opportunities: never[];
|
|
1458
|
-
persistenceOutcome?: undefined;
|
|
1459
|
-
existingBetweenActors?: undefined;
|
|
1460
|
-
trace?: undefined;
|
|
1461
|
-
error?: undefined;
|
|
1462
|
-
} | {
|
|
1463
|
-
opportunities: import("../shared/interfaces/database.entities.js").Opportunity[];
|
|
1464
|
-
existingBetweenActors: {
|
|
1465
|
-
candidateUserId: import("./opportunity.graph.shared.js").Id<"users">;
|
|
1466
|
-
networkId: import("./opportunity.graph.shared.js").Id<"networks">;
|
|
1467
|
-
existingOpportunityId?: import("./opportunity.graph.shared.js").Id<"opportunities">;
|
|
1468
|
-
existingStatus?: import("../shared/interfaces/database.entities.js").OpportunityStatus;
|
|
1469
|
-
reason?: "same_trigger_recent_duplicate" | "pair_active_negotiation" | "final_atomic_conflict";
|
|
1470
|
-
existingTriggerIntentId?: string;
|
|
1471
|
-
}[];
|
|
1472
|
-
persistenceOutcome: {
|
|
1473
|
-
evaluatedCount: number;
|
|
1474
|
-
createdCount: number;
|
|
1475
|
-
reactivatedCount: number;
|
|
1476
|
-
sameTriggerDuplicateSuppressions: number;
|
|
1477
|
-
pairActiveNegotiationSuppressions: number;
|
|
1478
|
-
crossTriggerAllowedCount: number;
|
|
1479
|
-
finalAtomicConflictCount: number;
|
|
1480
|
-
};
|
|
1481
|
-
trace: {
|
|
1482
|
-
node: string;
|
|
1483
|
-
detail: string;
|
|
1484
|
-
data: {
|
|
1485
|
-
created: number;
|
|
1486
|
-
reactivated: number;
|
|
1487
|
-
existingSkipped: number;
|
|
1488
|
-
totalOutput: number;
|
|
1489
|
-
persistenceOutcome: {
|
|
1490
|
-
evaluatedCount: number;
|
|
1491
|
-
createdCount: number;
|
|
1492
|
-
reactivatedCount: number;
|
|
1493
|
-
sameTriggerDuplicateSuppressions: number;
|
|
1494
|
-
pairActiveNegotiationSuppressions: number;
|
|
1495
|
-
crossTriggerAllowedCount: number;
|
|
1496
|
-
finalAtomicConflictCount: number;
|
|
1497
|
-
};
|
|
1498
|
-
durationMs: number;
|
|
1499
|
-
};
|
|
1500
|
-
}[];
|
|
1501
|
-
error?: undefined;
|
|
1502
|
-
} | {
|
|
1503
|
-
opportunities: never[];
|
|
1504
|
-
existingBetweenActors: never[];
|
|
1505
|
-
error: string;
|
|
1506
|
-
trace: {
|
|
1507
|
-
node: string;
|
|
1508
|
-
detail: string;
|
|
1509
|
-
data: {
|
|
1510
|
-
error: string;
|
|
1511
|
-
};
|
|
1512
|
-
}[];
|
|
1513
|
-
persistenceOutcome?: undefined;
|
|
1514
|
-
};
|
|
1515
|
-
negotiate: {
|
|
1516
|
-
trace?: undefined;
|
|
1517
|
-
discoveryNegotiations?: undefined;
|
|
1518
|
-
discoverySummary?: undefined;
|
|
1519
|
-
} | {
|
|
1520
|
-
trace: {
|
|
1521
|
-
node: string;
|
|
1522
|
-
detail: string;
|
|
1523
|
-
data: {
|
|
1524
|
-
negotiateTimeoutMs: number;
|
|
1525
|
-
candidateCount: number;
|
|
1526
|
-
durationMs: number;
|
|
1527
|
-
};
|
|
1528
|
-
}[];
|
|
1529
|
-
discoveryNegotiations: {
|
|
1530
|
-
indexContext: string;
|
|
1531
|
-
outcome: {
|
|
1532
|
-
reasoning: string;
|
|
1533
|
-
hasOpportunity: boolean;
|
|
1534
|
-
reason?: "timeout" | "turn_cap" | "screened_out" | undefined;
|
|
1535
|
-
agreedRoles?: {
|
|
1536
|
-
userId: string;
|
|
1537
|
-
role: "agent" | "patient" | "peer";
|
|
1538
|
-
}[] | undefined;
|
|
1539
|
-
};
|
|
1540
|
-
counterpartyHint: string;
|
|
1541
|
-
counterpartyId: string;
|
|
1542
|
-
turns: {
|
|
1543
|
-
reasoning: string;
|
|
1544
|
-
action: "propose" | "accept" | "reject" | "counter" | "question" | "outreach" | "withdraw" | "decline" | "ask_user";
|
|
1545
|
-
suggestedRoles: {
|
|
1546
|
-
ownUser: "agent" | "patient" | "peer";
|
|
1547
|
-
otherUser: "agent" | "patient" | "peer";
|
|
1548
|
-
};
|
|
1549
|
-
}[];
|
|
1550
|
-
seedAssessmentScore?: number | undefined;
|
|
1551
|
-
}[];
|
|
1552
|
-
discoverySummary: import("../shared/schemas/discovery-question.schema.js").DiscoverySummary;
|
|
1553
|
-
} | {
|
|
1554
|
-
trace: ({
|
|
1555
|
-
node: string;
|
|
1556
|
-
detail: string;
|
|
1557
|
-
data: {
|
|
1558
|
-
userId: string;
|
|
1559
|
-
opportunityId: string | undefined;
|
|
1560
|
-
name: string;
|
|
1561
|
-
outcome: string;
|
|
1562
|
-
turns: number;
|
|
1563
|
-
};
|
|
1564
|
-
} | {
|
|
1565
|
-
node: string;
|
|
1566
|
-
detail: string;
|
|
1567
|
-
data: {
|
|
1568
|
-
durationMs: number;
|
|
1569
|
-
candidateCount: number;
|
|
1570
|
-
acceptedCount: number;
|
|
1571
|
-
otherCount: number;
|
|
1572
|
-
};
|
|
1573
|
-
})[];
|
|
1574
|
-
discoveryNegotiations: {
|
|
1575
|
-
indexContext: string;
|
|
1576
|
-
outcome: {
|
|
1577
|
-
reasoning: string;
|
|
1578
|
-
hasOpportunity: boolean;
|
|
1579
|
-
reason?: "timeout" | "turn_cap" | "screened_out" | undefined;
|
|
1580
|
-
agreedRoles?: {
|
|
1581
|
-
userId: string;
|
|
1582
|
-
role: "agent" | "patient" | "peer";
|
|
1583
|
-
}[] | undefined;
|
|
1584
|
-
};
|
|
1585
|
-
counterpartyHint: string;
|
|
1586
|
-
counterpartyId: string;
|
|
1587
|
-
turns: {
|
|
1588
|
-
reasoning: string;
|
|
1589
|
-
action: "propose" | "accept" | "reject" | "counter" | "question" | "outreach" | "withdraw" | "decline" | "ask_user";
|
|
1590
|
-
suggestedRoles: {
|
|
1591
|
-
ownUser: "agent" | "patient" | "peer";
|
|
1592
|
-
otherUser: "agent" | "patient" | "peer";
|
|
1593
|
-
};
|
|
1594
|
-
}[];
|
|
1595
|
-
seedAssessmentScore?: number | undefined;
|
|
1596
|
-
}[];
|
|
1597
|
-
discoverySummary: import("../shared/schemas/discovery-question.schema.js").DiscoverySummary;
|
|
1598
|
-
} | {
|
|
1599
|
-
trace: {
|
|
1600
|
-
node: string;
|
|
1601
|
-
detail: string;
|
|
1602
|
-
data: {
|
|
1603
|
-
durationMs: number;
|
|
1604
|
-
error: boolean;
|
|
1605
|
-
};
|
|
1606
|
-
}[];
|
|
1607
|
-
discoveryNegotiations: never[];
|
|
1608
|
-
discoverySummary: import("../shared/schemas/discovery-question.schema.js").DiscoverySummary;
|
|
1609
|
-
};
|
|
1610
|
-
}, unknown, unknown, []>;
|
|
1611
|
-
}
|