@indexnetwork/protocol 14.1.0-rc.469.1 → 14.2.1-rc.471.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +97 -0
- package/dist/{participant-agents → agents}/application/agent.tools.d.ts +2 -2
- package/dist/{participant-agents → agents}/application/agent.tools.js +2 -2
- package/dist/{participant-agents → agents}/application/index.d.ts +2 -2
- package/dist/{participant-agents → agents}/application/index.js +2 -2
- package/dist/{participant-agents → agents}/domain/agent.types.d.ts +1 -1
- package/dist/{participant-agents → agents}/domain/agent.types.js +1 -1
- package/dist/{participant-agents → agents}/domain/index.d.ts +4 -4
- package/dist/agents/index.d.ts +22 -0
- package/dist/agents/index.js +12 -0
- package/dist/{participant-agents → agents}/ports/agent.dispatcher.port.d.ts +3 -3
- package/dist/{participant-agents → agents}/ports/agent.repository.port.d.ts +1 -1
- package/dist/{participant-agents → agents}/ports/agent.repository.port.js +1 -1
- package/dist/{participant-agents → agents}/ports/agent.tools.port.d.ts +1 -1
- package/dist/{participant-agents → agents}/ports/agent.tools.port.js +1 -1
- package/dist/{participant-agents → agents}/ports/index.d.ts +1 -1
- package/dist/{participant-agents → agents}/ports/index.js +1 -1
- package/dist/chat/chat-streaming.types.d.ts +1 -1
- package/dist/chat/chat.agent.d.ts +1 -1
- package/dist/chat/chat.state.d.ts +1 -1
- package/dist/chat/chat.state.js +1 -1
- package/dist/chat/negotiator.prompt.d.ts +1 -1
- package/dist/chat/negotiator.prompt.js +1 -1
- package/dist/contacts/application/contact.inviter.js +1 -1
- package/dist/contacts/index.d.ts +9 -0
- package/dist/contacts/index.js +8 -0
- package/dist/{participant-context → contexts}/application/index.d.ts +10 -10
- package/dist/{participant-context → contexts}/application/index.js +10 -10
- package/dist/{participant-context → contexts}/domain/index.d.ts +5 -5
- package/dist/{participant-context → contexts}/domain/index.js +4 -4
- package/dist/contexts/index.d.ts +13 -0
- package/dist/contexts/index.js +14 -0
- package/dist/{participant-context → contexts}/ports/index.d.ts +1 -1
- package/dist/{participant-context → contexts}/ports/index.js +1 -1
- package/dist/{capabilities → contexts/ports}/participant-context.tools.port.d.ts +1 -1
- package/dist/enrichment/enrichment.graph.d.ts +1 -1
- package/dist/enrichment/enrichment.graph.js +1 -1
- package/dist/enrichment/enrichment.state.d.ts +1 -1
- package/dist/enrichment/enrichment.tools.d.ts +1 -1
- package/dist/index.d.ts +125 -125
- package/dist/index.js +85 -85
- package/dist/integrations/index.d.ts +10 -0
- package/dist/integrations/index.js +8 -0
- package/dist/{signals → intents}/application/index.d.ts +2 -2
- package/dist/{signals → intents}/application/index.js +2 -2
- package/dist/{signals → intents}/application/intent.clarifier.js +1 -1
- package/dist/{signals → intents}/application/intent.graph.d.ts +2 -2
- package/dist/{signals → intents}/application/intent.tools.d.ts +1 -1
- package/dist/{signals → intents}/domain/index.d.ts +1 -1
- package/dist/{signals → intents}/domain/index.js +1 -1
- package/dist/{signals → intents}/domain/intent.state.d.ts +1 -1
- package/dist/intents/index.d.ts +18 -0
- package/dist/intents/index.js +14 -0
- package/dist/{signals → intents}/ports/index.d.ts +1 -1
- package/dist/{signals → intents}/ports/index.js +1 -1
- package/dist/{capabilities → intents/ports}/signals.tools.port.d.ts +1 -1
- package/dist/maintenance/maintenance.graph.d.ts +6 -6
- package/dist/maintenance/maintenance.graph.js +4 -4
- package/dist/maintenance/maintenance.state.d.ts +1 -1
- package/dist/mcp/mcp.authorization-policy.d.ts +8 -8
- package/dist/mcp/mcp.server.js +2 -2
- package/dist/{negotiation → negotiations}/application/index.d.ts +2 -2
- package/dist/{negotiation → negotiations}/application/index.js +2 -2
- package/dist/{negotiation → negotiations}/application/negotiation.graph.d.ts +2 -2
- package/dist/{negotiation → negotiations}/domain/index.d.ts +9 -9
- package/dist/{negotiation → negotiations}/domain/index.js +9 -9
- package/dist/{negotiation → negotiations}/domain/negotiation.question-safety.js +1 -1
- package/dist/{negotiation → negotiations}/domain/negotiation.screen.contracts.d.ts +3 -3
- package/dist/{negotiation → negotiations}/domain/negotiation.screen.contracts.js +3 -3
- package/dist/{negotiation → negotiations}/domain/negotiation.stance.contracts.d.ts +1 -1
- package/dist/{negotiation → negotiations}/domain/negotiation.stance.contracts.js +1 -1
- package/dist/{negotiation → negotiations}/domain/negotiation.state.d.ts +1 -1
- package/dist/{negotiation → negotiations}/domain/negotiation.state.js +1 -1
- package/dist/negotiations/index.d.ts +12 -0
- package/dist/negotiations/index.js +9 -0
- package/dist/{negotiation → negotiations}/ports/index.d.ts +1 -1
- package/dist/{negotiation → negotiations}/ports/index.js +1 -1
- package/dist/{communities → networks}/application/index.d.ts +3 -3
- package/dist/{communities → networks}/application/index.js +3 -3
- package/dist/{communities → networks}/application/indexer.graph.d.ts +1 -1
- package/dist/{communities → networks}/application/indexer.state.d.ts +1 -1
- package/dist/{communities → networks}/application/network.tools.d.ts +1 -1
- package/dist/{communities → networks}/domain/index.d.ts +2 -2
- package/dist/{communities → networks}/domain/index.js +2 -2
- package/dist/networks/index.d.ts +9 -0
- package/dist/networks/index.js +8 -0
- package/dist/{capabilities → networks/ports}/communities.tools.port.d.ts +1 -1
- package/dist/{communities → networks}/ports/index.d.ts +3 -3
- package/dist/{communities → networks}/ports/index.js +2 -2
- package/dist/{opportunity → opportunities}/application/index.d.ts +1 -1
- package/dist/{opportunity → opportunities}/application/index.js +1 -1
- package/dist/{opportunity → opportunities}/application/negotiation-context.loader.d.ts +1 -1
- package/dist/{opportunity → opportunities}/application/opportunity.card-presentation.js +1 -1
- package/dist/{opportunity → opportunities}/application/opportunity.discovery-negotiation-summary.js +1 -1
- package/dist/{opportunity → opportunities}/application/opportunity.evaluator.js +1 -1
- package/dist/{opportunity → opportunities}/application/opportunity.graph.d.ts +3 -3
- package/dist/{opportunity → opportunities}/application/opportunity.graph.js +3 -3
- package/dist/{opportunity → opportunities}/application/opportunity.owner-approval.d.ts +1 -1
- package/dist/{opportunity → opportunities}/application/opportunity.owner-provenance.js +1 -1
- package/dist/{opportunity → opportunities}/application/opportunity.presenter.js +1 -1
- package/dist/{opportunity → opportunities}/application/opportunity.tools.js +1 -1
- package/dist/{opportunity → opportunities}/discriminator/discriminator.adjustments.d.ts +1 -1
- package/dist/{opportunity → opportunities}/discriminator/discriminator.push.d.ts +1 -1
- package/dist/{opportunity → opportunities}/discriminator/discriminator.question.d.ts +1 -1
- package/dist/{opportunity → opportunities}/domain/index.d.ts +2 -2
- package/dist/{opportunity → opportunities}/domain/index.js +2 -2
- package/dist/{opportunity → opportunities}/domain/negotiation-summary.builder.d.ts +1 -1
- package/dist/{opportunity → opportunities}/domain/opportunity.presentation.js +1 -1
- package/dist/{opportunity → opportunities}/domain/opportunity.safe-presentation.js +1 -1
- package/dist/{opportunity → opportunities}/domain/opportunity.state.d.ts +1 -1
- package/dist/opportunities/index.d.ts +54 -0
- package/dist/opportunities/index.js +39 -0
- package/dist/{opportunity → opportunities}/ports/index.d.ts +1 -1
- package/dist/{opportunity → opportunities}/ports/opportunity.tools.port.d.ts +1 -1
- package/dist/{opportunity → opportunities}/radar/radar.graph.d.ts +1 -1
- package/dist/{opportunity → opportunities}/radar/radar.state.d.ts +1 -1
- package/dist/{premise → premises}/premise.graph.d.ts +1 -1
- package/dist/{premise → premises}/premise.state.d.ts +1 -1
- package/dist/{premise → premises}/premise.tools.d.ts +1 -1
- package/dist/questions/application/question.input.d.ts +1 -1
- package/dist/questions/application/question.input.js +1 -1
- package/dist/questions/application/question.presets.js +2 -2
- package/dist/questions/domain/question.schema.d.ts +3 -3
- package/dist/questions/domain/question.schema.js +2 -6
- package/dist/questions/index.d.ts +13 -0
- package/dist/questions/index.js +2 -0
- package/dist/shared/agent/tool.factory.d.ts +1 -1
- package/dist/shared/agent/tool.factory.js +19 -16
- package/dist/shared/agent/tool.helpers.d.ts +5 -5
- package/dist/shared/agent/tool.registry.d.ts +1 -1
- package/dist/shared/agent/tool.registry.js +9 -9
- package/dist/shared/assignment/network-assignment.policy.d.ts +1 -1
- package/dist/shared/assignment/network-assignment.policy.js +1 -1
- package/dist/shared/interfaces/agent-dispatcher.interface.d.ts +3 -3
- package/dist/shared/interfaces/agent-dispatcher.interface.js +1 -1
- package/dist/shared/schemas/mcp-auth.schema.d.ts +4 -4
- package/dist/shared/schemas/negotiation-state.schema.d.ts +2 -2
- package/dist/shared/schemas/negotiation-state.schema.js +2 -2
- package/dist/shared/schemas/underspecification.schema.d.ts +13 -0
- package/dist/shared/schemas/underspecification.schema.js +16 -0
- package/package.json +1 -1
- package/dist/capabilities/communities.facade.d.ts +0 -13
- package/dist/capabilities/communities.facade.js +0 -12
- package/dist/capabilities/contacts.facade.d.ts +0 -9
- package/dist/capabilities/contacts.facade.js +0 -8
- package/dist/capabilities/integrations.facade.d.ts +0 -8
- package/dist/capabilities/integrations.facade.js +0 -7
- package/dist/capabilities/interaction-composition.facade.d.ts +0 -10
- package/dist/capabilities/interaction-composition.facade.js +0 -9
- package/dist/capabilities/negotiation.discovery.facade.d.ts +0 -9
- package/dist/capabilities/negotiation.discovery.facade.js +0 -7
- package/dist/capabilities/negotiation.facade.d.ts +0 -26
- package/dist/capabilities/negotiation.facade.js +0 -18
- package/dist/capabilities/negotiation.memory.facade.d.ts +0 -6
- package/dist/capabilities/negotiation.memory.facade.js +0 -5
- package/dist/capabilities/negotiation.questions.facade.d.ts +0 -6
- package/dist/capabilities/negotiation.questions.facade.js +0 -5
- package/dist/capabilities/negotiation.state.facade.d.ts +0 -5
- package/dist/capabilities/negotiation.state.facade.js +0 -1
- package/dist/capabilities/negotiation.summary.facade.d.ts +0 -5
- package/dist/capabilities/negotiation.summary.facade.js +0 -5
- package/dist/capabilities/opportunities.facade.d.ts +0 -56
- package/dist/capabilities/opportunities.facade.js +0 -55
- package/dist/capabilities/opportunities.safety.facade.d.ts +0 -2
- package/dist/capabilities/opportunities.safety.facade.js +0 -2
- package/dist/capabilities/participant-agents.debug.facade.d.ts +0 -2
- package/dist/capabilities/participant-agents.debug.facade.js +0 -1
- package/dist/capabilities/participant-agents.facade.d.ts +0 -34
- package/dist/capabilities/participant-agents.facade.js +0 -34
- package/dist/capabilities/participant-agents.tools.facade.d.ts +0 -8
- package/dist/capabilities/participant-agents.tools.facade.js +0 -8
- package/dist/capabilities/participant-context.facade.d.ts +0 -13
- package/dist/capabilities/participant-context.facade.js +0 -14
- package/dist/capabilities/questions.enqueue.facade.d.ts +0 -5
- package/dist/capabilities/questions.enqueue.facade.js +0 -1
- package/dist/capabilities/questions.facade.d.ts +0 -8
- package/dist/capabilities/questions.facade.js +0 -7
- package/dist/capabilities/questions.runtime.facade.d.ts +0 -5
- package/dist/capabilities/questions.runtime.facade.js +0 -5
- package/dist/capabilities/signals.facade.d.ts +0 -19
- package/dist/capabilities/signals.facade.js +0 -17
- package/dist/capabilities/signals.indexing.facade.d.ts +0 -12
- package/dist/capabilities/signals.indexing.facade.js +0 -11
- package/dist/communities/public/index.d.ts +0 -30
- package/dist/communities/public/index.js +0 -33
- package/dist/contacts/public/index.d.ts +0 -36
- package/dist/contacts/public/index.js +0 -33
- package/dist/integrations/public/index.d.ts +0 -37
- package/dist/integrations/public/index.js +0 -34
- package/dist/negotiation/public/index.d.ts +0 -63
- package/dist/negotiation/public/index.js +0 -64
- package/dist/opportunity/public/index.d.ts +0 -61
- package/dist/opportunity/public/index.js +0 -54
- package/dist/participant-agents/public/index.d.ts +0 -39
- package/dist/participant-agents/public/index.js +0 -36
- package/dist/participant-context/index.d.ts +0 -16
- package/dist/participant-context/index.js +0 -16
- package/dist/participant-context/public/index.d.ts +0 -48
- package/dist/participant-context/public/index.js +0 -55
- package/dist/questions/public/index.d.ts +0 -47
- package/dist/questions/public/index.js +0 -49
- package/dist/signals/public/index.d.ts +0 -15
- package/dist/signals/public/index.js +0 -16
- package/dist/{participant-agents → agents}/domain/index.js +0 -0
- package/dist/{participant-agents → agents}/ports/agent.dispatcher.port.js +0 -0
- package/dist/{context → contexts}/context.generator.d.ts +0 -0
- package/dist/{context → contexts}/context.generator.js +0 -0
- package/dist/{capabilities → contexts/ports}/participant-context.tools.port.js +0 -0
- package/dist/{signals → intents}/application/intake.orchestrator.d.ts +0 -0
- package/dist/{signals → intents}/application/intake.orchestrator.js +0 -0
- package/dist/{signals → intents}/application/intake.pack.generator.d.ts +0 -0
- package/dist/{signals → intents}/application/intake.pack.generator.js +0 -0
- package/dist/{signals → intents}/application/intent.clarifier.d.ts +0 -0
- package/dist/{signals → intents}/application/intent.graph.js +0 -0
- package/dist/{signals → intents}/application/intent.indexer.d.ts +0 -0
- package/dist/{signals → intents}/application/intent.indexer.js +0 -0
- package/dist/{signals → intents}/application/intent.inferrer.d.ts +0 -0
- package/dist/{signals → intents}/application/intent.inferrer.js +0 -0
- package/dist/{signals → intents}/application/intent.reconciler.d.ts +0 -0
- package/dist/{signals → intents}/application/intent.reconciler.js +0 -0
- package/dist/{signals → intents}/application/intent.tools.js +0 -0
- package/dist/{signals → intents}/application/intent.verifier.d.ts +0 -0
- package/dist/{signals → intents}/application/intent.verifier.js +0 -0
- package/dist/{signals → intents}/domain/intent.proposal.d.ts +0 -0
- package/dist/{signals → intents}/domain/intent.proposal.js +0 -0
- package/dist/{signals → intents}/domain/intent.state.js +0 -0
- package/dist/{signals → intents}/domain/signal.specificity.d.ts +0 -0
- package/dist/{signals → intents}/domain/signal.specificity.js +0 -0
- package/dist/{capabilities → intents/ports}/signals.tools.port.js +0 -0
- package/dist/{negotiation → negotiations}/application/insight.generator.d.ts +0 -0
- package/dist/{negotiation → negotiations}/application/insight.generator.js +0 -0
- package/dist/{negotiation → negotiations}/application/negotiation.agent.d.ts +0 -0
- package/dist/{negotiation → negotiations}/application/negotiation.agent.js +0 -0
- package/dist/{negotiation → negotiations}/application/negotiation.detail-reader.d.ts +0 -0
- package/dist/{negotiation → negotiations}/application/negotiation.detail-reader.js +0 -0
- package/dist/{negotiation → negotiations}/application/negotiation.graph.js +0 -0
- package/dist/{negotiation → negotiations}/application/negotiation.reflect.d.ts +0 -0
- package/dist/{negotiation → negotiations}/application/negotiation.reflect.js +0 -0
- package/dist/{negotiation → negotiations}/application/negotiation.screen.d.ts +0 -0
- package/dist/{negotiation → negotiations}/application/negotiation.screen.js +0 -0
- package/dist/{negotiation → negotiations}/application/negotiation.summarizer.d.ts +0 -0
- package/dist/{negotiation → negotiations}/application/negotiation.summarizer.js +0 -0
- package/dist/{negotiation → negotiations}/application/negotiation.tools.d.ts +0 -0
- package/dist/{negotiation → negotiations}/application/negotiation.tools.js +0 -0
- package/dist/{negotiation → negotiations}/domain/negotiation.consultation-policy.d.ts +0 -0
- package/dist/{negotiation → negotiations}/domain/negotiation.consultation-policy.js +0 -0
- package/dist/{negotiation → negotiations}/domain/negotiation.deadlock.contracts.d.ts +0 -0
- package/dist/{negotiation → negotiations}/domain/negotiation.deadlock.contracts.js +0 -0
- package/dist/{negotiation → negotiations}/domain/negotiation.deadlock.d.ts +0 -0
- package/dist/{negotiation → negotiations}/domain/negotiation.deadlock.js +0 -0
- package/dist/{negotiation → negotiations}/domain/negotiation.expected-speaker.d.ts +0 -0
- package/dist/{negotiation → negotiations}/domain/negotiation.expected-speaker.js +0 -0
- package/dist/{negotiation → negotiations}/domain/negotiation.hermes-contract.d.ts +0 -0
- package/dist/{negotiation → negotiations}/domain/negotiation.hermes-contract.js +0 -0
- package/dist/{negotiation → negotiations}/domain/negotiation.intent-snapshot-provenance.d.ts +0 -0
- package/dist/{negotiation → negotiations}/domain/negotiation.intent-snapshot-provenance.js +0 -0
- package/dist/{negotiation → negotiations}/domain/negotiation.lifecycle-narration.d.ts +0 -0
- package/dist/{negotiation → negotiations}/domain/negotiation.lifecycle-narration.js +0 -0
- package/dist/{negotiation → negotiations}/domain/negotiation.memory.d.ts +0 -0
- package/dist/{negotiation → negotiations}/domain/negotiation.memory.js +0 -0
- package/dist/{negotiation → negotiations}/domain/negotiation.protocol.d.ts +0 -0
- package/dist/{negotiation → negotiations}/domain/negotiation.protocol.js +0 -0
- package/dist/{negotiation → negotiations}/domain/negotiation.question-safety.d.ts +0 -0
- package/dist/{negotiation → negotiations}/domain/negotiation.task-lock-policy.d.ts +0 -0
- package/dist/{negotiation → negotiations}/domain/negotiation.task-lock-policy.js +0 -0
- package/dist/{negotiation → negotiations}/domain/negotiation.turn-cap.d.ts +0 -0
- package/dist/{negotiation → negotiations}/domain/negotiation.turn-cap.js +0 -0
- package/dist/{negotiation → negotiations}/negotiation.attribution.d.ts +0 -0
- package/dist/{negotiation → negotiations}/negotiation.attribution.js +0 -0
- package/dist/{negotiation → negotiations}/ports/negotiation.tools.port.d.ts +0 -0
- package/dist/{negotiation → negotiations}/ports/negotiation.tools.port.js +0 -0
- package/dist/{communities → networks}/application/indexer.graph.js +0 -0
- package/dist/{communities → networks}/application/indexer.state.js +0 -0
- package/dist/{communities → networks}/application/membership.graph.d.ts +0 -0
- package/dist/{communities → networks}/application/membership.graph.js +0 -0
- package/dist/{communities → networks}/application/network.graph.d.ts +0 -0
- package/dist/{communities → networks}/application/network.graph.js +0 -0
- package/dist/{communities → networks}/application/network.recommender.d.ts +0 -0
- package/dist/{communities → networks}/application/network.recommender.js +0 -0
- package/dist/{communities → networks}/application/network.tools.js +0 -0
- package/dist/{communities → networks}/domain/membership.state.d.ts +0 -0
- package/dist/{communities → networks}/domain/membership.state.js +0 -0
- package/dist/{communities → networks}/domain/network.state.d.ts +0 -0
- package/dist/{communities → networks}/domain/network.state.js +0 -0
- package/dist/{capabilities → networks/ports}/communities.tools.port.js +0 -0
- package/dist/{opportunity → opportunities}/application/delivery-card.cache.d.ts +0 -0
- package/dist/{opportunity → opportunities}/application/delivery-card.cache.js +0 -0
- package/dist/{opportunity → opportunities}/application/negotiation-context.loader.js +0 -0
- package/dist/{opportunity → opportunities}/application/opportunity.card-presentation.d.ts +0 -0
- package/dist/{opportunity → opportunities}/application/opportunity.discovery-negotiation-summary.d.ts +0 -0
- package/dist/{opportunity → opportunities}/application/opportunity.enricher.d.ts +0 -0
- package/dist/{opportunity → opportunities}/application/opportunity.enricher.js +0 -0
- package/dist/{opportunity → opportunities}/application/opportunity.evaluator.d.ts +0 -0
- package/dist/{opportunity → opportunities}/application/opportunity.existing-negotiation.d.ts +0 -0
- package/dist/{opportunity → opportunities}/application/opportunity.existing-negotiation.js +0 -0
- package/dist/{opportunity → opportunities}/application/opportunity.feed-selection.d.ts +0 -0
- package/dist/{opportunity → opportunities}/application/opportunity.feed-selection.js +0 -0
- package/dist/{opportunity → opportunities}/application/opportunity.introducer-feature.d.ts +0 -0
- package/dist/{opportunity → opportunities}/application/opportunity.introducer-feature.js +0 -0
- package/dist/{opportunity → opportunities}/application/opportunity.introducer.d.ts +0 -0
- package/dist/{opportunity → opportunities}/application/opportunity.introducer.js +0 -0
- package/dist/{opportunity → opportunities}/application/opportunity.lifecycle.d.ts +0 -0
- package/dist/{opportunity → opportunities}/application/opportunity.lifecycle.js +0 -0
- package/dist/{opportunity → opportunities}/application/opportunity.newborn-stamping.d.ts +0 -0
- package/dist/{opportunity → opportunities}/application/opportunity.newborn-stamping.js +0 -0
- package/dist/{opportunity → opportunities}/application/opportunity.owner-approval.js +0 -0
- package/dist/{opportunity → opportunities}/application/opportunity.owner-provenance.d.ts +0 -0
- package/dist/{opportunity → opportunities}/application/opportunity.pending-questions.d.ts +0 -0
- package/dist/{opportunity → opportunities}/application/opportunity.pending-questions.js +0 -0
- package/dist/{opportunity → opportunities}/application/opportunity.persist.d.ts +0 -0
- package/dist/{opportunity → opportunities}/application/opportunity.persist.js +0 -0
- package/dist/{opportunity → opportunities}/application/opportunity.persistence-admission.d.ts +0 -0
- package/dist/{opportunity → opportunities}/application/opportunity.persistence-admission.js +0 -0
- package/dist/{opportunity → opportunities}/application/opportunity.presenter.d.ts +6 -6
- /package/dist/{opportunity → opportunities}/application/opportunity.tools.d.ts +0 -0
- /package/dist/{opportunity → opportunities}/application/opportunity.update-admission.d.ts +0 -0
- /package/dist/{opportunity → opportunities}/application/opportunity.update-admission.js +0 -0
- /package/dist/{opportunity → opportunities}/discovery.env.d.ts +0 -0
- /package/dist/{opportunity → opportunities}/discovery.env.js +0 -0
- /package/dist/{opportunity → opportunities}/discriminator/discriminator.adjustments.js +0 -0
- /package/dist/{opportunity → opportunities}/discriminator/discriminator.assigner.d.ts +0 -0
- /package/dist/{opportunity → opportunities}/discriminator/discriminator.assigner.js +0 -0
- /package/dist/{opportunity → opportunities}/discriminator/discriminator.env.d.ts +0 -0
- /package/dist/{opportunity → opportunities}/discriminator/discriminator.env.js +0 -0
- /package/dist/{opportunity → opportunities}/discriminator/discriminator.miner.d.ts +0 -0
- /package/dist/{opportunity → opportunities}/discriminator/discriminator.miner.js +0 -0
- /package/dist/{opportunity → opportunities}/discriminator/discriminator.push.js +0 -0
- /package/dist/{opportunity → opportunities}/discriminator/discriminator.question.js +0 -0
- /package/dist/{opportunity → opportunities}/discriminator/discriminator.scorer.d.ts +0 -0
- /package/dist/{opportunity → opportunities}/discriminator/discriminator.scorer.js +0 -0
- /package/dist/{opportunity → opportunities}/discriminator/discriminator.shadow.d.ts +0 -0
- /package/dist/{opportunity → opportunities}/discriminator/discriminator.shadow.js +0 -0
- /package/dist/{opportunity → opportunities}/discriminator/discriminator.types.d.ts +0 -0
- /package/dist/{opportunity → opportunities}/discriminator/discriminator.types.js +0 -0
- /package/dist/{opportunity → opportunities}/domain/negotiation-summary.builder.js +0 -0
- /package/dist/{opportunity → opportunities}/domain/opportunity.actor.d.ts +0 -0
- /package/dist/{opportunity → opportunities}/domain/opportunity.actor.js +0 -0
- /package/dist/{opportunity → opportunities}/domain/opportunity.evidence.d.ts +0 -0
- /package/dist/{opportunity → opportunities}/domain/opportunity.evidence.js +0 -0
- /package/dist/{opportunity → opportunities}/domain/opportunity.labels.d.ts +0 -0
- /package/dist/{opportunity → opportunities}/domain/opportunity.labels.js +0 -0
- /package/dist/{opportunity → opportunities}/domain/opportunity.presentation-cache.d.ts +0 -0
- /package/dist/{opportunity → opportunities}/domain/opportunity.presentation-cache.js +0 -0
- /package/dist/{opportunity → opportunities}/domain/opportunity.presentation.d.ts +0 -0
- /package/dist/{opportunity → opportunities}/domain/opportunity.safe-presentation.d.ts +0 -0
- /package/dist/{opportunity → opportunities}/domain/opportunity.state.js +0 -0
- /package/dist/{opportunity → opportunities}/domain/opportunity.utils.d.ts +0 -0
- /package/dist/{opportunity → opportunities}/domain/opportunity.utils.js +0 -0
- /package/dist/{opportunity → opportunities}/negotiation-evidence/negotiation-evidence.env.d.ts +0 -0
- /package/dist/{opportunity → opportunities}/negotiation-evidence/negotiation-evidence.env.js +0 -0
- /package/dist/{opportunity → opportunities}/negotiation-evidence/negotiation-evidence.extractor.d.ts +0 -0
- /package/dist/{opportunity → opportunities}/negotiation-evidence/negotiation-evidence.extractor.js +0 -0
- /package/dist/{opportunity → opportunities}/negotiation-evidence/negotiation-evidence.miner.d.ts +0 -0
- /package/dist/{opportunity → opportunities}/negotiation-evidence/negotiation-evidence.miner.js +0 -0
- /package/dist/{opportunity → opportunities}/negotiation-evidence/negotiation-evidence.shadow.d.ts +0 -0
- /package/dist/{opportunity → opportunities}/negotiation-evidence/negotiation-evidence.shadow.js +0 -0
- /package/dist/{opportunity → opportunities}/negotiation-evidence/negotiation-evidence.types.d.ts +0 -0
- /package/dist/{opportunity → opportunities}/negotiation-evidence/negotiation-evidence.types.js +0 -0
- /package/dist/{opportunity → opportunities}/negotiation-evidence/negotiation-evidence.verifier.d.ts +0 -0
- /package/dist/{opportunity → opportunities}/negotiation-evidence/negotiation-evidence.verifier.js +0 -0
- /package/dist/{opportunity → opportunities}/outcome/outcome.env.d.ts +0 -0
- /package/dist/{opportunity → opportunities}/outcome/outcome.env.js +0 -0
- /package/dist/{opportunity → opportunities}/outcome/outcome.hypotheses.d.ts +0 -0
- /package/dist/{opportunity → opportunities}/outcome/outcome.hypotheses.js +0 -0
- /package/dist/{opportunity → opportunities}/outcome/outcome.shadow.d.ts +0 -0
- /package/dist/{opportunity → opportunities}/outcome/outcome.shadow.js +0 -0
- /package/dist/{opportunity → opportunities}/outcome/outcome.types.d.ts +0 -0
- /package/dist/{opportunity → opportunities}/outcome/outcome.types.js +0 -0
- /package/dist/{opportunity → opportunities}/ports/index.js +0 -0
- /package/dist/{opportunity → opportunities}/ports/opportunity.tools.port.js +0 -0
- /package/dist/{opportunity → opportunities}/radar/radar.graph.js +0 -0
- /package/dist/{opportunity → opportunities}/radar/radar.health.d.ts +0 -0
- /package/dist/{opportunity → opportunities}/radar/radar.health.js +0 -0
- /package/dist/{opportunity → opportunities}/radar/radar.state.js +0 -0
- /package/dist/{premise → premises}/premise.analyzer.d.ts +0 -0
- /package/dist/{premise → premises}/premise.analyzer.js +0 -0
- /package/dist/{premise → premises}/premise.decomposer.d.ts +0 -0
- /package/dist/{premise → premises}/premise.decomposer.js +0 -0
- /package/dist/{premise → premises}/premise.graph.js +0 -0
- /package/dist/{premise → premises}/premise.indexer.d.ts +0 -0
- /package/dist/{premise → premises}/premise.indexer.js +0 -0
- /package/dist/{premise → premises}/premise.state.js +0 -0
- /package/dist/{premise → premises}/premise.tools.js +0 -0
- /package/dist/{opportunity/domain/opportunity.claim-safety.d.ts → shared/utils/claim-safety.d.ts} +0 -0
- /package/dist/{opportunity/domain/opportunity.claim-safety.js → shared/utils/claim-safety.js} +0 -0
|
@@ -8,6 +8,8 @@
|
|
|
8
8
|
* IND-547: canonical question schema in the questions domain layer.
|
|
9
9
|
*/
|
|
10
10
|
import { z } from "zod";
|
|
11
|
+
import { UnderspecificationTypeSchema, type UnderspecificationType } from "../../shared/schemas/underspecification.schema.js";
|
|
12
|
+
export { UnderspecificationTypeSchema };
|
|
11
13
|
export declare const QuestionOptionSchema: z.ZodObject<{
|
|
12
14
|
/** Display text. Suffix " (Recommended)" on the safest path; list it first. */
|
|
13
15
|
label: z.ZodString;
|
|
@@ -75,8 +77,6 @@ export declare const QuestionSchema: z.ZodObject<{
|
|
|
75
77
|
multiSelect: boolean;
|
|
76
78
|
evidence?: string | null | undefined;
|
|
77
79
|
}>;
|
|
78
|
-
/** Canonical QUD repair categories for underspecified intents/questions. */
|
|
79
|
-
export declare const UnderspecificationTypeSchema: z.ZodEnum<["missing_constituent", "missing_constraint", "open_alternative_set"]>;
|
|
80
80
|
export declare const QuestionStrategySchema: z.ZodEnum<["refine_intent", "surface_missing_detail", "open_adjacent_thread", "reflective_summary", "surface_emergent_knowledge"]>;
|
|
81
81
|
export declare const QuestionWithStrategySchema: z.ZodObject<{
|
|
82
82
|
/** ≤12 chars. Noun of the decision domain — e.g. "Stage", "Timing", "Role". */
|
|
@@ -234,7 +234,7 @@ export declare const QuestionGeneratorResponseSchema: z.ZodObject<{
|
|
|
234
234
|
}>;
|
|
235
235
|
export type QuestionOption = z.infer<typeof QuestionOptionSchema>;
|
|
236
236
|
export type Question = z.infer<typeof QuestionSchema>;
|
|
237
|
-
export type UnderspecificationType
|
|
237
|
+
export type { UnderspecificationType };
|
|
238
238
|
export type QuestionStrategy = z.infer<typeof QuestionStrategySchema>;
|
|
239
239
|
export type QuestionWithStrategy = z.infer<typeof QuestionWithStrategySchema>;
|
|
240
240
|
export type QuestionGeneratorResponse = z.infer<typeof QuestionGeneratorResponseSchema>;
|
|
@@ -8,6 +8,8 @@
|
|
|
8
8
|
* IND-547: canonical question schema in the questions domain layer.
|
|
9
9
|
*/
|
|
10
10
|
import { z } from "zod";
|
|
11
|
+
import { UnderspecificationTypeSchema } from "../../shared/schemas/underspecification.schema.js";
|
|
12
|
+
export { UnderspecificationTypeSchema };
|
|
11
13
|
export const QuestionOptionSchema = z.object({
|
|
12
14
|
/** Display text. Suffix " (Recommended)" on the safest path; list it first. */
|
|
13
15
|
label: z.string().min(1).max(120),
|
|
@@ -40,12 +42,6 @@ export const QuestionSchema = z.object({
|
|
|
40
42
|
*/
|
|
41
43
|
evidence: z.string().min(1).max(160).nullable().optional().transform((value) => value ?? undefined),
|
|
42
44
|
});
|
|
43
|
-
/** Canonical QUD repair categories for underspecified intents/questions. */
|
|
44
|
-
export const UnderspecificationTypeSchema = z.enum([
|
|
45
|
-
"missing_constituent",
|
|
46
|
-
"missing_constraint",
|
|
47
|
-
"open_alternative_set",
|
|
48
|
-
]);
|
|
49
45
|
export const QuestionStrategySchema = z.enum([
|
|
50
46
|
"refine_intent",
|
|
51
47
|
"surface_missing_detail",
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* questions — the capability's sole cross-capability surface.
|
|
3
|
+
*
|
|
4
|
+
* Anything outside this capability imports from here and nowhere else.
|
|
5
|
+
* Supersedes the capabilities/*.facade.ts + questions/public/ pair; the export
|
|
6
|
+
* list is the union of the facades it replaces, so the contract is unchanged.
|
|
7
|
+
*/
|
|
8
|
+
export type { QuestionerEnqueueFn, } from "./application/question.input.js";
|
|
9
|
+
export { createAskUserQuestionTools, createQuestionerTools, INTENT_QUESTION_DAILY_CAP_DEFAULT, INTENT_QUESTION_DAILY_WINDOW_HOURS, intentQuestionDailyCap, isQuestionerEnabled, isUptakeGuardEnabled, isValidQuestionerInputContract, QuestionerAgent, uptakeAuthorityThreshold, } from "./application/index.js";
|
|
10
|
+
export type { InflightQuestionerInput, PoolDiscoveryContext, PostStallQuestionerInput, QuestionerEnqueuePayload, QuestionerInput, RecoveryQuestionerInput, UptakeQuestionerInput, } from "./application/index.js";
|
|
11
|
+
export type { AskUserQuestionToolDeps, ChatQuestionsHost, PersistableQuestion, PersistedQuestion, QuestionerDatabase, QuestionerToolDeps, QuestionFilters, } from "./ports/index.js";
|
|
12
|
+
export { NegotiationQuestionCandidateSchema, NegotiationQuestionProvenanceSchema, UnderspecificationTypeSchema, } from "./domain/index.js";
|
|
13
|
+
export type { NegotiationQuestionCandidate, QuestionOption, NegotiationQuestionProvenance, NegotiationQuestionPurpose, Question, QuestionGenerationResult, QuestionPoolDiscriminator, QuestionPoolPush, QuestionPoolPushRequestReason, QuestionPoolPushRequestStatus, QuestionPoolSnapshot, QuestionPurpose, QuestionRecoverySnapshot, QuestionStrategy, QuestionVoidedReason, UnderspecificationType, } from "./domain/index.js";
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
export { createAskUserQuestionTools, createQuestionerTools, INTENT_QUESTION_DAILY_CAP_DEFAULT, INTENT_QUESTION_DAILY_WINDOW_HOURS, intentQuestionDailyCap, isQuestionerEnabled, isUptakeGuardEnabled, isValidQuestionerInputContract, QuestionerAgent, uptakeAuthorityThreshold, } from "./application/index.js";
|
|
2
|
+
export { NegotiationQuestionCandidateSchema, NegotiationQuestionProvenanceSchema, UnderspecificationTypeSchema, } from "./domain/index.js";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { type ToolContext, type ResolvedToolContext } from "./tool.helpers.js";
|
|
2
|
-
import type { OpportunityOwnerApprovalDeps } from "../../
|
|
2
|
+
import type { OpportunityOwnerApprovalDeps } from "../../opportunities/ports/opportunity.tools.port.js";
|
|
3
3
|
export type { ToolContext, ResolvedToolContext, ProtocolDeps } from "./tool.helpers.js";
|
|
4
4
|
export type { ToolDeps } from "./tool.helpers.js";
|
|
5
5
|
/**
|
|
@@ -1,30 +1,33 @@
|
|
|
1
1
|
import { tool } from "@langchain/core/tools";
|
|
2
|
-
import { IntentGraphFactory } from "../../
|
|
2
|
+
import { IntentGraphFactory } from "../../intents/application/intent.graph.js";
|
|
3
3
|
import { EnrichmentGraphFactory } from "../../enrichment/enrichment.graph.js";
|
|
4
|
-
import { OpportunityGraphFactory } from "../../
|
|
4
|
+
import { OpportunityGraphFactory } from "../../opportunities/index.js";
|
|
5
5
|
import { HydeGraphFactory } from "../hyde/hyde.graph.js";
|
|
6
6
|
import { HydeGenerator } from "../hyde/hyde.generator.js";
|
|
7
7
|
import { LensInferrer } from "../hyde/lens.inferrer.js";
|
|
8
|
-
import { NetworkGraphFactory, NetworkMembershipGraphFactory, IntentNetworkGraphFactory } from "../../
|
|
9
|
-
import { IntentIndexer } from "../../
|
|
10
|
-
import { NegotiationGraphFactory } from "../../
|
|
11
|
-
import { PremiseGraphFactory } from "../../
|
|
8
|
+
import { NetworkGraphFactory, NetworkMembershipGraphFactory, IntentNetworkGraphFactory } from "../../networks/index.js";
|
|
9
|
+
import { IntentIndexer } from "../../intents/application/intent.indexer.js";
|
|
10
|
+
import { NegotiationGraphFactory } from "../../negotiations/index.js";
|
|
11
|
+
import { PremiseGraphFactory } from "../../premises/premise.graph.js";
|
|
12
12
|
import { protocolLogger } from "../observability/protocol.logger.js";
|
|
13
13
|
import { resolveChatContext, error, redactSensitiveFields } from "./tool.helpers.js";
|
|
14
14
|
import { deriveAllowedNetworkIds, focusedIntentId, scopeFromNetworkId } from "./tool.scope.js";
|
|
15
15
|
import { invokeToolRuntime, toolRuntimeErrorToResult } from "./tool.runtime.js";
|
|
16
16
|
import { createEnrichmentTools } from "../../enrichment/enrichment.tools.js";
|
|
17
|
-
import { createIntentTools } from "../../
|
|
18
|
-
import { createNetworkTools } from "../../
|
|
19
|
-
import { createOpportunityTools } from "../../
|
|
17
|
+
import { createIntentTools } from "../../intents/application/intent.tools.js";
|
|
18
|
+
import { createNetworkTools } from "../../networks/index.js";
|
|
19
|
+
import { createOpportunityTools } from "../../opportunities/index.js";
|
|
20
20
|
import { createUtilityTools } from "./utility.tools.js";
|
|
21
|
-
import { createIntegrationTools } from "../../
|
|
22
|
-
import { createContactTools } from "../../
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
import
|
|
26
|
-
import {
|
|
27
|
-
import {
|
|
21
|
+
import { createIntegrationTools } from "../../integrations/index.js";
|
|
22
|
+
import { createContactTools } from "../../contacts/index.js";
|
|
23
|
+
// The composition root reaches the leaf directly (it is exempt from the barrel
|
|
24
|
+
// rule by design): importing agents/index.js here would pull in the
|
|
25
|
+
// chat personas, which import this module back -- a runtime cycle.
|
|
26
|
+
import { createAgentTools } from "../../agents/application/agent.tools.js";
|
|
27
|
+
import { createNegotiationTools } from "../../negotiations/index.js";
|
|
28
|
+
import { createPremiseTools } from "../../premises/premise.tools.js";
|
|
29
|
+
import { createQuestionerTools, createAskUserQuestionTools } from "../../questions/index.js";
|
|
30
|
+
import { bindOwnerApprovalProvenance } from "../../opportunities/application/opportunity.owner-provenance.js";
|
|
28
31
|
const logger = protocolLogger("ChatTools");
|
|
29
32
|
// ═══════════════════════════════════════════════════════════════════════════════
|
|
30
33
|
// TOOL FACTORY
|
|
@@ -14,7 +14,7 @@ import type { ChatSummaryReader } from "../interfaces/chat-summary.interface.js"
|
|
|
14
14
|
import type { ChatMessageWriter } from "../interfaces/chat-message-writer.interface.js";
|
|
15
15
|
import type { NegotiationSummaryReader } from "../interfaces/negotiation-summary.interface.js";
|
|
16
16
|
import type { Embedder } from "../interfaces/embedder.interface.js";
|
|
17
|
-
import type { AgentDatabase } from "../../
|
|
17
|
+
import type { AgentDatabase } from "../../agents/ports/index.js";
|
|
18
18
|
import type { NegotiationTimeoutQueue } from "../interfaces/negotiation-events.interface.js";
|
|
19
19
|
import type { AgentDispatcher } from "../interfaces/agent-dispatcher.interface.js";
|
|
20
20
|
import type { DeliveryLedger } from "../interfaces/delivery-ledger.interface.js";
|
|
@@ -202,7 +202,7 @@ interface ToolContextBindings {
|
|
|
202
202
|
/** Optional durable persistence for reporter cleanup-action proposals. */
|
|
203
203
|
actionProposalStore?: import('../../chat/reporter.action.contracts.js').AgentActionProposalStore;
|
|
204
204
|
/** Durable host persistence for verified intent proposals shown in chat. */
|
|
205
|
-
intentProposalStore?: import('../../
|
|
205
|
+
intentProposalStore?: import('../../intents/domain/intent.proposal.js').IntentProposalStore;
|
|
206
206
|
/**
|
|
207
207
|
* Host bridge for the negotiator persona's `remember`/`forget` memory
|
|
208
208
|
* tools (P5.4). Injected by the composition root only when negotiator
|
|
@@ -219,7 +219,7 @@ interface ToolContextBindings {
|
|
|
219
219
|
getUserContextText?: (userId: string) => Promise<string>;
|
|
220
220
|
/** Profile enrichment from external data sources. */
|
|
221
221
|
enricher: ProfileEnricher;
|
|
222
|
-
/** Database adapter for
|
|
222
|
+
/** Database adapter for negotiations/conversation operations. */
|
|
223
223
|
negotiationDatabase: NegotiationGraphDatabase;
|
|
224
224
|
/** Integration importer for bulk contact import from toolkits. */
|
|
225
225
|
integrationImporter: {
|
|
@@ -370,7 +370,7 @@ interface ToolDepsBindings {
|
|
|
370
370
|
/** Context-bound database for LLM/system operations on cross-user resources within shared networks. */
|
|
371
371
|
systemDb: SystemDatabase;
|
|
372
372
|
/** Durable host persistence for verified intent proposals shown in chat. */
|
|
373
|
-
intentProposalStore?: import('../../
|
|
373
|
+
intentProposalStore?: import('../../intents/domain/intent.proposal.js').IntentProposalStore;
|
|
374
374
|
scraper: Scraper;
|
|
375
375
|
embedder: import('../interfaces/embedder.interface.js').Embedder;
|
|
376
376
|
cache: Cache;
|
|
@@ -392,7 +392,7 @@ interface ToolDepsBindings {
|
|
|
392
392
|
}>;
|
|
393
393
|
};
|
|
394
394
|
enricher: ProfileEnricher;
|
|
395
|
-
/** Database adapter for
|
|
395
|
+
/** Database adapter for negotiations/conversation operations. */
|
|
396
396
|
negotiationDatabase: NegotiationGraphDatabase;
|
|
397
397
|
/** Chat session reader for exposing the caller's past conversations as MCP tools. */
|
|
398
398
|
chatSession?: ChatSessionReader;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { ToolDeps, ToolRegistry } from './tool.helpers.js';
|
|
2
2
|
import type { ToolSurface } from './utility.tools.js';
|
|
3
|
-
import type { OpportunityOwnerApprovalDeps } from '../../
|
|
3
|
+
import type { OpportunityOwnerApprovalDeps } from '../../opportunities/ports/opportunity.tools.port.js';
|
|
4
4
|
export interface CreateToolRegistryOptions {
|
|
5
5
|
/**
|
|
6
6
|
* Tool-surface profile. The default `'rest'` profile (direct HTTP Tool API)
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import { error, redactSensitiveFields } from './tool.helpers.js';
|
|
2
2
|
import { createEnrichmentTools } from '../../enrichment/enrichment.tools.js';
|
|
3
|
-
import { createIntentTools } from '../../
|
|
4
|
-
import { createNetworkTools } from '../../
|
|
5
|
-
import { createOpportunityTools } from '../../
|
|
3
|
+
import { createIntentTools } from '../../intents/application/intent.tools.js';
|
|
4
|
+
import { createNetworkTools } from '../../networks/index.js';
|
|
5
|
+
import { createOpportunityTools } from '../../opportunities/index.js';
|
|
6
6
|
import { createUtilityTools } from './utility.tools.js';
|
|
7
|
-
import { createIntegrationTools } from '../../
|
|
8
|
-
import { createContactTools } from '../../
|
|
9
|
-
import { createAgentTools } from '../../
|
|
10
|
-
import { createNegotiationTools } from '../../
|
|
7
|
+
import { createIntegrationTools } from '../../integrations/index.js';
|
|
8
|
+
import { createContactTools } from '../../contacts/index.js';
|
|
9
|
+
import { createAgentTools } from '../../agents/index.js';
|
|
10
|
+
import { createNegotiationTools } from '../../negotiations/index.js';
|
|
11
11
|
import { createChatTools } from '../../chat/chat.tools.js';
|
|
12
|
-
import { createPremiseTools } from '../../
|
|
13
|
-
import { createQuestionerTools } from '../../
|
|
12
|
+
import { createPremiseTools } from '../../premises/premise.tools.js';
|
|
13
|
+
import { createQuestionerTools } from '../../questions/index.js';
|
|
14
14
|
import { protocolLogger } from '../observability/protocol.logger.js';
|
|
15
15
|
import { requestContext } from '../observability/request-context.js';
|
|
16
16
|
const logger = protocolLogger('ToolRegistry');
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { ScopeMembership, ToolScopeEnvelope } from "../agent/tool.scope.js";
|
|
2
2
|
import type { NetworkAssignmentMetadata, NetworkAssignmentMode, NetworkAssignmentPromptPresence, NetworkAssignmentRawScores, NetworkAssignmentResourceType, NetworkAssignmentScope } from "../schemas/network-assignment.schema.js";
|
|
3
|
-
/** Centralized default for unified
|
|
3
|
+
/** Centralized default for unified premises/intent network assignment. */
|
|
4
4
|
export declare const DEFAULT_NETWORK_ASSIGNMENT_THRESHOLD = 0.7;
|
|
5
5
|
export interface PromptPresenceInput {
|
|
6
6
|
indexPrompt?: string | null;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { deriveAllowedNetworkIds, scopeFromNetworkId } from "../agent/tool.scope.js";
|
|
2
|
-
/** Centralized default for unified
|
|
2
|
+
/** Centralized default for unified premises/intent network assignment. */
|
|
3
3
|
export const DEFAULT_NETWORK_ASSIGNMENT_THRESHOLD = 0.7;
|
|
4
4
|
/**
|
|
5
5
|
* Classifies whether a network/member prompt pair can filter a resource.
|
|
@@ -5,13 +5,13 @@
|
|
|
5
5
|
* It never knows about webhooks, MCP, transports, or agent resolution.
|
|
6
6
|
* The concrete implementation lives in the host application.
|
|
7
7
|
*
|
|
8
|
-
* IND-548: these types are also accessible via
|
|
8
|
+
* IND-548: these types are also accessible via agents/ports, which
|
|
9
9
|
* re-exports from here. This file remains the authoritative source to avoid a
|
|
10
10
|
* module cycle through the negotiation capability facade.
|
|
11
11
|
*/
|
|
12
12
|
import type { NegotiationTurn, UserNegotiationContext, SeedAssessment } from '../schemas/negotiation-state.schema.js';
|
|
13
|
-
import type { NegotiatorMemoryEntry } from '../../
|
|
14
|
-
import type { AttributedPriorDialogue } from '../../
|
|
13
|
+
import type { NegotiatorMemoryEntry } from '../../negotiations/domain/negotiation.memory.js';
|
|
14
|
+
import type { AttributedPriorDialogue } from '../../negotiations/negotiation.attribution.js';
|
|
15
15
|
import type { NegotiationPrivateConsultation } from './database.interface.js';
|
|
16
16
|
import type { NegotiationContinuationTimeoutIdentity } from './negotiation-events.interface.js';
|
|
17
17
|
/** Payload sent to the dispatcher for each negotiation turn. */
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* It never knows about webhooks, MCP, transports, or agent resolution.
|
|
6
6
|
* The concrete implementation lives in the host application.
|
|
7
7
|
*
|
|
8
|
-
* IND-548: these types are also accessible via
|
|
8
|
+
* IND-548: these types are also accessible via agents/ports, which
|
|
9
9
|
* re-exports from here. This file remains the authoritative source to avoid a
|
|
10
10
|
* module cycle through the negotiation capability facade.
|
|
11
11
|
*/
|
|
@@ -53,32 +53,32 @@ export declare const McpResolvedIdentitySchema: z.ZodEffects<z.ZodObject<{
|
|
|
53
53
|
networkScopeId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
54
54
|
}, "strict", z.ZodTypeAny, {
|
|
55
55
|
userId: string;
|
|
56
|
-
agentId?: string | undefined;
|
|
57
56
|
networkScopeId?: string | null | undefined;
|
|
57
|
+
agentId?: string | undefined;
|
|
58
58
|
enrollmentCapable?: boolean | undefined;
|
|
59
59
|
isDeliveryAgent?: boolean | undefined;
|
|
60
60
|
isSessionAuth?: boolean | undefined;
|
|
61
61
|
isHermesAgent?: boolean | undefined;
|
|
62
62
|
}, {
|
|
63
63
|
userId: string;
|
|
64
|
-
agentId?: string | undefined;
|
|
65
64
|
networkScopeId?: string | null | undefined;
|
|
65
|
+
agentId?: string | undefined;
|
|
66
66
|
enrollmentCapable?: boolean | undefined;
|
|
67
67
|
isDeliveryAgent?: boolean | undefined;
|
|
68
68
|
isSessionAuth?: boolean | undefined;
|
|
69
69
|
isHermesAgent?: boolean | undefined;
|
|
70
70
|
}>, {
|
|
71
71
|
userId: string;
|
|
72
|
-
agentId?: string | undefined;
|
|
73
72
|
networkScopeId?: string | null | undefined;
|
|
73
|
+
agentId?: string | undefined;
|
|
74
74
|
enrollmentCapable?: boolean | undefined;
|
|
75
75
|
isDeliveryAgent?: boolean | undefined;
|
|
76
76
|
isSessionAuth?: boolean | undefined;
|
|
77
77
|
isHermesAgent?: boolean | undefined;
|
|
78
78
|
}, {
|
|
79
79
|
userId: string;
|
|
80
|
-
agentId?: string | undefined;
|
|
81
80
|
networkScopeId?: string | null | undefined;
|
|
81
|
+
agentId?: string | undefined;
|
|
82
82
|
enrollmentCapable?: boolean | undefined;
|
|
83
83
|
isDeliveryAgent?: boolean | undefined;
|
|
84
84
|
isSessionAuth?: boolean | undefined;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Negotiation state DTOs extracted from
|
|
2
|
+
* Negotiation state DTOs extracted from negotiations/negotiation.state.ts for
|
|
3
3
|
* consumption by shared interfaces. This shared module owns the DTO schemas;
|
|
4
4
|
* LangGraph Annotation.Root stays in the domain file.
|
|
5
5
|
*/
|
|
@@ -12,7 +12,7 @@ import { z } from "zod";
|
|
|
12
12
|
* `reject` into `withdraw` (initiator seat) / `decline` (counterparty seat).
|
|
13
13
|
* Which subset is valid for a given turn depends on the task's
|
|
14
14
|
* `protocolVersion` and the acting user's seat — see
|
|
15
|
-
* `
|
|
15
|
+
* `negotiations/negotiation.protocol.ts` for the seat-scoped schemas.
|
|
16
16
|
*/
|
|
17
17
|
export declare const NEGOTIATION_ACTIONS: readonly ["propose", "accept", "reject", "counter", "question", "outreach", "withdraw", "decline", "ask_user"];
|
|
18
18
|
export type NegotiationAction = (typeof NEGOTIATION_ACTIONS)[number];
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Negotiation state DTOs extracted from
|
|
2
|
+
* Negotiation state DTOs extracted from negotiations/negotiation.state.ts for
|
|
3
3
|
* consumption by shared interfaces. This shared module owns the DTO schemas;
|
|
4
4
|
* LangGraph Annotation.Root stays in the domain file.
|
|
5
5
|
*/
|
|
@@ -13,7 +13,7 @@ import { z } from "zod";
|
|
|
13
13
|
* `reject` into `withdraw` (initiator seat) / `decline` (counterparty seat).
|
|
14
14
|
* Which subset is valid for a given turn depends on the task's
|
|
15
15
|
* `protocolVersion` and the acting user's seat — see
|
|
16
|
-
* `
|
|
16
|
+
* `negotiations/negotiation.protocol.ts` for the seat-scoped schemas.
|
|
17
17
|
*/
|
|
18
18
|
export const NEGOTIATION_ACTIONS = [
|
|
19
19
|
"propose", "accept", "reject", "counter", "question",
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
/**
|
|
3
|
+
* Canonical QUD repair categories for underspecified intents/questions.
|
|
4
|
+
*
|
|
5
|
+
* Shared between signals (the intent clarifier decides whether an utterance is
|
|
6
|
+
* underspecified) and questions (which records the category on the question it
|
|
7
|
+
* raises). It lives here rather than inside either capability because both need
|
|
8
|
+
* it: filing it under `questions/domain` meant the signals clarifier had to
|
|
9
|
+
* import the whole questions capability — LLM agents and tools included — to
|
|
10
|
+
* reach a three-value enum.
|
|
11
|
+
*/
|
|
12
|
+
export declare const UnderspecificationTypeSchema: z.ZodEnum<["missing_constituent", "missing_constraint", "open_alternative_set"]>;
|
|
13
|
+
export type UnderspecificationType = z.infer<typeof UnderspecificationTypeSchema>;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
/**
|
|
3
|
+
* Canonical QUD repair categories for underspecified intents/questions.
|
|
4
|
+
*
|
|
5
|
+
* Shared between signals (the intent clarifier decides whether an utterance is
|
|
6
|
+
* underspecified) and questions (which records the category on the question it
|
|
7
|
+
* raises). It lives here rather than inside either capability because both need
|
|
8
|
+
* it: filing it under `questions/domain` meant the signals clarifier had to
|
|
9
|
+
* import the whole questions capability — LLM agents and tools included — to
|
|
10
|
+
* reach a three-value enum.
|
|
11
|
+
*/
|
|
12
|
+
export const UnderspecificationTypeSchema = z.enum([
|
|
13
|
+
"missing_constituent",
|
|
14
|
+
"missing_constraint",
|
|
15
|
+
"open_alternative_set",
|
|
16
|
+
]);
|
package/package.json
CHANGED
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Communities capability's supported graph and tool entry points.
|
|
3
|
-
*
|
|
4
|
-
* IND-546: canonical implementations live in src/communities/; the old
|
|
5
|
-
* network/, network/membership/, and network/indexer/ paths remain as
|
|
6
|
-
* compatibility re-exports. This facade now imports from the communities
|
|
7
|
-
* domain-first module.
|
|
8
|
-
*/
|
|
9
|
-
export { NetworkGraphFactory } from "../communities/application/index.js";
|
|
10
|
-
export { NetworkMembershipGraphFactory } from "../communities/application/index.js";
|
|
11
|
-
export { IntentNetworkGraphFactory } from "../communities/application/index.js";
|
|
12
|
-
export { createNetworkTools } from "../communities/application/index.js";
|
|
13
|
-
export type { NetworkToolDeps } from "./communities.tools.port.js";
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Communities capability's supported graph and tool entry points.
|
|
3
|
-
*
|
|
4
|
-
* IND-546: canonical implementations live in src/communities/; the old
|
|
5
|
-
* network/, network/membership/, and network/indexer/ paths remain as
|
|
6
|
-
* compatibility re-exports. This facade now imports from the communities
|
|
7
|
-
* domain-first module.
|
|
8
|
-
*/
|
|
9
|
-
export { NetworkGraphFactory } from "../communities/application/index.js";
|
|
10
|
-
export { NetworkMembershipGraphFactory } from "../communities/application/index.js";
|
|
11
|
-
export { IntentNetworkGraphFactory } from "../communities/application/index.js";
|
|
12
|
-
export { createNetworkTools } from "../communities/application/index.js";
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Contacts capability's supported invite and contact-tool entry points.
|
|
3
|
-
*
|
|
4
|
-
* IND-549: sources now route through the canonical contacts module instead
|
|
5
|
-
* of the legacy contact/ shim directories.
|
|
6
|
-
*/
|
|
7
|
-
export { generateInviteMessage } from "../contacts/public/index.js";
|
|
8
|
-
export { createContactTools } from "../contacts/public/index.js";
|
|
9
|
-
export type { ContactServiceAdapter, ContactToolDeps } from "../contacts/public/index.js";
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Contacts capability's supported invite and contact-tool entry points.
|
|
3
|
-
*
|
|
4
|
-
* IND-549: sources now route through the canonical contacts module instead
|
|
5
|
-
* of the legacy contact/ shim directories.
|
|
6
|
-
*/
|
|
7
|
-
export { generateInviteMessage } from "../contacts/public/index.js";
|
|
8
|
-
export { createContactTools } from "../contacts/public/index.js";
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Integrations capability's supported tool entry point.
|
|
3
|
-
*
|
|
4
|
-
* IND-549: sources now route through the canonical integrations module instead
|
|
5
|
-
* of the legacy integration/ shim directory.
|
|
6
|
-
*/
|
|
7
|
-
export { createIntegrationTools } from "../integrations/public/index.js";
|
|
8
|
-
export type { IntegrationAdapter, IntegrationConnection, IntegrationSession, IntegrationSessionOptions, IntegrationToolDeps, ToolActionResponse, } from "../integrations/public/index.js";
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Integrations capability's supported tool entry point.
|
|
3
|
-
*
|
|
4
|
-
* IND-549: sources now route through the canonical integrations module instead
|
|
5
|
-
* of the legacy integration/ shim directory.
|
|
6
|
-
*/
|
|
7
|
-
export { createIntegrationTools } from "../integrations/public/index.js";
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Interaction-wide composition contract.
|
|
3
|
-
*
|
|
4
|
-
* The physical tool-factory implementation remains in shared/agent during the
|
|
5
|
-
* in-place phase. It is classified as this conceptual capability by the
|
|
6
|
-
* architecture gate, which is the only explicitly allowed all-capability point.
|
|
7
|
-
*/
|
|
8
|
-
export declare const interactionCompositionCapability: "interaction-composition";
|
|
9
|
-
export { MaintenanceGraphFactory } from "../maintenance/maintenance.graph.js";
|
|
10
|
-
export type { MaintenanceGraphDatabase, MaintenanceGraphCache, MaintenanceGraphQueue } from "../maintenance/maintenance.graph.js";
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Interaction-wide composition contract.
|
|
3
|
-
*
|
|
4
|
-
* The physical tool-factory implementation remains in shared/agent during the
|
|
5
|
-
* in-place phase. It is classified as this conceptual capability by the
|
|
6
|
-
* architecture gate, which is the only explicitly allowed all-capability point.
|
|
7
|
-
*/
|
|
8
|
-
export const interactionCompositionCapability = "interaction-composition";
|
|
9
|
-
export { MaintenanceGraphFactory } from "../maintenance/maintenance.graph.js";
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Narrow discovery port consumed by the opportunity graph — IND-550.
|
|
3
|
-
* Sources now route through the canonical negotiation module public surface.
|
|
4
|
-
*/
|
|
5
|
-
export { negotiateCandidates } from "../negotiation/public/index.js";
|
|
6
|
-
export type { NegotiationCandidate, OnNegotiationResolved } from "../negotiation/public/index.js";
|
|
7
|
-
export { ASK_USER_LOCK_SLACK_MS, askUserAnswerWindowMs } from "../negotiation/public/index.js";
|
|
8
|
-
export { AMBIENT_PARK_WINDOW_MS } from "../negotiation/public/index.js";
|
|
9
|
-
export type { NegotiationGraphLike, UserNegotiationContext } from "../negotiation/public/index.js";
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Narrow discovery port consumed by the opportunity graph — IND-550.
|
|
3
|
-
* Sources now route through the canonical negotiation module public surface.
|
|
4
|
-
*/
|
|
5
|
-
export { negotiateCandidates } from "../negotiation/public/index.js";
|
|
6
|
-
export { ASK_USER_LOCK_SLACK_MS, askUserAnswerWindowMs } from "../negotiation/public/index.js";
|
|
7
|
-
export { AMBIENT_PARK_WINDOW_MS } from "../negotiation/public/index.js";
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Negotiation capability facade — IND-550.
|
|
3
|
-
*
|
|
4
|
-
* Sources now route through the canonical negotiation module public surface
|
|
5
|
-
* instead of the legacy flat negotiation/ files.
|
|
6
|
-
*/
|
|
7
|
-
export { NegotiationSummarizer } from "../negotiation/public/index.js";
|
|
8
|
-
export { NegotiationGraphFactory, negotiateCandidates } from "../negotiation/public/index.js";
|
|
9
|
-
export { createNegotiationTools } from "../negotiation/public/index.js";
|
|
10
|
-
export type { NegotiationToolDeps } from "../negotiation/public/index.js";
|
|
11
|
-
export { NegotiationInsightsGenerator } from "../negotiation/public/index.js";
|
|
12
|
-
export type { NegotiationDigest } from "../negotiation/public/index.js";
|
|
13
|
-
export { IndexNegotiator } from "../negotiation/public/index.js";
|
|
14
|
-
export { NegotiationScreener } from "../negotiation/public/index.js";
|
|
15
|
-
export { NegotiationReflector } from "../negotiation/public/index.js";
|
|
16
|
-
export type { DistilledMemory, ReflectionTranscriptEntry, NegotiationReflectionInput, ChatReflectionInput, NegotiationReflectJobData, ReflectEnqueueFn } from "../negotiation/public/index.js";
|
|
17
|
-
export type { NegotiatorMemoryEntry } from "../negotiation/public/index.js";
|
|
18
|
-
export type { NegotiationGraphLike } from "../negotiation/public/index.js";
|
|
19
|
-
export { HERMES_OWNER_DIRECTIVE, HERMES_SHARED_MESSAGE_TEMPLATES, HermesNegotiationActionSchema, HermesNegotiationResponseSchema, HermesOwnerDirectiveSchema, HermesRoleAlignmentSchema, allowedHermesActionsFor, buildHermesNegotiationTurn, } from "../negotiation/public/index.js";
|
|
20
|
-
export type { HermesNegotiationAction, HermesNegotiationResponse, HermesOwnerDirective, HermesRoleAlignment, } from "../negotiation/public/index.js";
|
|
21
|
-
export { AMBIENT_PARK_WINDOW_MS } from "../negotiation/public/index.js";
|
|
22
|
-
export { DEFAULT_NEGOTIATION_MAX_TURNS, isNegotiationTurnCapReached, expectedNegotiationSpeaker, allowedActionsFor, askUserAnswerWindowMs, configuredAskUserEnabled, isTerminalAction, isRejectLikeAction, readProtocolVersion, resolveSeat, seatViolationMessage } from "../negotiation/public/index.js";
|
|
23
|
-
export type { NegotiationSpeakerParticipants, NegotiationSpeakerMessage } from "../negotiation/public/index.js";
|
|
24
|
-
export { assessConsultationEligibility, consultationPromptFor, negotiationConsultationPolicyMode } from "../negotiation/public/index.js";
|
|
25
|
-
export type { ConsultationEligibility, ConsultationEligibilityInput, NegotiationConsultationPolicyMode, NegotiationConsultationReason } from "../negotiation/public/index.js";
|
|
26
|
-
export { NEGOTIATION_QUESTION_GENERIC_COUNTERPARTY, NEGOTIATION_QUESTION_GENERIC_NETWORK, NEGOTIATION_QUESTION_GENERIC_UPTAKE_ACTIVITY, isSafeNegotiationQuestionText, validateInflightAskUserFields, negotiationQuestionSettlementId, } from "../negotiation/public/index.js";
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Negotiation capability facade — IND-550.
|
|
3
|
-
*
|
|
4
|
-
* Sources now route through the canonical negotiation module public surface
|
|
5
|
-
* instead of the legacy flat negotiation/ files.
|
|
6
|
-
*/
|
|
7
|
-
export { NegotiationSummarizer } from "../negotiation/public/index.js";
|
|
8
|
-
export { NegotiationGraphFactory, negotiateCandidates } from "../negotiation/public/index.js";
|
|
9
|
-
export { createNegotiationTools } from "../negotiation/public/index.js";
|
|
10
|
-
export { NegotiationInsightsGenerator } from "../negotiation/public/index.js";
|
|
11
|
-
export { IndexNegotiator } from "../negotiation/public/index.js";
|
|
12
|
-
export { NegotiationScreener } from "../negotiation/public/index.js";
|
|
13
|
-
export { NegotiationReflector } from "../negotiation/public/index.js";
|
|
14
|
-
export { HERMES_OWNER_DIRECTIVE, HERMES_SHARED_MESSAGE_TEMPLATES, HermesNegotiationActionSchema, HermesNegotiationResponseSchema, HermesOwnerDirectiveSchema, HermesRoleAlignmentSchema, allowedHermesActionsFor, buildHermesNegotiationTurn, } from "../negotiation/public/index.js";
|
|
15
|
-
export { AMBIENT_PARK_WINDOW_MS } from "../negotiation/public/index.js";
|
|
16
|
-
export { DEFAULT_NEGOTIATION_MAX_TURNS, isNegotiationTurnCapReached, expectedNegotiationSpeaker, allowedActionsFor, askUserAnswerWindowMs, configuredAskUserEnabled, isTerminalAction, isRejectLikeAction, readProtocolVersion, resolveSeat, seatViolationMessage } from "../negotiation/public/index.js";
|
|
17
|
-
export { assessConsultationEligibility, consultationPromptFor, negotiationConsultationPolicyMode } from "../negotiation/public/index.js";
|
|
18
|
-
export { NEGOTIATION_QUESTION_GENERIC_COUNTERPARTY, NEGOTIATION_QUESTION_GENERIC_NETWORK, NEGOTIATION_QUESTION_GENERIC_UPTAKE_ACTIVITY, isSafeNegotiationQuestionText, validateInflightAskUserFields, negotiationQuestionSettlementId, } from "../negotiation/public/index.js";
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Narrow memory port for the participant-agent (negotiator chat) prompt — IND-550.
|
|
3
|
-
* Sources now route through the canonical negotiation module public surface.
|
|
4
|
-
*/
|
|
5
|
-
export { renderNegotiatorChatMemorySection } from "../negotiation/public/index.js";
|
|
6
|
-
export type { NegotiatorMemoryEntry } from "../negotiation/public/index.js";
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Narrow question-policy port consumed by the Questions capability — IND-550.
|
|
3
|
-
* Sources now route through the canonical negotiation module public surface.
|
|
4
|
-
*/
|
|
5
|
-
export { NEGOTIATION_QUESTION_GENERIC_COUNTERPARTY, NEGOTIATION_QUESTION_GENERIC_NETWORK, NEGOTIATION_QUESTION_GENERIC_UPTAKE_ACTIVITY, consultationPromptFor, isSafeNegotiationQuestionText, } from "../negotiation/public/index.js";
|
|
6
|
-
export type { NegotiationConsultationReason } from "../negotiation/public/index.js";
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Narrow question-policy port consumed by the Questions capability — IND-550.
|
|
3
|
-
* Sources now route through the canonical negotiation module public surface.
|
|
4
|
-
*/
|
|
5
|
-
export { NEGOTIATION_QUESTION_GENERIC_COUNTERPARTY, NEGOTIATION_QUESTION_GENERIC_NETWORK, NEGOTIATION_QUESTION_GENERIC_UPTAKE_ACTIVITY, consultationPromptFor, isSafeNegotiationQuestionText, } from "../negotiation/public/index.js";
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|